@inkeep/cxkit-js 0.5.26 → 0.5.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35,7 +35,7 @@ var __defProp=Object.defineProperty,__defNormalProp=(e,t,n)=>t in e?__defProp(e,
35
35
  *
36
36
  * This source code is licensed under the MIT license found in the
37
37
  * LICENSE file in the root directory of this source tree.
38
- */function R_(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var O_=Symbol.for("react.transitional.element"),P_=Symbol.for("react.portal"),L_=Symbol.for("react.fragment"),D_=Symbol.for("react.strict_mode"),M_=Symbol.for("react.profiler"),F_=Symbol.for("react.provider"),B_=Symbol.for("react.consumer"),z_=Symbol.for("react.context"),H_=Symbol.for("react.forward_ref"),j_=Symbol.for("react.suspense"),U_=Symbol.for("react.suspense_list"),$_=Symbol.for("react.memo"),G_=Symbol.for("react.lazy"),V_=Symbol.for("react.scope"),W_=Symbol.for("react.debug_trace_mode"),q_=Symbol.for("react.offscreen"),Y_=Symbol.for("react.legacy_hidden"),X_=Symbol.for("react.memo_cache_sentinel"),K_=Symbol.iterator,Q_=Array.isArray;function Z_(e,t){var n=3&e.length,r=e.length-n,a=t;for(t=0;t<r;){var o=255&e.charCodeAt(t)|(255&e.charCodeAt(++t))<<8|(255&e.charCodeAt(++t))<<16|(255&e.charCodeAt(++t))<<24;++t,a=27492+(65535&(a=5*(65535&(a=(a^=o=461845907*(65535&(o=(o=3432918353*(65535&o)+((3432918353*(o>>>16)&65535)<<16)&4294967295)<<15|o>>>17))+((461845907*(o>>>16)&65535)<<16)&4294967295)<<13|a>>>19))+((5*(a>>>16)&65535)<<16)&4294967295))+((58964+(a>>>16)&65535)<<16)}switch(o=0,n){case 3:o^=(255&e.charCodeAt(t+2))<<16;case 2:o^=(255&e.charCodeAt(t+1))<<8;case 1:a^=461845907*(65535&(o=(o=3432918353*(65535&(o^=255&e.charCodeAt(t)))+((3432918353*(o>>>16)&65535)<<16)&4294967295)<<15|o>>>17))+((461845907*(o>>>16)&65535)<<16)&4294967295}return a^=e.length,a=2246822507*(65535&(a^=a>>>16))+((2246822507*(a>>>16)&65535)<<16)&4294967295,((a=3266489909*(65535&(a^=a>>>13))+((3266489909*(a>>>16)&65535)<<16)&4294967295)^a>>>16)>>>0}var J_=new MessageChannel,eA=[];function tA(e){eA.push(e),J_.port2.postMessage(null)}function nA(e){setTimeout((function(){throw e}))}J_.port1.onmessage=function(){var e=eA.shift();e&&e()};var rA=Promise,aA="function"==typeof queueMicrotask?queueMicrotask:function(e){rA.resolve(null).then(e).catch(nA)},oA=null,iA=0;function sA(e,t){if(0!==t.byteLength)if(2048<t.byteLength)0<iA&&(e.enqueue(new Uint8Array(oA.buffer,0,iA)),oA=new Uint8Array(2048),iA=0),e.enqueue(t);else{var n=oA.length-iA;n<t.byteLength&&(0===n?e.enqueue(oA):(oA.set(t.subarray(0,n),iA),e.enqueue(oA),t=t.subarray(n)),oA=new Uint8Array(2048),iA=0),oA.set(t,iA),iA+=t.byteLength}}function lA(e,t){return sA(e,t),!0}function cA(e){oA&&0<iA&&(e.enqueue(new Uint8Array(oA.buffer,0,iA)),oA=null,iA=0)}var uA=new TextEncoder;function dA(e){return uA.encode(e)}function pA(e){return uA.encode(e)}function fA(e,t){"function"==typeof e.error?e.error(t):e.close()}var hA=Object.assign,mA=Object.prototype.hasOwnProperty,gA=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),yA={},bA={};function vA(e){return!!mA.call(bA,e)||!mA.call(yA,e)&&(gA.test(e)?bA[e]=!0:(yA[e]=!0,!1))}var kA=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),wA=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),EA=/["'&<>]/;function SA(e){if("boolean"==typeof e||"number"==typeof e||"bigint"==typeof e)return""+e;e=""+e;var t=EA.exec(e);if(t){var n,r="",a=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}a!==n&&(r+=e.slice(a,n)),a=n+1,r+=t}e=a!==n?r+e.slice(a,n):r}return e}var TA=/([A-Z])/g,xA=/^ms-/,_A=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function AA(e){return _A.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var CA=I_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,IA=N_.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,NA={pending:!1,data:null,method:null,action:null},RA=IA.d;IA.d={f:RA.f,r:RA.r,D:function(e){var t=PR||null;if(t){var n=t.resumableState,r=t.renderState;if("string"==typeof e&&e){var a,o;if(!n.dnsResources.hasOwnProperty(e))n.dnsResources[e]=null,(o=(n=r.headers)&&0<n.remainingCapacity)&&(a="<"+(""+e).replace(hN,mN)+">; rel=dns-prefetch",o=0<=(n.remainingCapacity-=a.length+2)),o?(r.resets.dns[e]=null,n.preconnects&&(n.preconnects+=", "),n.preconnects+=a):(TC(a=[],{href:e,rel:"dns-prefetch"}),r.preconnects.add(a));gO(t)}}else RA.D(e)},C:function(e,t){var n=PR||null;if(n){var r=n.resumableState,a=n.renderState;if("string"==typeof e&&e){var o="use-credentials"===t?"credentials":"string"==typeof t?"anonymous":"default";if(!r.connectResources[o].hasOwnProperty(e)){var i,s;if(r.connectResources[o][e]=null,s=(r=a.headers)&&0<r.remainingCapacity){if(s="<"+(""+e).replace(hN,mN)+">; rel=preconnect","string"==typeof t)s+='; crossorigin="'+(""+t).replace(gN,yN)+'"';i=s,s=0<=(r.remainingCapacity-=i.length+2)}s?(a.resets.connect[o][e]=null,r.preconnects&&(r.preconnects+=", "),r.preconnects+=i):(TC(o=[],{rel:"preconnect",href:e,crossOrigin:t}),a.preconnects.add(o))}gO(n)}}else RA.C(e,t)},L:function(e,t,n){var r=PR||null;if(r){var a=r.resumableState,o=r.renderState;if(t&&e){switch(t){case"image":if(n)var i=n.imageSrcSet,s=n.imageSizes,l=n.fetchPriority;var c,u=i?i+"\n"+(s||""):e;if(a.imageResources.hasOwnProperty(u))return;a.imageResources[u]=OA,(a=o.headers)&&0<a.remainingCapacity&&"high"===l&&(c=fN(e,t,n),0<=(a.remainingCapacity-=c.length+2))?(o.resets.image[u]=OA,a.highImagePreloads&&(a.highImagePreloads+=", "),a.highImagePreloads+=c):(TC(a=[],hA({rel:"preload",href:i?void 0:e,as:t},n)),"high"===l?o.highImagePreloads.add(a):(o.bulkPreloads.add(a),o.preloads.images.set(u,a)));break;case"style":if(a.styleResources.hasOwnProperty(e))return;TC(i=[],hA({rel:"preload",href:e,as:t},n)),a.styleResources[e]=!n||"string"!=typeof n.crossOrigin&&"string"!=typeof n.integrity?OA:[n.crossOrigin,n.integrity],o.preloads.stylesheets.set(e,i),o.bulkPreloads.add(i);break;case"script":if(a.scriptResources.hasOwnProperty(e))return;i=[],o.preloads.scripts.set(e,i),o.bulkPreloads.add(i),TC(i,hA({rel:"preload",href:e,as:t},n)),a.scriptResources[e]=!n||"string"!=typeof n.crossOrigin&&"string"!=typeof n.integrity?OA:[n.crossOrigin,n.integrity];break;default:if(a.unknownResources.hasOwnProperty(t)){if((i=a.unknownResources[t]).hasOwnProperty(e))return}else i={},a.unknownResources[t]=i;if(i[e]=OA,(a=o.headers)&&0<a.remainingCapacity&&"font"===t&&(u=fN(e,t,n),0<=(a.remainingCapacity-=u.length+2)))o.resets.font[e]=OA,a.fontPreloads&&(a.fontPreloads+=", "),a.fontPreloads+=u;else if("font"===(TC(a=[],e=hA({rel:"preload",href:e,as:t},n)),t))o.fontPreloads.add(a);else o.bulkPreloads.add(a)}gO(r)}}else RA.L(e,t,n)},m:function(e,t){var n=PR||null;if(n){var r=n.resumableState,a=n.renderState;if(e){var o=t&&"string"==typeof t.as?t.as:"script";if("script"===o){if(r.moduleScriptResources.hasOwnProperty(e))return;o=[],r.moduleScriptResources[e]=!t||"string"!=typeof t.crossOrigin&&"string"!=typeof t.integrity?OA:[t.crossOrigin,t.integrity],a.preloads.moduleScripts.set(e,o)}else{if(r.moduleUnknownResources.hasOwnProperty(o)){var i=r.unknownResources[o];if(i.hasOwnProperty(e))return}else i={},r.moduleUnknownResources[o]=i;o=[],i[e]=OA}TC(o,hA({rel:"modulepreload",href:e},t)),a.bulkPreloads.add(o),gO(n)}}else RA.m(e,t)},X:function(e,t){var n=PR||null;if(n){var r=n.resumableState,a=n.renderState;if(e){var o=r.scriptResources.hasOwnProperty(e)?r.scriptResources[e]:void 0;null!==o&&(r.scriptResources[e]=null,t=hA({src:e,async:!0},t),o&&(2===o.length&&pN(t,o),e=a.preloads.scripts.get(e))&&(e.length=0),e=[],a.scripts.add(e),IC(e,t),gO(n))}}else RA.X(e,t)},S:function(e,t,n){var r=PR||null;if(r){var a=r.resumableState,o=r.renderState;if(e){t=t||"default";var i=o.styles.get(t),s=a.styleResources.hasOwnProperty(e)?a.styleResources[e]:void 0;null!==s&&(a.styleResources[e]=null,i||(i={precedence:dA(SA(t)),rules:[],hrefs:[],sheets:new Map},o.styles.set(t,i)),t={state:0,props:hA({rel:"stylesheet",href:e,"data-precedence":t},n)},s&&(2===s.length&&pN(t.props,s),(o=o.preloads.stylesheets.get(e))&&0<o.length?o.length=0:t.state=1),i.sheets.set(e,t),gO(r))}}else RA.S(e,t,n)},M:function(e,t){var n=PR||null;if(n){var r=n.resumableState,a=n.renderState;if(e){var o=r.moduleScriptResources.hasOwnProperty(e)?r.moduleScriptResources[e]:void 0;null!==o&&(r.moduleScriptResources[e]=null,t=hA({src:e,type:"module",async:!0},t),o&&(2===o.length&&pN(t,o),e=a.preloads.moduleScripts.get(e))&&(e.length=0),e=[],a.scripts.add(e),IC(e,t),gO(n))}}else RA.M(e,t)}};var OA=[];pA('"></template>');var PA=pA("<script>"),LA=pA("<\/script>"),DA=pA('<script src="'),MA=pA('<script type="module" src="'),FA=pA('" nonce="'),BA=pA('" integrity="'),zA=pA('" crossorigin="'),HA=pA('" async=""><\/script>'),jA=/(<\/|<)(s)(cript)/gi;function UA(e,t,n,r){return t+("s"===n?"\\u0073":"\\u0053")+r}var $A=pA('<script type="importmap">'),GA=pA("<\/script>");function VA(e,t,n,r,a,o){var i=void 0===t?PA:pA('<script nonce="'+SA(t)+'">'),s=e.idPrefix;n=[];var l=e.bootstrapScriptContent,c=e.bootstrapScripts,u=e.bootstrapModules;if(void 0!==l&&n.push(i,dA((""+l).replace(jA,UA)),LA),l=[],void 0!==r&&(l.push($A),l.push(dA((""+JSON.stringify(r)).replace(jA,UA))),l.push(GA)),r=a?{preconnects:"",fontPreloads:"",highImagePreloads:"",remainingCapacity:2+("number"==typeof o?o:2e3)}:null,a={placeholderPrefix:pA(s+"P:"),segmentPrefix:pA(s+"S:"),boundaryPrefix:pA(s+"B:"),startInlineScript:i,htmlChunks:null,headChunks:null,externalRuntimeScript:null,bootstrapChunks:n,importMapChunks:l,onHeaders:a,headers:r,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:new Set,fontPreloads:new Set,highImagePreloads:new Set,styles:new Map,bootstrapScripts:new Set,scripts:new Set,bulkPreloads:new Set,preloads:{images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map},nonce:t,hoistableState:null,stylesToHoist:!1},void 0!==c)for(r=0;r<c.length;r++){var d=c[r];s=i=void 0,l={rel:"preload",as:"script",fetchPriority:"low",nonce:t},"string"==typeof d?l.href=o=d:(l.href=o=d.src,l.integrity=s="string"==typeof d.integrity?d.integrity:void 0,l.crossOrigin=i="string"==typeof d||null==d.crossOrigin?void 0:"use-credentials"===d.crossOrigin?"use-credentials":"");var p=o;(d=e).scriptResources[p]=null,d.moduleScriptResources[p]=null,TC(d=[],l),a.bootstrapScripts.add(d),n.push(DA,dA(SA(o))),t&&n.push(FA,dA(SA(t))),"string"==typeof s&&n.push(BA,dA(SA(s))),"string"==typeof i&&n.push(zA,dA(SA(i))),n.push(HA)}if(void 0!==u)for(c=0;c<u.length;c++)i=o=void 0,s={rel:"modulepreload",fetchPriority:"low",nonce:t},"string"==typeof(l=u[c])?s.href=r=l:(s.href=r=l.src,s.integrity=i="string"==typeof l.integrity?l.integrity:void 0,s.crossOrigin=o="string"==typeof l||null==l.crossOrigin?void 0:"use-credentials"===l.crossOrigin?"use-credentials":""),d=r,(l=e).scriptResources[d]=null,l.moduleScriptResources[d]=null,TC(l=[],s),a.bootstrapScripts.add(l),n.push(MA,dA(SA(r))),t&&n.push(FA,dA(SA(t))),"string"==typeof i&&n.push(BA,dA(SA(i))),"string"==typeof o&&n.push(zA,dA(SA(o))),n.push(HA);return a}function WA(e,t,n,r,a){return{idPrefix:void 0===e?"":e,nextFormID:0,streamingFormat:0,bootstrapScriptContent:n,bootstrapScripts:r,bootstrapModules:a,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function qA(e,t,n){return{insertionMode:e,selectedValue:t,tagScope:n}}function YA(e){return qA("http://www.w3.org/2000/svg"===e?3:"http://www.w3.org/1998/Math/MathML"===e?4:0,null,0)}function XA(e,t,n){switch(t){case"noscript":return qA(2,null,1|e.tagScope);case"select":return qA(2,null!=n.value?n.value:n.defaultValue,e.tagScope);case"svg":return qA(3,null,e.tagScope);case"picture":return qA(2,null,2|e.tagScope);case"math":return qA(4,null,e.tagScope);case"foreignObject":return qA(2,null,e.tagScope);case"table":return qA(5,null,e.tagScope);case"thead":case"tbody":case"tfoot":return qA(6,null,e.tagScope);case"colgroup":return qA(8,null,e.tagScope);case"tr":return qA(7,null,e.tagScope)}return 5<=e.insertionMode?qA(2,null,e.tagScope):0===e.insertionMode?qA("html"===t?1:2,null,e.tagScope):1===e.insertionMode?qA(2,null,e.tagScope):e}var KA=pA("\x3c!-- --\x3e");function QA(e,t,n,r){return""===t?r:(r&&e.push(KA),e.push(dA(SA(t))),!0)}var ZA=new Map,JA=pA(' style="'),eC=pA(":"),tC=pA(";");function nC(e,t){if("object"!=typeof t)throw Error(R_(62));var n,r=!0;for(n in t)if(mA.call(t,n)){var a=t[n];if(null!=a&&"boolean"!=typeof a&&""!==a){if(0===n.indexOf("--")){var o=dA(SA(n));a=dA(SA((""+a).trim()))}else void 0===(o=ZA.get(n))&&(o=pA(SA(n.replace(TA,"-$1").toLowerCase().replace(xA,"-ms-"))),ZA.set(n,o)),a="number"==typeof a?0===a||kA.has(n)?dA(""+a):dA(a+"px"):dA(SA((""+a).trim()));r?(r=!1,e.push(JA,o,eC,a)):e.push(tC,o,eC,a)}}r||e.push(oC)}var rC=pA(" "),aC=pA('="'),oC=pA('"'),iC=pA('=""');function sC(e,t,n){n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(rC,dA(t),iC)}function lC(e,t,n){"function"!=typeof n&&"symbol"!=typeof n&&"boolean"!=typeof n&&e.push(rC,dA(t),aC,dA(SA(n)),oC)}var cC=pA(SA("javascript:throw new Error('React form unexpectedly submitted.')")),uC=pA('<input type="hidden"');function dC(e,t){this.push(uC),pC(e),lC(this,"name",t),lC(this,"value",e),this.push(yC)}function pC(e){if("string"!=typeof e)throw Error(R_(480))}function fC(e,t){if("function"==typeof t.$$FORM_ACTION){var n=e.nextFormID++;e=e.idPrefix+n;try{var r=t.$$FORM_ACTION(e);if(r){var a=r.data;null!=a&&a.forEach(pC)}return r}catch(o){if("object"==typeof o&&null!==o&&"function"==typeof o.then)throw o}}return null}function hC(e,t,n,r,a,o,i,s){var l=null;if("function"==typeof r){var c=fC(t,r);null!==c?(s=c.name,r=c.action||"",a=c.encType,o=c.method,i=c.target,l=c.data):(e.push(rC,dA("formAction"),aC,cC,oC),i=o=a=r=s=null,wC(t,n))}return null!=s&&mC(e,"name",s),null!=r&&mC(e,"formAction",r),null!=a&&mC(e,"formEncType",a),null!=o&&mC(e,"formMethod",o),null!=i&&mC(e,"formTarget",i),l}function mC(e,t,n){switch(t){case"className":lC(e,"class",n);break;case"tabIndex":lC(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":lC(e,t,n);break;case"style":nC(e,n);break;case"src":case"href":if(""===n)break;case"action":case"formAction":if(null==n||"function"==typeof n||"symbol"==typeof n||"boolean"==typeof n)break;n=AA(""+n),e.push(rC,dA(t),aC,dA(SA(n)),oC);break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":sC(e,t.toLowerCase(),n);break;case"xlinkHref":if("function"==typeof n||"symbol"==typeof n||"boolean"==typeof n)break;n=AA(""+n),e.push(rC,dA("xlink:href"),aC,dA(SA(n)),oC);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":"function"!=typeof n&&"symbol"!=typeof n&&e.push(rC,dA(t),aC,dA(SA(n)),oC);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(rC,dA(t),iC);break;case"capture":case"download":!0===n?e.push(rC,dA(t),iC):!1!==n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(rC,dA(t),aC,dA(SA(n)),oC);break;case"cols":case"rows":case"size":case"span":"function"!=typeof n&&"symbol"!=typeof n&&!isNaN(n)&&1<=n&&e.push(rC,dA(t),aC,dA(SA(n)),oC);break;case"rowSpan":case"start":"function"==typeof n||"symbol"==typeof n||isNaN(n)||e.push(rC,dA(t),aC,dA(SA(n)),oC);break;case"xlinkActuate":lC(e,"xlink:actuate",n);break;case"xlinkArcrole":lC(e,"xlink:arcrole",n);break;case"xlinkRole":lC(e,"xlink:role",n);break;case"xlinkShow":lC(e,"xlink:show",n);break;case"xlinkTitle":lC(e,"xlink:title",n);break;case"xlinkType":lC(e,"xlink:type",n);break;case"xmlBase":lC(e,"xml:base",n);break;case"xmlLang":lC(e,"xml:lang",n);break;case"xmlSpace":lC(e,"xml:space",n);break;default:if((!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&vA(t=wA.get(t)||t)){switch(typeof n){case"function":case"symbol":return;case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return}e.push(rC,dA(t),aC,dA(SA(n)),oC)}}}var gC=pA(">"),yC=pA("/>");function bC(e,t,n){if(null!=t){if(null!=n)throw Error(R_(60));if("object"!=typeof t||!("__html"in t))throw Error(R_(61));null!=(t=t.__html)&&e.push(dA(""+t))}}var vC=pA(' selected=""'),kC=pA('addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});');function wC(e,t){!(16&e.instructions)&&(e.instructions|=16,t.bootstrapChunks.unshift(t.startInlineScript,kC,LA))}var EC=pA("\x3c!--F!--\x3e"),SC=pA("\x3c!--F--\x3e");function TC(e,t){for(var n in e.push(LC("link")),t)if(mA.call(t,n)){var r=t[n];if(null!=r)switch(n){case"children":case"dangerouslySetInnerHTML":throw Error(R_(399,"link"));default:mC(e,n,r)}}return e.push(yC),null}var xC=/(<\/|<)(s)(tyle)/gi;function _C(e,t,n,r){return t+("s"===n?"\\73 ":"\\53 ")+r}function AC(e,t,n){for(var r in e.push(LC(n)),t)if(mA.call(t,r)){var a=t[r];if(null!=a)switch(r){case"children":case"dangerouslySetInnerHTML":throw Error(R_(399,n));default:mC(e,r,a)}}return e.push(yC),null}function CC(e,t){e.push(LC("title"));var n,r=null,a=null;for(n in t)if(mA.call(t,n)){var o=t[n];if(null!=o)switch(n){case"children":r=o;break;case"dangerouslySetInnerHTML":a=o;break;default:mC(e,n,o)}}return e.push(gC),"function"!=typeof(t=Array.isArray(r)?2>r.length?r[0]:null:r)&&"symbol"!=typeof t&&null!=t&&e.push(dA(SA(""+t))),bC(e,a,r),e.push(BC("title")),null}function IC(e,t){e.push(LC("script"));var n,r=null,a=null;for(n in t)if(mA.call(t,n)){var o=t[n];if(null!=o)switch(n){case"children":r=o;break;case"dangerouslySetInnerHTML":a=o;break;default:mC(e,n,o)}}return e.push(gC),bC(e,a,r),"string"==typeof r&&e.push(dA((""+r).replace(jA,UA))),e.push(BC("script")),null}function NC(e,t,n){e.push(LC(n));var r,a=n=null;for(r in t)if(mA.call(t,r)){var o=t[r];if(null!=o)switch(r){case"children":n=o;break;case"dangerouslySetInnerHTML":a=o;break;default:mC(e,r,o)}}return e.push(gC),bC(e,a,n),"string"==typeof n?(e.push(dA(SA(n))),null):n}var RC=pA("\n"),OC=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,PC=new Map;function LC(e){var t=PC.get(e);if(void 0===t){if(!OC.test(e))throw Error(R_(65,e));t=pA("<"+e),PC.set(e,t)}return t}var DC=pA("<!DOCTYPE html>");function MC(e,t,n,r,a,o,i,s,l){switch(t){case"div":case"span":case"svg":case"path":case"g":case"p":case"li":case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":break;case"a":e.push(LC("a"));var c,u=null,d=null;for(c in n)if(mA.call(n,c)){var p=n[c];if(null!=p)switch(c){case"children":u=p;break;case"dangerouslySetInnerHTML":d=p;break;case"href":""===p?lC(e,"href",""):mC(e,c,p);break;default:mC(e,c,p)}}if(e.push(gC),bC(e,d,u),"string"==typeof u){e.push(dA(SA(u)));var f=null}else f=u;return f;case"select":e.push(LC("select"));var h,m=null,g=null;for(h in n)if(mA.call(n,h)){var y=n[h];if(null!=y)switch(h){case"children":m=y;break;case"dangerouslySetInnerHTML":g=y;break;case"defaultValue":case"value":break;default:mC(e,h,y)}}return e.push(gC),bC(e,g,m),m;case"option":var b=i.selectedValue;e.push(LC("option"));var v,k=null,w=null,E=null,S=null;for(v in n)if(mA.call(n,v)){var T=n[v];if(null!=T)switch(v){case"children":k=T;break;case"selected":E=T;break;case"dangerouslySetInnerHTML":S=T;break;case"value":w=T;default:mC(e,v,T)}}if(null!=b){var x=null!==w?""+w:function(e){var t="";return I_.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(k);if(Q_(b)){for(var _=0;_<b.length;_++)if(""+b[_]===x){e.push(vC);break}}else""+b===x&&e.push(vC)}else E&&e.push(vC);return e.push(gC),bC(e,S,k),k;case"textarea":e.push(LC("textarea"));var A,C=null,I=null,N=null;for(A in n)if(mA.call(n,A)){var R=n[A];if(null!=R)switch(A){case"children":N=R;break;case"value":C=R;break;case"defaultValue":I=R;break;case"dangerouslySetInnerHTML":throw Error(R_(91));default:mC(e,A,R)}}if(null===C&&null!==I&&(C=I),e.push(gC),null!=N){if(null!=C)throw Error(R_(92));if(Q_(N)){if(1<N.length)throw Error(R_(93));C=""+N[0]}C=""+N}return"string"==typeof C&&"\n"===C[0]&&e.push(RC),null!==C&&e.push(dA(SA(""+C))),null;case"input":e.push(LC("input"));var O,P=null,L=null,D=null,M=null,F=null,B=null,z=null,H=null,j=null;for(O in n)if(mA.call(n,O)){var U=n[O];if(null!=U)switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(R_(399,"input"));case"name":P=U;break;case"formAction":L=U;break;case"formEncType":D=U;break;case"formMethod":M=U;break;case"formTarget":F=U;break;case"defaultChecked":j=U;break;case"defaultValue":z=U;break;case"checked":H=U;break;case"value":B=U;break;default:mC(e,O,U)}}var $=hC(e,r,a,L,D,M,F,P);return null!==H?sC(e,"checked",H):null!==j&&sC(e,"checked",j),null!==B?mC(e,"value",B):null!==z&&mC(e,"value",z),e.push(yC),null!=$&&$.forEach(dC,e),null;case"button":e.push(LC("button"));var G,V=null,W=null,q=null,Y=null,X=null,K=null,Q=null;for(G in n)if(mA.call(n,G)){var Z=n[G];if(null!=Z)switch(G){case"children":V=Z;break;case"dangerouslySetInnerHTML":W=Z;break;case"name":q=Z;break;case"formAction":Y=Z;break;case"formEncType":X=Z;break;case"formMethod":K=Z;break;case"formTarget":Q=Z;break;default:mC(e,G,Z)}}var J=hC(e,r,a,Y,X,K,Q,q);if(e.push(gC),null!=J&&J.forEach(dC,e),bC(e,W,V),"string"==typeof V){e.push(dA(SA(V)));var ee=null}else ee=V;return ee;case"form":e.push(LC("form"));var te,ne=null,re=null,ae=null,oe=null,ie=null,se=null;for(te in n)if(mA.call(n,te)){var le=n[te];if(null!=le)switch(te){case"children":ne=le;break;case"dangerouslySetInnerHTML":re=le;break;case"action":ae=le;break;case"encType":oe=le;break;case"method":ie=le;break;case"target":se=le;break;default:mC(e,te,le)}}var ce=null,ue=null;if("function"==typeof ae){var de=fC(r,ae);null!==de?(ae=de.action||"",oe=de.encType,ie=de.method,se=de.target,ce=de.data,ue=de.name):(e.push(rC,dA("action"),aC,cC,oC),se=ie=oe=ae=null,wC(r,a))}if(null!=ae&&mC(e,"action",ae),null!=oe&&mC(e,"encType",oe),null!=ie&&mC(e,"method",ie),null!=se&&mC(e,"target",se),e.push(gC),null!==ue&&(e.push(uC),lC(e,"name",ue),e.push(yC),null!=ce&&ce.forEach(dC,e)),bC(e,re,ne),"string"==typeof ne){e.push(dA(SA(ne)));var pe=null}else pe=ne;return pe;case"menuitem":for(var fe in e.push(LC("menuitem")),n)if(mA.call(n,fe)){var he=n[fe];if(null!=he)switch(fe){case"children":case"dangerouslySetInnerHTML":throw Error(R_(400));default:mC(e,fe,he)}}return e.push(gC),null;case"object":e.push(LC("object"));var me,ge=null,ye=null;for(me in n)if(mA.call(n,me)){var be=n[me];if(null!=be)switch(me){case"children":ge=be;break;case"dangerouslySetInnerHTML":ye=be;break;case"data":var ve=AA(""+be);if(""===ve)break;e.push(rC,dA("data"),aC,dA(SA(ve)),oC);break;default:mC(e,me,be)}}if(e.push(gC),bC(e,ye,ge),"string"==typeof ge){e.push(dA(SA(ge)));var ke=null}else ke=ge;return ke;case"title":if(3===i.insertionMode||1&i.tagScope||null!=n.itemProp)var we=CC(e,n);else l?we=null:(CC(a.hoistableChunks,n),we=void 0);return we;case"link":var Ee=n.rel,Se=n.href,Te=n.precedence;if(3===i.insertionMode||1&i.tagScope||null!=n.itemProp||"string"!=typeof Ee||"string"!=typeof Se||""===Se){TC(e,n);var xe=null}else if("stylesheet"===n.rel)if("string"!=typeof Te||null!=n.disabled||n.onLoad||n.onError)xe=TC(e,n);else{var _e=a.styles.get(Te),Ae=r.styleResources.hasOwnProperty(Se)?r.styleResources[Se]:void 0;if(null!==Ae){r.styleResources[Se]=null,_e||(_e={precedence:dA(SA(Te)),rules:[],hrefs:[],sheets:new Map},a.styles.set(Te,_e));var Ce={state:0,props:hA({},n,{"data-precedence":n.precedence,precedence:null})};if(Ae){2===Ae.length&&pN(Ce.props,Ae);var Ie=a.preloads.stylesheets.get(Se);Ie&&0<Ie.length?Ie.length=0:Ce.state=1}_e.sheets.set(Se,Ce),o&&o.stylesheets.add(Ce)}else if(_e){var Ne=_e.sheets.get(Se);Ne&&o&&o.stylesheets.add(Ne)}s&&e.push(KA),xe=null}else n.onLoad||n.onError?xe=TC(e,n):(s&&e.push(KA),xe=l?null:TC(a.hoistableChunks,n));return xe;case"script":var Re=n.async;if("string"!=typeof n.src||!n.src||!Re||"function"==typeof Re||"symbol"==typeof Re||n.onLoad||n.onError||3===i.insertionMode||1&i.tagScope||null!=n.itemProp)var Oe=IC(e,n);else{var Pe=n.src;if("module"===n.type)var Le=r.moduleScriptResources,De=a.preloads.moduleScripts;else Le=r.scriptResources,De=a.preloads.scripts;var Me=Le.hasOwnProperty(Pe)?Le[Pe]:void 0;if(null!==Me){Le[Pe]=null;var Fe=n;if(Me){2===Me.length&&pN(Fe=hA({},n),Me);var Be=De.get(Pe);Be&&(Be.length=0)}var ze=[];a.scripts.add(ze),IC(ze,Fe)}s&&e.push(KA),Oe=null}return Oe;case"style":var He=n.precedence,je=n.href;if(3===i.insertionMode||1&i.tagScope||null!=n.itemProp||"string"!=typeof He||"string"!=typeof je||""===je){e.push(LC("style"));var Ue,$e=null,Ge=null;for(Ue in n)if(mA.call(n,Ue)){var Ve=n[Ue];if(null!=Ve)switch(Ue){case"children":$e=Ve;break;case"dangerouslySetInnerHTML":Ge=Ve;break;default:mC(e,Ue,Ve)}}e.push(gC);var We=Array.isArray($e)?2>$e.length?$e[0]:null:$e;"function"!=typeof We&&"symbol"!=typeof We&&null!=We&&e.push(dA((""+We).replace(xC,_C))),bC(e,Ge,$e),e.push(BC("style"));var qe=null}else{var Ye=a.styles.get(He);if(null!==(r.styleResources.hasOwnProperty(je)?r.styleResources[je]:void 0)){r.styleResources[je]=null,Ye?Ye.hrefs.push(dA(SA(je))):(Ye={precedence:dA(SA(He)),rules:[],hrefs:[dA(SA(je))],sheets:new Map},a.styles.set(He,Ye));var Xe,Ke=Ye.rules,Qe=null,Ze=null;for(Xe in n)if(mA.call(n,Xe)){var Je=n[Xe];if(null!=Je)switch(Xe){case"children":Qe=Je;break;case"dangerouslySetInnerHTML":Ze=Je}}var et=Array.isArray(Qe)?2>Qe.length?Qe[0]:null:Qe;"function"!=typeof et&&"symbol"!=typeof et&&null!=et&&Ke.push(dA((""+et).replace(xC,_C))),bC(Ke,Ze,Qe)}Ye&&o&&o.styles.add(Ye),s&&e.push(KA),qe=void 0}return qe;case"meta":if(3===i.insertionMode||1&i.tagScope||null!=n.itemProp)var tt=AC(e,n,"meta");else s&&e.push(KA),tt=l?null:"string"==typeof n.charSet?AC(a.charsetChunks,n,"meta"):"viewport"===n.name?AC(a.viewportChunks,n,"meta"):AC(a.hoistableChunks,n,"meta");return tt;case"listing":case"pre":e.push(LC(t));var nt,rt=null,at=null;for(nt in n)if(mA.call(n,nt)){var ot=n[nt];if(null!=ot)switch(nt){case"children":rt=ot;break;case"dangerouslySetInnerHTML":at=ot;break;default:mC(e,nt,ot)}}if(e.push(gC),null!=at){if(null!=rt)throw Error(R_(60));if("object"!=typeof at||!("__html"in at))throw Error(R_(61));var it=at.__html;null!=it&&("string"==typeof it&&0<it.length&&"\n"===it[0]?e.push(RC,dA(it)):e.push(dA(""+it)))}return"string"==typeof rt&&"\n"===rt[0]&&e.push(RC),rt;case"img":var st=n.src,lt=n.srcSet;if(!("lazy"===n.loading||!st&&!lt||"string"!=typeof st&&null!=st||"string"!=typeof lt&&null!=lt)&&"low"!==n.fetchPriority&&!1==!!(3&i.tagScope)&&("string"!=typeof st||":"!==st[4]||"d"!==st[0]&&"D"!==st[0]||"a"!==st[1]&&"A"!==st[1]||"t"!==st[2]&&"T"!==st[2]||"a"!==st[3]&&"A"!==st[3])&&("string"!=typeof lt||":"!==lt[4]||"d"!==lt[0]&&"D"!==lt[0]||"a"!==lt[1]&&"A"!==lt[1]||"t"!==lt[2]&&"T"!==lt[2]||"a"!==lt[3]&&"A"!==lt[3])){var ct="string"==typeof n.sizes?n.sizes:void 0,ut=lt?lt+"\n"+(ct||""):st,dt=a.preloads.images,pt=dt.get(ut);if(pt)("high"===n.fetchPriority||10>a.highImagePreloads.size)&&(dt.delete(ut),a.highImagePreloads.add(pt));else if(!r.imageResources.hasOwnProperty(ut)){r.imageResources[ut]=OA;var ft,ht=n.crossOrigin,mt="string"==typeof ht?"use-credentials"===ht?ht:"":void 0,gt=a.headers;gt&&0<gt.remainingCapacity&&("high"===n.fetchPriority||500>gt.highImagePreloads.length)&&(ft=fN(st,"image",{imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:mt,integrity:n.integrity,nonce:n.nonce,type:n.type,fetchPriority:n.fetchPriority,referrerPolicy:n.refererPolicy}),0<=(gt.remainingCapacity-=ft.length+2))?(a.resets.image[ut]=OA,gt.highImagePreloads&&(gt.highImagePreloads+=", "),gt.highImagePreloads+=ft):(TC(pt=[],{rel:"preload",as:"image",href:lt?void 0:st,imageSrcSet:lt,imageSizes:ct,crossOrigin:mt,integrity:n.integrity,type:n.type,fetchPriority:n.fetchPriority,referrerPolicy:n.referrerPolicy}),"high"===n.fetchPriority||10>a.highImagePreloads.size?a.highImagePreloads.add(pt):(a.bulkPreloads.add(pt),dt.set(ut,pt)))}}return AC(e,n,"img");case"base":case"area":case"br":case"col":case"embed":case"hr":case"keygen":case"param":case"source":case"track":case"wbr":return AC(e,n,t);case"head":if(2>i.insertionMode&&null===a.headChunks){a.headChunks=[];var yt=NC(a.headChunks,n,"head")}else yt=NC(e,n,"head");return yt;case"html":if(0===i.insertionMode&&null===a.htmlChunks){a.htmlChunks=[DC];var bt=NC(a.htmlChunks,n,"html")}else bt=NC(e,n,"html");return bt;default:if(-1!==t.indexOf("-")){e.push(LC(t));var vt,kt=null,wt=null;for(vt in n)if(mA.call(n,vt)){var Et=n[vt];if(null!=Et){var St=vt;switch(vt){case"children":kt=Et;break;case"dangerouslySetInnerHTML":wt=Et;break;case"style":nC(e,Et);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"className":St="class";default:if(vA(vt)&&"function"!=typeof Et&&"symbol"!=typeof Et&&!1!==Et){if(!0===Et)Et="";else if("object"==typeof Et)continue;e.push(rC,dA(St),aC,dA(SA(Et)),oC)}}}}return e.push(gC),bC(e,wt,kt),kt}}return NC(e,n,t)}var FC=new Map;function BC(e){var t=FC.get(e);return void 0===t&&(t=pA("</"+e+">"),FC.set(e,t)),t}function zC(e,t){t=t.bootstrapChunks;for(var n=0;n<t.length-1;n++)sA(e,t[n]);return!(n<t.length)||(n=t[n],t.length=0,lA(e,n))}var HC=pA('<template id="'),jC=pA('"></template>'),UC=pA("\x3c!--$--\x3e"),$C=pA('\x3c!--$?--\x3e<template id="'),GC=pA('"></template>'),VC=pA("\x3c!--$!--\x3e"),WC=pA("\x3c!--/$--\x3e"),qC=pA("<template"),YC=pA('"'),XC=pA(' data-dgst="');pA(' data-msg="'),pA(' data-stck="'),pA(' data-cstck="');var KC=pA("></template>");function QC(e,t,n){if(sA(e,$C),null===n)throw Error(R_(395));return sA(e,t.boundaryPrefix),sA(e,dA(n.toString(16))),lA(e,GC)}var ZC=pA('<div hidden id="'),JC=pA('">'),eI=pA("</div>"),tI=pA('<svg aria-hidden="true" style="display:none" id="'),nI=pA('">'),rI=pA("</svg>"),aI=pA('<math aria-hidden="true" style="display:none" id="'),oI=pA('">'),iI=pA("</math>"),sI=pA('<table hidden id="'),lI=pA('">'),cI=pA("</table>"),uI=pA('<table hidden><tbody id="'),dI=pA('">'),pI=pA("</tbody></table>"),fI=pA('<table hidden><tr id="'),hI=pA('">'),mI=pA("</tr></table>"),gI=pA('<table hidden><colgroup id="'),yI=pA('">'),bI=pA("</colgroup></table>");var vI=pA('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),kI=pA('$RS("'),wI=pA('","'),EI=pA('")<\/script>');pA('<template data-rsi="" data-sid="'),pA('" data-pid="');var SI=pA('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("'),TI=pA('$RC("'),xI=pA('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'),_I=pA('$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'),AI=pA('$RR("'),CI=pA('","'),II=pA('",'),NI=pA('"'),RI=pA(")<\/script>");pA('<template data-rci="" data-bid="'),pA('<template data-rri="" data-bid="'),pA('" data-sid="'),pA('" data-sty="');var OI=pA('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'),PI=pA('$RX("'),LI=pA('"'),DI=pA(","),MI=pA(")<\/script>");pA('<template data-rxi="" data-bid="'),pA('" data-dgst="'),pA('" data-msg="'),pA('" data-stck="'),pA('" data-cstck="');var FI=/[<\u2028\u2029]/g;var BI=/[&><\u2028\u2029]/g;function zI(e){return JSON.stringify(e).replace(BI,(function(e){switch(e){case"&":return"\\u0026";case">":return"\\u003e";case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}var HI=pA('<style media="not all" data-precedence="'),jI=pA('" data-href="'),UI=pA('">'),$I=pA("</style>"),GI=!1,VI=!0;function WI(e){var t=e.rules,n=e.hrefs,r=0;if(n.length){for(sA(this,HI),sA(this,e.precedence),sA(this,jI);r<n.length-1;r++)sA(this,n[r]),sA(this,eN);for(sA(this,n[r]),sA(this,UI),r=0;r<t.length;r++)sA(this,t[r]);VI=lA(this,$I),GI=!0,t.length=0,n.length=0}}function qI(e){return 2!==e.state&&(GI=!0)}function YI(e,t,n){return GI=!1,VI=!0,t.styles.forEach(WI,e),t.stylesheets.forEach(qI),GI&&(n.stylesToHoist=!0),VI}function XI(e){for(var t=0;t<e.length;t++)sA(this,e[t]);e.length=0}var KI=[];function QI(e){TC(KI,e.props);for(var t=0;t<KI.length;t++)sA(this,KI[t]);KI.length=0,e.state=2}var ZI=pA('<style data-precedence="'),JI=pA('" data-href="'),eN=pA(" "),tN=pA('">'),nN=pA("</style>");function rN(e){var t=0<e.sheets.size;e.sheets.forEach(QI,this),e.sheets.clear();var n=e.rules,r=e.hrefs;if(!t||r.length){if(sA(this,ZI),sA(this,e.precedence),e=0,r.length){for(sA(this,JI);e<r.length-1;e++)sA(this,r[e]),sA(this,eN);sA(this,r[e])}for(sA(this,tN),e=0;e<n.length;e++)sA(this,n[e]);sA(this,nN),n.length=0,r.length=0}}function aN(e){if(0===e.state){e.state=1;var t=e.props;for(TC(KI,{rel:"preload",as:"style",href:e.props.href,crossOrigin:t.crossOrigin,fetchPriority:t.fetchPriority,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy}),e=0;e<KI.length;e++)sA(this,KI[e]);KI.length=0}}function oN(e){e.sheets.forEach(aN,this),e.sheets.clear()}var iN=pA("["),sN=pA(",["),lN=pA(","),cN=pA("]");function uN(e,t,n){var r=t.toLowerCase();switch(typeof n){case"function":case"symbol":return}switch(t){case"innerHTML":case"dangerouslySetInnerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"style":case"ref":return;case"className":r="class",t=""+n;break;case"hidden":if(!1===n)return;t="";break;case"src":case"href":t=""+(n=AA(n));break;default:if(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])||!vA(t))return;t=""+n}sA(e,lN),sA(e,dA(zI(r))),sA(e,lN),sA(e,dA(zI(t)))}function dN(){return{styles:new Set,stylesheets:new Set}}function pN(e,t){null==e.crossOrigin&&(e.crossOrigin=t[0]),null==e.integrity&&(e.integrity=t[1])}function fN(e,t,n){for(var r in t="<"+(e=(""+e).replace(hN,mN))+'>; rel=preload; as="'+(t=(""+t).replace(gN,yN))+'"',n)mA.call(n,r)&&("string"==typeof(e=n[r])&&(t+="; "+r.toLowerCase()+'="'+(""+e).replace(gN,yN)+'"'));return t}var hN=/[<>\r\n]/g;function mN(e){switch(e){case"<":return"%3C";case">":return"%3E";case"\n":return"%0A";case"\r":return"%0D";default:throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}var gN=/["';,\r\n]/g;function yN(e){switch(e){case'"':return"%22";case"'":return"%27";case";":return"%3B";case",":return"%2C";case"\n":return"%0A";case"\r":return"%0D";default:throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function bN(e){this.styles.add(e)}function vN(e){this.stylesheets.add(e)}var kN=Function.prototype.bind,wN=Symbol.for("react.client.reference");function EN(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===wN?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case L_:return"Fragment";case P_:return"Portal";case M_:return"Profiler";case D_:return"StrictMode";case j_:return"Suspense";case U_:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case z_:return(e.displayName||"Context")+".Provider";case B_:return(e._context.displayName||"Context")+".Consumer";case H_:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case $_:return null!==(t=e.displayName||null)?t:EN(e.type)||"Memo";case G_:t=e._payload,e=e._init;try{return EN(e(t))}catch(n){}}return null}var SN={},TN=null;function xN(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(R_(401))}else{if(null===n)throw Error(R_(401));xN(e,n)}t.context._currentValue=t.value}}function _N(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&_N(e)}function AN(e){var t=e.parent;null!==t&&AN(t),e.context._currentValue=e.value}function CN(e,t){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(R_(402));e.depth===t.depth?xN(e,t):CN(e,t)}function IN(e,t){var n=t.parent;if(null===n)throw Error(R_(402));e.depth===n.depth?xN(e,n):IN(e,n),t.context._currentValue=t.value}function NN(e){var t=TN;t!==e&&(null===t?AN(e):null===e?_N(t):t.depth===e.depth?xN(t,e):t.depth>e.depth?CN(t,e):IN(t,e),TN=e)}var RN={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}},ON={id:1,overflow:""};function PN(e,t,n){var r=e.id;e=e.overflow;var a=32-LN(r)-1;r&=~(1<<a),n+=1;var o=32-LN(t)+a;if(30<o){var i=a-a%5;return o=(r&(1<<i)-1).toString(32),r>>=i,a-=i,{id:1<<32-LN(t)+a|n<<a|r,overflow:o+e}}return{id:1<<o|n<<a|r,overflow:e}}var LN=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(DN(e)/MN|0)|0},DN=Math.log,MN=Math.LN2;var FN=Error(R_(460));function BN(){}var zN=null;function HN(){if(null===zN)throw Error(R_(459));var e=zN;return zN=null,e}var jN="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},UN=null,$N=null,GN=null,VN=null,WN=null,qN=null,YN=!1,XN=!1,KN=0,QN=0,ZN=-1,JN=0,eR=null,tR=null,nR=0;function rR(){if(null===UN)throw Error(R_(321));return UN}function aR(){if(0<nR)throw Error(R_(312));return{memoizedState:null,queue:null,next:null}}function oR(){return null===qN?null===WN?(YN=!1,WN=qN=aR()):(YN=!0,qN=WN):null===qN.next?(YN=!1,qN=qN.next=aR()):(YN=!0,qN=qN.next),qN}function iR(){var e=eR;return eR=null,e}function sR(){VN=GN=$N=UN=null,XN=!1,WN=null,nR=0,qN=tR=null}function lR(e,t){return"function"==typeof t?t(e):t}function cR(e,t,n){if(UN=rR(),qN=oR(),YN){var r=qN.queue;if(t=r.dispatch,null!==tR&&void 0!==(n=tR.get(r))){tR.delete(r),r=qN.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return qN.memoizedState=r,[r,t]}return[qN.memoizedState,t]}return e=e===lR?"function"==typeof t?t():t:void 0!==n?n(t):t,qN.memoizedState=e,e=(e=qN.queue={last:null,dispatch:null}).dispatch=dR.bind(null,UN,e),[qN.memoizedState,e]}function uR(e,t){if(UN=rR(),t=void 0===t?null:t,null!==(qN=oR())){var n=qN.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var a=0;a<r.length&&a<t.length;a++)if(!jN(t[a],r[a])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),qN.memoizedState=[e,t],e}function dR(e,t,n){if(25<=nR)throw Error(R_(301));if(e===UN)if(XN=!0,e={action:n,next:null},null===tR&&(tR=new Map),void 0===(n=tR.get(t)))tR.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function pR(){throw Error(R_(394))}function fR(){throw Error(R_(479))}function hR(e,t,n){rR();var r=QN++,a=GN;if("function"==typeof e.$$FORM_ACTION){var o=null,i=VN;a=a.formState;var s=e.$$IS_SIGNATURE_EQUAL;if(null!==a&&"function"==typeof s){var l=a[1];s.call(e,a[2],a[3])&&(l===(o=void 0!==n?"p"+n:"k"+Z_(JSON.stringify([i,null,r]),0))&&(ZN=r,t=a[0]))}var c=e.bind(null,t);return e=function(e){c(e)},"function"==typeof c.$$FORM_ACTION&&(e.$$FORM_ACTION=function(e){e=c.$$FORM_ACTION(e),void 0!==n&&(n+="",e.action=n);var t=e.data;return t&&(null===o&&(o=void 0!==n?"p"+n:"k"+Z_(JSON.stringify([i,null,r]),0)),t.append("$ACTION_KEY",o)),e}),[t,e,!1]}var u=e.bind(null,t);return[t,function(e){u(e)},!1]}function mR(e){var t=JN;return JN+=1,null===eR&&(eR=[]),function(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(BN,BN),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch("string"==typeof t.status?t.then(BN,BN):((e=t).status="pending",e.then((function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}}),(function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}}))),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}throw zN=t,FN}}(eR,e,t)}function gR(){throw Error(R_(393))}function yR(){}var bR={readContext:function(e){return e._currentValue},use:function(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return mR(e);if(e.$$typeof===z_)return e._currentValue}throw Error(R_(438,String(e)))},useContext:function(e){return rR(),e._currentValue},useMemo:uR,useReducer:cR,useRef:function(e){UN=rR();var t=(qN=oR()).memoizedState;return null===t?(e={current:e},qN.memoizedState=e):t},useState:function(e){return cR(lR,e)},useInsertionEffect:yR,useLayoutEffect:yR,useCallback:function(e,t){return uR((function(){return e}),t)},useImperativeHandle:yR,useEffect:yR,useDebugValue:yR,useDeferredValue:function(e,t){return rR(),void 0!==t?t:e},useTransition:function(){return rR(),[!1,pR]},useId:function(){var e=$N.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-LN(e)-1)).toString(32)+t;var n=wR;if(null===n)throw Error(R_(404));return t=KN++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(R_(407));return n()},useCacheRefresh:function(){return gR},useMemoCache:function(e){for(var t=Array(e),n=0;n<e;n++)t[n]=X_;return t},useHostTransitionStatus:function(){return rR(),NA},useOptimistic:function(e){return rR(),[e,fR]}};bR.useFormState=hR,bR.useActionState=hR;var vR,kR,wR=null,ER={getCacheForType:function(){throw Error(R_(248))}};function SR(e){if(void 0===vR)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);vR=t&&t[1]||"",kR=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+vR+e+kR}var TR=!1;function xR(e,t){if(!e||TR)return"";TR=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(a){var r=a}Reflect.construct(e,[],n)}else{try{n.call()}catch(o){r=o}e.call(n.prototype)}}else{try{throw Error()}catch(i){r=i}(n=e())&&"function"==typeof n.catch&&n.catch((function(){}))}}catch(s){if(s&&r&&"string"==typeof s.stack)return[s.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=r.DetermineComponentFrameRoot(),i=o[0],s=o[1];if(i&&s){var l=i.split("\n"),c=s.split("\n");for(a=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;a<c.length&&!c[a].includes("DetermineComponentFrameRoot");)a++;if(r===l.length||a===c.length)for(r=l.length-1,a=c.length-1;1<=r&&0<=a&&l[r]!==c[a];)a--;for(;1<=r&&0<=a;r--,a--)if(l[r]!==c[a]){if(1!==r||1!==a)do{if(r--,0>--a||l[r]!==c[a]){var u="\n"+l[r].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=r&&0<=a);break}}}finally{TR=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?SR(n):""}function _R(e){if("string"==typeof e)return SR(e);if("function"==typeof e)return e.prototype&&e.prototype.isReactComponent?e=xR(e,!0):xR(e,!1);if("object"==typeof e&&null!==e){switch(e.$$typeof){case H_:return xR(e.render,!1);case $_:return xR(e.type,!1);case G_:var t=e,n=t._payload;t=t._init;try{e=t(n)}catch(r){return SR("Lazy")}return _R(e)}if("string"==typeof e.name)return n=e.env,SR(e.name+(n?" ["+n+"]":""))}switch(e){case U_:return SR("SuspenseList");case j_:return SR("Suspense")}return""}function AR(e){if("object"==typeof e&&null!==e&&"string"==typeof e.environmentName){var t=e.environmentName;"string"==typeof(e=[e].slice(0))[0]?e.splice(0,1,"%c%s%c "+e[0],"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+t+" ",""):e.splice(0,0,"%c%s%c ","background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+t+" ",""),e.unshift(console),(t=kN.apply(console.error,e))()}else console.error(e);return null}function CR(){}function IR(e,t,n,r,a,o,i,s,l,c,u){var d=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=e,this.renderState=t,this.rootFormatContext=n,this.progressiveChunkSize=void 0===r?12800:r,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedRootSegment=null,this.abortableTasks=d,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=void 0===a?AR:a,this.onPostpone=void 0===c?CR:c,this.onAllReady=void 0===o?CR:o,this.onShellReady=void 0===i?CR:i,this.onShellError=void 0===s?CR:s,this.onFatalError=void 0===l?CR:l,this.formState=void 0===u?null:u}function NR(e,t,n,r,a,o,i,s,l,c,u,d){return(n=BR(t=new IR(t,n,r,a,o,i,s,l,c,u,d),0,null,r,!1,!1)).parentFlushed=!0,zR(e=MR(t,null,e,-1,null,n,null,t.abortableTasks,null,r,null,ON,null,!1)),t.pingedTasks.push(e),t}var RR,OR,PR=null;function LR(e,t){e.pingedTasks.push(t),1===e.pingedTasks.length&&(e.flushScheduled=null!==e.destination,null!==e.trackedPostpones||10===e.status?aA((function(){return lO(e)})):tA((function(){return lO(e)})))}function DR(e,t){return{status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,completedSegments:[],byteSize:0,fallbackAbortableTasks:t,errorDigest:null,contentState:dN(),fallbackState:dN(),trackedContentKeyPath:null,trackedFallbackNode:null}}function MR(e,t,n,r,a,o,i,s,l,c,u,d,p,f){e.allPendingTasks++,null===a?e.pendingRootTasks++:a.pendingTasks++;var h={replay:null,node:n,childIndex:r,ping:function(){return LR(e,h)},blockedBoundary:a,blockedSegment:o,hoistableState:i,abortSet:s,keyPath:l,formatContext:c,context:u,treeContext:d,componentStack:p,thenableState:t,isFallback:f};return s.add(h),h}function FR(e,t,n,r,a,o,i,s,l,c,u,d,p,f){e.allPendingTasks++,null===o?e.pendingRootTasks++:o.pendingTasks++,n.pendingTasks++;var h={replay:n,node:r,childIndex:a,ping:function(){return LR(e,h)},blockedBoundary:o,blockedSegment:null,hoistableState:i,abortSet:s,keyPath:l,formatContext:c,context:u,treeContext:d,componentStack:p,thenableState:t,isFallback:f};return s.add(h),h}function BR(e,t,n,r,a,o){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],parentFormatContext:r,boundary:n,lastPushedText:a,textEmbedded:o}}function zR(e){var t=e.node;if("object"==typeof t&&null!==t&&t.$$typeof===O_)e.componentStack={parent:e.componentStack,type:t.type}}function HR(e){var t={};return e&&Object.defineProperty(t,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var n="",r=e;do{n+=_R(r.type),r=r.parent}while(r);var a=n}catch(o){a="\nError generating stack: "+o.message+"\n"+o.stack}return Object.defineProperty(t,"componentStack",{value:a}),a}}),t}function jR(e,t,n){if(null==(t=(e=e.onError)(t,n))||"string"==typeof t)return t}function UR(e,t){var n=e.onShellError,r=e.onFatalError;n(t),r(t),null!==e.destination?(e.status=14,fA(e.destination,t)):(e.status=13,e.fatalError=t)}function $R(e,t,n,r,a,o){var i=t.thenableState;for(t.thenableState=null,UN={},$N=t,GN=e,VN=n,QN=KN=0,ZN=-1,JN=0,eR=i,e=r(a,o);XN;)XN=!1,QN=KN=0,ZN=-1,JN=0,nR+=1,qN=null,e=r(a,o);return sR(),e}function GR(e,t,n,r,a,o,i){var s=!1;if(0!==o&&null!==e.formState){var l=t.blockedSegment;if(null!==l){s=!0,l=l.chunks;for(var c=0;c<o;c++)c===i?l.push(EC):l.push(SC)}}o=t.keyPath,t.keyPath=n,a?(n=t.treeContext,t.treeContext=PN(n,1,0),JR(e,t,r,-1),t.treeContext=n):s?JR(e,t,r,-1):qR(e,t,r,-1),t.keyPath=o}function VR(e,t,n,r,a,o){if("function"==typeof r)if(r.prototype&&r.prototype.isReactComponent){var i=a;if("ref"in a)for(var s in i={},a)"ref"!==s&&(i[s]=a[s]);var l=r.defaultProps;if(l)for(var c in i===a&&(i=hA({},i,a)),l)void 0===i[c]&&(i[c]=l[c]);a=i,i=SN,"object"==typeof(l=r.contextType)&&null!==l&&(i=l._currentValue);var u=void 0!==(i=new r(a,i)).state?i.state:null;if(i.updater=RN,i.props=a,i.state=u,l={queue:[],replace:!1},i._reactInternals=l,o=r.contextType,i.context="object"==typeof o&&null!==o?o._currentValue:SN,"function"==typeof(o=r.getDerivedStateFromProps)&&(u=null==(o=o(a,u))?u:hA({},u,o),i.state=u),"function"!=typeof r.getDerivedStateFromProps&&"function"!=typeof i.getSnapshotBeforeUpdate&&("function"==typeof i.UNSAFE_componentWillMount||"function"==typeof i.componentWillMount))if(r=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),r!==i.state&&RN.enqueueReplaceState(i,i.state,null),null!==l.queue&&0<l.queue.length)if(r=l.queue,o=l.replace,l.queue=null,l.replace=!1,o&&1===r.length)i.state=r[0];else{for(l=o?r[0]:i.state,u=!0,o=o?1:0;o<r.length;o++)null!=(c="function"==typeof(c=r[o])?c.call(i,l,a,void 0):c)&&(u?(u=!1,l=hA({},l,c)):hA(l,c));i.state=l}else l.queue=null;if(r=i.render(),12===e.status)throw null;a=t.keyPath,t.keyPath=n,qR(e,t,r,-1),t.keyPath=a}else{if(r=$R(e,t,n,r,a,void 0),12===e.status)throw null;GR(e,t,n,r,0!==KN,QN,ZN)}else{if("string"!=typeof r){switch(r){case Y_:case W_:case D_:case M_:case L_:return r=t.keyPath,t.keyPath=n,qR(e,t,a.children,-1),void(t.keyPath=r);case q_:return void("hidden"!==a.mode&&(r=t.keyPath,t.keyPath=n,qR(e,t,a.children,-1),t.keyPath=r));case U_:return r=t.keyPath,t.keyPath=n,qR(e,t,a.children,-1),void(t.keyPath=r);case V_:throw Error(R_(343));case j_:e:if(null!==t.replay){r=t.keyPath,t.keyPath=n,n=a.children;try{JR(e,t,n,-1)}finally{t.keyPath=r}}else{r=t.keyPath;var d=t.blockedBoundary,p=t.hoistableState;o=t.blockedSegment,c=a.fallback,a=a.children;var f=new Set;s=DR(0,f),null!==e.trackedPostpones&&(s.trackedContentKeyPath=n);var h=BR(0,o.chunks.length,s,t.formatContext,!1,!1);o.children.push(h),o.lastPushedText=!1;var m=BR(0,0,null,t.formatContext,!1,!1);if(m.parentFlushed=!0,null!==e.trackedPostpones){l=[(i=[n[0],"Suspense Fallback",n[2]])[1],i[2],[],null],e.trackedPostpones.workingMap.set(i,l),s.trackedFallbackNode=l,t.blockedSegment=h,t.keyPath=i,h.status=6;try{JR(e,t,c,-1),h.lastPushedText&&h.textEmbedded&&h.chunks.push(KA),h.status=1}catch(g){throw h.status=12===e.status?3:4,g}finally{t.blockedSegment=o,t.keyPath=r}zR(t=MR(e,null,a,-1,s,m,s.contentState,t.abortSet,n,t.formatContext,t.context,t.treeContext,t.componentStack,t.isFallback)),e.pingedTasks.push(t)}else{t.blockedBoundary=s,t.hoistableState=s.contentState,t.blockedSegment=m,t.keyPath=n,m.status=6;try{if(JR(e,t,a,-1),m.lastPushedText&&m.textEmbedded&&m.chunks.push(KA),m.status=1,iO(s,m),0===s.pendingTasks&&0===s.status){s.status=1;break e}}catch(y){s.status=4,12===e.status?(m.status=3,i=e.fatalError):(m.status=4,i=y),u=jR(e,i,l=HR(t.componentStack)),s.errorDigest=u,KR(e,s)}finally{t.blockedBoundary=d,t.hoistableState=p,t.blockedSegment=o,t.keyPath=r}zR(t=MR(e,null,c,-1,d,h,s.fallbackState,f,[n[0],"Suspense Fallback",n[2]],t.formatContext,t.context,t.treeContext,t.componentStack,!0)),e.pingedTasks.push(t)}}return}if("object"==typeof r&&null!==r)switch(r.$$typeof){case H_:if("ref"in a)for(h in i={},a)"ref"!==h&&(i[h]=a[h]);else i=a;return void GR(e,t,n,r=$R(e,t,n,r.render,i,o),0!==KN,QN,ZN);case $_:return void VR(e,t,n,r.type,a,o);case F_:case z_:if(l=a.children,i=t.keyPath,a=a.value,u=r._currentValue,r._currentValue=a,TN=r={parent:o=TN,depth:null===o?0:o.depth+1,context:r,parentValue:u,value:a},t.context=r,t.keyPath=n,qR(e,t,l,-1),null===(e=TN))throw Error(R_(403));return e.context._currentValue=e.parentValue,e=TN=e.parent,t.context=e,void(t.keyPath=i);case B_:return r=(a=a.children)(r._context._currentValue),a=t.keyPath,t.keyPath=n,qR(e,t,r,-1),void(t.keyPath=a);case G_:if(r=(i=r._init)(r._payload),12===e.status)throw null;return void VR(e,t,n,r,a,o)}throw Error(R_(130,null==r?r:typeof r,""))}if(null===(i=t.blockedSegment))i=a.children,l=t.formatContext,u=t.keyPath,t.formatContext=XA(l,r,a),t.keyPath=n,JR(e,t,i,-1),t.formatContext=l,t.keyPath=u;else{u=MC(i.chunks,r,a,e.resumableState,e.renderState,t.hoistableState,t.formatContext,i.lastPushedText,t.isFallback),i.lastPushedText=!1,l=t.formatContext,o=t.keyPath,t.formatContext=XA(l,r,a),t.keyPath=n,JR(e,t,u,-1),t.formatContext=l,t.keyPath=o;e:{switch(t=i.chunks,e=e.resumableState,r){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break e;case"body":if(1>=l.insertionMode){e.hasBody=!0;break e}break;case"html":if(0===l.insertionMode){e.hasHtml=!0;break e}}t.push(BC(r))}i.lastPushedText=!1}}}function WR(e,t,n,r,a){var o=t.replay,i=t.blockedBoundary,s=BR(0,0,null,t.formatContext,!1,!1);s.id=n,s.parentFlushed=!0;try{t.replay=null,t.blockedSegment=s,JR(e,t,r,a),s.status=1,null===i?e.completedRootSegment=s:(iO(i,s),i.parentFlushed&&e.partialBoundaries.push(i))}finally{t.replay=o,t.blockedSegment=null}}function qR(e,t,n,r){null!==t.replay&&"number"==typeof t.replay.slots?WR(e,t,t.replay.slots,n,r):(t.node=n,t.childIndex=r,n=t.componentStack,zR(t),YR(e,t),t.componentStack=n)}function YR(e,t){var n=t.node,r=t.childIndex;if(null!==n){if("object"==typeof n){switch(n.$$typeof){case O_:var a=n.type,o=n.key,i=n.props,s=void 0!==(n=i.ref)?n:null,l=EN(a),c=null==o?-1===r?0:r:o;if(o=[t.keyPath,l,c],null!==t.replay)e:{var u=t.replay;for(r=u.nodes,n=0;n<r.length;n++){var d=r[n];if(c===d[1]){if(4===d.length){if(null!==l&&l!==d[0])throw Error(R_(490,d[0],l));var p=d[2];l=d[3],c=t.node,t.replay={nodes:p,slots:l,pendingTasks:1};try{if(VR(e,t,o,a,i,s),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(R_(488));t.replay.pendingTasks--}catch(k){if("object"==typeof k&&null!==k&&(k===FN||"function"==typeof k.then))throw t.node===c&&(t.replay=u),k;t.replay.pendingTasks--,i=HR(t.componentStack),tO(e,o=t.blockedBoundary,p,l,a=k,i=jR(e,a,i))}t.replay=u}else{if(a!==j_)throw Error(R_(490,"Suspense",EN(a)||"Unknown"));t:{u=void 0,a=d[5],s=d[2],l=d[3],c=null===d[4]?[]:d[4][2],d=null===d[4]?null:d[4][3];var f=t.keyPath,h=t.replay,m=t.blockedBoundary,g=t.hoistableState,y=i.children;i=i.fallback;var b=new Set,v=DR(0,b);v.parentFlushed=!0,v.rootSegmentID=a,t.blockedBoundary=v,t.hoistableState=v.contentState,t.keyPath=o,t.replay={nodes:s,slots:l,pendingTasks:1};try{if(JR(e,t,y,-1),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(R_(488));if(t.replay.pendingTasks--,0===v.pendingTasks&&0===v.status){v.status=1,e.completedBoundaries.push(v);break t}}catch(w){v.status=4,u=jR(e,w,p=HR(t.componentStack)),v.errorDigest=u,t.replay.pendingTasks--,e.clientRenderedBoundaries.push(v)}finally{t.blockedBoundary=m,t.hoistableState=g,t.replay=h,t.keyPath=f}zR(t=FR(e,null,{nodes:c,slots:d,pendingTasks:0},i,-1,m,v.fallbackState,b,[o[0],"Suspense Fallback",o[2]],t.formatContext,t.context,t.treeContext,t.componentStack,!0)),e.pingedTasks.push(t)}}r.splice(n,1);break e}}}else VR(e,t,o,a,i,s);return;case P_:throw Error(R_(257));case G_:if(n=(p=n._init)(n._payload),12===e.status)throw null;return void qR(e,t,n,r)}if(Q_(n))return void XR(e,t,n,r);if(null===n||"object"!=typeof n?p=null:p="function"==typeof(p=K_&&n[K_]||n["@@iterator"])?p:null,p&&(p=p.call(n))){if(!(n=p.next()).done){i=[];do{i.push(n.value),n=p.next()}while(!n.done);XR(e,t,i,r)}return}if("function"==typeof n.then)return t.thenableState=null,qR(e,t,mR(n),r);if(n.$$typeof===z_)return qR(e,t,n._currentValue,r);throw r=Object.prototype.toString.call(n),Error(R_(31,"[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r))}"string"==typeof n?null!==(r=t.blockedSegment)&&(r.lastPushedText=QA(r.chunks,n,e.renderState,r.lastPushedText)):"number"!=typeof n&&"bigint"!=typeof n||null!==(r=t.blockedSegment)&&(r.lastPushedText=QA(r.chunks,""+n,e.renderState,r.lastPushedText))}}function XR(e,t,n,r){var a=t.keyPath;if(-1===r||(t.keyPath=[t.keyPath,"Fragment",r],null===t.replay)){if(o=t.treeContext,i=n.length,null!==t.replay&&(null!==(s=t.replay.slots)&&"object"==typeof s)){for(r=0;r<i;r++)l=n[r],t.treeContext=PN(o,i,r),"number"==typeof(c=s[r])?(WR(e,t,c,l,r),delete s[r]):JR(e,t,l,r);return t.treeContext=o,void(t.keyPath=a)}for(s=0;s<i;s++)r=n[s],t.treeContext=PN(o,i,s),JR(e,t,r,s);t.treeContext=o,t.keyPath=a}else{for(var o=t.replay,i=o.nodes,s=0;s<i.length;s++){var l=i[s];if(l[1]===r){r=l[2],l=l[3],t.replay={nodes:r,slots:l,pendingTasks:1};try{if(XR(e,t,n,-1),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(R_(488));t.replay.pendingTasks--}catch(u){if("object"==typeof u&&null!==u&&(u===FN||"function"==typeof u.then))throw u;t.replay.pendingTasks--,n=HR(t.componentStack);var c=t.blockedBoundary;tO(e,c,r,l,u,n=jR(e,u,n))}t.replay=o,i.splice(s,1);break}}t.keyPath=a}}function KR(e,t){null!==(e=e.trackedPostpones)&&(null!==(t=t.trackedContentKeyPath)&&(void 0!==(t=e.workingMap.get(t))&&(t.length=4,t[2]=[],t[3]=null)))}function QR(e,t,n){return FR(e,n,t.replay,t.node,t.childIndex,t.blockedBoundary,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.componentStack,t.isFallback)}function ZR(e,t,n){var r=t.blockedSegment,a=BR(0,r.chunks.length,null,t.formatContext,r.lastPushedText,!0);return r.children.push(a),r.lastPushedText=!1,MR(e,n,t.node,t.childIndex,t.blockedBoundary,a,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.componentStack,t.isFallback)}function JR(e,t,n,r){var a=t.formatContext,o=t.context,i=t.keyPath,s=t.treeContext,l=t.componentStack,c=t.blockedSegment;if(null===c)try{return qR(e,t,n,r)}catch(p){if(sR(),"object"==typeof(n=p===FN?HN():p)&&null!==n){if("function"==typeof n.then)return e=QR(e,t,r=iR()).ping,n.then(e,e),t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,t.componentStack=l,void NN(o);if("Maximum call stack size exceeded"===n.message)return n=QR(e,t,n=iR()),e.pingedTasks.push(n),t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,t.componentStack=l,void NN(o)}}else{var u=c.children.length,d=c.chunks.length;try{return qR(e,t,n,r)}catch(f){if(sR(),c.children.length=u,c.chunks.length=d,"object"==typeof(n=f===FN?HN():f)&&null!==n){if("function"==typeof n.then)return e=ZR(e,t,r=iR()).ping,n.then(e,e),t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,t.componentStack=l,void NN(o);if("Maximum call stack size exceeded"===n.message)return n=ZR(e,t,n=iR()),e.pingedTasks.push(n),t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,t.componentStack=l,void NN(o)}}}throw t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,NN(o),n}function eO(e){var t=e.blockedBoundary;null!==(e=e.blockedSegment)&&(e.status=3,sO(this,t,e))}function tO(e,t,n,r,a,o){for(var i=0;i<n.length;i++){var s=n[i];if(4===s.length)tO(e,t,s[2],s[3],a,o);else{s=s[5];var l=e,c=o,u=DR(0,new Set);u.parentFlushed=!0,u.rootSegmentID=s,u.status=4,u.errorDigest=c,u.parentFlushed&&l.clientRenderedBoundaries.push(u)}}if(n.length=0,null!==r){if(null===t)throw Error(R_(487));if(4!==t.status&&(t.status=4,t.errorDigest=o,t.parentFlushed&&e.clientRenderedBoundaries.push(t)),"object"==typeof r)for(var d in r)delete r[d]}}function nO(e,t,n){var r=e.blockedBoundary,a=e.blockedSegment;if(null!==a){if(6===a.status)return;a.status=3}if(a=HR(e.componentStack),null===r){if(13!==t.status&&14!==t.status){if(null===(r=e.replay))return jR(t,n,a),void UR(t,n);r.pendingTasks--,0===r.pendingTasks&&0<r.nodes.length&&(e=jR(t,n,a),tO(t,null,r.nodes,r.slots,n,e)),t.pendingRootTasks--,0===t.pendingRootTasks&&aO(t)}}else r.pendingTasks--,4!==r.status&&(r.status=4,e=jR(t,n,a),r.status=4,r.errorDigest=e,KR(t,r),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach((function(e){return nO(e,t,n)})),r.fallbackAbortableTasks.clear();t.allPendingTasks--,0===t.allPendingTasks&&oO(t)}function rO(e,t){try{var n=e.renderState,r=n.onHeaders;if(r){var a=n.headers;if(a){n.headers=null;var o=a.preconnects;if(a.fontPreloads&&(o&&(o+=", "),o+=a.fontPreloads),a.highImagePreloads&&(o&&(o+=", "),o+=a.highImagePreloads),!t){var i=n.styles.values(),s=i.next();e:for(;0<a.remainingCapacity&&!s.done;s=i.next())for(var l=s.value.sheets.values(),c=l.next();0<a.remainingCapacity&&!c.done;c=l.next()){var u=c.value,d=u.props,p=d.href,f=u.props,h=fN(f.href,"style",{crossOrigin:f.crossOrigin,integrity:f.integrity,nonce:f.nonce,type:f.type,fetchPriority:f.fetchPriority,referrerPolicy:f.referrerPolicy,media:f.media});if(!(0<=(a.remainingCapacity-=h.length+2)))break e;n.resets.style[p]=OA,o&&(o+=", "),o+=h,n.resets.style[p]="string"==typeof d.crossOrigin||"string"==typeof d.integrity?[d.crossOrigin,d.integrity]:OA}}r(o?{Link:o}:{})}}}catch(m){jR(e,m,{})}}function aO(e){null===e.trackedPostpones&&rO(e,!0),e.onShellError=CR,(e=e.onShellReady)()}function oO(e){rO(e,null===e.trackedPostpones||(null===e.completedRootSegment||5!==e.completedRootSegment.status)),(e=e.onAllReady)()}function iO(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary&&-1===t.children[0].id){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&iO(e,n)}else e.completedSegments.push(t)}function sO(e,t,n){if(null===t){if(null!==n&&n.parentFlushed){if(null!==e.completedRootSegment)throw Error(R_(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&aO(e)}else t.pendingTasks--,4!==t.status&&(0===t.pendingTasks?(0===t.status&&(t.status=1),null!==n&&n.parentFlushed&&1===n.status&&iO(t,n),t.parentFlushed&&e.completedBoundaries.push(t),1===t.status&&(t.fallbackAbortableTasks.forEach(eO,e),t.fallbackAbortableTasks.clear())):null!==n&&n.parentFlushed&&1===n.status&&(iO(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&oO(e)}function lO(e){if(14!==e.status&&13!==e.status){var t=TN,n=CA.H;CA.H=bR;var r=CA.A;CA.A=ER;var a=PR;PR=e;var o=wR;wR=e.resumableState;try{var i,s=e.pingedTasks;for(i=0;i<s.length;i++){var l=s[i],c=e,u=l.blockedSegment;if(null===u){var d=c;if(0!==l.replay.pendingTasks){NN(l.context);try{if("number"==typeof l.replay.slots?WR(d,l,l.replay.slots,l.node,l.childIndex):YR(d,l),1===l.replay.pendingTasks&&0<l.replay.nodes.length)throw Error(R_(488));l.replay.pendingTasks--,l.abortSet.delete(l),sO(d,l.blockedBoundary,null)}catch(T){sR();var p=T===FN?HN():T;if("object"==typeof p&&null!==p&&"function"==typeof p.then){var f=l.ping;p.then(f,f),l.thenableState=iR()}else{l.replay.pendingTasks--,l.abortSet.delete(l);var h=HR(l.componentStack);c=void 0;var m=d,g=l.blockedBoundary,y=12===d.status?d.fatalError:p;tO(m,g,l.replay.nodes,l.replay.slots,y,c=jR(m,y,h)),d.pendingRootTasks--,0===d.pendingRootTasks&&aO(d),d.allPendingTasks--,0===d.allPendingTasks&&oO(d)}}}}else if(d=void 0,0===(m=u).status){m.status=6,NN(l.context);var b=m.children.length,v=m.chunks.length;try{YR(c,l),m.lastPushedText&&m.textEmbedded&&m.chunks.push(KA),l.abortSet.delete(l),m.status=1,sO(c,l.blockedBoundary,m)}catch(T){sR(),m.children.length=b,m.chunks.length=v;var k=T===FN?HN():12===c.status?c.fatalError:T;if("object"==typeof k&&null!==k&&"function"==typeof k.then){m.status=0,l.thenableState=iR();var w=l.ping;k.then(w,w)}else{var E=HR(l.componentStack);l.abortSet.delete(l),m.status=4;var S=l.blockedBoundary;d=jR(c,k,E),null===S?UR(c,k):(S.pendingTasks--,4!==S.status&&(S.status=4,S.errorDigest=d,KR(c,S),S.parentFlushed&&c.clientRenderedBoundaries.push(S))),c.allPendingTasks--,0===c.allPendingTasks&&oO(c)}}}}s.splice(0,i),null!==e.destination&&hO(e,e.destination)}catch(x){jR(e,x,{}),UR(e,x)}finally{wR=o,CA.H=n,CA.A=r,n===bR&&NN(t),PR=a}}}function cO(e,t,n,r){switch(n.parentFlushed=!0,n.status){case 0:n.id=e.nextSegmentId++;case 5:return r=n.id,n.lastPushedText=!1,n.textEmbedded=!1,e=e.renderState,sA(t,HC),sA(t,e.placeholderPrefix),sA(t,e=dA(r.toString(16))),lA(t,jC);case 1:n.status=2;var a=!0,o=n.chunks,i=0;n=n.children;for(var s=0;s<n.length;s++){for(a=n[s];i<a.index;i++)sA(t,o[i]);a=uO(e,t,a,r)}for(;i<o.length-1;i++)sA(t,o[i]);return i<o.length&&(a=lA(t,o[i])),a;default:throw Error(R_(390))}}function uO(e,t,n,r){var a=n.boundary;if(null===a)return cO(e,t,n,r);if(a.parentFlushed=!0,4===a.status)a=a.errorDigest,lA(t,VC),sA(t,qC),a&&(sA(t,XC),sA(t,dA(SA(a))),sA(t,YC)),lA(t,KC),cO(e,t,n,r);else if(1!==a.status)0===a.status&&(a.rootSegmentID=e.nextSegmentId++),0<a.completedSegments.length&&e.partialBoundaries.push(a),QC(t,e.renderState,a.rootSegmentID),r&&((a=a.fallbackState).styles.forEach(bN,r),a.stylesheets.forEach(vN,r)),cO(e,t,n,r);else if(a.byteSize>e.progressiveChunkSize)a.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(a),QC(t,e.renderState,a.rootSegmentID),cO(e,t,n,r);else{if(r&&((n=a.contentState).styles.forEach(bN,r),n.stylesheets.forEach(vN,r)),lA(t,UC),1!==(n=a.completedSegments).length)throw Error(R_(391));uO(e,t,n[0],r)}return lA(t,WC)}function dO(e,t,n,r){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:case 2:return sA(e,ZC),sA(e,t.segmentPrefix),sA(e,dA(r.toString(16))),lA(e,JC);case 3:return sA(e,tI),sA(e,t.segmentPrefix),sA(e,dA(r.toString(16))),lA(e,nI);case 4:return sA(e,aI),sA(e,t.segmentPrefix),sA(e,dA(r.toString(16))),lA(e,oI);case 5:return sA(e,sI),sA(e,t.segmentPrefix),sA(e,dA(r.toString(16))),lA(e,lI);case 6:return sA(e,uI),sA(e,t.segmentPrefix),sA(e,dA(r.toString(16))),lA(e,dI);case 7:return sA(e,fI),sA(e,t.segmentPrefix),sA(e,dA(r.toString(16))),lA(e,hI);case 8:return sA(e,gI),sA(e,t.segmentPrefix),sA(e,dA(r.toString(16))),lA(e,yI);default:throw Error(R_(397))}}(t,e.renderState,n.parentFormatContext,n.id),uO(e,t,n,r),function(e,t){switch(t.insertionMode){case 0:case 1:case 2:return lA(e,eI);case 3:return lA(e,rI);case 4:return lA(e,iI);case 5:return lA(e,cI);case 6:return lA(e,pI);case 7:return lA(e,mI);case 8:return lA(e,bI);default:throw Error(R_(397))}}(t,n.parentFormatContext)}function pO(e,t,n){for(var r=n.completedSegments,a=0;a<r.length;a++)fO(e,t,n,r[a]);r.length=0,YI(t,n.contentState,e.renderState),r=e.resumableState,e=e.renderState,a=n.rootSegmentID,n=n.contentState;var o=e.stylesToHoist;return e.stylesToHoist=!1,sA(t,e.startInlineScript),o?2&r.instructions?8&r.instructions?sA(t,AI):(r.instructions|=8,sA(t,_I)):(r.instructions|=10,sA(t,xI)):2&r.instructions?sA(t,TI):(r.instructions|=2,sA(t,SI)),r=dA(a.toString(16)),sA(t,e.boundaryPrefix),sA(t,r),sA(t,CI),sA(t,e.segmentPrefix),sA(t,r),o?(sA(t,II),function(e,t){sA(e,iN);var n=iN;t.stylesheets.forEach((function(t){if(2!==t.state)if(3===t.state)sA(e,n),sA(e,dA(zI(""+t.props.href))),sA(e,cN),n=sN;else{sA(e,n);var r=t.props["data-precedence"],a=t.props,o=AA(""+t.props.href);for(var i in sA(e,dA(zI(o))),r=""+r,sA(e,lN),sA(e,dA(zI(r))),a)if(mA.call(a,i)&&null!=(r=a[i]))switch(i){case"href":case"rel":case"precedence":case"data-precedence":break;case"children":case"dangerouslySetInnerHTML":throw Error(R_(399,"link"));default:uN(e,i,r)}sA(e,cN),n=sN,t.state=3}})),sA(e,cN)}(t,n)):sA(t,NI),n=lA(t,RI),zC(t,e)&&n}function fO(e,t,n,r){if(2===r.status)return!0;var a=n.contentState,o=r.id;if(-1===o){if(-1===(r.id=n.rootSegmentID))throw Error(R_(392));return dO(e,t,r,a)}return o===n.rootSegmentID?dO(e,t,r,a):(dO(e,t,r,a),n=e.resumableState,sA(t,(e=e.renderState).startInlineScript),1&n.instructions?sA(t,kI):(n.instructions|=1,sA(t,vI)),sA(t,e.segmentPrefix),sA(t,o=dA(o.toString(16))),sA(t,wI),sA(t,e.placeholderPrefix),sA(t,o),t=lA(t,EI))}function hO(e,t){oA=new Uint8Array(2048),iA=0;try{if(!(0<e.pendingRootTasks)){var n,r=e.completedRootSegment;if(null!==r){if(5===r.status)return;var a,o=e.renderState,i=o.htmlChunks,s=o.headChunks;if(i){for(a=0;a<i.length;a++)sA(t,i[a]);if(s)for(a=0;a<s.length;a++)sA(t,s[a]);else sA(t,LC("head")),sA(t,gC)}else if(s)for(a=0;a<s.length;a++)sA(t,s[a]);var l=o.charsetChunks;for(a=0;a<l.length;a++)sA(t,l[a]);l.length=0,o.preconnects.forEach(XI,t),o.preconnects.clear();var c=o.viewportChunks;for(a=0;a<c.length;a++)sA(t,c[a]);c.length=0,o.fontPreloads.forEach(XI,t),o.fontPreloads.clear(),o.highImagePreloads.forEach(XI,t),o.highImagePreloads.clear(),o.styles.forEach(rN,t);var u=o.importMapChunks;for(a=0;a<u.length;a++)sA(t,u[a]);u.length=0,o.bootstrapScripts.forEach(XI,t),o.scripts.forEach(XI,t),o.scripts.clear(),o.bulkPreloads.forEach(XI,t),o.bulkPreloads.clear();var d=o.hoistableChunks;for(a=0;a<d.length;a++)sA(t,d[a]);d.length=0,i&&null===s&&sA(t,BC("head")),uO(e,t,r,null),e.completedRootSegment=null,zC(t,e.renderState)}var p=e.renderState;r=0;var f=p.viewportChunks;for(r=0;r<f.length;r++)sA(t,f[r]);f.length=0,p.preconnects.forEach(XI,t),p.preconnects.clear(),p.fontPreloads.forEach(XI,t),p.fontPreloads.clear(),p.highImagePreloads.forEach(XI,t),p.highImagePreloads.clear(),p.styles.forEach(oN,t),p.scripts.forEach(XI,t),p.scripts.clear(),p.bulkPreloads.forEach(XI,t),p.bulkPreloads.clear();var h=p.hoistableChunks;for(r=0;r<h.length;r++)sA(t,h[r]);h.length=0;var m=e.clientRenderedBoundaries;for(n=0;n<m.length;n++){var g=m[n];p=t;var y=e.resumableState,b=e.renderState,v=g.rootSegmentID,k=g.errorDigest;sA(p,b.startInlineScript),4&y.instructions?sA(p,PI):(y.instructions|=4,sA(p,OI)),sA(p,b.boundaryPrefix),sA(p,dA(v.toString(16))),sA(p,LI),k&&(sA(p,DI),sA(p,dA((C=k||"",JSON.stringify(C).replace(FI,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))))));var w=lA(p,MI);if(!w)return e.destination=null,n++,void m.splice(0,n)}m.splice(0,n);var E=e.completedBoundaries;for(n=0;n<E.length;n++)if(!pO(e,t,E[n]))return e.destination=null,n++,void E.splice(0,n);E.splice(0,n),cA(t),oA=new Uint8Array(2048),iA=0;var S=e.partialBoundaries;for(n=0;n<S.length;n++){var T=S[n];e:{m=e,g=t;var x=T.completedSegments;for(w=0;w<x.length;w++)if(!fO(m,g,T,x[w])){w++,x.splice(0,w);var _=!1;break e}x.splice(0,w),_=YI(g,T.contentState,m.renderState)}if(!_)return e.destination=null,n++,void S.splice(0,n)}S.splice(0,n);var A=e.completedBoundaries;for(n=0;n<A.length;n++)if(!pO(e,t,A[n]))return e.destination=null,n++,void A.splice(0,n);A.splice(0,n)}}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length?(e.flushScheduled=!1,(n=e.resumableState).hasBody&&sA(t,BC("body")),n.hasHtml&&sA(t,BC("html")),cA(t),e.status=14,t.close(),e.destination=null):cA(t)}var C}function mO(e){e.flushScheduled=null!==e.destination,aA((function(){return lO(e)})),tA((function(){10===e.status&&(e.status=11),null===e.trackedPostpones&&rO(e,0===e.pendingRootTasks)}))}function gO(e){!1===e.flushScheduled&&0===e.pingedTasks.length&&null!==e.destination&&(e.flushScheduled=!0,tA((function(){var t=e.destination;t?hO(e,t):e.flushScheduled=!1})))}function yO(e,t){if(13===e.status)e.status=14,fA(t,e.fatalError);else if(14!==e.status&&null===e.destination){e.destination=t;try{hO(e,t)}catch(n){jR(e,n,{}),UR(e,n)}}}function bO(e,t){11!==e.status&&10!==e.status||(e.status=12);try{var n=e.abortableTasks;if(0<n.size){var r=void 0===t?Error(R_(432)):"object"==typeof t&&null!==t&&"function"==typeof t.then?Error(R_(530)):t;e.fatalError=r,n.forEach((function(t){return nO(t,e,r)})),n.clear()}null!==e.destination&&hO(e,e.destination)}catch(a){jR(e,a,{}),UR(e,a)}}function vO(){var e=I_.version;if("19.0.0"!==e)throw Error(R_(527,e,"19.0.0"))}vO(),vO(),C_.prerender=function(e,t){return new Promise((function(n,r){var a,o=t?t.onHeaders:void 0;o&&(a=function(e){o(new Headers(e))});var i=WA(t?t.identifierPrefix:void 0,t&&t.unstable_externalRuntimeSrc,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),s=function(e,t,n,r,a,o,i,s,l,c,u){return(e=NR(e,t,n,r,a,o,i,s,l,c,u,void 0)).trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},e}(e,i,VA(i,void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,a,t?t.maxHeadersLength:void 0),YA(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,(function(){var e={prelude:new ReadableStream({type:"bytes",pull:function(e){yO(s,e)},cancel:function(e){s.destination=null,bO(s,e)}},{highWaterMark:0})};n(e)}),void 0,void 0,r,t?t.onPostpone:void 0);if(t&&t.signal){var l=t.signal;if(l.aborted)bO(s,l.reason);else{var c=function(){bO(s,l.reason),l.removeEventListener("abort",c)};l.addEventListener("abort",c)}}mO(s)}))},C_.renderToReadableStream=function(e,t){return new Promise((function(n,r){var a,o,i,s=new Promise((function(e,t){o=e,a=t})),l=t?t.onHeaders:void 0;l&&(i=function(e){l(new Headers(e))});var c=WA(t?t.identifierPrefix:void 0,t&&t.unstable_externalRuntimeSrc,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),u=NR(e,c,VA(c,t?t.nonce:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,i,t?t.maxHeadersLength:void 0),YA(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,o,(function(){var e=new ReadableStream({type:"bytes",pull:function(e){yO(u,e)},cancel:function(e){u.destination=null,bO(u,e)}},{highWaterMark:0});e.allReady=s,n(e)}),(function(e){s.catch((function(){})),r(e)}),a,t?t.onPostpone:void 0,t?t.formState:void 0);if(t&&t.signal){var d=t.signal;if(d.aborted)bO(u,d.reason);else{var p=function(){bO(u,d.reason),d.removeEventListener("abort",p)};d.addEventListener("abort",p)}}mO(u)}))},C_.version="19.0.0",OR=C_,(RR=zE).version;var kO=RR.renderToString;function wO({children:e="",...t}){let n="";return W.isValidElement(e)?n=kO(e):"string"==typeof e&&(n=e),jf.jsx("template",{...t,dangerouslySetInnerHTML:{__html:n}})}function EO({root:e,children:t=null}){return re.createPortal(t,e)}function SO(e){return V.forwardRef((({mode:t="open",delegatesFocus:n=!1,styleSheets:r=[],ssr:a=!1,children:o=null,...i},s)=>{const l=function(e){const t=V.useRef(null==e?void 0:e.current);return V.useEffect((()=>{e&&(e.current=t.current)}),[e]),t}(s),[c,u]=V.useState(null),d=`node_${t}${n}`;return V.useLayoutEffect((()=>{if(l.current)try{if("function"==typeof s&&s(l.current),a){const{shadowRoot:e}=l.current;return void u(e)}const e=l.current.attachShadow({mode:t,delegatesFocus:n});r.length>0&&(e.adoptedStyleSheets=r),u(e)}catch(e){!function({error:e,styleSheets:t,root:n}){if("NotSupportedError"!==(null==e?void 0:e.name))throw e;t.length>0&&n&&(n.adoptedStyleSheets=t)}({error:e,styleSheets:r,root:c})}}),[s,l,r]),jf.jsx(e.tag,{ref:l,...i,children:(c||a)&&jf.jsx(BE.Provider,{value:c,children:a?jf.jsx(wO,{shadowroot:t,shadowrootmode:t,children:e.render({root:c,ssr:a,children:o})}):jf.jsx(EO,{root:c,children:e.render({root:c,ssr:a,children:o})})})},d)}))}RR.renderToStaticMarkup,OR.renderToReadableStream,OR.resume&&OR.resume;const TO=new Map;const xO=function(e={},t="core",n=({children:e})=>e){return new Proxy(e,{get:function(e,r){const a=FE.decamelize(r,{separator:"-"}),o=`${t}-${a}`;if(!TO.has(o)){const e=SO({tag:a,render:n});TO.set(o,e)}return TO.get(o)}})}();var _O=Boolean(null==globalThis?void 0:globalThis.document)?V.useLayoutEffect:()=>{},AO=q["useId".toString()]||(()=>{}),CO=0;function IO(e){const[t,n]=V.useState(AO());return _O((()=>{n((e=>e??String(CO++)))}),[e]),t?`radix-${t}`:""}const NO=V.createContext(void 0),RO=()=>V.useContext(NO);function OO({wrapperStyles:e={},children:t,customStyles:n,styles:r}){const[a,o]=V.useState(null),[i,s]=V.useState(null),l=V.useMemo((()=>({shadowHost:a,rootElement:i})),[a,i]),c=IO(),u=xO.div;return jf.jsxs(u,{id:`inkeep-shadow${c}`,ref:e=>{e&&o(e)},style:e,children:[jf.jsx("style",{type:"text/css",dangerouslySetInnerHTML:{__html:`@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');\n ${r}`}}),n,jf.jsx("div",{id:"inkeep-widget-root",ref:e=>{e&&s(e)},style:e,children:jf.jsx(NO.Provider,{value:l,children:a&&i&&t})})]})}const PO=e=>RO()?e.children:jf.jsx(OO,{...e}),LO="IntelligentForm",DO={prefix:"ikp",aiChatSettings:bE,baseSettings:vE,searchSettings:{shouldOpenLinksInNewTab:!1,maxResults:40,defaultQuery:"",debounceTimeMs:0,tabs:["All","Publications","PDFs","GitHub","Forums","Discord","Slack","StackOverflow"],placeholder:"Search for anything..."},componentType:"EmbeddedChat"},MO=V.createContext(DO),FO=({children:e,value:t})=>{const n=RO(),r=function(e,t,...n){return n.reduce(((t,n)=>Cf(t,n,e)),t)}(((e,n,r)=>{var a;if("apiKey"!==r||n||(null==(a=null==t?void 0:t.baseSettings)?void 0:a.aiApiBaseUrl)||console.warn("Inkeep API key is missing."),"tools"===r&&Array.isArray(n)){return(e||[]).concat(n)}return["baseSettings","searchSettings","aiChatSettings"].includes(r)&&!n?e:n}),DO,{baseSettings:n??{}},t??{});return jf.jsx(MO.Provider,{value:r,children:e})},BO=()=>{const e=V.useContext(MO);if(!e)throw new Error("useInkeepConfig must be used within a ConfigProvider");return e},zO="conversationId",HO=V.createContext(null),jO=({children:e})=>{const t=function(){const[e,t]=V.useState(void 0),{aiChatSettings:n}=BO(),{shareChatUrlBasePath:r}=n;return V.useEffect((()=>{if(!r||"undefined"==typeof window)return;const e=e=>e.endsWith("/")?e.slice(0,-1):e,n=()=>{const{origin:n,pathname:a,search:o}=window.location,i=new URL(r),s=e(a),l=e(i.pathname);if(n===i.origin&&s===l){const e=new URLSearchParams(o).get(zO);e&&t(e)}};n();const a=()=>n();return window.addEventListener("popstate",a),()=>{window.removeEventListener("popstate",a)}}),[r]),e}(),{aiChatSettings:n}=BO(),r=n.chatId||t,a={id:"",messages:[]},[o,i]=V.useState(a),s=()=>{i(a)},l=V.useMemo((()=>({conversation:o,setConversation:i,chatId:r,resetConversation:s})),[o,r]);return jf.jsx(HO.Provider,{value:l,children:e})},UO=()=>{const e=V.useContext(HO);if(!e)throw new Error("useInkeepConversation must be used within an InkeepConversationProvider");return e};const $O="inkeepUsagePreferences",GO={defaultView:null,inkeepChatSessionId:null},VO={hasSwitchModeButtonJiggled:!1,userId:null,...GO},WO={set(e,t,n,r=365){try{if("cookie"===e){const e=new Date;void 0===n?(e.setTime(e.getTime()-1),document.cookie=`${$O}_${t}=; expires=${e.toUTCString()}; path=/`):(e.setTime(e.getTime()+24*r*60*60*1e3),document.cookie=`${$O}_${t}=${n}; expires=${e.toUTCString()}; path=/`)}else"undefined"!=typeof sessionStorage&&sessionStorage.setItem(`${$O}_${t}`,n?JSON.stringify(n):"")}catch(a){return null}},get(e,t){if("cookie"===e){const e=`${$O}_${t}=`,n=document.cookie.split(";");for(const t of n){const n=t.trim();if(n.startsWith(e))return n.substring(e.length)}return null}try{if("undefined"!=typeof sessionStorage){const e=sessionStorage.getItem(`${$O}_${t}`);return e?JSON.parse(e):null}}catch(n){return null}return null}},qO=()=>{const e=(()=>{try{if("undefined"==typeof localStorage)return!1;const e="__df709c5b-6651-43dc-94e7-d8dc899bf4e8__";return localStorage.setItem(e,"test_value"),localStorage.removeItem(e),!0}catch{return!1}})(),t=(()=>{if("undefined"==typeof document)return!1;document.cookie="testcookie=true; Path=/; Max-Age=1000";const e=document.cookie.includes("testcookie=true");return document.cookie="testcookie=; Path=/; Max-Age=-1000",e})();return e&&t},YO=V.createContext(void 0),XO=({children:e})=>{const{baseSettings:{userProperties:t,privacyPreferences:n}}=BO(),{optOutAllAnalytics:r,optOutAnalyticalCookies:a}=n,{browserStorage:o,setBrowserStorage:i}=(()=>{const{baseSettings:e,componentType:t}=BO(),{optOutAllAnalytics:n,optOutFunctionalCookies:r}=e.privacyPreferences,a=n||r||!qO()?"sessionStorage":"cookie",o=`${e.apiKey}-${t}`,i=e=>e in GO?`${e}-${o}`:e,s=Object.keys(VO).reduce(((e,t)=>{const n=i(t),r=WO.get(a,n);return{...e,[t]:r}}),{...VO}),[l,c]=V.useState(s);return V.useEffect((()=>{if(r)for(const e of Object.keys(VO)){const t=i(e);WO.set("cookie",t,null,-1)}}),[r]),{browserStorage:l,setBrowserStorage:(e,t,n=365)=>{const r=i(e);WO.set(a,r,t,n),c((n=>({...n,[e]:t})))}}})(),s=V.useMemo((()=>qO()),[]),l=V.useMemo((()=>!r&&!a&&s),[r,a,s]),c=V.useMemo((()=>({identificationType:r?"ANONYMOUS":t.id?"ID_PROVIDED":l?"COOKIED":"ANONYMOUS",id:r?void 0:t.id||l&&o.userId||function(e=21){const t=new Uint8Array(e);return crypto.getRandomValues(t),Array.from(t,(e=>e.toString(36))).join("").slice(0,e)}(),email:r?void 0:t.email,cohorts:r?void 0:t.cohorts})),[t,r,l,o.userId]);return V.useEffect((()=>{i("userId",l?c.id:void 0)}),[l,c.id]),jf.jsx(YO.Provider,{value:{userProperties:c},children:e})},KO=()=>{const e=V.useContext(YO);if(!e)throw new Error("useUser must be used within a UserProvider");return e};const QO=V.createContext(void 0),ZO=({children:e})=>{const{baseSettings:t,componentType:n}=BO(),{apiKey:r,analyticsApiBaseUrl:a,tags:o,privacyPreferences:i,env:s}=t,{userProperties:l}=KO(),c=V.useMemo((()=>({widgetLibraryVersion:"0.5.26",componentType:n,tags:o})),[n,o]),u=!i.optOutAllAnalytics&&"development"!==s,d={logEvent:V.useCallback((async e=>{var n;const o={...c,...e.properties},i={eventName:e.eventName,properties:o,userProperties:l};u&&async function(e,t,n){const r=`${n}/events`,a={...e,type:e.eventName};if("searchQuery"in e.properties)a.entityType="search",a.searchQuery=e.properties.searchQuery;else if("messageId"in e.properties)a.entityType="message",a.messageId=e.properties.messageId;else{if(a.entityType="conversation",!e.properties.conversation)return;a.conversationId=e.properties.conversation.id}const o=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`},body:JSON.stringify(a)});if(!o.ok){const e=await o.text();throw new Error(`Failed to log event: ${e}`)}}(i,r,a),null==(n=t.onEvent)||n.call(t,i)}),[u,t,r,a,l,c])};return jf.jsx(QO.Provider,{value:d,children:e})},JO=V.createContext(void 0),eP=({children:e})=>{const{baseSettings:t}=BO(),{apiKey:n,analyticsApiBaseUrl:r,tags:a,privacyPreferences:{optOutAllAnalytics:o},env:i}=t,{userProperties:s}=KO(),{logEvent:l}=(()=>{const e=V.useContext(QO);if(!e)throw new Error("useBaseEvents must be used within a BaseEventsProvider");return e})(),{conversation:c,setConversation:u}=UO(),d=V.useRef(c);V.useEffect((()=>{d.current=c}),[c]);const p=V.useCallback((async e=>{const t=d.current;if(!(!o&&"development"!==i))return;const l=await async function(e,t,n,r){const a=`${r}/conversations`,o={id:e||void 0,type:"openai",...t},i=await fetch(a,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},body:JSON.stringify(o)});if(!i.ok){const e=await i.text();throw new Error(`Failed to log conversation: ${e}`)}return i.json()}(t.id,{messages:e,tags:a,userProperties:s},n,r);return l&&u(l),l}),[r,n,a,s,u,o,i]),f={logEvent:V.useCallback((async(e,t)=>{if(!(!o&&"development"!==i))return;let n=d.current;if(t){const e=await p(t);e&&(n=e)}const r={...e,properties:{conversation:n,...e.properties}};l(r)}),[l,p,o,i]),logConversation:p};return jf.jsx(JO.Provider,{value:f,children:e})},tP=({children:e})=>jf.jsx(ZO,{children:jf.jsx(eP,{children:e})}),nP=(...e)=>(...t)=>{for(const n of e)null==n||n(...t)},rP=e=>"string"==typeof e;function aP(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/([A-Z])([A-Z][a-z])/g,"$1-$2").replace(/__/g,"__").toLowerCase()}const oP=e=>e?"":void 0;function iP(e,t){return"function"==typeof e?e(t):e}var sP=e=>"checkbox"===e.type,lP=e=>e instanceof Date,cP=e=>null==e;const uP=e=>"object"==typeof e;var dP=e=>!cP(e)&&!Array.isArray(e)&&uP(e)&&!lP(e),pP=e=>dP(e)&&e.target?sP(e.target)?e.target.checked:e.target.value:e,fP=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),hP="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function mP(e){let t;const n=Array.isArray(e),r="undefined"!=typeof FileList&&e instanceof FileList;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(hP&&(e instanceof Blob||r)||!n&&!dP(e))return e;if(t=n?[]:{},n||(e=>{const t=e.constructor&&e.constructor.prototype;return dP(t)&&t.hasOwnProperty("isPrototypeOf")})(e))for(const n in e)e.hasOwnProperty(n)&&(t[n]=mP(e[n]));else t=e}return t}var gP=e=>Array.isArray(e)?e.filter(Boolean):[],yP=e=>void 0===e,bP=(e,t,n)=>{if(!t||!dP(e))return n;const r=gP(t.split(/[,[\].]+?/)).reduce(((e,t)=>cP(e)?e:e[t]),e);return yP(r)||r===e?yP(e[t])?n:e[t]:r},vP=e=>"boolean"==typeof e,kP=e=>/^\w*$/.test(e),wP=e=>gP(e.replace(/["|']|\]/g,"").split(/\.|\[/)),EP=(e,t,n)=>{let r=-1;const a=kP(t)?[t]:wP(t),o=a.length,i=o-1;for(;++r<o;){const t=a[r];let o=n;if(r!==i){const n=e[t];o=dP(n)||Array.isArray(n)?n:isNaN(+a[r+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=o,e=e[t]}return e};const SP="blur",TP="focusout",xP="change",_P="onBlur",AP="onChange",CP="onSubmit",IP="onTouched",NP="all",RP="max",OP="min",PP="maxLength",LP="minLength",DP="pattern",MP="required",FP="validate",BP=W.createContext(null),zP=()=>W.useContext(BP);var HP=(e,t,n,r=!0)=>{const a={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(a,o,{get:()=>{const a=o;return t._proxyFormState[a]!==NP&&(t._proxyFormState[a]=!r||NP),n&&(n[a]=!0),e[a]}});return a},jP=e=>dP(e)&&!Object.keys(e).length,UP=(e,t,n,r)=>{n(e);const{name:a,...o}=e;return jP(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find((e=>t[e]===(!r||NP)))},$P=e=>Array.isArray(e)?e:[e],GP=(e,t,n)=>!e||!t||e===t||$P(e).some((e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))));function VP(e){const t=W.useRef(e);t.current=e,W.useEffect((()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}}),[e.disabled])}var WP=e=>"string"==typeof e,qP=(e,t,n,r,a)=>WP(e)?(r&&t.watch.add(e),bP(n,e,a)):Array.isArray(e)?e.map((e=>(r&&t.watch.add(e),bP(n,e)))):(r&&(t.watchAll=!0),n);function YP(e){const t=zP(),{name:n,disabled:r,control:a=t.control,shouldUnregister:o}=e,i=fP(a._names.array,n),s=function(e){const t=zP(),{control:n=t.control,name:r,defaultValue:a,disabled:o,exact:i}=e||{},s=W.useRef(r);s.current=r,VP({disabled:o,subject:n._subjects.values,next:e=>{GP(s.current,e.name,i)&&c(mP(qP(s.current,n._names,e.values||n._formValues,!1,a)))}});const[l,c]=W.useState(n._getWatch(r,a));return W.useEffect((()=>n._removeUnmounted())),l}({control:a,name:n,defaultValue:bP(a._formValues,n,bP(a._defaultValues,n,e.defaultValue)),exact:!0}),l=function(e){const t=zP(),{control:n=t.control,disabled:r,name:a,exact:o}=e||{},[i,s]=W.useState(n._formState),l=W.useRef(!0),c=W.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=W.useRef(a);return u.current=a,VP({disabled:r,next:e=>l.current&&GP(u.current,e.name,o)&&UP(e,c.current,n._updateFormState)&&s({...n._formState,...e}),subject:n._subjects.state}),W.useEffect((()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1})),[n]),W.useMemo((()=>HP(i,n,c.current,!1)),[i,n])}({control:a,name:n,exact:!0}),c=W.useRef(a.register(n,{...e.rules,value:s,...vP(e.disabled)?{disabled:e.disabled}:{}})),u=W.useMemo((()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!bP(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!bP(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!bP(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!bP(l.validatingFields,n)},error:{enumerable:!0,get:()=>bP(l.errors,n)}})),[l,n]),d=W.useMemo((()=>({name:n,value:s,...vP(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:e=>c.current.onChange({target:{value:pP(e),name:n},type:xP}),onBlur:()=>c.current.onBlur({target:{value:bP(a._formValues,n),name:n},type:SP}),ref:e=>{const t=bP(a._fields,n);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}})),[n,a._formValues,r,l.disabled,s,a._fields]);return W.useEffect((()=>{const e=a._options.shouldUnregister||o,t=(e,t)=>{const n=bP(a._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){const e=mP(bP(a._options.defaultValues,n));EP(a._defaultValues,n,e),yP(bP(a._formValues,n))&&EP(a._formValues,n,e)}return!i&&a.register(n),()=>{(i?e&&!a._state.action:e)?a.unregister(n):t(n,!1)}}),[n,a,i,o]),W.useEffect((()=>{a._updateDisabledField({disabled:r,fields:a._fields,name:n})}),[r,n,a]),W.useMemo((()=>({field:d,formState:l,fieldState:u})),[d,l,u])}const XP=e=>e.render(YP(e));var KP=(e,t,n,r,a)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:a||!0}}:{},QP=e=>({isOnSubmit:!e||e===CP,isOnBlur:e===_P,isOnChange:e===AP,isOnAll:e===NP,isOnTouch:e===IP}),ZP=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const JP=(e,t,n,r)=>{for(const a of n||Object.keys(e)){const n=bP(e,a);if(n){const{_f:e,...o}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],a)&&!r)return!0;if(e.ref&&t(e.ref,e.name)&&!r)return!0;if(JP(o,t))break}else if(dP(o)&&JP(o,t))break}}};var eL=(e,t,n)=>{const r=$P(bP(e,n));return EP(r,"root",t[n]),EP(e,n,r),e},tL=e=>"file"===e.type,nL=e=>"function"==typeof e,rL=e=>{if(!hP)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},aL=e=>WP(e),oL=e=>"radio"===e.type,iL=e=>e instanceof RegExp;const sL={value:!1,isValid:!1},lL={value:!0,isValid:!0};var cL=e=>{if(Array.isArray(e)){if(e.length>1){const 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&&!yP(e[0].attributes.value)?yP(e[0].value)||""===e[0].value?lL:{value:e[0].value,isValid:!0}:lL:sL}return sL};const uL={isValid:!1,value:null};var dL=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),uL):uL;function pL(e,t,n="validate"){if(aL(e)||Array.isArray(e)&&e.every(aL)||vP(e)&&!e)return{type:n,message:aL(e)?e:"",ref:t}}var fL=e=>dP(e)&&!iL(e)?e:{value:e,message:""},hL=async(e,t,n,r,a,o)=>{const{ref:i,refs:s,required:l,maxLength:c,minLength:u,min:d,max:p,pattern:f,validate:h,name:m,valueAsNumber:g,mount:y}=e._f,b=bP(n,m);if(!y||t.has(m))return{};const v=s?s[0]:i,k=e=>{a&&v.reportValidity&&(v.setCustomValidity(vP(e)?"":e||""),v.reportValidity())},w={},E=oL(i),S=sP(i),T=E||S,x=(g||tL(i))&&yP(i.value)&&yP(b)||rL(i)&&""===i.value||""===b||Array.isArray(b)&&!b.length,_=KP.bind(null,m,r,w),A=(e,t,n,r=PP,a=LP)=>{const o=e?t:n;w[m]={type:e?r:a,message:o,ref:i,..._(e?r:a,o)}};if(o?!Array.isArray(b)||!b.length:l&&(!T&&(x||cP(b))||vP(b)&&!b||S&&!cL(s).isValid||E&&!dL(s).isValid)){const{value:e,message:t}=aL(l)?{value:!!l,message:l}:fL(l);if(e&&(w[m]={type:MP,message:t,ref:v,..._(MP,t)},!r))return k(t),w}if(!(x||cP(d)&&cP(p))){let e,t;const n=fL(p),a=fL(d);if(cP(b)||isNaN(b)){const r=i.valueAsDate||new Date(b),o=e=>new Date((new Date).toDateString()+" "+e),s="time"==i.type,l="week"==i.type;WP(n.value)&&b&&(e=s?o(b)>o(n.value):l?b>n.value:r>new Date(n.value)),WP(a.value)&&b&&(t=s?o(b)<o(a.value):l?b<a.value:r<new Date(a.value))}else{const r=i.valueAsNumber||(b?+b:b);cP(n.value)||(e=r>n.value),cP(a.value)||(t=r<a.value)}if((e||t)&&(A(!!e,n.message,a.message,RP,OP),!r))return k(w[m].message),w}if((c||u)&&!x&&(WP(b)||o&&Array.isArray(b))){const e=fL(c),t=fL(u),n=!cP(e.value)&&b.length>+e.value,a=!cP(t.value)&&b.length<+t.value;if((n||a)&&(A(n,e.message,t.message),!r))return k(w[m].message),w}if(f&&!x&&WP(b)){const{value:e,message:t}=fL(f);if(iL(e)&&!b.match(e)&&(w[m]={type:DP,message:t,ref:i,..._(DP,t)},!r))return k(t),w}if(h)if(nL(h)){const e=pL(await h(b,n),v);if(e&&(w[m]={...e,..._(FP,e.message)},!r))return k(e.message),w}else if(dP(h)){let e={};for(const t in h){if(!jP(e)&&!r)break;const a=pL(await h[t](b,n),v,t);a&&(e={...a,..._(t,a.message)},k(a.message),r&&(w[m]=e))}if(!jP(e)&&(w[m]={ref:v,...e},!r))return w}return k(!0),w};function mL(e,t){const n=Array.isArray(t)?t:kP(t)?[t]:wP(t),r=1===n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=yP(e)?r++:e[t[r++]];return e}(e,n),a=n.length-1,o=n[a];return r&&delete r[o],0!==a&&(dP(r)&&jP(r)||Array.isArray(r)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!yP(e[t]))return!1;return!0}(r))&&mL(e,n.slice(0,-1)),e}var gL=()=>{let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}},yL=e=>cP(e)||!uP(e);function bL(e,t){if(yL(e)||yL(t))return e===t;if(lP(e)&&lP(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const a of n){const n=e[a];if(!r.includes(a))return!1;if("ref"!==a){const e=t[a];if(lP(n)&&lP(e)||dP(n)&&dP(e)||Array.isArray(n)&&Array.isArray(e)?!bL(n,e):n!==e)return!1}}return!0}var vL=e=>"select-multiple"===e.type,kL=e=>rL(e)&&e.isConnected,wL=e=>{for(const t in e)if(nL(e[t]))return!0;return!1};function EL(e,t={}){const n=Array.isArray(e);if(dP(e)||n)for(const r in e)Array.isArray(e[r])||dP(e[r])&&!wL(e[r])?(t[r]=Array.isArray(e[r])?[]:{},EL(e[r],t[r])):cP(e[r])||(t[r]=!0);return t}function SL(e,t,n){const r=Array.isArray(e);if(dP(e)||r)for(const a in e)Array.isArray(e[a])||dP(e[a])&&!wL(e[a])?yP(t)||yL(n[a])?n[a]=Array.isArray(e[a])?EL(e[a],[]):{...EL(e[a])}:SL(e[a],cP(t)?{}:t[a],n[a]):n[a]=!bL(e[a],t[a]);return n}var TL=(e,t)=>SL(e,t,EL(t)),xL=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>yP(e)?e:t?""===e?NaN:e?+e:e:n&&WP(e)?new Date(e):r?r(e):e;function _L(e){const t=e.ref;return tL(t)?t.files:oL(t)?dL(e.refs).value:vL(t)?[...t.selectedOptions].map((({value:e})=>e)):sP(t)?cL(e.refs).value:xL(yP(t.value)?e.ref.value:t.value,e)}var AL=e=>yP(e)?e:iL(e)?e.source:dP(e)?iL(e.value)?e.value.source:e.value:e;const CL="AsyncFunction";function IL(e,t,n){const r=bP(e,n);if(r||kP(n))return{error:r,name:n};const a=n.split(".");for(;a.length;){const r=a.join("."),o=bP(t,r),i=bP(e,r);if(o&&!Array.isArray(o)&&n!==r)return{name:n};if(i&&i.type)return{name:r,error:i};a.pop()}return{name:n}}const NL={mode:CP,reValidateMode:AP,shouldFocusError:!0};function RL(e={}){let t,n={...NL,...e},r={submitCount:0,isDirty:!1,isLoading:nL(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},a={},o=(dP(n.defaultValues)||dP(n.values))&&mP(n.defaultValues||n.values)||{},i=n.shouldUnregister?{}:mP(o),s={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:gL(),array:gL(),state:gL()},p=QP(n.mode),f=QP(n.reValidateMode),h=n.criteriaMode===NP,m=async e=>{if(!n.disabled&&(u.isValid||e)){const e=n.resolver?jP((await k()).errors):await w(a,!0);e!==r.isValid&&d.state.next({isValid:e})}},g=(e,t)=>{n.disabled||!u.isValidating&&!u.validatingFields||((e||Array.from(l.mount)).forEach((e=>{e&&(t?EP(r.validatingFields,e,t):mL(r.validatingFields,e))})),d.state.next({validatingFields:r.validatingFields,isValidating:!jP(r.validatingFields)}))},y=(e,t,n,r)=>{const l=bP(a,e);if(l){const a=bP(i,e,yP(n)?bP(o,e):n);yP(a)||r&&r.defaultChecked||t?EP(i,e,t?a:_L(l._f)):T(e,a),s.mount&&m()}},b=(e,t,i,s,l)=>{let c=!1,p=!1;const f={name:e};if(!n.disabled){const n=!!(bP(a,e)&&bP(a,e)._f&&bP(a,e)._f.disabled);if(!i||s){u.isDirty&&(p=r.isDirty,r.isDirty=f.isDirty=E(),c=p!==f.isDirty);const a=n||bL(bP(o,e),t);p=!(n||!bP(r.dirtyFields,e)),a||n?mL(r.dirtyFields,e):EP(r.dirtyFields,e,!0),f.dirtyFields=r.dirtyFields,c=c||u.dirtyFields&&p!==!a}if(i){const t=bP(r.touchedFields,e);t||(EP(r.touchedFields,e,i),f.touchedFields=r.touchedFields,c=c||u.touchedFields&&t!==i)}c&&l&&d.state.next(f)}return c?f:{}},v=(e,a,o,i)=>{const s=bP(r.errors,e),l=u.isValid&&vP(a)&&r.isValid!==a;var p;if(n.delayError&&o?(p=()=>((e,t)=>{EP(r.errors,e,t),d.state.next({errors:r.errors})})(e,o),t=e=>{clearTimeout(c),c=setTimeout(p,e)},t(n.delayError)):(clearTimeout(c),t=null,o?EP(r.errors,e,o):mL(r.errors,e)),(o?!bL(s,o):s)||!jP(i)||l){const t={...i,...l&&vP(a)?{isValid:a}:{},errors:r.errors,name:e};r={...r,...t},d.state.next(t)}},k=async e=>{g(e,!0);const t=await n.resolver(i,n.context,((e,t,n,r)=>{const a={};for(const o of e){const e=bP(t,o);e&&EP(a,o,e._f)}return{criteriaMode:n,names:[...e],fields:a,shouldUseNativeValidation:r}})(e||l.mount,a,n.criteriaMode,n.shouldUseNativeValidation));return g(e),t},w=async(e,t,a={valid:!0})=>{for(const s in e){const c=e[s];if(c){const{_f:e,...d}=c;if(e){const d=l.array.has(e.name),p=c._f&&(!!(o=c._f)&&!!o.validate&&!!(nL(o.validate)&&o.validate.constructor.name===CL||dP(o.validate)&&Object.values(o.validate).find((e=>e.constructor.name===CL))));p&&u.validatingFields&&g([s],!0);const f=await hL(c,l.disabled,i,h,n.shouldUseNativeValidation&&!t,d);if(p&&u.validatingFields&&g([s]),f[e.name]&&(a.valid=!1,t))break;!t&&(bP(f,e.name)?d?eL(r.errors,f,e.name):EP(r.errors,e.name,f[e.name]):mL(r.errors,e.name))}!jP(d)&&await w(d,t,a)}}var o;return a.valid},E=(e,t)=>!n.disabled&&(e&&t&&EP(i,e,t),!bL(N(),o)),S=(e,t,n)=>qP(e,l,{...s.mount?i:yP(t)?o:WP(e)?{[e]:t}:t},n,t),T=(e,t,n={})=>{const r=bP(a,e);let o=t;if(r){const n=r._f;n&&(!n.disabled&&EP(i,e,xL(t,n)),o=rL(n.ref)&&cP(t)?"":t,vL(n.ref)?[...n.ref.options].forEach((e=>e.selected=o.includes(e.value))):n.refs?sP(n.ref)?n.refs.length>1?n.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find((t=>t===e.value)):o===e.value))):n.refs[0]&&(n.refs[0].checked=!!o):n.refs.forEach((e=>e.checked=e.value===o)):tL(n.ref)?n.ref.value="":(n.ref.value=o,n.ref.type||d.values.next({name:e,values:{...i}})))}(n.shouldDirty||n.shouldTouch)&&b(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&I(e)},x=(e,t,n)=>{for(const r in t){const o=t[r],i=`${e}.${r}`,s=bP(a,i);(l.array.has(e)||dP(o)||s&&!s._f)&&!lP(o)?x(i,o,n):T(i,o,n)}},_=(e,t,n={})=>{const c=bP(a,e),p=l.array.has(e),f=mP(t);EP(i,e,f),p?(d.array.next({name:e,values:{...i}}),(u.isDirty||u.dirtyFields)&&n.shouldDirty&&d.state.next({name:e,dirtyFields:TL(o,i),isDirty:E(e,f)})):!c||c._f||cP(f)?T(e,f,n):x(e,f,n),ZP(e,l)&&d.state.next({...r}),d.values.next({name:s.mount?e:void 0,values:{...i}})},A=async e=>{s.mount=!0;const o=e.target;let c=o.name,y=!0;const E=bP(a,c),S=e=>{y=Number.isNaN(e)||lP(e)&&isNaN(e.getTime())||bL(e,bP(i,c,e))};if(E){let s,x;const _=o.type?_L(E._f):pP(e),A=e.type===SP||e.type===TP,C=!((T=E._f).mount&&(T.required||T.min||T.max||T.maxLength||T.minLength||T.pattern||T.validate)||n.resolver||bP(r.errors,c)||E._f.deps)||((e,t,n,r,a)=>!a.isOnAll&&(!n&&a.isOnTouch?!(t||e):(n?r.isOnBlur:a.isOnBlur)?!e:!(n?r.isOnChange:a.isOnChange)||e))(A,bP(r.touchedFields,c),r.isSubmitted,f,p),N=ZP(c,l,A);EP(i,c,_),A?(E._f.onBlur&&E._f.onBlur(e),t&&t(0)):E._f.onChange&&E._f.onChange(e);const R=b(c,_,A,!1),O=!jP(R)||N;if(!A&&d.values.next({name:c,type:e.type,values:{...i}}),C)return u.isValid&&("onBlur"===n.mode&&A?m():A||m()),O&&d.state.next({name:c,...N?{}:R});if(!A&&N&&d.state.next({...r}),n.resolver){const{errors:e}=await k([c]);if(S(_),y){const t=IL(r.errors,a,c),n=IL(e,a,t.name||c);s=n.error,c=n.name,x=jP(e)}}else g([c],!0),s=(await hL(E,l.disabled,i,h,n.shouldUseNativeValidation))[c],g([c]),S(_),y&&(s?x=!1:u.isValid&&(x=await w(a,!0)));y&&(E._f.deps&&I(E._f.deps),v(c,x,s,R))}var T},C=(e,t)=>{if(bP(r.errors,t)&&e.focus)return e.focus(),1},I=async(e,t={})=>{let o,i;const s=$P(e);if(n.resolver){const t=await(async e=>{const{errors:t}=await k(e);if(e)for(const n of e){const e=bP(t,n);e?EP(r.errors,n,e):mL(r.errors,n)}else r.errors=t;return t})(yP(e)?e:s);o=jP(t),i=e?!s.some((e=>bP(t,e))):o}else e?(i=(await Promise.all(s.map((async e=>{const t=bP(a,e);return await w(t&&t._f?{[e]:t}:t)})))).every(Boolean),(i||r.isValid)&&m()):i=o=await w(a);return d.state.next({...!WP(e)||u.isValid&&o!==r.isValid?{}:{name:e},...n.resolver||!e?{isValid:o}:{},errors:r.errors}),t.shouldFocus&&!i&&JP(a,C,e?s:l.mount),i},N=e=>{const t={...s.mount?i:o};return yP(e)?t:WP(e)?bP(t,e):e.map((e=>bP(t,e)))},R=(e,t)=>({invalid:!!bP((t||r).errors,e),isDirty:!!bP((t||r).dirtyFields,e),error:bP((t||r).errors,e),isValidating:!!bP(r.validatingFields,e),isTouched:!!bP((t||r).touchedFields,e)}),O=(e,t,n)=>{const o=(bP(a,e,{_f:{}})._f||{}).ref,i=bP(r.errors,e)||{},{ref:s,message:l,type:c,...u}=i;EP(r.errors,e,{...u,...t,ref:o}),d.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&o&&o.focus&&o.focus()},P=(e,t={})=>{for(const s of e?$P(e):l.mount)l.mount.delete(s),l.array.delete(s),t.keepValue||(mL(a,s),mL(i,s)),!t.keepError&&mL(r.errors,s),!t.keepDirty&&mL(r.dirtyFields,s),!t.keepTouched&&mL(r.touchedFields,s),!t.keepIsValidating&&mL(r.validatingFields,s),!n.shouldUnregister&&!t.keepDefaultValue&&mL(o,s);d.values.next({values:{...i}}),d.state.next({...r,...t.keepDirty?{isDirty:E()}:{}}),!t.keepIsValid&&m()},L=({disabled:e,name:t,field:n,fields:r})=>{(vP(e)&&s.mount||e||l.disabled.has(t))&&(e?l.disabled.add(t):l.disabled.delete(t),b(t,_L(n?n._f:bP(r,t)._f),!1,!1,!0))},D=(e,t={})=>{let r=bP(a,e);const i=vP(t.disabled)||vP(n.disabled);return EP(a,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),l.mount.add(e),r?L({field:r,disabled:vP(t.disabled)?t.disabled:n.disabled,name:e}):y(e,!0,t.value),{...i?{disabled:t.disabled||n.disabled}:{},...n.progressive?{required:!!t.required,min:AL(t.min),max:AL(t.max),minLength:AL(t.minLength),maxLength:AL(t.maxLength),pattern:AL(t.pattern)}:{},name:e,onChange:A,onBlur:A,ref:i=>{if(i){D(e,t),r=bP(a,e);const n=yP(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,s=(e=>oL(e)||sP(e))(n),l=r._f.refs||[];if(s?l.find((e=>e===n)):n===r._f.ref)return;EP(a,e,{_f:{...r._f,...s?{refs:[...l.filter(kL),n,...Array.isArray(bP(o,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),y(e,!1,void 0,n)}else r=bP(a,e,{}),r._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!fP(l.array,e)||!s.action)&&l.unMount.add(e)}}},M=()=>n.shouldFocusError&&JP(a,C,l.mount),F=(e,t)=>async o=>{let s;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let c=mP(i);if(l.disabled.size)for(const e of l.disabled)EP(c,e,void 0);if(d.state.next({isSubmitting:!0}),n.resolver){const{errors:e,values:t}=await k();r.errors=e,c=t}else await w(a);if(mL(r.errors,"root"),jP(r.errors)){d.state.next({errors:{}});try{await e(c,o)}catch(u){s=u}}else t&&await t({...r.errors},o),M(),setTimeout(M);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:jP(r.errors)&&!s,submitCount:r.submitCount+1,errors:r.errors}),s)throw s},B=(e,t={})=>{const c=e?mP(e):o,p=mP(c),f=jP(e),h=f?o:p;if(t.keepDefaultValues||(o=c),!t.keepValues){if(t.keepDirtyValues){const e=new Set([...l.mount,...Object.keys(TL(o,i))]);for(const t of Array.from(e))bP(r.dirtyFields,t)?EP(h,t,bP(i,t)):_(t,bP(h,t))}else{if(hP&&yP(e))for(const e of l.mount){const t=bP(a,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(rL(e)){const t=e.closest("form");if(t){t.reset();break}}}}a={}}i=n.shouldUnregister?t.keepDefaultValues?mP(o):{}:mP(h),d.array.next({values:{...h}}),d.values.next({values:{...h}})}l={mount:t.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!u.isValid||!!t.keepIsValid||!!t.keepDirtyValues,s.watch=!!n.shouldUnregister,d.state.next({submitCount:t.keepSubmitCount?r.submitCount:0,isDirty:!f&&(t.keepDirty?r.isDirty:!(!t.keepDefaultValues||bL(e,o))),isSubmitted:!!t.keepIsSubmitted&&r.isSubmitted,dirtyFields:f?{}:t.keepDirtyValues?t.keepDefaultValues&&i?TL(o,i):r.dirtyFields:t.keepDefaultValues&&e?TL(o,e):t.keepDirty?r.dirtyFields:{},touchedFields:t.keepTouched?r.touchedFields:{},errors:t.keepErrors?r.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&r.isSubmitSuccessful,isSubmitting:!1})},z=(e,t)=>B(nL(e)?e(i):e,t);return{control:{register:D,unregister:P,getFieldState:R,handleSubmit:F,setError:O,_executeSchema:k,_getWatch:S,_getDirty:E,_updateValid:m,_removeUnmounted:()=>{for(const e of l.unMount){const t=bP(a,e);t&&(t._f.refs?t._f.refs.every((e=>!kL(e))):!kL(t._f.ref))&&P(e)}l.unMount=new Set},_updateFieldArray:(e,t=[],l,c,p=!0,f=!0)=>{if(c&&l&&!n.disabled){if(s.action=!0,f&&Array.isArray(bP(a,e))){const t=l(bP(a,e),c.argA,c.argB);p&&EP(a,e,t)}if(f&&Array.isArray(bP(r.errors,e))){const t=l(bP(r.errors,e),c.argA,c.argB);p&&EP(r.errors,e,t),((e,t)=>{!gP(bP(e,t)).length&&mL(e,t)})(r.errors,e)}if(u.touchedFields&&f&&Array.isArray(bP(r.touchedFields,e))){const t=l(bP(r.touchedFields,e),c.argA,c.argB);p&&EP(r.touchedFields,e,t)}u.dirtyFields&&(r.dirtyFields=TL(o,i)),d.state.next({name:e,isDirty:E(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else EP(i,e,t)},_updateDisabledField:L,_getFieldArray:e=>gP(bP(s.mount?i:o,e,n.shouldUnregister?bP(o,e,[]):[])),_reset:B,_resetDefaultValues:()=>nL(n.defaultValues)&&n.defaultValues().then((e=>{z(e,n.resetOptions),d.state.next({isLoading:!1})})),_updateFormState:e=>{r={...r,...e}},_disableForm:e=>{vP(e)&&(d.state.next({disabled:e}),JP(a,((t,n)=>{const r=bP(a,n);r&&(t.disabled=r._f.disabled||e,Array.isArray(r._f.refs)&&r._f.refs.forEach((t=>{t.disabled=r._f.disabled||e})))}),0,!1))},_subjects:d,_proxyFormState:u,_setErrors:e=>{r.errors=e,d.state.next({errors:r.errors,isValid:!1})},get _fields(){return a},get _formValues(){return i},get _state(){return s},set _state(e){s=e},get _defaultValues(){return o},get _names(){return l},set _names(e){l=e},get _formState(){return r},set _formState(e){r=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:I,register:D,handleSubmit:F,watch:(e,t)=>nL(e)?d.values.subscribe({next:n=>e(S(void 0,t),n)}):S(e,t,!0),setValue:_,getValues:N,reset:z,resetField:(e,t={})=>{bP(a,e)&&(yP(t.defaultValue)?_(e,mP(bP(o,e))):(_(e,t.defaultValue),EP(o,e,mP(t.defaultValue))),t.keepTouched||mL(r.touchedFields,e),t.keepDirty||(mL(r.dirtyFields,e),r.isDirty=t.defaultValue?E(e,mP(bP(o,e))):E()),t.keepError||(mL(r.errors,e),u.isValid&&m()),d.state.next({...r}))},clearErrors:e=>{e&&$P(e).forEach((e=>mL(r.errors,e))),d.state.next({errors:e?r.errors:{}})},unregister:P,setError:O,setFocus:(e,t={})=>{const n=bP(a,e),r=n&&n._f;if(r){const e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&nL(e.select)&&e.select())}},getFieldState:R}}const OL={text:"",email:"",checkbox:!1,textarea:"",file:void 0,select:""};const PL=new TextEncoder;async function LL(e,t){return n=await async function(e,t){return crypto.subtle.digest(e.toUpperCase(),"string"==typeof t?PL.encode(t):new Uint8Array(t))}(e,t),[...new Uint8Array(n)].map((e=>e.toString(16).padStart(2,"0"))).join("");var n}const DL=async e=>{try{const t=await fetch(e,{method:"GET"});if(!t.ok)throw new Error(`Failed to fetch challenge: ${t.statusText}`);const n=await t.json(),{challenge:r,algorithm:a,salt:o,maxnumber:i}=n,{promise:s}=await function(e,t,n="SHA-256",r=1e6,a=0){const o=new AbortController,i=Date.now();return{promise:(async()=>{for(let s=a;s<=r;s+=1){if(o.signal.aborted)return null;if(await LL(n,t+s)===e)return{number:s,took:Date.now()-i}}return null})(),controller:o}}(r,o,a,i),l=await s||void 0;if(!l)throw new Error("Challenge not solved");return{number:l.number,...n}}catch(t){console.error("Error solving captcha:",t)}};function ML(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function FL(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function BL(...e){return t=>{let n=!1;const r=e.map((e=>{const r=FL(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():FL(e[t],null)}}}}function zL(...e){return V.useCallback(BL(...e),e)}function HL(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>V.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return V.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const a=V.createContext(r),o=n.length;n=[...n,r];const i=t=>{var n;const{scope:r,children:i,...s}=t,l=(null==(n=null==r?void 0:r[e])?void 0:n[o])||a,c=V.useMemo((()=>s),Object.values(s));return jf.jsx(l.Provider,{value:c,children:i})};return i.displayName=t+"Provider",[i,function(n,i){var s;const l=(null==(s=null==i?void 0:i[e])?void 0:s[o])||a,c=V.useContext(l);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},jL(r,...t)]}function jL(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return V.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}var UL=V.forwardRef(((e,t)=>{const{children:n,...r}=e,a=V.Children.toArray(n),o=a.find(VL);if(o){const e=o.props.children,n=a.map((t=>t===o?V.Children.count(e)>1?V.Children.only(null):V.isValidElement(e)?e.props.children:null:t));return jf.jsx($L,{...r,ref:t,children:V.isValidElement(e)?V.cloneElement(e,void 0,n):null})}return jf.jsx($L,{...r,ref:t,children:n})}));UL.displayName="Slot";var $L=V.forwardRef(((e,t)=>{const{children:n,...r}=e;if(V.isValidElement(n)){const e=function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}(n);return V.cloneElement(n,{...WL(r,n.props),ref:t?BL(t,e):e})}return V.Children.count(n)>1?V.Children.only(null):null}));$L.displayName="SlotClone";var GL=({children:e})=>jf.jsx(jf.Fragment,{children:e});function VL(e){return V.isValidElement(e)&&e.type===GL}function WL(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...e)=>{o(...e),a(...e)}:a&&(n[r]=a):"style"===r?n[r]={...a,...o}:"className"===r&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}var qL=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=V.forwardRef(((e,n)=>{const{asChild:r,...a}=e,o=r?UL:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),jf.jsx(o,{...a,ref:n})}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function YL(e){const t=V.useRef(e);return V.useEffect((()=>{t.current=e})),V.useMemo((()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}var XL,KL="dismissableLayer.update",QL="dismissableLayer.pointerDownOutside",ZL="dismissableLayer.focusOutside",JL=V.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),eD=V.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:i,onDismiss:s,...l}=e,c=V.useContext(JL),[u,d]=V.useState(null),p=(null==u?void 0:u.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,f]=V.useState({}),h=zL(t,(e=>d(e))),m=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(g),b=u?m.indexOf(u):-1,v=c.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,w=function(e,t=(null==globalThis?void 0:globalThis.document)){const n=YL(e),r=V.useRef(!1),a=V.useRef((()=>{}));return V.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){nD(QL,n,o,{discrete:!0})};const o={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);r.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));k&&!n&&(null==a||a(e),null==i||i(e),e.defaultPrevented||null==s||s())}),p),E=function(e,t=(null==globalThis?void 0:globalThis.document)){const n=YL(e),r=V.useRef(!1);return V.useEffect((()=>{const e=e=>{if(e.target&&!r.current){nD(ZL,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==o||o(e),null==i||i(e),e.defaultPrevented||null==s||s())}),p);return function(e,t=(null==globalThis?void 0:globalThis.document)){const n=YL(e);V.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}((e=>{b===c.layers.size-1&&(null==r||r(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),p),V.useEffect((()=>{if(u)return n&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(XL=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),tD(),()=>{n&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=XL)}}),[u,p,n,c]),V.useEffect((()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),tD())}),[u,c]),V.useEffect((()=>{const e=()=>f({});return document.addEventListener(KL,e),()=>document.removeEventListener(KL,e)}),[]),jf.jsx(qL.div,{...l,ref:h,style:{pointerEvents:v?k?"auto":"none":void 0,...e.style},onFocusCapture:ML(e.onFocusCapture,E.onFocusCapture),onBlurCapture:ML(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:ML(e.onPointerDownCapture,w.onPointerDownCapture)})}));eD.displayName="DismissableLayer";function tD(){const e=new CustomEvent(KL);document.dispatchEvent(e)}function nD(e,t,n,{discrete:r}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?function(e,t){e&&re.flushSync((()=>e.dispatchEvent(t)))}(a,o):a.dispatchEvent(o)}V.forwardRef(((e,t)=>{const n=V.useContext(JL),r=V.useRef(null),a=zL(t,r);return V.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),jf.jsx(qL.div,{...e,ref:a})})).displayName="DismissableLayerBranch";const rD=["top","right","bottom","left"],aD=Math.min,oD=Math.max,iD=Math.round,sD=Math.floor,lD=e=>({x:e,y:e}),cD={left:"right",right:"left",bottom:"top",top:"bottom"},uD={start:"end",end:"start"};function dD(e,t,n){return oD(e,aD(t,n))}function pD(e,t){return"function"==typeof e?e(t):e}function fD(e){return e.split("-")[0]}function hD(e){return e.split("-")[1]}function mD(e){return"x"===e?"y":"x"}function gD(e){return"y"===e?"height":"width"}function yD(e){return["top","bottom"].includes(fD(e))?"y":"x"}function bD(e){return mD(yD(e))}function vD(e){return e.replace(/start|end/g,(e=>uD[e]))}function kD(e){return e.replace(/left|right|bottom|top/g,(e=>cD[e]))}function wD(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function ED(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function SD(e,t,n){let{reference:r,floating:a}=e;const o=yD(t),i=bD(t),s=gD(i),l=fD(t),c="y"===o,u=r.x+r.width/2-a.width/2,d=r.y+r.height/2-a.height/2,p=r[s]/2-a[s]/2;let f;switch(l){case"top":f={x:u,y:r.y-a.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-a.width,y:d};break;default:f={x:r.x,y:r.y}}switch(hD(t)){case"start":f[i]-=p*(n&&c?-1:1);break;case"end":f[i]+=p*(n&&c?-1:1)}return f}async function TD(e,t){var n;void 0===t&&(t={});const{x:r,y:a,platform:o,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=pD(t,e),h=wD(f),m=s[p?"floating"===d?"reference":"floating":d],g=ED(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:r,y:a,width:i.floating.width,height:i.floating.height}:i.reference,b=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),v=await(null==o.isElement?void 0:o.isElement(b))&&await(null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},k=ED(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:l}):y);return{top:(g.top-k.top+h.top)/v.y,bottom:(k.bottom-g.bottom+h.bottom)/v.y,left:(g.left-k.left+h.left)/v.x,right:(k.right-g.right+h.right)/v.x}}function xD(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function _D(e){return rD.some((t=>e[t]>=0))}function AD(){return"undefined"!=typeof window}function CD(e){return RD(e)?(e.nodeName||"").toLowerCase():"#document"}function ID(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ND(e){var t;return null==(t=(RD(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function RD(e){return!!AD()&&(e instanceof Node||e instanceof ID(e).Node)}function OD(e){return!!AD()&&(e instanceof Element||e instanceof ID(e).Element)}function PD(e){return!!AD()&&(e instanceof HTMLElement||e instanceof ID(e).HTMLElement)}function LD(e){return!(!AD()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof ID(e).ShadowRoot)}function DD(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=jD(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function MD(e){return["table","td","th"].includes(CD(e))}function FD(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(gQ){return!1}}))}function BD(e){const t=zD(),n=OD(e)?jD(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function zD(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function HD(e){return["html","body","#document"].includes(CD(e))}function jD(e){return ID(e).getComputedStyle(e)}function UD(e){return OD(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $D(e){if("html"===CD(e))return e;const t=e.assignedSlot||e.parentNode||LD(e)&&e.host||ND(e);return LD(t)?t.host:t}function GD(e){const t=$D(e);return HD(t)?e.ownerDocument?e.ownerDocument.body:e.body:PD(t)&&DD(t)?t:GD(t)}function VD(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=GD(e),o=a===(null==(r=e.ownerDocument)?void 0:r.body),i=ID(a);if(o){const e=WD(i);return t.concat(i,i.visualViewport||[],DD(a)?a:[],e&&n?VD(e):[])}return t.concat(a,VD(a,[],n))}function WD(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qD(e){const t=jD(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=PD(e),o=a?e.offsetWidth:n,i=a?e.offsetHeight:r,s=iD(n)!==o||iD(r)!==i;return s&&(n=o,r=i),{width:n,height:r,$:s}}function YD(e){return OD(e)?e:e.contextElement}function XD(e){const t=YD(e);if(!PD(t))return lD(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=qD(t);let i=(o?iD(n.width):n.width)/r,s=(o?iD(n.height):n.height)/a;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const KD=lD(0);function QD(e){const t=ID(e);return zD()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:KD}function ZD(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),o=YD(e);let i=lD(1);t&&(r?OD(r)&&(i=XD(r)):i=XD(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==ID(e))&&t}(o,n,r)?QD(o):lD(0);let l=(a.left+s.x)/i.x,c=(a.top+s.y)/i.y,u=a.width/i.x,d=a.height/i.y;if(o){const e=ID(o),t=r&&OD(r)?ID(r):r;let n=e,a=WD(n);for(;a&&r&&t!==n;){const e=XD(a),t=a.getBoundingClientRect(),r=jD(a),o=t.left+(a.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(a.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=i,n=ID(a),a=WD(n)}}return ED({width:u,height:d,x:l,y:c})}function JD(e,t){const n=UD(e).scrollLeft;return t?t.left+n:ZD(ND(e)).left+n}function eM(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:JD(e,r)),y:r.top+t.scrollTop}}function tM(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=ID(e),r=ND(e),a=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,s=0,l=0;if(a){o=a.width,i=a.height;const e=zD();(!e||e&&"fixed"===t)&&(s=a.offsetLeft,l=a.offsetTop)}return{width:o,height:i,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=ND(e),n=UD(e),r=e.ownerDocument.body,a=oD(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=oD(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+JD(e);const s=-n.scrollTop;return"rtl"===jD(r).direction&&(i+=oD(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:i,y:s}}(ND(e));else if(OD(t))r=function(e,t){const n=ZD(e,!0,"fixed"===t),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=PD(e)?XD(e):lD(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:a*o.x,y:r*o.y}}(t,n);else{const n=QD(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ED(r)}function nM(e,t){const n=$D(e);return!(n===t||!OD(n)||HD(n))&&("fixed"===jD(n).position||nM(n,t))}function rM(e,t,n){const r=PD(t),a=ND(t),o="fixed"===n,i=ZD(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=lD(0);if(r||!r&&!o)if(("body"!==CD(t)||DD(a))&&(s=UD(t)),r){const e=ZD(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else a&&(l.x=JD(a));const c=!a||r||o?lD(0):eM(a,s);return{x:i.left+s.scrollLeft-l.x-c.x,y:i.top+s.scrollTop-l.y-c.y,width:i.width,height:i.height}}function aM(e){return"static"===jD(e).position}function oM(e,t){if(!PD(e)||"fixed"===jD(e).position)return null;if(t)return t(e);let n=e.offsetParent;return ND(e)===n&&(n=n.ownerDocument.body),n}function iM(e,t){const n=ID(e);if(FD(e))return n;if(!PD(e)){let t=$D(e);for(;t&&!HD(t);){if(OD(t)&&!aM(t))return t;t=$D(t)}return n}let r=oM(e,t);for(;r&&MD(r)&&aM(r);)r=oM(r,t);return r&&HD(r)&&aM(r)&&!BD(r)?n:r||function(e){let t=$D(e);for(;PD(t)&&!HD(t);){if(BD(t))return t;if(FD(t))return null;t=$D(t)}return null}(e)||n}const sM={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o="fixed"===a,i=ND(r),s=!!t&&FD(t.floating);if(r===i||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=lD(1);const u=lD(0),d=PD(r);if((d||!d&&!o)&&(("body"!==CD(r)||DD(i))&&(l=UD(r)),PD(r))){const e=ZD(r);c=XD(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const p=!i||d||o?lD(0):eM(i,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}},getDocumentElement:ND,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[..."clippingAncestors"===n?FD(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=VD(e,[],!1).filter((e=>OD(e)&&"body"!==CD(e))),a=null;const o="fixed"===jD(e).position;let i=o?$D(e):e;for(;OD(i)&&!HD(i);){const t=jD(i),n=BD(i);n||"fixed"!==t.position||(a=null),(o?!n&&!a:!n&&"static"===t.position&&a&&["absolute","fixed"].includes(a.position)||DD(i)&&!n&&nM(e,i))?r=r.filter((e=>e!==i)):a=t,i=$D(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=o[0],s=o.reduce(((e,n)=>{const r=tM(t,n,a);return e.top=oD(r.top,e.top),e.right=aD(r.right,e.right),e.bottom=aD(r.bottom,e.bottom),e.left=oD(r.left,e.left),e}),tM(t,i,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:iM,getElementRects:async function(e){const t=this.getOffsetParent||iM,n=this.getDimensions,r=await n(e.floating);return{reference:rM(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=qD(e);return{width:t,height:n}},getScale:XD,isElement:OD,isRTL:function(e){return"rtl"===jD(e).direction}};function lM(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function cM(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=YD(e),u=a||o?[...c?VD(c):[],...VD(t)]:[];u.forEach((e=>{a&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const a=ND(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:f}=c;if(s||t(),!p||!f)return;const h={rootMargin:-sD(d)+"px "+-sD(a.clientWidth-(u+p))+"px "+-sD(a.clientHeight-(d+f))+"px "+-sD(u)+"px",threshold:oD(0,aD(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return i();r?i(!1,r):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}1!==r||lM(c,e.getBoundingClientRect())||i(),m=!1}try{r=new IntersectionObserver(g,{...h,root:a.ownerDocument})}catch(gQ){r=new IntersectionObserver(g,h)}r.observe(e)}(!0),o}(c,n):null;let p,f=-1,h=null;i&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!l&&h.observe(c),h.observe(t));let m=l?ZD(e):null;return l&&function t(){const r=ZD(e);m&&!lM(m,r)&&n();m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{a&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const uM=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:o,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:a}=e,o=await(null==r.isRTL?void 0:r.isRTL(a.floating)),i=fD(n),s=hD(n),l="y"===yD(n),c=["left","top"].includes(i)?-1:1,u=o&&l?-1:1,d=pD(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(f="end"===s?-1*h:h),l?{x:f*u,y:p*c}:{x:p*c,y:f*u}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:a+l.x,y:o+l.y,data:{...l,placement:i}}}}},dM=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=pD(e,t),c={x:n,y:r},u=await TD(t,l),d=yD(fD(a)),p=mD(d);let f=c[p],h=c[d];if(o){const e="y"===p?"bottom":"right";f=dD(f+u["y"===p?"top":"left"],f,f-u[e])}if(i){const e="y"===d?"bottom":"right";h=dD(h+u["y"===d?"top":"left"],h,h-u[e])}const m=s.fn({...t,[p]:f,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[p]:o,[d]:i}}}}}},pM=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:o,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=pD(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const y=fD(a),b=yD(s),v=fD(s)===s,k=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(v||!m?[kD(s)]:function(e){const t=kD(e);return[vD(e),t,vD(t)]}(s)),E="none"!==h;!p&&E&&w.push(...function(e,t,n,r){const a=hD(e);let o=function(e,t,n){const r=["left","right"],a=["right","left"],o=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?a:r:t?r:a;case"left":case"right":return t?o:i;default:return[]}}(fD(e),"start"===n,r);return a&&(o=o.map((e=>e+"-"+a)),t&&(o=o.concat(o.map(vD)))),o}(s,m,h,k));const S=[s,...w],T=await TD(t,g),x=[];let _=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&x.push(T[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=hD(e),a=bD(e),o=gD(a);let i="x"===a?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=kD(i)),[i,kD(i)]}(a,i,k);x.push(T[e[0]],T[e[1]])}if(_=[..._,{placement:a,overflows:x}],!x.every((e=>e<=0))){var A,C;const e=((null==(A=o.flip)?void 0:A.index)||0)+1,t=S[e];if(t)return{data:{index:e,overflows:_},reset:{placement:t}};let n=null==(C=_.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:C.placement;if(!n)switch(f){case"bestFit":{var I;const e=null==(I=_.filter((e=>{if(E){const t=yD(e.placement);return t===b||"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:I[0];e&&(n=e);break}case"initialPlacement":n=s}if(a!==n)return{reset:{placement:n}}}return{}}}},fM=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:o,platform:i,elements:s}=t,{apply:l=()=>{},...c}=pD(e,t),u=await TD(t,c),d=fD(a),p=hD(a),f="y"===yD(a),{width:h,height:m}=o.floating;let g,y;"top"===d||"bottom"===d?(g=d,y=p===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,g="end"===p?"top":"bottom");const b=m-u.top-u.bottom,v=h-u.left-u.right,k=aD(m-u[g],b),w=aD(h-u[y],v),E=!t.middlewareData.shift;let S=k,T=w;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(T=v),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=b),E&&!p){const e=oD(u.left,0),t=oD(u.right,0),n=oD(u.top,0),r=oD(u.bottom,0);f?T=h-2*(0!==e||0!==t?e+t:oD(u.left,u.right)):S=m-2*(0!==n||0!==r?n+r:oD(u.top,u.bottom))}await l({...t,availableWidth:T,availableHeight:S});const x=await i.getDimensions(s.floating);return h!==x.width||m!==x.height?{reset:{rects:!0}}:{}}}},hM=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=pD(e,t);switch(r){case"referenceHidden":{const e=xD(await TD(t,{...a,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:_D(e)}}}case"escaped":{const e=xD(await TD(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:_D(e)}}}default:return{}}}}},mM=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:o,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=pD(e,t)||{};if(null==c)return{};const d=wD(u),p={x:n,y:r},f=bD(a),h=gD(f),m=await i.getDimensions(c),g="y"===f,y=g?"top":"left",b=g?"bottom":"right",v=g?"clientHeight":"clientWidth",k=o.reference[h]+o.reference[f]-p[f]-o.floating[h],w=p[f]-o.reference[f],E=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let S=E?E[v]:0;S&&await(null==i.isElement?void 0:i.isElement(E))||(S=s.floating[v]||o.floating[h]);const T=k/2-w/2,x=S/2-m[h]/2-1,_=aD(d[y],x),A=aD(d[b],x),C=_,I=S-m[h]-A,N=S/2-m[h]/2+T,R=dD(C,N,I),O=!l.arrow&&null!=hD(a)&&N!==R&&o.reference[h]/2-(N<C?_:A)-m[h]/2<0,P=O?N<C?N-C:N-I:0;return{[f]:p[f]+P,data:{[f]:R,centerOffset:N-R-P,...O&&{alignmentOffset:P}},reset:O}}}),gM=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:o,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=pD(e,t),u={x:n,y:r},d=yD(a),p=mD(d);let f=u[p],h=u[d];const m=pD(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===p?"height":"width",t=o.reference[p]-o.floating[e]+g.mainAxis,n=o.reference[p]+o.reference[e]-g.mainAxis;f<t?f=t:f>n&&(f=n)}if(c){var y,b;const e="y"===p?"width":"height",t=["top","left"].includes(fD(a)),n=o.reference[d]-o.floating[e]+(t&&(null==(y=i.offset)?void 0:y[d])||0)+(t?0:g.crossAxis),r=o.reference[d]+o.reference[e]+(t?0:(null==(b=i.offset)?void 0:b[d])||0)-(t?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[p]:f,[d]:h}}}},yM=(e,t,n)=>{const r=new Map,a={platform:sM,...n},o={...a.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:i}=n,s=o.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:d}=SD(c,r,l),p=r,f={},h=0;for(let m=0;m<s.length;m++){const{name:n,fn:o}=s[m],{x:g,y:y,data:b,reset:v}=await o({x:u,y:d,initialPlacement:r,placement:p,strategy:a,middlewareData:f,rects:c,platform:i,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=y?y:d,f={...f,[n]:{...f[n],...b}},v&&h<=50&&(h++,"object"==typeof v&&(v.placement&&(p=v.placement),v.rects&&(c=!0===v.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):v.rects),({x:u,y:d}=SD(c,p,l))),m=-1)}return{x:u,y:d,placement:p,strategy:a,middlewareData:f}})(e,t,{...a,platform:o})};var bM="undefined"!=typeof document?V.useLayoutEffect:V.useEffect;function vM(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!vM(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;0!=r--;){const n=a[r];if(("_owner"!==n||!e.$$typeof)&&!vM(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function kM(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function wM(e,t){const n=kM(e);return Math.round(t*n)/n}function EM(e){const t=V.useRef(e);return bM((()=>{t.current=e})),t}const SM=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(a=n,{}.hasOwnProperty.call(a,"current"))?null!=n.current?mM({element:n.current,padding:r}).fn(t):{}:n?mM({element:n,padding:r}).fn(t):{};var a}}),TM=(e,t)=>({...dM(e),options:[e,t]}),xM=(e,t)=>({...gM(e),options:[e,t]}),_M=(e,t)=>({...pM(e),options:[e,t]}),AM=(e,t)=>({...fM(e),options:[e,t]}),CM=(e,t)=>({...hM(e),options:[e,t]}),IM=(e,t)=>({...SM(e),options:[e,t]});var NM=V.forwardRef(((e,t)=>{const{children:n,width:r=10,height:a=5,...o}=e;return jf.jsx(qL.svg,{...o,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:jf.jsx("polygon",{points:"0,0 30,0 15,10"})})}));NM.displayName="Arrow";var RM=NM;function OM(e){const[t,n]=V.useState(void 0);return _O((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let a,o;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;a=t.inlineSize,o=t.blockSize}else a=e.offsetWidth,o=e.offsetHeight;n({width:a,height:o})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}var PM="Popper",[LM,DM]=HL(PM),[MM,FM]=LM(PM),BM=e=>{const{__scopePopper:t,children:n}=e,[r,a]=V.useState(null);return jf.jsx(MM,{scope:t,anchor:r,onAnchorChange:a,children:n})};BM.displayName=PM;var zM="PopperAnchor",HM=V.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,o=FM(zM,n),i=V.useRef(null),s=zL(t,i);return V.useEffect((()=>{o.onAnchorChange((null==r?void 0:r.current)||i.current)})),r?null:jf.jsx(qL.div,{...a,ref:s})}));HM.displayName=zM;var jM="PopperContent",[UM,$M]=LM(jM),GM=V.forwardRef(((e,t)=>{var n,r,a,o,i,s;const{__scopePopper:l,side:c="bottom",sideOffset:u=0,align:d="center",alignOffset:p=0,arrowPadding:f=0,avoidCollisions:h=!0,collisionBoundary:m=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:b=!1,updatePositionStrategy:v="optimized",onPlaced:k,...w}=e,E=FM(jM,l),[S,T]=V.useState(null),x=zL(t,(e=>T(e))),[_,A]=V.useState(null),C=OM(_),I=(null==C?void 0:C.width)??0,N=(null==C?void 0:C.height)??0,R=c+("center"!==d?"-"+d:""),O="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},P=Array.isArray(m)?m:[m],L=P.length>0,D={padding:O,boundary:P.filter(YM),altBoundary:L},{refs:M,floatingStyles:F,placement:B,isPositioned:z,middlewareData:H}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:o,floating:i}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=V.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=V.useState(r);vM(p,r)||f(r);const[h,m]=V.useState(null),[g,y]=V.useState(null),b=V.useCallback((e=>{e!==E.current&&(E.current=e,m(e))}),[]),v=V.useCallback((e=>{e!==S.current&&(S.current=e,y(e))}),[]),k=o||h,w=i||g,E=V.useRef(null),S=V.useRef(null),T=V.useRef(u),x=null!=l,_=EM(l),A=EM(a),C=EM(c),I=V.useCallback((()=>{if(!E.current||!S.current)return;const e={placement:t,strategy:n,middleware:p};A.current&&(e.platform=A.current),yM(E.current,S.current,e).then((e=>{const t={...e,isPositioned:!1!==C.current};N.current&&!vM(T.current,t)&&(T.current=t,re.flushSync((()=>{d(t)})))}))}),[p,t,n,A,C]);bM((()=>{!1===c&&T.current.isPositioned&&(T.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const N=V.useRef(!1);bM((()=>(N.current=!0,()=>{N.current=!1})),[]),bM((()=>{if(k&&(E.current=k),w&&(S.current=w),k&&w){if(_.current)return _.current(k,w,I);I()}}),[k,w,I,_,x]);const R=V.useMemo((()=>({reference:E,floating:S,setReference:b,setFloating:v})),[b,v]),O=V.useMemo((()=>({reference:k,floating:w})),[k,w]),P=V.useMemo((()=>{const e={position:n,left:0,top:0};if(!O.floating)return e;const t=wM(O.floating,u.x),r=wM(O.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...kM(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,O.floating,u.x,u.y]);return V.useMemo((()=>({...u,update:I,refs:R,elements:O,floatingStyles:P})),[u,I,R,O,P])}({strategy:"fixed",placement:R,whileElementsMounted:(...e)=>cM(...e,{animationFrame:"always"===v}),elements:{reference:E.anchor},middleware:[(j={mainAxis:u+N,alignmentAxis:p},{...uM(j),options:[j,U]}),h&&TM({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?xM():void 0,...D}),h&&_M({...D}),AM({...D,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:a,height:o}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${a}px`),i.setProperty("--radix-popper-anchor-height",`${o}px`)}}),_&&IM({element:_,padding:f}),XM({arrowWidth:I,arrowHeight:N}),b&&CM({strategy:"referenceHidden",...D})]});var j,U;const[$,G]=KM(B),W=YL(k);_O((()=>{z&&(null==W||W())}),[z,W]);const q=null==(n=H.arrow)?void 0:n.x,Y=null==(r=H.arrow)?void 0:r.y,X=0!==(null==(a=H.arrow)?void 0:a.centerOffset),[K,Q]=V.useState();return _O((()=>{S&&Q(window.getComputedStyle(S).zIndex)}),[S]),jf.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:z?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:K,"--radix-popper-transform-origin":[null==(o=H.transformOrigin)?void 0:o.x,null==(i=H.transformOrigin)?void 0:i.y].join(" "),...(null==(s=H.hide)?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:jf.jsx(UM,{scope:l,placedSide:$,onArrowChange:A,arrowX:q,arrowY:Y,shouldHideArrow:X,children:jf.jsx(qL.div,{"data-side":$,"data-align":G,...w,ref:x,style:{...w.style,animation:z?void 0:"none"}})})})}));GM.displayName=jM;var VM="PopperArrow",WM={top:"bottom",right:"left",bottom:"top",left:"right"},qM=V.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,a=$M(VM,n),o=WM[a.placedSide];return jf.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:jf.jsx(RM,{...r,ref:t,style:{...r.style,display:"block"}})})}));function YM(e){return null!==e}qM.displayName=VM;var XM=e=>({name:"transformOrigin",options:e,fn(t){var n,r,a;const{placement:o,rects:i,middlewareData:s}=t,l=0!==(null==(n=s.arrow)?void 0:n.centerOffset),c=l?0:e.arrowWidth,u=l?0:e.arrowHeight,[d,p]=KM(o),f={start:"0%",center:"50%",end:"100%"}[p],h=((null==(r=s.arrow)?void 0:r.x)??0)+c/2,m=((null==(a=s.arrow)?void 0:a.y)??0)+u/2;let g="",y="";return"bottom"===d?(g=l?f:`${h}px`,y=-u+"px"):"top"===d?(g=l?f:`${h}px`,y=`${i.floating.height+u}px`):"right"===d?(g=-u+"px",y=l?f:`${m}px`):"left"===d&&(g=`${i.floating.width+u}px`,y=l?f:`${m}px`),{data:{x:g,y:y}}}});function KM(e){const[t,n="center"]=e.split("-");return[t,n]}var QM=BM,ZM=HM,JM=GM,eF=qM;var tF=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=V.useState(),r=V.useRef({}),a=V.useRef(e),o=V.useRef("none"),i=e?"mounted":"unmounted",[s,l]=function(e,t){return V.useReducer(((e,n)=>t[e][n]??e),e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return V.useEffect((()=>{const e=nF(r.current);o.current="mounted"===s?e:"none"}),[s]),_O((()=>{const t=r.current,n=a.current;if(n!==e){const r=o.current,i=nF(t);if(e)l("MOUNT");else if("none"===i||"none"===(null==t?void 0:t.display))l("UNMOUNT");else{l(n&&r!==i?"ANIMATION_OUT":"UNMOUNT")}a.current=e}}),[e,l]),_O((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,i=o=>{const i=nF(r.current).includes(o.animationName);if(o.target===t&&i&&(l("ANIMATION_END"),!a.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},s=e=>{e.target===t&&(o.current=nF(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}l("ANIMATION_END")}),[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:V.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),a="function"==typeof n?n({present:r.isPresent}):V.Children.only(n),o=zL(r.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}(a));return"function"==typeof n||r.isPresent?V.cloneElement(a,{ref:o}):null};function nF(e){return(null==e?void 0:e.animationName)||"none"}function rF({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,a]=function({defaultProp:e,onChange:t}){const n=V.useState(e),[r]=n,a=V.useRef(r),o=YL(t);return V.useEffect((()=>{a.current!==r&&(o(r),a.current=r)}),[r,a,o]),n}({defaultProp:t,onChange:n}),o=void 0!==e,i=o?e:r,s=YL(n);return[i,V.useCallback((t=>{if(o){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else a(t)}),[o,e,a,s])]}tF.displayName="Presence";var aF=V.forwardRef(((e,t)=>jf.jsx(qL.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));aF.displayName="VisuallyHidden";const oF=V.createContext(void 0),iF=({children:e,componentStyles:t})=>jf.jsx(oF.Provider,{value:{componentStyles:t},children:e}),sF=["light","dark"],lF="(prefers-color-scheme: dark)",cF="undefined"==typeof window,uF=V.createContext(void 0),dF={setColorMode:e=>{},colorModes:[]};function pF(e,t){const n=V.useContext(uF)??dF;return"dark"===(n.forcedColorMode??n.resolvedColorMode)?t:e}const fF=e=>(V.useContext(uF),jf.jsx(mF,{...e})),hF=["light","dark"],mF=({forcedColorMode:e,disableTransitionOnChange:t=!1,enableSystem:n=!1,enableColorScheme:r=!0,storageKey:a="inkeep-colorMode",colorModes:o=hF,defaultColorMode:i=(n?"system":"light"),attribute:s="data-theme",value:l,children:c,nonce:u,shadowHostId:d,rootId:p})=>{const[f,h]=V.useState((()=>yF(a,i))),[m,g]=V.useState((()=>yF(a))),y=l?Object.values(l):o,b=V.useCallback((e=>{var a;let o=e;if(!o)return;"system"===e&&n&&(o=vF());const c=l?l[o]:o,u=t?bF():null,f=d&&p&&(null==(a=document.getElementById(d))?void 0:a.shadowRoot),h=f?f.getElementById(p)??document.documentElement:document.documentElement;if("class"===s?(h.classList.remove(...y),c&&h.classList.add(c)):c?h.setAttribute(s,c):h.removeAttribute(s),r){const e=sF.includes(i)?i:null,t=sF.includes(o)?o:e;h.style.colorScheme=t}null==u||u()}),[]),v=V.useCallback((e=>{h(e);try{localStorage.setItem(a,e)}catch(gQ){}}),[e]),k=V.useCallback((t=>{const r=vF(t);g(r),"system"===f&&n&&!e&&b("system")}),[f,e]);V.useEffect((()=>{const e=window.matchMedia(lF);return e.addListener(k),k(e),()=>e.removeListener(k)}),[k]),V.useEffect((()=>{const e=e=>{if(e.key!==a)return;const t=e.newValue||i;v(t)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)}),[v]),V.useEffect((()=>{b(e??f)}),[e,f]);const w=V.useMemo((()=>({colorMode:f,setColorMode:v,forcedColorMode:e,resolvedColorMode:"system"===f?m:f,colorModes:n?[...o,"system"]:o,systemColorMode:n?m:void 0})),[f,v,e,m,n,o]);return jf.jsxs(uF.Provider,{value:w,children:[jf.jsx(gF,{forcedColorMode:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:r,storageKey:a,colorModes:o,defaultColorMode:i,attribute:s,value:l,children:c,attrs:y,nonce:u,shadowHostId:d,rootId:p}),c]})},gF=V.memo((({forcedColorMode:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:a,defaultColorMode:o,value:i,attrs:s,nonce:l,shadowHostId:c,rootId:u})=>{const d="system"===o,p=(()=>{const e=c&&u?`document.getElementById('${c}').shadowRoot.getElementById('${u}')`:"document.documentElement";if("class"===n){return`var d=${e},c=d.classList;${`c.remove(${s.map((e=>`'${e}'`)).join(",")})`};`}return`var d=${e},n='${n}',s='setAttribute';`})(),f=(()=>{if(!a)return"";return(sF.includes(o)?o:null)?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e"})(),h=(e,t=!1,r=!0)=>{const o=i?i[e]:e,s=t?`${e}|| ''`:`'${o}'`;let l="";return a&&r&&!t&&sF.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===n?l+=t||o?`c.add(${s})`:"null":o&&(l+=`d[s](n,${s})`),l},m=e?`!function(){${p}${h(e)}}()`:r?`!function(){try{${p}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${d})){var t='${lF}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${h(i?"x[e]":"e",!0)}}${d?"":`else{${h(o,!1,!1)}}`}${f}}catch(e){}}()`:`!function(){try{${p}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${h(i?"x[e]":"e",!0)}}else{${h(o,!1,!1)};}${f}}catch(t){}}();`;return jf.jsx("script",{nonce:l,dangerouslySetInnerHTML:{__html:m}})}),(()=>!0)),yF=(e,t)=>{if(cF)return;let n;try{n=localStorage.getItem(e)||void 0}catch(gQ){}return n||t},bF=()=>{const e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout((()=>{document.head.removeChild(e)}),1)}},vF=e=>{e||(e=window.matchMedia(lF));return e.matches?"dark":"light"};var kF=Object.prototype.hasOwnProperty;function wF(e,t,n){for(n of e.keys())if(EF(n,t))return n}function EF(e,t){var n,r,a;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&EF(e[r],t[r]););return-1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e){if((a=r)&&"object"==typeof a&&!(a=wF(t,a)))return!1;if(!t.has(a))return!1}return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e){if((a=r[0])&&"object"==typeof a&&!(a=wF(t,a)))return!1;if(!EF(r[1],t.get(a)))return!1}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return-1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}if(!n||"object"==typeof e){for(n in r=0,e){if(kF.call(e,n)&&++r&&!kF.call(t,n))return!1;if(!(n in t)||!EF(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!=e&&t!=t}function SF(){const{baseSettings:e}=BO(),[t,n]=V.useState([]),r=function(e){const t=V.useRef(void 0);EF(t.current,e)||(t.current=e);return t.current}(e.theme.styles),{customStyles:a,linksCount:o}=V.useMemo((()=>{if(!r||!Array.isArray(r))return{customStyles:null,loaded:!0};const{links:e,styleSheets:t}=r.reduce(((e,t)=>("link"===t.type?e.links.push(t):"style"===t.type&&e.styleSheets.push(t),e)),{links:[],styleSheets:[]}),a=t.map((e=>jf.jsx("style",{type:"text/css",dangerouslySetInnerHTML:{__html:e.value}},e.key??$f("link_")))),o=e.map((e=>{const t=e.key??$f("stylesheet_");return jf.jsx("link",{id:t,rel:"stylesheet",type:"text/css",href:e.value,onLoad:()=>{n((t=>[...new Set([...t,e.value])]))}},t)}));return{customStyles:jf.jsxs(jf.Fragment,{children:[o,a]}),linksCount:e.length}}),[r]);return{customStyles:a,loaded:t.length>=(o??0)}}const TF=({children:e})=>{const{baseSettings:t}=BO(),{theme:n,primaryBrandColor:r,shadowHost:a,rootElement:o,colorMode:i}=t,{primaryColors:s,varsClassName:l}=n,{fontFamily:c,fontSize:u,zIndex:d}=n,p=mE(s,r),f=function(e){const t={};for(const[n,r]of Object.entries(e)){const e=yE[n]||n,a=(n,r=[])=>{for(const[o,i]of Object.entries(n)){const n=[...r,o];if("object"==typeof i&&null!==i)a(i,n);else{const r=n.map((e=>e.replace(/([A-Z])/g,"-$1").toLowerCase())).join("-");t[`--ikp-${e}-${r}`]=i}}};a(r)}return t}({colors:If(n.colors,p),fontFamily:c,fontSize:u,zIndex:d}),{customStyles:h,loaded:m}=SF(),{sync:g,forcedColorMode:y,...b}=i??{},[v,k]=V.useState(),w=V.useRef(null);return V.useEffect((()=>{var e,t;if(!(null==g?void 0:g.target))return;const n="string"==typeof g.target?document.querySelector(g.target):g.target;if(!n)return;function r(e,t){return t.reduce(((t,n)=>({...t,[n]:e.getAttribute(n)})),{})}const a=new MutationObserver((()=>{var e,t;const a=r(n,g.attributes),o=(null==(e=g.isDarkMode)?void 0:e.call(g,a))?"dark":"light";null==(t=g.onChange)||t.call(g,o),k(o)}));a.observe(n,{attributes:!0,attributeFilter:g.attributes,childList:!1,subtree:!1}),w.current=a;const o=(null==(e=g.isDarkMode)?void 0:e.call(g,r(n,null==g?void 0:g.attributes)))?"dark":"light";return null==(t=g.onChange)||t.call(g,o),k(o),()=>a.disconnect()}),[g]),jf.jsxs(jf.Fragment,{children:[h,m&&jf.jsx(fF,{forcedColorMode:y??v,...b,shadowHostId:null==a?void 0:a.id,rootId:null==o?void 0:o.id,children:jf.jsx("div",{className:l,style:{display:"contents",...f},children:e})})]})};function xF(e){const{children:t,config:n,componentType:r}=e;return jf.jsx(FO,{value:{...n,componentType:r},children:jf.jsx(TF,{children:jf.jsx(XO,{children:t})})})}const _F=V.createContext(void 0),AF=({children:e,source:t})=>jf.jsx(_F.Provider,{value:{source:t},children:e}),CF=()=>{const e=V.useContext(_F);if(!e)throw new Error("useSourceItem must be used within a SourceItemProvider");return e};function IF(e,t){var n;const{prefix:r}=BO(),a=V.useContext(oF),o=function(e,t){return!!(null==t?void 0:t.componentStyles)&&e in t.componentStyles}(e,a);return[t,o?null==(n=null==a?void 0:a.componentStyles)?void 0:n[e]:void 0,`${r}-${aP(e)}`].filter(Boolean).join(" ")}function NF(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function RF(...e){return t=>{let n=!1;const r=e.map((e=>{const r=NF(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():NF(e[t],null)}}}}function OF(...e){return V.useCallback(RF(...e),e)}const PF=(...e)=>e.map((e=>{var t;return null==(t=null==e?void 0:e.trim)?void 0:t.call(e)})).filter(Boolean).join(" "),LF=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,DF=e=>{const t={};let n;for(;n=LF.exec(e);)t[n[1]]=n[2];return t},MF=(e,t)=>{if(rP(e)){if(rP(t))return`${e};${t}`;e=DF(e)}else rP(t)&&(t=DF(t));return Object.assign({},e??{},t??{})};function FF(...e){let t={};for(let n of e){for(let e in t)e.startsWith("on")&&"function"==typeof t[e]&&"function"==typeof n[e]?t[e]=nP(n[e],t[e]):t[e]="className"!==e&&"class"!==e?"style"!==e?void 0!==n[e]?n[e]:t[e]:MF(t[e],n[e]):PF(t[e],n[e]);for(let e in n)void 0===t[e]&&(t[e]=n[e])}return t}const BF=(e,t)=>{const n=V.memo(V.forwardRef(((n,r)=>{const{_id:a,className:o,children:i,...s}=t,{asChild:l,children:c,...u}=n,d=c||i,p=FF(s,u,{className:IF(a,o),"data-part":aP(a)});if(!l)return V.createElement(e,{...p,ref:r},d);const f=V.Children.only(d);if(!V.isValidElement(f))return null;const h=function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;return a?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}(f);return V.cloneElement(f,{...FF(p,f.props),ref:r?RF(r,h):h})})));return n.displayName=e.displayName||e.name,n},zF=new Proxy(BF,{apply(e,t,n){const r=n[0],a=n[1];return BF(r,a)}});function HF(){return HF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HF.apply(null,arguments)}function jF(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var UF=V.useLayoutEffect,$F=function(e,t){"function"!=typeof e?e.current=t:e(t)},GF={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},VF=function(e){Object.keys(GF).forEach((function(t){e.style.setProperty(t,GF[t],"important")}))},WF=null,qF=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize};var YF=function(){},XF=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],KF=!!document.documentElement.currentStyle,QF=function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n,r=(n=t,XF.reduce((function(e,t){return e[t]=n[t],e}),{})),a=r.boxSizing;return""===a?null:(KF&&"border-box"===a&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px"),{sizingStyle:r,paddingSize:parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),borderSize:parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth)})};function ZF(e,t,n){var r,a,o=(r=n,a=W.useRef(r),UF((function(){a.current=r})),a);V.useLayoutEffect((function(){var n=function(e){return o.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}}),[])}var JF=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],eB=function(e,t){var n=e.cacheMeasurements,r=e.maxRows,a=e.minRows,o=e.onChange,i=void 0===o?YF:o,s=e.onHeightChange,l=void 0===s?YF:s,c=jF(e,JF),u=void 0!==c.value,d=V.useRef(null),p=function(e,t){var n=W.useRef();return W.useCallback((function(r){e.current=r,n.current&&$F(n.current,null),n.current=t,t&&$F(t,r)}),[t])}(d,t),f=V.useRef(0),h=V.useRef(),m=function(){var e=d.current,t=n&&h.current?h.current:QF(e);if(t){h.current=t;var o=function(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=1/0),WF||((WF=document.createElement("textarea")).setAttribute("tabindex","-1"),WF.setAttribute("aria-hidden","true"),VF(WF)),null===WF.parentNode&&document.body.appendChild(WF);var a=e.paddingSize,o=e.borderSize,i=e.sizingStyle,s=i.boxSizing;Object.keys(i).forEach((function(e){var t=e;WF.style[t]=i[t]})),VF(WF),WF.value=t;var l=qF(WF,e);WF.value=t,l=qF(WF,e),WF.value="x";var c=WF.scrollHeight-a,u=c*n;"border-box"===s&&(u=u+a+o),l=Math.max(u,l);var d=c*r;return"border-box"===s&&(d=d+a+o),[l=Math.min(d,l),c]}(t,e.value||e.placeholder||"x",a,r),i=o[0],s=o[1];f.current!==i&&(f.current=i,e.style.setProperty("height",i+"px","important"),l(i,{rowHeight:s}))}};return V.useLayoutEffect(m),function(e,t){ZF(document.body,"reset",(function(n){e.current.form===n.target&&t(n)}))}(d,(function(){if(!u){var e=d.current,t=e.value;requestAnimationFrame((function(){t!==e.value&&m()}))}})),ZF(window,"resize",m),function(e){ZF(document.fonts,"loadingdone",e)}(m),V.createElement("textarea",HF({},c,{onChange:function(e){u||m(),i(e)},ref:p}))},tB=V.forwardRef(eB);function nB(e){const t=V.useRef({value:e,previous:e});return V.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}var rB="Checkbox",[aB,oB]=HL(rB),[iB,sB]=aB(rB),lB=V.forwardRef(((e,t)=>{const{__scopeCheckbox:n,name:r,checked:a,defaultChecked:o,required:i,disabled:s,value:l="on",onCheckedChange:c,form:u,...d}=e,[p,f]=V.useState(null),h=zL(t,(e=>f(e))),m=V.useRef(!1),g=!p||(u||!!p.closest("form")),[y=!1,b]=rF({prop:a,defaultProp:o,onChange:c}),v=V.useRef(y);return V.useEffect((()=>{const e=null==p?void 0:p.form;if(e){const t=()=>b(v.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[p,b]),jf.jsxs(iB,{scope:n,state:y,disabled:s,children:[jf.jsx(qL.button,{type:"button",role:"checkbox","aria-checked":pB(y)?"mixed":y,"aria-required":i,"data-state":fB(y),"data-disabled":s?"":void 0,disabled:s,value:l,...d,ref:h,onKeyDown:ML(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:ML(e.onClick,(e=>{b((e=>!!pB(e)||!e)),g&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())}))}),g&&jf.jsx(dB,{control:p,bubbles:!m.current,name:r,value:l,checked:y,required:i,disabled:s,form:u,style:{transform:"translateX(-100%)"},defaultChecked:!pB(o)&&o})]})}));lB.displayName=rB;var cB="CheckboxIndicator",uB=V.forwardRef(((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...a}=e,o=sB(cB,n);return jf.jsx(tF,{present:r||pB(o.state)||!0===o.state,children:jf.jsx(qL.span,{"data-state":fB(o.state),"data-disabled":o.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})}));uB.displayName=cB;var dB=e=>{const{control:t,checked:n,bubbles:r=!0,defaultChecked:a,...o}=e,i=V.useRef(null),s=nB(n),l=OM(t);V.useEffect((()=>{const e=i.current,t=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(t,"checked").set;if(s!==n&&a){const t=new Event("click",{bubbles:r});e.indeterminate=pB(n),a.call(e,!pB(n)&&n),e.dispatchEvent(t)}}),[s,n,r]);const c=V.useRef(!pB(n)&&n);return jf.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:a??c.current,...o,tabIndex:-1,ref:i,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function pB(e){return"indeterminate"===e}function fB(e){return pB(e)?"indeterminate":e?"checked":"unchecked"}var hB=lB,mB=uB,gB=0;function yB(){const 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}var bB="focusScope.autoFocusOnMount",vB="focusScope.autoFocusOnUnmount",kB={bubbles:!1,cancelable:!0},wB=V.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...i}=e,[s,l]=V.useState(null),c=YL(a),u=YL(o),d=V.useRef(null),p=zL(t,(e=>l(e))),f=V.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;V.useEffect((()=>{if(r){let e=function(e){if(f.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:xB(d.current,{select:!0})},t=function(e){if(f.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||xB(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&xB(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,s,f.paused]),V.useEffect((()=>{if(s){_B.add(f);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(bB,kB);s.addEventListener(bB,c),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(xB(r,{select:t}),document.activeElement!==n)return}((e=EB(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&xB(s))}return()=>{s.removeEventListener(bB,c),setTimeout((()=>{const e=new CustomEvent(vB,kB);s.addEventListener(vB,u),s.dispatchEvent(e),e.defaultPrevented||xB(t??document.body,{select:!0}),s.removeEventListener(vB,u),_B.remove(f)}),0)}}var e}),[s,c,u,f]);const h=V.useCallback((e=>{if(!n&&!r)return;if(f.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,a=document.activeElement;if(t&&a){const t=e.currentTarget,[r,o]=function(e){const t=EB(e),n=SB(t,e),r=SB(t.reverse(),e);return[n,r]}(t);r&&o?e.shiftKey||a!==o?e.shiftKey&&a===r&&(e.preventDefault(),n&&xB(o,{select:!0})):(e.preventDefault(),n&&xB(r,{select:!0})):a===t&&e.preventDefault()}}),[n,r,f.paused]);return jf.jsx(qL.div,{tabIndex:-1,...i,ref:p,onKeyDown:h})}));function EB(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const 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(;n.nextNode();)t.push(n.currentNode);return t}function SB(e,t){for(const n of e)if(!TB(n,{upTo:t}))return n}function TB(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function xB(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}wB.displayName="FocusScope";var _B=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=AB(e,t),e.unshift(t)},remove(t){var n;e=AB(e,t),null==(n=e[0])||n.resume()}}}();function AB(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var CB=new WeakMap,IB=new WeakMap,NB={},RB=0,OB=function(e){return e&&(e.host||OB(e.parentNode))},PB=function(e,t,n,r){var a=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=OB(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);NB[n]||(NB[n]=new WeakMap);var o=NB[n],i=[],s=new Set,l=new Set(a),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};a.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),a=null!==t&&"false"!==t,l=(CB.get(e)||0)+1,c=(o.get(e)||0)+1;CB.set(e,l),o.set(e,c),i.push(e),1===l&&a&&IB.set(e,!0),1===c&&e.setAttribute(n,"true"),a||e.setAttribute(r,"true")}catch(gQ){console.error("aria-hidden: cannot operate on ",e,gQ)}}))};return u(t),s.clear(),RB++,function(){i.forEach((function(e){var t=CB.get(e)-1,a=o.get(e)-1;CB.set(e,t),o.set(e,a),t||(IB.has(e)||e.removeAttribute(r),IB.delete(e)),a||e.removeAttribute(n)})),--RB||(CB=new WeakMap,CB=new WeakMap,IB=new WeakMap,NB={})}},LB=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live]"))),PB(r,a,n,"aria-hidden")):function(){return null}},DB=function(){return DB=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},DB.apply(this,arguments)};function MB(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function FB(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a<o;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var BB="right-scroll-bar-position",zB="width-before-scroll-bar";function HB(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var jB="undefined"!=typeof window?V.useLayoutEffect:V.useEffect,UB=new WeakMap;function $B(e,t){var n,r,a,o=(n=null,r=function(t){return e.forEach((function(e){return HB(e,t)}))},(a=V.useState((function(){return{value:n,callback:r,facade:{get current(){return a.value},set current(e){var t=a.value;t!==e&&(a.value=e,a.callback(e,t))}}}}))[0]).callback=r,a.facade);return jB((function(){var t=UB.get(o);if(t){var n=new Set(t),r=new Set(e),a=o.current;n.forEach((function(e){r.has(e)||HB(e,null)})),r.forEach((function(e){n.has(e)||HB(e,a)}))}UB.set(o,e)}),[e]),o}function GB(e){return e}var VB=function(e){var t=e.sideCar,n=MB(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return V.createElement(r,DB({},n))};VB.isSideCarExport=!0;var WB=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=GB);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var a=t(e,r);return n.push(a),function(){n=n.filter((function(e){return e!==a}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var a=n;n=[],a.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(o)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=DB({async:!0,ssr:!1},e),t}(),qB=function(){},YB=V.forwardRef((function(e,t){var n=V.useRef(null),r=V.useState({onScrollCapture:qB,onWheelCapture:qB,onTouchMoveCapture:qB}),a=r[0],o=r[1],i=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,p=e.sideCar,f=e.noIsolation,h=e.inert,m=e.allowPinchZoom,g=e.as,y=void 0===g?"div":g,b=e.gapMode,v=MB(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=p,w=$B([n,t]),E=DB(DB({},v),a);return V.createElement(V.Fragment,null,u&&V.createElement(k,{sideCar:WB,removeScrollBar:c,shards:d,noIsolation:f,inert:h,setCallbacks:o,allowPinchZoom:!!m,lockRef:n,gapMode:b}),i?V.cloneElement(V.Children.only(s),DB(DB({},E),{ref:w})):V.createElement(y,DB({},E,{className:l,ref:w}),s))}));YB.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},YB.classNames={fullWidth:zB,zeroRight:BB};function XB(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var KB=function(){var e=0,t=null;return{add:function(n){var r,a;0==e&&(t=XB())&&(a=n,(r=t).styleSheet?r.styleSheet.cssText=a:r.appendChild(document.createTextNode(a)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},QB=function(){var e,t=(e=KB(),function(t,n){V.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},ZB={left:0,top:0,right:0,gap:0},JB=function(e){return parseInt(e||"",10)||0},ez=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return ZB;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[JB(n),JB(r),JB(a)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},tz=QB(),nz="data-scroll-locked",rz=function(e,t,n,r){var a=e.left,o=e.top,i=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(nz,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(a,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(BB," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(zB," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(BB," .").concat(BB," {\n right: 0 ").concat(r,";\n }\n \n .").concat(zB," .").concat(zB," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(nz,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},az=function(){var e=parseInt(document.body.getAttribute(nz)||"0",10);return isFinite(e)?e:0},oz=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=void 0===r?"margin":r;V.useEffect((function(){return document.body.setAttribute(nz,(az()+1).toString()),function(){var e=az()-1;e<=0?document.body.removeAttribute(nz):document.body.setAttribute(nz,e.toString())}}),[]);var o=V.useMemo((function(){return ez(a)}),[a]);return V.createElement(tz,{styles:rz(o,!t,a,n?"":"!important")})},iz=!1;if("undefined"!=typeof window)try{var sz=Object.defineProperty({},"passive",{get:function(){return iz=!0,!0}});window.addEventListener("test",sz,sz),window.removeEventListener("test",sz,sz)}catch(l5){iz=!1}var lz=!!iz&&{passive:!1},cz=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},uz=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),dz(e,r)){var a=pz(e,r);if(a[1]>a[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},dz=function(e,t){return"v"===e?function(e){return cz(e,"overflowY")}(t):function(e){return cz(e,"overflowX")}(t)},pz=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},fz=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},hz=function(e){return[e.deltaX,e.deltaY]},mz=function(e){return e&&"current"in e?e.current:e},gz=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},yz=0,bz=[];function vz(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const kz=(wz=function(e){var t=V.useRef([]),n=V.useRef([0,0]),r=V.useRef(),a=V.useState(yz++)[0],o=V.useState(QB)[0],i=V.useRef(e);V.useEffect((function(){i.current=e}),[e]),V.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=FB([e.lockRef.current],(e.shards||[]).map(mz),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(a))})),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(a))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=V.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var a,o=fz(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-o[0],c="deltaY"in e?e.deltaY:s[1]-o[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var p=uz(d,u);if(!p)return!0;if(p?a=d:(a="v"===d?"h":"v",p=uz(d,u)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=a),!a)return!0;var f=r.current||a;return function(e,t,n,r){var a=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),o=a*r,i=n.target,s=t.contains(i),l=!1,c=o>0,u=0,d=0;do{var p=pz(e,i),f=p[0],h=p[1]-p[2]-a*f;(f||h)&&dz(e,i)&&(u+=h,d+=f),i=i instanceof ShadowRoot?i.host:i.parentNode}while(!s&&i!==document.body||s&&(t.contains(i)||t===i));return(c&&Math.abs(u)<1||!c&&Math.abs(d)<1)&&(l=!0),l}(f,t,e,"h"===f?l:c)}),[]),l=V.useCallback((function(e){var n=e;if(bz.length&&bz[bz.length-1]===o){var r="deltaY"in n?hz(n):fz(n),a=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&(t=e.delta,a=r,t[0]===a[0]&&t[1]===a[1]);var t,a}))[0];if(a&&a.should)n.cancelable&&n.preventDefault();else if(!a){var l=(i.current.shards||[]).map(mz).filter(Boolean).filter((function(e){return e.contains(n.target)}));(l.length>0?s(n,l[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),c=V.useCallback((function(e,n,r,a){var o={name:e,delta:n,target:r,should:a,shadowParent:vz(r)};t.current.push(o),setTimeout((function(){t.current=t.current.filter((function(e){return e!==o}))}),1)}),[]),u=V.useCallback((function(e){n.current=fz(e),r.current=void 0}),[]),d=V.useCallback((function(t){c(t.type,hz(t),t.target,s(t,e.lockRef.current))}),[]),p=V.useCallback((function(t){c(t.type,fz(t),t.target,s(t,e.lockRef.current))}),[]);V.useEffect((function(){return bz.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,lz),document.addEventListener("touchmove",l,lz),document.addEventListener("touchstart",u,lz),function(){bz=bz.filter((function(e){return e!==o})),document.removeEventListener("wheel",l,lz),document.removeEventListener("touchmove",l,lz),document.removeEventListener("touchstart",u,lz)}}),[]);var f=e.removeScrollBar,h=e.inert;return V.createElement(V.Fragment,null,h?V.createElement(o,{styles:gz(a)}):null,f?V.createElement(oz,{gapMode:e.gapMode}):null)},WB.useMedium(wz),VB);var wz,Ez=V.forwardRef((function(e,t){return V.createElement(YB,DB({},e,{ref:t,sideCar:kz}))}));Ez.classNames=YB.classNames;var Sz=V.createContext(void 0);function Tz(e){const t=V.useContext(Sz);return e||t||"ltr"}function xz(e,[t,n]){return Math.min(n,Math.max(t,e))}var _z="ScrollArea",[Az,Cz]=HL(_z),[Iz,Nz]=Az(_z),Rz=V.forwardRef(((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:a,scrollHideDelay:o=600,...i}=e,[s,l]=V.useState(null),[c,u]=V.useState(null),[d,p]=V.useState(null),[f,h]=V.useState(null),[m,g]=V.useState(null),[y,b]=V.useState(0),[v,k]=V.useState(0),[w,E]=V.useState(!1),[S,T]=V.useState(!1),x=zL(t,(e=>l(e))),_=Tz(a);return jf.jsx(Iz,{scope:n,type:r,dir:_,scrollHideDelay:o,scrollArea:s,viewport:c,onViewportChange:u,content:d,onContentChange:p,scrollbarX:f,onScrollbarXChange:h,scrollbarXEnabled:w,onScrollbarXEnabledChange:E,scrollbarY:m,onScrollbarYChange:g,scrollbarYEnabled:S,onScrollbarYEnabledChange:T,onCornerWidthChange:b,onCornerHeightChange:k,children:jf.jsx(qL.div,{dir:_,...i,ref:x,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":v+"px",...e.style}})})}));Rz.displayName=_z;var Oz="ScrollAreaViewport",Pz=V.forwardRef(((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:a,...o}=e,i=Nz(Oz,n),s=zL(t,V.useRef(null),i.onViewportChange);return jf.jsxs(jf.Fragment,{children:[jf.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),jf.jsx(qL.div,{"data-radix-scroll-area-viewport":"",...o,ref:s,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:jf.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})}));Pz.displayName=Oz;var Lz="ScrollAreaScrollbar",Dz=V.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,a=Nz(Lz,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:i}=a,s="horizontal"===e.orientation;return V.useEffect((()=>(s?o(!0):i(!0),()=>{s?o(!1):i(!1)})),[s,o,i]),"hover"===a.type?jf.jsx(Mz,{...r,ref:t,forceMount:n}):"scroll"===a.type?jf.jsx(Fz,{...r,ref:t,forceMount:n}):"auto"===a.type?jf.jsx(Bz,{...r,ref:t,forceMount:n}):"always"===a.type?jf.jsx(zz,{...r,ref:t}):null}));Dz.displayName=Lz;var Mz=V.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,a=Nz(Lz,e.__scopeScrollArea),[o,i]=V.useState(!1);return V.useEffect((()=>{const e=a.scrollArea;let t=0;if(e){const n=()=>{window.clearTimeout(t),i(!0)},r=()=>{t=window.setTimeout((()=>i(!1)),a.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}}),[a.scrollArea,a.scrollHideDelay]),jf.jsx(tF,{present:n||o,children:jf.jsx(Bz,{"data-state":o?"visible":"hidden",...r,ref:t})})})),Fz=V.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,a=Nz(Lz,e.__scopeScrollArea),o="horizontal"===e.orientation,i=aH((()=>l("SCROLL_END")),100),[s,l]=(c="hidden",u={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},V.useReducer(((e,t)=>u[e][t]??e),c));var c,u;return V.useEffect((()=>{if("idle"===s){const e=window.setTimeout((()=>l("HIDE")),a.scrollHideDelay);return()=>window.clearTimeout(e)}}),[s,a.scrollHideDelay,l]),V.useEffect((()=>{const e=a.viewport,t=o?"scrollLeft":"scrollTop";if(e){let n=e[t];const r=()=>{const r=e[t];n!==r&&(l("SCROLL"),i()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}}),[a.viewport,o,l,i]),jf.jsx(tF,{present:n||"hidden"!==s,children:jf.jsx(zz,{"data-state":"hidden"===s?"hidden":"visible",...r,ref:t,onPointerEnter:ML(e.onPointerEnter,(()=>l("POINTER_ENTER"))),onPointerLeave:ML(e.onPointerLeave,(()=>l("POINTER_LEAVE")))})})})),Bz=V.forwardRef(((e,t)=>{const n=Nz(Lz,e.__scopeScrollArea),{forceMount:r,...a}=e,[o,i]=V.useState(!1),s="horizontal"===e.orientation,l=aH((()=>{if(n.viewport){const e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;i(s?e:t)}}),10);return oH(n.viewport,l),oH(n.content,l),jf.jsx(tF,{present:r||o,children:jf.jsx(zz,{"data-state":o?"visible":"hidden",...a,ref:t})})})),zz=V.forwardRef(((e,t)=>{const{orientation:n="vertical",...r}=e,a=Nz(Lz,e.__scopeScrollArea),o=V.useRef(null),i=V.useRef(0),[s,l]=V.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=Zz(s.viewport,s.content),u={...r,sizes:s,onSizesChange:l,hasThumb:Boolean(c>0&&c<1),onThumbChange:e=>o.current=e,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:e=>i.current=e};function d(e,t){return function(e,t,n,r="ltr"){const a=Jz(n),o=a/2,i=t||o,s=a-i,l=n.scrollbar.paddingStart+i,c=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d="ltr"===r?[0,u]:[-1*u,0];return tH([l,c],d)(e)}(e,i.current,s,t)}return"horizontal"===n?jf.jsx(Hz,{...u,ref:t,onThumbPositionChange:()=>{if(a.viewport&&o.current){const e=eH(a.viewport.scrollLeft,s,a.dir);o.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollLeft=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollLeft=d(e,a.dir))}}):"vertical"===n?jf.jsx(jz,{...u,ref:t,onThumbPositionChange:()=>{if(a.viewport&&o.current){const e=eH(a.viewport.scrollTop,s);o.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollTop=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollTop=d(e))}}):null})),Hz=V.forwardRef(((e,t)=>{const{sizes:n,onSizesChange:r,...a}=e,o=Nz(Lz,e.__scopeScrollArea),[i,s]=V.useState(),l=V.useRef(null),c=zL(t,l,o.onScrollbarXChange);return V.useEffect((()=>{l.current&&s(getComputedStyle(l.current))}),[l]),jf.jsx(Gz,{"data-orientation":"horizontal",...a,ref:c,sizes:n,style:{bottom:0,left:"rtl"===o.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===o.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Jz(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){const r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),nH(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&i&&r({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:Qz(i.paddingLeft),paddingEnd:Qz(i.paddingRight)}})}})})),jz=V.forwardRef(((e,t)=>{const{sizes:n,onSizesChange:r,...a}=e,o=Nz(Lz,e.__scopeScrollArea),[i,s]=V.useState(),l=V.useRef(null),c=zL(t,l,o.onScrollbarYChange);return V.useEffect((()=>{l.current&&s(getComputedStyle(l.current))}),[l]),jf.jsx(Gz,{"data-orientation":"vertical",...a,ref:c,sizes:n,style:{top:0,right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Jz(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){const r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),nH(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&i&&r({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:Qz(i.paddingTop),paddingEnd:Qz(i.paddingBottom)}})}})})),[Uz,$z]=Az(Lz),Gz=V.forwardRef(((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:a,onThumbChange:o,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:u,onResize:d,...p}=e,f=Nz(Lz,n),[h,m]=V.useState(null),g=zL(t,(e=>m(e))),y=V.useRef(null),b=V.useRef(""),v=f.viewport,k=r.content-r.viewport,w=YL(u),E=YL(l),S=aH(d,10);function T(e){if(y.current){const t=e.clientX-y.current.left,n=e.clientY-y.current.top;c({x:t,y:n})}}return V.useEffect((()=>{const e=e=>{const t=e.target;(null==h?void 0:h.contains(t))&&w(e,k)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})}),[v,h,k,w]),V.useEffect(E,[r,E]),oH(h,S),oH(f.content,S),jf.jsx(Uz,{scope:n,scrollbar:h,hasThumb:a,onThumbChange:YL(o),onThumbPointerUp:YL(i),onThumbPositionChange:E,onThumbPointerDown:YL(s),children:jf.jsx(qL.div,{...p,ref:g,style:{position:"absolute",...p.style},onPointerDown:ML(e.onPointerDown,(e=>{if(0===e.button){e.target.setPointerCapture(e.pointerId),y.current=h.getBoundingClientRect(),b.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",f.viewport&&(f.viewport.style.scrollBehavior="auto"),T(e)}})),onPointerMove:ML(e.onPointerMove,T),onPointerUp:ML(e.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=b.current,f.viewport&&(f.viewport.style.scrollBehavior=""),y.current=null}))})})})),Vz="ScrollAreaThumb",Wz=V.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,a=$z(Vz,e.__scopeScrollArea);return jf.jsx(tF,{present:n||a.hasThumb,children:jf.jsx(qz,{ref:t,...r})})})),qz=V.forwardRef(((e,t)=>{const{__scopeScrollArea:n,style:r,...a}=e,o=Nz(Vz,n),i=$z(Vz,n),{onThumbPositionChange:s}=i,l=zL(t,(e=>i.onThumbChange(e))),c=V.useRef(void 0),u=aH((()=>{c.current&&(c.current(),c.current=void 0)}),100);return V.useEffect((()=>{const e=o.viewport;if(e){const t=()=>{if(u(),!c.current){const t=rH(e,s);c.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}}),[o.viewport,u,s]),jf.jsx(qL.div,{"data-state":i.hasThumb?"visible":"hidden",...a,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:ML(e.onPointerDownCapture,(e=>{const t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;i.onThumbPointerDown({x:n,y:r})})),onPointerUp:ML(e.onPointerUp,i.onThumbPointerUp)})}));Wz.displayName=Vz;var Yz="ScrollAreaCorner",Xz=V.forwardRef(((e,t)=>{const n=Nz(Yz,e.__scopeScrollArea),r=Boolean(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?jf.jsx(Kz,{...e,ref:t}):null}));Xz.displayName=Yz;var Kz=V.forwardRef(((e,t)=>{const{__scopeScrollArea:n,...r}=e,a=Nz(Yz,n),[o,i]=V.useState(0),[s,l]=V.useState(0),c=Boolean(o&&s);return oH(a.scrollbarX,(()=>{var e;const t=(null==(e=a.scrollbarX)?void 0:e.offsetHeight)||0;a.onCornerHeightChange(t),l(t)})),oH(a.scrollbarY,(()=>{var e;const t=(null==(e=a.scrollbarY)?void 0:e.offsetWidth)||0;a.onCornerWidthChange(t),i(t)})),c?jf.jsx(qL.div,{...r,ref:t,style:{width:o,height:s,position:"absolute",right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:0,...e.style}}):null}));function Qz(e){return e?parseInt(e,10):0}function Zz(e,t){const n=e/t;return isNaN(n)?0:n}function Jz(e){const t=Zz(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function eH(e,t,n="ltr"){const r=Jz(t),a=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-a,i=t.content-t.viewport,s=o-r,l=xz(e,"ltr"===n?[0,i]:[-1*i,0]);return tH([0,i],[0,s])(l)}function tH(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function nH(e,t){return e>0&&e<t}var rH=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function a(){const o={left:e.scrollLeft,top:e.scrollTop},i=n.left!==o.left,s=n.top!==o.top;(i||s)&&t(),n=o,r=window.requestAnimationFrame(a)}(),()=>window.cancelAnimationFrame(r)};function aH(e,t){const n=YL(e),r=V.useRef(0);return V.useEffect((()=>()=>window.clearTimeout(r.current)),[]),V.useCallback((()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)}),[n,t])}function oH(e,t){const n=YL(t);_O((()=>{let t=0;if(e){const r=new ResizeObserver((()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)}));return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}}),[e,n])}var iH=Rz,sH=Pz,lH=Xz;var cH=[" ","Enter","ArrowUp","ArrowDown"],uH=[" ","Enter"],dH="Select",[pH,fH,hH]=function(e){const t=e+"CollectionProvider",[n,r]=HL(t),[a,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=e=>{const{scope:t,children:n}=e,r=W.useRef(null),o=W.useRef(new Map).current;return jf.jsx(a,{scope:t,itemMap:o,collectionRef:r,children:n})};i.displayName=t;const s=e+"CollectionSlot",l=W.forwardRef(((e,t)=>{const{scope:n,children:r}=e,a=zL(t,o(s,n).collectionRef);return jf.jsx(UL,{ref:a,children:r})}));l.displayName=s;const c=e+"CollectionItemSlot",u="data-radix-collection-item",d=W.forwardRef(((e,t)=>{const{scope:n,children:r,...a}=e,i=W.useRef(null),s=zL(t,i),l=o(c,n);return W.useEffect((()=>(l.itemMap.set(i,{ref:i,...a}),()=>{l.itemMap.delete(i)}))),jf.jsx(UL,{[u]:"",ref:s,children:r})}));return d.displayName=c,[{Provider:i,Slot:l,ItemSlot:d},function(t){const n=o(e+"CollectionConsumer",t);return W.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${u}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},r]}(dH),[mH,gH]=HL(dH,[hH,DM]),yH=DM(),[bH,vH]=mH(dH),[kH,wH]=mH(dH),EH=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:a,onOpenChange:o,value:i,defaultValue:s,onValueChange:l,dir:c,name:u,autoComplete:d,disabled:p,required:f,form:h}=e,m=yH(t),[g,y]=V.useState(null),[b,v]=V.useState(null),[k,w]=V.useState(!1),E=Tz(c),[S=!1,T]=rF({prop:r,defaultProp:a,onChange:o}),[x,_]=rF({prop:i,defaultProp:s,onChange:l}),A=V.useRef(null),C=!g||(h||!!g.closest("form")),[I,N]=V.useState(new Set),R=Array.from(I).map((e=>e.props.value)).join(";");return jf.jsx(QM,{...m,children:jf.jsxs(bH,{required:f,scope:t,trigger:g,onTriggerChange:y,valueNode:b,onValueNodeChange:v,valueNodeHasChildren:k,onValueNodeHasChildrenChange:w,contentId:IO(),value:x,onValueChange:_,open:S,onOpenChange:T,dir:E,triggerPointerDownPosRef:A,disabled:p,children:[jf.jsx(pH.Provider,{scope:t,children:jf.jsx(kH,{scope:e.__scopeSelect,onNativeOptionAdd:V.useCallback((e=>{N((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:V.useCallback((e=>{N((t=>{const n=new Set(t);return n.delete(e),n}))}),[]),children:n})}),C?jf.jsxs(rj,{"aria-hidden":!0,required:f,tabIndex:-1,name:u,autoComplete:d,value:x,onChange:e=>_(e.target.value),disabled:p,form:h,children:[void 0===x?jf.jsx("option",{value:""}):null,Array.from(I)]},R):null]})})};EH.displayName=dH;var SH="SelectTrigger",TH=V.forwardRef(((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...a}=e,o=yH(n),i=vH(SH,n),s=i.disabled||r,l=zL(t,i.onTriggerChange),c=fH(n),u=V.useRef("touch"),[d,p,f]=aj((e=>{const t=c().filter((e=>!e.disabled)),n=t.find((e=>e.value===i.value)),r=oj(t,e,n);void 0!==r&&i.onValueChange(r.value)})),h=e=>{s||(i.onOpenChange(!0),f()),e&&(i.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return jf.jsx(ZM,{asChild:!0,...o,children:jf.jsx(qL.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":nj(i.value)?"":void 0,...a,ref:l,onClick:ML(a.onClick,(e=>{e.currentTarget.focus(),"mouse"!==u.current&&h(e)})),onPointerDown:ML(a.onPointerDown,(e=>{u.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(h(e),e.preventDefault())})),onKeyDown:ML(a.onKeyDown,(e=>{const t=""!==d.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||p(e.key),t&&" "===e.key||cH.includes(e.key)&&(h(),e.preventDefault())}))})})}));TH.displayName=SH;var xH="SelectValue",_H=V.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:a,children:o,placeholder:i="",...s}=e,l=vH(xH,n),{onValueNodeHasChildrenChange:c}=l,u=void 0!==o,d=zL(t,l.onValueNodeChange);return _O((()=>{c(u)}),[c,u]),jf.jsx(qL.span,{...s,ref:d,style:{pointerEvents:"none"},children:nj(l.value)?jf.jsx(jf.Fragment,{children:i}):o})}));_H.displayName=xH;var AH=V.forwardRef(((e,t)=>{const{__scopeSelect:n,children:r,...a}=e;return jf.jsx(qL.span,{"aria-hidden":!0,...a,ref:t,children:r||"▼"})}));AH.displayName="SelectIcon";var CH="SelectContent",IH=V.forwardRef(((e,t)=>{const n=vH(CH,e.__scopeSelect),[r,a]=V.useState();if(_O((()=>{a(new DocumentFragment)}),[]),!n.open){const t=r;return t?re.createPortal(jf.jsx(RH,{scope:e.__scopeSelect,children:jf.jsx(pH.Slot,{scope:e.__scopeSelect,children:jf.jsx("div",{children:e.children})})}),t):null}return jf.jsx(PH,{...e,ref:t})}));IH.displayName=CH;var NH=10,[RH,OH]=mH(CH),PH=V.forwardRef(((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:o,onPointerDownOutside:i,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:p,collisionPadding:f,sticky:h,hideWhenDetached:m,avoidCollisions:g,...y}=e,b=vH(CH,n),[v,k]=V.useState(null),[w,E]=V.useState(null),S=zL(t,(e=>k(e))),[T,x]=V.useState(null),[_,A]=V.useState(null),C=fH(n),[I,N]=V.useState(!1),R=V.useRef(!1);V.useEffect((()=>{if(v)return LB(v)}),[v]),V.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??yB()),document.body.insertAdjacentElement("beforeend",e[1]??yB()),gB++,()=>{1===gB&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),gB--}}),[]);const O=V.useCallback((e=>{const[t,...n]=C().map((e=>e.ref.current)),[r]=n.slice(-1),a=document.activeElement;for(const o of e){if(o===a)return;if(null==o||o.scrollIntoView({block:"nearest"}),o===t&&w&&(w.scrollTop=0),o===r&&w&&(w.scrollTop=w.scrollHeight),null==o||o.focus(),document.activeElement!==a)return}}),[C,w]),P=V.useCallback((()=>O([T,v])),[O,T,v]);V.useEffect((()=>{I&&P()}),[I,P]);const{onOpenChange:L,triggerPointerDownPosRef:D}=b;V.useEffect((()=>{if(v){let e={x:0,y:0};const t=t=>{var n,r;e={x:Math.abs(Math.round(t.pageX)-((null==(n=D.current)?void 0:n.x)??0)),y:Math.abs(Math.round(t.pageY)-((null==(r=D.current)?void 0:r.y)??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():v.contains(n.target)||L(!1),document.removeEventListener("pointermove",t),D.current=null};return null!==D.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[v,L,D]),V.useEffect((()=>{const e=()=>L(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[L]);const[M,F]=aj((e=>{const t=C().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=oj(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),B=V.useCallback(((e,t,n)=>{const r=!R.current&&!n;(void 0!==b.value&&b.value===t||r)&&(x(e),r&&(R.current=!0))}),[b.value]),z=V.useCallback((()=>null==v?void 0:v.focus()),[v]),H=V.useCallback(((e,t,n)=>{const r=!R.current&&!n;(void 0!==b.value&&b.value===t||r)&&A(e)}),[b.value]),j="popper"===r?DH:LH,U=j===DH?{side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:p,collisionPadding:f,sticky:h,hideWhenDetached:m,avoidCollisions:g}:{};return jf.jsx(RH,{scope:n,content:v,viewport:w,onViewportChange:E,itemRefCallback:B,selectedItem:T,onItemLeave:z,itemTextRefCallback:H,focusSelectedItem:P,selectedItemText:_,position:r,isPositioned:I,searchRef:M,children:jf.jsx(Ez,{as:UL,allowPinchZoom:!0,children:jf.jsx(wB,{asChild:!0,trapped:b.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:ML(a,(e=>{var t;null==(t=b.trigger)||t.focus({preventScroll:!0}),e.preventDefault()})),children:jf.jsx(eD,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:jf.jsx(j,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:e=>e.preventDefault(),...y,...U,onPlaced:()=>N(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:ML(y.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||F(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=C().filter((e=>!e.disabled)).map((e=>e.ref.current));if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout((()=>O(t))),e.preventDefault()}}))})})})})})}));PH.displayName="SelectContentImpl";var LH=V.forwardRef(((e,t)=>{const{__scopeSelect:n,onPlaced:r,...a}=e,o=vH(CH,n),i=OH(CH,n),[s,l]=V.useState(null),[c,u]=V.useState(null),d=zL(t,(e=>u(e))),p=fH(n),f=V.useRef(!1),h=V.useRef(!0),{viewport:m,selectedItem:g,selectedItemText:y,focusSelectedItem:b}=i,v=V.useCallback((()=>{if(o.trigger&&o.valueNode&&s&&c&&m&&g&&y){const e=o.trigger.getBoundingClientRect(),t=c.getBoundingClientRect(),n=o.valueNode.getBoundingClientRect(),a=y.getBoundingClientRect();if("rtl"!==o.dir){const r=a.left-t.left,o=n.left-r,i=e.left-o,l=e.width+i,c=Math.max(l,t.width),u=window.innerWidth-NH,d=xz(o,[NH,Math.max(NH,u-c)]);s.style.minWidth=l+"px",s.style.left=d+"px"}else{const r=t.right-a.right,o=window.innerWidth-n.right-r,i=window.innerWidth-e.right-o,l=e.width+i,c=Math.max(l,t.width),u=window.innerWidth-NH,d=xz(o,[NH,Math.max(NH,u-c)]);s.style.minWidth=l+"px",s.style.right=d+"px"}const i=p(),l=window.innerHeight-2*NH,u=m.scrollHeight,d=window.getComputedStyle(c),h=parseInt(d.borderTopWidth,10),b=parseInt(d.paddingTop,10),v=parseInt(d.borderBottomWidth,10),k=h+b+u+parseInt(d.paddingBottom,10)+v,w=Math.min(5*g.offsetHeight,k),E=window.getComputedStyle(m),S=parseInt(E.paddingTop,10),T=parseInt(E.paddingBottom,10),x=e.top+e.height/2-NH,_=l-x,A=g.offsetHeight/2,C=h+b+(g.offsetTop+A),I=k-C;if(C<=x){const e=i.length>0&&g===i[i.length-1].ref.current;s.style.bottom="0px";const t=c.clientHeight-m.offsetTop-m.offsetHeight,n=C+Math.max(_,A+(e?T:0)+t+v);s.style.height=n+"px"}else{const e=i.length>0&&g===i[0].ref.current;s.style.top="0px";const t=Math.max(x,h+m.offsetTop+(e?S:0)+A)+I;s.style.height=t+"px",m.scrollTop=C-x+m.offsetTop}s.style.margin=`${NH}px 0`,s.style.minHeight=w+"px",s.style.maxHeight=l+"px",null==r||r(),requestAnimationFrame((()=>f.current=!0))}}),[p,o.trigger,o.valueNode,s,c,m,g,y,o.dir,r]);_O((()=>v()),[v]);const[k,w]=V.useState();_O((()=>{c&&w(window.getComputedStyle(c).zIndex)}),[c]);const E=V.useCallback((e=>{e&&!0===h.current&&(v(),null==b||b(),h.current=!1)}),[v,b]);return jf.jsx(MH,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:f,onScrollButtonChange:E,children:jf.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:jf.jsx(qL.div,{...a,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})}));LH.displayName="SelectItemAlignedPosition";var DH=V.forwardRef(((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:a=NH,...o}=e,i=yH(n);return jf.jsx(JM,{...i,...o,ref:t,align:r,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)"}})}));DH.displayName="SelectPopperPosition";var[MH,FH]=mH(CH,{}),BH="SelectViewport",zH=V.forwardRef(((e,t)=>{const{__scopeSelect:n,nonce:r,...a}=e,o=OH(BH,n),i=FH(BH,n),s=zL(t,o.onViewportChange),l=V.useRef(0);return jf.jsxs(jf.Fragment,{children:[jf.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:r}),jf.jsx(pH.Slot,{scope:n,children:jf.jsx(qL.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:ML(a.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=i;if((null==r?void 0:r.current)&&n){const e=Math.abs(l.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*NH,a=parseFloat(n.style.minHeight),o=parseFloat(n.style.height),i=Math.max(a,o);if(i<r){const a=i+e,o=Math.min(r,a),s=a-o;n.style.height=o+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}l.current=t.scrollTop}))})})]})}));zH.displayName=BH;var HH="SelectGroup",[jH,UH]=mH(HH);V.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=IO();return jf.jsx(jH,{scope:n,id:a,children:jf.jsx(qL.div,{role:"group","aria-labelledby":a,...r,ref:t})})})).displayName=HH;var $H="SelectLabel";V.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=UH($H,n);return jf.jsx(qL.div,{id:a.id,...r,ref:t})})).displayName=$H;var GH="SelectItem",[VH,WH]=mH(GH),qH=V.forwardRef(((e,t)=>{const{__scopeSelect:n,value:r,disabled:a=!1,textValue:o,...i}=e,s=vH(GH,n),l=OH(GH,n),c=s.value===r,[u,d]=V.useState(o??""),[p,f]=V.useState(!1),h=zL(t,(e=>{var t;return null==(t=l.itemRefCallback)?void 0:t.call(l,e,r,a)})),m=IO(),g=V.useRef("touch"),y=()=>{a||(s.onValueChange(r),s.onOpenChange(!1))};if(""===r)throw new 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 jf.jsx(VH,{scope:n,value:r,disabled:a,textId:m,isSelected:c,onItemTextChange:V.useCallback((e=>{d((t=>t||((null==e?void 0:e.textContent)??"").trim()))}),[]),children:jf.jsx(pH.ItemSlot,{scope:n,value:r,disabled:a,textValue:u,children:jf.jsx(qL.div,{role:"option","aria-labelledby":m,"data-highlighted":p?"":void 0,"aria-selected":c&&p,"data-state":c?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...i,ref:h,onFocus:ML(i.onFocus,(()=>f(!0))),onBlur:ML(i.onBlur,(()=>f(!1))),onClick:ML(i.onClick,(()=>{"mouse"!==g.current&&y()})),onPointerUp:ML(i.onPointerUp,(()=>{"mouse"===g.current&&y()})),onPointerDown:ML(i.onPointerDown,(e=>{g.current=e.pointerType})),onPointerMove:ML(i.onPointerMove,(e=>{var t;g.current=e.pointerType,a?null==(t=l.onItemLeave)||t.call(l):"mouse"===g.current&&e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:ML(i.onPointerLeave,(e=>{var t;e.currentTarget===document.activeElement&&(null==(t=l.onItemLeave)||t.call(l))})),onKeyDown:ML(i.onKeyDown,(e=>{var t;""!==(null==(t=l.searchRef)?void 0:t.current)&&" "===e.key||(uH.includes(e.key)&&y()," "===e.key&&e.preventDefault())}))})})})}));qH.displayName=GH;var YH="SelectItemText",XH=V.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:a,...o}=e,i=vH(YH,n),s=OH(YH,n),l=WH(YH,n),c=wH(YH,n),[u,d]=V.useState(null),p=zL(t,(e=>d(e)),l.onItemTextChange,(e=>{var t;return null==(t=s.itemTextRefCallback)?void 0:t.call(s,e,l.value,l.disabled)})),f=null==u?void 0:u.textContent,h=V.useMemo((()=>jf.jsx("option",{value:l.value,disabled:l.disabled,children:f},l.value)),[l.disabled,l.value,f]),{onNativeOptionAdd:m,onNativeOptionRemove:g}=c;return _O((()=>(m(h),()=>g(h))),[m,g,h]),jf.jsxs(jf.Fragment,{children:[jf.jsx(qL.span,{id:l.textId,...o,ref:p}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?re.createPortal(o.children,i.valueNode):null]})}));XH.displayName=YH;var KH="SelectItemIndicator",QH=V.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e;return WH(KH,n).isSelected?jf.jsx(qL.span,{"aria-hidden":!0,...r,ref:t}):null}));QH.displayName=KH;var ZH="SelectScrollUpButton";V.forwardRef(((e,t)=>{const n=OH(ZH,e.__scopeSelect),r=FH(ZH,e.__scopeSelect),[a,o]=V.useState(!1),i=zL(t,r.onScrollButtonChange);return _O((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;o(e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),a?jf.jsx(ej,{...e,ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null})).displayName=ZH;var JH="SelectScrollDownButton";V.forwardRef(((e,t)=>{const n=OH(JH,e.__scopeSelect),r=FH(JH,e.__scopeSelect),[a,o]=V.useState(!1),i=zL(t,r.onScrollButtonChange);return _O((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;o(n)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),a?jf.jsx(ej,{...e,ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null})).displayName=JH;var ej=V.forwardRef(((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...a}=e,o=OH("SelectScrollButton",n),i=V.useRef(null),s=fH(n),l=V.useCallback((()=>{null!==i.current&&(window.clearInterval(i.current),i.current=null)}),[]);return V.useEffect((()=>()=>l()),[l]),_O((()=>{var e;const t=s().find((e=>e.ref.current===document.activeElement));null==(e=null==t?void 0:t.ref.current)||e.scrollIntoView({block:"nearest"})}),[s]),jf.jsx(qL.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:ML(a.onPointerDown,(()=>{null===i.current&&(i.current=window.setInterval(r,50))})),onPointerMove:ML(a.onPointerMove,(()=>{var e;null==(e=o.onItemLeave)||e.call(o),null===i.current&&(i.current=window.setInterval(r,50))})),onPointerLeave:ML(a.onPointerLeave,(()=>{l()}))})}));V.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e;return jf.jsx(qL.div,{"aria-hidden":!0,...r,ref:t})})).displayName="SelectSeparator";var tj="SelectArrow";function nj(e){return""===e||void 0===e}V.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=yH(n),o=vH(tj,n),i=OH(tj,n);return o.open&&"popper"===i.position?jf.jsx(eF,{...a,...r,ref:t}):null})).displayName=tj;var rj=V.forwardRef(((e,t)=>{const{value:n,...r}=e,a=V.useRef(null),o=zL(t,a),i=nB(n);return V.useEffect((()=>{const e=a.current,t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(i!==n&&r){const t=new Event("change",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}}),[i,n]),jf.jsx(aF,{asChild:!0,children:jf.jsx("select",{...r,ref:o,defaultValue:n})})}));function aj(e){const t=YL(e),n=V.useRef(""),r=V.useRef(0),a=V.useCallback((e=>{const a=n.current+e;t(a),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout((()=>e("")),1e3))}(a)}),[t]),o=V.useCallback((()=>{n.current="",window.clearTimeout(r.current)}),[]);return V.useEffect((()=>()=>window.clearTimeout(r.current)),[]),[n,a,o]}function oj(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,a=n?e.indexOf(n):-1;let o=(i=e,s=Math.max(a,0),i.map(((e,t)=>i[(s+t)%i.length])));var i,s;1===r.length&&(o=o.filter((e=>e!==n)));const l=o.find((e=>e.textValue.toLowerCase().startsWith(r.toLowerCase())));return l!==n?l:void 0}rj.displayName="BubbleSelect";var ij=EH,sj=TH,lj=_H,cj=AH,uj=IH,dj=zH,pj=qH,fj=XH,hj=QH,mj={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},gj=W.createContext&&W.createContext(mj),yj=["attr","size","title"];function bj(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function vj(){return vj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vj.apply(this,arguments)}function kj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kj(Object(n),!0).forEach((function(t){Ej(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ej(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sj(e){return e&&e.map(((e,t)=>W.createElement(e.tag,wj({key:t},e.attr),Sj(e.child))))}function Tj(e){return t=>W.createElement(xj,vj({attr:wj({},e.attr)},t),Sj(e.child))}function xj(e){var t=t=>{var n,{attr:r,size:a,title:o}=e,i=bj(e,yj),s=a||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),W.createElement("svg",vj({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,i,{className:n,style:wj(wj({color:e.color||t.color},t.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&W.createElement("title",null,o),e.children)};return void 0!==gj?W.createElement(gj.Consumer,null,(e=>t(e))):t(mj)}function _j(e,t){return(_j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}
38
+ */function R_(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var O_=Symbol.for("react.transitional.element"),P_=Symbol.for("react.portal"),L_=Symbol.for("react.fragment"),D_=Symbol.for("react.strict_mode"),M_=Symbol.for("react.profiler"),F_=Symbol.for("react.provider"),B_=Symbol.for("react.consumer"),z_=Symbol.for("react.context"),H_=Symbol.for("react.forward_ref"),j_=Symbol.for("react.suspense"),U_=Symbol.for("react.suspense_list"),$_=Symbol.for("react.memo"),G_=Symbol.for("react.lazy"),V_=Symbol.for("react.scope"),W_=Symbol.for("react.debug_trace_mode"),q_=Symbol.for("react.offscreen"),Y_=Symbol.for("react.legacy_hidden"),X_=Symbol.for("react.memo_cache_sentinel"),K_=Symbol.iterator,Q_=Array.isArray;function Z_(e,t){var n=3&e.length,r=e.length-n,a=t;for(t=0;t<r;){var o=255&e.charCodeAt(t)|(255&e.charCodeAt(++t))<<8|(255&e.charCodeAt(++t))<<16|(255&e.charCodeAt(++t))<<24;++t,a=27492+(65535&(a=5*(65535&(a=(a^=o=461845907*(65535&(o=(o=3432918353*(65535&o)+((3432918353*(o>>>16)&65535)<<16)&4294967295)<<15|o>>>17))+((461845907*(o>>>16)&65535)<<16)&4294967295)<<13|a>>>19))+((5*(a>>>16)&65535)<<16)&4294967295))+((58964+(a>>>16)&65535)<<16)}switch(o=0,n){case 3:o^=(255&e.charCodeAt(t+2))<<16;case 2:o^=(255&e.charCodeAt(t+1))<<8;case 1:a^=461845907*(65535&(o=(o=3432918353*(65535&(o^=255&e.charCodeAt(t)))+((3432918353*(o>>>16)&65535)<<16)&4294967295)<<15|o>>>17))+((461845907*(o>>>16)&65535)<<16)&4294967295}return a^=e.length,a=2246822507*(65535&(a^=a>>>16))+((2246822507*(a>>>16)&65535)<<16)&4294967295,((a=3266489909*(65535&(a^=a>>>13))+((3266489909*(a>>>16)&65535)<<16)&4294967295)^a>>>16)>>>0}var J_=new MessageChannel,eA=[];function tA(e){eA.push(e),J_.port2.postMessage(null)}function nA(e){setTimeout((function(){throw e}))}J_.port1.onmessage=function(){var e=eA.shift();e&&e()};var rA=Promise,aA="function"==typeof queueMicrotask?queueMicrotask:function(e){rA.resolve(null).then(e).catch(nA)},oA=null,iA=0;function sA(e,t){if(0!==t.byteLength)if(2048<t.byteLength)0<iA&&(e.enqueue(new Uint8Array(oA.buffer,0,iA)),oA=new Uint8Array(2048),iA=0),e.enqueue(t);else{var n=oA.length-iA;n<t.byteLength&&(0===n?e.enqueue(oA):(oA.set(t.subarray(0,n),iA),e.enqueue(oA),t=t.subarray(n)),oA=new Uint8Array(2048),iA=0),oA.set(t,iA),iA+=t.byteLength}}function lA(e,t){return sA(e,t),!0}function cA(e){oA&&0<iA&&(e.enqueue(new Uint8Array(oA.buffer,0,iA)),oA=null,iA=0)}var uA=new TextEncoder;function dA(e){return uA.encode(e)}function pA(e){return uA.encode(e)}function fA(e,t){"function"==typeof e.error?e.error(t):e.close()}var hA=Object.assign,mA=Object.prototype.hasOwnProperty,gA=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),yA={},bA={};function vA(e){return!!mA.call(bA,e)||!mA.call(yA,e)&&(gA.test(e)?bA[e]=!0:(yA[e]=!0,!1))}var kA=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),wA=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),EA=/["'&<>]/;function SA(e){if("boolean"==typeof e||"number"==typeof e||"bigint"==typeof e)return""+e;e=""+e;var t=EA.exec(e);if(t){var n,r="",a=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}a!==n&&(r+=e.slice(a,n)),a=n+1,r+=t}e=a!==n?r+e.slice(a,n):r}return e}var TA=/([A-Z])/g,xA=/^ms-/,_A=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function AA(e){return _A.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var CA=I_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,IA=N_.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,NA={pending:!1,data:null,method:null,action:null},RA=IA.d;IA.d={f:RA.f,r:RA.r,D:function(e){var t=PR||null;if(t){var n=t.resumableState,r=t.renderState;if("string"==typeof e&&e){var a,o;if(!n.dnsResources.hasOwnProperty(e))n.dnsResources[e]=null,(o=(n=r.headers)&&0<n.remainingCapacity)&&(a="<"+(""+e).replace(hN,mN)+">; rel=dns-prefetch",o=0<=(n.remainingCapacity-=a.length+2)),o?(r.resets.dns[e]=null,n.preconnects&&(n.preconnects+=", "),n.preconnects+=a):(TC(a=[],{href:e,rel:"dns-prefetch"}),r.preconnects.add(a));gO(t)}}else RA.D(e)},C:function(e,t){var n=PR||null;if(n){var r=n.resumableState,a=n.renderState;if("string"==typeof e&&e){var o="use-credentials"===t?"credentials":"string"==typeof t?"anonymous":"default";if(!r.connectResources[o].hasOwnProperty(e)){var i,s;if(r.connectResources[o][e]=null,s=(r=a.headers)&&0<r.remainingCapacity){if(s="<"+(""+e).replace(hN,mN)+">; rel=preconnect","string"==typeof t)s+='; crossorigin="'+(""+t).replace(gN,yN)+'"';i=s,s=0<=(r.remainingCapacity-=i.length+2)}s?(a.resets.connect[o][e]=null,r.preconnects&&(r.preconnects+=", "),r.preconnects+=i):(TC(o=[],{rel:"preconnect",href:e,crossOrigin:t}),a.preconnects.add(o))}gO(n)}}else RA.C(e,t)},L:function(e,t,n){var r=PR||null;if(r){var a=r.resumableState,o=r.renderState;if(t&&e){switch(t){case"image":if(n)var i=n.imageSrcSet,s=n.imageSizes,l=n.fetchPriority;var c,u=i?i+"\n"+(s||""):e;if(a.imageResources.hasOwnProperty(u))return;a.imageResources[u]=OA,(a=o.headers)&&0<a.remainingCapacity&&"high"===l&&(c=fN(e,t,n),0<=(a.remainingCapacity-=c.length+2))?(o.resets.image[u]=OA,a.highImagePreloads&&(a.highImagePreloads+=", "),a.highImagePreloads+=c):(TC(a=[],hA({rel:"preload",href:i?void 0:e,as:t},n)),"high"===l?o.highImagePreloads.add(a):(o.bulkPreloads.add(a),o.preloads.images.set(u,a)));break;case"style":if(a.styleResources.hasOwnProperty(e))return;TC(i=[],hA({rel:"preload",href:e,as:t},n)),a.styleResources[e]=!n||"string"!=typeof n.crossOrigin&&"string"!=typeof n.integrity?OA:[n.crossOrigin,n.integrity],o.preloads.stylesheets.set(e,i),o.bulkPreloads.add(i);break;case"script":if(a.scriptResources.hasOwnProperty(e))return;i=[],o.preloads.scripts.set(e,i),o.bulkPreloads.add(i),TC(i,hA({rel:"preload",href:e,as:t},n)),a.scriptResources[e]=!n||"string"!=typeof n.crossOrigin&&"string"!=typeof n.integrity?OA:[n.crossOrigin,n.integrity];break;default:if(a.unknownResources.hasOwnProperty(t)){if((i=a.unknownResources[t]).hasOwnProperty(e))return}else i={},a.unknownResources[t]=i;if(i[e]=OA,(a=o.headers)&&0<a.remainingCapacity&&"font"===t&&(u=fN(e,t,n),0<=(a.remainingCapacity-=u.length+2)))o.resets.font[e]=OA,a.fontPreloads&&(a.fontPreloads+=", "),a.fontPreloads+=u;else if("font"===(TC(a=[],e=hA({rel:"preload",href:e,as:t},n)),t))o.fontPreloads.add(a);else o.bulkPreloads.add(a)}gO(r)}}else RA.L(e,t,n)},m:function(e,t){var n=PR||null;if(n){var r=n.resumableState,a=n.renderState;if(e){var o=t&&"string"==typeof t.as?t.as:"script";if("script"===o){if(r.moduleScriptResources.hasOwnProperty(e))return;o=[],r.moduleScriptResources[e]=!t||"string"!=typeof t.crossOrigin&&"string"!=typeof t.integrity?OA:[t.crossOrigin,t.integrity],a.preloads.moduleScripts.set(e,o)}else{if(r.moduleUnknownResources.hasOwnProperty(o)){var i=r.unknownResources[o];if(i.hasOwnProperty(e))return}else i={},r.moduleUnknownResources[o]=i;o=[],i[e]=OA}TC(o,hA({rel:"modulepreload",href:e},t)),a.bulkPreloads.add(o),gO(n)}}else RA.m(e,t)},X:function(e,t){var n=PR||null;if(n){var r=n.resumableState,a=n.renderState;if(e){var o=r.scriptResources.hasOwnProperty(e)?r.scriptResources[e]:void 0;null!==o&&(r.scriptResources[e]=null,t=hA({src:e,async:!0},t),o&&(2===o.length&&pN(t,o),e=a.preloads.scripts.get(e))&&(e.length=0),e=[],a.scripts.add(e),IC(e,t),gO(n))}}else RA.X(e,t)},S:function(e,t,n){var r=PR||null;if(r){var a=r.resumableState,o=r.renderState;if(e){t=t||"default";var i=o.styles.get(t),s=a.styleResources.hasOwnProperty(e)?a.styleResources[e]:void 0;null!==s&&(a.styleResources[e]=null,i||(i={precedence:dA(SA(t)),rules:[],hrefs:[],sheets:new Map},o.styles.set(t,i)),t={state:0,props:hA({rel:"stylesheet",href:e,"data-precedence":t},n)},s&&(2===s.length&&pN(t.props,s),(o=o.preloads.stylesheets.get(e))&&0<o.length?o.length=0:t.state=1),i.sheets.set(e,t),gO(r))}}else RA.S(e,t,n)},M:function(e,t){var n=PR||null;if(n){var r=n.resumableState,a=n.renderState;if(e){var o=r.moduleScriptResources.hasOwnProperty(e)?r.moduleScriptResources[e]:void 0;null!==o&&(r.moduleScriptResources[e]=null,t=hA({src:e,type:"module",async:!0},t),o&&(2===o.length&&pN(t,o),e=a.preloads.moduleScripts.get(e))&&(e.length=0),e=[],a.scripts.add(e),IC(e,t),gO(n))}}else RA.M(e,t)}};var OA=[];pA('"></template>');var PA=pA("<script>"),LA=pA("<\/script>"),DA=pA('<script src="'),MA=pA('<script type="module" src="'),FA=pA('" nonce="'),BA=pA('" integrity="'),zA=pA('" crossorigin="'),HA=pA('" async=""><\/script>'),jA=/(<\/|<)(s)(cript)/gi;function UA(e,t,n,r){return t+("s"===n?"\\u0073":"\\u0053")+r}var $A=pA('<script type="importmap">'),GA=pA("<\/script>");function VA(e,t,n,r,a,o){var i=void 0===t?PA:pA('<script nonce="'+SA(t)+'">'),s=e.idPrefix;n=[];var l=e.bootstrapScriptContent,c=e.bootstrapScripts,u=e.bootstrapModules;if(void 0!==l&&n.push(i,dA((""+l).replace(jA,UA)),LA),l=[],void 0!==r&&(l.push($A),l.push(dA((""+JSON.stringify(r)).replace(jA,UA))),l.push(GA)),r=a?{preconnects:"",fontPreloads:"",highImagePreloads:"",remainingCapacity:2+("number"==typeof o?o:2e3)}:null,a={placeholderPrefix:pA(s+"P:"),segmentPrefix:pA(s+"S:"),boundaryPrefix:pA(s+"B:"),startInlineScript:i,htmlChunks:null,headChunks:null,externalRuntimeScript:null,bootstrapChunks:n,importMapChunks:l,onHeaders:a,headers:r,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:new Set,fontPreloads:new Set,highImagePreloads:new Set,styles:new Map,bootstrapScripts:new Set,scripts:new Set,bulkPreloads:new Set,preloads:{images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map},nonce:t,hoistableState:null,stylesToHoist:!1},void 0!==c)for(r=0;r<c.length;r++){var d=c[r];s=i=void 0,l={rel:"preload",as:"script",fetchPriority:"low",nonce:t},"string"==typeof d?l.href=o=d:(l.href=o=d.src,l.integrity=s="string"==typeof d.integrity?d.integrity:void 0,l.crossOrigin=i="string"==typeof d||null==d.crossOrigin?void 0:"use-credentials"===d.crossOrigin?"use-credentials":"");var p=o;(d=e).scriptResources[p]=null,d.moduleScriptResources[p]=null,TC(d=[],l),a.bootstrapScripts.add(d),n.push(DA,dA(SA(o))),t&&n.push(FA,dA(SA(t))),"string"==typeof s&&n.push(BA,dA(SA(s))),"string"==typeof i&&n.push(zA,dA(SA(i))),n.push(HA)}if(void 0!==u)for(c=0;c<u.length;c++)i=o=void 0,s={rel:"modulepreload",fetchPriority:"low",nonce:t},"string"==typeof(l=u[c])?s.href=r=l:(s.href=r=l.src,s.integrity=i="string"==typeof l.integrity?l.integrity:void 0,s.crossOrigin=o="string"==typeof l||null==l.crossOrigin?void 0:"use-credentials"===l.crossOrigin?"use-credentials":""),d=r,(l=e).scriptResources[d]=null,l.moduleScriptResources[d]=null,TC(l=[],s),a.bootstrapScripts.add(l),n.push(MA,dA(SA(r))),t&&n.push(FA,dA(SA(t))),"string"==typeof i&&n.push(BA,dA(SA(i))),"string"==typeof o&&n.push(zA,dA(SA(o))),n.push(HA);return a}function WA(e,t,n,r,a){return{idPrefix:void 0===e?"":e,nextFormID:0,streamingFormat:0,bootstrapScriptContent:n,bootstrapScripts:r,bootstrapModules:a,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function qA(e,t,n){return{insertionMode:e,selectedValue:t,tagScope:n}}function YA(e){return qA("http://www.w3.org/2000/svg"===e?3:"http://www.w3.org/1998/Math/MathML"===e?4:0,null,0)}function XA(e,t,n){switch(t){case"noscript":return qA(2,null,1|e.tagScope);case"select":return qA(2,null!=n.value?n.value:n.defaultValue,e.tagScope);case"svg":return qA(3,null,e.tagScope);case"picture":return qA(2,null,2|e.tagScope);case"math":return qA(4,null,e.tagScope);case"foreignObject":return qA(2,null,e.tagScope);case"table":return qA(5,null,e.tagScope);case"thead":case"tbody":case"tfoot":return qA(6,null,e.tagScope);case"colgroup":return qA(8,null,e.tagScope);case"tr":return qA(7,null,e.tagScope)}return 5<=e.insertionMode?qA(2,null,e.tagScope):0===e.insertionMode?qA("html"===t?1:2,null,e.tagScope):1===e.insertionMode?qA(2,null,e.tagScope):e}var KA=pA("\x3c!-- --\x3e");function QA(e,t,n,r){return""===t?r:(r&&e.push(KA),e.push(dA(SA(t))),!0)}var ZA=new Map,JA=pA(' style="'),eC=pA(":"),tC=pA(";");function nC(e,t){if("object"!=typeof t)throw Error(R_(62));var n,r=!0;for(n in t)if(mA.call(t,n)){var a=t[n];if(null!=a&&"boolean"!=typeof a&&""!==a){if(0===n.indexOf("--")){var o=dA(SA(n));a=dA(SA((""+a).trim()))}else void 0===(o=ZA.get(n))&&(o=pA(SA(n.replace(TA,"-$1").toLowerCase().replace(xA,"-ms-"))),ZA.set(n,o)),a="number"==typeof a?0===a||kA.has(n)?dA(""+a):dA(a+"px"):dA(SA((""+a).trim()));r?(r=!1,e.push(JA,o,eC,a)):e.push(tC,o,eC,a)}}r||e.push(oC)}var rC=pA(" "),aC=pA('="'),oC=pA('"'),iC=pA('=""');function sC(e,t,n){n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(rC,dA(t),iC)}function lC(e,t,n){"function"!=typeof n&&"symbol"!=typeof n&&"boolean"!=typeof n&&e.push(rC,dA(t),aC,dA(SA(n)),oC)}var cC=pA(SA("javascript:throw new Error('React form unexpectedly submitted.')")),uC=pA('<input type="hidden"');function dC(e,t){this.push(uC),pC(e),lC(this,"name",t),lC(this,"value",e),this.push(yC)}function pC(e){if("string"!=typeof e)throw Error(R_(480))}function fC(e,t){if("function"==typeof t.$$FORM_ACTION){var n=e.nextFormID++;e=e.idPrefix+n;try{var r=t.$$FORM_ACTION(e);if(r){var a=r.data;null!=a&&a.forEach(pC)}return r}catch(o){if("object"==typeof o&&null!==o&&"function"==typeof o.then)throw o}}return null}function hC(e,t,n,r,a,o,i,s){var l=null;if("function"==typeof r){var c=fC(t,r);null!==c?(s=c.name,r=c.action||"",a=c.encType,o=c.method,i=c.target,l=c.data):(e.push(rC,dA("formAction"),aC,cC,oC),i=o=a=r=s=null,wC(t,n))}return null!=s&&mC(e,"name",s),null!=r&&mC(e,"formAction",r),null!=a&&mC(e,"formEncType",a),null!=o&&mC(e,"formMethod",o),null!=i&&mC(e,"formTarget",i),l}function mC(e,t,n){switch(t){case"className":lC(e,"class",n);break;case"tabIndex":lC(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":lC(e,t,n);break;case"style":nC(e,n);break;case"src":case"href":if(""===n)break;case"action":case"formAction":if(null==n||"function"==typeof n||"symbol"==typeof n||"boolean"==typeof n)break;n=AA(""+n),e.push(rC,dA(t),aC,dA(SA(n)),oC);break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":sC(e,t.toLowerCase(),n);break;case"xlinkHref":if("function"==typeof n||"symbol"==typeof n||"boolean"==typeof n)break;n=AA(""+n),e.push(rC,dA("xlink:href"),aC,dA(SA(n)),oC);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":"function"!=typeof n&&"symbol"!=typeof n&&e.push(rC,dA(t),aC,dA(SA(n)),oC);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(rC,dA(t),iC);break;case"capture":case"download":!0===n?e.push(rC,dA(t),iC):!1!==n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(rC,dA(t),aC,dA(SA(n)),oC);break;case"cols":case"rows":case"size":case"span":"function"!=typeof n&&"symbol"!=typeof n&&!isNaN(n)&&1<=n&&e.push(rC,dA(t),aC,dA(SA(n)),oC);break;case"rowSpan":case"start":"function"==typeof n||"symbol"==typeof n||isNaN(n)||e.push(rC,dA(t),aC,dA(SA(n)),oC);break;case"xlinkActuate":lC(e,"xlink:actuate",n);break;case"xlinkArcrole":lC(e,"xlink:arcrole",n);break;case"xlinkRole":lC(e,"xlink:role",n);break;case"xlinkShow":lC(e,"xlink:show",n);break;case"xlinkTitle":lC(e,"xlink:title",n);break;case"xlinkType":lC(e,"xlink:type",n);break;case"xmlBase":lC(e,"xml:base",n);break;case"xmlLang":lC(e,"xml:lang",n);break;case"xmlSpace":lC(e,"xml:space",n);break;default:if((!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&vA(t=wA.get(t)||t)){switch(typeof n){case"function":case"symbol":return;case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return}e.push(rC,dA(t),aC,dA(SA(n)),oC)}}}var gC=pA(">"),yC=pA("/>");function bC(e,t,n){if(null!=t){if(null!=n)throw Error(R_(60));if("object"!=typeof t||!("__html"in t))throw Error(R_(61));null!=(t=t.__html)&&e.push(dA(""+t))}}var vC=pA(' selected=""'),kC=pA('addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});');function wC(e,t){!(16&e.instructions)&&(e.instructions|=16,t.bootstrapChunks.unshift(t.startInlineScript,kC,LA))}var EC=pA("\x3c!--F!--\x3e"),SC=pA("\x3c!--F--\x3e");function TC(e,t){for(var n in e.push(LC("link")),t)if(mA.call(t,n)){var r=t[n];if(null!=r)switch(n){case"children":case"dangerouslySetInnerHTML":throw Error(R_(399,"link"));default:mC(e,n,r)}}return e.push(yC),null}var xC=/(<\/|<)(s)(tyle)/gi;function _C(e,t,n,r){return t+("s"===n?"\\73 ":"\\53 ")+r}function AC(e,t,n){for(var r in e.push(LC(n)),t)if(mA.call(t,r)){var a=t[r];if(null!=a)switch(r){case"children":case"dangerouslySetInnerHTML":throw Error(R_(399,n));default:mC(e,r,a)}}return e.push(yC),null}function CC(e,t){e.push(LC("title"));var n,r=null,a=null;for(n in t)if(mA.call(t,n)){var o=t[n];if(null!=o)switch(n){case"children":r=o;break;case"dangerouslySetInnerHTML":a=o;break;default:mC(e,n,o)}}return e.push(gC),"function"!=typeof(t=Array.isArray(r)?2>r.length?r[0]:null:r)&&"symbol"!=typeof t&&null!=t&&e.push(dA(SA(""+t))),bC(e,a,r),e.push(BC("title")),null}function IC(e,t){e.push(LC("script"));var n,r=null,a=null;for(n in t)if(mA.call(t,n)){var o=t[n];if(null!=o)switch(n){case"children":r=o;break;case"dangerouslySetInnerHTML":a=o;break;default:mC(e,n,o)}}return e.push(gC),bC(e,a,r),"string"==typeof r&&e.push(dA((""+r).replace(jA,UA))),e.push(BC("script")),null}function NC(e,t,n){e.push(LC(n));var r,a=n=null;for(r in t)if(mA.call(t,r)){var o=t[r];if(null!=o)switch(r){case"children":n=o;break;case"dangerouslySetInnerHTML":a=o;break;default:mC(e,r,o)}}return e.push(gC),bC(e,a,n),"string"==typeof n?(e.push(dA(SA(n))),null):n}var RC=pA("\n"),OC=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,PC=new Map;function LC(e){var t=PC.get(e);if(void 0===t){if(!OC.test(e))throw Error(R_(65,e));t=pA("<"+e),PC.set(e,t)}return t}var DC=pA("<!DOCTYPE html>");function MC(e,t,n,r,a,o,i,s,l){switch(t){case"div":case"span":case"svg":case"path":case"g":case"p":case"li":case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":break;case"a":e.push(LC("a"));var c,u=null,d=null;for(c in n)if(mA.call(n,c)){var p=n[c];if(null!=p)switch(c){case"children":u=p;break;case"dangerouslySetInnerHTML":d=p;break;case"href":""===p?lC(e,"href",""):mC(e,c,p);break;default:mC(e,c,p)}}if(e.push(gC),bC(e,d,u),"string"==typeof u){e.push(dA(SA(u)));var f=null}else f=u;return f;case"select":e.push(LC("select"));var h,m=null,g=null;for(h in n)if(mA.call(n,h)){var y=n[h];if(null!=y)switch(h){case"children":m=y;break;case"dangerouslySetInnerHTML":g=y;break;case"defaultValue":case"value":break;default:mC(e,h,y)}}return e.push(gC),bC(e,g,m),m;case"option":var b=i.selectedValue;e.push(LC("option"));var v,k=null,w=null,E=null,S=null;for(v in n)if(mA.call(n,v)){var T=n[v];if(null!=T)switch(v){case"children":k=T;break;case"selected":E=T;break;case"dangerouslySetInnerHTML":S=T;break;case"value":w=T;default:mC(e,v,T)}}if(null!=b){var x=null!==w?""+w:function(e){var t="";return I_.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(k);if(Q_(b)){for(var _=0;_<b.length;_++)if(""+b[_]===x){e.push(vC);break}}else""+b===x&&e.push(vC)}else E&&e.push(vC);return e.push(gC),bC(e,S,k),k;case"textarea":e.push(LC("textarea"));var A,C=null,I=null,N=null;for(A in n)if(mA.call(n,A)){var R=n[A];if(null!=R)switch(A){case"children":N=R;break;case"value":C=R;break;case"defaultValue":I=R;break;case"dangerouslySetInnerHTML":throw Error(R_(91));default:mC(e,A,R)}}if(null===C&&null!==I&&(C=I),e.push(gC),null!=N){if(null!=C)throw Error(R_(92));if(Q_(N)){if(1<N.length)throw Error(R_(93));C=""+N[0]}C=""+N}return"string"==typeof C&&"\n"===C[0]&&e.push(RC),null!==C&&e.push(dA(SA(""+C))),null;case"input":e.push(LC("input"));var O,P=null,L=null,D=null,M=null,F=null,B=null,z=null,H=null,j=null;for(O in n)if(mA.call(n,O)){var U=n[O];if(null!=U)switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(R_(399,"input"));case"name":P=U;break;case"formAction":L=U;break;case"formEncType":D=U;break;case"formMethod":M=U;break;case"formTarget":F=U;break;case"defaultChecked":j=U;break;case"defaultValue":z=U;break;case"checked":H=U;break;case"value":B=U;break;default:mC(e,O,U)}}var $=hC(e,r,a,L,D,M,F,P);return null!==H?sC(e,"checked",H):null!==j&&sC(e,"checked",j),null!==B?mC(e,"value",B):null!==z&&mC(e,"value",z),e.push(yC),null!=$&&$.forEach(dC,e),null;case"button":e.push(LC("button"));var G,V=null,W=null,q=null,Y=null,X=null,K=null,Q=null;for(G in n)if(mA.call(n,G)){var Z=n[G];if(null!=Z)switch(G){case"children":V=Z;break;case"dangerouslySetInnerHTML":W=Z;break;case"name":q=Z;break;case"formAction":Y=Z;break;case"formEncType":X=Z;break;case"formMethod":K=Z;break;case"formTarget":Q=Z;break;default:mC(e,G,Z)}}var J=hC(e,r,a,Y,X,K,Q,q);if(e.push(gC),null!=J&&J.forEach(dC,e),bC(e,W,V),"string"==typeof V){e.push(dA(SA(V)));var ee=null}else ee=V;return ee;case"form":e.push(LC("form"));var te,ne=null,re=null,ae=null,oe=null,ie=null,se=null;for(te in n)if(mA.call(n,te)){var le=n[te];if(null!=le)switch(te){case"children":ne=le;break;case"dangerouslySetInnerHTML":re=le;break;case"action":ae=le;break;case"encType":oe=le;break;case"method":ie=le;break;case"target":se=le;break;default:mC(e,te,le)}}var ce=null,ue=null;if("function"==typeof ae){var de=fC(r,ae);null!==de?(ae=de.action||"",oe=de.encType,ie=de.method,se=de.target,ce=de.data,ue=de.name):(e.push(rC,dA("action"),aC,cC,oC),se=ie=oe=ae=null,wC(r,a))}if(null!=ae&&mC(e,"action",ae),null!=oe&&mC(e,"encType",oe),null!=ie&&mC(e,"method",ie),null!=se&&mC(e,"target",se),e.push(gC),null!==ue&&(e.push(uC),lC(e,"name",ue),e.push(yC),null!=ce&&ce.forEach(dC,e)),bC(e,re,ne),"string"==typeof ne){e.push(dA(SA(ne)));var pe=null}else pe=ne;return pe;case"menuitem":for(var fe in e.push(LC("menuitem")),n)if(mA.call(n,fe)){var he=n[fe];if(null!=he)switch(fe){case"children":case"dangerouslySetInnerHTML":throw Error(R_(400));default:mC(e,fe,he)}}return e.push(gC),null;case"object":e.push(LC("object"));var me,ge=null,ye=null;for(me in n)if(mA.call(n,me)){var be=n[me];if(null!=be)switch(me){case"children":ge=be;break;case"dangerouslySetInnerHTML":ye=be;break;case"data":var ve=AA(""+be);if(""===ve)break;e.push(rC,dA("data"),aC,dA(SA(ve)),oC);break;default:mC(e,me,be)}}if(e.push(gC),bC(e,ye,ge),"string"==typeof ge){e.push(dA(SA(ge)));var ke=null}else ke=ge;return ke;case"title":if(3===i.insertionMode||1&i.tagScope||null!=n.itemProp)var we=CC(e,n);else l?we=null:(CC(a.hoistableChunks,n),we=void 0);return we;case"link":var Ee=n.rel,Se=n.href,Te=n.precedence;if(3===i.insertionMode||1&i.tagScope||null!=n.itemProp||"string"!=typeof Ee||"string"!=typeof Se||""===Se){TC(e,n);var xe=null}else if("stylesheet"===n.rel)if("string"!=typeof Te||null!=n.disabled||n.onLoad||n.onError)xe=TC(e,n);else{var _e=a.styles.get(Te),Ae=r.styleResources.hasOwnProperty(Se)?r.styleResources[Se]:void 0;if(null!==Ae){r.styleResources[Se]=null,_e||(_e={precedence:dA(SA(Te)),rules:[],hrefs:[],sheets:new Map},a.styles.set(Te,_e));var Ce={state:0,props:hA({},n,{"data-precedence":n.precedence,precedence:null})};if(Ae){2===Ae.length&&pN(Ce.props,Ae);var Ie=a.preloads.stylesheets.get(Se);Ie&&0<Ie.length?Ie.length=0:Ce.state=1}_e.sheets.set(Se,Ce),o&&o.stylesheets.add(Ce)}else if(_e){var Ne=_e.sheets.get(Se);Ne&&o&&o.stylesheets.add(Ne)}s&&e.push(KA),xe=null}else n.onLoad||n.onError?xe=TC(e,n):(s&&e.push(KA),xe=l?null:TC(a.hoistableChunks,n));return xe;case"script":var Re=n.async;if("string"!=typeof n.src||!n.src||!Re||"function"==typeof Re||"symbol"==typeof Re||n.onLoad||n.onError||3===i.insertionMode||1&i.tagScope||null!=n.itemProp)var Oe=IC(e,n);else{var Pe=n.src;if("module"===n.type)var Le=r.moduleScriptResources,De=a.preloads.moduleScripts;else Le=r.scriptResources,De=a.preloads.scripts;var Me=Le.hasOwnProperty(Pe)?Le[Pe]:void 0;if(null!==Me){Le[Pe]=null;var Fe=n;if(Me){2===Me.length&&pN(Fe=hA({},n),Me);var Be=De.get(Pe);Be&&(Be.length=0)}var ze=[];a.scripts.add(ze),IC(ze,Fe)}s&&e.push(KA),Oe=null}return Oe;case"style":var He=n.precedence,je=n.href;if(3===i.insertionMode||1&i.tagScope||null!=n.itemProp||"string"!=typeof He||"string"!=typeof je||""===je){e.push(LC("style"));var Ue,$e=null,Ge=null;for(Ue in n)if(mA.call(n,Ue)){var Ve=n[Ue];if(null!=Ve)switch(Ue){case"children":$e=Ve;break;case"dangerouslySetInnerHTML":Ge=Ve;break;default:mC(e,Ue,Ve)}}e.push(gC);var We=Array.isArray($e)?2>$e.length?$e[0]:null:$e;"function"!=typeof We&&"symbol"!=typeof We&&null!=We&&e.push(dA((""+We).replace(xC,_C))),bC(e,Ge,$e),e.push(BC("style"));var qe=null}else{var Ye=a.styles.get(He);if(null!==(r.styleResources.hasOwnProperty(je)?r.styleResources[je]:void 0)){r.styleResources[je]=null,Ye?Ye.hrefs.push(dA(SA(je))):(Ye={precedence:dA(SA(He)),rules:[],hrefs:[dA(SA(je))],sheets:new Map},a.styles.set(He,Ye));var Xe,Ke=Ye.rules,Qe=null,Ze=null;for(Xe in n)if(mA.call(n,Xe)){var Je=n[Xe];if(null!=Je)switch(Xe){case"children":Qe=Je;break;case"dangerouslySetInnerHTML":Ze=Je}}var et=Array.isArray(Qe)?2>Qe.length?Qe[0]:null:Qe;"function"!=typeof et&&"symbol"!=typeof et&&null!=et&&Ke.push(dA((""+et).replace(xC,_C))),bC(Ke,Ze,Qe)}Ye&&o&&o.styles.add(Ye),s&&e.push(KA),qe=void 0}return qe;case"meta":if(3===i.insertionMode||1&i.tagScope||null!=n.itemProp)var tt=AC(e,n,"meta");else s&&e.push(KA),tt=l?null:"string"==typeof n.charSet?AC(a.charsetChunks,n,"meta"):"viewport"===n.name?AC(a.viewportChunks,n,"meta"):AC(a.hoistableChunks,n,"meta");return tt;case"listing":case"pre":e.push(LC(t));var nt,rt=null,at=null;for(nt in n)if(mA.call(n,nt)){var ot=n[nt];if(null!=ot)switch(nt){case"children":rt=ot;break;case"dangerouslySetInnerHTML":at=ot;break;default:mC(e,nt,ot)}}if(e.push(gC),null!=at){if(null!=rt)throw Error(R_(60));if("object"!=typeof at||!("__html"in at))throw Error(R_(61));var it=at.__html;null!=it&&("string"==typeof it&&0<it.length&&"\n"===it[0]?e.push(RC,dA(it)):e.push(dA(""+it)))}return"string"==typeof rt&&"\n"===rt[0]&&e.push(RC),rt;case"img":var st=n.src,lt=n.srcSet;if(!("lazy"===n.loading||!st&&!lt||"string"!=typeof st&&null!=st||"string"!=typeof lt&&null!=lt)&&"low"!==n.fetchPriority&&!1==!!(3&i.tagScope)&&("string"!=typeof st||":"!==st[4]||"d"!==st[0]&&"D"!==st[0]||"a"!==st[1]&&"A"!==st[1]||"t"!==st[2]&&"T"!==st[2]||"a"!==st[3]&&"A"!==st[3])&&("string"!=typeof lt||":"!==lt[4]||"d"!==lt[0]&&"D"!==lt[0]||"a"!==lt[1]&&"A"!==lt[1]||"t"!==lt[2]&&"T"!==lt[2]||"a"!==lt[3]&&"A"!==lt[3])){var ct="string"==typeof n.sizes?n.sizes:void 0,ut=lt?lt+"\n"+(ct||""):st,dt=a.preloads.images,pt=dt.get(ut);if(pt)("high"===n.fetchPriority||10>a.highImagePreloads.size)&&(dt.delete(ut),a.highImagePreloads.add(pt));else if(!r.imageResources.hasOwnProperty(ut)){r.imageResources[ut]=OA;var ft,ht=n.crossOrigin,mt="string"==typeof ht?"use-credentials"===ht?ht:"":void 0,gt=a.headers;gt&&0<gt.remainingCapacity&&("high"===n.fetchPriority||500>gt.highImagePreloads.length)&&(ft=fN(st,"image",{imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:mt,integrity:n.integrity,nonce:n.nonce,type:n.type,fetchPriority:n.fetchPriority,referrerPolicy:n.refererPolicy}),0<=(gt.remainingCapacity-=ft.length+2))?(a.resets.image[ut]=OA,gt.highImagePreloads&&(gt.highImagePreloads+=", "),gt.highImagePreloads+=ft):(TC(pt=[],{rel:"preload",as:"image",href:lt?void 0:st,imageSrcSet:lt,imageSizes:ct,crossOrigin:mt,integrity:n.integrity,type:n.type,fetchPriority:n.fetchPriority,referrerPolicy:n.referrerPolicy}),"high"===n.fetchPriority||10>a.highImagePreloads.size?a.highImagePreloads.add(pt):(a.bulkPreloads.add(pt),dt.set(ut,pt)))}}return AC(e,n,"img");case"base":case"area":case"br":case"col":case"embed":case"hr":case"keygen":case"param":case"source":case"track":case"wbr":return AC(e,n,t);case"head":if(2>i.insertionMode&&null===a.headChunks){a.headChunks=[];var yt=NC(a.headChunks,n,"head")}else yt=NC(e,n,"head");return yt;case"html":if(0===i.insertionMode&&null===a.htmlChunks){a.htmlChunks=[DC];var bt=NC(a.htmlChunks,n,"html")}else bt=NC(e,n,"html");return bt;default:if(-1!==t.indexOf("-")){e.push(LC(t));var vt,kt=null,wt=null;for(vt in n)if(mA.call(n,vt)){var Et=n[vt];if(null!=Et){var St=vt;switch(vt){case"children":kt=Et;break;case"dangerouslySetInnerHTML":wt=Et;break;case"style":nC(e,Et);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"className":St="class";default:if(vA(vt)&&"function"!=typeof Et&&"symbol"!=typeof Et&&!1!==Et){if(!0===Et)Et="";else if("object"==typeof Et)continue;e.push(rC,dA(St),aC,dA(SA(Et)),oC)}}}}return e.push(gC),bC(e,wt,kt),kt}}return NC(e,n,t)}var FC=new Map;function BC(e){var t=FC.get(e);return void 0===t&&(t=pA("</"+e+">"),FC.set(e,t)),t}function zC(e,t){t=t.bootstrapChunks;for(var n=0;n<t.length-1;n++)sA(e,t[n]);return!(n<t.length)||(n=t[n],t.length=0,lA(e,n))}var HC=pA('<template id="'),jC=pA('"></template>'),UC=pA("\x3c!--$--\x3e"),$C=pA('\x3c!--$?--\x3e<template id="'),GC=pA('"></template>'),VC=pA("\x3c!--$!--\x3e"),WC=pA("\x3c!--/$--\x3e"),qC=pA("<template"),YC=pA('"'),XC=pA(' data-dgst="');pA(' data-msg="'),pA(' data-stck="'),pA(' data-cstck="');var KC=pA("></template>");function QC(e,t,n){if(sA(e,$C),null===n)throw Error(R_(395));return sA(e,t.boundaryPrefix),sA(e,dA(n.toString(16))),lA(e,GC)}var ZC=pA('<div hidden id="'),JC=pA('">'),eI=pA("</div>"),tI=pA('<svg aria-hidden="true" style="display:none" id="'),nI=pA('">'),rI=pA("</svg>"),aI=pA('<math aria-hidden="true" style="display:none" id="'),oI=pA('">'),iI=pA("</math>"),sI=pA('<table hidden id="'),lI=pA('">'),cI=pA("</table>"),uI=pA('<table hidden><tbody id="'),dI=pA('">'),pI=pA("</tbody></table>"),fI=pA('<table hidden><tr id="'),hI=pA('">'),mI=pA("</tr></table>"),gI=pA('<table hidden><colgroup id="'),yI=pA('">'),bI=pA("</colgroup></table>");var vI=pA('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),kI=pA('$RS("'),wI=pA('","'),EI=pA('")<\/script>');pA('<template data-rsi="" data-sid="'),pA('" data-pid="');var SI=pA('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("'),TI=pA('$RC("'),xI=pA('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'),_I=pA('$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'),AI=pA('$RR("'),CI=pA('","'),II=pA('",'),NI=pA('"'),RI=pA(")<\/script>");pA('<template data-rci="" data-bid="'),pA('<template data-rri="" data-bid="'),pA('" data-sid="'),pA('" data-sty="');var OI=pA('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'),PI=pA('$RX("'),LI=pA('"'),DI=pA(","),MI=pA(")<\/script>");pA('<template data-rxi="" data-bid="'),pA('" data-dgst="'),pA('" data-msg="'),pA('" data-stck="'),pA('" data-cstck="');var FI=/[<\u2028\u2029]/g;var BI=/[&><\u2028\u2029]/g;function zI(e){return JSON.stringify(e).replace(BI,(function(e){switch(e){case"&":return"\\u0026";case">":return"\\u003e";case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}var HI=pA('<style media="not all" data-precedence="'),jI=pA('" data-href="'),UI=pA('">'),$I=pA("</style>"),GI=!1,VI=!0;function WI(e){var t=e.rules,n=e.hrefs,r=0;if(n.length){for(sA(this,HI),sA(this,e.precedence),sA(this,jI);r<n.length-1;r++)sA(this,n[r]),sA(this,eN);for(sA(this,n[r]),sA(this,UI),r=0;r<t.length;r++)sA(this,t[r]);VI=lA(this,$I),GI=!0,t.length=0,n.length=0}}function qI(e){return 2!==e.state&&(GI=!0)}function YI(e,t,n){return GI=!1,VI=!0,t.styles.forEach(WI,e),t.stylesheets.forEach(qI),GI&&(n.stylesToHoist=!0),VI}function XI(e){for(var t=0;t<e.length;t++)sA(this,e[t]);e.length=0}var KI=[];function QI(e){TC(KI,e.props);for(var t=0;t<KI.length;t++)sA(this,KI[t]);KI.length=0,e.state=2}var ZI=pA('<style data-precedence="'),JI=pA('" data-href="'),eN=pA(" "),tN=pA('">'),nN=pA("</style>");function rN(e){var t=0<e.sheets.size;e.sheets.forEach(QI,this),e.sheets.clear();var n=e.rules,r=e.hrefs;if(!t||r.length){if(sA(this,ZI),sA(this,e.precedence),e=0,r.length){for(sA(this,JI);e<r.length-1;e++)sA(this,r[e]),sA(this,eN);sA(this,r[e])}for(sA(this,tN),e=0;e<n.length;e++)sA(this,n[e]);sA(this,nN),n.length=0,r.length=0}}function aN(e){if(0===e.state){e.state=1;var t=e.props;for(TC(KI,{rel:"preload",as:"style",href:e.props.href,crossOrigin:t.crossOrigin,fetchPriority:t.fetchPriority,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy}),e=0;e<KI.length;e++)sA(this,KI[e]);KI.length=0}}function oN(e){e.sheets.forEach(aN,this),e.sheets.clear()}var iN=pA("["),sN=pA(",["),lN=pA(","),cN=pA("]");function uN(e,t,n){var r=t.toLowerCase();switch(typeof n){case"function":case"symbol":return}switch(t){case"innerHTML":case"dangerouslySetInnerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"style":case"ref":return;case"className":r="class",t=""+n;break;case"hidden":if(!1===n)return;t="";break;case"src":case"href":t=""+(n=AA(n));break;default:if(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])||!vA(t))return;t=""+n}sA(e,lN),sA(e,dA(zI(r))),sA(e,lN),sA(e,dA(zI(t)))}function dN(){return{styles:new Set,stylesheets:new Set}}function pN(e,t){null==e.crossOrigin&&(e.crossOrigin=t[0]),null==e.integrity&&(e.integrity=t[1])}function fN(e,t,n){for(var r in t="<"+(e=(""+e).replace(hN,mN))+'>; rel=preload; as="'+(t=(""+t).replace(gN,yN))+'"',n)mA.call(n,r)&&("string"==typeof(e=n[r])&&(t+="; "+r.toLowerCase()+'="'+(""+e).replace(gN,yN)+'"'));return t}var hN=/[<>\r\n]/g;function mN(e){switch(e){case"<":return"%3C";case">":return"%3E";case"\n":return"%0A";case"\r":return"%0D";default:throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}var gN=/["';,\r\n]/g;function yN(e){switch(e){case'"':return"%22";case"'":return"%27";case";":return"%3B";case",":return"%2C";case"\n":return"%0A";case"\r":return"%0D";default:throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function bN(e){this.styles.add(e)}function vN(e){this.stylesheets.add(e)}var kN=Function.prototype.bind,wN=Symbol.for("react.client.reference");function EN(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===wN?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case L_:return"Fragment";case P_:return"Portal";case M_:return"Profiler";case D_:return"StrictMode";case j_:return"Suspense";case U_:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case z_:return(e.displayName||"Context")+".Provider";case B_:return(e._context.displayName||"Context")+".Consumer";case H_:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case $_:return null!==(t=e.displayName||null)?t:EN(e.type)||"Memo";case G_:t=e._payload,e=e._init;try{return EN(e(t))}catch(n){}}return null}var SN={},TN=null;function xN(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(R_(401))}else{if(null===n)throw Error(R_(401));xN(e,n)}t.context._currentValue=t.value}}function _N(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&_N(e)}function AN(e){var t=e.parent;null!==t&&AN(t),e.context._currentValue=e.value}function CN(e,t){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(R_(402));e.depth===t.depth?xN(e,t):CN(e,t)}function IN(e,t){var n=t.parent;if(null===n)throw Error(R_(402));e.depth===n.depth?xN(e,n):IN(e,n),t.context._currentValue=t.value}function NN(e){var t=TN;t!==e&&(null===t?AN(e):null===e?_N(t):t.depth===e.depth?xN(t,e):t.depth>e.depth?CN(t,e):IN(t,e),TN=e)}var RN={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}},ON={id:1,overflow:""};function PN(e,t,n){var r=e.id;e=e.overflow;var a=32-LN(r)-1;r&=~(1<<a),n+=1;var o=32-LN(t)+a;if(30<o){var i=a-a%5;return o=(r&(1<<i)-1).toString(32),r>>=i,a-=i,{id:1<<32-LN(t)+a|n<<a|r,overflow:o+e}}return{id:1<<o|n<<a|r,overflow:e}}var LN=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(DN(e)/MN|0)|0},DN=Math.log,MN=Math.LN2;var FN=Error(R_(460));function BN(){}var zN=null;function HN(){if(null===zN)throw Error(R_(459));var e=zN;return zN=null,e}var jN="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},UN=null,$N=null,GN=null,VN=null,WN=null,qN=null,YN=!1,XN=!1,KN=0,QN=0,ZN=-1,JN=0,eR=null,tR=null,nR=0;function rR(){if(null===UN)throw Error(R_(321));return UN}function aR(){if(0<nR)throw Error(R_(312));return{memoizedState:null,queue:null,next:null}}function oR(){return null===qN?null===WN?(YN=!1,WN=qN=aR()):(YN=!0,qN=WN):null===qN.next?(YN=!1,qN=qN.next=aR()):(YN=!0,qN=qN.next),qN}function iR(){var e=eR;return eR=null,e}function sR(){VN=GN=$N=UN=null,XN=!1,WN=null,nR=0,qN=tR=null}function lR(e,t){return"function"==typeof t?t(e):t}function cR(e,t,n){if(UN=rR(),qN=oR(),YN){var r=qN.queue;if(t=r.dispatch,null!==tR&&void 0!==(n=tR.get(r))){tR.delete(r),r=qN.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return qN.memoizedState=r,[r,t]}return[qN.memoizedState,t]}return e=e===lR?"function"==typeof t?t():t:void 0!==n?n(t):t,qN.memoizedState=e,e=(e=qN.queue={last:null,dispatch:null}).dispatch=dR.bind(null,UN,e),[qN.memoizedState,e]}function uR(e,t){if(UN=rR(),t=void 0===t?null:t,null!==(qN=oR())){var n=qN.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var a=0;a<r.length&&a<t.length;a++)if(!jN(t[a],r[a])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),qN.memoizedState=[e,t],e}function dR(e,t,n){if(25<=nR)throw Error(R_(301));if(e===UN)if(XN=!0,e={action:n,next:null},null===tR&&(tR=new Map),void 0===(n=tR.get(t)))tR.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function pR(){throw Error(R_(394))}function fR(){throw Error(R_(479))}function hR(e,t,n){rR();var r=QN++,a=GN;if("function"==typeof e.$$FORM_ACTION){var o=null,i=VN;a=a.formState;var s=e.$$IS_SIGNATURE_EQUAL;if(null!==a&&"function"==typeof s){var l=a[1];s.call(e,a[2],a[3])&&(l===(o=void 0!==n?"p"+n:"k"+Z_(JSON.stringify([i,null,r]),0))&&(ZN=r,t=a[0]))}var c=e.bind(null,t);return e=function(e){c(e)},"function"==typeof c.$$FORM_ACTION&&(e.$$FORM_ACTION=function(e){e=c.$$FORM_ACTION(e),void 0!==n&&(n+="",e.action=n);var t=e.data;return t&&(null===o&&(o=void 0!==n?"p"+n:"k"+Z_(JSON.stringify([i,null,r]),0)),t.append("$ACTION_KEY",o)),e}),[t,e,!1]}var u=e.bind(null,t);return[t,function(e){u(e)},!1]}function mR(e){var t=JN;return JN+=1,null===eR&&(eR=[]),function(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(BN,BN),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch("string"==typeof t.status?t.then(BN,BN):((e=t).status="pending",e.then((function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}}),(function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}}))),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}throw zN=t,FN}}(eR,e,t)}function gR(){throw Error(R_(393))}function yR(){}var bR={readContext:function(e){return e._currentValue},use:function(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return mR(e);if(e.$$typeof===z_)return e._currentValue}throw Error(R_(438,String(e)))},useContext:function(e){return rR(),e._currentValue},useMemo:uR,useReducer:cR,useRef:function(e){UN=rR();var t=(qN=oR()).memoizedState;return null===t?(e={current:e},qN.memoizedState=e):t},useState:function(e){return cR(lR,e)},useInsertionEffect:yR,useLayoutEffect:yR,useCallback:function(e,t){return uR((function(){return e}),t)},useImperativeHandle:yR,useEffect:yR,useDebugValue:yR,useDeferredValue:function(e,t){return rR(),void 0!==t?t:e},useTransition:function(){return rR(),[!1,pR]},useId:function(){var e=$N.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-LN(e)-1)).toString(32)+t;var n=wR;if(null===n)throw Error(R_(404));return t=KN++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(R_(407));return n()},useCacheRefresh:function(){return gR},useMemoCache:function(e){for(var t=Array(e),n=0;n<e;n++)t[n]=X_;return t},useHostTransitionStatus:function(){return rR(),NA},useOptimistic:function(e){return rR(),[e,fR]}};bR.useFormState=hR,bR.useActionState=hR;var vR,kR,wR=null,ER={getCacheForType:function(){throw Error(R_(248))}};function SR(e){if(void 0===vR)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);vR=t&&t[1]||"",kR=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+vR+e+kR}var TR=!1;function xR(e,t){if(!e||TR)return"";TR=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(a){var r=a}Reflect.construct(e,[],n)}else{try{n.call()}catch(o){r=o}e.call(n.prototype)}}else{try{throw Error()}catch(i){r=i}(n=e())&&"function"==typeof n.catch&&n.catch((function(){}))}}catch(s){if(s&&r&&"string"==typeof s.stack)return[s.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=r.DetermineComponentFrameRoot(),i=o[0],s=o[1];if(i&&s){var l=i.split("\n"),c=s.split("\n");for(a=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;a<c.length&&!c[a].includes("DetermineComponentFrameRoot");)a++;if(r===l.length||a===c.length)for(r=l.length-1,a=c.length-1;1<=r&&0<=a&&l[r]!==c[a];)a--;for(;1<=r&&0<=a;r--,a--)if(l[r]!==c[a]){if(1!==r||1!==a)do{if(r--,0>--a||l[r]!==c[a]){var u="\n"+l[r].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=r&&0<=a);break}}}finally{TR=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?SR(n):""}function _R(e){if("string"==typeof e)return SR(e);if("function"==typeof e)return e.prototype&&e.prototype.isReactComponent?e=xR(e,!0):xR(e,!1);if("object"==typeof e&&null!==e){switch(e.$$typeof){case H_:return xR(e.render,!1);case $_:return xR(e.type,!1);case G_:var t=e,n=t._payload;t=t._init;try{e=t(n)}catch(r){return SR("Lazy")}return _R(e)}if("string"==typeof e.name)return n=e.env,SR(e.name+(n?" ["+n+"]":""))}switch(e){case U_:return SR("SuspenseList");case j_:return SR("Suspense")}return""}function AR(e){if("object"==typeof e&&null!==e&&"string"==typeof e.environmentName){var t=e.environmentName;"string"==typeof(e=[e].slice(0))[0]?e.splice(0,1,"%c%s%c "+e[0],"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+t+" ",""):e.splice(0,0,"%c%s%c ","background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+t+" ",""),e.unshift(console),(t=kN.apply(console.error,e))()}else console.error(e);return null}function CR(){}function IR(e,t,n,r,a,o,i,s,l,c,u){var d=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=e,this.renderState=t,this.rootFormatContext=n,this.progressiveChunkSize=void 0===r?12800:r,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedRootSegment=null,this.abortableTasks=d,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=void 0===a?AR:a,this.onPostpone=void 0===c?CR:c,this.onAllReady=void 0===o?CR:o,this.onShellReady=void 0===i?CR:i,this.onShellError=void 0===s?CR:s,this.onFatalError=void 0===l?CR:l,this.formState=void 0===u?null:u}function NR(e,t,n,r,a,o,i,s,l,c,u,d){return(n=BR(t=new IR(t,n,r,a,o,i,s,l,c,u,d),0,null,r,!1,!1)).parentFlushed=!0,zR(e=MR(t,null,e,-1,null,n,null,t.abortableTasks,null,r,null,ON,null,!1)),t.pingedTasks.push(e),t}var RR,OR,PR=null;function LR(e,t){e.pingedTasks.push(t),1===e.pingedTasks.length&&(e.flushScheduled=null!==e.destination,null!==e.trackedPostpones||10===e.status?aA((function(){return lO(e)})):tA((function(){return lO(e)})))}function DR(e,t){return{status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,completedSegments:[],byteSize:0,fallbackAbortableTasks:t,errorDigest:null,contentState:dN(),fallbackState:dN(),trackedContentKeyPath:null,trackedFallbackNode:null}}function MR(e,t,n,r,a,o,i,s,l,c,u,d,p,f){e.allPendingTasks++,null===a?e.pendingRootTasks++:a.pendingTasks++;var h={replay:null,node:n,childIndex:r,ping:function(){return LR(e,h)},blockedBoundary:a,blockedSegment:o,hoistableState:i,abortSet:s,keyPath:l,formatContext:c,context:u,treeContext:d,componentStack:p,thenableState:t,isFallback:f};return s.add(h),h}function FR(e,t,n,r,a,o,i,s,l,c,u,d,p,f){e.allPendingTasks++,null===o?e.pendingRootTasks++:o.pendingTasks++,n.pendingTasks++;var h={replay:n,node:r,childIndex:a,ping:function(){return LR(e,h)},blockedBoundary:o,blockedSegment:null,hoistableState:i,abortSet:s,keyPath:l,formatContext:c,context:u,treeContext:d,componentStack:p,thenableState:t,isFallback:f};return s.add(h),h}function BR(e,t,n,r,a,o){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],parentFormatContext:r,boundary:n,lastPushedText:a,textEmbedded:o}}function zR(e){var t=e.node;if("object"==typeof t&&null!==t&&t.$$typeof===O_)e.componentStack={parent:e.componentStack,type:t.type}}function HR(e){var t={};return e&&Object.defineProperty(t,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var n="",r=e;do{n+=_R(r.type),r=r.parent}while(r);var a=n}catch(o){a="\nError generating stack: "+o.message+"\n"+o.stack}return Object.defineProperty(t,"componentStack",{value:a}),a}}),t}function jR(e,t,n){if(null==(t=(e=e.onError)(t,n))||"string"==typeof t)return t}function UR(e,t){var n=e.onShellError,r=e.onFatalError;n(t),r(t),null!==e.destination?(e.status=14,fA(e.destination,t)):(e.status=13,e.fatalError=t)}function $R(e,t,n,r,a,o){var i=t.thenableState;for(t.thenableState=null,UN={},$N=t,GN=e,VN=n,QN=KN=0,ZN=-1,JN=0,eR=i,e=r(a,o);XN;)XN=!1,QN=KN=0,ZN=-1,JN=0,nR+=1,qN=null,e=r(a,o);return sR(),e}function GR(e,t,n,r,a,o,i){var s=!1;if(0!==o&&null!==e.formState){var l=t.blockedSegment;if(null!==l){s=!0,l=l.chunks;for(var c=0;c<o;c++)c===i?l.push(EC):l.push(SC)}}o=t.keyPath,t.keyPath=n,a?(n=t.treeContext,t.treeContext=PN(n,1,0),JR(e,t,r,-1),t.treeContext=n):s?JR(e,t,r,-1):qR(e,t,r,-1),t.keyPath=o}function VR(e,t,n,r,a,o){if("function"==typeof r)if(r.prototype&&r.prototype.isReactComponent){var i=a;if("ref"in a)for(var s in i={},a)"ref"!==s&&(i[s]=a[s]);var l=r.defaultProps;if(l)for(var c in i===a&&(i=hA({},i,a)),l)void 0===i[c]&&(i[c]=l[c]);a=i,i=SN,"object"==typeof(l=r.contextType)&&null!==l&&(i=l._currentValue);var u=void 0!==(i=new r(a,i)).state?i.state:null;if(i.updater=RN,i.props=a,i.state=u,l={queue:[],replace:!1},i._reactInternals=l,o=r.contextType,i.context="object"==typeof o&&null!==o?o._currentValue:SN,"function"==typeof(o=r.getDerivedStateFromProps)&&(u=null==(o=o(a,u))?u:hA({},u,o),i.state=u),"function"!=typeof r.getDerivedStateFromProps&&"function"!=typeof i.getSnapshotBeforeUpdate&&("function"==typeof i.UNSAFE_componentWillMount||"function"==typeof i.componentWillMount))if(r=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),r!==i.state&&RN.enqueueReplaceState(i,i.state,null),null!==l.queue&&0<l.queue.length)if(r=l.queue,o=l.replace,l.queue=null,l.replace=!1,o&&1===r.length)i.state=r[0];else{for(l=o?r[0]:i.state,u=!0,o=o?1:0;o<r.length;o++)null!=(c="function"==typeof(c=r[o])?c.call(i,l,a,void 0):c)&&(u?(u=!1,l=hA({},l,c)):hA(l,c));i.state=l}else l.queue=null;if(r=i.render(),12===e.status)throw null;a=t.keyPath,t.keyPath=n,qR(e,t,r,-1),t.keyPath=a}else{if(r=$R(e,t,n,r,a,void 0),12===e.status)throw null;GR(e,t,n,r,0!==KN,QN,ZN)}else{if("string"!=typeof r){switch(r){case Y_:case W_:case D_:case M_:case L_:return r=t.keyPath,t.keyPath=n,qR(e,t,a.children,-1),void(t.keyPath=r);case q_:return void("hidden"!==a.mode&&(r=t.keyPath,t.keyPath=n,qR(e,t,a.children,-1),t.keyPath=r));case U_:return r=t.keyPath,t.keyPath=n,qR(e,t,a.children,-1),void(t.keyPath=r);case V_:throw Error(R_(343));case j_:e:if(null!==t.replay){r=t.keyPath,t.keyPath=n,n=a.children;try{JR(e,t,n,-1)}finally{t.keyPath=r}}else{r=t.keyPath;var d=t.blockedBoundary,p=t.hoistableState;o=t.blockedSegment,c=a.fallback,a=a.children;var f=new Set;s=DR(0,f),null!==e.trackedPostpones&&(s.trackedContentKeyPath=n);var h=BR(0,o.chunks.length,s,t.formatContext,!1,!1);o.children.push(h),o.lastPushedText=!1;var m=BR(0,0,null,t.formatContext,!1,!1);if(m.parentFlushed=!0,null!==e.trackedPostpones){l=[(i=[n[0],"Suspense Fallback",n[2]])[1],i[2],[],null],e.trackedPostpones.workingMap.set(i,l),s.trackedFallbackNode=l,t.blockedSegment=h,t.keyPath=i,h.status=6;try{JR(e,t,c,-1),h.lastPushedText&&h.textEmbedded&&h.chunks.push(KA),h.status=1}catch(g){throw h.status=12===e.status?3:4,g}finally{t.blockedSegment=o,t.keyPath=r}zR(t=MR(e,null,a,-1,s,m,s.contentState,t.abortSet,n,t.formatContext,t.context,t.treeContext,t.componentStack,t.isFallback)),e.pingedTasks.push(t)}else{t.blockedBoundary=s,t.hoistableState=s.contentState,t.blockedSegment=m,t.keyPath=n,m.status=6;try{if(JR(e,t,a,-1),m.lastPushedText&&m.textEmbedded&&m.chunks.push(KA),m.status=1,iO(s,m),0===s.pendingTasks&&0===s.status){s.status=1;break e}}catch(y){s.status=4,12===e.status?(m.status=3,i=e.fatalError):(m.status=4,i=y),u=jR(e,i,l=HR(t.componentStack)),s.errorDigest=u,KR(e,s)}finally{t.blockedBoundary=d,t.hoistableState=p,t.blockedSegment=o,t.keyPath=r}zR(t=MR(e,null,c,-1,d,h,s.fallbackState,f,[n[0],"Suspense Fallback",n[2]],t.formatContext,t.context,t.treeContext,t.componentStack,!0)),e.pingedTasks.push(t)}}return}if("object"==typeof r&&null!==r)switch(r.$$typeof){case H_:if("ref"in a)for(h in i={},a)"ref"!==h&&(i[h]=a[h]);else i=a;return void GR(e,t,n,r=$R(e,t,n,r.render,i,o),0!==KN,QN,ZN);case $_:return void VR(e,t,n,r.type,a,o);case F_:case z_:if(l=a.children,i=t.keyPath,a=a.value,u=r._currentValue,r._currentValue=a,TN=r={parent:o=TN,depth:null===o?0:o.depth+1,context:r,parentValue:u,value:a},t.context=r,t.keyPath=n,qR(e,t,l,-1),null===(e=TN))throw Error(R_(403));return e.context._currentValue=e.parentValue,e=TN=e.parent,t.context=e,void(t.keyPath=i);case B_:return r=(a=a.children)(r._context._currentValue),a=t.keyPath,t.keyPath=n,qR(e,t,r,-1),void(t.keyPath=a);case G_:if(r=(i=r._init)(r._payload),12===e.status)throw null;return void VR(e,t,n,r,a,o)}throw Error(R_(130,null==r?r:typeof r,""))}if(null===(i=t.blockedSegment))i=a.children,l=t.formatContext,u=t.keyPath,t.formatContext=XA(l,r,a),t.keyPath=n,JR(e,t,i,-1),t.formatContext=l,t.keyPath=u;else{u=MC(i.chunks,r,a,e.resumableState,e.renderState,t.hoistableState,t.formatContext,i.lastPushedText,t.isFallback),i.lastPushedText=!1,l=t.formatContext,o=t.keyPath,t.formatContext=XA(l,r,a),t.keyPath=n,JR(e,t,u,-1),t.formatContext=l,t.keyPath=o;e:{switch(t=i.chunks,e=e.resumableState,r){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break e;case"body":if(1>=l.insertionMode){e.hasBody=!0;break e}break;case"html":if(0===l.insertionMode){e.hasHtml=!0;break e}}t.push(BC(r))}i.lastPushedText=!1}}}function WR(e,t,n,r,a){var o=t.replay,i=t.blockedBoundary,s=BR(0,0,null,t.formatContext,!1,!1);s.id=n,s.parentFlushed=!0;try{t.replay=null,t.blockedSegment=s,JR(e,t,r,a),s.status=1,null===i?e.completedRootSegment=s:(iO(i,s),i.parentFlushed&&e.partialBoundaries.push(i))}finally{t.replay=o,t.blockedSegment=null}}function qR(e,t,n,r){null!==t.replay&&"number"==typeof t.replay.slots?WR(e,t,t.replay.slots,n,r):(t.node=n,t.childIndex=r,n=t.componentStack,zR(t),YR(e,t),t.componentStack=n)}function YR(e,t){var n=t.node,r=t.childIndex;if(null!==n){if("object"==typeof n){switch(n.$$typeof){case O_:var a=n.type,o=n.key,i=n.props,s=void 0!==(n=i.ref)?n:null,l=EN(a),c=null==o?-1===r?0:r:o;if(o=[t.keyPath,l,c],null!==t.replay)e:{var u=t.replay;for(r=u.nodes,n=0;n<r.length;n++){var d=r[n];if(c===d[1]){if(4===d.length){if(null!==l&&l!==d[0])throw Error(R_(490,d[0],l));var p=d[2];l=d[3],c=t.node,t.replay={nodes:p,slots:l,pendingTasks:1};try{if(VR(e,t,o,a,i,s),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(R_(488));t.replay.pendingTasks--}catch(k){if("object"==typeof k&&null!==k&&(k===FN||"function"==typeof k.then))throw t.node===c&&(t.replay=u),k;t.replay.pendingTasks--,i=HR(t.componentStack),tO(e,o=t.blockedBoundary,p,l,a=k,i=jR(e,a,i))}t.replay=u}else{if(a!==j_)throw Error(R_(490,"Suspense",EN(a)||"Unknown"));t:{u=void 0,a=d[5],s=d[2],l=d[3],c=null===d[4]?[]:d[4][2],d=null===d[4]?null:d[4][3];var f=t.keyPath,h=t.replay,m=t.blockedBoundary,g=t.hoistableState,y=i.children;i=i.fallback;var b=new Set,v=DR(0,b);v.parentFlushed=!0,v.rootSegmentID=a,t.blockedBoundary=v,t.hoistableState=v.contentState,t.keyPath=o,t.replay={nodes:s,slots:l,pendingTasks:1};try{if(JR(e,t,y,-1),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(R_(488));if(t.replay.pendingTasks--,0===v.pendingTasks&&0===v.status){v.status=1,e.completedBoundaries.push(v);break t}}catch(w){v.status=4,u=jR(e,w,p=HR(t.componentStack)),v.errorDigest=u,t.replay.pendingTasks--,e.clientRenderedBoundaries.push(v)}finally{t.blockedBoundary=m,t.hoistableState=g,t.replay=h,t.keyPath=f}zR(t=FR(e,null,{nodes:c,slots:d,pendingTasks:0},i,-1,m,v.fallbackState,b,[o[0],"Suspense Fallback",o[2]],t.formatContext,t.context,t.treeContext,t.componentStack,!0)),e.pingedTasks.push(t)}}r.splice(n,1);break e}}}else VR(e,t,o,a,i,s);return;case P_:throw Error(R_(257));case G_:if(n=(p=n._init)(n._payload),12===e.status)throw null;return void qR(e,t,n,r)}if(Q_(n))return void XR(e,t,n,r);if(null===n||"object"!=typeof n?p=null:p="function"==typeof(p=K_&&n[K_]||n["@@iterator"])?p:null,p&&(p=p.call(n))){if(!(n=p.next()).done){i=[];do{i.push(n.value),n=p.next()}while(!n.done);XR(e,t,i,r)}return}if("function"==typeof n.then)return t.thenableState=null,qR(e,t,mR(n),r);if(n.$$typeof===z_)return qR(e,t,n._currentValue,r);throw r=Object.prototype.toString.call(n),Error(R_(31,"[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r))}"string"==typeof n?null!==(r=t.blockedSegment)&&(r.lastPushedText=QA(r.chunks,n,e.renderState,r.lastPushedText)):"number"!=typeof n&&"bigint"!=typeof n||null!==(r=t.blockedSegment)&&(r.lastPushedText=QA(r.chunks,""+n,e.renderState,r.lastPushedText))}}function XR(e,t,n,r){var a=t.keyPath;if(-1===r||(t.keyPath=[t.keyPath,"Fragment",r],null===t.replay)){if(o=t.treeContext,i=n.length,null!==t.replay&&(null!==(s=t.replay.slots)&&"object"==typeof s)){for(r=0;r<i;r++)l=n[r],t.treeContext=PN(o,i,r),"number"==typeof(c=s[r])?(WR(e,t,c,l,r),delete s[r]):JR(e,t,l,r);return t.treeContext=o,void(t.keyPath=a)}for(s=0;s<i;s++)r=n[s],t.treeContext=PN(o,i,s),JR(e,t,r,s);t.treeContext=o,t.keyPath=a}else{for(var o=t.replay,i=o.nodes,s=0;s<i.length;s++){var l=i[s];if(l[1]===r){r=l[2],l=l[3],t.replay={nodes:r,slots:l,pendingTasks:1};try{if(XR(e,t,n,-1),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(R_(488));t.replay.pendingTasks--}catch(u){if("object"==typeof u&&null!==u&&(u===FN||"function"==typeof u.then))throw u;t.replay.pendingTasks--,n=HR(t.componentStack);var c=t.blockedBoundary;tO(e,c,r,l,u,n=jR(e,u,n))}t.replay=o,i.splice(s,1);break}}t.keyPath=a}}function KR(e,t){null!==(e=e.trackedPostpones)&&(null!==(t=t.trackedContentKeyPath)&&(void 0!==(t=e.workingMap.get(t))&&(t.length=4,t[2]=[],t[3]=null)))}function QR(e,t,n){return FR(e,n,t.replay,t.node,t.childIndex,t.blockedBoundary,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.componentStack,t.isFallback)}function ZR(e,t,n){var r=t.blockedSegment,a=BR(0,r.chunks.length,null,t.formatContext,r.lastPushedText,!0);return r.children.push(a),r.lastPushedText=!1,MR(e,n,t.node,t.childIndex,t.blockedBoundary,a,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.componentStack,t.isFallback)}function JR(e,t,n,r){var a=t.formatContext,o=t.context,i=t.keyPath,s=t.treeContext,l=t.componentStack,c=t.blockedSegment;if(null===c)try{return qR(e,t,n,r)}catch(p){if(sR(),"object"==typeof(n=p===FN?HN():p)&&null!==n){if("function"==typeof n.then)return e=QR(e,t,r=iR()).ping,n.then(e,e),t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,t.componentStack=l,void NN(o);if("Maximum call stack size exceeded"===n.message)return n=QR(e,t,n=iR()),e.pingedTasks.push(n),t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,t.componentStack=l,void NN(o)}}else{var u=c.children.length,d=c.chunks.length;try{return qR(e,t,n,r)}catch(f){if(sR(),c.children.length=u,c.chunks.length=d,"object"==typeof(n=f===FN?HN():f)&&null!==n){if("function"==typeof n.then)return e=ZR(e,t,r=iR()).ping,n.then(e,e),t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,t.componentStack=l,void NN(o);if("Maximum call stack size exceeded"===n.message)return n=ZR(e,t,n=iR()),e.pingedTasks.push(n),t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,t.componentStack=l,void NN(o)}}}throw t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,NN(o),n}function eO(e){var t=e.blockedBoundary;null!==(e=e.blockedSegment)&&(e.status=3,sO(this,t,e))}function tO(e,t,n,r,a,o){for(var i=0;i<n.length;i++){var s=n[i];if(4===s.length)tO(e,t,s[2],s[3],a,o);else{s=s[5];var l=e,c=o,u=DR(0,new Set);u.parentFlushed=!0,u.rootSegmentID=s,u.status=4,u.errorDigest=c,u.parentFlushed&&l.clientRenderedBoundaries.push(u)}}if(n.length=0,null!==r){if(null===t)throw Error(R_(487));if(4!==t.status&&(t.status=4,t.errorDigest=o,t.parentFlushed&&e.clientRenderedBoundaries.push(t)),"object"==typeof r)for(var d in r)delete r[d]}}function nO(e,t,n){var r=e.blockedBoundary,a=e.blockedSegment;if(null!==a){if(6===a.status)return;a.status=3}if(a=HR(e.componentStack),null===r){if(13!==t.status&&14!==t.status){if(null===(r=e.replay))return jR(t,n,a),void UR(t,n);r.pendingTasks--,0===r.pendingTasks&&0<r.nodes.length&&(e=jR(t,n,a),tO(t,null,r.nodes,r.slots,n,e)),t.pendingRootTasks--,0===t.pendingRootTasks&&aO(t)}}else r.pendingTasks--,4!==r.status&&(r.status=4,e=jR(t,n,a),r.status=4,r.errorDigest=e,KR(t,r),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach((function(e){return nO(e,t,n)})),r.fallbackAbortableTasks.clear();t.allPendingTasks--,0===t.allPendingTasks&&oO(t)}function rO(e,t){try{var n=e.renderState,r=n.onHeaders;if(r){var a=n.headers;if(a){n.headers=null;var o=a.preconnects;if(a.fontPreloads&&(o&&(o+=", "),o+=a.fontPreloads),a.highImagePreloads&&(o&&(o+=", "),o+=a.highImagePreloads),!t){var i=n.styles.values(),s=i.next();e:for(;0<a.remainingCapacity&&!s.done;s=i.next())for(var l=s.value.sheets.values(),c=l.next();0<a.remainingCapacity&&!c.done;c=l.next()){var u=c.value,d=u.props,p=d.href,f=u.props,h=fN(f.href,"style",{crossOrigin:f.crossOrigin,integrity:f.integrity,nonce:f.nonce,type:f.type,fetchPriority:f.fetchPriority,referrerPolicy:f.referrerPolicy,media:f.media});if(!(0<=(a.remainingCapacity-=h.length+2)))break e;n.resets.style[p]=OA,o&&(o+=", "),o+=h,n.resets.style[p]="string"==typeof d.crossOrigin||"string"==typeof d.integrity?[d.crossOrigin,d.integrity]:OA}}r(o?{Link:o}:{})}}}catch(m){jR(e,m,{})}}function aO(e){null===e.trackedPostpones&&rO(e,!0),e.onShellError=CR,(e=e.onShellReady)()}function oO(e){rO(e,null===e.trackedPostpones||(null===e.completedRootSegment||5!==e.completedRootSegment.status)),(e=e.onAllReady)()}function iO(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary&&-1===t.children[0].id){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&iO(e,n)}else e.completedSegments.push(t)}function sO(e,t,n){if(null===t){if(null!==n&&n.parentFlushed){if(null!==e.completedRootSegment)throw Error(R_(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&aO(e)}else t.pendingTasks--,4!==t.status&&(0===t.pendingTasks?(0===t.status&&(t.status=1),null!==n&&n.parentFlushed&&1===n.status&&iO(t,n),t.parentFlushed&&e.completedBoundaries.push(t),1===t.status&&(t.fallbackAbortableTasks.forEach(eO,e),t.fallbackAbortableTasks.clear())):null!==n&&n.parentFlushed&&1===n.status&&(iO(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&oO(e)}function lO(e){if(14!==e.status&&13!==e.status){var t=TN,n=CA.H;CA.H=bR;var r=CA.A;CA.A=ER;var a=PR;PR=e;var o=wR;wR=e.resumableState;try{var i,s=e.pingedTasks;for(i=0;i<s.length;i++){var l=s[i],c=e,u=l.blockedSegment;if(null===u){var d=c;if(0!==l.replay.pendingTasks){NN(l.context);try{if("number"==typeof l.replay.slots?WR(d,l,l.replay.slots,l.node,l.childIndex):YR(d,l),1===l.replay.pendingTasks&&0<l.replay.nodes.length)throw Error(R_(488));l.replay.pendingTasks--,l.abortSet.delete(l),sO(d,l.blockedBoundary,null)}catch(T){sR();var p=T===FN?HN():T;if("object"==typeof p&&null!==p&&"function"==typeof p.then){var f=l.ping;p.then(f,f),l.thenableState=iR()}else{l.replay.pendingTasks--,l.abortSet.delete(l);var h=HR(l.componentStack);c=void 0;var m=d,g=l.blockedBoundary,y=12===d.status?d.fatalError:p;tO(m,g,l.replay.nodes,l.replay.slots,y,c=jR(m,y,h)),d.pendingRootTasks--,0===d.pendingRootTasks&&aO(d),d.allPendingTasks--,0===d.allPendingTasks&&oO(d)}}}}else if(d=void 0,0===(m=u).status){m.status=6,NN(l.context);var b=m.children.length,v=m.chunks.length;try{YR(c,l),m.lastPushedText&&m.textEmbedded&&m.chunks.push(KA),l.abortSet.delete(l),m.status=1,sO(c,l.blockedBoundary,m)}catch(T){sR(),m.children.length=b,m.chunks.length=v;var k=T===FN?HN():12===c.status?c.fatalError:T;if("object"==typeof k&&null!==k&&"function"==typeof k.then){m.status=0,l.thenableState=iR();var w=l.ping;k.then(w,w)}else{var E=HR(l.componentStack);l.abortSet.delete(l),m.status=4;var S=l.blockedBoundary;d=jR(c,k,E),null===S?UR(c,k):(S.pendingTasks--,4!==S.status&&(S.status=4,S.errorDigest=d,KR(c,S),S.parentFlushed&&c.clientRenderedBoundaries.push(S))),c.allPendingTasks--,0===c.allPendingTasks&&oO(c)}}}}s.splice(0,i),null!==e.destination&&hO(e,e.destination)}catch(x){jR(e,x,{}),UR(e,x)}finally{wR=o,CA.H=n,CA.A=r,n===bR&&NN(t),PR=a}}}function cO(e,t,n,r){switch(n.parentFlushed=!0,n.status){case 0:n.id=e.nextSegmentId++;case 5:return r=n.id,n.lastPushedText=!1,n.textEmbedded=!1,e=e.renderState,sA(t,HC),sA(t,e.placeholderPrefix),sA(t,e=dA(r.toString(16))),lA(t,jC);case 1:n.status=2;var a=!0,o=n.chunks,i=0;n=n.children;for(var s=0;s<n.length;s++){for(a=n[s];i<a.index;i++)sA(t,o[i]);a=uO(e,t,a,r)}for(;i<o.length-1;i++)sA(t,o[i]);return i<o.length&&(a=lA(t,o[i])),a;default:throw Error(R_(390))}}function uO(e,t,n,r){var a=n.boundary;if(null===a)return cO(e,t,n,r);if(a.parentFlushed=!0,4===a.status)a=a.errorDigest,lA(t,VC),sA(t,qC),a&&(sA(t,XC),sA(t,dA(SA(a))),sA(t,YC)),lA(t,KC),cO(e,t,n,r);else if(1!==a.status)0===a.status&&(a.rootSegmentID=e.nextSegmentId++),0<a.completedSegments.length&&e.partialBoundaries.push(a),QC(t,e.renderState,a.rootSegmentID),r&&((a=a.fallbackState).styles.forEach(bN,r),a.stylesheets.forEach(vN,r)),cO(e,t,n,r);else if(a.byteSize>e.progressiveChunkSize)a.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(a),QC(t,e.renderState,a.rootSegmentID),cO(e,t,n,r);else{if(r&&((n=a.contentState).styles.forEach(bN,r),n.stylesheets.forEach(vN,r)),lA(t,UC),1!==(n=a.completedSegments).length)throw Error(R_(391));uO(e,t,n[0],r)}return lA(t,WC)}function dO(e,t,n,r){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:case 2:return sA(e,ZC),sA(e,t.segmentPrefix),sA(e,dA(r.toString(16))),lA(e,JC);case 3:return sA(e,tI),sA(e,t.segmentPrefix),sA(e,dA(r.toString(16))),lA(e,nI);case 4:return sA(e,aI),sA(e,t.segmentPrefix),sA(e,dA(r.toString(16))),lA(e,oI);case 5:return sA(e,sI),sA(e,t.segmentPrefix),sA(e,dA(r.toString(16))),lA(e,lI);case 6:return sA(e,uI),sA(e,t.segmentPrefix),sA(e,dA(r.toString(16))),lA(e,dI);case 7:return sA(e,fI),sA(e,t.segmentPrefix),sA(e,dA(r.toString(16))),lA(e,hI);case 8:return sA(e,gI),sA(e,t.segmentPrefix),sA(e,dA(r.toString(16))),lA(e,yI);default:throw Error(R_(397))}}(t,e.renderState,n.parentFormatContext,n.id),uO(e,t,n,r),function(e,t){switch(t.insertionMode){case 0:case 1:case 2:return lA(e,eI);case 3:return lA(e,rI);case 4:return lA(e,iI);case 5:return lA(e,cI);case 6:return lA(e,pI);case 7:return lA(e,mI);case 8:return lA(e,bI);default:throw Error(R_(397))}}(t,n.parentFormatContext)}function pO(e,t,n){for(var r=n.completedSegments,a=0;a<r.length;a++)fO(e,t,n,r[a]);r.length=0,YI(t,n.contentState,e.renderState),r=e.resumableState,e=e.renderState,a=n.rootSegmentID,n=n.contentState;var o=e.stylesToHoist;return e.stylesToHoist=!1,sA(t,e.startInlineScript),o?2&r.instructions?8&r.instructions?sA(t,AI):(r.instructions|=8,sA(t,_I)):(r.instructions|=10,sA(t,xI)):2&r.instructions?sA(t,TI):(r.instructions|=2,sA(t,SI)),r=dA(a.toString(16)),sA(t,e.boundaryPrefix),sA(t,r),sA(t,CI),sA(t,e.segmentPrefix),sA(t,r),o?(sA(t,II),function(e,t){sA(e,iN);var n=iN;t.stylesheets.forEach((function(t){if(2!==t.state)if(3===t.state)sA(e,n),sA(e,dA(zI(""+t.props.href))),sA(e,cN),n=sN;else{sA(e,n);var r=t.props["data-precedence"],a=t.props,o=AA(""+t.props.href);for(var i in sA(e,dA(zI(o))),r=""+r,sA(e,lN),sA(e,dA(zI(r))),a)if(mA.call(a,i)&&null!=(r=a[i]))switch(i){case"href":case"rel":case"precedence":case"data-precedence":break;case"children":case"dangerouslySetInnerHTML":throw Error(R_(399,"link"));default:uN(e,i,r)}sA(e,cN),n=sN,t.state=3}})),sA(e,cN)}(t,n)):sA(t,NI),n=lA(t,RI),zC(t,e)&&n}function fO(e,t,n,r){if(2===r.status)return!0;var a=n.contentState,o=r.id;if(-1===o){if(-1===(r.id=n.rootSegmentID))throw Error(R_(392));return dO(e,t,r,a)}return o===n.rootSegmentID?dO(e,t,r,a):(dO(e,t,r,a),n=e.resumableState,sA(t,(e=e.renderState).startInlineScript),1&n.instructions?sA(t,kI):(n.instructions|=1,sA(t,vI)),sA(t,e.segmentPrefix),sA(t,o=dA(o.toString(16))),sA(t,wI),sA(t,e.placeholderPrefix),sA(t,o),t=lA(t,EI))}function hO(e,t){oA=new Uint8Array(2048),iA=0;try{if(!(0<e.pendingRootTasks)){var n,r=e.completedRootSegment;if(null!==r){if(5===r.status)return;var a,o=e.renderState,i=o.htmlChunks,s=o.headChunks;if(i){for(a=0;a<i.length;a++)sA(t,i[a]);if(s)for(a=0;a<s.length;a++)sA(t,s[a]);else sA(t,LC("head")),sA(t,gC)}else if(s)for(a=0;a<s.length;a++)sA(t,s[a]);var l=o.charsetChunks;for(a=0;a<l.length;a++)sA(t,l[a]);l.length=0,o.preconnects.forEach(XI,t),o.preconnects.clear();var c=o.viewportChunks;for(a=0;a<c.length;a++)sA(t,c[a]);c.length=0,o.fontPreloads.forEach(XI,t),o.fontPreloads.clear(),o.highImagePreloads.forEach(XI,t),o.highImagePreloads.clear(),o.styles.forEach(rN,t);var u=o.importMapChunks;for(a=0;a<u.length;a++)sA(t,u[a]);u.length=0,o.bootstrapScripts.forEach(XI,t),o.scripts.forEach(XI,t),o.scripts.clear(),o.bulkPreloads.forEach(XI,t),o.bulkPreloads.clear();var d=o.hoistableChunks;for(a=0;a<d.length;a++)sA(t,d[a]);d.length=0,i&&null===s&&sA(t,BC("head")),uO(e,t,r,null),e.completedRootSegment=null,zC(t,e.renderState)}var p=e.renderState;r=0;var f=p.viewportChunks;for(r=0;r<f.length;r++)sA(t,f[r]);f.length=0,p.preconnects.forEach(XI,t),p.preconnects.clear(),p.fontPreloads.forEach(XI,t),p.fontPreloads.clear(),p.highImagePreloads.forEach(XI,t),p.highImagePreloads.clear(),p.styles.forEach(oN,t),p.scripts.forEach(XI,t),p.scripts.clear(),p.bulkPreloads.forEach(XI,t),p.bulkPreloads.clear();var h=p.hoistableChunks;for(r=0;r<h.length;r++)sA(t,h[r]);h.length=0;var m=e.clientRenderedBoundaries;for(n=0;n<m.length;n++){var g=m[n];p=t;var y=e.resumableState,b=e.renderState,v=g.rootSegmentID,k=g.errorDigest;sA(p,b.startInlineScript),4&y.instructions?sA(p,PI):(y.instructions|=4,sA(p,OI)),sA(p,b.boundaryPrefix),sA(p,dA(v.toString(16))),sA(p,LI),k&&(sA(p,DI),sA(p,dA((C=k||"",JSON.stringify(C).replace(FI,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))))));var w=lA(p,MI);if(!w)return e.destination=null,n++,void m.splice(0,n)}m.splice(0,n);var E=e.completedBoundaries;for(n=0;n<E.length;n++)if(!pO(e,t,E[n]))return e.destination=null,n++,void E.splice(0,n);E.splice(0,n),cA(t),oA=new Uint8Array(2048),iA=0;var S=e.partialBoundaries;for(n=0;n<S.length;n++){var T=S[n];e:{m=e,g=t;var x=T.completedSegments;for(w=0;w<x.length;w++)if(!fO(m,g,T,x[w])){w++,x.splice(0,w);var _=!1;break e}x.splice(0,w),_=YI(g,T.contentState,m.renderState)}if(!_)return e.destination=null,n++,void S.splice(0,n)}S.splice(0,n);var A=e.completedBoundaries;for(n=0;n<A.length;n++)if(!pO(e,t,A[n]))return e.destination=null,n++,void A.splice(0,n);A.splice(0,n)}}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length?(e.flushScheduled=!1,(n=e.resumableState).hasBody&&sA(t,BC("body")),n.hasHtml&&sA(t,BC("html")),cA(t),e.status=14,t.close(),e.destination=null):cA(t)}var C}function mO(e){e.flushScheduled=null!==e.destination,aA((function(){return lO(e)})),tA((function(){10===e.status&&(e.status=11),null===e.trackedPostpones&&rO(e,0===e.pendingRootTasks)}))}function gO(e){!1===e.flushScheduled&&0===e.pingedTasks.length&&null!==e.destination&&(e.flushScheduled=!0,tA((function(){var t=e.destination;t?hO(e,t):e.flushScheduled=!1})))}function yO(e,t){if(13===e.status)e.status=14,fA(t,e.fatalError);else if(14!==e.status&&null===e.destination){e.destination=t;try{hO(e,t)}catch(n){jR(e,n,{}),UR(e,n)}}}function bO(e,t){11!==e.status&&10!==e.status||(e.status=12);try{var n=e.abortableTasks;if(0<n.size){var r=void 0===t?Error(R_(432)):"object"==typeof t&&null!==t&&"function"==typeof t.then?Error(R_(530)):t;e.fatalError=r,n.forEach((function(t){return nO(t,e,r)})),n.clear()}null!==e.destination&&hO(e,e.destination)}catch(a){jR(e,a,{}),UR(e,a)}}function vO(){var e=I_.version;if("19.0.0"!==e)throw Error(R_(527,e,"19.0.0"))}vO(),vO(),C_.prerender=function(e,t){return new Promise((function(n,r){var a,o=t?t.onHeaders:void 0;o&&(a=function(e){o(new Headers(e))});var i=WA(t?t.identifierPrefix:void 0,t&&t.unstable_externalRuntimeSrc,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),s=function(e,t,n,r,a,o,i,s,l,c,u){return(e=NR(e,t,n,r,a,o,i,s,l,c,u,void 0)).trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},e}(e,i,VA(i,void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,a,t?t.maxHeadersLength:void 0),YA(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,(function(){var e={prelude:new ReadableStream({type:"bytes",pull:function(e){yO(s,e)},cancel:function(e){s.destination=null,bO(s,e)}},{highWaterMark:0})};n(e)}),void 0,void 0,r,t?t.onPostpone:void 0);if(t&&t.signal){var l=t.signal;if(l.aborted)bO(s,l.reason);else{var c=function(){bO(s,l.reason),l.removeEventListener("abort",c)};l.addEventListener("abort",c)}}mO(s)}))},C_.renderToReadableStream=function(e,t){return new Promise((function(n,r){var a,o,i,s=new Promise((function(e,t){o=e,a=t})),l=t?t.onHeaders:void 0;l&&(i=function(e){l(new Headers(e))});var c=WA(t?t.identifierPrefix:void 0,t&&t.unstable_externalRuntimeSrc,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),u=NR(e,c,VA(c,t?t.nonce:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,i,t?t.maxHeadersLength:void 0),YA(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,o,(function(){var e=new ReadableStream({type:"bytes",pull:function(e){yO(u,e)},cancel:function(e){u.destination=null,bO(u,e)}},{highWaterMark:0});e.allReady=s,n(e)}),(function(e){s.catch((function(){})),r(e)}),a,t?t.onPostpone:void 0,t?t.formState:void 0);if(t&&t.signal){var d=t.signal;if(d.aborted)bO(u,d.reason);else{var p=function(){bO(u,d.reason),d.removeEventListener("abort",p)};d.addEventListener("abort",p)}}mO(u)}))},C_.version="19.0.0",OR=C_,(RR=zE).version;var kO=RR.renderToString;function wO({children:e="",...t}){let n="";return W.isValidElement(e)?n=kO(e):"string"==typeof e&&(n=e),jf.jsx("template",{...t,dangerouslySetInnerHTML:{__html:n}})}function EO({root:e,children:t=null}){return re.createPortal(t,e)}function SO(e){return V.forwardRef((({mode:t="open",delegatesFocus:n=!1,styleSheets:r=[],ssr:a=!1,children:o=null,...i},s)=>{const l=function(e){const t=V.useRef(null==e?void 0:e.current);return V.useEffect((()=>{e&&(e.current=t.current)}),[e]),t}(s),[c,u]=V.useState(null),d=`node_${t}${n}`;return V.useLayoutEffect((()=>{if(l.current)try{if("function"==typeof s&&s(l.current),a){const{shadowRoot:e}=l.current;return void u(e)}const e=l.current.attachShadow({mode:t,delegatesFocus:n});r.length>0&&(e.adoptedStyleSheets=r),u(e)}catch(e){!function({error:e,styleSheets:t,root:n}){if("NotSupportedError"!==(null==e?void 0:e.name))throw e;t.length>0&&n&&(n.adoptedStyleSheets=t)}({error:e,styleSheets:r,root:c})}}),[s,l,r]),jf.jsx(e.tag,{ref:l,...i,children:(c||a)&&jf.jsx(BE.Provider,{value:c,children:a?jf.jsx(wO,{shadowroot:t,shadowrootmode:t,children:e.render({root:c,ssr:a,children:o})}):jf.jsx(EO,{root:c,children:e.render({root:c,ssr:a,children:o})})})},d)}))}RR.renderToStaticMarkup,OR.renderToReadableStream,OR.resume&&OR.resume;const TO=new Map;const xO=function(e={},t="core",n=({children:e})=>e){return new Proxy(e,{get:function(e,r){const a=FE.decamelize(r,{separator:"-"}),o=`${t}-${a}`;if(!TO.has(o)){const e=SO({tag:a,render:n});TO.set(o,e)}return TO.get(o)}})}();var _O=Boolean(null==globalThis?void 0:globalThis.document)?V.useLayoutEffect:()=>{},AO=q["useId".toString()]||(()=>{}),CO=0;function IO(e){const[t,n]=V.useState(AO());return _O((()=>{n((e=>e??String(CO++)))}),[e]),t?`radix-${t}`:""}const NO=V.createContext(void 0),RO=()=>V.useContext(NO);function OO({wrapperStyles:e={},children:t,customStyles:n,styles:r}){const[a,o]=V.useState(null),[i,s]=V.useState(null),l=V.useMemo((()=>({shadowHost:a,rootElement:i})),[a,i]),c=IO(),u=xO.div;return jf.jsxs(u,{id:`inkeep-shadow${c}`,ref:e=>{e&&o(e)},style:e,children:[jf.jsx("style",{type:"text/css",dangerouslySetInnerHTML:{__html:`@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');\n ${r}`}}),n,jf.jsx("div",{id:"inkeep-widget-root",ref:e=>{e&&s(e)},style:e,children:jf.jsx(NO.Provider,{value:l,children:a&&i&&t})})]})}const PO=e=>RO()?e.children:jf.jsx(OO,{...e}),LO="IntelligentForm",DO={prefix:"ikp",aiChatSettings:bE,baseSettings:vE,searchSettings:{shouldOpenLinksInNewTab:!1,maxResults:40,defaultQuery:"",debounceTimeMs:0,tabs:["All","Publications","PDFs","GitHub","Forums","Discord","Slack","StackOverflow"],placeholder:"Search for anything..."},componentType:"EmbeddedChat"},MO=V.createContext(DO),FO=({children:e,value:t})=>{const n=RO(),r=function(e,t,...n){return n.reduce(((t,n)=>Cf(t,n,e)),t)}(((e,n,r)=>{var a;if("apiKey"!==r||n||(null==(a=null==t?void 0:t.baseSettings)?void 0:a.aiApiBaseUrl)||console.warn("Inkeep API key is missing."),"tools"===r&&Array.isArray(n)){return(e||[]).concat(n)}return["baseSettings","searchSettings","aiChatSettings"].includes(r)&&!n?e:n}),DO,{baseSettings:n??{}},t??{});return jf.jsx(MO.Provider,{value:r,children:e})},BO=()=>{const e=V.useContext(MO);if(!e)throw new Error("useInkeepConfig must be used within a ConfigProvider");return e},zO="conversationId",HO=V.createContext(null),jO=({children:e})=>{const t=function(){const[e,t]=V.useState(void 0),{aiChatSettings:n}=BO(),{shareChatUrlBasePath:r}=n;return V.useEffect((()=>{if(!r||"undefined"==typeof window)return;const e=e=>e.endsWith("/")?e.slice(0,-1):e,n=()=>{const{origin:n,pathname:a,search:o}=window.location,i=new URL(r),s=e(a),l=e(i.pathname);if(n===i.origin&&s===l){const e=new URLSearchParams(o).get(zO);e&&t(e)}};n();const a=()=>n();return window.addEventListener("popstate",a),()=>{window.removeEventListener("popstate",a)}}),[r]),e}(),{aiChatSettings:n}=BO(),r=n.chatId||t,a={id:"",messages:[]},[o,i]=V.useState(a),s=()=>{i(a)},l=V.useMemo((()=>({conversation:o,setConversation:i,chatId:r,resetConversation:s})),[o,r]);return jf.jsx(HO.Provider,{value:l,children:e})},UO=()=>{const e=V.useContext(HO);if(!e)throw new Error("useInkeepConversation must be used within an InkeepConversationProvider");return e};const $O="inkeepUsagePreferences",GO={defaultView:null,inkeepChatSessionId:null},VO={hasSwitchModeButtonJiggled:!1,userId:null,...GO},WO={set(e,t,n,r=365){try{if("cookie"===e){const e=new Date;void 0===n?(e.setTime(e.getTime()-1),document.cookie=`${$O}_${t}=; expires=${e.toUTCString()}; path=/`):(e.setTime(e.getTime()+24*r*60*60*1e3),document.cookie=`${$O}_${t}=${n}; expires=${e.toUTCString()}; path=/`)}else"undefined"!=typeof sessionStorage&&sessionStorage.setItem(`${$O}_${t}`,n?JSON.stringify(n):"")}catch(a){return null}},get(e,t){if("cookie"===e){const e=`${$O}_${t}=`,n=document.cookie.split(";");for(const t of n){const n=t.trim();if(n.startsWith(e))return n.substring(e.length)}return null}try{if("undefined"!=typeof sessionStorage){const e=sessionStorage.getItem(`${$O}_${t}`);return e?JSON.parse(e):null}}catch(n){return null}return null}},qO=()=>{const e=(()=>{try{if("undefined"==typeof localStorage)return!1;const e="__df709c5b-6651-43dc-94e7-d8dc899bf4e8__";return localStorage.setItem(e,"test_value"),localStorage.removeItem(e),!0}catch{return!1}})(),t=(()=>{if("undefined"==typeof document)return!1;document.cookie="testcookie=true; Path=/; Max-Age=1000";const e=document.cookie.includes("testcookie=true");return document.cookie="testcookie=; Path=/; Max-Age=-1000",e})();return e&&t},YO=V.createContext(void 0),XO=({children:e})=>{const{baseSettings:{userProperties:t,privacyPreferences:n}}=BO(),{optOutAllAnalytics:r,optOutAnalyticalCookies:a}=n,{browserStorage:o,setBrowserStorage:i}=(()=>{const{baseSettings:e,componentType:t}=BO(),{optOutAllAnalytics:n,optOutFunctionalCookies:r}=e.privacyPreferences,a=n||r||!qO()?"sessionStorage":"cookie",o=`${e.apiKey}-${t}`,i=e=>e in GO?`${e}-${o}`:e,s=Object.keys(VO).reduce(((e,t)=>{const n=i(t),r=WO.get(a,n);return{...e,[t]:r}}),{...VO}),[l,c]=V.useState(s);return V.useEffect((()=>{if(r)for(const e of Object.keys(VO)){const t=i(e);WO.set("cookie",t,null,-1)}}),[r]),{browserStorage:l,setBrowserStorage:(e,t,n=365)=>{const r=i(e);WO.set(a,r,t,n),c((n=>({...n,[e]:t})))}}})(),s=V.useMemo((()=>qO()),[]),l=V.useMemo((()=>!r&&!a&&s),[r,a,s]),c=V.useMemo((()=>({identificationType:r?"ANONYMOUS":t.id?"ID_PROVIDED":l?"COOKIED":"ANONYMOUS",id:r?void 0:t.id||l&&o.userId||function(e=21){const t=new Uint8Array(e);return crypto.getRandomValues(t),Array.from(t,(e=>e.toString(36))).join("").slice(0,e)}(),email:r?void 0:t.email,cohorts:r?void 0:t.cohorts})),[t,r,l,o.userId]);return V.useEffect((()=>{i("userId",l?c.id:void 0)}),[l,c.id]),jf.jsx(YO.Provider,{value:{userProperties:c},children:e})},KO=()=>{const e=V.useContext(YO);if(!e)throw new Error("useUser must be used within a UserProvider");return e};const QO=V.createContext(void 0),ZO=({children:e})=>{const{baseSettings:t,componentType:n}=BO(),{apiKey:r,analyticsApiBaseUrl:a,tags:o,privacyPreferences:i,env:s}=t,{userProperties:l}=KO(),c=V.useMemo((()=>({widgetLibraryVersion:"0.5.28",componentType:n,tags:o})),[n,o]),u=!i.optOutAllAnalytics&&"development"!==s,d={logEvent:V.useCallback((async e=>{var n;const o={...c,...e.properties},i={eventName:e.eventName,properties:o,userProperties:l};u&&async function(e,t,n){const r=`${n}/events`,a={...e,type:e.eventName};if("searchQuery"in e.properties)a.entityType="search",a.searchQuery=e.properties.searchQuery;else if("messageId"in e.properties)a.entityType="message",a.messageId=e.properties.messageId;else{if(a.entityType="conversation",!e.properties.conversation)return;a.conversationId=e.properties.conversation.id}const o=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`},body:JSON.stringify(a)});if(!o.ok){const e=await o.text();throw new Error(`Failed to log event: ${e}`)}}(i,r,a),null==(n=t.onEvent)||n.call(t,i)}),[u,t,r,a,l,c])};return jf.jsx(QO.Provider,{value:d,children:e})},JO=V.createContext(void 0),eP=({children:e})=>{const{baseSettings:t}=BO(),{apiKey:n,analyticsApiBaseUrl:r,tags:a,privacyPreferences:{optOutAllAnalytics:o},env:i}=t,{userProperties:s}=KO(),{logEvent:l}=(()=>{const e=V.useContext(QO);if(!e)throw new Error("useBaseEvents must be used within a BaseEventsProvider");return e})(),{conversation:c,setConversation:u}=UO(),d=V.useRef(c);V.useEffect((()=>{d.current=c}),[c]);const p=V.useCallback((async e=>{const t=d.current;if(!(!o&&"development"!==i))return;const l=await async function(e,t,n,r){const a=`${r}/conversations`,o={id:e||void 0,type:"openai",...t},i=await fetch(a,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},body:JSON.stringify(o)});if(!i.ok){const e=await i.text();throw new Error(`Failed to log conversation: ${e}`)}return i.json()}(t.id,{messages:e,tags:a,userProperties:s},n,r);return l&&u(l),l}),[r,n,a,s,u,o,i]),f={logEvent:V.useCallback((async(e,t)=>{if(!(!o&&"development"!==i))return;let n=d.current;if(t){const e=await p(t);e&&(n=e)}const r={...e,properties:{conversation:n,...e.properties}};l(r)}),[l,p,o,i]),logConversation:p};return jf.jsx(JO.Provider,{value:f,children:e})},tP=({children:e})=>jf.jsx(ZO,{children:jf.jsx(eP,{children:e})}),nP=(...e)=>(...t)=>{for(const n of e)null==n||n(...t)},rP=e=>"string"==typeof e;function aP(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/([A-Z])([A-Z][a-z])/g,"$1-$2").replace(/__/g,"__").toLowerCase()}const oP=e=>e?"":void 0;function iP(e,t){return"function"==typeof e?e(t):e}var sP=e=>"checkbox"===e.type,lP=e=>e instanceof Date,cP=e=>null==e;const uP=e=>"object"==typeof e;var dP=e=>!cP(e)&&!Array.isArray(e)&&uP(e)&&!lP(e),pP=e=>dP(e)&&e.target?sP(e.target)?e.target.checked:e.target.value:e,fP=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),hP="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function mP(e){let t;const n=Array.isArray(e),r="undefined"!=typeof FileList&&e instanceof FileList;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(hP&&(e instanceof Blob||r)||!n&&!dP(e))return e;if(t=n?[]:{},n||(e=>{const t=e.constructor&&e.constructor.prototype;return dP(t)&&t.hasOwnProperty("isPrototypeOf")})(e))for(const n in e)e.hasOwnProperty(n)&&(t[n]=mP(e[n]));else t=e}return t}var gP=e=>Array.isArray(e)?e.filter(Boolean):[],yP=e=>void 0===e,bP=(e,t,n)=>{if(!t||!dP(e))return n;const r=gP(t.split(/[,[\].]+?/)).reduce(((e,t)=>cP(e)?e:e[t]),e);return yP(r)||r===e?yP(e[t])?n:e[t]:r},vP=e=>"boolean"==typeof e,kP=e=>/^\w*$/.test(e),wP=e=>gP(e.replace(/["|']|\]/g,"").split(/\.|\[/)),EP=(e,t,n)=>{let r=-1;const a=kP(t)?[t]:wP(t),o=a.length,i=o-1;for(;++r<o;){const t=a[r];let o=n;if(r!==i){const n=e[t];o=dP(n)||Array.isArray(n)?n:isNaN(+a[r+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=o,e=e[t]}return e};const SP="blur",TP="focusout",xP="change",_P="onBlur",AP="onChange",CP="onSubmit",IP="onTouched",NP="all",RP="max",OP="min",PP="maxLength",LP="minLength",DP="pattern",MP="required",FP="validate",BP=W.createContext(null),zP=()=>W.useContext(BP);var HP=(e,t,n,r=!0)=>{const a={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(a,o,{get:()=>{const a=o;return t._proxyFormState[a]!==NP&&(t._proxyFormState[a]=!r||NP),n&&(n[a]=!0),e[a]}});return a},jP=e=>dP(e)&&!Object.keys(e).length,UP=(e,t,n,r)=>{n(e);const{name:a,...o}=e;return jP(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find((e=>t[e]===(!r||NP)))},$P=e=>Array.isArray(e)?e:[e],GP=(e,t,n)=>!e||!t||e===t||$P(e).some((e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))));function VP(e){const t=W.useRef(e);t.current=e,W.useEffect((()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}}),[e.disabled])}var WP=e=>"string"==typeof e,qP=(e,t,n,r,a)=>WP(e)?(r&&t.watch.add(e),bP(n,e,a)):Array.isArray(e)?e.map((e=>(r&&t.watch.add(e),bP(n,e)))):(r&&(t.watchAll=!0),n);function YP(e){const t=zP(),{name:n,disabled:r,control:a=t.control,shouldUnregister:o}=e,i=fP(a._names.array,n),s=function(e){const t=zP(),{control:n=t.control,name:r,defaultValue:a,disabled:o,exact:i}=e||{},s=W.useRef(r);s.current=r,VP({disabled:o,subject:n._subjects.values,next:e=>{GP(s.current,e.name,i)&&c(mP(qP(s.current,n._names,e.values||n._formValues,!1,a)))}});const[l,c]=W.useState(n._getWatch(r,a));return W.useEffect((()=>n._removeUnmounted())),l}({control:a,name:n,defaultValue:bP(a._formValues,n,bP(a._defaultValues,n,e.defaultValue)),exact:!0}),l=function(e){const t=zP(),{control:n=t.control,disabled:r,name:a,exact:o}=e||{},[i,s]=W.useState(n._formState),l=W.useRef(!0),c=W.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=W.useRef(a);return u.current=a,VP({disabled:r,next:e=>l.current&&GP(u.current,e.name,o)&&UP(e,c.current,n._updateFormState)&&s({...n._formState,...e}),subject:n._subjects.state}),W.useEffect((()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1})),[n]),W.useMemo((()=>HP(i,n,c.current,!1)),[i,n])}({control:a,name:n,exact:!0}),c=W.useRef(a.register(n,{...e.rules,value:s,...vP(e.disabled)?{disabled:e.disabled}:{}})),u=W.useMemo((()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!bP(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!bP(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!bP(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!bP(l.validatingFields,n)},error:{enumerable:!0,get:()=>bP(l.errors,n)}})),[l,n]),d=W.useMemo((()=>({name:n,value:s,...vP(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:e=>c.current.onChange({target:{value:pP(e),name:n},type:xP}),onBlur:()=>c.current.onBlur({target:{value:bP(a._formValues,n),name:n},type:SP}),ref:e=>{const t=bP(a._fields,n);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}})),[n,a._formValues,r,l.disabled,s,a._fields]);return W.useEffect((()=>{const e=a._options.shouldUnregister||o,t=(e,t)=>{const n=bP(a._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){const e=mP(bP(a._options.defaultValues,n));EP(a._defaultValues,n,e),yP(bP(a._formValues,n))&&EP(a._formValues,n,e)}return!i&&a.register(n),()=>{(i?e&&!a._state.action:e)?a.unregister(n):t(n,!1)}}),[n,a,i,o]),W.useEffect((()=>{a._updateDisabledField({disabled:r,fields:a._fields,name:n})}),[r,n,a]),W.useMemo((()=>({field:d,formState:l,fieldState:u})),[d,l,u])}const XP=e=>e.render(YP(e));var KP=(e,t,n,r,a)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:a||!0}}:{},QP=e=>({isOnSubmit:!e||e===CP,isOnBlur:e===_P,isOnChange:e===AP,isOnAll:e===NP,isOnTouch:e===IP}),ZP=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const JP=(e,t,n,r)=>{for(const a of n||Object.keys(e)){const n=bP(e,a);if(n){const{_f:e,...o}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],a)&&!r)return!0;if(e.ref&&t(e.ref,e.name)&&!r)return!0;if(JP(o,t))break}else if(dP(o)&&JP(o,t))break}}};var eL=(e,t,n)=>{const r=$P(bP(e,n));return EP(r,"root",t[n]),EP(e,n,r),e},tL=e=>"file"===e.type,nL=e=>"function"==typeof e,rL=e=>{if(!hP)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},aL=e=>WP(e),oL=e=>"radio"===e.type,iL=e=>e instanceof RegExp;const sL={value:!1,isValid:!1},lL={value:!0,isValid:!0};var cL=e=>{if(Array.isArray(e)){if(e.length>1){const 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&&!yP(e[0].attributes.value)?yP(e[0].value)||""===e[0].value?lL:{value:e[0].value,isValid:!0}:lL:sL}return sL};const uL={isValid:!1,value:null};var dL=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),uL):uL;function pL(e,t,n="validate"){if(aL(e)||Array.isArray(e)&&e.every(aL)||vP(e)&&!e)return{type:n,message:aL(e)?e:"",ref:t}}var fL=e=>dP(e)&&!iL(e)?e:{value:e,message:""},hL=async(e,t,n,r,a,o)=>{const{ref:i,refs:s,required:l,maxLength:c,minLength:u,min:d,max:p,pattern:f,validate:h,name:m,valueAsNumber:g,mount:y}=e._f,b=bP(n,m);if(!y||t.has(m))return{};const v=s?s[0]:i,k=e=>{a&&v.reportValidity&&(v.setCustomValidity(vP(e)?"":e||""),v.reportValidity())},w={},E=oL(i),S=sP(i),T=E||S,x=(g||tL(i))&&yP(i.value)&&yP(b)||rL(i)&&""===i.value||""===b||Array.isArray(b)&&!b.length,_=KP.bind(null,m,r,w),A=(e,t,n,r=PP,a=LP)=>{const o=e?t:n;w[m]={type:e?r:a,message:o,ref:i,..._(e?r:a,o)}};if(o?!Array.isArray(b)||!b.length:l&&(!T&&(x||cP(b))||vP(b)&&!b||S&&!cL(s).isValid||E&&!dL(s).isValid)){const{value:e,message:t}=aL(l)?{value:!!l,message:l}:fL(l);if(e&&(w[m]={type:MP,message:t,ref:v,..._(MP,t)},!r))return k(t),w}if(!(x||cP(d)&&cP(p))){let e,t;const n=fL(p),a=fL(d);if(cP(b)||isNaN(b)){const r=i.valueAsDate||new Date(b),o=e=>new Date((new Date).toDateString()+" "+e),s="time"==i.type,l="week"==i.type;WP(n.value)&&b&&(e=s?o(b)>o(n.value):l?b>n.value:r>new Date(n.value)),WP(a.value)&&b&&(t=s?o(b)<o(a.value):l?b<a.value:r<new Date(a.value))}else{const r=i.valueAsNumber||(b?+b:b);cP(n.value)||(e=r>n.value),cP(a.value)||(t=r<a.value)}if((e||t)&&(A(!!e,n.message,a.message,RP,OP),!r))return k(w[m].message),w}if((c||u)&&!x&&(WP(b)||o&&Array.isArray(b))){const e=fL(c),t=fL(u),n=!cP(e.value)&&b.length>+e.value,a=!cP(t.value)&&b.length<+t.value;if((n||a)&&(A(n,e.message,t.message),!r))return k(w[m].message),w}if(f&&!x&&WP(b)){const{value:e,message:t}=fL(f);if(iL(e)&&!b.match(e)&&(w[m]={type:DP,message:t,ref:i,..._(DP,t)},!r))return k(t),w}if(h)if(nL(h)){const e=pL(await h(b,n),v);if(e&&(w[m]={...e,..._(FP,e.message)},!r))return k(e.message),w}else if(dP(h)){let e={};for(const t in h){if(!jP(e)&&!r)break;const a=pL(await h[t](b,n),v,t);a&&(e={...a,..._(t,a.message)},k(a.message),r&&(w[m]=e))}if(!jP(e)&&(w[m]={ref:v,...e},!r))return w}return k(!0),w};function mL(e,t){const n=Array.isArray(t)?t:kP(t)?[t]:wP(t),r=1===n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=yP(e)?r++:e[t[r++]];return e}(e,n),a=n.length-1,o=n[a];return r&&delete r[o],0!==a&&(dP(r)&&jP(r)||Array.isArray(r)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!yP(e[t]))return!1;return!0}(r))&&mL(e,n.slice(0,-1)),e}var gL=()=>{let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}},yL=e=>cP(e)||!uP(e);function bL(e,t){if(yL(e)||yL(t))return e===t;if(lP(e)&&lP(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const a of n){const n=e[a];if(!r.includes(a))return!1;if("ref"!==a){const e=t[a];if(lP(n)&&lP(e)||dP(n)&&dP(e)||Array.isArray(n)&&Array.isArray(e)?!bL(n,e):n!==e)return!1}}return!0}var vL=e=>"select-multiple"===e.type,kL=e=>rL(e)&&e.isConnected,wL=e=>{for(const t in e)if(nL(e[t]))return!0;return!1};function EL(e,t={}){const n=Array.isArray(e);if(dP(e)||n)for(const r in e)Array.isArray(e[r])||dP(e[r])&&!wL(e[r])?(t[r]=Array.isArray(e[r])?[]:{},EL(e[r],t[r])):cP(e[r])||(t[r]=!0);return t}function SL(e,t,n){const r=Array.isArray(e);if(dP(e)||r)for(const a in e)Array.isArray(e[a])||dP(e[a])&&!wL(e[a])?yP(t)||yL(n[a])?n[a]=Array.isArray(e[a])?EL(e[a],[]):{...EL(e[a])}:SL(e[a],cP(t)?{}:t[a],n[a]):n[a]=!bL(e[a],t[a]);return n}var TL=(e,t)=>SL(e,t,EL(t)),xL=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>yP(e)?e:t?""===e?NaN:e?+e:e:n&&WP(e)?new Date(e):r?r(e):e;function _L(e){const t=e.ref;return tL(t)?t.files:oL(t)?dL(e.refs).value:vL(t)?[...t.selectedOptions].map((({value:e})=>e)):sP(t)?cL(e.refs).value:xL(yP(t.value)?e.ref.value:t.value,e)}var AL=e=>yP(e)?e:iL(e)?e.source:dP(e)?iL(e.value)?e.value.source:e.value:e;const CL="AsyncFunction";function IL(e,t,n){const r=bP(e,n);if(r||kP(n))return{error:r,name:n};const a=n.split(".");for(;a.length;){const r=a.join("."),o=bP(t,r),i=bP(e,r);if(o&&!Array.isArray(o)&&n!==r)return{name:n};if(i&&i.type)return{name:r,error:i};a.pop()}return{name:n}}const NL={mode:CP,reValidateMode:AP,shouldFocusError:!0};function RL(e={}){let t,n={...NL,...e},r={submitCount:0,isDirty:!1,isLoading:nL(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},a={},o=(dP(n.defaultValues)||dP(n.values))&&mP(n.defaultValues||n.values)||{},i=n.shouldUnregister?{}:mP(o),s={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:gL(),array:gL(),state:gL()},p=QP(n.mode),f=QP(n.reValidateMode),h=n.criteriaMode===NP,m=async e=>{if(!n.disabled&&(u.isValid||e)){const e=n.resolver?jP((await k()).errors):await w(a,!0);e!==r.isValid&&d.state.next({isValid:e})}},g=(e,t)=>{n.disabled||!u.isValidating&&!u.validatingFields||((e||Array.from(l.mount)).forEach((e=>{e&&(t?EP(r.validatingFields,e,t):mL(r.validatingFields,e))})),d.state.next({validatingFields:r.validatingFields,isValidating:!jP(r.validatingFields)}))},y=(e,t,n,r)=>{const l=bP(a,e);if(l){const a=bP(i,e,yP(n)?bP(o,e):n);yP(a)||r&&r.defaultChecked||t?EP(i,e,t?a:_L(l._f)):T(e,a),s.mount&&m()}},b=(e,t,i,s,l)=>{let c=!1,p=!1;const f={name:e};if(!n.disabled){const n=!!(bP(a,e)&&bP(a,e)._f&&bP(a,e)._f.disabled);if(!i||s){u.isDirty&&(p=r.isDirty,r.isDirty=f.isDirty=E(),c=p!==f.isDirty);const a=n||bL(bP(o,e),t);p=!(n||!bP(r.dirtyFields,e)),a||n?mL(r.dirtyFields,e):EP(r.dirtyFields,e,!0),f.dirtyFields=r.dirtyFields,c=c||u.dirtyFields&&p!==!a}if(i){const t=bP(r.touchedFields,e);t||(EP(r.touchedFields,e,i),f.touchedFields=r.touchedFields,c=c||u.touchedFields&&t!==i)}c&&l&&d.state.next(f)}return c?f:{}},v=(e,a,o,i)=>{const s=bP(r.errors,e),l=u.isValid&&vP(a)&&r.isValid!==a;var p;if(n.delayError&&o?(p=()=>((e,t)=>{EP(r.errors,e,t),d.state.next({errors:r.errors})})(e,o),t=e=>{clearTimeout(c),c=setTimeout(p,e)},t(n.delayError)):(clearTimeout(c),t=null,o?EP(r.errors,e,o):mL(r.errors,e)),(o?!bL(s,o):s)||!jP(i)||l){const t={...i,...l&&vP(a)?{isValid:a}:{},errors:r.errors,name:e};r={...r,...t},d.state.next(t)}},k=async e=>{g(e,!0);const t=await n.resolver(i,n.context,((e,t,n,r)=>{const a={};for(const o of e){const e=bP(t,o);e&&EP(a,o,e._f)}return{criteriaMode:n,names:[...e],fields:a,shouldUseNativeValidation:r}})(e||l.mount,a,n.criteriaMode,n.shouldUseNativeValidation));return g(e),t},w=async(e,t,a={valid:!0})=>{for(const s in e){const c=e[s];if(c){const{_f:e,...d}=c;if(e){const d=l.array.has(e.name),p=c._f&&(!!(o=c._f)&&!!o.validate&&!!(nL(o.validate)&&o.validate.constructor.name===CL||dP(o.validate)&&Object.values(o.validate).find((e=>e.constructor.name===CL))));p&&u.validatingFields&&g([s],!0);const f=await hL(c,l.disabled,i,h,n.shouldUseNativeValidation&&!t,d);if(p&&u.validatingFields&&g([s]),f[e.name]&&(a.valid=!1,t))break;!t&&(bP(f,e.name)?d?eL(r.errors,f,e.name):EP(r.errors,e.name,f[e.name]):mL(r.errors,e.name))}!jP(d)&&await w(d,t,a)}}var o;return a.valid},E=(e,t)=>!n.disabled&&(e&&t&&EP(i,e,t),!bL(N(),o)),S=(e,t,n)=>qP(e,l,{...s.mount?i:yP(t)?o:WP(e)?{[e]:t}:t},n,t),T=(e,t,n={})=>{const r=bP(a,e);let o=t;if(r){const n=r._f;n&&(!n.disabled&&EP(i,e,xL(t,n)),o=rL(n.ref)&&cP(t)?"":t,vL(n.ref)?[...n.ref.options].forEach((e=>e.selected=o.includes(e.value))):n.refs?sP(n.ref)?n.refs.length>1?n.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find((t=>t===e.value)):o===e.value))):n.refs[0]&&(n.refs[0].checked=!!o):n.refs.forEach((e=>e.checked=e.value===o)):tL(n.ref)?n.ref.value="":(n.ref.value=o,n.ref.type||d.values.next({name:e,values:{...i}})))}(n.shouldDirty||n.shouldTouch)&&b(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&I(e)},x=(e,t,n)=>{for(const r in t){const o=t[r],i=`${e}.${r}`,s=bP(a,i);(l.array.has(e)||dP(o)||s&&!s._f)&&!lP(o)?x(i,o,n):T(i,o,n)}},_=(e,t,n={})=>{const c=bP(a,e),p=l.array.has(e),f=mP(t);EP(i,e,f),p?(d.array.next({name:e,values:{...i}}),(u.isDirty||u.dirtyFields)&&n.shouldDirty&&d.state.next({name:e,dirtyFields:TL(o,i),isDirty:E(e,f)})):!c||c._f||cP(f)?T(e,f,n):x(e,f,n),ZP(e,l)&&d.state.next({...r}),d.values.next({name:s.mount?e:void 0,values:{...i}})},A=async e=>{s.mount=!0;const o=e.target;let c=o.name,y=!0;const E=bP(a,c),S=e=>{y=Number.isNaN(e)||lP(e)&&isNaN(e.getTime())||bL(e,bP(i,c,e))};if(E){let s,x;const _=o.type?_L(E._f):pP(e),A=e.type===SP||e.type===TP,C=!((T=E._f).mount&&(T.required||T.min||T.max||T.maxLength||T.minLength||T.pattern||T.validate)||n.resolver||bP(r.errors,c)||E._f.deps)||((e,t,n,r,a)=>!a.isOnAll&&(!n&&a.isOnTouch?!(t||e):(n?r.isOnBlur:a.isOnBlur)?!e:!(n?r.isOnChange:a.isOnChange)||e))(A,bP(r.touchedFields,c),r.isSubmitted,f,p),N=ZP(c,l,A);EP(i,c,_),A?(E._f.onBlur&&E._f.onBlur(e),t&&t(0)):E._f.onChange&&E._f.onChange(e);const R=b(c,_,A,!1),O=!jP(R)||N;if(!A&&d.values.next({name:c,type:e.type,values:{...i}}),C)return u.isValid&&("onBlur"===n.mode&&A?m():A||m()),O&&d.state.next({name:c,...N?{}:R});if(!A&&N&&d.state.next({...r}),n.resolver){const{errors:e}=await k([c]);if(S(_),y){const t=IL(r.errors,a,c),n=IL(e,a,t.name||c);s=n.error,c=n.name,x=jP(e)}}else g([c],!0),s=(await hL(E,l.disabled,i,h,n.shouldUseNativeValidation))[c],g([c]),S(_),y&&(s?x=!1:u.isValid&&(x=await w(a,!0)));y&&(E._f.deps&&I(E._f.deps),v(c,x,s,R))}var T},C=(e,t)=>{if(bP(r.errors,t)&&e.focus)return e.focus(),1},I=async(e,t={})=>{let o,i;const s=$P(e);if(n.resolver){const t=await(async e=>{const{errors:t}=await k(e);if(e)for(const n of e){const e=bP(t,n);e?EP(r.errors,n,e):mL(r.errors,n)}else r.errors=t;return t})(yP(e)?e:s);o=jP(t),i=e?!s.some((e=>bP(t,e))):o}else e?(i=(await Promise.all(s.map((async e=>{const t=bP(a,e);return await w(t&&t._f?{[e]:t}:t)})))).every(Boolean),(i||r.isValid)&&m()):i=o=await w(a);return d.state.next({...!WP(e)||u.isValid&&o!==r.isValid?{}:{name:e},...n.resolver||!e?{isValid:o}:{},errors:r.errors}),t.shouldFocus&&!i&&JP(a,C,e?s:l.mount),i},N=e=>{const t={...s.mount?i:o};return yP(e)?t:WP(e)?bP(t,e):e.map((e=>bP(t,e)))},R=(e,t)=>({invalid:!!bP((t||r).errors,e),isDirty:!!bP((t||r).dirtyFields,e),error:bP((t||r).errors,e),isValidating:!!bP(r.validatingFields,e),isTouched:!!bP((t||r).touchedFields,e)}),O=(e,t,n)=>{const o=(bP(a,e,{_f:{}})._f||{}).ref,i=bP(r.errors,e)||{},{ref:s,message:l,type:c,...u}=i;EP(r.errors,e,{...u,...t,ref:o}),d.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&o&&o.focus&&o.focus()},P=(e,t={})=>{for(const s of e?$P(e):l.mount)l.mount.delete(s),l.array.delete(s),t.keepValue||(mL(a,s),mL(i,s)),!t.keepError&&mL(r.errors,s),!t.keepDirty&&mL(r.dirtyFields,s),!t.keepTouched&&mL(r.touchedFields,s),!t.keepIsValidating&&mL(r.validatingFields,s),!n.shouldUnregister&&!t.keepDefaultValue&&mL(o,s);d.values.next({values:{...i}}),d.state.next({...r,...t.keepDirty?{isDirty:E()}:{}}),!t.keepIsValid&&m()},L=({disabled:e,name:t,field:n,fields:r})=>{(vP(e)&&s.mount||e||l.disabled.has(t))&&(e?l.disabled.add(t):l.disabled.delete(t),b(t,_L(n?n._f:bP(r,t)._f),!1,!1,!0))},D=(e,t={})=>{let r=bP(a,e);const i=vP(t.disabled)||vP(n.disabled);return EP(a,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),l.mount.add(e),r?L({field:r,disabled:vP(t.disabled)?t.disabled:n.disabled,name:e}):y(e,!0,t.value),{...i?{disabled:t.disabled||n.disabled}:{},...n.progressive?{required:!!t.required,min:AL(t.min),max:AL(t.max),minLength:AL(t.minLength),maxLength:AL(t.maxLength),pattern:AL(t.pattern)}:{},name:e,onChange:A,onBlur:A,ref:i=>{if(i){D(e,t),r=bP(a,e);const n=yP(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,s=(e=>oL(e)||sP(e))(n),l=r._f.refs||[];if(s?l.find((e=>e===n)):n===r._f.ref)return;EP(a,e,{_f:{...r._f,...s?{refs:[...l.filter(kL),n,...Array.isArray(bP(o,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),y(e,!1,void 0,n)}else r=bP(a,e,{}),r._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!fP(l.array,e)||!s.action)&&l.unMount.add(e)}}},M=()=>n.shouldFocusError&&JP(a,C,l.mount),F=(e,t)=>async o=>{let s;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let c=mP(i);if(l.disabled.size)for(const e of l.disabled)EP(c,e,void 0);if(d.state.next({isSubmitting:!0}),n.resolver){const{errors:e,values:t}=await k();r.errors=e,c=t}else await w(a);if(mL(r.errors,"root"),jP(r.errors)){d.state.next({errors:{}});try{await e(c,o)}catch(u){s=u}}else t&&await t({...r.errors},o),M(),setTimeout(M);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:jP(r.errors)&&!s,submitCount:r.submitCount+1,errors:r.errors}),s)throw s},B=(e,t={})=>{const c=e?mP(e):o,p=mP(c),f=jP(e),h=f?o:p;if(t.keepDefaultValues||(o=c),!t.keepValues){if(t.keepDirtyValues){const e=new Set([...l.mount,...Object.keys(TL(o,i))]);for(const t of Array.from(e))bP(r.dirtyFields,t)?EP(h,t,bP(i,t)):_(t,bP(h,t))}else{if(hP&&yP(e))for(const e of l.mount){const t=bP(a,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(rL(e)){const t=e.closest("form");if(t){t.reset();break}}}}a={}}i=n.shouldUnregister?t.keepDefaultValues?mP(o):{}:mP(h),d.array.next({values:{...h}}),d.values.next({values:{...h}})}l={mount:t.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!u.isValid||!!t.keepIsValid||!!t.keepDirtyValues,s.watch=!!n.shouldUnregister,d.state.next({submitCount:t.keepSubmitCount?r.submitCount:0,isDirty:!f&&(t.keepDirty?r.isDirty:!(!t.keepDefaultValues||bL(e,o))),isSubmitted:!!t.keepIsSubmitted&&r.isSubmitted,dirtyFields:f?{}:t.keepDirtyValues?t.keepDefaultValues&&i?TL(o,i):r.dirtyFields:t.keepDefaultValues&&e?TL(o,e):t.keepDirty?r.dirtyFields:{},touchedFields:t.keepTouched?r.touchedFields:{},errors:t.keepErrors?r.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&r.isSubmitSuccessful,isSubmitting:!1})},z=(e,t)=>B(nL(e)?e(i):e,t);return{control:{register:D,unregister:P,getFieldState:R,handleSubmit:F,setError:O,_executeSchema:k,_getWatch:S,_getDirty:E,_updateValid:m,_removeUnmounted:()=>{for(const e of l.unMount){const t=bP(a,e);t&&(t._f.refs?t._f.refs.every((e=>!kL(e))):!kL(t._f.ref))&&P(e)}l.unMount=new Set},_updateFieldArray:(e,t=[],l,c,p=!0,f=!0)=>{if(c&&l&&!n.disabled){if(s.action=!0,f&&Array.isArray(bP(a,e))){const t=l(bP(a,e),c.argA,c.argB);p&&EP(a,e,t)}if(f&&Array.isArray(bP(r.errors,e))){const t=l(bP(r.errors,e),c.argA,c.argB);p&&EP(r.errors,e,t),((e,t)=>{!gP(bP(e,t)).length&&mL(e,t)})(r.errors,e)}if(u.touchedFields&&f&&Array.isArray(bP(r.touchedFields,e))){const t=l(bP(r.touchedFields,e),c.argA,c.argB);p&&EP(r.touchedFields,e,t)}u.dirtyFields&&(r.dirtyFields=TL(o,i)),d.state.next({name:e,isDirty:E(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else EP(i,e,t)},_updateDisabledField:L,_getFieldArray:e=>gP(bP(s.mount?i:o,e,n.shouldUnregister?bP(o,e,[]):[])),_reset:B,_resetDefaultValues:()=>nL(n.defaultValues)&&n.defaultValues().then((e=>{z(e,n.resetOptions),d.state.next({isLoading:!1})})),_updateFormState:e=>{r={...r,...e}},_disableForm:e=>{vP(e)&&(d.state.next({disabled:e}),JP(a,((t,n)=>{const r=bP(a,n);r&&(t.disabled=r._f.disabled||e,Array.isArray(r._f.refs)&&r._f.refs.forEach((t=>{t.disabled=r._f.disabled||e})))}),0,!1))},_subjects:d,_proxyFormState:u,_setErrors:e=>{r.errors=e,d.state.next({errors:r.errors,isValid:!1})},get _fields(){return a},get _formValues(){return i},get _state(){return s},set _state(e){s=e},get _defaultValues(){return o},get _names(){return l},set _names(e){l=e},get _formState(){return r},set _formState(e){r=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:I,register:D,handleSubmit:F,watch:(e,t)=>nL(e)?d.values.subscribe({next:n=>e(S(void 0,t),n)}):S(e,t,!0),setValue:_,getValues:N,reset:z,resetField:(e,t={})=>{bP(a,e)&&(yP(t.defaultValue)?_(e,mP(bP(o,e))):(_(e,t.defaultValue),EP(o,e,mP(t.defaultValue))),t.keepTouched||mL(r.touchedFields,e),t.keepDirty||(mL(r.dirtyFields,e),r.isDirty=t.defaultValue?E(e,mP(bP(o,e))):E()),t.keepError||(mL(r.errors,e),u.isValid&&m()),d.state.next({...r}))},clearErrors:e=>{e&&$P(e).forEach((e=>mL(r.errors,e))),d.state.next({errors:e?r.errors:{}})},unregister:P,setError:O,setFocus:(e,t={})=>{const n=bP(a,e),r=n&&n._f;if(r){const e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&nL(e.select)&&e.select())}},getFieldState:R}}const OL={text:"",email:"",checkbox:!1,textarea:"",file:void 0,select:""};const PL=new TextEncoder;async function LL(e,t){return n=await async function(e,t){return crypto.subtle.digest(e.toUpperCase(),"string"==typeof t?PL.encode(t):new Uint8Array(t))}(e,t),[...new Uint8Array(n)].map((e=>e.toString(16).padStart(2,"0"))).join("");var n}const DL=async e=>{try{const t=await fetch(e,{method:"GET"});if(!t.ok)throw new Error(`Failed to fetch challenge: ${t.statusText}`);const n=await t.json(),{challenge:r,algorithm:a,salt:o,maxnumber:i}=n,{promise:s}=await function(e,t,n="SHA-256",r=1e6,a=0){const o=new AbortController,i=Date.now();return{promise:(async()=>{for(let s=a;s<=r;s+=1){if(o.signal.aborted)return null;if(await LL(n,t+s)===e)return{number:s,took:Date.now()-i}}return null})(),controller:o}}(r,o,a,i),l=await s||void 0;if(!l)throw new Error("Challenge not solved");return{number:l.number,...n}}catch(t){console.error("Error solving captcha:",t)}};function ML(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function FL(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function BL(...e){return t=>{let n=!1;const r=e.map((e=>{const r=FL(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():FL(e[t],null)}}}}function zL(...e){return V.useCallback(BL(...e),e)}function HL(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>V.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return V.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const a=V.createContext(r),o=n.length;n=[...n,r];const i=t=>{var n;const{scope:r,children:i,...s}=t,l=(null==(n=null==r?void 0:r[e])?void 0:n[o])||a,c=V.useMemo((()=>s),Object.values(s));return jf.jsx(l.Provider,{value:c,children:i})};return i.displayName=t+"Provider",[i,function(n,i){var s;const l=(null==(s=null==i?void 0:i[e])?void 0:s[o])||a,c=V.useContext(l);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},jL(r,...t)]}function jL(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return V.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}var UL=V.forwardRef(((e,t)=>{const{children:n,...r}=e,a=V.Children.toArray(n),o=a.find(VL);if(o){const e=o.props.children,n=a.map((t=>t===o?V.Children.count(e)>1?V.Children.only(null):V.isValidElement(e)?e.props.children:null:t));return jf.jsx($L,{...r,ref:t,children:V.isValidElement(e)?V.cloneElement(e,void 0,n):null})}return jf.jsx($L,{...r,ref:t,children:n})}));UL.displayName="Slot";var $L=V.forwardRef(((e,t)=>{const{children:n,...r}=e;if(V.isValidElement(n)){const e=function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}(n);return V.cloneElement(n,{...WL(r,n.props),ref:t?BL(t,e):e})}return V.Children.count(n)>1?V.Children.only(null):null}));$L.displayName="SlotClone";var GL=({children:e})=>jf.jsx(jf.Fragment,{children:e});function VL(e){return V.isValidElement(e)&&e.type===GL}function WL(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...e)=>{o(...e),a(...e)}:a&&(n[r]=a):"style"===r?n[r]={...a,...o}:"className"===r&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}var qL=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=V.forwardRef(((e,n)=>{const{asChild:r,...a}=e,o=r?UL:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),jf.jsx(o,{...a,ref:n})}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function YL(e){const t=V.useRef(e);return V.useEffect((()=>{t.current=e})),V.useMemo((()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}var XL,KL="dismissableLayer.update",QL="dismissableLayer.pointerDownOutside",ZL="dismissableLayer.focusOutside",JL=V.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),eD=V.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:i,onDismiss:s,...l}=e,c=V.useContext(JL),[u,d]=V.useState(null),p=(null==u?void 0:u.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,f]=V.useState({}),h=zL(t,(e=>d(e))),m=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(g),b=u?m.indexOf(u):-1,v=c.layersWithOutsidePointerEventsDisabled.size>0,k=b>=y,w=function(e,t=(null==globalThis?void 0:globalThis.document)){const n=YL(e),r=V.useRef(!1),a=V.useRef((()=>{}));return V.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){nD(QL,n,o,{discrete:!0})};const o={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);r.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));k&&!n&&(null==a||a(e),null==i||i(e),e.defaultPrevented||null==s||s())}),p),E=function(e,t=(null==globalThis?void 0:globalThis.document)){const n=YL(e),r=V.useRef(!1);return V.useEffect((()=>{const e=e=>{if(e.target&&!r.current){nD(ZL,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==o||o(e),null==i||i(e),e.defaultPrevented||null==s||s())}),p);return function(e,t=(null==globalThis?void 0:globalThis.document)){const n=YL(e);V.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}((e=>{b===c.layers.size-1&&(null==r||r(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),p),V.useEffect((()=>{if(u)return n&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(XL=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),tD(),()=>{n&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=XL)}}),[u,p,n,c]),V.useEffect((()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),tD())}),[u,c]),V.useEffect((()=>{const e=()=>f({});return document.addEventListener(KL,e),()=>document.removeEventListener(KL,e)}),[]),jf.jsx(qL.div,{...l,ref:h,style:{pointerEvents:v?k?"auto":"none":void 0,...e.style},onFocusCapture:ML(e.onFocusCapture,E.onFocusCapture),onBlurCapture:ML(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:ML(e.onPointerDownCapture,w.onPointerDownCapture)})}));eD.displayName="DismissableLayer";function tD(){const e=new CustomEvent(KL);document.dispatchEvent(e)}function nD(e,t,n,{discrete:r}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?function(e,t){e&&re.flushSync((()=>e.dispatchEvent(t)))}(a,o):a.dispatchEvent(o)}V.forwardRef(((e,t)=>{const n=V.useContext(JL),r=V.useRef(null),a=zL(t,r);return V.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),jf.jsx(qL.div,{...e,ref:a})})).displayName="DismissableLayerBranch";const rD=["top","right","bottom","left"],aD=Math.min,oD=Math.max,iD=Math.round,sD=Math.floor,lD=e=>({x:e,y:e}),cD={left:"right",right:"left",bottom:"top",top:"bottom"},uD={start:"end",end:"start"};function dD(e,t,n){return oD(e,aD(t,n))}function pD(e,t){return"function"==typeof e?e(t):e}function fD(e){return e.split("-")[0]}function hD(e){return e.split("-")[1]}function mD(e){return"x"===e?"y":"x"}function gD(e){return"y"===e?"height":"width"}function yD(e){return["top","bottom"].includes(fD(e))?"y":"x"}function bD(e){return mD(yD(e))}function vD(e){return e.replace(/start|end/g,(e=>uD[e]))}function kD(e){return e.replace(/left|right|bottom|top/g,(e=>cD[e]))}function wD(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function ED(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function SD(e,t,n){let{reference:r,floating:a}=e;const o=yD(t),i=bD(t),s=gD(i),l=fD(t),c="y"===o,u=r.x+r.width/2-a.width/2,d=r.y+r.height/2-a.height/2,p=r[s]/2-a[s]/2;let f;switch(l){case"top":f={x:u,y:r.y-a.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-a.width,y:d};break;default:f={x:r.x,y:r.y}}switch(hD(t)){case"start":f[i]-=p*(n&&c?-1:1);break;case"end":f[i]+=p*(n&&c?-1:1)}return f}async function TD(e,t){var n;void 0===t&&(t={});const{x:r,y:a,platform:o,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=pD(t,e),h=wD(f),m=s[p?"floating"===d?"reference":"floating":d],g=ED(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:r,y:a,width:i.floating.width,height:i.floating.height}:i.reference,b=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),v=await(null==o.isElement?void 0:o.isElement(b))&&await(null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},k=ED(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:l}):y);return{top:(g.top-k.top+h.top)/v.y,bottom:(k.bottom-g.bottom+h.bottom)/v.y,left:(g.left-k.left+h.left)/v.x,right:(k.right-g.right+h.right)/v.x}}function xD(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function _D(e){return rD.some((t=>e[t]>=0))}function AD(){return"undefined"!=typeof window}function CD(e){return RD(e)?(e.nodeName||"").toLowerCase():"#document"}function ID(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ND(e){var t;return null==(t=(RD(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function RD(e){return!!AD()&&(e instanceof Node||e instanceof ID(e).Node)}function OD(e){return!!AD()&&(e instanceof Element||e instanceof ID(e).Element)}function PD(e){return!!AD()&&(e instanceof HTMLElement||e instanceof ID(e).HTMLElement)}function LD(e){return!(!AD()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof ID(e).ShadowRoot)}function DD(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=jD(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function MD(e){return["table","td","th"].includes(CD(e))}function FD(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(gQ){return!1}}))}function BD(e){const t=zD(),n=OD(e)?jD(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function zD(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function HD(e){return["html","body","#document"].includes(CD(e))}function jD(e){return ID(e).getComputedStyle(e)}function UD(e){return OD(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $D(e){if("html"===CD(e))return e;const t=e.assignedSlot||e.parentNode||LD(e)&&e.host||ND(e);return LD(t)?t.host:t}function GD(e){const t=$D(e);return HD(t)?e.ownerDocument?e.ownerDocument.body:e.body:PD(t)&&DD(t)?t:GD(t)}function VD(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=GD(e),o=a===(null==(r=e.ownerDocument)?void 0:r.body),i=ID(a);if(o){const e=WD(i);return t.concat(i,i.visualViewport||[],DD(a)?a:[],e&&n?VD(e):[])}return t.concat(a,VD(a,[],n))}function WD(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qD(e){const t=jD(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=PD(e),o=a?e.offsetWidth:n,i=a?e.offsetHeight:r,s=iD(n)!==o||iD(r)!==i;return s&&(n=o,r=i),{width:n,height:r,$:s}}function YD(e){return OD(e)?e:e.contextElement}function XD(e){const t=YD(e);if(!PD(t))return lD(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=qD(t);let i=(o?iD(n.width):n.width)/r,s=(o?iD(n.height):n.height)/a;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const KD=lD(0);function QD(e){const t=ID(e);return zD()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:KD}function ZD(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),o=YD(e);let i=lD(1);t&&(r?OD(r)&&(i=XD(r)):i=XD(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==ID(e))&&t}(o,n,r)?QD(o):lD(0);let l=(a.left+s.x)/i.x,c=(a.top+s.y)/i.y,u=a.width/i.x,d=a.height/i.y;if(o){const e=ID(o),t=r&&OD(r)?ID(r):r;let n=e,a=WD(n);for(;a&&r&&t!==n;){const e=XD(a),t=a.getBoundingClientRect(),r=jD(a),o=t.left+(a.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(a.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=i,n=ID(a),a=WD(n)}}return ED({width:u,height:d,x:l,y:c})}function JD(e,t){const n=UD(e).scrollLeft;return t?t.left+n:ZD(ND(e)).left+n}function eM(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:JD(e,r)),y:r.top+t.scrollTop}}function tM(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=ID(e),r=ND(e),a=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,s=0,l=0;if(a){o=a.width,i=a.height;const e=zD();(!e||e&&"fixed"===t)&&(s=a.offsetLeft,l=a.offsetTop)}return{width:o,height:i,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=ND(e),n=UD(e),r=e.ownerDocument.body,a=oD(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=oD(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+JD(e);const s=-n.scrollTop;return"rtl"===jD(r).direction&&(i+=oD(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:i,y:s}}(ND(e));else if(OD(t))r=function(e,t){const n=ZD(e,!0,"fixed"===t),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=PD(e)?XD(e):lD(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:a*o.x,y:r*o.y}}(t,n);else{const n=QD(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ED(r)}function nM(e,t){const n=$D(e);return!(n===t||!OD(n)||HD(n))&&("fixed"===jD(n).position||nM(n,t))}function rM(e,t,n){const r=PD(t),a=ND(t),o="fixed"===n,i=ZD(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=lD(0);if(r||!r&&!o)if(("body"!==CD(t)||DD(a))&&(s=UD(t)),r){const e=ZD(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else a&&(l.x=JD(a));const c=!a||r||o?lD(0):eM(a,s);return{x:i.left+s.scrollLeft-l.x-c.x,y:i.top+s.scrollTop-l.y-c.y,width:i.width,height:i.height}}function aM(e){return"static"===jD(e).position}function oM(e,t){if(!PD(e)||"fixed"===jD(e).position)return null;if(t)return t(e);let n=e.offsetParent;return ND(e)===n&&(n=n.ownerDocument.body),n}function iM(e,t){const n=ID(e);if(FD(e))return n;if(!PD(e)){let t=$D(e);for(;t&&!HD(t);){if(OD(t)&&!aM(t))return t;t=$D(t)}return n}let r=oM(e,t);for(;r&&MD(r)&&aM(r);)r=oM(r,t);return r&&HD(r)&&aM(r)&&!BD(r)?n:r||function(e){let t=$D(e);for(;PD(t)&&!HD(t);){if(BD(t))return t;if(FD(t))return null;t=$D(t)}return null}(e)||n}const sM={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o="fixed"===a,i=ND(r),s=!!t&&FD(t.floating);if(r===i||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=lD(1);const u=lD(0),d=PD(r);if((d||!d&&!o)&&(("body"!==CD(r)||DD(i))&&(l=UD(r)),PD(r))){const e=ZD(r);c=XD(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const p=!i||d||o?lD(0):eM(i,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}},getDocumentElement:ND,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[..."clippingAncestors"===n?FD(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=VD(e,[],!1).filter((e=>OD(e)&&"body"!==CD(e))),a=null;const o="fixed"===jD(e).position;let i=o?$D(e):e;for(;OD(i)&&!HD(i);){const t=jD(i),n=BD(i);n||"fixed"!==t.position||(a=null),(o?!n&&!a:!n&&"static"===t.position&&a&&["absolute","fixed"].includes(a.position)||DD(i)&&!n&&nM(e,i))?r=r.filter((e=>e!==i)):a=t,i=$D(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=o[0],s=o.reduce(((e,n)=>{const r=tM(t,n,a);return e.top=oD(r.top,e.top),e.right=aD(r.right,e.right),e.bottom=aD(r.bottom,e.bottom),e.left=oD(r.left,e.left),e}),tM(t,i,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:iM,getElementRects:async function(e){const t=this.getOffsetParent||iM,n=this.getDimensions,r=await n(e.floating);return{reference:rM(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=qD(e);return{width:t,height:n}},getScale:XD,isElement:OD,isRTL:function(e){return"rtl"===jD(e).direction}};function lM(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function cM(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=YD(e),u=a||o?[...c?VD(c):[],...VD(t)]:[];u.forEach((e=>{a&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const a=ND(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:f}=c;if(s||t(),!p||!f)return;const h={rootMargin:-sD(d)+"px "+-sD(a.clientWidth-(u+p))+"px "+-sD(a.clientHeight-(d+f))+"px "+-sD(u)+"px",threshold:oD(0,aD(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return i();r?i(!1,r):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}1!==r||lM(c,e.getBoundingClientRect())||i(),m=!1}try{r=new IntersectionObserver(g,{...h,root:a.ownerDocument})}catch(gQ){r=new IntersectionObserver(g,h)}r.observe(e)}(!0),o}(c,n):null;let p,f=-1,h=null;i&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!l&&h.observe(c),h.observe(t));let m=l?ZD(e):null;return l&&function t(){const r=ZD(e);m&&!lM(m,r)&&n();m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{a&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const uM=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:o,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:a}=e,o=await(null==r.isRTL?void 0:r.isRTL(a.floating)),i=fD(n),s=hD(n),l="y"===yD(n),c=["left","top"].includes(i)?-1:1,u=o&&l?-1:1,d=pD(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(f="end"===s?-1*h:h),l?{x:f*u,y:p*c}:{x:p*c,y:f*u}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:a+l.x,y:o+l.y,data:{...l,placement:i}}}}},dM=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=pD(e,t),c={x:n,y:r},u=await TD(t,l),d=yD(fD(a)),p=mD(d);let f=c[p],h=c[d];if(o){const e="y"===p?"bottom":"right";f=dD(f+u["y"===p?"top":"left"],f,f-u[e])}if(i){const e="y"===d?"bottom":"right";h=dD(h+u["y"===d?"top":"left"],h,h-u[e])}const m=s.fn({...t,[p]:f,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[p]:o,[d]:i}}}}}},pM=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:o,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=pD(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const y=fD(a),b=yD(s),v=fD(s)===s,k=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(v||!m?[kD(s)]:function(e){const t=kD(e);return[vD(e),t,vD(t)]}(s)),E="none"!==h;!p&&E&&w.push(...function(e,t,n,r){const a=hD(e);let o=function(e,t,n){const r=["left","right"],a=["right","left"],o=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?a:r:t?r:a;case"left":case"right":return t?o:i;default:return[]}}(fD(e),"start"===n,r);return a&&(o=o.map((e=>e+"-"+a)),t&&(o=o.concat(o.map(vD)))),o}(s,m,h,k));const S=[s,...w],T=await TD(t,g),x=[];let _=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&x.push(T[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=hD(e),a=bD(e),o=gD(a);let i="x"===a?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=kD(i)),[i,kD(i)]}(a,i,k);x.push(T[e[0]],T[e[1]])}if(_=[..._,{placement:a,overflows:x}],!x.every((e=>e<=0))){var A,C;const e=((null==(A=o.flip)?void 0:A.index)||0)+1,t=S[e];if(t)return{data:{index:e,overflows:_},reset:{placement:t}};let n=null==(C=_.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:C.placement;if(!n)switch(f){case"bestFit":{var I;const e=null==(I=_.filter((e=>{if(E){const t=yD(e.placement);return t===b||"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:I[0];e&&(n=e);break}case"initialPlacement":n=s}if(a!==n)return{reset:{placement:n}}}return{}}}},fM=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:o,platform:i,elements:s}=t,{apply:l=()=>{},...c}=pD(e,t),u=await TD(t,c),d=fD(a),p=hD(a),f="y"===yD(a),{width:h,height:m}=o.floating;let g,y;"top"===d||"bottom"===d?(g=d,y=p===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,g="end"===p?"top":"bottom");const b=m-u.top-u.bottom,v=h-u.left-u.right,k=aD(m-u[g],b),w=aD(h-u[y],v),E=!t.middlewareData.shift;let S=k,T=w;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(T=v),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=b),E&&!p){const e=oD(u.left,0),t=oD(u.right,0),n=oD(u.top,0),r=oD(u.bottom,0);f?T=h-2*(0!==e||0!==t?e+t:oD(u.left,u.right)):S=m-2*(0!==n||0!==r?n+r:oD(u.top,u.bottom))}await l({...t,availableWidth:T,availableHeight:S});const x=await i.getDimensions(s.floating);return h!==x.width||m!==x.height?{reset:{rects:!0}}:{}}}},hM=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=pD(e,t);switch(r){case"referenceHidden":{const e=xD(await TD(t,{...a,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:_D(e)}}}case"escaped":{const e=xD(await TD(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:_D(e)}}}default:return{}}}}},mM=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:o,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=pD(e,t)||{};if(null==c)return{};const d=wD(u),p={x:n,y:r},f=bD(a),h=gD(f),m=await i.getDimensions(c),g="y"===f,y=g?"top":"left",b=g?"bottom":"right",v=g?"clientHeight":"clientWidth",k=o.reference[h]+o.reference[f]-p[f]-o.floating[h],w=p[f]-o.reference[f],E=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let S=E?E[v]:0;S&&await(null==i.isElement?void 0:i.isElement(E))||(S=s.floating[v]||o.floating[h]);const T=k/2-w/2,x=S/2-m[h]/2-1,_=aD(d[y],x),A=aD(d[b],x),C=_,I=S-m[h]-A,N=S/2-m[h]/2+T,R=dD(C,N,I),O=!l.arrow&&null!=hD(a)&&N!==R&&o.reference[h]/2-(N<C?_:A)-m[h]/2<0,P=O?N<C?N-C:N-I:0;return{[f]:p[f]+P,data:{[f]:R,centerOffset:N-R-P,...O&&{alignmentOffset:P}},reset:O}}}),gM=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:o,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=pD(e,t),u={x:n,y:r},d=yD(a),p=mD(d);let f=u[p],h=u[d];const m=pD(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===p?"height":"width",t=o.reference[p]-o.floating[e]+g.mainAxis,n=o.reference[p]+o.reference[e]-g.mainAxis;f<t?f=t:f>n&&(f=n)}if(c){var y,b;const e="y"===p?"width":"height",t=["top","left"].includes(fD(a)),n=o.reference[d]-o.floating[e]+(t&&(null==(y=i.offset)?void 0:y[d])||0)+(t?0:g.crossAxis),r=o.reference[d]+o.reference[e]+(t?0:(null==(b=i.offset)?void 0:b[d])||0)-(t?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[p]:f,[d]:h}}}},yM=(e,t,n)=>{const r=new Map,a={platform:sM,...n},o={...a.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:i}=n,s=o.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:d}=SD(c,r,l),p=r,f={},h=0;for(let m=0;m<s.length;m++){const{name:n,fn:o}=s[m],{x:g,y:y,data:b,reset:v}=await o({x:u,y:d,initialPlacement:r,placement:p,strategy:a,middlewareData:f,rects:c,platform:i,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=y?y:d,f={...f,[n]:{...f[n],...b}},v&&h<=50&&(h++,"object"==typeof v&&(v.placement&&(p=v.placement),v.rects&&(c=!0===v.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):v.rects),({x:u,y:d}=SD(c,p,l))),m=-1)}return{x:u,y:d,placement:p,strategy:a,middlewareData:f}})(e,t,{...a,platform:o})};var bM="undefined"!=typeof document?V.useLayoutEffect:V.useEffect;function vM(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!vM(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;0!=r--;){const n=a[r];if(("_owner"!==n||!e.$$typeof)&&!vM(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function kM(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function wM(e,t){const n=kM(e);return Math.round(t*n)/n}function EM(e){const t=V.useRef(e);return bM((()=>{t.current=e})),t}const SM=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(a=n,{}.hasOwnProperty.call(a,"current"))?null!=n.current?mM({element:n.current,padding:r}).fn(t):{}:n?mM({element:n,padding:r}).fn(t):{};var a}}),TM=(e,t)=>({...dM(e),options:[e,t]}),xM=(e,t)=>({...gM(e),options:[e,t]}),_M=(e,t)=>({...pM(e),options:[e,t]}),AM=(e,t)=>({...fM(e),options:[e,t]}),CM=(e,t)=>({...hM(e),options:[e,t]}),IM=(e,t)=>({...SM(e),options:[e,t]});var NM=V.forwardRef(((e,t)=>{const{children:n,width:r=10,height:a=5,...o}=e;return jf.jsx(qL.svg,{...o,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:jf.jsx("polygon",{points:"0,0 30,0 15,10"})})}));NM.displayName="Arrow";var RM=NM;function OM(e){const[t,n]=V.useState(void 0);return _O((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let a,o;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;a=t.inlineSize,o=t.blockSize}else a=e.offsetWidth,o=e.offsetHeight;n({width:a,height:o})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}var PM="Popper",[LM,DM]=HL(PM),[MM,FM]=LM(PM),BM=e=>{const{__scopePopper:t,children:n}=e,[r,a]=V.useState(null);return jf.jsx(MM,{scope:t,anchor:r,onAnchorChange:a,children:n})};BM.displayName=PM;var zM="PopperAnchor",HM=V.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,o=FM(zM,n),i=V.useRef(null),s=zL(t,i);return V.useEffect((()=>{o.onAnchorChange((null==r?void 0:r.current)||i.current)})),r?null:jf.jsx(qL.div,{...a,ref:s})}));HM.displayName=zM;var jM="PopperContent",[UM,$M]=LM(jM),GM=V.forwardRef(((e,t)=>{var n,r,a,o,i,s;const{__scopePopper:l,side:c="bottom",sideOffset:u=0,align:d="center",alignOffset:p=0,arrowPadding:f=0,avoidCollisions:h=!0,collisionBoundary:m=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:b=!1,updatePositionStrategy:v="optimized",onPlaced:k,...w}=e,E=FM(jM,l),[S,T]=V.useState(null),x=zL(t,(e=>T(e))),[_,A]=V.useState(null),C=OM(_),I=(null==C?void 0:C.width)??0,N=(null==C?void 0:C.height)??0,R=c+("center"!==d?"-"+d:""),O="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},P=Array.isArray(m)?m:[m],L=P.length>0,D={padding:O,boundary:P.filter(YM),altBoundary:L},{refs:M,floatingStyles:F,placement:B,isPositioned:z,middlewareData:H}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:o,floating:i}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=V.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=V.useState(r);vM(p,r)||f(r);const[h,m]=V.useState(null),[g,y]=V.useState(null),b=V.useCallback((e=>{e!==E.current&&(E.current=e,m(e))}),[]),v=V.useCallback((e=>{e!==S.current&&(S.current=e,y(e))}),[]),k=o||h,w=i||g,E=V.useRef(null),S=V.useRef(null),T=V.useRef(u),x=null!=l,_=EM(l),A=EM(a),C=EM(c),I=V.useCallback((()=>{if(!E.current||!S.current)return;const e={placement:t,strategy:n,middleware:p};A.current&&(e.platform=A.current),yM(E.current,S.current,e).then((e=>{const t={...e,isPositioned:!1!==C.current};N.current&&!vM(T.current,t)&&(T.current=t,re.flushSync((()=>{d(t)})))}))}),[p,t,n,A,C]);bM((()=>{!1===c&&T.current.isPositioned&&(T.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const N=V.useRef(!1);bM((()=>(N.current=!0,()=>{N.current=!1})),[]),bM((()=>{if(k&&(E.current=k),w&&(S.current=w),k&&w){if(_.current)return _.current(k,w,I);I()}}),[k,w,I,_,x]);const R=V.useMemo((()=>({reference:E,floating:S,setReference:b,setFloating:v})),[b,v]),O=V.useMemo((()=>({reference:k,floating:w})),[k,w]),P=V.useMemo((()=>{const e={position:n,left:0,top:0};if(!O.floating)return e;const t=wM(O.floating,u.x),r=wM(O.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...kM(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,O.floating,u.x,u.y]);return V.useMemo((()=>({...u,update:I,refs:R,elements:O,floatingStyles:P})),[u,I,R,O,P])}({strategy:"fixed",placement:R,whileElementsMounted:(...e)=>cM(...e,{animationFrame:"always"===v}),elements:{reference:E.anchor},middleware:[(j={mainAxis:u+N,alignmentAxis:p},{...uM(j),options:[j,U]}),h&&TM({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?xM():void 0,...D}),h&&_M({...D}),AM({...D,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:a,height:o}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${a}px`),i.setProperty("--radix-popper-anchor-height",`${o}px`)}}),_&&IM({element:_,padding:f}),XM({arrowWidth:I,arrowHeight:N}),b&&CM({strategy:"referenceHidden",...D})]});var j,U;const[$,G]=KM(B),W=YL(k);_O((()=>{z&&(null==W||W())}),[z,W]);const q=null==(n=H.arrow)?void 0:n.x,Y=null==(r=H.arrow)?void 0:r.y,X=0!==(null==(a=H.arrow)?void 0:a.centerOffset),[K,Q]=V.useState();return _O((()=>{S&&Q(window.getComputedStyle(S).zIndex)}),[S]),jf.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:z?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:K,"--radix-popper-transform-origin":[null==(o=H.transformOrigin)?void 0:o.x,null==(i=H.transformOrigin)?void 0:i.y].join(" "),...(null==(s=H.hide)?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:jf.jsx(UM,{scope:l,placedSide:$,onArrowChange:A,arrowX:q,arrowY:Y,shouldHideArrow:X,children:jf.jsx(qL.div,{"data-side":$,"data-align":G,...w,ref:x,style:{...w.style,animation:z?void 0:"none"}})})})}));GM.displayName=jM;var VM="PopperArrow",WM={top:"bottom",right:"left",bottom:"top",left:"right"},qM=V.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,a=$M(VM,n),o=WM[a.placedSide];return jf.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:jf.jsx(RM,{...r,ref:t,style:{...r.style,display:"block"}})})}));function YM(e){return null!==e}qM.displayName=VM;var XM=e=>({name:"transformOrigin",options:e,fn(t){var n,r,a;const{placement:o,rects:i,middlewareData:s}=t,l=0!==(null==(n=s.arrow)?void 0:n.centerOffset),c=l?0:e.arrowWidth,u=l?0:e.arrowHeight,[d,p]=KM(o),f={start:"0%",center:"50%",end:"100%"}[p],h=((null==(r=s.arrow)?void 0:r.x)??0)+c/2,m=((null==(a=s.arrow)?void 0:a.y)??0)+u/2;let g="",y="";return"bottom"===d?(g=l?f:`${h}px`,y=-u+"px"):"top"===d?(g=l?f:`${h}px`,y=`${i.floating.height+u}px`):"right"===d?(g=-u+"px",y=l?f:`${m}px`):"left"===d&&(g=`${i.floating.width+u}px`,y=l?f:`${m}px`),{data:{x:g,y:y}}}});function KM(e){const[t,n="center"]=e.split("-");return[t,n]}var QM=BM,ZM=HM,JM=GM,eF=qM;var tF=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=V.useState(),r=V.useRef({}),a=V.useRef(e),o=V.useRef("none"),i=e?"mounted":"unmounted",[s,l]=function(e,t){return V.useReducer(((e,n)=>t[e][n]??e),e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return V.useEffect((()=>{const e=nF(r.current);o.current="mounted"===s?e:"none"}),[s]),_O((()=>{const t=r.current,n=a.current;if(n!==e){const r=o.current,i=nF(t);if(e)l("MOUNT");else if("none"===i||"none"===(null==t?void 0:t.display))l("UNMOUNT");else{l(n&&r!==i?"ANIMATION_OUT":"UNMOUNT")}a.current=e}}),[e,l]),_O((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,i=o=>{const i=nF(r.current).includes(o.animationName);if(o.target===t&&i&&(l("ANIMATION_END"),!a.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},s=e=>{e.target===t&&(o.current=nF(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}l("ANIMATION_END")}),[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:V.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),a="function"==typeof n?n({present:r.isPresent}):V.Children.only(n),o=zL(r.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;if(a)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}(a));return"function"==typeof n||r.isPresent?V.cloneElement(a,{ref:o}):null};function nF(e){return(null==e?void 0:e.animationName)||"none"}function rF({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,a]=function({defaultProp:e,onChange:t}){const n=V.useState(e),[r]=n,a=V.useRef(r),o=YL(t);return V.useEffect((()=>{a.current!==r&&(o(r),a.current=r)}),[r,a,o]),n}({defaultProp:t,onChange:n}),o=void 0!==e,i=o?e:r,s=YL(n);return[i,V.useCallback((t=>{if(o){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else a(t)}),[o,e,a,s])]}tF.displayName="Presence";var aF=V.forwardRef(((e,t)=>jf.jsx(qL.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));aF.displayName="VisuallyHidden";const oF=V.createContext(void 0),iF=({children:e,componentStyles:t})=>jf.jsx(oF.Provider,{value:{componentStyles:t},children:e}),sF=["light","dark"],lF="(prefers-color-scheme: dark)",cF="undefined"==typeof window,uF=V.createContext(void 0),dF={setColorMode:e=>{},colorModes:[]};function pF(e,t){const n=V.useContext(uF)??dF;return"dark"===(n.forcedColorMode??n.resolvedColorMode)?t:e}const fF=e=>(V.useContext(uF),jf.jsx(mF,{...e})),hF=["light","dark"],mF=({forcedColorMode:e,disableTransitionOnChange:t=!1,enableSystem:n=!1,enableColorScheme:r=!0,storageKey:a="inkeep-colorMode",colorModes:o=hF,defaultColorMode:i=(n?"system":"light"),attribute:s="data-theme",value:l,children:c,nonce:u,shadowHostId:d,rootId:p})=>{const[f,h]=V.useState((()=>yF(a,i))),[m,g]=V.useState((()=>yF(a))),y=l?Object.values(l):o,b=V.useCallback((e=>{var a;let o=e;if(!o)return;"system"===e&&n&&(o=vF());const c=l?l[o]:o,u=t?bF():null,f=d&&p&&(null==(a=document.getElementById(d))?void 0:a.shadowRoot),h=f?f.getElementById(p)??document.documentElement:document.documentElement;if("class"===s?(h.classList.remove(...y),c&&h.classList.add(c)):c?h.setAttribute(s,c):h.removeAttribute(s),r){const e=sF.includes(i)?i:null,t=sF.includes(o)?o:e;h.style.colorScheme=t}null==u||u()}),[]),v=V.useCallback((e=>{h(e);try{localStorage.setItem(a,e)}catch(gQ){}}),[e]),k=V.useCallback((t=>{const r=vF(t);g(r),"system"===f&&n&&!e&&b("system")}),[f,e]);V.useEffect((()=>{const e=window.matchMedia(lF);return e.addListener(k),k(e),()=>e.removeListener(k)}),[k]),V.useEffect((()=>{const e=e=>{if(e.key!==a)return;const t=e.newValue||i;v(t)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)}),[v]),V.useEffect((()=>{b(e??f)}),[e,f]);const w=V.useMemo((()=>({colorMode:f,setColorMode:v,forcedColorMode:e,resolvedColorMode:"system"===f?m:f,colorModes:n?[...o,"system"]:o,systemColorMode:n?m:void 0})),[f,v,e,m,n,o]);return jf.jsxs(uF.Provider,{value:w,children:[jf.jsx(gF,{forcedColorMode:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:r,storageKey:a,colorModes:o,defaultColorMode:i,attribute:s,value:l,children:c,attrs:y,nonce:u,shadowHostId:d,rootId:p}),c]})},gF=V.memo((({forcedColorMode:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:a,defaultColorMode:o,value:i,attrs:s,nonce:l,shadowHostId:c,rootId:u})=>{const d="system"===o,p=(()=>{const e=c&&u?`document.getElementById('${c}').shadowRoot.getElementById('${u}')`:"document.documentElement";if("class"===n){return`var d=${e},c=d.classList;${`c.remove(${s.map((e=>`'${e}'`)).join(",")})`};`}return`var d=${e},n='${n}',s='setAttribute';`})(),f=(()=>{if(!a)return"";return(sF.includes(o)?o:null)?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e"})(),h=(e,t=!1,r=!0)=>{const o=i?i[e]:e,s=t?`${e}|| ''`:`'${o}'`;let l="";return a&&r&&!t&&sF.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===n?l+=t||o?`c.add(${s})`:"null":o&&(l+=`d[s](n,${s})`),l},m=e?`!function(){${p}${h(e)}}()`:r?`!function(){try{${p}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${d})){var t='${lF}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${h(i?"x[e]":"e",!0)}}${d?"":`else{${h(o,!1,!1)}}`}${f}}catch(e){}}()`:`!function(){try{${p}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${h(i?"x[e]":"e",!0)}}else{${h(o,!1,!1)};}${f}}catch(t){}}();`;return jf.jsx("script",{nonce:l,dangerouslySetInnerHTML:{__html:m}})}),(()=>!0)),yF=(e,t)=>{if(cF)return;let n;try{n=localStorage.getItem(e)||void 0}catch(gQ){}return n||t},bF=()=>{const e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout((()=>{document.head.removeChild(e)}),1)}},vF=e=>{e||(e=window.matchMedia(lF));return e.matches?"dark":"light"};var kF=Object.prototype.hasOwnProperty;function wF(e,t,n){for(n of e.keys())if(EF(n,t))return n}function EF(e,t){var n,r,a;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&EF(e[r],t[r]););return-1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e){if((a=r)&&"object"==typeof a&&!(a=wF(t,a)))return!1;if(!t.has(a))return!1}return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e){if((a=r[0])&&"object"==typeof a&&!(a=wF(t,a)))return!1;if(!EF(r[1],t.get(a)))return!1}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return-1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}if(!n||"object"==typeof e){for(n in r=0,e){if(kF.call(e,n)&&++r&&!kF.call(t,n))return!1;if(!(n in t)||!EF(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!=e&&t!=t}function SF(){const{baseSettings:e}=BO(),[t,n]=V.useState([]),r=function(e){const t=V.useRef(void 0);EF(t.current,e)||(t.current=e);return t.current}(e.theme.styles),{customStyles:a,linksCount:o}=V.useMemo((()=>{if(!r||!Array.isArray(r))return{customStyles:null,loaded:!0};const{links:e,styleSheets:t}=r.reduce(((e,t)=>("link"===t.type?e.links.push(t):"style"===t.type&&e.styleSheets.push(t),e)),{links:[],styleSheets:[]}),a=t.map((e=>jf.jsx("style",{type:"text/css",dangerouslySetInnerHTML:{__html:e.value}},e.key??$f("link_")))),o=e.map((e=>{const t=e.key??$f("stylesheet_");return jf.jsx("link",{id:t,rel:"stylesheet",type:"text/css",href:e.value,onLoad:()=>{n((t=>[...new Set([...t,e.value])]))}},t)}));return{customStyles:jf.jsxs(jf.Fragment,{children:[o,a]}),linksCount:e.length}}),[r]);return{customStyles:a,loaded:t.length>=(o??0)}}const TF=({children:e})=>{const{baseSettings:t}=BO(),{theme:n,primaryBrandColor:r,shadowHost:a,rootElement:o,colorMode:i}=t,{primaryColors:s,varsClassName:l}=n,{fontFamily:c,fontSize:u,zIndex:d}=n,p=mE(s,r),f=function(e){const t={};for(const[n,r]of Object.entries(e)){const e=yE[n]||n,a=(n,r=[])=>{for(const[o,i]of Object.entries(n)){const n=[...r,o];if("object"==typeof i&&null!==i)a(i,n);else{const r=n.map((e=>e.replace(/([A-Z])/g,"-$1").toLowerCase())).join("-");t[`--ikp-${e}-${r}`]=i}}};a(r)}return t}({colors:If(n.colors,p),fontFamily:c,fontSize:u,zIndex:d}),{customStyles:h,loaded:m}=SF(),{sync:g,forcedColorMode:y,...b}=i??{},[v,k]=V.useState(),w=V.useRef(null);return V.useEffect((()=>{var e,t;if(!(null==g?void 0:g.target))return;const n="string"==typeof g.target?document.querySelector(g.target):g.target;if(!n)return;function r(e,t){return t.reduce(((t,n)=>({...t,[n]:e.getAttribute(n)})),{})}const a=new MutationObserver((()=>{var e,t;const a=r(n,g.attributes),o=(null==(e=g.isDarkMode)?void 0:e.call(g,a))?"dark":"light";null==(t=g.onChange)||t.call(g,o),k(o)}));a.observe(n,{attributes:!0,attributeFilter:g.attributes,childList:!1,subtree:!1}),w.current=a;const o=(null==(e=g.isDarkMode)?void 0:e.call(g,r(n,null==g?void 0:g.attributes)))?"dark":"light";return null==(t=g.onChange)||t.call(g,o),k(o),()=>a.disconnect()}),[g]),jf.jsxs(jf.Fragment,{children:[h,m&&jf.jsx(fF,{forcedColorMode:y??v,...b,shadowHostId:null==a?void 0:a.id,rootId:null==o?void 0:o.id,children:jf.jsx("div",{className:l,style:{display:"contents",...f},children:e})})]})};function xF(e){const{children:t,config:n,componentType:r}=e;return jf.jsx(FO,{value:{...n,componentType:r},children:jf.jsx(TF,{children:jf.jsx(XO,{children:t})})})}const _F=V.createContext(void 0),AF=({children:e,source:t})=>jf.jsx(_F.Provider,{value:{source:t},children:e}),CF=()=>{const e=V.useContext(_F);if(!e)throw new Error("useSourceItem must be used within a SourceItemProvider");return e};function IF(e,t){var n;const{prefix:r}=BO(),a=V.useContext(oF),o=function(e,t){return!!(null==t?void 0:t.componentStyles)&&e in t.componentStyles}(e,a);return[t,o?null==(n=null==a?void 0:a.componentStyles)?void 0:n[e]:void 0,`${r}-${aP(e)}`].filter(Boolean).join(" ")}function NF(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function RF(...e){return t=>{let n=!1;const r=e.map((e=>{const r=NF(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():NF(e[t],null)}}}}function OF(...e){return V.useCallback(RF(...e),e)}const PF=(...e)=>e.map((e=>{var t;return null==(t=null==e?void 0:e.trim)?void 0:t.call(e)})).filter(Boolean).join(" "),LF=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,DF=e=>{const t={};let n;for(;n=LF.exec(e);)t[n[1]]=n[2];return t},MF=(e,t)=>{if(rP(e)){if(rP(t))return`${e};${t}`;e=DF(e)}else rP(t)&&(t=DF(t));return Object.assign({},e??{},t??{})};function FF(...e){let t={};for(let n of e){for(let e in t)e.startsWith("on")&&"function"==typeof t[e]&&"function"==typeof n[e]?t[e]=nP(n[e],t[e]):t[e]="className"!==e&&"class"!==e?"style"!==e?void 0!==n[e]?n[e]:t[e]:MF(t[e],n[e]):PF(t[e],n[e]);for(let e in n)void 0===t[e]&&(t[e]=n[e])}return t}const BF=(e,t)=>{const n=V.memo(V.forwardRef(((n,r)=>{const{_id:a,className:o,children:i,...s}=t,{asChild:l,children:c,...u}=n,d=c||i,p=FF(s,u,{className:IF(a,o),"data-part":aP(a)});if(!l)return V.createElement(e,{...p,ref:r},d);const f=V.Children.only(d);if(!V.isValidElement(f))return null;const h=function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=r&&"isReactWarning"in r&&r.isReactWarning;return a?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}(f);return V.cloneElement(f,{...FF(p,f.props),ref:r?RF(r,h):h})})));return n.displayName=e.displayName||e.name,n},zF=new Proxy(BF,{apply(e,t,n){const r=n[0],a=n[1];return BF(r,a)}});function HF(){return HF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HF.apply(null,arguments)}function jF(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var UF=V.useLayoutEffect,$F=function(e,t){"function"!=typeof e?e.current=t:e(t)},GF={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},VF=function(e){Object.keys(GF).forEach((function(t){e.style.setProperty(t,GF[t],"important")}))},WF=null,qF=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize};var YF=function(){},XF=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],KF=!!document.documentElement.currentStyle,QF=function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n,r=(n=t,XF.reduce((function(e,t){return e[t]=n[t],e}),{})),a=r.boxSizing;return""===a?null:(KF&&"border-box"===a&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px"),{sizingStyle:r,paddingSize:parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),borderSize:parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth)})};function ZF(e,t,n){var r,a,o=(r=n,a=W.useRef(r),UF((function(){a.current=r})),a);V.useLayoutEffect((function(){var n=function(e){return o.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}}),[])}var JF=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],eB=function(e,t){var n=e.cacheMeasurements,r=e.maxRows,a=e.minRows,o=e.onChange,i=void 0===o?YF:o,s=e.onHeightChange,l=void 0===s?YF:s,c=jF(e,JF),u=void 0!==c.value,d=V.useRef(null),p=function(e,t){var n=W.useRef();return W.useCallback((function(r){e.current=r,n.current&&$F(n.current,null),n.current=t,t&&$F(t,r)}),[t])}(d,t),f=V.useRef(0),h=V.useRef(),m=function(){var e=d.current,t=n&&h.current?h.current:QF(e);if(t){h.current=t;var o=function(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=1/0),WF||((WF=document.createElement("textarea")).setAttribute("tabindex","-1"),WF.setAttribute("aria-hidden","true"),VF(WF)),null===WF.parentNode&&document.body.appendChild(WF);var a=e.paddingSize,o=e.borderSize,i=e.sizingStyle,s=i.boxSizing;Object.keys(i).forEach((function(e){var t=e;WF.style[t]=i[t]})),VF(WF),WF.value=t;var l=qF(WF,e);WF.value=t,l=qF(WF,e),WF.value="x";var c=WF.scrollHeight-a,u=c*n;"border-box"===s&&(u=u+a+o),l=Math.max(u,l);var d=c*r;return"border-box"===s&&(d=d+a+o),[l=Math.min(d,l),c]}(t,e.value||e.placeholder||"x",a,r),i=o[0],s=o[1];f.current!==i&&(f.current=i,e.style.setProperty("height",i+"px","important"),l(i,{rowHeight:s}))}};return V.useLayoutEffect(m),function(e,t){ZF(document.body,"reset",(function(n){e.current.form===n.target&&t(n)}))}(d,(function(){if(!u){var e=d.current,t=e.value;requestAnimationFrame((function(){t!==e.value&&m()}))}})),ZF(window,"resize",m),function(e){ZF(document.fonts,"loadingdone",e)}(m),V.createElement("textarea",HF({},c,{onChange:function(e){u||m(),i(e)},ref:p}))},tB=V.forwardRef(eB);function nB(e){const t=V.useRef({value:e,previous:e});return V.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}var rB="Checkbox",[aB,oB]=HL(rB),[iB,sB]=aB(rB),lB=V.forwardRef(((e,t)=>{const{__scopeCheckbox:n,name:r,checked:a,defaultChecked:o,required:i,disabled:s,value:l="on",onCheckedChange:c,form:u,...d}=e,[p,f]=V.useState(null),h=zL(t,(e=>f(e))),m=V.useRef(!1),g=!p||(u||!!p.closest("form")),[y=!1,b]=rF({prop:a,defaultProp:o,onChange:c}),v=V.useRef(y);return V.useEffect((()=>{const e=null==p?void 0:p.form;if(e){const t=()=>b(v.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[p,b]),jf.jsxs(iB,{scope:n,state:y,disabled:s,children:[jf.jsx(qL.button,{type:"button",role:"checkbox","aria-checked":pB(y)?"mixed":y,"aria-required":i,"data-state":fB(y),"data-disabled":s?"":void 0,disabled:s,value:l,...d,ref:h,onKeyDown:ML(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:ML(e.onClick,(e=>{b((e=>!!pB(e)||!e)),g&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())}))}),g&&jf.jsx(dB,{control:p,bubbles:!m.current,name:r,value:l,checked:y,required:i,disabled:s,form:u,style:{transform:"translateX(-100%)"},defaultChecked:!pB(o)&&o})]})}));lB.displayName=rB;var cB="CheckboxIndicator",uB=V.forwardRef(((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...a}=e,o=sB(cB,n);return jf.jsx(tF,{present:r||pB(o.state)||!0===o.state,children:jf.jsx(qL.span,{"data-state":fB(o.state),"data-disabled":o.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})}));uB.displayName=cB;var dB=e=>{const{control:t,checked:n,bubbles:r=!0,defaultChecked:a,...o}=e,i=V.useRef(null),s=nB(n),l=OM(t);V.useEffect((()=>{const e=i.current,t=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(t,"checked").set;if(s!==n&&a){const t=new Event("click",{bubbles:r});e.indeterminate=pB(n),a.call(e,!pB(n)&&n),e.dispatchEvent(t)}}),[s,n,r]);const c=V.useRef(!pB(n)&&n);return jf.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:a??c.current,...o,tabIndex:-1,ref:i,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function pB(e){return"indeterminate"===e}function fB(e){return pB(e)?"indeterminate":e?"checked":"unchecked"}var hB=lB,mB=uB,gB=0;function yB(){const 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}var bB="focusScope.autoFocusOnMount",vB="focusScope.autoFocusOnUnmount",kB={bubbles:!1,cancelable:!0},wB=V.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...i}=e,[s,l]=V.useState(null),c=YL(a),u=YL(o),d=V.useRef(null),p=zL(t,(e=>l(e))),f=V.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;V.useEffect((()=>{if(r){let e=function(e){if(f.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:xB(d.current,{select:!0})},t=function(e){if(f.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||xB(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&xB(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,s,f.paused]),V.useEffect((()=>{if(s){_B.add(f);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(bB,kB);s.addEventListener(bB,c),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(xB(r,{select:t}),document.activeElement!==n)return}((e=EB(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&xB(s))}return()=>{s.removeEventListener(bB,c),setTimeout((()=>{const e=new CustomEvent(vB,kB);s.addEventListener(vB,u),s.dispatchEvent(e),e.defaultPrevented||xB(t??document.body,{select:!0}),s.removeEventListener(vB,u),_B.remove(f)}),0)}}var e}),[s,c,u,f]);const h=V.useCallback((e=>{if(!n&&!r)return;if(f.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,a=document.activeElement;if(t&&a){const t=e.currentTarget,[r,o]=function(e){const t=EB(e),n=SB(t,e),r=SB(t.reverse(),e);return[n,r]}(t);r&&o?e.shiftKey||a!==o?e.shiftKey&&a===r&&(e.preventDefault(),n&&xB(o,{select:!0})):(e.preventDefault(),n&&xB(r,{select:!0})):a===t&&e.preventDefault()}}),[n,r,f.paused]);return jf.jsx(qL.div,{tabIndex:-1,...i,ref:p,onKeyDown:h})}));function EB(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const 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(;n.nextNode();)t.push(n.currentNode);return t}function SB(e,t){for(const n of e)if(!TB(n,{upTo:t}))return n}function TB(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function xB(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}wB.displayName="FocusScope";var _B=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=AB(e,t),e.unshift(t)},remove(t){var n;e=AB(e,t),null==(n=e[0])||n.resume()}}}();function AB(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var CB=new WeakMap,IB=new WeakMap,NB={},RB=0,OB=function(e){return e&&(e.host||OB(e.parentNode))},PB=function(e,t,n,r){var a=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=OB(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);NB[n]||(NB[n]=new WeakMap);var o=NB[n],i=[],s=new Set,l=new Set(a),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};a.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),a=null!==t&&"false"!==t,l=(CB.get(e)||0)+1,c=(o.get(e)||0)+1;CB.set(e,l),o.set(e,c),i.push(e),1===l&&a&&IB.set(e,!0),1===c&&e.setAttribute(n,"true"),a||e.setAttribute(r,"true")}catch(gQ){console.error("aria-hidden: cannot operate on ",e,gQ)}}))};return u(t),s.clear(),RB++,function(){i.forEach((function(e){var t=CB.get(e)-1,a=o.get(e)-1;CB.set(e,t),o.set(e,a),t||(IB.has(e)||e.removeAttribute(r),IB.delete(e)),a||e.removeAttribute(n)})),--RB||(CB=new WeakMap,CB=new WeakMap,IB=new WeakMap,NB={})}},LB=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live]"))),PB(r,a,n,"aria-hidden")):function(){return null}},DB=function(){return DB=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},DB.apply(this,arguments)};function MB(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function FB(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a<o;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var BB="right-scroll-bar-position",zB="width-before-scroll-bar";function HB(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var jB="undefined"!=typeof window?V.useLayoutEffect:V.useEffect,UB=new WeakMap;function $B(e,t){var n,r,a,o=(n=null,r=function(t){return e.forEach((function(e){return HB(e,t)}))},(a=V.useState((function(){return{value:n,callback:r,facade:{get current(){return a.value},set current(e){var t=a.value;t!==e&&(a.value=e,a.callback(e,t))}}}}))[0]).callback=r,a.facade);return jB((function(){var t=UB.get(o);if(t){var n=new Set(t),r=new Set(e),a=o.current;n.forEach((function(e){r.has(e)||HB(e,null)})),r.forEach((function(e){n.has(e)||HB(e,a)}))}UB.set(o,e)}),[e]),o}function GB(e){return e}var VB=function(e){var t=e.sideCar,n=MB(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return V.createElement(r,DB({},n))};VB.isSideCarExport=!0;var WB=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=GB);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var a=t(e,r);return n.push(a),function(){n=n.filter((function(e){return e!==a}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var a=n;n=[],a.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(o)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=DB({async:!0,ssr:!1},e),t}(),qB=function(){},YB=V.forwardRef((function(e,t){var n=V.useRef(null),r=V.useState({onScrollCapture:qB,onWheelCapture:qB,onTouchMoveCapture:qB}),a=r[0],o=r[1],i=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,p=e.sideCar,f=e.noIsolation,h=e.inert,m=e.allowPinchZoom,g=e.as,y=void 0===g?"div":g,b=e.gapMode,v=MB(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=p,w=$B([n,t]),E=DB(DB({},v),a);return V.createElement(V.Fragment,null,u&&V.createElement(k,{sideCar:WB,removeScrollBar:c,shards:d,noIsolation:f,inert:h,setCallbacks:o,allowPinchZoom:!!m,lockRef:n,gapMode:b}),i?V.cloneElement(V.Children.only(s),DB(DB({},E),{ref:w})):V.createElement(y,DB({},E,{className:l,ref:w}),s))}));YB.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},YB.classNames={fullWidth:zB,zeroRight:BB};function XB(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var KB=function(){var e=0,t=null;return{add:function(n){var r,a;0==e&&(t=XB())&&(a=n,(r=t).styleSheet?r.styleSheet.cssText=a:r.appendChild(document.createTextNode(a)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},QB=function(){var e,t=(e=KB(),function(t,n){V.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},ZB={left:0,top:0,right:0,gap:0},JB=function(e){return parseInt(e||"",10)||0},ez=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return ZB;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[JB(n),JB(r),JB(a)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},tz=QB(),nz="data-scroll-locked",rz=function(e,t,n,r){var a=e.left,o=e.top,i=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(nz,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(a,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(BB," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(zB," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(BB," .").concat(BB," {\n right: 0 ").concat(r,";\n }\n \n .").concat(zB," .").concat(zB," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(nz,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},az=function(){var e=parseInt(document.body.getAttribute(nz)||"0",10);return isFinite(e)?e:0},oz=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=void 0===r?"margin":r;V.useEffect((function(){return document.body.setAttribute(nz,(az()+1).toString()),function(){var e=az()-1;e<=0?document.body.removeAttribute(nz):document.body.setAttribute(nz,e.toString())}}),[]);var o=V.useMemo((function(){return ez(a)}),[a]);return V.createElement(tz,{styles:rz(o,!t,a,n?"":"!important")})},iz=!1;if("undefined"!=typeof window)try{var sz=Object.defineProperty({},"passive",{get:function(){return iz=!0,!0}});window.addEventListener("test",sz,sz),window.removeEventListener("test",sz,sz)}catch(l5){iz=!1}var lz=!!iz&&{passive:!1},cz=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},uz=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),dz(e,r)){var a=pz(e,r);if(a[1]>a[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},dz=function(e,t){return"v"===e?function(e){return cz(e,"overflowY")}(t):function(e){return cz(e,"overflowX")}(t)},pz=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},fz=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},hz=function(e){return[e.deltaX,e.deltaY]},mz=function(e){return e&&"current"in e?e.current:e},gz=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},yz=0,bz=[];function vz(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const kz=(wz=function(e){var t=V.useRef([]),n=V.useRef([0,0]),r=V.useRef(),a=V.useState(yz++)[0],o=V.useState(QB)[0],i=V.useRef(e);V.useEffect((function(){i.current=e}),[e]),V.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=FB([e.lockRef.current],(e.shards||[]).map(mz),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(a))})),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(a))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=V.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var a,o=fz(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-o[0],c="deltaY"in e?e.deltaY:s[1]-o[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var p=uz(d,u);if(!p)return!0;if(p?a=d:(a="v"===d?"h":"v",p=uz(d,u)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=a),!a)return!0;var f=r.current||a;return function(e,t,n,r){var a=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),o=a*r,i=n.target,s=t.contains(i),l=!1,c=o>0,u=0,d=0;do{var p=pz(e,i),f=p[0],h=p[1]-p[2]-a*f;(f||h)&&dz(e,i)&&(u+=h,d+=f),i=i instanceof ShadowRoot?i.host:i.parentNode}while(!s&&i!==document.body||s&&(t.contains(i)||t===i));return(c&&Math.abs(u)<1||!c&&Math.abs(d)<1)&&(l=!0),l}(f,t,e,"h"===f?l:c)}),[]),l=V.useCallback((function(e){var n=e;if(bz.length&&bz[bz.length-1]===o){var r="deltaY"in n?hz(n):fz(n),a=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&(t=e.delta,a=r,t[0]===a[0]&&t[1]===a[1]);var t,a}))[0];if(a&&a.should)n.cancelable&&n.preventDefault();else if(!a){var l=(i.current.shards||[]).map(mz).filter(Boolean).filter((function(e){return e.contains(n.target)}));(l.length>0?s(n,l[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),c=V.useCallback((function(e,n,r,a){var o={name:e,delta:n,target:r,should:a,shadowParent:vz(r)};t.current.push(o),setTimeout((function(){t.current=t.current.filter((function(e){return e!==o}))}),1)}),[]),u=V.useCallback((function(e){n.current=fz(e),r.current=void 0}),[]),d=V.useCallback((function(t){c(t.type,hz(t),t.target,s(t,e.lockRef.current))}),[]),p=V.useCallback((function(t){c(t.type,fz(t),t.target,s(t,e.lockRef.current))}),[]);V.useEffect((function(){return bz.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,lz),document.addEventListener("touchmove",l,lz),document.addEventListener("touchstart",u,lz),function(){bz=bz.filter((function(e){return e!==o})),document.removeEventListener("wheel",l,lz),document.removeEventListener("touchmove",l,lz),document.removeEventListener("touchstart",u,lz)}}),[]);var f=e.removeScrollBar,h=e.inert;return V.createElement(V.Fragment,null,h?V.createElement(o,{styles:gz(a)}):null,f?V.createElement(oz,{gapMode:e.gapMode}):null)},WB.useMedium(wz),VB);var wz,Ez=V.forwardRef((function(e,t){return V.createElement(YB,DB({},e,{ref:t,sideCar:kz}))}));Ez.classNames=YB.classNames;var Sz=V.createContext(void 0);function Tz(e){const t=V.useContext(Sz);return e||t||"ltr"}function xz(e,[t,n]){return Math.min(n,Math.max(t,e))}var _z="ScrollArea",[Az,Cz]=HL(_z),[Iz,Nz]=Az(_z),Rz=V.forwardRef(((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:a,scrollHideDelay:o=600,...i}=e,[s,l]=V.useState(null),[c,u]=V.useState(null),[d,p]=V.useState(null),[f,h]=V.useState(null),[m,g]=V.useState(null),[y,b]=V.useState(0),[v,k]=V.useState(0),[w,E]=V.useState(!1),[S,T]=V.useState(!1),x=zL(t,(e=>l(e))),_=Tz(a);return jf.jsx(Iz,{scope:n,type:r,dir:_,scrollHideDelay:o,scrollArea:s,viewport:c,onViewportChange:u,content:d,onContentChange:p,scrollbarX:f,onScrollbarXChange:h,scrollbarXEnabled:w,onScrollbarXEnabledChange:E,scrollbarY:m,onScrollbarYChange:g,scrollbarYEnabled:S,onScrollbarYEnabledChange:T,onCornerWidthChange:b,onCornerHeightChange:k,children:jf.jsx(qL.div,{dir:_,...i,ref:x,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":v+"px",...e.style}})})}));Rz.displayName=_z;var Oz="ScrollAreaViewport",Pz=V.forwardRef(((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:a,...o}=e,i=Nz(Oz,n),s=zL(t,V.useRef(null),i.onViewportChange);return jf.jsxs(jf.Fragment,{children:[jf.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),jf.jsx(qL.div,{"data-radix-scroll-area-viewport":"",...o,ref:s,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:jf.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})}));Pz.displayName=Oz;var Lz="ScrollAreaScrollbar",Dz=V.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,a=Nz(Lz,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:i}=a,s="horizontal"===e.orientation;return V.useEffect((()=>(s?o(!0):i(!0),()=>{s?o(!1):i(!1)})),[s,o,i]),"hover"===a.type?jf.jsx(Mz,{...r,ref:t,forceMount:n}):"scroll"===a.type?jf.jsx(Fz,{...r,ref:t,forceMount:n}):"auto"===a.type?jf.jsx(Bz,{...r,ref:t,forceMount:n}):"always"===a.type?jf.jsx(zz,{...r,ref:t}):null}));Dz.displayName=Lz;var Mz=V.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,a=Nz(Lz,e.__scopeScrollArea),[o,i]=V.useState(!1);return V.useEffect((()=>{const e=a.scrollArea;let t=0;if(e){const n=()=>{window.clearTimeout(t),i(!0)},r=()=>{t=window.setTimeout((()=>i(!1)),a.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}}),[a.scrollArea,a.scrollHideDelay]),jf.jsx(tF,{present:n||o,children:jf.jsx(Bz,{"data-state":o?"visible":"hidden",...r,ref:t})})})),Fz=V.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,a=Nz(Lz,e.__scopeScrollArea),o="horizontal"===e.orientation,i=aH((()=>l("SCROLL_END")),100),[s,l]=(c="hidden",u={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},V.useReducer(((e,t)=>u[e][t]??e),c));var c,u;return V.useEffect((()=>{if("idle"===s){const e=window.setTimeout((()=>l("HIDE")),a.scrollHideDelay);return()=>window.clearTimeout(e)}}),[s,a.scrollHideDelay,l]),V.useEffect((()=>{const e=a.viewport,t=o?"scrollLeft":"scrollTop";if(e){let n=e[t];const r=()=>{const r=e[t];n!==r&&(l("SCROLL"),i()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}}),[a.viewport,o,l,i]),jf.jsx(tF,{present:n||"hidden"!==s,children:jf.jsx(zz,{"data-state":"hidden"===s?"hidden":"visible",...r,ref:t,onPointerEnter:ML(e.onPointerEnter,(()=>l("POINTER_ENTER"))),onPointerLeave:ML(e.onPointerLeave,(()=>l("POINTER_LEAVE")))})})})),Bz=V.forwardRef(((e,t)=>{const n=Nz(Lz,e.__scopeScrollArea),{forceMount:r,...a}=e,[o,i]=V.useState(!1),s="horizontal"===e.orientation,l=aH((()=>{if(n.viewport){const e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;i(s?e:t)}}),10);return oH(n.viewport,l),oH(n.content,l),jf.jsx(tF,{present:r||o,children:jf.jsx(zz,{"data-state":o?"visible":"hidden",...a,ref:t})})})),zz=V.forwardRef(((e,t)=>{const{orientation:n="vertical",...r}=e,a=Nz(Lz,e.__scopeScrollArea),o=V.useRef(null),i=V.useRef(0),[s,l]=V.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=Zz(s.viewport,s.content),u={...r,sizes:s,onSizesChange:l,hasThumb:Boolean(c>0&&c<1),onThumbChange:e=>o.current=e,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:e=>i.current=e};function d(e,t){return function(e,t,n,r="ltr"){const a=Jz(n),o=a/2,i=t||o,s=a-i,l=n.scrollbar.paddingStart+i,c=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d="ltr"===r?[0,u]:[-1*u,0];return tH([l,c],d)(e)}(e,i.current,s,t)}return"horizontal"===n?jf.jsx(Hz,{...u,ref:t,onThumbPositionChange:()=>{if(a.viewport&&o.current){const e=eH(a.viewport.scrollLeft,s,a.dir);o.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollLeft=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollLeft=d(e,a.dir))}}):"vertical"===n?jf.jsx(jz,{...u,ref:t,onThumbPositionChange:()=>{if(a.viewport&&o.current){const e=eH(a.viewport.scrollTop,s);o.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollTop=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollTop=d(e))}}):null})),Hz=V.forwardRef(((e,t)=>{const{sizes:n,onSizesChange:r,...a}=e,o=Nz(Lz,e.__scopeScrollArea),[i,s]=V.useState(),l=V.useRef(null),c=zL(t,l,o.onScrollbarXChange);return V.useEffect((()=>{l.current&&s(getComputedStyle(l.current))}),[l]),jf.jsx(Gz,{"data-orientation":"horizontal",...a,ref:c,sizes:n,style:{bottom:0,left:"rtl"===o.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===o.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Jz(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){const r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),nH(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&i&&r({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:Qz(i.paddingLeft),paddingEnd:Qz(i.paddingRight)}})}})})),jz=V.forwardRef(((e,t)=>{const{sizes:n,onSizesChange:r,...a}=e,o=Nz(Lz,e.__scopeScrollArea),[i,s]=V.useState(),l=V.useRef(null),c=zL(t,l,o.onScrollbarYChange);return V.useEffect((()=>{l.current&&s(getComputedStyle(l.current))}),[l]),jf.jsx(Gz,{"data-orientation":"vertical",...a,ref:c,sizes:n,style:{top:0,right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Jz(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){const r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),nH(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&i&&r({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:Qz(i.paddingTop),paddingEnd:Qz(i.paddingBottom)}})}})})),[Uz,$z]=Az(Lz),Gz=V.forwardRef(((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:a,onThumbChange:o,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:u,onResize:d,...p}=e,f=Nz(Lz,n),[h,m]=V.useState(null),g=zL(t,(e=>m(e))),y=V.useRef(null),b=V.useRef(""),v=f.viewport,k=r.content-r.viewport,w=YL(u),E=YL(l),S=aH(d,10);function T(e){if(y.current){const t=e.clientX-y.current.left,n=e.clientY-y.current.top;c({x:t,y:n})}}return V.useEffect((()=>{const e=e=>{const t=e.target;(null==h?void 0:h.contains(t))&&w(e,k)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})}),[v,h,k,w]),V.useEffect(E,[r,E]),oH(h,S),oH(f.content,S),jf.jsx(Uz,{scope:n,scrollbar:h,hasThumb:a,onThumbChange:YL(o),onThumbPointerUp:YL(i),onThumbPositionChange:E,onThumbPointerDown:YL(s),children:jf.jsx(qL.div,{...p,ref:g,style:{position:"absolute",...p.style},onPointerDown:ML(e.onPointerDown,(e=>{if(0===e.button){e.target.setPointerCapture(e.pointerId),y.current=h.getBoundingClientRect(),b.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",f.viewport&&(f.viewport.style.scrollBehavior="auto"),T(e)}})),onPointerMove:ML(e.onPointerMove,T),onPointerUp:ML(e.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=b.current,f.viewport&&(f.viewport.style.scrollBehavior=""),y.current=null}))})})})),Vz="ScrollAreaThumb",Wz=V.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,a=$z(Vz,e.__scopeScrollArea);return jf.jsx(tF,{present:n||a.hasThumb,children:jf.jsx(qz,{ref:t,...r})})})),qz=V.forwardRef(((e,t)=>{const{__scopeScrollArea:n,style:r,...a}=e,o=Nz(Vz,n),i=$z(Vz,n),{onThumbPositionChange:s}=i,l=zL(t,(e=>i.onThumbChange(e))),c=V.useRef(void 0),u=aH((()=>{c.current&&(c.current(),c.current=void 0)}),100);return V.useEffect((()=>{const e=o.viewport;if(e){const t=()=>{if(u(),!c.current){const t=rH(e,s);c.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}}),[o.viewport,u,s]),jf.jsx(qL.div,{"data-state":i.hasThumb?"visible":"hidden",...a,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:ML(e.onPointerDownCapture,(e=>{const t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;i.onThumbPointerDown({x:n,y:r})})),onPointerUp:ML(e.onPointerUp,i.onThumbPointerUp)})}));Wz.displayName=Vz;var Yz="ScrollAreaCorner",Xz=V.forwardRef(((e,t)=>{const n=Nz(Yz,e.__scopeScrollArea),r=Boolean(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?jf.jsx(Kz,{...e,ref:t}):null}));Xz.displayName=Yz;var Kz=V.forwardRef(((e,t)=>{const{__scopeScrollArea:n,...r}=e,a=Nz(Yz,n),[o,i]=V.useState(0),[s,l]=V.useState(0),c=Boolean(o&&s);return oH(a.scrollbarX,(()=>{var e;const t=(null==(e=a.scrollbarX)?void 0:e.offsetHeight)||0;a.onCornerHeightChange(t),l(t)})),oH(a.scrollbarY,(()=>{var e;const t=(null==(e=a.scrollbarY)?void 0:e.offsetWidth)||0;a.onCornerWidthChange(t),i(t)})),c?jf.jsx(qL.div,{...r,ref:t,style:{width:o,height:s,position:"absolute",right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:0,...e.style}}):null}));function Qz(e){return e?parseInt(e,10):0}function Zz(e,t){const n=e/t;return isNaN(n)?0:n}function Jz(e){const t=Zz(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function eH(e,t,n="ltr"){const r=Jz(t),a=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-a,i=t.content-t.viewport,s=o-r,l=xz(e,"ltr"===n?[0,i]:[-1*i,0]);return tH([0,i],[0,s])(l)}function tH(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function nH(e,t){return e>0&&e<t}var rH=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function a(){const o={left:e.scrollLeft,top:e.scrollTop},i=n.left!==o.left,s=n.top!==o.top;(i||s)&&t(),n=o,r=window.requestAnimationFrame(a)}(),()=>window.cancelAnimationFrame(r)};function aH(e,t){const n=YL(e),r=V.useRef(0);return V.useEffect((()=>()=>window.clearTimeout(r.current)),[]),V.useCallback((()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)}),[n,t])}function oH(e,t){const n=YL(t);_O((()=>{let t=0;if(e){const r=new ResizeObserver((()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)}));return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}}),[e,n])}var iH=Rz,sH=Pz,lH=Xz;var cH=[" ","Enter","ArrowUp","ArrowDown"],uH=[" ","Enter"],dH="Select",[pH,fH,hH]=function(e){const t=e+"CollectionProvider",[n,r]=HL(t),[a,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=e=>{const{scope:t,children:n}=e,r=W.useRef(null),o=W.useRef(new Map).current;return jf.jsx(a,{scope:t,itemMap:o,collectionRef:r,children:n})};i.displayName=t;const s=e+"CollectionSlot",l=W.forwardRef(((e,t)=>{const{scope:n,children:r}=e,a=zL(t,o(s,n).collectionRef);return jf.jsx(UL,{ref:a,children:r})}));l.displayName=s;const c=e+"CollectionItemSlot",u="data-radix-collection-item",d=W.forwardRef(((e,t)=>{const{scope:n,children:r,...a}=e,i=W.useRef(null),s=zL(t,i),l=o(c,n);return W.useEffect((()=>(l.itemMap.set(i,{ref:i,...a}),()=>{l.itemMap.delete(i)}))),jf.jsx(UL,{[u]:"",ref:s,children:r})}));return d.displayName=c,[{Provider:i,Slot:l,ItemSlot:d},function(t){const n=o(e+"CollectionConsumer",t);return W.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${u}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},r]}(dH),[mH,gH]=HL(dH,[hH,DM]),yH=DM(),[bH,vH]=mH(dH),[kH,wH]=mH(dH),EH=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:a,onOpenChange:o,value:i,defaultValue:s,onValueChange:l,dir:c,name:u,autoComplete:d,disabled:p,required:f,form:h}=e,m=yH(t),[g,y]=V.useState(null),[b,v]=V.useState(null),[k,w]=V.useState(!1),E=Tz(c),[S=!1,T]=rF({prop:r,defaultProp:a,onChange:o}),[x,_]=rF({prop:i,defaultProp:s,onChange:l}),A=V.useRef(null),C=!g||(h||!!g.closest("form")),[I,N]=V.useState(new Set),R=Array.from(I).map((e=>e.props.value)).join(";");return jf.jsx(QM,{...m,children:jf.jsxs(bH,{required:f,scope:t,trigger:g,onTriggerChange:y,valueNode:b,onValueNodeChange:v,valueNodeHasChildren:k,onValueNodeHasChildrenChange:w,contentId:IO(),value:x,onValueChange:_,open:S,onOpenChange:T,dir:E,triggerPointerDownPosRef:A,disabled:p,children:[jf.jsx(pH.Provider,{scope:t,children:jf.jsx(kH,{scope:e.__scopeSelect,onNativeOptionAdd:V.useCallback((e=>{N((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:V.useCallback((e=>{N((t=>{const n=new Set(t);return n.delete(e),n}))}),[]),children:n})}),C?jf.jsxs(rj,{"aria-hidden":!0,required:f,tabIndex:-1,name:u,autoComplete:d,value:x,onChange:e=>_(e.target.value),disabled:p,form:h,children:[void 0===x?jf.jsx("option",{value:""}):null,Array.from(I)]},R):null]})})};EH.displayName=dH;var SH="SelectTrigger",TH=V.forwardRef(((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...a}=e,o=yH(n),i=vH(SH,n),s=i.disabled||r,l=zL(t,i.onTriggerChange),c=fH(n),u=V.useRef("touch"),[d,p,f]=aj((e=>{const t=c().filter((e=>!e.disabled)),n=t.find((e=>e.value===i.value)),r=oj(t,e,n);void 0!==r&&i.onValueChange(r.value)})),h=e=>{s||(i.onOpenChange(!0),f()),e&&(i.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return jf.jsx(ZM,{asChild:!0,...o,children:jf.jsx(qL.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":nj(i.value)?"":void 0,...a,ref:l,onClick:ML(a.onClick,(e=>{e.currentTarget.focus(),"mouse"!==u.current&&h(e)})),onPointerDown:ML(a.onPointerDown,(e=>{u.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(h(e),e.preventDefault())})),onKeyDown:ML(a.onKeyDown,(e=>{const t=""!==d.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||p(e.key),t&&" "===e.key||cH.includes(e.key)&&(h(),e.preventDefault())}))})})}));TH.displayName=SH;var xH="SelectValue",_H=V.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:a,children:o,placeholder:i="",...s}=e,l=vH(xH,n),{onValueNodeHasChildrenChange:c}=l,u=void 0!==o,d=zL(t,l.onValueNodeChange);return _O((()=>{c(u)}),[c,u]),jf.jsx(qL.span,{...s,ref:d,style:{pointerEvents:"none"},children:nj(l.value)?jf.jsx(jf.Fragment,{children:i}):o})}));_H.displayName=xH;var AH=V.forwardRef(((e,t)=>{const{__scopeSelect:n,children:r,...a}=e;return jf.jsx(qL.span,{"aria-hidden":!0,...a,ref:t,children:r||"▼"})}));AH.displayName="SelectIcon";var CH="SelectContent",IH=V.forwardRef(((e,t)=>{const n=vH(CH,e.__scopeSelect),[r,a]=V.useState();if(_O((()=>{a(new DocumentFragment)}),[]),!n.open){const t=r;return t?re.createPortal(jf.jsx(RH,{scope:e.__scopeSelect,children:jf.jsx(pH.Slot,{scope:e.__scopeSelect,children:jf.jsx("div",{children:e.children})})}),t):null}return jf.jsx(PH,{...e,ref:t})}));IH.displayName=CH;var NH=10,[RH,OH]=mH(CH),PH=V.forwardRef(((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:o,onPointerDownOutside:i,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:p,collisionPadding:f,sticky:h,hideWhenDetached:m,avoidCollisions:g,...y}=e,b=vH(CH,n),[v,k]=V.useState(null),[w,E]=V.useState(null),S=zL(t,(e=>k(e))),[T,x]=V.useState(null),[_,A]=V.useState(null),C=fH(n),[I,N]=V.useState(!1),R=V.useRef(!1);V.useEffect((()=>{if(v)return LB(v)}),[v]),V.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??yB()),document.body.insertAdjacentElement("beforeend",e[1]??yB()),gB++,()=>{1===gB&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),gB--}}),[]);const O=V.useCallback((e=>{const[t,...n]=C().map((e=>e.ref.current)),[r]=n.slice(-1),a=document.activeElement;for(const o of e){if(o===a)return;if(null==o||o.scrollIntoView({block:"nearest"}),o===t&&w&&(w.scrollTop=0),o===r&&w&&(w.scrollTop=w.scrollHeight),null==o||o.focus(),document.activeElement!==a)return}}),[C,w]),P=V.useCallback((()=>O([T,v])),[O,T,v]);V.useEffect((()=>{I&&P()}),[I,P]);const{onOpenChange:L,triggerPointerDownPosRef:D}=b;V.useEffect((()=>{if(v){let e={x:0,y:0};const t=t=>{var n,r;e={x:Math.abs(Math.round(t.pageX)-((null==(n=D.current)?void 0:n.x)??0)),y:Math.abs(Math.round(t.pageY)-((null==(r=D.current)?void 0:r.y)??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():v.contains(n.target)||L(!1),document.removeEventListener("pointermove",t),D.current=null};return null!==D.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[v,L,D]),V.useEffect((()=>{const e=()=>L(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[L]);const[M,F]=aj((e=>{const t=C().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=oj(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),B=V.useCallback(((e,t,n)=>{const r=!R.current&&!n;(void 0!==b.value&&b.value===t||r)&&(x(e),r&&(R.current=!0))}),[b.value]),z=V.useCallback((()=>null==v?void 0:v.focus()),[v]),H=V.useCallback(((e,t,n)=>{const r=!R.current&&!n;(void 0!==b.value&&b.value===t||r)&&A(e)}),[b.value]),j="popper"===r?DH:LH,U=j===DH?{side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:p,collisionPadding:f,sticky:h,hideWhenDetached:m,avoidCollisions:g}:{};return jf.jsx(RH,{scope:n,content:v,viewport:w,onViewportChange:E,itemRefCallback:B,selectedItem:T,onItemLeave:z,itemTextRefCallback:H,focusSelectedItem:P,selectedItemText:_,position:r,isPositioned:I,searchRef:M,children:jf.jsx(Ez,{as:UL,allowPinchZoom:!0,children:jf.jsx(wB,{asChild:!0,trapped:b.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:ML(a,(e=>{var t;null==(t=b.trigger)||t.focus({preventScroll:!0}),e.preventDefault()})),children:jf.jsx(eD,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:jf.jsx(j,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:e=>e.preventDefault(),...y,...U,onPlaced:()=>N(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:ML(y.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||F(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=C().filter((e=>!e.disabled)).map((e=>e.ref.current));if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout((()=>O(t))),e.preventDefault()}}))})})})})})}));PH.displayName="SelectContentImpl";var LH=V.forwardRef(((e,t)=>{const{__scopeSelect:n,onPlaced:r,...a}=e,o=vH(CH,n),i=OH(CH,n),[s,l]=V.useState(null),[c,u]=V.useState(null),d=zL(t,(e=>u(e))),p=fH(n),f=V.useRef(!1),h=V.useRef(!0),{viewport:m,selectedItem:g,selectedItemText:y,focusSelectedItem:b}=i,v=V.useCallback((()=>{if(o.trigger&&o.valueNode&&s&&c&&m&&g&&y){const e=o.trigger.getBoundingClientRect(),t=c.getBoundingClientRect(),n=o.valueNode.getBoundingClientRect(),a=y.getBoundingClientRect();if("rtl"!==o.dir){const r=a.left-t.left,o=n.left-r,i=e.left-o,l=e.width+i,c=Math.max(l,t.width),u=window.innerWidth-NH,d=xz(o,[NH,Math.max(NH,u-c)]);s.style.minWidth=l+"px",s.style.left=d+"px"}else{const r=t.right-a.right,o=window.innerWidth-n.right-r,i=window.innerWidth-e.right-o,l=e.width+i,c=Math.max(l,t.width),u=window.innerWidth-NH,d=xz(o,[NH,Math.max(NH,u-c)]);s.style.minWidth=l+"px",s.style.right=d+"px"}const i=p(),l=window.innerHeight-2*NH,u=m.scrollHeight,d=window.getComputedStyle(c),h=parseInt(d.borderTopWidth,10),b=parseInt(d.paddingTop,10),v=parseInt(d.borderBottomWidth,10),k=h+b+u+parseInt(d.paddingBottom,10)+v,w=Math.min(5*g.offsetHeight,k),E=window.getComputedStyle(m),S=parseInt(E.paddingTop,10),T=parseInt(E.paddingBottom,10),x=e.top+e.height/2-NH,_=l-x,A=g.offsetHeight/2,C=h+b+(g.offsetTop+A),I=k-C;if(C<=x){const e=i.length>0&&g===i[i.length-1].ref.current;s.style.bottom="0px";const t=c.clientHeight-m.offsetTop-m.offsetHeight,n=C+Math.max(_,A+(e?T:0)+t+v);s.style.height=n+"px"}else{const e=i.length>0&&g===i[0].ref.current;s.style.top="0px";const t=Math.max(x,h+m.offsetTop+(e?S:0)+A)+I;s.style.height=t+"px",m.scrollTop=C-x+m.offsetTop}s.style.margin=`${NH}px 0`,s.style.minHeight=w+"px",s.style.maxHeight=l+"px",null==r||r(),requestAnimationFrame((()=>f.current=!0))}}),[p,o.trigger,o.valueNode,s,c,m,g,y,o.dir,r]);_O((()=>v()),[v]);const[k,w]=V.useState();_O((()=>{c&&w(window.getComputedStyle(c).zIndex)}),[c]);const E=V.useCallback((e=>{e&&!0===h.current&&(v(),null==b||b(),h.current=!1)}),[v,b]);return jf.jsx(MH,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:f,onScrollButtonChange:E,children:jf.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:jf.jsx(qL.div,{...a,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})}));LH.displayName="SelectItemAlignedPosition";var DH=V.forwardRef(((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:a=NH,...o}=e,i=yH(n);return jf.jsx(JM,{...i,...o,ref:t,align:r,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)"}})}));DH.displayName="SelectPopperPosition";var[MH,FH]=mH(CH,{}),BH="SelectViewport",zH=V.forwardRef(((e,t)=>{const{__scopeSelect:n,nonce:r,...a}=e,o=OH(BH,n),i=FH(BH,n),s=zL(t,o.onViewportChange),l=V.useRef(0);return jf.jsxs(jf.Fragment,{children:[jf.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:r}),jf.jsx(pH.Slot,{scope:n,children:jf.jsx(qL.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:ML(a.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=i;if((null==r?void 0:r.current)&&n){const e=Math.abs(l.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*NH,a=parseFloat(n.style.minHeight),o=parseFloat(n.style.height),i=Math.max(a,o);if(i<r){const a=i+e,o=Math.min(r,a),s=a-o;n.style.height=o+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}l.current=t.scrollTop}))})})]})}));zH.displayName=BH;var HH="SelectGroup",[jH,UH]=mH(HH);V.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=IO();return jf.jsx(jH,{scope:n,id:a,children:jf.jsx(qL.div,{role:"group","aria-labelledby":a,...r,ref:t})})})).displayName=HH;var $H="SelectLabel";V.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=UH($H,n);return jf.jsx(qL.div,{id:a.id,...r,ref:t})})).displayName=$H;var GH="SelectItem",[VH,WH]=mH(GH),qH=V.forwardRef(((e,t)=>{const{__scopeSelect:n,value:r,disabled:a=!1,textValue:o,...i}=e,s=vH(GH,n),l=OH(GH,n),c=s.value===r,[u,d]=V.useState(o??""),[p,f]=V.useState(!1),h=zL(t,(e=>{var t;return null==(t=l.itemRefCallback)?void 0:t.call(l,e,r,a)})),m=IO(),g=V.useRef("touch"),y=()=>{a||(s.onValueChange(r),s.onOpenChange(!1))};if(""===r)throw new 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 jf.jsx(VH,{scope:n,value:r,disabled:a,textId:m,isSelected:c,onItemTextChange:V.useCallback((e=>{d((t=>t||((null==e?void 0:e.textContent)??"").trim()))}),[]),children:jf.jsx(pH.ItemSlot,{scope:n,value:r,disabled:a,textValue:u,children:jf.jsx(qL.div,{role:"option","aria-labelledby":m,"data-highlighted":p?"":void 0,"aria-selected":c&&p,"data-state":c?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...i,ref:h,onFocus:ML(i.onFocus,(()=>f(!0))),onBlur:ML(i.onBlur,(()=>f(!1))),onClick:ML(i.onClick,(()=>{"mouse"!==g.current&&y()})),onPointerUp:ML(i.onPointerUp,(()=>{"mouse"===g.current&&y()})),onPointerDown:ML(i.onPointerDown,(e=>{g.current=e.pointerType})),onPointerMove:ML(i.onPointerMove,(e=>{var t;g.current=e.pointerType,a?null==(t=l.onItemLeave)||t.call(l):"mouse"===g.current&&e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:ML(i.onPointerLeave,(e=>{var t;e.currentTarget===document.activeElement&&(null==(t=l.onItemLeave)||t.call(l))})),onKeyDown:ML(i.onKeyDown,(e=>{var t;""!==(null==(t=l.searchRef)?void 0:t.current)&&" "===e.key||(uH.includes(e.key)&&y()," "===e.key&&e.preventDefault())}))})})})}));qH.displayName=GH;var YH="SelectItemText",XH=V.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:a,...o}=e,i=vH(YH,n),s=OH(YH,n),l=WH(YH,n),c=wH(YH,n),[u,d]=V.useState(null),p=zL(t,(e=>d(e)),l.onItemTextChange,(e=>{var t;return null==(t=s.itemTextRefCallback)?void 0:t.call(s,e,l.value,l.disabled)})),f=null==u?void 0:u.textContent,h=V.useMemo((()=>jf.jsx("option",{value:l.value,disabled:l.disabled,children:f},l.value)),[l.disabled,l.value,f]),{onNativeOptionAdd:m,onNativeOptionRemove:g}=c;return _O((()=>(m(h),()=>g(h))),[m,g,h]),jf.jsxs(jf.Fragment,{children:[jf.jsx(qL.span,{id:l.textId,...o,ref:p}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?re.createPortal(o.children,i.valueNode):null]})}));XH.displayName=YH;var KH="SelectItemIndicator",QH=V.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e;return WH(KH,n).isSelected?jf.jsx(qL.span,{"aria-hidden":!0,...r,ref:t}):null}));QH.displayName=KH;var ZH="SelectScrollUpButton";V.forwardRef(((e,t)=>{const n=OH(ZH,e.__scopeSelect),r=FH(ZH,e.__scopeSelect),[a,o]=V.useState(!1),i=zL(t,r.onScrollButtonChange);return _O((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;o(e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),a?jf.jsx(ej,{...e,ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null})).displayName=ZH;var JH="SelectScrollDownButton";V.forwardRef(((e,t)=>{const n=OH(JH,e.__scopeSelect),r=FH(JH,e.__scopeSelect),[a,o]=V.useState(!1),i=zL(t,r.onScrollButtonChange);return _O((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;o(n)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),a?jf.jsx(ej,{...e,ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null})).displayName=JH;var ej=V.forwardRef(((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...a}=e,o=OH("SelectScrollButton",n),i=V.useRef(null),s=fH(n),l=V.useCallback((()=>{null!==i.current&&(window.clearInterval(i.current),i.current=null)}),[]);return V.useEffect((()=>()=>l()),[l]),_O((()=>{var e;const t=s().find((e=>e.ref.current===document.activeElement));null==(e=null==t?void 0:t.ref.current)||e.scrollIntoView({block:"nearest"})}),[s]),jf.jsx(qL.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:ML(a.onPointerDown,(()=>{null===i.current&&(i.current=window.setInterval(r,50))})),onPointerMove:ML(a.onPointerMove,(()=>{var e;null==(e=o.onItemLeave)||e.call(o),null===i.current&&(i.current=window.setInterval(r,50))})),onPointerLeave:ML(a.onPointerLeave,(()=>{l()}))})}));V.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e;return jf.jsx(qL.div,{"aria-hidden":!0,...r,ref:t})})).displayName="SelectSeparator";var tj="SelectArrow";function nj(e){return""===e||void 0===e}V.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=yH(n),o=vH(tj,n),i=OH(tj,n);return o.open&&"popper"===i.position?jf.jsx(eF,{...a,...r,ref:t}):null})).displayName=tj;var rj=V.forwardRef(((e,t)=>{const{value:n,...r}=e,a=V.useRef(null),o=zL(t,a),i=nB(n);return V.useEffect((()=>{const e=a.current,t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(i!==n&&r){const t=new Event("change",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}}),[i,n]),jf.jsx(aF,{asChild:!0,children:jf.jsx("select",{...r,ref:o,defaultValue:n})})}));function aj(e){const t=YL(e),n=V.useRef(""),r=V.useRef(0),a=V.useCallback((e=>{const a=n.current+e;t(a),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout((()=>e("")),1e3))}(a)}),[t]),o=V.useCallback((()=>{n.current="",window.clearTimeout(r.current)}),[]);return V.useEffect((()=>()=>window.clearTimeout(r.current)),[]),[n,a,o]}function oj(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,a=n?e.indexOf(n):-1;let o=(i=e,s=Math.max(a,0),i.map(((e,t)=>i[(s+t)%i.length])));var i,s;1===r.length&&(o=o.filter((e=>e!==n)));const l=o.find((e=>e.textValue.toLowerCase().startsWith(r.toLowerCase())));return l!==n?l:void 0}rj.displayName="BubbleSelect";var ij=EH,sj=TH,lj=_H,cj=AH,uj=IH,dj=zH,pj=qH,fj=XH,hj=QH,mj={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},gj=W.createContext&&W.createContext(mj),yj=["attr","size","title"];function bj(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function vj(){return vj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vj.apply(this,arguments)}function kj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kj(Object(n),!0).forEach((function(t){Ej(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ej(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sj(e){return e&&e.map(((e,t)=>W.createElement(e.tag,wj({key:t},e.attr),Sj(e.child))))}function Tj(e){return t=>W.createElement(xj,vj({attr:wj({},e.attr)},t),Sj(e.child))}function xj(e){var t=t=>{var n,{attr:r,size:a,title:o}=e,i=bj(e,yj),s=a||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),W.createElement("svg",vj({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,i,{className:n,style:wj(wj({color:e.color||t.color},t.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&W.createElement("title",null,o),e.children)};return void 0!==gj?W.createElement(gj.Consumer,null,(e=>t(e))):t(mj)}function _j(e,t){return(_j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}
39
39
  /*!
40
40
  * content-type
41
41
  * Copyright(c) 2015 Douglas Christopher Wilson