@inkeep/cxkit-js 0.5.38 → 0.5.39

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 N_(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 R_=Symbol.for("react.transitional.element"),O_=Symbol.for("react.portal"),P_=Symbol.for("react.fragment"),L_=Symbol.for("react.strict_mode"),D_=Symbol.for("react.profiler"),M_=Symbol.for("react.provider"),F_=Symbol.for("react.consumer"),B_=Symbol.for("react.context"),z_=Symbol.for("react.forward_ref"),j_=Symbol.for("react.suspense"),H_=Symbol.for("react.suspense_list"),U_=Symbol.for("react.memo"),$_=Symbol.for("react.lazy"),G_=Symbol.for("react.scope"),V_=Symbol.for("react.debug_trace_mode"),W_=Symbol.for("react.offscreen"),q_=Symbol.for("react.legacy_hidden"),Y_=Symbol.for("react.memo_cache_sentinel"),X_=Symbol.iterator,K_=Array.isArray;function Q_(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 Z_=new MessageChannel,J_=[];function eA(e){J_.push(e),Z_.port2.postMessage(null)}function tA(e){setTimeout((function(){throw e}))}Z_.port1.onmessage=function(){var e=J_.shift();e&&e()};var nA=Promise,rA="function"==typeof queueMicrotask?queueMicrotask:function(e){nA.resolve(null).then(e).catch(tA)},aA=null,oA=0;function iA(e,t){if(0!==t.byteLength)if(2048<t.byteLength)0<oA&&(e.enqueue(new Uint8Array(aA.buffer,0,oA)),aA=new Uint8Array(2048),oA=0),e.enqueue(t);else{var n=aA.length-oA;n<t.byteLength&&(0===n?e.enqueue(aA):(aA.set(t.subarray(0,n),oA),e.enqueue(aA),t=t.subarray(n)),aA=new Uint8Array(2048),oA=0),aA.set(t,oA),oA+=t.byteLength}}function sA(e,t){return iA(e,t),!0}function lA(e){aA&&0<oA&&(e.enqueue(new Uint8Array(aA.buffer,0,oA)),aA=null,oA=0)}var cA=new TextEncoder;function uA(e){return cA.encode(e)}function dA(e){return cA.encode(e)}function pA(e,t){"function"==typeof e.error?e.error(t):e.close()}var fA=Object.assign,hA=Object.prototype.hasOwnProperty,mA=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]*$"),gA={},yA={};function bA(e){return!!hA.call(yA,e)||!hA.call(gA,e)&&(mA.test(e)?yA[e]=!0:(gA[e]=!0,!1))}var vA=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(" ")),kA=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"]]),wA=/["'&<>]/;function EA(e){if("boolean"==typeof e||"number"==typeof e||"bigint"==typeof e)return""+e;e=""+e;var t=wA.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 SA=/([A-Z])/g,xA=/^ms-/,TA=/^[\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 _A(e){return TA.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var AA=C_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,CA=I_.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,IA={pending:!1,data:null,method:null,action:null},NA=CA.d;CA.d={f:NA.f,r:NA.r,D:function(e){var t=OR||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(fN,hN)+">; rel=dns-prefetch",o=0<=(n.remainingCapacity-=a.length+2)),o?(r.resets.dns[e]=null,n.preconnects&&(n.preconnects+=", "),n.preconnects+=a):(SC(a=[],{href:e,rel:"dns-prefetch"}),r.preconnects.add(a));mO(t)}}else NA.D(e)},C:function(e,t){var n=OR||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(fN,hN)+">; rel=preconnect","string"==typeof t)s+='; crossorigin="'+(""+t).replace(mN,gN)+'"';i=s,s=0<=(r.remainingCapacity-=i.length+2)}s?(a.resets.connect[o][e]=null,r.preconnects&&(r.preconnects+=", "),r.preconnects+=i):(SC(o=[],{rel:"preconnect",href:e,crossOrigin:t}),a.preconnects.add(o))}mO(n)}}else NA.C(e,t)},L:function(e,t,n){var r=OR||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]=RA,(a=o.headers)&&0<a.remainingCapacity&&"high"===l&&(c=pN(e,t,n),0<=(a.remainingCapacity-=c.length+2))?(o.resets.image[u]=RA,a.highImagePreloads&&(a.highImagePreloads+=", "),a.highImagePreloads+=c):(SC(a=[],fA({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;SC(i=[],fA({rel:"preload",href:e,as:t},n)),a.styleResources[e]=!n||"string"!=typeof n.crossOrigin&&"string"!=typeof n.integrity?RA:[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),SC(i,fA({rel:"preload",href:e,as:t},n)),a.scriptResources[e]=!n||"string"!=typeof n.crossOrigin&&"string"!=typeof n.integrity?RA:[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]=RA,(a=o.headers)&&0<a.remainingCapacity&&"font"===t&&(u=pN(e,t,n),0<=(a.remainingCapacity-=u.length+2)))o.resets.font[e]=RA,a.fontPreloads&&(a.fontPreloads+=", "),a.fontPreloads+=u;else if("font"===(SC(a=[],e=fA({rel:"preload",href:e,as:t},n)),t))o.fontPreloads.add(a);else o.bulkPreloads.add(a)}mO(r)}}else NA.L(e,t,n)},m:function(e,t){var n=OR||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?RA:[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]=RA}SC(o,fA({rel:"modulepreload",href:e},t)),a.bulkPreloads.add(o),mO(n)}}else NA.m(e,t)},X:function(e,t){var n=OR||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=fA({src:e,async:!0},t),o&&(2===o.length&&dN(t,o),e=a.preloads.scripts.get(e))&&(e.length=0),e=[],a.scripts.add(e),CC(e,t),mO(n))}}else NA.X(e,t)},S:function(e,t,n){var r=OR||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:uA(EA(t)),rules:[],hrefs:[],sheets:new Map},o.styles.set(t,i)),t={state:0,props:fA({rel:"stylesheet",href:e,"data-precedence":t},n)},s&&(2===s.length&&dN(t.props,s),(o=o.preloads.stylesheets.get(e))&&0<o.length?o.length=0:t.state=1),i.sheets.set(e,t),mO(r))}}else NA.S(e,t,n)},M:function(e,t){var n=OR||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=fA({src:e,type:"module",async:!0},t),o&&(2===o.length&&dN(t,o),e=a.preloads.moduleScripts.get(e))&&(e.length=0),e=[],a.scripts.add(e),CC(e,t),mO(n))}}else NA.M(e,t)}};var RA=[];dA('"></template>');var OA=dA("<script>"),PA=dA("<\/script>"),LA=dA('<script src="'),DA=dA('<script type="module" src="'),MA=dA('" nonce="'),FA=dA('" integrity="'),BA=dA('" crossorigin="'),zA=dA('" async=""><\/script>'),jA=/(<\/|<)(s)(cript)/gi;function HA(e,t,n,r){return t+("s"===n?"\\u0073":"\\u0053")+r}var UA=dA('<script type="importmap">'),$A=dA("<\/script>");function GA(e,t,n,r,a,o){var i=void 0===t?OA:dA('<script nonce="'+EA(t)+'">'),s=e.idPrefix;n=[];var l=e.bootstrapScriptContent,c=e.bootstrapScripts,u=e.bootstrapModules;if(void 0!==l&&n.push(i,uA((""+l).replace(jA,HA)),PA),l=[],void 0!==r&&(l.push(UA),l.push(uA((""+JSON.stringify(r)).replace(jA,HA))),l.push($A)),r=a?{preconnects:"",fontPreloads:"",highImagePreloads:"",remainingCapacity:2+("number"==typeof o?o:2e3)}:null,a={placeholderPrefix:dA(s+"P:"),segmentPrefix:dA(s+"S:"),boundaryPrefix:dA(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,SC(d=[],l),a.bootstrapScripts.add(d),n.push(LA,uA(EA(o))),t&&n.push(MA,uA(EA(t))),"string"==typeof s&&n.push(FA,uA(EA(s))),"string"==typeof i&&n.push(BA,uA(EA(i))),n.push(zA)}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,SC(l=[],s),a.bootstrapScripts.add(l),n.push(DA,uA(EA(r))),t&&n.push(MA,uA(EA(t))),"string"==typeof i&&n.push(FA,uA(EA(i))),"string"==typeof o&&n.push(BA,uA(EA(o))),n.push(zA);return a}function VA(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 WA(e,t,n){return{insertionMode:e,selectedValue:t,tagScope:n}}function qA(e){return WA("http://www.w3.org/2000/svg"===e?3:"http://www.w3.org/1998/Math/MathML"===e?4:0,null,0)}function YA(e,t,n){switch(t){case"noscript":return WA(2,null,1|e.tagScope);case"select":return WA(2,null!=n.value?n.value:n.defaultValue,e.tagScope);case"svg":return WA(3,null,e.tagScope);case"picture":return WA(2,null,2|e.tagScope);case"math":return WA(4,null,e.tagScope);case"foreignObject":return WA(2,null,e.tagScope);case"table":return WA(5,null,e.tagScope);case"thead":case"tbody":case"tfoot":return WA(6,null,e.tagScope);case"colgroup":return WA(8,null,e.tagScope);case"tr":return WA(7,null,e.tagScope)}return 5<=e.insertionMode?WA(2,null,e.tagScope):0===e.insertionMode?WA("html"===t?1:2,null,e.tagScope):1===e.insertionMode?WA(2,null,e.tagScope):e}var XA=dA("\x3c!-- --\x3e");function KA(e,t,n,r){return""===t?r:(r&&e.push(XA),e.push(uA(EA(t))),!0)}var QA=new Map,ZA=dA(' style="'),JA=dA(":"),eC=dA(";");function tC(e,t){if("object"!=typeof t)throw Error(N_(62));var n,r=!0;for(n in t)if(hA.call(t,n)){var a=t[n];if(null!=a&&"boolean"!=typeof a&&""!==a){if(0===n.indexOf("--")){var o=uA(EA(n));a=uA(EA((""+a).trim()))}else void 0===(o=QA.get(n))&&(o=dA(EA(n.replace(SA,"-$1").toLowerCase().replace(xA,"-ms-"))),QA.set(n,o)),a="number"==typeof a?0===a||vA.has(n)?uA(""+a):uA(a+"px"):uA(EA((""+a).trim()));r?(r=!1,e.push(ZA,o,JA,a)):e.push(eC,o,JA,a)}}r||e.push(aC)}var nC=dA(" "),rC=dA('="'),aC=dA('"'),oC=dA('=""');function iC(e,t,n){n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(nC,uA(t),oC)}function sC(e,t,n){"function"!=typeof n&&"symbol"!=typeof n&&"boolean"!=typeof n&&e.push(nC,uA(t),rC,uA(EA(n)),aC)}var lC=dA(EA("javascript:throw new Error('React form unexpectedly submitted.')")),cC=dA('<input type="hidden"');function uC(e,t){this.push(cC),dC(e),sC(this,"name",t),sC(this,"value",e),this.push(gC)}function dC(e){if("string"!=typeof e)throw Error(N_(480))}function pC(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(dC)}return r}catch(o){if("object"==typeof o&&null!==o&&"function"==typeof o.then)throw o}}return null}function fC(e,t,n,r,a,o,i,s){var l=null;if("function"==typeof r){var c=pC(t,r);null!==c?(s=c.name,r=c.action||"",a=c.encType,o=c.method,i=c.target,l=c.data):(e.push(nC,uA("formAction"),rC,lC,aC),i=o=a=r=s=null,kC(t,n))}return null!=s&&hC(e,"name",s),null!=r&&hC(e,"formAction",r),null!=a&&hC(e,"formEncType",a),null!=o&&hC(e,"formMethod",o),null!=i&&hC(e,"formTarget",i),l}function hC(e,t,n){switch(t){case"className":sC(e,"class",n);break;case"tabIndex":sC(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":sC(e,t,n);break;case"style":tC(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=_A(""+n),e.push(nC,uA(t),rC,uA(EA(n)),aC);break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":iC(e,t.toLowerCase(),n);break;case"xlinkHref":if("function"==typeof n||"symbol"==typeof n||"boolean"==typeof n)break;n=_A(""+n),e.push(nC,uA("xlink:href"),rC,uA(EA(n)),aC);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(nC,uA(t),rC,uA(EA(n)),aC);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(nC,uA(t),oC);break;case"capture":case"download":!0===n?e.push(nC,uA(t),oC):!1!==n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(nC,uA(t),rC,uA(EA(n)),aC);break;case"cols":case"rows":case"size":case"span":"function"!=typeof n&&"symbol"!=typeof n&&!isNaN(n)&&1<=n&&e.push(nC,uA(t),rC,uA(EA(n)),aC);break;case"rowSpan":case"start":"function"==typeof n||"symbol"==typeof n||isNaN(n)||e.push(nC,uA(t),rC,uA(EA(n)),aC);break;case"xlinkActuate":sC(e,"xlink:actuate",n);break;case"xlinkArcrole":sC(e,"xlink:arcrole",n);break;case"xlinkRole":sC(e,"xlink:role",n);break;case"xlinkShow":sC(e,"xlink:show",n);break;case"xlinkTitle":sC(e,"xlink:title",n);break;case"xlinkType":sC(e,"xlink:type",n);break;case"xmlBase":sC(e,"xml:base",n);break;case"xmlLang":sC(e,"xml:lang",n);break;case"xmlSpace":sC(e,"xml:space",n);break;default:if((!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&bA(t=kA.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(nC,uA(t),rC,uA(EA(n)),aC)}}}var mC=dA(">"),gC=dA("/>");function yC(e,t,n){if(null!=t){if(null!=n)throw Error(N_(60));if("object"!=typeof t||!("__html"in t))throw Error(N_(61));null!=(t=t.__html)&&e.push(uA(""+t))}}var bC=dA(' selected=""'),vC=dA('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 kC(e,t){!(16&e.instructions)&&(e.instructions|=16,t.bootstrapChunks.unshift(t.startInlineScript,vC,PA))}var wC=dA("\x3c!--F!--\x3e"),EC=dA("\x3c!--F--\x3e");function SC(e,t){for(var n in e.push(PC("link")),t)if(hA.call(t,n)){var r=t[n];if(null!=r)switch(n){case"children":case"dangerouslySetInnerHTML":throw Error(N_(399,"link"));default:hC(e,n,r)}}return e.push(gC),null}var xC=/(<\/|<)(s)(tyle)/gi;function TC(e,t,n,r){return t+("s"===n?"\\73 ":"\\53 ")+r}function _C(e,t,n){for(var r in e.push(PC(n)),t)if(hA.call(t,r)){var a=t[r];if(null!=a)switch(r){case"children":case"dangerouslySetInnerHTML":throw Error(N_(399,n));default:hC(e,r,a)}}return e.push(gC),null}function AC(e,t){e.push(PC("title"));var n,r=null,a=null;for(n in t)if(hA.call(t,n)){var o=t[n];if(null!=o)switch(n){case"children":r=o;break;case"dangerouslySetInnerHTML":a=o;break;default:hC(e,n,o)}}return e.push(mC),"function"!=typeof(t=Array.isArray(r)?2>r.length?r[0]:null:r)&&"symbol"!=typeof t&&null!=t&&e.push(uA(EA(""+t))),yC(e,a,r),e.push(FC("title")),null}function CC(e,t){e.push(PC("script"));var n,r=null,a=null;for(n in t)if(hA.call(t,n)){var o=t[n];if(null!=o)switch(n){case"children":r=o;break;case"dangerouslySetInnerHTML":a=o;break;default:hC(e,n,o)}}return e.push(mC),yC(e,a,r),"string"==typeof r&&e.push(uA((""+r).replace(jA,HA))),e.push(FC("script")),null}function IC(e,t,n){e.push(PC(n));var r,a=n=null;for(r in t)if(hA.call(t,r)){var o=t[r];if(null!=o)switch(r){case"children":n=o;break;case"dangerouslySetInnerHTML":a=o;break;default:hC(e,r,o)}}return e.push(mC),yC(e,a,n),"string"==typeof n?(e.push(uA(EA(n))),null):n}var NC=dA("\n"),RC=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,OC=new Map;function PC(e){var t=OC.get(e);if(void 0===t){if(!RC.test(e))throw Error(N_(65,e));t=dA("<"+e),OC.set(e,t)}return t}var LC=dA("<!DOCTYPE html>");function DC(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(PC("a"));var c,u=null,d=null;for(c in n)if(hA.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?sC(e,"href",""):hC(e,c,p);break;default:hC(e,c,p)}}if(e.push(mC),yC(e,d,u),"string"==typeof u){e.push(uA(EA(u)));var f=null}else f=u;return f;case"select":e.push(PC("select"));var h,m=null,g=null;for(h in n)if(hA.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:hC(e,h,y)}}return e.push(mC),yC(e,g,m),m;case"option":var b=i.selectedValue;e.push(PC("option"));var v,k=null,w=null,E=null,S=null;for(v in n)if(hA.call(n,v)){var x=n[v];if(null!=x)switch(v){case"children":k=x;break;case"selected":E=x;break;case"dangerouslySetInnerHTML":S=x;break;case"value":w=x;default:hC(e,v,x)}}if(null!=b){var T=null!==w?""+w:function(e){var t="";return C_.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(k);if(K_(b)){for(var _=0;_<b.length;_++)if(""+b[_]===T){e.push(bC);break}}else""+b===T&&e.push(bC)}else E&&e.push(bC);return e.push(mC),yC(e,S,k),k;case"textarea":e.push(PC("textarea"));var A,C=null,I=null,N=null;for(A in n)if(hA.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(N_(91));default:hC(e,A,R)}}if(null===C&&null!==I&&(C=I),e.push(mC),null!=N){if(null!=C)throw Error(N_(92));if(K_(N)){if(1<N.length)throw Error(N_(93));C=""+N[0]}C=""+N}return"string"==typeof C&&"\n"===C[0]&&e.push(NC),null!==C&&e.push(uA(EA(""+C))),null;case"input":e.push(PC("input"));var O,P=null,L=null,D=null,M=null,F=null,B=null,z=null,j=null,H=null;for(O in n)if(hA.call(n,O)){var U=n[O];if(null!=U)switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(N_(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":H=U;break;case"defaultValue":z=U;break;case"checked":j=U;break;case"value":B=U;break;default:hC(e,O,U)}}var $=fC(e,r,a,L,D,M,F,P);return null!==j?iC(e,"checked",j):null!==H&&iC(e,"checked",H),null!==B?hC(e,"value",B):null!==z&&hC(e,"value",z),e.push(gC),null!=$&&$.forEach(uC,e),null;case"button":e.push(PC("button"));var G,V=null,W=null,q=null,Y=null,X=null,K=null,Q=null;for(G in n)if(hA.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:hC(e,G,Z)}}var J=fC(e,r,a,Y,X,K,Q,q);if(e.push(mC),null!=J&&J.forEach(uC,e),yC(e,W,V),"string"==typeof V){e.push(uA(EA(V)));var ee=null}else ee=V;return ee;case"form":e.push(PC("form"));var te,ne=null,re=null,ae=null,oe=null,ie=null,se=null;for(te in n)if(hA.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:hC(e,te,le)}}var ce=null,ue=null;if("function"==typeof ae){var de=pC(r,ae);null!==de?(ae=de.action||"",oe=de.encType,ie=de.method,se=de.target,ce=de.data,ue=de.name):(e.push(nC,uA("action"),rC,lC,aC),se=ie=oe=ae=null,kC(r,a))}if(null!=ae&&hC(e,"action",ae),null!=oe&&hC(e,"encType",oe),null!=ie&&hC(e,"method",ie),null!=se&&hC(e,"target",se),e.push(mC),null!==ue&&(e.push(cC),sC(e,"name",ue),e.push(gC),null!=ce&&ce.forEach(uC,e)),yC(e,re,ne),"string"==typeof ne){e.push(uA(EA(ne)));var pe=null}else pe=ne;return pe;case"menuitem":for(var fe in e.push(PC("menuitem")),n)if(hA.call(n,fe)){var he=n[fe];if(null!=he)switch(fe){case"children":case"dangerouslySetInnerHTML":throw Error(N_(400));default:hC(e,fe,he)}}return e.push(mC),null;case"object":e.push(PC("object"));var me,ge=null,ye=null;for(me in n)if(hA.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=_A(""+be);if(""===ve)break;e.push(nC,uA("data"),rC,uA(EA(ve)),aC);break;default:hC(e,me,be)}}if(e.push(mC),yC(e,ye,ge),"string"==typeof ge){e.push(uA(EA(ge)));var ke=null}else ke=ge;return ke;case"title":if(3===i.insertionMode||1&i.tagScope||null!=n.itemProp)var we=AC(e,n);else l?we=null:(AC(a.hoistableChunks,n),we=void 0);return we;case"link":var Ee=n.rel,Se=n.href,xe=n.precedence;if(3===i.insertionMode||1&i.tagScope||null!=n.itemProp||"string"!=typeof Ee||"string"!=typeof Se||""===Se){SC(e,n);var Te=null}else if("stylesheet"===n.rel)if("string"!=typeof xe||null!=n.disabled||n.onLoad||n.onError)Te=SC(e,n);else{var _e=a.styles.get(xe),Ae=r.styleResources.hasOwnProperty(Se)?r.styleResources[Se]:void 0;if(null!==Ae){r.styleResources[Se]=null,_e||(_e={precedence:uA(EA(xe)),rules:[],hrefs:[],sheets:new Map},a.styles.set(xe,_e));var Ce={state:0,props:fA({},n,{"data-precedence":n.precedence,precedence:null})};if(Ae){2===Ae.length&&dN(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(XA),Te=null}else n.onLoad||n.onError?Te=SC(e,n):(s&&e.push(XA),Te=l?null:SC(a.hoistableChunks,n));return Te;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=CC(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&&dN(Fe=fA({},n),Me);var Be=De.get(Pe);Be&&(Be.length=0)}var ze=[];a.scripts.add(ze),CC(ze,Fe)}s&&e.push(XA),Oe=null}return Oe;case"style":var je=n.precedence,He=n.href;if(3===i.insertionMode||1&i.tagScope||null!=n.itemProp||"string"!=typeof je||"string"!=typeof He||""===He){e.push(PC("style"));var Ue,$e=null,Ge=null;for(Ue in n)if(hA.call(n,Ue)){var Ve=n[Ue];if(null!=Ve)switch(Ue){case"children":$e=Ve;break;case"dangerouslySetInnerHTML":Ge=Ve;break;default:hC(e,Ue,Ve)}}e.push(mC);var We=Array.isArray($e)?2>$e.length?$e[0]:null:$e;"function"!=typeof We&&"symbol"!=typeof We&&null!=We&&e.push(uA((""+We).replace(xC,TC))),yC(e,Ge,$e),e.push(FC("style"));var qe=null}else{var Ye=a.styles.get(je);if(null!==(r.styleResources.hasOwnProperty(He)?r.styleResources[He]:void 0)){r.styleResources[He]=null,Ye?Ye.hrefs.push(uA(EA(He))):(Ye={precedence:uA(EA(je)),rules:[],hrefs:[uA(EA(He))],sheets:new Map},a.styles.set(je,Ye));var Xe,Ke=Ye.rules,Qe=null,Ze=null;for(Xe in n)if(hA.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(uA((""+et).replace(xC,TC))),yC(Ke,Ze,Qe)}Ye&&o&&o.styles.add(Ye),s&&e.push(XA),qe=void 0}return qe;case"meta":if(3===i.insertionMode||1&i.tagScope||null!=n.itemProp)var tt=_C(e,n,"meta");else s&&e.push(XA),tt=l?null:"string"==typeof n.charSet?_C(a.charsetChunks,n,"meta"):"viewport"===n.name?_C(a.viewportChunks,n,"meta"):_C(a.hoistableChunks,n,"meta");return tt;case"listing":case"pre":e.push(PC(t));var nt,rt=null,at=null;for(nt in n)if(hA.call(n,nt)){var ot=n[nt];if(null!=ot)switch(nt){case"children":rt=ot;break;case"dangerouslySetInnerHTML":at=ot;break;default:hC(e,nt,ot)}}if(e.push(mC),null!=at){if(null!=rt)throw Error(N_(60));if("object"!=typeof at||!("__html"in at))throw Error(N_(61));var it=at.__html;null!=it&&("string"==typeof it&&0<it.length&&"\n"===it[0]?e.push(NC,uA(it)):e.push(uA(""+it)))}return"string"==typeof rt&&"\n"===rt[0]&&e.push(NC),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]=RA;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=pN(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]=RA,gt.highImagePreloads&&(gt.highImagePreloads+=", "),gt.highImagePreloads+=ft):(SC(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 _C(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 _C(e,n,t);case"head":if(2>i.insertionMode&&null===a.headChunks){a.headChunks=[];var yt=IC(a.headChunks,n,"head")}else yt=IC(e,n,"head");return yt;case"html":if(0===i.insertionMode&&null===a.htmlChunks){a.htmlChunks=[LC];var bt=IC(a.htmlChunks,n,"html")}else bt=IC(e,n,"html");return bt;default:if(-1!==t.indexOf("-")){e.push(PC(t));var vt,kt=null,wt=null;for(vt in n)if(hA.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":tC(e,Et);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"className":St="class";default:if(bA(vt)&&"function"!=typeof Et&&"symbol"!=typeof Et&&!1!==Et){if(!0===Et)Et="";else if("object"==typeof Et)continue;e.push(nC,uA(St),rC,uA(EA(Et)),aC)}}}}return e.push(mC),yC(e,wt,kt),kt}}return IC(e,n,t)}var MC=new Map;function FC(e){var t=MC.get(e);return void 0===t&&(t=dA("</"+e+">"),MC.set(e,t)),t}function BC(e,t){t=t.bootstrapChunks;for(var n=0;n<t.length-1;n++)iA(e,t[n]);return!(n<t.length)||(n=t[n],t.length=0,sA(e,n))}var zC=dA('<template id="'),jC=dA('"></template>'),HC=dA("\x3c!--$--\x3e"),UC=dA('\x3c!--$?--\x3e<template id="'),$C=dA('"></template>'),GC=dA("\x3c!--$!--\x3e"),VC=dA("\x3c!--/$--\x3e"),WC=dA("<template"),qC=dA('"'),YC=dA(' data-dgst="');dA(' data-msg="'),dA(' data-stck="'),dA(' data-cstck="');var XC=dA("></template>");function KC(e,t,n){if(iA(e,UC),null===n)throw Error(N_(395));return iA(e,t.boundaryPrefix),iA(e,uA(n.toString(16))),sA(e,$C)}var QC=dA('<div hidden id="'),ZC=dA('">'),JC=dA("</div>"),eI=dA('<svg aria-hidden="true" style="display:none" id="'),tI=dA('">'),nI=dA("</svg>"),rI=dA('<math aria-hidden="true" style="display:none" id="'),aI=dA('">'),oI=dA("</math>"),iI=dA('<table hidden id="'),sI=dA('">'),lI=dA("</table>"),cI=dA('<table hidden><tbody id="'),uI=dA('">'),dI=dA("</tbody></table>"),pI=dA('<table hidden><tr id="'),fI=dA('">'),hI=dA("</tr></table>"),mI=dA('<table hidden><colgroup id="'),gI=dA('">'),yI=dA("</colgroup></table>");var bI=dA('$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("'),vI=dA('$RS("'),kI=dA('","'),wI=dA('")<\/script>');dA('<template data-rsi="" data-sid="'),dA('" data-pid="');var EI=dA('$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("'),SI=dA('$RC("'),xI=dA('$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("'),TI=dA('$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=dA('$RR("'),AI=dA('","'),CI=dA('",'),II=dA('"'),NI=dA(")<\/script>");dA('<template data-rci="" data-bid="'),dA('<template data-rri="" data-bid="'),dA('" data-sid="'),dA('" data-sty="');var RI=dA('$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("'),OI=dA('$RX("'),PI=dA('"'),LI=dA(","),DI=dA(")<\/script>");dA('<template data-rxi="" data-bid="'),dA('" data-dgst="'),dA('" data-msg="'),dA('" data-stck="'),dA('" data-cstck="');var MI=/[<\u2028\u2029]/g;var FI=/[&><\u2028\u2029]/g;function BI(e){return JSON.stringify(e).replace(FI,(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 zI=dA('<style media="not all" data-precedence="'),jI=dA('" data-href="'),HI=dA('">'),UI=dA("</style>"),$I=!1,GI=!0;function VI(e){var t=e.rules,n=e.hrefs,r=0;if(n.length){for(iA(this,zI),iA(this,e.precedence),iA(this,jI);r<n.length-1;r++)iA(this,n[r]),iA(this,JI);for(iA(this,n[r]),iA(this,HI),r=0;r<t.length;r++)iA(this,t[r]);GI=sA(this,UI),$I=!0,t.length=0,n.length=0}}function WI(e){return 2!==e.state&&($I=!0)}function qI(e,t,n){return $I=!1,GI=!0,t.styles.forEach(VI,e),t.stylesheets.forEach(WI),$I&&(n.stylesToHoist=!0),GI}function YI(e){for(var t=0;t<e.length;t++)iA(this,e[t]);e.length=0}var XI=[];function KI(e){SC(XI,e.props);for(var t=0;t<XI.length;t++)iA(this,XI[t]);XI.length=0,e.state=2}var QI=dA('<style data-precedence="'),ZI=dA('" data-href="'),JI=dA(" "),eN=dA('">'),tN=dA("</style>");function nN(e){var t=0<e.sheets.size;e.sheets.forEach(KI,this),e.sheets.clear();var n=e.rules,r=e.hrefs;if(!t||r.length){if(iA(this,QI),iA(this,e.precedence),e=0,r.length){for(iA(this,ZI);e<r.length-1;e++)iA(this,r[e]),iA(this,JI);iA(this,r[e])}for(iA(this,eN),e=0;e<n.length;e++)iA(this,n[e]);iA(this,tN),n.length=0,r.length=0}}function rN(e){if(0===e.state){e.state=1;var t=e.props;for(SC(XI,{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<XI.length;e++)iA(this,XI[e]);XI.length=0}}function aN(e){e.sheets.forEach(rN,this),e.sheets.clear()}var oN=dA("["),iN=dA(",["),sN=dA(","),lN=dA("]");function cN(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=_A(n));break;default:if(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])||!bA(t))return;t=""+n}iA(e,sN),iA(e,uA(BI(r))),iA(e,sN),iA(e,uA(BI(t)))}function uN(){return{styles:new Set,stylesheets:new Set}}function dN(e,t){null==e.crossOrigin&&(e.crossOrigin=t[0]),null==e.integrity&&(e.integrity=t[1])}function pN(e,t,n){for(var r in t="<"+(e=(""+e).replace(fN,hN))+'>; rel=preload; as="'+(t=(""+t).replace(mN,gN))+'"',n)hA.call(n,r)&&("string"==typeof(e=n[r])&&(t+="; "+r.toLowerCase()+'="'+(""+e).replace(mN,gN)+'"'));return t}var fN=/[<>\r\n]/g;function hN(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 mN=/["';,\r\n]/g;function gN(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 yN(e){this.styles.add(e)}function bN(e){this.stylesheets.add(e)}var vN=Function.prototype.bind,kN=Symbol.for("react.client.reference");function wN(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===kN?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case P_:return"Fragment";case O_:return"Portal";case D_:return"Profiler";case L_:return"StrictMode";case j_:return"Suspense";case H_:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case B_:return(e.displayName||"Context")+".Provider";case F_:return(e._context.displayName||"Context")+".Consumer";case z_:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case U_:return null!==(t=e.displayName||null)?t:wN(e.type)||"Memo";case $_:t=e._payload,e=e._init;try{return wN(e(t))}catch(n){}}return null}var EN={},SN=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(N_(401))}else{if(null===n)throw Error(N_(401));xN(e,n)}t.context._currentValue=t.value}}function TN(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&TN(e)}function _N(e){var t=e.parent;null!==t&&_N(t),e.context._currentValue=e.value}function AN(e,t){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(N_(402));e.depth===t.depth?xN(e,t):AN(e,t)}function CN(e,t){var n=t.parent;if(null===n)throw Error(N_(402));e.depth===n.depth?xN(e,n):CN(e,n),t.context._currentValue=t.value}function IN(e){var t=SN;t!==e&&(null===t?_N(e):null===e?TN(t):t.depth===e.depth?xN(t,e):t.depth>e.depth?AN(t,e):CN(t,e),SN=e)}var NN={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(){}},RN={id:1,overflow:""};function ON(e,t,n){var r=e.id;e=e.overflow;var a=32-PN(r)-1;r&=~(1<<a),n+=1;var o=32-PN(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-PN(t)+a|n<<a|r,overflow:o+e}}return{id:1<<o|n<<a|r,overflow:e}}var PN=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(LN(e)/DN|0)|0},LN=Math.log,DN=Math.LN2;var MN=Error(N_(460));function FN(){}var BN=null;function zN(){if(null===BN)throw Error(N_(459));var e=BN;return BN=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},HN=null,UN=null,$N=null,GN=null,VN=null,WN=null,qN=!1,YN=!1,XN=0,KN=0,QN=-1,ZN=0,JN=null,eR=null,tR=0;function nR(){if(null===HN)throw Error(N_(321));return HN}function rR(){if(0<tR)throw Error(N_(312));return{memoizedState:null,queue:null,next:null}}function aR(){return null===WN?null===VN?(qN=!1,VN=WN=rR()):(qN=!0,WN=VN):null===WN.next?(qN=!1,WN=WN.next=rR()):(qN=!0,WN=WN.next),WN}function oR(){var e=JN;return JN=null,e}function iR(){GN=$N=UN=HN=null,YN=!1,VN=null,tR=0,WN=eR=null}function sR(e,t){return"function"==typeof t?t(e):t}function lR(e,t,n){if(HN=nR(),WN=aR(),qN){var r=WN.queue;if(t=r.dispatch,null!==eR&&void 0!==(n=eR.get(r))){eR.delete(r),r=WN.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return WN.memoizedState=r,[r,t]}return[WN.memoizedState,t]}return e=e===sR?"function"==typeof t?t():t:void 0!==n?n(t):t,WN.memoizedState=e,e=(e=WN.queue={last:null,dispatch:null}).dispatch=uR.bind(null,HN,e),[WN.memoizedState,e]}function cR(e,t){if(HN=nR(),t=void 0===t?null:t,null!==(WN=aR())){var n=WN.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(),WN.memoizedState=[e,t],e}function uR(e,t,n){if(25<=tR)throw Error(N_(301));if(e===HN)if(YN=!0,e={action:n,next:null},null===eR&&(eR=new Map),void 0===(n=eR.get(t)))eR.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function dR(){throw Error(N_(394))}function pR(){throw Error(N_(479))}function fR(e,t,n){nR();var r=KN++,a=$N;if("function"==typeof e.$$FORM_ACTION){var o=null,i=GN;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"+Q_(JSON.stringify([i,null,r]),0))&&(QN=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"+Q_(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 hR(e){var t=ZN;return ZN+=1,null===JN&&(JN=[]),function(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(FN,FN),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch("string"==typeof t.status?t.then(FN,FN):((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 BN=t,MN}}(JN,e,t)}function mR(){throw Error(N_(393))}function gR(){}var yR={readContext:function(e){return e._currentValue},use:function(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return hR(e);if(e.$$typeof===B_)return e._currentValue}throw Error(N_(438,String(e)))},useContext:function(e){return nR(),e._currentValue},useMemo:cR,useReducer:lR,useRef:function(e){HN=nR();var t=(WN=aR()).memoizedState;return null===t?(e={current:e},WN.memoizedState=e):t},useState:function(e){return lR(sR,e)},useInsertionEffect:gR,useLayoutEffect:gR,useCallback:function(e,t){return cR((function(){return e}),t)},useImperativeHandle:gR,useEffect:gR,useDebugValue:gR,useDeferredValue:function(e,t){return nR(),void 0!==t?t:e},useTransition:function(){return nR(),[!1,dR]},useId:function(){var e=UN.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-PN(e)-1)).toString(32)+t;var n=kR;if(null===n)throw Error(N_(404));return t=XN++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(N_(407));return n()},useCacheRefresh:function(){return mR},useMemoCache:function(e){for(var t=Array(e),n=0;n<e;n++)t[n]=Y_;return t},useHostTransitionStatus:function(){return nR(),IA},useOptimistic:function(e){return nR(),[e,pR]}};yR.useFormState=fR,yR.useActionState=fR;var bR,vR,kR=null,wR={getCacheForType:function(){throw Error(N_(248))}};function ER(e){if(void 0===bR)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);bR=t&&t[1]||"",vR=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+bR+e+vR}var SR=!1;function xR(e,t){if(!e||SR)return"";SR=!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{SR=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ER(n):""}function TR(e){if("string"==typeof e)return ER(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 z_:return xR(e.render,!1);case U_:return xR(e.type,!1);case $_:var t=e,n=t._payload;t=t._init;try{e=t(n)}catch(r){return ER("Lazy")}return TR(e)}if("string"==typeof e.name)return n=e.env,ER(e.name+(n?" ["+n+"]":""))}switch(e){case H_:return ER("SuspenseList");case j_:return ER("Suspense")}return""}function _R(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=vN.apply(console.error,e))()}else console.error(e);return null}function AR(){}function CR(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?_R:a,this.onPostpone=void 0===c?AR:c,this.onAllReady=void 0===o?AR:o,this.onShellReady=void 0===i?AR:i,this.onShellError=void 0===s?AR:s,this.onFatalError=void 0===l?AR:l,this.formState=void 0===u?null:u}function IR(e,t,n,r,a,o,i,s,l,c,u,d){return(n=FR(t=new CR(t,n,r,a,o,i,s,l,c,u,d),0,null,r,!1,!1)).parentFlushed=!0,BR(e=DR(t,null,e,-1,null,n,null,t.abortableTasks,null,r,null,RN,null,!1)),t.pingedTasks.push(e),t}var NR,RR,OR=null;function PR(e,t){e.pingedTasks.push(t),1===e.pingedTasks.length&&(e.flushScheduled=null!==e.destination,null!==e.trackedPostpones||10===e.status?rA((function(){return sO(e)})):eA((function(){return sO(e)})))}function LR(e,t){return{status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,completedSegments:[],byteSize:0,fallbackAbortableTasks:t,errorDigest:null,contentState:uN(),fallbackState:uN(),trackedContentKeyPath:null,trackedFallbackNode:null}}function DR(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 PR(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 MR(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 PR(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 FR(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 BR(e){var t=e.node;if("object"==typeof t&&null!==t&&t.$$typeof===R_)e.componentStack={parent:e.componentStack,type:t.type}}function zR(e){var t={};return e&&Object.defineProperty(t,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var n="",r=e;do{n+=TR(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 HR(e,t){var n=e.onShellError,r=e.onFatalError;n(t),r(t),null!==e.destination?(e.status=14,pA(e.destination,t)):(e.status=13,e.fatalError=t)}function UR(e,t,n,r,a,o){var i=t.thenableState;for(t.thenableState=null,HN={},UN=t,$N=e,GN=n,KN=XN=0,QN=-1,ZN=0,JN=i,e=r(a,o);YN;)YN=!1,KN=XN=0,QN=-1,ZN=0,tR+=1,WN=null,e=r(a,o);return iR(),e}function $R(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(wC):l.push(EC)}}o=t.keyPath,t.keyPath=n,a?(n=t.treeContext,t.treeContext=ON(n,1,0),ZR(e,t,r,-1),t.treeContext=n):s?ZR(e,t,r,-1):WR(e,t,r,-1),t.keyPath=o}function GR(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=fA({},i,a)),l)void 0===i[c]&&(i[c]=l[c]);a=i,i=EN,"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=NN,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:EN,"function"==typeof(o=r.getDerivedStateFromProps)&&(u=null==(o=o(a,u))?u:fA({},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&&NN.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=fA({},l,c)):fA(l,c));i.state=l}else l.queue=null;if(r=i.render(),12===e.status)throw null;a=t.keyPath,t.keyPath=n,WR(e,t,r,-1),t.keyPath=a}else{if(r=UR(e,t,n,r,a,void 0),12===e.status)throw null;$R(e,t,n,r,0!==XN,KN,QN)}else{if("string"!=typeof r){switch(r){case q_:case V_:case L_:case D_:case P_:return r=t.keyPath,t.keyPath=n,WR(e,t,a.children,-1),void(t.keyPath=r);case W_:return void("hidden"!==a.mode&&(r=t.keyPath,t.keyPath=n,WR(e,t,a.children,-1),t.keyPath=r));case H_:return r=t.keyPath,t.keyPath=n,WR(e,t,a.children,-1),void(t.keyPath=r);case G_:throw Error(N_(343));case j_:e:if(null!==t.replay){r=t.keyPath,t.keyPath=n,n=a.children;try{ZR(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=LR(0,f),null!==e.trackedPostpones&&(s.trackedContentKeyPath=n);var h=FR(0,o.chunks.length,s,t.formatContext,!1,!1);o.children.push(h),o.lastPushedText=!1;var m=FR(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{ZR(e,t,c,-1),h.lastPushedText&&h.textEmbedded&&h.chunks.push(XA),h.status=1}catch(g){throw h.status=12===e.status?3:4,g}finally{t.blockedSegment=o,t.keyPath=r}BR(t=DR(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(ZR(e,t,a,-1),m.lastPushedText&&m.textEmbedded&&m.chunks.push(XA),m.status=1,oO(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=zR(t.componentStack)),s.errorDigest=u,XR(e,s)}finally{t.blockedBoundary=d,t.hoistableState=p,t.blockedSegment=o,t.keyPath=r}BR(t=DR(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 z_:if("ref"in a)for(h in i={},a)"ref"!==h&&(i[h]=a[h]);else i=a;return void $R(e,t,n,r=UR(e,t,n,r.render,i,o),0!==XN,KN,QN);case U_:return void GR(e,t,n,r.type,a,o);case M_:case B_:if(l=a.children,i=t.keyPath,a=a.value,u=r._currentValue,r._currentValue=a,SN=r={parent:o=SN,depth:null===o?0:o.depth+1,context:r,parentValue:u,value:a},t.context=r,t.keyPath=n,WR(e,t,l,-1),null===(e=SN))throw Error(N_(403));return e.context._currentValue=e.parentValue,e=SN=e.parent,t.context=e,void(t.keyPath=i);case F_:return r=(a=a.children)(r._context._currentValue),a=t.keyPath,t.keyPath=n,WR(e,t,r,-1),void(t.keyPath=a);case $_:if(r=(i=r._init)(r._payload),12===e.status)throw null;return void GR(e,t,n,r,a,o)}throw Error(N_(130,null==r?r:typeof r,""))}if(null===(i=t.blockedSegment))i=a.children,l=t.formatContext,u=t.keyPath,t.formatContext=YA(l,r,a),t.keyPath=n,ZR(e,t,i,-1),t.formatContext=l,t.keyPath=u;else{u=DC(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=YA(l,r,a),t.keyPath=n,ZR(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(FC(r))}i.lastPushedText=!1}}}function VR(e,t,n,r,a){var o=t.replay,i=t.blockedBoundary,s=FR(0,0,null,t.formatContext,!1,!1);s.id=n,s.parentFlushed=!0;try{t.replay=null,t.blockedSegment=s,ZR(e,t,r,a),s.status=1,null===i?e.completedRootSegment=s:(oO(i,s),i.parentFlushed&&e.partialBoundaries.push(i))}finally{t.replay=o,t.blockedSegment=null}}function WR(e,t,n,r){null!==t.replay&&"number"==typeof t.replay.slots?VR(e,t,t.replay.slots,n,r):(t.node=n,t.childIndex=r,n=t.componentStack,BR(t),qR(e,t),t.componentStack=n)}function qR(e,t){var n=t.node,r=t.childIndex;if(null!==n){if("object"==typeof n){switch(n.$$typeof){case R_:var a=n.type,o=n.key,i=n.props,s=void 0!==(n=i.ref)?n:null,l=wN(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(N_(490,d[0],l));var p=d[2];l=d[3],c=t.node,t.replay={nodes:p,slots:l,pendingTasks:1};try{if(GR(e,t,o,a,i,s),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(N_(488));t.replay.pendingTasks--}catch(k){if("object"==typeof k&&null!==k&&(k===MN||"function"==typeof k.then))throw t.node===c&&(t.replay=u),k;t.replay.pendingTasks--,i=zR(t.componentStack),eO(e,o=t.blockedBoundary,p,l,a=k,i=jR(e,a,i))}t.replay=u}else{if(a!==j_)throw Error(N_(490,"Suspense",wN(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=LR(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(ZR(e,t,y,-1),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(N_(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=zR(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}BR(t=MR(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 GR(e,t,o,a,i,s);return;case O_:throw Error(N_(257));case $_:if(n=(p=n._init)(n._payload),12===e.status)throw null;return void WR(e,t,n,r)}if(K_(n))return void YR(e,t,n,r);if(null===n||"object"!=typeof n?p=null:p="function"==typeof(p=X_&&n[X_]||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);YR(e,t,i,r)}return}if("function"==typeof n.then)return t.thenableState=null,WR(e,t,hR(n),r);if(n.$$typeof===B_)return WR(e,t,n._currentValue,r);throw r=Object.prototype.toString.call(n),Error(N_(31,"[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r))}"string"==typeof n?null!==(r=t.blockedSegment)&&(r.lastPushedText=KA(r.chunks,n,e.renderState,r.lastPushedText)):"number"!=typeof n&&"bigint"!=typeof n||null!==(r=t.blockedSegment)&&(r.lastPushedText=KA(r.chunks,""+n,e.renderState,r.lastPushedText))}}function YR(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=ON(o,i,r),"number"==typeof(c=s[r])?(VR(e,t,c,l,r),delete s[r]):ZR(e,t,l,r);return t.treeContext=o,void(t.keyPath=a)}for(s=0;s<i;s++)r=n[s],t.treeContext=ON(o,i,s),ZR(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(YR(e,t,n,-1),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(N_(488));t.replay.pendingTasks--}catch(u){if("object"==typeof u&&null!==u&&(u===MN||"function"==typeof u.then))throw u;t.replay.pendingTasks--,n=zR(t.componentStack);var c=t.blockedBoundary;eO(e,c,r,l,u,n=jR(e,u,n))}t.replay=o,i.splice(s,1);break}}t.keyPath=a}}function XR(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 KR(e,t,n){return MR(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 QR(e,t,n){var r=t.blockedSegment,a=FR(0,r.chunks.length,null,t.formatContext,r.lastPushedText,!0);return r.children.push(a),r.lastPushedText=!1,DR(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 ZR(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 WR(e,t,n,r)}catch(p){if(iR(),"object"==typeof(n=p===MN?zN():p)&&null!==n){if("function"==typeof n.then)return e=KR(e,t,r=oR()).ping,n.then(e,e),t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,t.componentStack=l,void IN(o);if("Maximum call stack size exceeded"===n.message)return n=KR(e,t,n=oR()),e.pingedTasks.push(n),t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,t.componentStack=l,void IN(o)}}else{var u=c.children.length,d=c.chunks.length;try{return WR(e,t,n,r)}catch(f){if(iR(),c.children.length=u,c.chunks.length=d,"object"==typeof(n=f===MN?zN():f)&&null!==n){if("function"==typeof n.then)return e=QR(e,t,r=oR()).ping,n.then(e,e),t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,t.componentStack=l,void IN(o);if("Maximum call stack size exceeded"===n.message)return n=QR(e,t,n=oR()),e.pingedTasks.push(n),t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,t.componentStack=l,void IN(o)}}}throw t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,IN(o),n}function JR(e){var t=e.blockedBoundary;null!==(e=e.blockedSegment)&&(e.status=3,iO(this,t,e))}function eO(e,t,n,r,a,o){for(var i=0;i<n.length;i++){var s=n[i];if(4===s.length)eO(e,t,s[2],s[3],a,o);else{s=s[5];var l=e,c=o,u=LR(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(N_(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 tO(e,t,n){var r=e.blockedBoundary,a=e.blockedSegment;if(null!==a){if(6===a.status)return;a.status=3}if(a=zR(e.componentStack),null===r){if(13!==t.status&&14!==t.status){if(null===(r=e.replay))return jR(t,n,a),void HR(t,n);r.pendingTasks--,0===r.pendingTasks&&0<r.nodes.length&&(e=jR(t,n,a),eO(t,null,r.nodes,r.slots,n,e)),t.pendingRootTasks--,0===t.pendingRootTasks&&rO(t)}}else r.pendingTasks--,4!==r.status&&(r.status=4,e=jR(t,n,a),r.status=4,r.errorDigest=e,XR(t,r),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach((function(e){return tO(e,t,n)})),r.fallbackAbortableTasks.clear();t.allPendingTasks--,0===t.allPendingTasks&&aO(t)}function nO(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=pN(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]=RA,o&&(o+=", "),o+=h,n.resets.style[p]="string"==typeof d.crossOrigin||"string"==typeof d.integrity?[d.crossOrigin,d.integrity]:RA}}r(o?{Link:o}:{})}}}catch(m){jR(e,m,{})}}function rO(e){null===e.trackedPostpones&&nO(e,!0),e.onShellError=AR,(e=e.onShellReady)()}function aO(e){nO(e,null===e.trackedPostpones||(null===e.completedRootSegment||5!==e.completedRootSegment.status)),(e=e.onAllReady)()}function oO(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&&oO(e,n)}else e.completedSegments.push(t)}function iO(e,t,n){if(null===t){if(null!==n&&n.parentFlushed){if(null!==e.completedRootSegment)throw Error(N_(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&rO(e)}else t.pendingTasks--,4!==t.status&&(0===t.pendingTasks?(0===t.status&&(t.status=1),null!==n&&n.parentFlushed&&1===n.status&&oO(t,n),t.parentFlushed&&e.completedBoundaries.push(t),1===t.status&&(t.fallbackAbortableTasks.forEach(JR,e),t.fallbackAbortableTasks.clear())):null!==n&&n.parentFlushed&&1===n.status&&(oO(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&aO(e)}function sO(e){if(14!==e.status&&13!==e.status){var t=SN,n=AA.H;AA.H=yR;var r=AA.A;AA.A=wR;var a=OR;OR=e;var o=kR;kR=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){IN(l.context);try{if("number"==typeof l.replay.slots?VR(d,l,l.replay.slots,l.node,l.childIndex):qR(d,l),1===l.replay.pendingTasks&&0<l.replay.nodes.length)throw Error(N_(488));l.replay.pendingTasks--,l.abortSet.delete(l),iO(d,l.blockedBoundary,null)}catch(x){iR();var p=x===MN?zN():x;if("object"==typeof p&&null!==p&&"function"==typeof p.then){var f=l.ping;p.then(f,f),l.thenableState=oR()}else{l.replay.pendingTasks--,l.abortSet.delete(l);var h=zR(l.componentStack);c=void 0;var m=d,g=l.blockedBoundary,y=12===d.status?d.fatalError:p;eO(m,g,l.replay.nodes,l.replay.slots,y,c=jR(m,y,h)),d.pendingRootTasks--,0===d.pendingRootTasks&&rO(d),d.allPendingTasks--,0===d.allPendingTasks&&aO(d)}}}}else if(d=void 0,0===(m=u).status){m.status=6,IN(l.context);var b=m.children.length,v=m.chunks.length;try{qR(c,l),m.lastPushedText&&m.textEmbedded&&m.chunks.push(XA),l.abortSet.delete(l),m.status=1,iO(c,l.blockedBoundary,m)}catch(x){iR(),m.children.length=b,m.chunks.length=v;var k=x===MN?zN():12===c.status?c.fatalError:x;if("object"==typeof k&&null!==k&&"function"==typeof k.then){m.status=0,l.thenableState=oR();var w=l.ping;k.then(w,w)}else{var E=zR(l.componentStack);l.abortSet.delete(l),m.status=4;var S=l.blockedBoundary;d=jR(c,k,E),null===S?HR(c,k):(S.pendingTasks--,4!==S.status&&(S.status=4,S.errorDigest=d,XR(c,S),S.parentFlushed&&c.clientRenderedBoundaries.push(S))),c.allPendingTasks--,0===c.allPendingTasks&&aO(c)}}}}s.splice(0,i),null!==e.destination&&fO(e,e.destination)}catch(T){jR(e,T,{}),HR(e,T)}finally{kR=o,AA.H=n,AA.A=r,n===yR&&IN(t),OR=a}}}function lO(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,iA(t,zC),iA(t,e.placeholderPrefix),iA(t,e=uA(r.toString(16))),sA(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++)iA(t,o[i]);a=cO(e,t,a,r)}for(;i<o.length-1;i++)iA(t,o[i]);return i<o.length&&(a=sA(t,o[i])),a;default:throw Error(N_(390))}}function cO(e,t,n,r){var a=n.boundary;if(null===a)return lO(e,t,n,r);if(a.parentFlushed=!0,4===a.status)a=a.errorDigest,sA(t,GC),iA(t,WC),a&&(iA(t,YC),iA(t,uA(EA(a))),iA(t,qC)),sA(t,XC),lO(e,t,n,r);else if(1!==a.status)0===a.status&&(a.rootSegmentID=e.nextSegmentId++),0<a.completedSegments.length&&e.partialBoundaries.push(a),KC(t,e.renderState,a.rootSegmentID),r&&((a=a.fallbackState).styles.forEach(yN,r),a.stylesheets.forEach(bN,r)),lO(e,t,n,r);else if(a.byteSize>e.progressiveChunkSize)a.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(a),KC(t,e.renderState,a.rootSegmentID),lO(e,t,n,r);else{if(r&&((n=a.contentState).styles.forEach(yN,r),n.stylesheets.forEach(bN,r)),sA(t,HC),1!==(n=a.completedSegments).length)throw Error(N_(391));cO(e,t,n[0],r)}return sA(t,VC)}function uO(e,t,n,r){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:case 2:return iA(e,QC),iA(e,t.segmentPrefix),iA(e,uA(r.toString(16))),sA(e,ZC);case 3:return iA(e,eI),iA(e,t.segmentPrefix),iA(e,uA(r.toString(16))),sA(e,tI);case 4:return iA(e,rI),iA(e,t.segmentPrefix),iA(e,uA(r.toString(16))),sA(e,aI);case 5:return iA(e,iI),iA(e,t.segmentPrefix),iA(e,uA(r.toString(16))),sA(e,sI);case 6:return iA(e,cI),iA(e,t.segmentPrefix),iA(e,uA(r.toString(16))),sA(e,uI);case 7:return iA(e,pI),iA(e,t.segmentPrefix),iA(e,uA(r.toString(16))),sA(e,fI);case 8:return iA(e,mI),iA(e,t.segmentPrefix),iA(e,uA(r.toString(16))),sA(e,gI);default:throw Error(N_(397))}}(t,e.renderState,n.parentFormatContext,n.id),cO(e,t,n,r),function(e,t){switch(t.insertionMode){case 0:case 1:case 2:return sA(e,JC);case 3:return sA(e,nI);case 4:return sA(e,oI);case 5:return sA(e,lI);case 6:return sA(e,dI);case 7:return sA(e,hI);case 8:return sA(e,yI);default:throw Error(N_(397))}}(t,n.parentFormatContext)}function dO(e,t,n){for(var r=n.completedSegments,a=0;a<r.length;a++)pO(e,t,n,r[a]);r.length=0,qI(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,iA(t,e.startInlineScript),o?2&r.instructions?8&r.instructions?iA(t,_I):(r.instructions|=8,iA(t,TI)):(r.instructions|=10,iA(t,xI)):2&r.instructions?iA(t,SI):(r.instructions|=2,iA(t,EI)),r=uA(a.toString(16)),iA(t,e.boundaryPrefix),iA(t,r),iA(t,AI),iA(t,e.segmentPrefix),iA(t,r),o?(iA(t,CI),function(e,t){iA(e,oN);var n=oN;t.stylesheets.forEach((function(t){if(2!==t.state)if(3===t.state)iA(e,n),iA(e,uA(BI(""+t.props.href))),iA(e,lN),n=iN;else{iA(e,n);var r=t.props["data-precedence"],a=t.props,o=_A(""+t.props.href);for(var i in iA(e,uA(BI(o))),r=""+r,iA(e,sN),iA(e,uA(BI(r))),a)if(hA.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(N_(399,"link"));default:cN(e,i,r)}iA(e,lN),n=iN,t.state=3}})),iA(e,lN)}(t,n)):iA(t,II),n=sA(t,NI),BC(t,e)&&n}function pO(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(N_(392));return uO(e,t,r,a)}return o===n.rootSegmentID?uO(e,t,r,a):(uO(e,t,r,a),n=e.resumableState,iA(t,(e=e.renderState).startInlineScript),1&n.instructions?iA(t,vI):(n.instructions|=1,iA(t,bI)),iA(t,e.segmentPrefix),iA(t,o=uA(o.toString(16))),iA(t,kI),iA(t,e.placeholderPrefix),iA(t,o),t=sA(t,wI))}function fO(e,t){aA=new Uint8Array(2048),oA=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++)iA(t,i[a]);if(s)for(a=0;a<s.length;a++)iA(t,s[a]);else iA(t,PC("head")),iA(t,mC)}else if(s)for(a=0;a<s.length;a++)iA(t,s[a]);var l=o.charsetChunks;for(a=0;a<l.length;a++)iA(t,l[a]);l.length=0,o.preconnects.forEach(YI,t),o.preconnects.clear();var c=o.viewportChunks;for(a=0;a<c.length;a++)iA(t,c[a]);c.length=0,o.fontPreloads.forEach(YI,t),o.fontPreloads.clear(),o.highImagePreloads.forEach(YI,t),o.highImagePreloads.clear(),o.styles.forEach(nN,t);var u=o.importMapChunks;for(a=0;a<u.length;a++)iA(t,u[a]);u.length=0,o.bootstrapScripts.forEach(YI,t),o.scripts.forEach(YI,t),o.scripts.clear(),o.bulkPreloads.forEach(YI,t),o.bulkPreloads.clear();var d=o.hoistableChunks;for(a=0;a<d.length;a++)iA(t,d[a]);d.length=0,i&&null===s&&iA(t,FC("head")),cO(e,t,r,null),e.completedRootSegment=null,BC(t,e.renderState)}var p=e.renderState;r=0;var f=p.viewportChunks;for(r=0;r<f.length;r++)iA(t,f[r]);f.length=0,p.preconnects.forEach(YI,t),p.preconnects.clear(),p.fontPreloads.forEach(YI,t),p.fontPreloads.clear(),p.highImagePreloads.forEach(YI,t),p.highImagePreloads.clear(),p.styles.forEach(aN,t),p.scripts.forEach(YI,t),p.scripts.clear(),p.bulkPreloads.forEach(YI,t),p.bulkPreloads.clear();var h=p.hoistableChunks;for(r=0;r<h.length;r++)iA(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;iA(p,b.startInlineScript),4&y.instructions?iA(p,OI):(y.instructions|=4,iA(p,RI)),iA(p,b.boundaryPrefix),iA(p,uA(v.toString(16))),iA(p,PI),k&&(iA(p,LI),iA(p,uA((C=k||"",JSON.stringify(C).replace(MI,(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=sA(p,DI);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(!dO(e,t,E[n]))return e.destination=null,n++,void E.splice(0,n);E.splice(0,n),lA(t),aA=new Uint8Array(2048),oA=0;var S=e.partialBoundaries;for(n=0;n<S.length;n++){var x=S[n];e:{m=e,g=t;var T=x.completedSegments;for(w=0;w<T.length;w++)if(!pO(m,g,x,T[w])){w++,T.splice(0,w);var _=!1;break e}T.splice(0,w),_=qI(g,x.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(!dO(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&&iA(t,FC("body")),n.hasHtml&&iA(t,FC("html")),lA(t),e.status=14,t.close(),e.destination=null):lA(t)}var C}function hO(e){e.flushScheduled=null!==e.destination,rA((function(){return sO(e)})),eA((function(){10===e.status&&(e.status=11),null===e.trackedPostpones&&nO(e,0===e.pendingRootTasks)}))}function mO(e){!1===e.flushScheduled&&0===e.pingedTasks.length&&null!==e.destination&&(e.flushScheduled=!0,eA((function(){var t=e.destination;t?fO(e,t):e.flushScheduled=!1})))}function gO(e,t){if(13===e.status)e.status=14,pA(t,e.fatalError);else if(14!==e.status&&null===e.destination){e.destination=t;try{fO(e,t)}catch(n){jR(e,n,{}),HR(e,n)}}}function yO(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(N_(432)):"object"==typeof t&&null!==t&&"function"==typeof t.then?Error(N_(530)):t;e.fatalError=r,n.forEach((function(t){return tO(t,e,r)})),n.clear()}null!==e.destination&&fO(e,e.destination)}catch(a){jR(e,a,{}),HR(e,a)}}function bO(){var e=C_.version;if("19.0.0"!==e)throw Error(N_(527,e,"19.0.0"))}bO(),bO(),A_.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=VA(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=IR(e,t,n,r,a,o,i,s,l,c,u,void 0)).trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},e}(e,i,GA(i,void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,a,t?t.maxHeadersLength:void 0),qA(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){gO(s,e)},cancel:function(e){s.destination=null,yO(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)yO(s,l.reason);else{var c=function(){yO(s,l.reason),l.removeEventListener("abort",c)};l.addEventListener("abort",c)}}hO(s)}))},A_.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=VA(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=IR(e,c,GA(c,t?t.nonce:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,i,t?t.maxHeadersLength:void 0),qA(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){gO(u,e)},cancel:function(e){u.destination=null,yO(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)yO(u,d.reason);else{var p=function(){yO(u,d.reason),d.removeEventListener("abort",p)};d.addEventListener("abort",p)}}hO(u)}))},A_.version="19.0.0",RR=A_,(NR=BE).version;var vO=NR.renderToString;function kO({children:e="",...t}){let n="";return W.isValidElement(e)?n=vO(e):"string"==typeof e&&(n=e),Hf.jsx("template",{...t,dangerouslySetInnerHTML:{__html:n}})}function wO({root:e,children:t=null}){return re.createPortal(t,e)}function EO(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]),Hf.jsx(e.tag,{ref:l,...i,children:(c||a)&&Hf.jsx(FE.Provider,{value:c,children:a?Hf.jsx(kO,{shadowroot:t,shadowrootmode:t,children:e.render({root:c,ssr:a,children:o})}):Hf.jsx(wO,{root:c,children:e.render({root:c,ssr:a,children:o})})})},d)}))}NR.renderToStaticMarkup,RR.renderToReadableStream,RR.resume&&RR.resume;const SO=new Map;const xO=function(e={},t="core",n=({children:e})=>e){return new Proxy(e,{get:function(e,r){const a=ME.decamelize(r,{separator:"-"}),o=`${t}-${a}`;if(!SO.has(o)){const e=EO({tag:a,render:n});SO.set(o,e)}return SO.get(o)}})}();var TO=Boolean(null==globalThis?void 0:globalThis.document)?V.useLayoutEffect:()=>{},_O=q["useId".toString()]||(()=>{}),AO=0;function CO(e){const[t,n]=V.useState(_O());return TO((()=>{n((e=>e??String(AO++)))}),[e]),t?`radix-${t}`:""}const IO=V.createContext(void 0),NO=()=>V.useContext(IO);function RO({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=CO(),u=xO.div;return Hf.jsxs(u,{id:`inkeep-shadow${c}`,ref:e=>{e&&o(e)},style:e,children:[Hf.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,Hf.jsx("div",{id:"inkeep-widget-root",ref:e=>{e&&s(e)},style:e,children:Hf.jsx(IO.Provider,{value:l,children:a&&i&&t})})]})}const OO=e=>NO()?e.children:Hf.jsx(RO,{...e}),PO="IntelligentForm",LO={prefix:"ikp",aiChatSettings:{model:"inkeep-qa-expert",placeholder:"How do I get started?",aiAssistantName:void 0,shouldOpenLinksInNewTab:!0,disclaimerSettings:{isEnabled:!1,label:"Usage policy"},isShareButtonVisible:!1,isViewOnly:!1,exampleQuestionsLabel:"Example questions",exampleQuestions:[],isFirstExampleQuestionHighlighted:!0,isCopyChatButtonVisible:!1,getHelpOptions:[],workflowsHeader:"Workflows",workflows:[],toolbarButtonLabels:{clear:"Clear",share:"Share",getHelp:"Get help",stop:"Stop",copyChat:"Copy"},prompts:[]},baseSettings:bE,searchSettings:{shouldOpenLinksInNewTab:!1,maxResults:40,defaultQuery:"",debounceTimeMs:0,tabs:["All","Publications","PDFs","GitHub","Forums","Discord","Slack","StackOverflow"],placeholder:"Search for anything...",view:"single-pane"},componentType:"EmbeddedChat"},DO=V.createContext(LO),MO=({children:e,value:t})=>{const n=NO(),r=function(e,t,...n){return n.reduce(((t,n)=>Cf(t,n,e)),t)}(((e,n,r)=>{var a;return"apiKey"!==r||n||(null==(a=null==t?void 0:t.baseSettings)?void 0:a.aiApiBaseUrl)||console.warn("Inkeep API key is missing."),["baseSettings","searchSettings","aiChatSettings"].includes(r)&&!n?e:n}),LO,{baseSettings:n??{}},t??{});return Hf.jsx(DO.Provider,{value:r,children:e})},FO=()=>{const e=V.useContext(DO);if(!e)throw new Error("useInkeepConfig must be used within a ConfigProvider");return e},BO="conversationId",zO=V.createContext(null),jO=({children:e})=>{const t=function(){const[e,t]=V.useState(void 0),{aiChatSettings:n}=FO(),{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(BO);e&&t(e)}};n();const a=()=>n();return window.addEventListener("popstate",a),()=>{window.removeEventListener("popstate",a)}}),[r]),e}(),{aiChatSettings:n}=FO(),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 Hf.jsx(zO.Provider,{value:l,children:e})},HO=()=>{const e=V.useContext(zO);if(!e)throw new Error("useInkeepConversation must be used within an InkeepConversationProvider");return e};const UO="inkeepUsagePreferences",$O={defaultView:null,inkeepChatSessionId:null},GO={hasSwitchModeButtonJiggled:!1,userId:null,...$O},VO={set(e,t,n,r=365){try{if("cookie"===e){const e=new Date;void 0===n?(e.setTime(e.getTime()-1),document.cookie=`${UO}_${t}=; expires=${e.toUTCString()}; path=/`):(e.setTime(e.getTime()+24*r*60*60*1e3),document.cookie=`${UO}_${t}=${n}; expires=${e.toUTCString()}; path=/`)}else"undefined"!=typeof sessionStorage&&sessionStorage.setItem(`${UO}_${t}`,n?JSON.stringify(n):"")}catch(a){return null}},get(e,t){if("cookie"===e){const e=`${UO}_${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(`${UO}_${t}`);return e?JSON.parse(e):null}}catch(n){return null}return null}},WO=()=>{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},qO=V.createContext(void 0),YO=({children:e})=>{const{baseSettings:{userProperties:t,privacyPreferences:n}}=FO(),{optOutAllAnalytics:r,optOutAnalyticalCookies:a}=n,{browserStorage:o,setBrowserStorage:i}=(()=>{const{baseSettings:e,componentType:t}=FO(),{optOutAllAnalytics:n,optOutFunctionalCookies:r}=e.privacyPreferences,a=n||r||!WO()?"sessionStorage":"cookie",o=`${e.apiKey}-${t}`,i=e=>e in $O?`${e}-${o}`:e,s=Object.keys(GO).reduce(((e,t)=>{const n=i(t),r=VO.get(a,n);return{...e,[t]:r}}),{...GO}),[l,c]=V.useState(s);return V.useEffect((()=>{if(r)for(const e of Object.keys(GO)){const t=i(e);VO.set("cookie",t,null,-1)}}),[r]),{browserStorage:l,setBrowserStorage:(e,t,n=365)=>{const r=i(e);VO.set(a,r,t,n),c((n=>({...n,[e]:t})))}}})(),s=V.useMemo((()=>WO()),[]),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]),Hf.jsx(qO.Provider,{value:{userProperties:c},children:e})},XO=()=>{const e=V.useContext(qO);if(!e)throw new Error("useUser must be used within a UserProvider");return e};const KO=V.createContext(void 0),QO=({children:e})=>{const{baseSettings:t,componentType:n}=FO(),{apiKey:r,analyticsApiBaseUrl:a,tags:o,privacyPreferences:i,env:s}=t,{userProperties:l}=XO(),c=V.useMemo((()=>({widgetLibraryVersion:"0.5.38",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 Hf.jsx(KO.Provider,{value:d,children:e})},ZO=V.createContext(void 0),JO=({children:e})=>{const{baseSettings:t}=FO(),{apiKey:n,analyticsApiBaseUrl:r,tags:a,privacyPreferences:{optOutAllAnalytics:o},env:i}=t,{userProperties:s}=XO(),{logEvent:l}=(()=>{const e=V.useContext(KO);if(!e)throw new Error("useBaseEvents must be used within a BaseEventsProvider");return e})(),{conversation:c,setConversation:u}=HO(),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 Hf.jsx(ZO.Provider,{value:f,children:e})},eP=({children:e})=>Hf.jsx(QO,{children:Hf.jsx(JO,{children:e})}),tP=(...e)=>(...t)=>{for(const n of e)null==n||n(...t)},nP=e=>"string"==typeof e;function rP(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 aP=e=>e?"":void 0;function oP(e,t){return"function"==typeof e?e(t):e}var iP=e=>"checkbox"===e.type,sP=e=>e instanceof Date,lP=e=>null==e;const cP=e=>"object"==typeof e;var uP=e=>!lP(e)&&!Array.isArray(e)&&cP(e)&&!sP(e),dP=e=>uP(e)&&e.target?iP(e.target)?e.target.checked:e.target.value:e,pP=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),fP="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function hP(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(fP&&(e instanceof Blob||r)||!n&&!uP(e))return e;if(t=n?[]:{},n||(e=>{const t=e.constructor&&e.constructor.prototype;return uP(t)&&t.hasOwnProperty("isPrototypeOf")})(e))for(const n in e)e.hasOwnProperty(n)&&(t[n]=hP(e[n]));else t=e}return t}var mP=e=>Array.isArray(e)?e.filter(Boolean):[],gP=e=>void 0===e,yP=(e,t,n)=>{if(!t||!uP(e))return n;const r=mP(t.split(/[,[\].]+?/)).reduce(((e,t)=>lP(e)?e:e[t]),e);return gP(r)||r===e?gP(e[t])?n:e[t]:r},bP=e=>"boolean"==typeof e,vP=e=>/^\w*$/.test(e),kP=e=>mP(e.replace(/["|']|\]/g,"").split(/\.|\[/)),wP=(e,t,n)=>{let r=-1;const a=vP(t)?[t]:kP(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=uP(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 EP="blur",SP="focusout",xP="change",TP="onBlur",_P="onChange",AP="onSubmit",CP="onTouched",IP="all",NP="max",RP="min",OP="maxLength",PP="minLength",LP="pattern",DP="required",MP="validate",FP=W.createContext(null),BP=()=>W.useContext(FP);var zP=(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]!==IP&&(t._proxyFormState[a]=!r||IP),n&&(n[a]=!0),e[a]}});return a},jP=e=>uP(e)&&!Object.keys(e).length,HP=(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||IP)))},UP=e=>Array.isArray(e)?e:[e],$P=(e,t,n)=>!e||!t||e===t||UP(e).some((e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))));function GP(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 VP=e=>"string"==typeof e,WP=(e,t,n,r,a)=>VP(e)?(r&&t.watch.add(e),yP(n,e,a)):Array.isArray(e)?e.map((e=>(r&&t.watch.add(e),yP(n,e)))):(r&&(t.watchAll=!0),n);function qP(e){const t=BP(),{name:n,disabled:r,control:a=t.control,shouldUnregister:o}=e,i=pP(a._names.array,n),s=function(e){const t=BP(),{control:n=t.control,name:r,defaultValue:a,disabled:o,exact:i}=e||{},s=W.useRef(r);s.current=r,GP({disabled:o,subject:n._subjects.values,next:e=>{$P(s.current,e.name,i)&&c(hP(WP(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:yP(a._formValues,n,yP(a._defaultValues,n,e.defaultValue)),exact:!0}),l=function(e){const t=BP(),{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,GP({disabled:r,next:e=>l.current&&$P(u.current,e.name,o)&&HP(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((()=>zP(i,n,c.current,!1)),[i,n])}({control:a,name:n,exact:!0}),c=W.useRef(a.register(n,{...e.rules,value:s,...bP(e.disabled)?{disabled:e.disabled}:{}})),u=W.useMemo((()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!yP(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!yP(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!yP(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!yP(l.validatingFields,n)},error:{enumerable:!0,get:()=>yP(l.errors,n)}})),[l,n]),d=W.useMemo((()=>({name:n,value:s,...bP(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:e=>c.current.onChange({target:{value:dP(e),name:n},type:xP}),onBlur:()=>c.current.onBlur({target:{value:yP(a._formValues,n),name:n},type:EP}),ref:e=>{const t=yP(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=yP(a._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){const e=hP(yP(a._options.defaultValues,n));wP(a._defaultValues,n,e),gP(yP(a._formValues,n))&&wP(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 YP=e=>e.render(qP(e));var XP=(e,t,n,r,a)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:a||!0}}:{},KP=e=>({isOnSubmit:!e||e===AP,isOnBlur:e===TP,isOnChange:e===_P,isOnAll:e===IP,isOnTouch:e===CP}),QP=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const ZP=(e,t,n,r)=>{for(const a of n||Object.keys(e)){const n=yP(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(ZP(o,t))break}else if(uP(o)&&ZP(o,t))break}}};var JP=(e,t,n)=>{const r=UP(yP(e,n));return wP(r,"root",t[n]),wP(e,n,r),e},eL=e=>"file"===e.type,tL=e=>"function"==typeof e,nL=e=>{if(!fP)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},rL=e=>VP(e),aL=e=>"radio"===e.type,oL=e=>e instanceof RegExp;const iL={value:!1,isValid:!1},sL={value:!0,isValid:!0};var lL=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&&!gP(e[0].attributes.value)?gP(e[0].value)||""===e[0].value?sL:{value:e[0].value,isValid:!0}:sL:iL}return iL};const cL={isValid:!1,value:null};var uL=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),cL):cL;function dL(e,t,n="validate"){if(rL(e)||Array.isArray(e)&&e.every(rL)||bP(e)&&!e)return{type:n,message:rL(e)?e:"",ref:t}}var pL=e=>uP(e)&&!oL(e)?e:{value:e,message:""},fL=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=yP(n,m);if(!y||t.has(m))return{};const v=s?s[0]:i,k=e=>{a&&v.reportValidity&&(v.setCustomValidity(bP(e)?"":e||""),v.reportValidity())},w={},E=aL(i),S=iP(i),x=E||S,T=(g||eL(i))&&gP(i.value)&&gP(b)||nL(i)&&""===i.value||""===b||Array.isArray(b)&&!b.length,_=XP.bind(null,m,r,w),A=(e,t,n,r=OP,a=PP)=>{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&&(!x&&(T||lP(b))||bP(b)&&!b||S&&!lL(s).isValid||E&&!uL(s).isValid)){const{value:e,message:t}=rL(l)?{value:!!l,message:l}:pL(l);if(e&&(w[m]={type:DP,message:t,ref:v,..._(DP,t)},!r))return k(t),w}if(!(T||lP(d)&&lP(p))){let e,t;const n=pL(p),a=pL(d);if(lP(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;VP(n.value)&&b&&(e=s?o(b)>o(n.value):l?b>n.value:r>new Date(n.value)),VP(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);lP(n.value)||(e=r>n.value),lP(a.value)||(t=r<a.value)}if((e||t)&&(A(!!e,n.message,a.message,NP,RP),!r))return k(w[m].message),w}if((c||u)&&!T&&(VP(b)||o&&Array.isArray(b))){const e=pL(c),t=pL(u),n=!lP(e.value)&&b.length>+e.value,a=!lP(t.value)&&b.length<+t.value;if((n||a)&&(A(n,e.message,t.message),!r))return k(w[m].message),w}if(f&&!T&&VP(b)){const{value:e,message:t}=pL(f);if(oL(e)&&!b.match(e)&&(w[m]={type:LP,message:t,ref:i,..._(LP,t)},!r))return k(t),w}if(h)if(tL(h)){const e=dL(await h(b,n),v);if(e&&(w[m]={...e,..._(MP,e.message)},!r))return k(e.message),w}else if(uP(h)){let e={};for(const t in h){if(!jP(e)&&!r)break;const a=dL(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 hL(e,t){const n=Array.isArray(t)?t:vP(t)?[t]:kP(t),r=1===n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=gP(e)?r++:e[t[r++]];return e}(e,n),a=n.length-1,o=n[a];return r&&delete r[o],0!==a&&(uP(r)&&jP(r)||Array.isArray(r)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!gP(e[t]))return!1;return!0}(r))&&hL(e,n.slice(0,-1)),e}var mL=()=>{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=[]}}},gL=e=>lP(e)||!cP(e);function yL(e,t){if(gL(e)||gL(t))return e===t;if(sP(e)&&sP(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(sP(n)&&sP(e)||uP(n)&&uP(e)||Array.isArray(n)&&Array.isArray(e)?!yL(n,e):n!==e)return!1}}return!0}var bL=e=>"select-multiple"===e.type,vL=e=>nL(e)&&e.isConnected,kL=e=>{for(const t in e)if(tL(e[t]))return!0;return!1};function wL(e,t={}){const n=Array.isArray(e);if(uP(e)||n)for(const r in e)Array.isArray(e[r])||uP(e[r])&&!kL(e[r])?(t[r]=Array.isArray(e[r])?[]:{},wL(e[r],t[r])):lP(e[r])||(t[r]=!0);return t}function EL(e,t,n){const r=Array.isArray(e);if(uP(e)||r)for(const a in e)Array.isArray(e[a])||uP(e[a])&&!kL(e[a])?gP(t)||gL(n[a])?n[a]=Array.isArray(e[a])?wL(e[a],[]):{...wL(e[a])}:EL(e[a],lP(t)?{}:t[a],n[a]):n[a]=!yL(e[a],t[a]);return n}var SL=(e,t)=>EL(e,t,wL(t)),xL=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>gP(e)?e:t?""===e?NaN:e?+e:e:n&&VP(e)?new Date(e):r?r(e):e;function TL(e){const t=e.ref;return eL(t)?t.files:aL(t)?uL(e.refs).value:bL(t)?[...t.selectedOptions].map((({value:e})=>e)):iP(t)?lL(e.refs).value:xL(gP(t.value)?e.ref.value:t.value,e)}var _L=e=>gP(e)?e:oL(e)?e.source:uP(e)?oL(e.value)?e.value.source:e.value:e;const AL="AsyncFunction";function CL(e,t,n){const r=yP(e,n);if(r||vP(n))return{error:r,name:n};const a=n.split(".");for(;a.length;){const r=a.join("."),o=yP(t,r),i=yP(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 IL={mode:AP,reValidateMode:_P,shouldFocusError:!0};function NL(e={}){let t,n={...IL,...e},r={submitCount:0,isDirty:!1,isLoading:tL(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},a={},o=(uP(n.defaultValues)||uP(n.values))&&hP(n.defaultValues||n.values)||{},i=n.shouldUnregister?{}:hP(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:mL(),array:mL(),state:mL()},p=KP(n.mode),f=KP(n.reValidateMode),h=n.criteriaMode===IP,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?wP(r.validatingFields,e,t):hL(r.validatingFields,e))})),d.state.next({validatingFields:r.validatingFields,isValidating:!jP(r.validatingFields)}))},y=(e,t,n,r)=>{const l=yP(a,e);if(l){const a=yP(i,e,gP(n)?yP(o,e):n);gP(a)||r&&r.defaultChecked||t?wP(i,e,t?a:TL(l._f)):x(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=!!(yP(a,e)&&yP(a,e)._f&&yP(a,e)._f.disabled);if(!i||s){u.isDirty&&(p=r.isDirty,r.isDirty=f.isDirty=E(),c=p!==f.isDirty);const a=n||yL(yP(o,e),t);p=!(n||!yP(r.dirtyFields,e)),a||n?hL(r.dirtyFields,e):wP(r.dirtyFields,e,!0),f.dirtyFields=r.dirtyFields,c=c||u.dirtyFields&&p!==!a}if(i){const t=yP(r.touchedFields,e);t||(wP(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=yP(r.errors,e),l=u.isValid&&bP(a)&&r.isValid!==a;var p;if(n.delayError&&o?(p=()=>((e,t)=>{wP(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?wP(r.errors,e,o):hL(r.errors,e)),(o?!yL(s,o):s)||!jP(i)||l){const t={...i,...l&&bP(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=yP(t,o);e&&wP(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&&!!(tL(o.validate)&&o.validate.constructor.name===AL||uP(o.validate)&&Object.values(o.validate).find((e=>e.constructor.name===AL))));p&&u.validatingFields&&g([s],!0);const f=await fL(c,l.disabled,i,h,n.shouldUseNativeValidation&&!t,d);if(p&&u.validatingFields&&g([s]),f[e.name]&&(a.valid=!1,t))break;!t&&(yP(f,e.name)?d?JP(r.errors,f,e.name):wP(r.errors,e.name,f[e.name]):hL(r.errors,e.name))}!jP(d)&&await w(d,t,a)}}var o;return a.valid},E=(e,t)=>!n.disabled&&(e&&t&&wP(i,e,t),!yL(N(),o)),S=(e,t,n)=>WP(e,l,{...s.mount?i:gP(t)?o:VP(e)?{[e]:t}:t},n,t),x=(e,t,n={})=>{const r=yP(a,e);let o=t;if(r){const n=r._f;n&&(!n.disabled&&wP(i,e,xL(t,n)),o=nL(n.ref)&&lP(t)?"":t,bL(n.ref)?[...n.ref.options].forEach((e=>e.selected=o.includes(e.value))):n.refs?iP(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)):eL(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)},T=(e,t,n)=>{for(const r in t){const o=t[r],i=`${e}.${r}`,s=yP(a,i);(l.array.has(e)||uP(o)||s&&!s._f)&&!sP(o)?T(i,o,n):x(i,o,n)}},_=(e,t,n={})=>{const c=yP(a,e),p=l.array.has(e),f=hP(t);wP(i,e,f),p?(d.array.next({name:e,values:{...i}}),(u.isDirty||u.dirtyFields)&&n.shouldDirty&&d.state.next({name:e,dirtyFields:SL(o,i),isDirty:E(e,f)})):!c||c._f||lP(f)?x(e,f,n):T(e,f,n),QP(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=yP(a,c),S=e=>{y=Number.isNaN(e)||sP(e)&&isNaN(e.getTime())||yL(e,yP(i,c,e))};if(E){let s,T;const _=o.type?TL(E._f):dP(e),A=e.type===EP||e.type===SP,C=!((x=E._f).mount&&(x.required||x.min||x.max||x.maxLength||x.minLength||x.pattern||x.validate)||n.resolver||yP(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,yP(r.touchedFields,c),r.isSubmitted,f,p),N=QP(c,l,A);wP(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=CL(r.errors,a,c),n=CL(e,a,t.name||c);s=n.error,c=n.name,T=jP(e)}}else g([c],!0),s=(await fL(E,l.disabled,i,h,n.shouldUseNativeValidation))[c],g([c]),S(_),y&&(s?T=!1:u.isValid&&(T=await w(a,!0)));y&&(E._f.deps&&I(E._f.deps),v(c,T,s,R))}var x},C=(e,t)=>{if(yP(r.errors,t)&&e.focus)return e.focus(),1},I=async(e,t={})=>{let o,i;const s=UP(e);if(n.resolver){const t=await(async e=>{const{errors:t}=await k(e);if(e)for(const n of e){const e=yP(t,n);e?wP(r.errors,n,e):hL(r.errors,n)}else r.errors=t;return t})(gP(e)?e:s);o=jP(t),i=e?!s.some((e=>yP(t,e))):o}else e?(i=(await Promise.all(s.map((async e=>{const t=yP(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({...!VP(e)||u.isValid&&o!==r.isValid?{}:{name:e},...n.resolver||!e?{isValid:o}:{},errors:r.errors}),t.shouldFocus&&!i&&ZP(a,C,e?s:l.mount),i},N=e=>{const t={...s.mount?i:o};return gP(e)?t:VP(e)?yP(t,e):e.map((e=>yP(t,e)))},R=(e,t)=>({invalid:!!yP((t||r).errors,e),isDirty:!!yP((t||r).dirtyFields,e),error:yP((t||r).errors,e),isValidating:!!yP(r.validatingFields,e),isTouched:!!yP((t||r).touchedFields,e)}),O=(e,t,n)=>{const o=(yP(a,e,{_f:{}})._f||{}).ref,i=yP(r.errors,e)||{},{ref:s,message:l,type:c,...u}=i;wP(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?UP(e):l.mount)l.mount.delete(s),l.array.delete(s),t.keepValue||(hL(a,s),hL(i,s)),!t.keepError&&hL(r.errors,s),!t.keepDirty&&hL(r.dirtyFields,s),!t.keepTouched&&hL(r.touchedFields,s),!t.keepIsValidating&&hL(r.validatingFields,s),!n.shouldUnregister&&!t.keepDefaultValue&&hL(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})=>{(bP(e)&&s.mount||e||l.disabled.has(t))&&(e?l.disabled.add(t):l.disabled.delete(t),b(t,TL(n?n._f:yP(r,t)._f),!1,!1,!0))},D=(e,t={})=>{let r=yP(a,e);const i=bP(t.disabled)||bP(n.disabled);return wP(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:bP(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:_L(t.min),max:_L(t.max),minLength:_L(t.minLength),maxLength:_L(t.maxLength),pattern:_L(t.pattern)}:{},name:e,onChange:A,onBlur:A,ref:i=>{if(i){D(e,t),r=yP(a,e);const n=gP(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,s=(e=>aL(e)||iP(e))(n),l=r._f.refs||[];if(s?l.find((e=>e===n)):n===r._f.ref)return;wP(a,e,{_f:{...r._f,...s?{refs:[...l.filter(vL),n,...Array.isArray(yP(o,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),y(e,!1,void 0,n)}else r=yP(a,e,{}),r._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!pP(l.array,e)||!s.action)&&l.unMount.add(e)}}},M=()=>n.shouldFocusError&&ZP(a,C,l.mount),F=(e,t)=>async o=>{let s;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let c=hP(i);if(l.disabled.size)for(const e of l.disabled)wP(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(hL(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?hP(e):o,p=hP(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(SL(o,i))]);for(const t of Array.from(e))yP(r.dirtyFields,t)?wP(h,t,yP(i,t)):_(t,yP(h,t))}else{if(fP&&gP(e))for(const e of l.mount){const t=yP(a,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(nL(e)){const t=e.closest("form");if(t){t.reset();break}}}}a={}}i=n.shouldUnregister?t.keepDefaultValues?hP(o):{}:hP(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||yL(e,o))),isSubmitted:!!t.keepIsSubmitted&&r.isSubmitted,dirtyFields:f?{}:t.keepDirtyValues?t.keepDefaultValues&&i?SL(o,i):r.dirtyFields:t.keepDefaultValues&&e?SL(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(tL(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=yP(a,e);t&&(t._f.refs?t._f.refs.every((e=>!vL(e))):!vL(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(yP(a,e))){const t=l(yP(a,e),c.argA,c.argB);p&&wP(a,e,t)}if(f&&Array.isArray(yP(r.errors,e))){const t=l(yP(r.errors,e),c.argA,c.argB);p&&wP(r.errors,e,t),((e,t)=>{!mP(yP(e,t)).length&&hL(e,t)})(r.errors,e)}if(u.touchedFields&&f&&Array.isArray(yP(r.touchedFields,e))){const t=l(yP(r.touchedFields,e),c.argA,c.argB);p&&wP(r.touchedFields,e,t)}u.dirtyFields&&(r.dirtyFields=SL(o,i)),d.state.next({name:e,isDirty:E(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else wP(i,e,t)},_updateDisabledField:L,_getFieldArray:e=>mP(yP(s.mount?i:o,e,n.shouldUnregister?yP(o,e,[]):[])),_reset:B,_resetDefaultValues:()=>tL(n.defaultValues)&&n.defaultValues().then((e=>{z(e,n.resetOptions),d.state.next({isLoading:!1})})),_updateFormState:e=>{r={...r,...e}},_disableForm:e=>{bP(e)&&(d.state.next({disabled:e}),ZP(a,((t,n)=>{const r=yP(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)=>tL(e)?d.values.subscribe({next:n=>e(S(void 0,t),n)}):S(e,t,!0),setValue:_,getValues:N,reset:z,resetField:(e,t={})=>{yP(a,e)&&(gP(t.defaultValue)?_(e,hP(yP(o,e))):(_(e,t.defaultValue),wP(o,e,hP(t.defaultValue))),t.keepTouched||hL(r.touchedFields,e),t.keepDirty||(hL(r.dirtyFields,e),r.isDirty=t.defaultValue?E(e,hP(yP(o,e))):E()),t.keepError||(hL(r.errors,e),u.isValid&&m()),d.state.next({...r}))},clearErrors:e=>{e&&UP(e).forEach((e=>hL(r.errors,e))),d.state.next({errors:e?r.errors:{}})},unregister:P,setError:O,setFocus:(e,t={})=>{const n=yP(a,e),r=n&&n._f;if(r){const e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&tL(e.select)&&e.select())}},getFieldState:R}}const RL={text:"",email:"",checkbox:!1,textarea:"",file:void 0,select:""};const OL=new TextEncoder;async function PL(e,t){return n=await async function(e,t){return crypto.subtle.digest(e.toUpperCase(),"string"==typeof t?OL.encode(t):new Uint8Array(t))}(e,t),[...new Uint8Array(n)].map((e=>e.toString(16).padStart(2,"0"))).join("");var n}const LL=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 PL(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 DL(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 ML(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function FL(...e){return t=>{let n=!1;const r=e.map((e=>{const r=ML(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():ML(e[t],null)}}}}function BL(...e){return V.useCallback(FL(...e),e)}function zL(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 Hf.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 HL=V.forwardRef(((e,t)=>{const{children:n,...r}=e,a=V.Children.toArray(n),o=a.find(GL);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 Hf.jsx(UL,{...r,ref:t,children:V.isValidElement(e)?V.cloneElement(e,void 0,n):null})}return Hf.jsx(UL,{...r,ref:t,children:n})}));HL.displayName="Slot";var UL=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,{...VL(r,n.props),ref:t?FL(t,e):e})}return V.Children.count(n)>1?V.Children.only(null):null}));UL.displayName="SlotClone";var $L=({children:e})=>Hf.jsx(Hf.Fragment,{children:e});function GL(e){return V.isValidElement(e)&&e.type===$L}function VL(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 WL=["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?HL:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),Hf.jsx(o,{...a,ref:n})}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function qL(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 YL,XL="dismissableLayer.update",KL="dismissableLayer.pointerDownOutside",QL="dismissableLayer.focusOutside",ZL=V.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),JL=V.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:i,onDismiss:s,...l}=e,c=V.useContext(ZL),[u,d]=V.useState(null),p=(null==u?void 0:u.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,f]=V.useState({}),h=BL(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=qL(e),r=V.useRef(!1),a=V.useRef((()=>{}));return V.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){tD(KL,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=qL(e),r=V.useRef(!1);return V.useEffect((()=>{const e=e=>{if(e.target&&!r.current){tD(QL,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=qL(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&&(YL=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),eD(),()=>{n&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=YL)}}),[u,p,n,c]),V.useEffect((()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),eD())}),[u,c]),V.useEffect((()=>{const e=()=>f({});return document.addEventListener(XL,e),()=>document.removeEventListener(XL,e)}),[]),Hf.jsx(WL.div,{...l,ref:h,style:{pointerEvents:v?k?"auto":"none":void 0,...e.style},onFocusCapture:DL(e.onFocusCapture,E.onFocusCapture),onBlurCapture:DL(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:DL(e.onPointerDownCapture,w.onPointerDownCapture)})}));JL.displayName="DismissableLayer";function eD(){const e=new CustomEvent(XL);document.dispatchEvent(e)}function tD(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(ZL),r=V.useRef(null),a=BL(t,r);return V.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),Hf.jsx(WL.div,{...e,ref:a})})).displayName="DismissableLayerBranch";const nD=["top","right","bottom","left"],rD=Math.min,aD=Math.max,oD=Math.round,iD=Math.floor,sD=e=>({x:e,y:e}),lD={left:"right",right:"left",bottom:"top",top:"bottom"},cD={start:"end",end:"start"};function uD(e,t,n){return aD(e,rD(t,n))}function dD(e,t){return"function"==typeof e?e(t):e}function pD(e){return e.split("-")[0]}function fD(e){return e.split("-")[1]}function hD(e){return"x"===e?"y":"x"}function mD(e){return"y"===e?"height":"width"}function gD(e){return["top","bottom"].includes(pD(e))?"y":"x"}function yD(e){return hD(gD(e))}function bD(e){return e.replace(/start|end/g,(e=>cD[e]))}function vD(e){return e.replace(/left|right|bottom|top/g,(e=>lD[e]))}function kD(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 wD(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 ED(e,t,n){let{reference:r,floating:a}=e;const o=gD(t),i=yD(t),s=mD(i),l=pD(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(fD(t)){case"start":f[i]-=p*(n&&c?-1:1);break;case"end":f[i]+=p*(n&&c?-1:1)}return f}async function SD(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}=dD(t,e),h=kD(f),m=s[p?"floating"===d?"reference":"floating":d],g=wD(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=wD(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 TD(e){return nD.some((t=>e[t]>=0))}function _D(){return"undefined"!=typeof window}function AD(e){return ND(e)?(e.nodeName||"").toLowerCase():"#document"}function CD(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ID(e){var t;return null==(t=(ND(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ND(e){return!!_D()&&(e instanceof Node||e instanceof CD(e).Node)}function RD(e){return!!_D()&&(e instanceof Element||e instanceof CD(e).Element)}function OD(e){return!!_D()&&(e instanceof HTMLElement||e instanceof CD(e).HTMLElement)}function PD(e){return!(!_D()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof CD(e).ShadowRoot)}function LD(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 DD(e){return["table","td","th"].includes(AD(e))}function MD(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(sJ){return!1}}))}function FD(e){const t=BD(),n=RD(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 BD(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function zD(e){return["html","body","#document"].includes(AD(e))}function jD(e){return CD(e).getComputedStyle(e)}function HD(e){return RD(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function UD(e){if("html"===AD(e))return e;const t=e.assignedSlot||e.parentNode||PD(e)&&e.host||ID(e);return PD(t)?t.host:t}function $D(e){const t=UD(e);return zD(t)?e.ownerDocument?e.ownerDocument.body:e.body:OD(t)&&LD(t)?t:$D(t)}function GD(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=$D(e),o=a===(null==(r=e.ownerDocument)?void 0:r.body),i=CD(a);if(o){const e=VD(i);return t.concat(i,i.visualViewport||[],LD(a)?a:[],e&&n?GD(e):[])}return t.concat(a,GD(a,[],n))}function VD(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function WD(e){const t=jD(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=OD(e),o=a?e.offsetWidth:n,i=a?e.offsetHeight:r,s=oD(n)!==o||oD(r)!==i;return s&&(n=o,r=i),{width:n,height:r,$:s}}function qD(e){return RD(e)?e:e.contextElement}function YD(e){const t=qD(e);if(!OD(t))return sD(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=WD(t);let i=(o?oD(n.width):n.width)/r,s=(o?oD(n.height):n.height)/a;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const XD=sD(0);function KD(e){const t=CD(e);return BD()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:XD}function QD(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),o=qD(e);let i=sD(1);t&&(r?RD(r)&&(i=YD(r)):i=YD(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==CD(e))&&t}(o,n,r)?KD(o):sD(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=CD(o),t=r&&RD(r)?CD(r):r;let n=e,a=VD(n);for(;a&&r&&t!==n;){const e=YD(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=CD(a),a=VD(n)}}return wD({width:u,height:d,x:l,y:c})}function ZD(e,t){const n=HD(e).scrollLeft;return t?t.left+n:QD(ID(e)).left+n}function JD(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:ZD(e,r)),y:r.top+t.scrollTop}}function eM(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=CD(e),r=ID(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=BD();(!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=ID(e),n=HD(e),r=e.ownerDocument.body,a=aD(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=aD(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+ZD(e);const s=-n.scrollTop;return"rtl"===jD(r).direction&&(i+=aD(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:i,y:s}}(ID(e));else if(RD(t))r=function(e,t){const n=QD(e,!0,"fixed"===t),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=OD(e)?YD(e):sD(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=KD(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return wD(r)}function tM(e,t){const n=UD(e);return!(n===t||!RD(n)||zD(n))&&("fixed"===jD(n).position||tM(n,t))}function nM(e,t,n){const r=OD(t),a=ID(t),o="fixed"===n,i=QD(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=sD(0);if(r||!r&&!o)if(("body"!==AD(t)||LD(a))&&(s=HD(t)),r){const e=QD(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else a&&(l.x=ZD(a));const c=!a||r||o?sD(0):JD(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 rM(e){return"static"===jD(e).position}function aM(e,t){if(!OD(e)||"fixed"===jD(e).position)return null;if(t)return t(e);let n=e.offsetParent;return ID(e)===n&&(n=n.ownerDocument.body),n}function oM(e,t){const n=CD(e);if(MD(e))return n;if(!OD(e)){let t=UD(e);for(;t&&!zD(t);){if(RD(t)&&!rM(t))return t;t=UD(t)}return n}let r=aM(e,t);for(;r&&DD(r)&&rM(r);)r=aM(r,t);return r&&zD(r)&&rM(r)&&!FD(r)?n:r||function(e){let t=UD(e);for(;OD(t)&&!zD(t);){if(FD(t))return t;if(MD(t))return null;t=UD(t)}return null}(e)||n}const iM={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o="fixed"===a,i=ID(r),s=!!t&&MD(t.floating);if(r===i||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=sD(1);const u=sD(0),d=OD(r);if((d||!d&&!o)&&(("body"!==AD(r)||LD(i))&&(l=HD(r)),OD(r))){const e=QD(r);c=YD(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const p=!i||d||o?sD(0):JD(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:ID,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[..."clippingAncestors"===n?MD(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=GD(e,[],!1).filter((e=>RD(e)&&"body"!==AD(e))),a=null;const o="fixed"===jD(e).position;let i=o?UD(e):e;for(;RD(i)&&!zD(i);){const t=jD(i),n=FD(i);n||"fixed"!==t.position||(a=null),(o?!n&&!a:!n&&"static"===t.position&&a&&["absolute","fixed"].includes(a.position)||LD(i)&&!n&&tM(e,i))?r=r.filter((e=>e!==i)):a=t,i=UD(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=o[0],s=o.reduce(((e,n)=>{const r=eM(t,n,a);return e.top=aD(r.top,e.top),e.right=rD(r.right,e.right),e.bottom=rD(r.bottom,e.bottom),e.left=aD(r.left,e.left),e}),eM(t,i,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:oM,getElementRects:async function(e){const t=this.getOffsetParent||oM,n=this.getDimensions,r=await n(e.floating);return{reference:nM(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}=WD(e);return{width:t,height:n}},getScale:YD,isElement:RD,isRTL:function(e){return"rtl"===jD(e).direction}};function sM(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function lM(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=qD(e),u=a||o?[...c?GD(c):[],...GD(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=ID(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:-iD(d)+"px "+-iD(a.clientWidth-(u+p))+"px "+-iD(a.clientHeight-(d+f))+"px "+-iD(u)+"px",threshold:aD(0,rD(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||sM(c,e.getBoundingClientRect())||i(),m=!1}try{r=new IntersectionObserver(g,{...h,root:a.ownerDocument})}catch(sJ){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?QD(e):null;return l&&function t(){const r=QD(e);m&&!sM(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 cM=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=pD(n),s=fD(n),l="y"===gD(n),c=["left","top"].includes(i)?-1:1,u=o&&l?-1:1,d=dD(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}}}}},uM=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}=dD(e,t),c={x:n,y:r},u=await SD(t,l),d=gD(pD(a)),p=hD(d);let f=c[p],h=c[d];if(o){const e="y"===p?"bottom":"right";f=uD(f+u["y"===p?"top":"left"],f,f-u[e])}if(i){const e="y"===d?"bottom":"right";h=uD(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}}}}}},dM=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}=dD(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const y=pD(a),b=gD(s),v=pD(s)===s,k=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(v||!m?[vD(s)]:function(e){const t=vD(e);return[bD(e),t,bD(t)]}(s)),E="none"!==h;!p&&E&&w.push(...function(e,t,n,r){const a=fD(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[]}}(pD(e),"start"===n,r);return a&&(o=o.map((e=>e+"-"+a)),t&&(o=o.concat(o.map(bD)))),o}(s,m,h,k));const S=[s,...w],x=await SD(t,g),T=[];let _=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&T.push(x[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=fD(e),a=yD(e),o=mD(a);let i="x"===a?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=vD(i)),[i,vD(i)]}(a,i,k);T.push(x[e[0]],x[e[1]])}if(_=[..._,{placement:a,overflows:T}],!T.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=gD(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{}}}},pM=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}=dD(e,t),u=await SD(t,c),d=pD(a),p=fD(a),f="y"===gD(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=rD(m-u[g],b),w=rD(h-u[y],v),E=!t.middlewareData.shift;let S=k,x=w;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(x=v),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=b),E&&!p){const e=aD(u.left,0),t=aD(u.right,0),n=aD(u.top,0),r=aD(u.bottom,0);f?x=h-2*(0!==e||0!==t?e+t:aD(u.left,u.right)):S=m-2*(0!==n||0!==r?n+r:aD(u.top,u.bottom))}await l({...t,availableWidth:x,availableHeight:S});const T=await i.getDimensions(s.floating);return h!==T.width||m!==T.height?{reset:{rects:!0}}:{}}}},fM=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=dD(e,t);switch(r){case"referenceHidden":{const e=xD(await SD(t,{...a,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:TD(e)}}}case"escaped":{const e=xD(await SD(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:TD(e)}}}default:return{}}}}},hM=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}=dD(e,t)||{};if(null==c)return{};const d=kD(u),p={x:n,y:r},f=yD(a),h=mD(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 x=k/2-w/2,T=S/2-m[h]/2-1,_=rD(d[y],T),A=rD(d[b],T),C=_,I=S-m[h]-A,N=S/2-m[h]/2+x,R=uD(C,N,I),O=!l.arrow&&null!=fD(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}}}),mM=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}=dD(e,t),u={x:n,y:r},d=gD(a),p=hD(d);let f=u[p],h=u[d];const m=dD(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(pD(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}}}},gM=(e,t,n)=>{const r=new Map,a={platform:iM,...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}=ED(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}=ED(c,p,l))),m=-1)}return{x:u,y:d,placement:p,strategy:a,middlewareData:f}})(e,t,{...a,platform:o})};var yM="undefined"!=typeof document?V.useLayoutEffect:V.useEffect;function bM(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(!bM(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)&&!bM(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function vM(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function kM(e,t){const n=vM(e);return Math.round(t*n)/n}function wM(e){const t=V.useRef(e);return yM((()=>{t.current=e})),t}const EM=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?hM({element:n.current,padding:r}).fn(t):{}:n?hM({element:n,padding:r}).fn(t):{};var a}}),SM=(e,t)=>({...uM(e),options:[e,t]}),xM=(e,t)=>({...mM(e),options:[e,t]}),TM=(e,t)=>({...dM(e),options:[e,t]}),_M=(e,t)=>({...pM(e),options:[e,t]}),AM=(e,t)=>({...fM(e),options:[e,t]}),CM=(e,t)=>({...EM(e),options:[e,t]});var IM=V.forwardRef(((e,t)=>{const{children:n,width:r=10,height:a=5,...o}=e;return Hf.jsx(WL.svg,{...o,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:Hf.jsx("polygon",{points:"0,0 30,0 15,10"})})}));IM.displayName="Arrow";var NM=IM;function RM(e){const[t,n]=V.useState(void 0);return TO((()=>{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 OM="Popper",[PM,LM]=zL(OM),[DM,MM]=PM(OM),FM=e=>{const{__scopePopper:t,children:n}=e,[r,a]=V.useState(null);return Hf.jsx(DM,{scope:t,anchor:r,onAnchorChange:a,children:n})};FM.displayName=OM;var BM="PopperAnchor",zM=V.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,o=MM(BM,n),i=V.useRef(null),s=BL(t,i);return V.useEffect((()=>{o.onAnchorChange((null==r?void 0:r.current)||i.current)})),r?null:Hf.jsx(WL.div,{...a,ref:s})}));zM.displayName=BM;var jM="PopperContent",[HM,UM]=PM(jM),$M=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=MM(jM,l),[S,x]=V.useState(null),T=BL(t,(e=>x(e))),[_,A]=V.useState(null),C=RM(_),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(qM),altBoundary:L},{refs:M,floatingStyles:F,placement:B,isPositioned:z,middlewareData:j}=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);bM(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),x=V.useRef(u),T=null!=l,_=wM(l),A=wM(a),C=wM(c),I=V.useCallback((()=>{if(!E.current||!S.current)return;const e={placement:t,strategy:n,middleware:p};A.current&&(e.platform=A.current),gM(E.current,S.current,e).then((e=>{const t={...e,isPositioned:!1!==C.current};N.current&&!bM(x.current,t)&&(x.current=t,re.flushSync((()=>{d(t)})))}))}),[p,t,n,A,C]);yM((()=>{!1===c&&x.current.isPositioned&&(x.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const N=V.useRef(!1);yM((()=>(N.current=!0,()=>{N.current=!1})),[]),yM((()=>{if(k&&(E.current=k),w&&(S.current=w),k&&w){if(_.current)return _.current(k,w,I);I()}}),[k,w,I,_,T]);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=kM(O.floating,u.x),r=kM(O.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...vM(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)=>lM(...e,{animationFrame:"always"===v}),elements:{reference:E.anchor},middleware:[(H={mainAxis:u+N,alignmentAxis:p},{...cM(H),options:[H,U]}),h&&SM({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?xM():void 0,...D}),h&&TM({...D}),_M({...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`)}}),_&&CM({element:_,padding:f}),YM({arrowWidth:I,arrowHeight:N}),b&&AM({strategy:"referenceHidden",...D})]});var H,U;const[$,G]=XM(B),W=qL(k);TO((()=>{z&&(null==W||W())}),[z,W]);const q=null==(n=j.arrow)?void 0:n.x,Y=null==(r=j.arrow)?void 0:r.y,X=0!==(null==(a=j.arrow)?void 0:a.centerOffset),[K,Q]=V.useState();return TO((()=>{S&&Q(window.getComputedStyle(S).zIndex)}),[S]),Hf.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=j.transformOrigin)?void 0:o.x,null==(i=j.transformOrigin)?void 0:i.y].join(" "),...(null==(s=j.hide)?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:Hf.jsx(HM,{scope:l,placedSide:$,onArrowChange:A,arrowX:q,arrowY:Y,shouldHideArrow:X,children:Hf.jsx(WL.div,{"data-side":$,"data-align":G,...w,ref:T,style:{...w.style,animation:z?void 0:"none"}})})})}));$M.displayName=jM;var GM="PopperArrow",VM={top:"bottom",right:"left",bottom:"top",left:"right"},WM=V.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,a=UM(GM,n),o=VM[a.placedSide];return Hf.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:Hf.jsx(NM,{...r,ref:t,style:{...r.style,display:"block"}})})}));function qM(e){return null!==e}WM.displayName=GM;var YM=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]=XM(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 XM(e){const[t,n="center"]=e.split("-");return[t,n]}var KM=FM,QM=zM,ZM=$M,JM=WM;var eF=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=tF(r.current);o.current="mounted"===s?e:"none"}),[s]),TO((()=>{const t=r.current,n=a.current;if(n!==e){const r=o.current,i=tF(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]),TO((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,i=o=>{const i=tF(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=tF(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=BL(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 tF(e){return(null==e?void 0:e.animationName)||"none"}function nF({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=qL(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=qL(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])]}eF.displayName="Presence";var rF=V.forwardRef(((e,t)=>Hf.jsx(WL.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}})));rF.displayName="VisuallyHidden";const aF=V.createContext(void 0),oF=({children:e,componentStyles:t})=>Hf.jsx(aF.Provider,{value:{componentStyles:t},children:e}),iF=["light","dark"],sF="(prefers-color-scheme: dark)",lF="undefined"==typeof window,cF=V.createContext(void 0),uF={setColorMode:e=>{},colorModes:[]};function dF(e,t){const n=V.useContext(cF)??uF;return"dark"===(n.forcedColorMode??n.resolvedColorMode)?t:e}const pF=e=>(V.useContext(cF),Hf.jsx(hF,{...e})),fF=["light","dark"],hF=({forcedColorMode:e,disableTransitionOnChange:t=!1,enableSystem:n=!1,enableColorScheme:r=!0,storageKey:a="inkeep-colorMode",colorModes:o=fF,defaultColorMode:i=(n?"system":"light"),attribute:s="data-theme",value:l,children:c,nonce:u,shadowHostId:d,rootId:p})=>{const[f,h]=V.useState((()=>gF(a,i))),[m,g]=V.useState((()=>gF(a))),y=l?Object.values(l):o,b=V.useCallback((e=>{var a;let o=e;if(!o)return;"system"===e&&n&&(o=bF());const c=l?l[o]:o,u=t?yF():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=iF.includes(i)?i:null,t=iF.includes(o)?o:e;h.style.colorScheme=t}null==u||u()}),[]),v=V.useCallback((e=>{h(e);try{localStorage.setItem(a,e)}catch(sJ){}}),[e]),k=V.useCallback((t=>{const r=bF(t);g(r),"system"===f&&n&&!e&&b("system")}),[f,e]);V.useEffect((()=>{const e=window.matchMedia(sF);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 Hf.jsxs(cF.Provider,{value:w,children:[Hf.jsx(mF,{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]})},mF=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(iF.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&&iF.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='${sF}',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 Hf.jsx("script",{nonce:l,dangerouslySetInnerHTML:{__html:m}})}),(()=>!0)),gF=(e,t)=>{if(lF)return;let n;try{n=localStorage.getItem(e)||void 0}catch(sJ){}return n||t},yF=()=>{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)}},bF=e=>{e||(e=window.matchMedia(sF));return e.matches?"dark":"light"};var vF=Object.prototype.hasOwnProperty;function kF(e,t,n){for(n of e.keys())if(wF(n,t))return n}function wF(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--&&wF(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=kF(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=kF(t,a)))return!1;if(!wF(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(vF.call(e,n)&&++r&&!vF.call(t,n))return!1;if(!(n in t)||!wF(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!=e&&t!=t}function EF(){const{baseSettings:e}=FO(),[t,n]=V.useState([]),r=function(e){const t=V.useRef(void 0);wF(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=>Hf.jsx("style",{type:"text/css",dangerouslySetInnerHTML:{__html:e.value}},e.key??$f("link_")))),o=e.map((e=>{const t=e.key??$f("stylesheet_");return Hf.jsx("link",{id:t,rel:"stylesheet",type:"text/css",href:e.value,onLoad:()=>{n((t=>[...new Set([...t,e.value])]))}},t)}));return{customStyles:Hf.jsxs(Hf.Fragment,{children:[o,a]}),linksCount:e.length}}),[r]);return{customStyles:a,loaded:t.length>=(o??0)}}const SF=({children:e})=>{const{baseSettings:t}=FO(),{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}=EF(),{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]),Hf.jsxs(Hf.Fragment,{children:[h,m&&Hf.jsx(pF,{forcedColorMode:y??v,...b,shadowHostId:null==a?void 0:a.id,rootId:null==o?void 0:o.id,children:Hf.jsx("div",{className:l,style:{display:"contents",...f},children:e})})]})};function xF(e){const{children:t,config:n,componentType:r}=e;return Hf.jsx(MO,{value:{...n,componentType:r},children:Hf.jsx(SF,{children:Hf.jsx(YO,{children:t})})})}const TF=V.createContext(void 0),_F=({children:e,source:t})=>Hf.jsx(TF.Provider,{value:{source:t},children:e}),AF=()=>{const e=V.useContext(TF);if(!e)throw new Error("useSourceItem must be used within a SourceItemProvider");return e};function CF(e,t){var n;const{prefix:r}=FO(),a=V.useContext(aF),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}-${rP(e)}`].filter(Boolean).join(" ")}function IF(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function NF(...e){return t=>{let n=!1;const r=e.map((e=>{const r=IF(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():IF(e[t],null)}}}}function RF(...e){return V.useCallback(NF(...e),e)}const OF=(...e)=>e.map((e=>{var t;return null==(t=null==e?void 0:e.trim)?void 0:t.call(e)})).filter(Boolean).join(" "),PF=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,LF=e=>{const t={};let n;for(;n=PF.exec(e);)t[n[1]]=n[2];return t},DF=(e,t)=>{if(nP(e)){if(nP(t))return`${e};${t}`;e=LF(e)}else nP(t)&&(t=LF(t));return Object.assign({},e??{},t??{})};function MF(...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]=tP(n[e],t[e]):t[e]="className"!==e&&"class"!==e?"style"!==e?void 0!==n[e]?n[e]:t[e]:DF(t[e],n[e]):OF(t[e],n[e]);for(let e in n)void 0===t[e]&&(t[e]=n[e])}return t}const FF=(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=MF(s,u,{className:CF(a,o),"data-part":rP(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,{...MF(p,f.props),ref:r?NF(r,h):h})})));return n.displayName=e.displayName||e.name,n},BF=new Proxy(FF,{apply(e,t,n){const r=n[0],a=n[1];return FF(r,a)}});function zF(){return zF=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},zF.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 HF=V.useLayoutEffect,UF=function(e,t){"function"!=typeof e?e.current=t:e(t)},$F={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},GF=function(e){Object.keys($F).forEach((function(t){e.style.setProperty(t,$F[t],"important")}))},VF=null,WF=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize};var qF=function(){},YF=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],XF=!!document.documentElement.currentStyle,KF=function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n,r=(n=t,YF.reduce((function(e,t){return e[t]=n[t],e}),{})),a=r.boxSizing;return""===a?null:(XF&&"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 QF(e,t,n){var r,a,o=(r=n,a=W.useRef(r),HF((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 ZF=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],JF=function(e,t){var n=e.cacheMeasurements,r=e.maxRows,a=e.minRows,o=e.onChange,i=void 0===o?qF:o,s=e.onHeightChange,l=void 0===s?qF:s,c=jF(e,ZF),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&&UF(n.current,null),n.current=t,t&&UF(t,r)}),[t])}(d,t),f=V.useRef(0),h=V.useRef(),m=function(){var e=d.current,t=n&&h.current?h.current:KF(e);if(t){h.current=t;var o=function(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=1/0),VF||((VF=document.createElement("textarea")).setAttribute("tabindex","-1"),VF.setAttribute("aria-hidden","true"),GF(VF)),null===VF.parentNode&&document.body.appendChild(VF);var a=e.paddingSize,o=e.borderSize,i=e.sizingStyle,s=i.boxSizing;Object.keys(i).forEach((function(e){var t=e;VF.style[t]=i[t]})),GF(VF),VF.value=t;var l=WF(VF,e);VF.value=t,l=WF(VF,e),VF.value="x";var c=VF.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){QF(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()}))}})),QF(window,"resize",m),function(e){QF(document.fonts,"loadingdone",e)}(m),V.createElement("textarea",zF({},c,{onChange:function(e){u||m(),i(e)},ref:p}))},eB=V.forwardRef(JF);function tB(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 nB="Checkbox",[rB,aB]=zL(nB),[oB,iB]=rB(nB),sB=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=BL(t,(e=>f(e))),m=V.useRef(!1),g=!p||(u||!!p.closest("form")),[y=!1,b]=nF({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]),Hf.jsxs(oB,{scope:n,state:y,disabled:s,children:[Hf.jsx(WL.button,{type:"button",role:"checkbox","aria-checked":dB(y)?"mixed":y,"aria-required":i,"data-state":pB(y),"data-disabled":s?"":void 0,disabled:s,value:l,...d,ref:h,onKeyDown:DL(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:DL(e.onClick,(e=>{b((e=>!!dB(e)||!e)),g&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())}))}),g&&Hf.jsx(uB,{control:p,bubbles:!m.current,name:r,value:l,checked:y,required:i,disabled:s,form:u,style:{transform:"translateX(-100%)"},defaultChecked:!dB(o)&&o})]})}));sB.displayName=nB;var lB="CheckboxIndicator",cB=V.forwardRef(((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...a}=e,o=iB(lB,n);return Hf.jsx(eF,{present:r||dB(o.state)||!0===o.state,children:Hf.jsx(WL.span,{"data-state":pB(o.state),"data-disabled":o.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})}));cB.displayName=lB;var uB=e=>{const{control:t,checked:n,bubbles:r=!0,defaultChecked:a,...o}=e,i=V.useRef(null),s=tB(n),l=RM(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=dB(n),a.call(e,!dB(n)&&n),e.dispatchEvent(t)}}),[s,n,r]);const c=V.useRef(!dB(n)&&n);return Hf.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 dB(e){return"indeterminate"===e}function pB(e){return dB(e)?"indeterminate":e?"checked":"unchecked"}var fB=sB,hB=cB,mB=0;function gB(){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 yB="focusScope.autoFocusOnMount",bB="focusScope.autoFocusOnUnmount",vB={bubbles:!1,cancelable:!0},kB=V.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...i}=e,[s,l]=V.useState(null),c=qL(a),u=qL(o),d=V.useRef(null),p=BL(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){TB.add(f);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(yB,vB);s.addEventListener(yB,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=wB(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&xB(s))}return()=>{s.removeEventListener(yB,c),setTimeout((()=>{const e=new CustomEvent(bB,vB);s.addEventListener(bB,u),s.dispatchEvent(e),e.defaultPrevented||xB(t??document.body,{select:!0}),s.removeEventListener(bB,u),TB.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=wB(e),n=EB(t,e),r=EB(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 Hf.jsx(WL.div,{tabIndex:-1,...i,ref:p,onKeyDown:h})}));function wB(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 EB(e,t){for(const n of e)if(!SB(n,{upTo:t}))return n}function SB(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()}}kB.displayName="FocusScope";var TB=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=_B(e,t),e.unshift(t)},remove(t){var n;e=_B(e,t),null==(n=e[0])||n.resume()}}}();function _B(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var AB=new WeakMap,CB=new WeakMap,IB={},NB=0,RB=function(e){return e&&(e.host||RB(e.parentNode))},OB=function(e,t,n,r){var a=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=RB(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]);IB[n]||(IB[n]=new WeakMap);var o=IB[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=(AB.get(e)||0)+1,c=(o.get(e)||0)+1;AB.set(e,l),o.set(e,c),i.push(e),1===l&&a&&CB.set(e,!0),1===c&&e.setAttribute(n,"true"),a||e.setAttribute(r,"true")}catch(sJ){console.error("aria-hidden: cannot operate on ",e,sJ)}}))};return u(t),s.clear(),NB++,function(){i.forEach((function(e){var t=AB.get(e)-1,a=o.get(e)-1;AB.set(e,t),o.set(e,a),t||(CB.has(e)||e.removeAttribute(r),CB.delete(e)),a||e.removeAttribute(n)})),--NB||(AB=new WeakMap,AB=new WeakMap,CB=new WeakMap,IB={})}},PB=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]"))),OB(r,a,n,"aria-hidden")):function(){return null}},LB=function(){return LB=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},LB.apply(this,arguments)};function DB(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 MB(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 FB="right-scroll-bar-position",BB="width-before-scroll-bar";function zB(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var jB="undefined"!=typeof window?V.useLayoutEffect:V.useEffect,HB=new WeakMap;function UB(e,t){var n,r,a,o=(n=null,r=function(t){return e.forEach((function(e){return zB(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=HB.get(o);if(t){var n=new Set(t),r=new Set(e),a=o.current;n.forEach((function(e){r.has(e)||zB(e,null)})),r.forEach((function(e){n.has(e)||zB(e,a)}))}HB.set(o,e)}),[e]),o}function $B(e){return e}var GB=function(e){var t=e.sideCar,n=DB(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,LB({},n))};GB.isSideCarExport=!0;var VB=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=$B);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=LB({async:!0,ssr:!1},e),t}(),WB=function(){},qB=V.forwardRef((function(e,t){var n=V.useRef(null),r=V.useState({onScrollCapture:WB,onWheelCapture:WB,onTouchMoveCapture:WB}),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=DB(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=p,w=UB([n,t]),E=LB(LB({},v),a);return V.createElement(V.Fragment,null,u&&V.createElement(k,{sideCar:VB,removeScrollBar:c,shards:d,noIsolation:f,inert:h,setCallbacks:o,allowPinchZoom:!!m,lockRef:n,gapMode:b}),i?V.cloneElement(V.Children.only(s),LB(LB({},E),{ref:w})):V.createElement(y,LB({},E,{className:l,ref:w}),s))}));qB.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},qB.classNames={fullWidth:BB,zeroRight:FB};function YB(){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 XB=function(){var e=0,t=null;return{add:function(n){var r,a;0==e&&(t=YB())&&(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)}}},KB=function(){var e,t=(e=XB(),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}},QB={left:0,top:0,right:0,gap:0},ZB=function(e){return parseInt(e||"",10)||0},JB=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return QB;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[ZB(n),ZB(r),ZB(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])}},ez=KB(),tz="data-scroll-locked",nz=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(tz,"] {\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(FB," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(BB," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(FB," .").concat(FB," {\n right: 0 ").concat(r,";\n }\n \n .").concat(BB," .").concat(BB," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(tz,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},rz=function(){var e=parseInt(document.body.getAttribute(tz)||"0",10);return isFinite(e)?e:0},az=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(tz,(rz()+1).toString()),function(){var e=rz()-1;e<=0?document.body.removeAttribute(tz):document.body.setAttribute(tz,e.toString())}}),[]);var o=V.useMemo((function(){return JB(a)}),[a]);return V.createElement(ez,{styles:nz(o,!t,a,n?"":"!important")})},oz=!1;if("undefined"!=typeof window)try{var iz=Object.defineProperty({},"passive",{get:function(){return oz=!0,!0}});window.addEventListener("test",iz,iz),window.removeEventListener("test",iz,iz)}catch(e4){oz=!1}var sz=!!oz&&{passive:!1},lz=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])},cz=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),uz(e,r)){var a=dz(e,r);if(a[1]>a[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},uz=function(e,t){return"v"===e?function(e){return lz(e,"overflowY")}(t):function(e){return lz(e,"overflowX")}(t)},dz=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},pz=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},fz=function(e){return[e.deltaX,e.deltaY]},hz=function(e){return e&&"current"in e?e.current:e},mz=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},gz=0,yz=[];function bz(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const vz=(kz=function(e){var t=V.useRef([]),n=V.useRef([0,0]),r=V.useRef(),a=V.useState(gz++)[0],o=V.useState(KB)[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=MB([e.lockRef.current],(e.shards||[]).map(hz),!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=pz(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=cz(d,u);if(!p)return!0;if(p?a=d:(a="v"===d?"h":"v",p=cz(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=dz(e,i),f=p[0],h=p[1]-p[2]-a*f;(f||h)&&uz(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(yz.length&&yz[yz.length-1]===o){var r="deltaY"in n?fz(n):pz(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(hz).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:bz(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=pz(e),r.current=void 0}),[]),d=V.useCallback((function(t){c(t.type,fz(t),t.target,s(t,e.lockRef.current))}),[]),p=V.useCallback((function(t){c(t.type,pz(t),t.target,s(t,e.lockRef.current))}),[]);V.useEffect((function(){return yz.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,sz),document.addEventListener("touchmove",l,sz),document.addEventListener("touchstart",u,sz),function(){yz=yz.filter((function(e){return e!==o})),document.removeEventListener("wheel",l,sz),document.removeEventListener("touchmove",l,sz),document.removeEventListener("touchstart",u,sz)}}),[]);var f=e.removeScrollBar,h=e.inert;return V.createElement(V.Fragment,null,h?V.createElement(o,{styles:mz(a)}):null,f?V.createElement(az,{gapMode:e.gapMode}):null)},VB.useMedium(kz),GB);var kz,wz=V.forwardRef((function(e,t){return V.createElement(qB,LB({},e,{ref:t,sideCar:vz}))}));wz.classNames=qB.classNames;var Ez=V.createContext(void 0);function Sz(e){const t=V.useContext(Ez);return e||t||"ltr"}function xz(e,[t,n]){return Math.min(n,Math.max(t,e))}var Tz="ScrollArea",[_z,Az]=zL(Tz),[Cz,Iz]=_z(Tz),Nz=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,x]=V.useState(!1),T=BL(t,(e=>l(e))),_=Sz(a);return Hf.jsx(Cz,{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:x,onCornerWidthChange:b,onCornerHeightChange:k,children:Hf.jsx(WL.div,{dir:_,...i,ref:T,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":v+"px",...e.style}})})}));Nz.displayName=Tz;var Rz="ScrollAreaViewport",Oz=V.forwardRef(((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:a,...o}=e,i=Iz(Rz,n),s=BL(t,V.useRef(null),i.onViewportChange);return Hf.jsxs(Hf.Fragment,{children:[Hf.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}),Hf.jsx(WL.div,{"data-radix-scroll-area-viewport":"",...o,ref:s,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:Hf.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})}));Oz.displayName=Rz;var Pz="ScrollAreaScrollbar",Lz=V.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,a=Iz(Pz,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?Hf.jsx(Dz,{...r,ref:t,forceMount:n}):"scroll"===a.type?Hf.jsx(Mz,{...r,ref:t,forceMount:n}):"auto"===a.type?Hf.jsx(Fz,{...r,ref:t,forceMount:n}):"always"===a.type?Hf.jsx(Bz,{...r,ref:t}):null}));Lz.displayName=Pz;var Dz=V.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,a=Iz(Pz,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]),Hf.jsx(eF,{present:n||o,children:Hf.jsx(Fz,{"data-state":o?"visible":"hidden",...r,ref:t})})})),Mz=V.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,a=Iz(Pz,e.__scopeScrollArea),o="horizontal"===e.orientation,i=rj((()=>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]),Hf.jsx(eF,{present:n||"hidden"!==s,children:Hf.jsx(Bz,{"data-state":"hidden"===s?"hidden":"visible",...r,ref:t,onPointerEnter:DL(e.onPointerEnter,(()=>l("POINTER_ENTER"))),onPointerLeave:DL(e.onPointerLeave,(()=>l("POINTER_LEAVE")))})})})),Fz=V.forwardRef(((e,t)=>{const n=Iz(Pz,e.__scopeScrollArea),{forceMount:r,...a}=e,[o,i]=V.useState(!1),s="horizontal"===e.orientation,l=rj((()=>{if(n.viewport){const e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;i(s?e:t)}}),10);return aj(n.viewport,l),aj(n.content,l),Hf.jsx(eF,{present:r||o,children:Hf.jsx(Bz,{"data-state":o?"visible":"hidden",...a,ref:t})})})),Bz=V.forwardRef(((e,t)=>{const{orientation:n="vertical",...r}=e,a=Iz(Pz,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=Qz(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=Zz(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 ej([l,c],d)(e)}(e,i.current,s,t)}return"horizontal"===n?Hf.jsx(zz,{...u,ref:t,onThumbPositionChange:()=>{if(a.viewport&&o.current){const e=Jz(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?Hf.jsx(jz,{...u,ref:t,onThumbPositionChange:()=>{if(a.viewport&&o.current){const e=Jz(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})),zz=V.forwardRef(((e,t)=>{const{sizes:n,onSizesChange:r,...a}=e,o=Iz(Pz,e.__scopeScrollArea),[i,s]=V.useState(),l=V.useRef(null),c=BL(t,l,o.onScrollbarXChange);return V.useEffect((()=>{l.current&&s(getComputedStyle(l.current))}),[l]),Hf.jsx($z,{"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":Zz(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),tj(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:Kz(i.paddingLeft),paddingEnd:Kz(i.paddingRight)}})}})})),jz=V.forwardRef(((e,t)=>{const{sizes:n,onSizesChange:r,...a}=e,o=Iz(Pz,e.__scopeScrollArea),[i,s]=V.useState(),l=V.useRef(null),c=BL(t,l,o.onScrollbarYChange);return V.useEffect((()=>{l.current&&s(getComputedStyle(l.current))}),[l]),Hf.jsx($z,{"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":Zz(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),tj(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:Kz(i.paddingTop),paddingEnd:Kz(i.paddingBottom)}})}})})),[Hz,Uz]=_z(Pz),$z=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=Iz(Pz,n),[h,m]=V.useState(null),g=BL(t,(e=>m(e))),y=V.useRef(null),b=V.useRef(""),v=f.viewport,k=r.content-r.viewport,w=qL(u),E=qL(l),S=rj(d,10);function x(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]),aj(h,S),aj(f.content,S),Hf.jsx(Hz,{scope:n,scrollbar:h,hasThumb:a,onThumbChange:qL(o),onThumbPointerUp:qL(i),onThumbPositionChange:E,onThumbPointerDown:qL(s),children:Hf.jsx(WL.div,{...p,ref:g,style:{position:"absolute",...p.style},onPointerDown:DL(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"),x(e)}})),onPointerMove:DL(e.onPointerMove,x),onPointerUp:DL(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}))})})})),Gz="ScrollAreaThumb",Vz=V.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,a=Uz(Gz,e.__scopeScrollArea);return Hf.jsx(eF,{present:n||a.hasThumb,children:Hf.jsx(Wz,{ref:t,...r})})})),Wz=V.forwardRef(((e,t)=>{const{__scopeScrollArea:n,style:r,...a}=e,o=Iz(Gz,n),i=Uz(Gz,n),{onThumbPositionChange:s}=i,l=BL(t,(e=>i.onThumbChange(e))),c=V.useRef(void 0),u=rj((()=>{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=nj(e,s);c.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}}),[o.viewport,u,s]),Hf.jsx(WL.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:DL(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:DL(e.onPointerUp,i.onThumbPointerUp)})}));Vz.displayName=Gz;var qz="ScrollAreaCorner",Yz=V.forwardRef(((e,t)=>{const n=Iz(qz,e.__scopeScrollArea),r=Boolean(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?Hf.jsx(Xz,{...e,ref:t}):null}));Yz.displayName=qz;var Xz=V.forwardRef(((e,t)=>{const{__scopeScrollArea:n,...r}=e,a=Iz(qz,n),[o,i]=V.useState(0),[s,l]=V.useState(0),c=Boolean(o&&s);return aj(a.scrollbarX,(()=>{var e;const t=(null==(e=a.scrollbarX)?void 0:e.offsetHeight)||0;a.onCornerHeightChange(t),l(t)})),aj(a.scrollbarY,(()=>{var e;const t=(null==(e=a.scrollbarY)?void 0:e.offsetWidth)||0;a.onCornerWidthChange(t),i(t)})),c?Hf.jsx(WL.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 Kz(e){return e?parseInt(e,10):0}function Qz(e,t){const n=e/t;return isNaN(n)?0:n}function Zz(e){const t=Qz(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function Jz(e,t,n="ltr"){const r=Zz(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 ej([0,i],[0,s])(l)}function ej(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 tj(e,t){return e>0&&e<t}var nj=(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 rj(e,t){const n=qL(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 aj(e,t){const n=qL(t);TO((()=>{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 oj=Nz,ij=Oz,sj=Yz;var lj=[" ","Enter","ArrowUp","ArrowDown"],cj=[" ","Enter"],uj="Select",[dj,pj,fj]=function(e){const t=e+"CollectionProvider",[n,r]=zL(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 Hf.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=BL(t,o(s,n).collectionRef);return Hf.jsx(HL,{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=BL(t,i),l=o(c,n);return W.useEffect((()=>(l.itemMap.set(i,{ref:i,...a}),()=>{l.itemMap.delete(i)}))),Hf.jsx(HL,{[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]}(uj),[hj,mj]=zL(uj,[fj,LM]),gj=LM(),[yj,bj]=hj(uj),[vj,kj]=hj(uj),wj=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=gj(t),[g,y]=V.useState(null),[b,v]=V.useState(null),[k,w]=V.useState(!1),E=Sz(c),[S=!1,x]=nF({prop:r,defaultProp:a,onChange:o}),[T,_]=nF({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 Hf.jsx(KM,{...m,children:Hf.jsxs(yj,{required:f,scope:t,trigger:g,onTriggerChange:y,valueNode:b,onValueNodeChange:v,valueNodeHasChildren:k,onValueNodeHasChildrenChange:w,contentId:CO(),value:T,onValueChange:_,open:S,onOpenChange:x,dir:E,triggerPointerDownPosRef:A,disabled:p,children:[Hf.jsx(dj.Provider,{scope:t,children:Hf.jsx(vj,{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?Hf.jsxs(nH,{"aria-hidden":!0,required:f,tabIndex:-1,name:u,autoComplete:d,value:T,onChange:e=>_(e.target.value),disabled:p,form:h,children:[void 0===T?Hf.jsx("option",{value:""}):null,Array.from(I)]},R):null]})})};wj.displayName=uj;var Ej="SelectTrigger",Sj=V.forwardRef(((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...a}=e,o=gj(n),i=bj(Ej,n),s=i.disabled||r,l=BL(t,i.onTriggerChange),c=pj(n),u=V.useRef("touch"),[d,p,f]=rH((e=>{const t=c().filter((e=>!e.disabled)),n=t.find((e=>e.value===i.value)),r=aH(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 Hf.jsx(QM,{asChild:!0,...o,children:Hf.jsx(WL.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":tH(i.value)?"":void 0,...a,ref:l,onClick:DL(a.onClick,(e=>{e.currentTarget.focus(),"mouse"!==u.current&&h(e)})),onPointerDown:DL(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:DL(a.onKeyDown,(e=>{const t=""!==d.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||p(e.key),t&&" "===e.key||lj.includes(e.key)&&(h(),e.preventDefault())}))})})}));Sj.displayName=Ej;var xj="SelectValue",Tj=V.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:a,children:o,placeholder:i="",...s}=e,l=bj(xj,n),{onValueNodeHasChildrenChange:c}=l,u=void 0!==o,d=BL(t,l.onValueNodeChange);return TO((()=>{c(u)}),[c,u]),Hf.jsx(WL.span,{...s,ref:d,style:{pointerEvents:"none"},children:tH(l.value)?Hf.jsx(Hf.Fragment,{children:i}):o})}));Tj.displayName=xj;var _j=V.forwardRef(((e,t)=>{const{__scopeSelect:n,children:r,...a}=e;return Hf.jsx(WL.span,{"aria-hidden":!0,...a,ref:t,children:r||"▼"})}));_j.displayName="SelectIcon";var Aj="SelectContent",Cj=V.forwardRef(((e,t)=>{const n=bj(Aj,e.__scopeSelect),[r,a]=V.useState();if(TO((()=>{a(new DocumentFragment)}),[]),!n.open){const t=r;return t?re.createPortal(Hf.jsx(Nj,{scope:e.__scopeSelect,children:Hf.jsx(dj.Slot,{scope:e.__scopeSelect,children:Hf.jsx("div",{children:e.children})})}),t):null}return Hf.jsx(Oj,{...e,ref:t})}));Cj.displayName=Aj;var Ij=10,[Nj,Rj]=hj(Aj),Oj=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=bj(Aj,n),[v,k]=V.useState(null),[w,E]=V.useState(null),S=BL(t,(e=>k(e))),[x,T]=V.useState(null),[_,A]=V.useState(null),C=pj(n),[I,N]=V.useState(!1),R=V.useRef(!1);V.useEffect((()=>{if(v)return PB(v)}),[v]),V.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??gB()),document.body.insertAdjacentElement("beforeend",e[1]??gB()),mB++,()=>{1===mB&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),mB--}}),[]);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([x,v])),[O,x,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]=rH((e=>{const t=C().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=aH(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)&&(T(e),r&&(R.current=!0))}),[b.value]),z=V.useCallback((()=>null==v?void 0:v.focus()),[v]),j=V.useCallback(((e,t,n)=>{const r=!R.current&&!n;(void 0!==b.value&&b.value===t||r)&&A(e)}),[b.value]),H="popper"===r?Lj:Pj,U=H===Lj?{side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:p,collisionPadding:f,sticky:h,hideWhenDetached:m,avoidCollisions:g}:{};return Hf.jsx(Nj,{scope:n,content:v,viewport:w,onViewportChange:E,itemRefCallback:B,selectedItem:x,onItemLeave:z,itemTextRefCallback:j,focusSelectedItem:P,selectedItemText:_,position:r,isPositioned:I,searchRef:M,children:Hf.jsx(wz,{as:HL,allowPinchZoom:!0,children:Hf.jsx(kB,{asChild:!0,trapped:b.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:DL(a,(e=>{var t;null==(t=b.trigger)||t.focus({preventScroll:!0}),e.preventDefault()})),children:Hf.jsx(JL,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:Hf.jsx(H,{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:DL(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()}}))})})})})})}));Oj.displayName="SelectContentImpl";var Pj=V.forwardRef(((e,t)=>{const{__scopeSelect:n,onPlaced:r,...a}=e,o=bj(Aj,n),i=Rj(Aj,n),[s,l]=V.useState(null),[c,u]=V.useState(null),d=BL(t,(e=>u(e))),p=pj(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-Ij,d=xz(o,[Ij,Math.max(Ij,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-Ij,d=xz(o,[Ij,Math.max(Ij,u-c)]);s.style.minWidth=l+"px",s.style.right=d+"px"}const i=p(),l=window.innerHeight-2*Ij,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),x=parseInt(E.paddingBottom,10),T=e.top+e.height/2-Ij,_=l-T,A=g.offsetHeight/2,C=h+b+(g.offsetTop+A),I=k-C;if(C<=T){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?x: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(T,h+m.offsetTop+(e?S:0)+A)+I;s.style.height=t+"px",m.scrollTop=C-T+m.offsetTop}s.style.margin=`${Ij}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]);TO((()=>v()),[v]);const[k,w]=V.useState();TO((()=>{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 Hf.jsx(Dj,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:f,onScrollButtonChange:E,children:Hf.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:Hf.jsx(WL.div,{...a,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})}));Pj.displayName="SelectItemAlignedPosition";var Lj=V.forwardRef(((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:a=Ij,...o}=e,i=gj(n);return Hf.jsx(ZM,{...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)"}})}));Lj.displayName="SelectPopperPosition";var[Dj,Mj]=hj(Aj,{}),Fj="SelectViewport",Bj=V.forwardRef(((e,t)=>{const{__scopeSelect:n,nonce:r,...a}=e,o=Rj(Fj,n),i=Mj(Fj,n),s=BL(t,o.onViewportChange),l=V.useRef(0);return Hf.jsxs(Hf.Fragment,{children:[Hf.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}),Hf.jsx(dj.Slot,{scope:n,children:Hf.jsx(WL.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:DL(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*Ij,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}))})})]})}));Bj.displayName=Fj;var zj="SelectGroup",[jj,Hj]=hj(zj);V.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=CO();return Hf.jsx(jj,{scope:n,id:a,children:Hf.jsx(WL.div,{role:"group","aria-labelledby":a,...r,ref:t})})})).displayName=zj;var Uj="SelectLabel";V.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=Hj(Uj,n);return Hf.jsx(WL.div,{id:a.id,...r,ref:t})})).displayName=Uj;var $j="SelectItem",[Gj,Vj]=hj($j),Wj=V.forwardRef(((e,t)=>{const{__scopeSelect:n,value:r,disabled:a=!1,textValue:o,...i}=e,s=bj($j,n),l=Rj($j,n),c=s.value===r,[u,d]=V.useState(o??""),[p,f]=V.useState(!1),h=BL(t,(e=>{var t;return null==(t=l.itemRefCallback)?void 0:t.call(l,e,r,a)})),m=CO(),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 Hf.jsx(Gj,{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:Hf.jsx(dj.ItemSlot,{scope:n,value:r,disabled:a,textValue:u,children:Hf.jsx(WL.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:DL(i.onFocus,(()=>f(!0))),onBlur:DL(i.onBlur,(()=>f(!1))),onClick:DL(i.onClick,(()=>{"mouse"!==g.current&&y()})),onPointerUp:DL(i.onPointerUp,(()=>{"mouse"===g.current&&y()})),onPointerDown:DL(i.onPointerDown,(e=>{g.current=e.pointerType})),onPointerMove:DL(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:DL(i.onPointerLeave,(e=>{var t;e.currentTarget===document.activeElement&&(null==(t=l.onItemLeave)||t.call(l))})),onKeyDown:DL(i.onKeyDown,(e=>{var t;""!==(null==(t=l.searchRef)?void 0:t.current)&&" "===e.key||(cj.includes(e.key)&&y()," "===e.key&&e.preventDefault())}))})})})}));Wj.displayName=$j;var qj="SelectItemText",Yj=V.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:a,...o}=e,i=bj(qj,n),s=Rj(qj,n),l=Vj(qj,n),c=kj(qj,n),[u,d]=V.useState(null),p=BL(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((()=>Hf.jsx("option",{value:l.value,disabled:l.disabled,children:f},l.value)),[l.disabled,l.value,f]),{onNativeOptionAdd:m,onNativeOptionRemove:g}=c;return TO((()=>(m(h),()=>g(h))),[m,g,h]),Hf.jsxs(Hf.Fragment,{children:[Hf.jsx(WL.span,{id:l.textId,...o,ref:p}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?re.createPortal(o.children,i.valueNode):null]})}));Yj.displayName=qj;var Xj="SelectItemIndicator",Kj=V.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e;return Vj(Xj,n).isSelected?Hf.jsx(WL.span,{"aria-hidden":!0,...r,ref:t}):null}));Kj.displayName=Xj;var Qj="SelectScrollUpButton";V.forwardRef(((e,t)=>{const n=Rj(Qj,e.__scopeSelect),r=Mj(Qj,e.__scopeSelect),[a,o]=V.useState(!1),i=BL(t,r.onScrollButtonChange);return TO((()=>{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?Hf.jsx(Jj,{...e,ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null})).displayName=Qj;var Zj="SelectScrollDownButton";V.forwardRef(((e,t)=>{const n=Rj(Zj,e.__scopeSelect),r=Mj(Zj,e.__scopeSelect),[a,o]=V.useState(!1),i=BL(t,r.onScrollButtonChange);return TO((()=>{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?Hf.jsx(Jj,{...e,ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null})).displayName=Zj;var Jj=V.forwardRef(((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...a}=e,o=Rj("SelectScrollButton",n),i=V.useRef(null),s=pj(n),l=V.useCallback((()=>{null!==i.current&&(window.clearInterval(i.current),i.current=null)}),[]);return V.useEffect((()=>()=>l()),[l]),TO((()=>{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]),Hf.jsx(WL.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:DL(a.onPointerDown,(()=>{null===i.current&&(i.current=window.setInterval(r,50))})),onPointerMove:DL(a.onPointerMove,(()=>{var e;null==(e=o.onItemLeave)||e.call(o),null===i.current&&(i.current=window.setInterval(r,50))})),onPointerLeave:DL(a.onPointerLeave,(()=>{l()}))})}));V.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e;return Hf.jsx(WL.div,{"aria-hidden":!0,...r,ref:t})})).displayName="SelectSeparator";var eH="SelectArrow";function tH(e){return""===e||void 0===e}V.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=gj(n),o=bj(eH,n),i=Rj(eH,n);return o.open&&"popper"===i.position?Hf.jsx(JM,{...a,...r,ref:t}):null})).displayName=eH;var nH=V.forwardRef(((e,t)=>{const{value:n,...r}=e,a=V.useRef(null),o=BL(t,a),i=tB(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]),Hf.jsx(rF,{asChild:!0,children:Hf.jsx("select",{...r,ref:o,defaultValue:n})})}));function rH(e){const t=qL(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 aH(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}nH.displayName="BubbleSelect";var oH=wj,iH=Sj,sH=Tj,lH=_j,cH=Cj,uH=Bj,dH=Wj,pH=Yj,fH=Kj,hH={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},mH=W.createContext&&W.createContext(hH),gH=["attr","size","title"];function yH(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 bH(){return bH=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},bH.apply(this,arguments)}function vH(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 kH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vH(Object(n),!0).forEach((function(t){wH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wH(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 EH(e){return e&&e.map(((e,t)=>W.createElement(e.tag,kH({key:t},e.attr),EH(e.child))))}function SH(e){return t=>W.createElement(xH,bH({attr:kH({},e.attr)},t),EH(e.child))}function xH(e){var t=t=>{var n,{attr:r,size:a,title:o}=e,i=yH(e,gH),s=a||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),W.createElement("svg",bH({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,i,{className:n,style:kH(kH({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!==mH?W.createElement(mH.Consumer,null,(e=>t(e))):t(hH)}function TH(e,t){return(TH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}
38
+ */function N_(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 R_=Symbol.for("react.transitional.element"),O_=Symbol.for("react.portal"),P_=Symbol.for("react.fragment"),L_=Symbol.for("react.strict_mode"),D_=Symbol.for("react.profiler"),M_=Symbol.for("react.provider"),F_=Symbol.for("react.consumer"),B_=Symbol.for("react.context"),z_=Symbol.for("react.forward_ref"),j_=Symbol.for("react.suspense"),H_=Symbol.for("react.suspense_list"),U_=Symbol.for("react.memo"),$_=Symbol.for("react.lazy"),G_=Symbol.for("react.scope"),V_=Symbol.for("react.debug_trace_mode"),W_=Symbol.for("react.offscreen"),q_=Symbol.for("react.legacy_hidden"),Y_=Symbol.for("react.memo_cache_sentinel"),X_=Symbol.iterator,K_=Array.isArray;function Q_(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 Z_=new MessageChannel,J_=[];function eA(e){J_.push(e),Z_.port2.postMessage(null)}function tA(e){setTimeout((function(){throw e}))}Z_.port1.onmessage=function(){var e=J_.shift();e&&e()};var nA=Promise,rA="function"==typeof queueMicrotask?queueMicrotask:function(e){nA.resolve(null).then(e).catch(tA)},aA=null,oA=0;function iA(e,t){if(0!==t.byteLength)if(2048<t.byteLength)0<oA&&(e.enqueue(new Uint8Array(aA.buffer,0,oA)),aA=new Uint8Array(2048),oA=0),e.enqueue(t);else{var n=aA.length-oA;n<t.byteLength&&(0===n?e.enqueue(aA):(aA.set(t.subarray(0,n),oA),e.enqueue(aA),t=t.subarray(n)),aA=new Uint8Array(2048),oA=0),aA.set(t,oA),oA+=t.byteLength}}function sA(e,t){return iA(e,t),!0}function lA(e){aA&&0<oA&&(e.enqueue(new Uint8Array(aA.buffer,0,oA)),aA=null,oA=0)}var cA=new TextEncoder;function uA(e){return cA.encode(e)}function dA(e){return cA.encode(e)}function pA(e,t){"function"==typeof e.error?e.error(t):e.close()}var fA=Object.assign,hA=Object.prototype.hasOwnProperty,mA=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]*$"),gA={},yA={};function bA(e){return!!hA.call(yA,e)||!hA.call(gA,e)&&(mA.test(e)?yA[e]=!0:(gA[e]=!0,!1))}var vA=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(" ")),kA=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"]]),wA=/["'&<>]/;function EA(e){if("boolean"==typeof e||"number"==typeof e||"bigint"==typeof e)return""+e;e=""+e;var t=wA.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 SA=/([A-Z])/g,xA=/^ms-/,TA=/^[\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 _A(e){return TA.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var AA=C_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,CA=I_.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,IA={pending:!1,data:null,method:null,action:null},NA=CA.d;CA.d={f:NA.f,r:NA.r,D:function(e){var t=OR||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(fN,hN)+">; rel=dns-prefetch",o=0<=(n.remainingCapacity-=a.length+2)),o?(r.resets.dns[e]=null,n.preconnects&&(n.preconnects+=", "),n.preconnects+=a):(SC(a=[],{href:e,rel:"dns-prefetch"}),r.preconnects.add(a));mO(t)}}else NA.D(e)},C:function(e,t){var n=OR||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(fN,hN)+">; rel=preconnect","string"==typeof t)s+='; crossorigin="'+(""+t).replace(mN,gN)+'"';i=s,s=0<=(r.remainingCapacity-=i.length+2)}s?(a.resets.connect[o][e]=null,r.preconnects&&(r.preconnects+=", "),r.preconnects+=i):(SC(o=[],{rel:"preconnect",href:e,crossOrigin:t}),a.preconnects.add(o))}mO(n)}}else NA.C(e,t)},L:function(e,t,n){var r=OR||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]=RA,(a=o.headers)&&0<a.remainingCapacity&&"high"===l&&(c=pN(e,t,n),0<=(a.remainingCapacity-=c.length+2))?(o.resets.image[u]=RA,a.highImagePreloads&&(a.highImagePreloads+=", "),a.highImagePreloads+=c):(SC(a=[],fA({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;SC(i=[],fA({rel:"preload",href:e,as:t},n)),a.styleResources[e]=!n||"string"!=typeof n.crossOrigin&&"string"!=typeof n.integrity?RA:[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),SC(i,fA({rel:"preload",href:e,as:t},n)),a.scriptResources[e]=!n||"string"!=typeof n.crossOrigin&&"string"!=typeof n.integrity?RA:[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]=RA,(a=o.headers)&&0<a.remainingCapacity&&"font"===t&&(u=pN(e,t,n),0<=(a.remainingCapacity-=u.length+2)))o.resets.font[e]=RA,a.fontPreloads&&(a.fontPreloads+=", "),a.fontPreloads+=u;else if("font"===(SC(a=[],e=fA({rel:"preload",href:e,as:t},n)),t))o.fontPreloads.add(a);else o.bulkPreloads.add(a)}mO(r)}}else NA.L(e,t,n)},m:function(e,t){var n=OR||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?RA:[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]=RA}SC(o,fA({rel:"modulepreload",href:e},t)),a.bulkPreloads.add(o),mO(n)}}else NA.m(e,t)},X:function(e,t){var n=OR||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=fA({src:e,async:!0},t),o&&(2===o.length&&dN(t,o),e=a.preloads.scripts.get(e))&&(e.length=0),e=[],a.scripts.add(e),CC(e,t),mO(n))}}else NA.X(e,t)},S:function(e,t,n){var r=OR||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:uA(EA(t)),rules:[],hrefs:[],sheets:new Map},o.styles.set(t,i)),t={state:0,props:fA({rel:"stylesheet",href:e,"data-precedence":t},n)},s&&(2===s.length&&dN(t.props,s),(o=o.preloads.stylesheets.get(e))&&0<o.length?o.length=0:t.state=1),i.sheets.set(e,t),mO(r))}}else NA.S(e,t,n)},M:function(e,t){var n=OR||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=fA({src:e,type:"module",async:!0},t),o&&(2===o.length&&dN(t,o),e=a.preloads.moduleScripts.get(e))&&(e.length=0),e=[],a.scripts.add(e),CC(e,t),mO(n))}}else NA.M(e,t)}};var RA=[];dA('"></template>');var OA=dA("<script>"),PA=dA("<\/script>"),LA=dA('<script src="'),DA=dA('<script type="module" src="'),MA=dA('" nonce="'),FA=dA('" integrity="'),BA=dA('" crossorigin="'),zA=dA('" async=""><\/script>'),jA=/(<\/|<)(s)(cript)/gi;function HA(e,t,n,r){return t+("s"===n?"\\u0073":"\\u0053")+r}var UA=dA('<script type="importmap">'),$A=dA("<\/script>");function GA(e,t,n,r,a,o){var i=void 0===t?OA:dA('<script nonce="'+EA(t)+'">'),s=e.idPrefix;n=[];var l=e.bootstrapScriptContent,c=e.bootstrapScripts,u=e.bootstrapModules;if(void 0!==l&&n.push(i,uA((""+l).replace(jA,HA)),PA),l=[],void 0!==r&&(l.push(UA),l.push(uA((""+JSON.stringify(r)).replace(jA,HA))),l.push($A)),r=a?{preconnects:"",fontPreloads:"",highImagePreloads:"",remainingCapacity:2+("number"==typeof o?o:2e3)}:null,a={placeholderPrefix:dA(s+"P:"),segmentPrefix:dA(s+"S:"),boundaryPrefix:dA(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,SC(d=[],l),a.bootstrapScripts.add(d),n.push(LA,uA(EA(o))),t&&n.push(MA,uA(EA(t))),"string"==typeof s&&n.push(FA,uA(EA(s))),"string"==typeof i&&n.push(BA,uA(EA(i))),n.push(zA)}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,SC(l=[],s),a.bootstrapScripts.add(l),n.push(DA,uA(EA(r))),t&&n.push(MA,uA(EA(t))),"string"==typeof i&&n.push(FA,uA(EA(i))),"string"==typeof o&&n.push(BA,uA(EA(o))),n.push(zA);return a}function VA(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 WA(e,t,n){return{insertionMode:e,selectedValue:t,tagScope:n}}function qA(e){return WA("http://www.w3.org/2000/svg"===e?3:"http://www.w3.org/1998/Math/MathML"===e?4:0,null,0)}function YA(e,t,n){switch(t){case"noscript":return WA(2,null,1|e.tagScope);case"select":return WA(2,null!=n.value?n.value:n.defaultValue,e.tagScope);case"svg":return WA(3,null,e.tagScope);case"picture":return WA(2,null,2|e.tagScope);case"math":return WA(4,null,e.tagScope);case"foreignObject":return WA(2,null,e.tagScope);case"table":return WA(5,null,e.tagScope);case"thead":case"tbody":case"tfoot":return WA(6,null,e.tagScope);case"colgroup":return WA(8,null,e.tagScope);case"tr":return WA(7,null,e.tagScope)}return 5<=e.insertionMode?WA(2,null,e.tagScope):0===e.insertionMode?WA("html"===t?1:2,null,e.tagScope):1===e.insertionMode?WA(2,null,e.tagScope):e}var XA=dA("\x3c!-- --\x3e");function KA(e,t,n,r){return""===t?r:(r&&e.push(XA),e.push(uA(EA(t))),!0)}var QA=new Map,ZA=dA(' style="'),JA=dA(":"),eC=dA(";");function tC(e,t){if("object"!=typeof t)throw Error(N_(62));var n,r=!0;for(n in t)if(hA.call(t,n)){var a=t[n];if(null!=a&&"boolean"!=typeof a&&""!==a){if(0===n.indexOf("--")){var o=uA(EA(n));a=uA(EA((""+a).trim()))}else void 0===(o=QA.get(n))&&(o=dA(EA(n.replace(SA,"-$1").toLowerCase().replace(xA,"-ms-"))),QA.set(n,o)),a="number"==typeof a?0===a||vA.has(n)?uA(""+a):uA(a+"px"):uA(EA((""+a).trim()));r?(r=!1,e.push(ZA,o,JA,a)):e.push(eC,o,JA,a)}}r||e.push(aC)}var nC=dA(" "),rC=dA('="'),aC=dA('"'),oC=dA('=""');function iC(e,t,n){n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(nC,uA(t),oC)}function sC(e,t,n){"function"!=typeof n&&"symbol"!=typeof n&&"boolean"!=typeof n&&e.push(nC,uA(t),rC,uA(EA(n)),aC)}var lC=dA(EA("javascript:throw new Error('React form unexpectedly submitted.')")),cC=dA('<input type="hidden"');function uC(e,t){this.push(cC),dC(e),sC(this,"name",t),sC(this,"value",e),this.push(gC)}function dC(e){if("string"!=typeof e)throw Error(N_(480))}function pC(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(dC)}return r}catch(o){if("object"==typeof o&&null!==o&&"function"==typeof o.then)throw o}}return null}function fC(e,t,n,r,a,o,i,s){var l=null;if("function"==typeof r){var c=pC(t,r);null!==c?(s=c.name,r=c.action||"",a=c.encType,o=c.method,i=c.target,l=c.data):(e.push(nC,uA("formAction"),rC,lC,aC),i=o=a=r=s=null,kC(t,n))}return null!=s&&hC(e,"name",s),null!=r&&hC(e,"formAction",r),null!=a&&hC(e,"formEncType",a),null!=o&&hC(e,"formMethod",o),null!=i&&hC(e,"formTarget",i),l}function hC(e,t,n){switch(t){case"className":sC(e,"class",n);break;case"tabIndex":sC(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":sC(e,t,n);break;case"style":tC(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=_A(""+n),e.push(nC,uA(t),rC,uA(EA(n)),aC);break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":iC(e,t.toLowerCase(),n);break;case"xlinkHref":if("function"==typeof n||"symbol"==typeof n||"boolean"==typeof n)break;n=_A(""+n),e.push(nC,uA("xlink:href"),rC,uA(EA(n)),aC);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(nC,uA(t),rC,uA(EA(n)),aC);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(nC,uA(t),oC);break;case"capture":case"download":!0===n?e.push(nC,uA(t),oC):!1!==n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(nC,uA(t),rC,uA(EA(n)),aC);break;case"cols":case"rows":case"size":case"span":"function"!=typeof n&&"symbol"!=typeof n&&!isNaN(n)&&1<=n&&e.push(nC,uA(t),rC,uA(EA(n)),aC);break;case"rowSpan":case"start":"function"==typeof n||"symbol"==typeof n||isNaN(n)||e.push(nC,uA(t),rC,uA(EA(n)),aC);break;case"xlinkActuate":sC(e,"xlink:actuate",n);break;case"xlinkArcrole":sC(e,"xlink:arcrole",n);break;case"xlinkRole":sC(e,"xlink:role",n);break;case"xlinkShow":sC(e,"xlink:show",n);break;case"xlinkTitle":sC(e,"xlink:title",n);break;case"xlinkType":sC(e,"xlink:type",n);break;case"xmlBase":sC(e,"xml:base",n);break;case"xmlLang":sC(e,"xml:lang",n);break;case"xmlSpace":sC(e,"xml:space",n);break;default:if((!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&bA(t=kA.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(nC,uA(t),rC,uA(EA(n)),aC)}}}var mC=dA(">"),gC=dA("/>");function yC(e,t,n){if(null!=t){if(null!=n)throw Error(N_(60));if("object"!=typeof t||!("__html"in t))throw Error(N_(61));null!=(t=t.__html)&&e.push(uA(""+t))}}var bC=dA(' selected=""'),vC=dA('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 kC(e,t){!(16&e.instructions)&&(e.instructions|=16,t.bootstrapChunks.unshift(t.startInlineScript,vC,PA))}var wC=dA("\x3c!--F!--\x3e"),EC=dA("\x3c!--F--\x3e");function SC(e,t){for(var n in e.push(PC("link")),t)if(hA.call(t,n)){var r=t[n];if(null!=r)switch(n){case"children":case"dangerouslySetInnerHTML":throw Error(N_(399,"link"));default:hC(e,n,r)}}return e.push(gC),null}var xC=/(<\/|<)(s)(tyle)/gi;function TC(e,t,n,r){return t+("s"===n?"\\73 ":"\\53 ")+r}function _C(e,t,n){for(var r in e.push(PC(n)),t)if(hA.call(t,r)){var a=t[r];if(null!=a)switch(r){case"children":case"dangerouslySetInnerHTML":throw Error(N_(399,n));default:hC(e,r,a)}}return e.push(gC),null}function AC(e,t){e.push(PC("title"));var n,r=null,a=null;for(n in t)if(hA.call(t,n)){var o=t[n];if(null!=o)switch(n){case"children":r=o;break;case"dangerouslySetInnerHTML":a=o;break;default:hC(e,n,o)}}return e.push(mC),"function"!=typeof(t=Array.isArray(r)?2>r.length?r[0]:null:r)&&"symbol"!=typeof t&&null!=t&&e.push(uA(EA(""+t))),yC(e,a,r),e.push(FC("title")),null}function CC(e,t){e.push(PC("script"));var n,r=null,a=null;for(n in t)if(hA.call(t,n)){var o=t[n];if(null!=o)switch(n){case"children":r=o;break;case"dangerouslySetInnerHTML":a=o;break;default:hC(e,n,o)}}return e.push(mC),yC(e,a,r),"string"==typeof r&&e.push(uA((""+r).replace(jA,HA))),e.push(FC("script")),null}function IC(e,t,n){e.push(PC(n));var r,a=n=null;for(r in t)if(hA.call(t,r)){var o=t[r];if(null!=o)switch(r){case"children":n=o;break;case"dangerouslySetInnerHTML":a=o;break;default:hC(e,r,o)}}return e.push(mC),yC(e,a,n),"string"==typeof n?(e.push(uA(EA(n))),null):n}var NC=dA("\n"),RC=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,OC=new Map;function PC(e){var t=OC.get(e);if(void 0===t){if(!RC.test(e))throw Error(N_(65,e));t=dA("<"+e),OC.set(e,t)}return t}var LC=dA("<!DOCTYPE html>");function DC(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(PC("a"));var c,u=null,d=null;for(c in n)if(hA.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?sC(e,"href",""):hC(e,c,p);break;default:hC(e,c,p)}}if(e.push(mC),yC(e,d,u),"string"==typeof u){e.push(uA(EA(u)));var f=null}else f=u;return f;case"select":e.push(PC("select"));var h,m=null,g=null;for(h in n)if(hA.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:hC(e,h,y)}}return e.push(mC),yC(e,g,m),m;case"option":var b=i.selectedValue;e.push(PC("option"));var v,k=null,w=null,E=null,S=null;for(v in n)if(hA.call(n,v)){var x=n[v];if(null!=x)switch(v){case"children":k=x;break;case"selected":E=x;break;case"dangerouslySetInnerHTML":S=x;break;case"value":w=x;default:hC(e,v,x)}}if(null!=b){var T=null!==w?""+w:function(e){var t="";return C_.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(k);if(K_(b)){for(var _=0;_<b.length;_++)if(""+b[_]===T){e.push(bC);break}}else""+b===T&&e.push(bC)}else E&&e.push(bC);return e.push(mC),yC(e,S,k),k;case"textarea":e.push(PC("textarea"));var A,C=null,I=null,N=null;for(A in n)if(hA.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(N_(91));default:hC(e,A,R)}}if(null===C&&null!==I&&(C=I),e.push(mC),null!=N){if(null!=C)throw Error(N_(92));if(K_(N)){if(1<N.length)throw Error(N_(93));C=""+N[0]}C=""+N}return"string"==typeof C&&"\n"===C[0]&&e.push(NC),null!==C&&e.push(uA(EA(""+C))),null;case"input":e.push(PC("input"));var O,P=null,L=null,D=null,M=null,F=null,B=null,z=null,j=null,H=null;for(O in n)if(hA.call(n,O)){var U=n[O];if(null!=U)switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(N_(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":H=U;break;case"defaultValue":z=U;break;case"checked":j=U;break;case"value":B=U;break;default:hC(e,O,U)}}var $=fC(e,r,a,L,D,M,F,P);return null!==j?iC(e,"checked",j):null!==H&&iC(e,"checked",H),null!==B?hC(e,"value",B):null!==z&&hC(e,"value",z),e.push(gC),null!=$&&$.forEach(uC,e),null;case"button":e.push(PC("button"));var G,V=null,W=null,q=null,Y=null,X=null,K=null,Q=null;for(G in n)if(hA.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:hC(e,G,Z)}}var J=fC(e,r,a,Y,X,K,Q,q);if(e.push(mC),null!=J&&J.forEach(uC,e),yC(e,W,V),"string"==typeof V){e.push(uA(EA(V)));var ee=null}else ee=V;return ee;case"form":e.push(PC("form"));var te,ne=null,re=null,ae=null,oe=null,ie=null,se=null;for(te in n)if(hA.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:hC(e,te,le)}}var ce=null,ue=null;if("function"==typeof ae){var de=pC(r,ae);null!==de?(ae=de.action||"",oe=de.encType,ie=de.method,se=de.target,ce=de.data,ue=de.name):(e.push(nC,uA("action"),rC,lC,aC),se=ie=oe=ae=null,kC(r,a))}if(null!=ae&&hC(e,"action",ae),null!=oe&&hC(e,"encType",oe),null!=ie&&hC(e,"method",ie),null!=se&&hC(e,"target",se),e.push(mC),null!==ue&&(e.push(cC),sC(e,"name",ue),e.push(gC),null!=ce&&ce.forEach(uC,e)),yC(e,re,ne),"string"==typeof ne){e.push(uA(EA(ne)));var pe=null}else pe=ne;return pe;case"menuitem":for(var fe in e.push(PC("menuitem")),n)if(hA.call(n,fe)){var he=n[fe];if(null!=he)switch(fe){case"children":case"dangerouslySetInnerHTML":throw Error(N_(400));default:hC(e,fe,he)}}return e.push(mC),null;case"object":e.push(PC("object"));var me,ge=null,ye=null;for(me in n)if(hA.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=_A(""+be);if(""===ve)break;e.push(nC,uA("data"),rC,uA(EA(ve)),aC);break;default:hC(e,me,be)}}if(e.push(mC),yC(e,ye,ge),"string"==typeof ge){e.push(uA(EA(ge)));var ke=null}else ke=ge;return ke;case"title":if(3===i.insertionMode||1&i.tagScope||null!=n.itemProp)var we=AC(e,n);else l?we=null:(AC(a.hoistableChunks,n),we=void 0);return we;case"link":var Ee=n.rel,Se=n.href,xe=n.precedence;if(3===i.insertionMode||1&i.tagScope||null!=n.itemProp||"string"!=typeof Ee||"string"!=typeof Se||""===Se){SC(e,n);var Te=null}else if("stylesheet"===n.rel)if("string"!=typeof xe||null!=n.disabled||n.onLoad||n.onError)Te=SC(e,n);else{var _e=a.styles.get(xe),Ae=r.styleResources.hasOwnProperty(Se)?r.styleResources[Se]:void 0;if(null!==Ae){r.styleResources[Se]=null,_e||(_e={precedence:uA(EA(xe)),rules:[],hrefs:[],sheets:new Map},a.styles.set(xe,_e));var Ce={state:0,props:fA({},n,{"data-precedence":n.precedence,precedence:null})};if(Ae){2===Ae.length&&dN(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(XA),Te=null}else n.onLoad||n.onError?Te=SC(e,n):(s&&e.push(XA),Te=l?null:SC(a.hoistableChunks,n));return Te;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=CC(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&&dN(Fe=fA({},n),Me);var Be=De.get(Pe);Be&&(Be.length=0)}var ze=[];a.scripts.add(ze),CC(ze,Fe)}s&&e.push(XA),Oe=null}return Oe;case"style":var je=n.precedence,He=n.href;if(3===i.insertionMode||1&i.tagScope||null!=n.itemProp||"string"!=typeof je||"string"!=typeof He||""===He){e.push(PC("style"));var Ue,$e=null,Ge=null;for(Ue in n)if(hA.call(n,Ue)){var Ve=n[Ue];if(null!=Ve)switch(Ue){case"children":$e=Ve;break;case"dangerouslySetInnerHTML":Ge=Ve;break;default:hC(e,Ue,Ve)}}e.push(mC);var We=Array.isArray($e)?2>$e.length?$e[0]:null:$e;"function"!=typeof We&&"symbol"!=typeof We&&null!=We&&e.push(uA((""+We).replace(xC,TC))),yC(e,Ge,$e),e.push(FC("style"));var qe=null}else{var Ye=a.styles.get(je);if(null!==(r.styleResources.hasOwnProperty(He)?r.styleResources[He]:void 0)){r.styleResources[He]=null,Ye?Ye.hrefs.push(uA(EA(He))):(Ye={precedence:uA(EA(je)),rules:[],hrefs:[uA(EA(He))],sheets:new Map},a.styles.set(je,Ye));var Xe,Ke=Ye.rules,Qe=null,Ze=null;for(Xe in n)if(hA.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(uA((""+et).replace(xC,TC))),yC(Ke,Ze,Qe)}Ye&&o&&o.styles.add(Ye),s&&e.push(XA),qe=void 0}return qe;case"meta":if(3===i.insertionMode||1&i.tagScope||null!=n.itemProp)var tt=_C(e,n,"meta");else s&&e.push(XA),tt=l?null:"string"==typeof n.charSet?_C(a.charsetChunks,n,"meta"):"viewport"===n.name?_C(a.viewportChunks,n,"meta"):_C(a.hoistableChunks,n,"meta");return tt;case"listing":case"pre":e.push(PC(t));var nt,rt=null,at=null;for(nt in n)if(hA.call(n,nt)){var ot=n[nt];if(null!=ot)switch(nt){case"children":rt=ot;break;case"dangerouslySetInnerHTML":at=ot;break;default:hC(e,nt,ot)}}if(e.push(mC),null!=at){if(null!=rt)throw Error(N_(60));if("object"!=typeof at||!("__html"in at))throw Error(N_(61));var it=at.__html;null!=it&&("string"==typeof it&&0<it.length&&"\n"===it[0]?e.push(NC,uA(it)):e.push(uA(""+it)))}return"string"==typeof rt&&"\n"===rt[0]&&e.push(NC),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]=RA;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=pN(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]=RA,gt.highImagePreloads&&(gt.highImagePreloads+=", "),gt.highImagePreloads+=ft):(SC(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 _C(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 _C(e,n,t);case"head":if(2>i.insertionMode&&null===a.headChunks){a.headChunks=[];var yt=IC(a.headChunks,n,"head")}else yt=IC(e,n,"head");return yt;case"html":if(0===i.insertionMode&&null===a.htmlChunks){a.htmlChunks=[LC];var bt=IC(a.htmlChunks,n,"html")}else bt=IC(e,n,"html");return bt;default:if(-1!==t.indexOf("-")){e.push(PC(t));var vt,kt=null,wt=null;for(vt in n)if(hA.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":tC(e,Et);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"className":St="class";default:if(bA(vt)&&"function"!=typeof Et&&"symbol"!=typeof Et&&!1!==Et){if(!0===Et)Et="";else if("object"==typeof Et)continue;e.push(nC,uA(St),rC,uA(EA(Et)),aC)}}}}return e.push(mC),yC(e,wt,kt),kt}}return IC(e,n,t)}var MC=new Map;function FC(e){var t=MC.get(e);return void 0===t&&(t=dA("</"+e+">"),MC.set(e,t)),t}function BC(e,t){t=t.bootstrapChunks;for(var n=0;n<t.length-1;n++)iA(e,t[n]);return!(n<t.length)||(n=t[n],t.length=0,sA(e,n))}var zC=dA('<template id="'),jC=dA('"></template>'),HC=dA("\x3c!--$--\x3e"),UC=dA('\x3c!--$?--\x3e<template id="'),$C=dA('"></template>'),GC=dA("\x3c!--$!--\x3e"),VC=dA("\x3c!--/$--\x3e"),WC=dA("<template"),qC=dA('"'),YC=dA(' data-dgst="');dA(' data-msg="'),dA(' data-stck="'),dA(' data-cstck="');var XC=dA("></template>");function KC(e,t,n){if(iA(e,UC),null===n)throw Error(N_(395));return iA(e,t.boundaryPrefix),iA(e,uA(n.toString(16))),sA(e,$C)}var QC=dA('<div hidden id="'),ZC=dA('">'),JC=dA("</div>"),eI=dA('<svg aria-hidden="true" style="display:none" id="'),tI=dA('">'),nI=dA("</svg>"),rI=dA('<math aria-hidden="true" style="display:none" id="'),aI=dA('">'),oI=dA("</math>"),iI=dA('<table hidden id="'),sI=dA('">'),lI=dA("</table>"),cI=dA('<table hidden><tbody id="'),uI=dA('">'),dI=dA("</tbody></table>"),pI=dA('<table hidden><tr id="'),fI=dA('">'),hI=dA("</tr></table>"),mI=dA('<table hidden><colgroup id="'),gI=dA('">'),yI=dA("</colgroup></table>");var bI=dA('$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("'),vI=dA('$RS("'),kI=dA('","'),wI=dA('")<\/script>');dA('<template data-rsi="" data-sid="'),dA('" data-pid="');var EI=dA('$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("'),SI=dA('$RC("'),xI=dA('$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("'),TI=dA('$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=dA('$RR("'),AI=dA('","'),CI=dA('",'),II=dA('"'),NI=dA(")<\/script>");dA('<template data-rci="" data-bid="'),dA('<template data-rri="" data-bid="'),dA('" data-sid="'),dA('" data-sty="');var RI=dA('$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("'),OI=dA('$RX("'),PI=dA('"'),LI=dA(","),DI=dA(")<\/script>");dA('<template data-rxi="" data-bid="'),dA('" data-dgst="'),dA('" data-msg="'),dA('" data-stck="'),dA('" data-cstck="');var MI=/[<\u2028\u2029]/g;var FI=/[&><\u2028\u2029]/g;function BI(e){return JSON.stringify(e).replace(FI,(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 zI=dA('<style media="not all" data-precedence="'),jI=dA('" data-href="'),HI=dA('">'),UI=dA("</style>"),$I=!1,GI=!0;function VI(e){var t=e.rules,n=e.hrefs,r=0;if(n.length){for(iA(this,zI),iA(this,e.precedence),iA(this,jI);r<n.length-1;r++)iA(this,n[r]),iA(this,JI);for(iA(this,n[r]),iA(this,HI),r=0;r<t.length;r++)iA(this,t[r]);GI=sA(this,UI),$I=!0,t.length=0,n.length=0}}function WI(e){return 2!==e.state&&($I=!0)}function qI(e,t,n){return $I=!1,GI=!0,t.styles.forEach(VI,e),t.stylesheets.forEach(WI),$I&&(n.stylesToHoist=!0),GI}function YI(e){for(var t=0;t<e.length;t++)iA(this,e[t]);e.length=0}var XI=[];function KI(e){SC(XI,e.props);for(var t=0;t<XI.length;t++)iA(this,XI[t]);XI.length=0,e.state=2}var QI=dA('<style data-precedence="'),ZI=dA('" data-href="'),JI=dA(" "),eN=dA('">'),tN=dA("</style>");function nN(e){var t=0<e.sheets.size;e.sheets.forEach(KI,this),e.sheets.clear();var n=e.rules,r=e.hrefs;if(!t||r.length){if(iA(this,QI),iA(this,e.precedence),e=0,r.length){for(iA(this,ZI);e<r.length-1;e++)iA(this,r[e]),iA(this,JI);iA(this,r[e])}for(iA(this,eN),e=0;e<n.length;e++)iA(this,n[e]);iA(this,tN),n.length=0,r.length=0}}function rN(e){if(0===e.state){e.state=1;var t=e.props;for(SC(XI,{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<XI.length;e++)iA(this,XI[e]);XI.length=0}}function aN(e){e.sheets.forEach(rN,this),e.sheets.clear()}var oN=dA("["),iN=dA(",["),sN=dA(","),lN=dA("]");function cN(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=_A(n));break;default:if(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])||!bA(t))return;t=""+n}iA(e,sN),iA(e,uA(BI(r))),iA(e,sN),iA(e,uA(BI(t)))}function uN(){return{styles:new Set,stylesheets:new Set}}function dN(e,t){null==e.crossOrigin&&(e.crossOrigin=t[0]),null==e.integrity&&(e.integrity=t[1])}function pN(e,t,n){for(var r in t="<"+(e=(""+e).replace(fN,hN))+'>; rel=preload; as="'+(t=(""+t).replace(mN,gN))+'"',n)hA.call(n,r)&&("string"==typeof(e=n[r])&&(t+="; "+r.toLowerCase()+'="'+(""+e).replace(mN,gN)+'"'));return t}var fN=/[<>\r\n]/g;function hN(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 mN=/["';,\r\n]/g;function gN(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 yN(e){this.styles.add(e)}function bN(e){this.stylesheets.add(e)}var vN=Function.prototype.bind,kN=Symbol.for("react.client.reference");function wN(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===kN?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case P_:return"Fragment";case O_:return"Portal";case D_:return"Profiler";case L_:return"StrictMode";case j_:return"Suspense";case H_:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case B_:return(e.displayName||"Context")+".Provider";case F_:return(e._context.displayName||"Context")+".Consumer";case z_:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case U_:return null!==(t=e.displayName||null)?t:wN(e.type)||"Memo";case $_:t=e._payload,e=e._init;try{return wN(e(t))}catch(n){}}return null}var EN={},SN=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(N_(401))}else{if(null===n)throw Error(N_(401));xN(e,n)}t.context._currentValue=t.value}}function TN(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&TN(e)}function _N(e){var t=e.parent;null!==t&&_N(t),e.context._currentValue=e.value}function AN(e,t){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(N_(402));e.depth===t.depth?xN(e,t):AN(e,t)}function CN(e,t){var n=t.parent;if(null===n)throw Error(N_(402));e.depth===n.depth?xN(e,n):CN(e,n),t.context._currentValue=t.value}function IN(e){var t=SN;t!==e&&(null===t?_N(e):null===e?TN(t):t.depth===e.depth?xN(t,e):t.depth>e.depth?AN(t,e):CN(t,e),SN=e)}var NN={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(){}},RN={id:1,overflow:""};function ON(e,t,n){var r=e.id;e=e.overflow;var a=32-PN(r)-1;r&=~(1<<a),n+=1;var o=32-PN(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-PN(t)+a|n<<a|r,overflow:o+e}}return{id:1<<o|n<<a|r,overflow:e}}var PN=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(LN(e)/DN|0)|0},LN=Math.log,DN=Math.LN2;var MN=Error(N_(460));function FN(){}var BN=null;function zN(){if(null===BN)throw Error(N_(459));var e=BN;return BN=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},HN=null,UN=null,$N=null,GN=null,VN=null,WN=null,qN=!1,YN=!1,XN=0,KN=0,QN=-1,ZN=0,JN=null,eR=null,tR=0;function nR(){if(null===HN)throw Error(N_(321));return HN}function rR(){if(0<tR)throw Error(N_(312));return{memoizedState:null,queue:null,next:null}}function aR(){return null===WN?null===VN?(qN=!1,VN=WN=rR()):(qN=!0,WN=VN):null===WN.next?(qN=!1,WN=WN.next=rR()):(qN=!0,WN=WN.next),WN}function oR(){var e=JN;return JN=null,e}function iR(){GN=$N=UN=HN=null,YN=!1,VN=null,tR=0,WN=eR=null}function sR(e,t){return"function"==typeof t?t(e):t}function lR(e,t,n){if(HN=nR(),WN=aR(),qN){var r=WN.queue;if(t=r.dispatch,null!==eR&&void 0!==(n=eR.get(r))){eR.delete(r),r=WN.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return WN.memoizedState=r,[r,t]}return[WN.memoizedState,t]}return e=e===sR?"function"==typeof t?t():t:void 0!==n?n(t):t,WN.memoizedState=e,e=(e=WN.queue={last:null,dispatch:null}).dispatch=uR.bind(null,HN,e),[WN.memoizedState,e]}function cR(e,t){if(HN=nR(),t=void 0===t?null:t,null!==(WN=aR())){var n=WN.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(),WN.memoizedState=[e,t],e}function uR(e,t,n){if(25<=tR)throw Error(N_(301));if(e===HN)if(YN=!0,e={action:n,next:null},null===eR&&(eR=new Map),void 0===(n=eR.get(t)))eR.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function dR(){throw Error(N_(394))}function pR(){throw Error(N_(479))}function fR(e,t,n){nR();var r=KN++,a=$N;if("function"==typeof e.$$FORM_ACTION){var o=null,i=GN;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"+Q_(JSON.stringify([i,null,r]),0))&&(QN=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"+Q_(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 hR(e){var t=ZN;return ZN+=1,null===JN&&(JN=[]),function(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(FN,FN),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch("string"==typeof t.status?t.then(FN,FN):((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 BN=t,MN}}(JN,e,t)}function mR(){throw Error(N_(393))}function gR(){}var yR={readContext:function(e){return e._currentValue},use:function(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return hR(e);if(e.$$typeof===B_)return e._currentValue}throw Error(N_(438,String(e)))},useContext:function(e){return nR(),e._currentValue},useMemo:cR,useReducer:lR,useRef:function(e){HN=nR();var t=(WN=aR()).memoizedState;return null===t?(e={current:e},WN.memoizedState=e):t},useState:function(e){return lR(sR,e)},useInsertionEffect:gR,useLayoutEffect:gR,useCallback:function(e,t){return cR((function(){return e}),t)},useImperativeHandle:gR,useEffect:gR,useDebugValue:gR,useDeferredValue:function(e,t){return nR(),void 0!==t?t:e},useTransition:function(){return nR(),[!1,dR]},useId:function(){var e=UN.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-PN(e)-1)).toString(32)+t;var n=kR;if(null===n)throw Error(N_(404));return t=XN++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(N_(407));return n()},useCacheRefresh:function(){return mR},useMemoCache:function(e){for(var t=Array(e),n=0;n<e;n++)t[n]=Y_;return t},useHostTransitionStatus:function(){return nR(),IA},useOptimistic:function(e){return nR(),[e,pR]}};yR.useFormState=fR,yR.useActionState=fR;var bR,vR,kR=null,wR={getCacheForType:function(){throw Error(N_(248))}};function ER(e){if(void 0===bR)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);bR=t&&t[1]||"",vR=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+bR+e+vR}var SR=!1;function xR(e,t){if(!e||SR)return"";SR=!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{SR=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ER(n):""}function TR(e){if("string"==typeof e)return ER(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 z_:return xR(e.render,!1);case U_:return xR(e.type,!1);case $_:var t=e,n=t._payload;t=t._init;try{e=t(n)}catch(r){return ER("Lazy")}return TR(e)}if("string"==typeof e.name)return n=e.env,ER(e.name+(n?" ["+n+"]":""))}switch(e){case H_:return ER("SuspenseList");case j_:return ER("Suspense")}return""}function _R(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=vN.apply(console.error,e))()}else console.error(e);return null}function AR(){}function CR(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?_R:a,this.onPostpone=void 0===c?AR:c,this.onAllReady=void 0===o?AR:o,this.onShellReady=void 0===i?AR:i,this.onShellError=void 0===s?AR:s,this.onFatalError=void 0===l?AR:l,this.formState=void 0===u?null:u}function IR(e,t,n,r,a,o,i,s,l,c,u,d){return(n=FR(t=new CR(t,n,r,a,o,i,s,l,c,u,d),0,null,r,!1,!1)).parentFlushed=!0,BR(e=DR(t,null,e,-1,null,n,null,t.abortableTasks,null,r,null,RN,null,!1)),t.pingedTasks.push(e),t}var NR,RR,OR=null;function PR(e,t){e.pingedTasks.push(t),1===e.pingedTasks.length&&(e.flushScheduled=null!==e.destination,null!==e.trackedPostpones||10===e.status?rA((function(){return sO(e)})):eA((function(){return sO(e)})))}function LR(e,t){return{status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,completedSegments:[],byteSize:0,fallbackAbortableTasks:t,errorDigest:null,contentState:uN(),fallbackState:uN(),trackedContentKeyPath:null,trackedFallbackNode:null}}function DR(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 PR(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 MR(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 PR(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 FR(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 BR(e){var t=e.node;if("object"==typeof t&&null!==t&&t.$$typeof===R_)e.componentStack={parent:e.componentStack,type:t.type}}function zR(e){var t={};return e&&Object.defineProperty(t,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var n="",r=e;do{n+=TR(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 HR(e,t){var n=e.onShellError,r=e.onFatalError;n(t),r(t),null!==e.destination?(e.status=14,pA(e.destination,t)):(e.status=13,e.fatalError=t)}function UR(e,t,n,r,a,o){var i=t.thenableState;for(t.thenableState=null,HN={},UN=t,$N=e,GN=n,KN=XN=0,QN=-1,ZN=0,JN=i,e=r(a,o);YN;)YN=!1,KN=XN=0,QN=-1,ZN=0,tR+=1,WN=null,e=r(a,o);return iR(),e}function $R(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(wC):l.push(EC)}}o=t.keyPath,t.keyPath=n,a?(n=t.treeContext,t.treeContext=ON(n,1,0),ZR(e,t,r,-1),t.treeContext=n):s?ZR(e,t,r,-1):WR(e,t,r,-1),t.keyPath=o}function GR(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=fA({},i,a)),l)void 0===i[c]&&(i[c]=l[c]);a=i,i=EN,"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=NN,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:EN,"function"==typeof(o=r.getDerivedStateFromProps)&&(u=null==(o=o(a,u))?u:fA({},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&&NN.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=fA({},l,c)):fA(l,c));i.state=l}else l.queue=null;if(r=i.render(),12===e.status)throw null;a=t.keyPath,t.keyPath=n,WR(e,t,r,-1),t.keyPath=a}else{if(r=UR(e,t,n,r,a,void 0),12===e.status)throw null;$R(e,t,n,r,0!==XN,KN,QN)}else{if("string"!=typeof r){switch(r){case q_:case V_:case L_:case D_:case P_:return r=t.keyPath,t.keyPath=n,WR(e,t,a.children,-1),void(t.keyPath=r);case W_:return void("hidden"!==a.mode&&(r=t.keyPath,t.keyPath=n,WR(e,t,a.children,-1),t.keyPath=r));case H_:return r=t.keyPath,t.keyPath=n,WR(e,t,a.children,-1),void(t.keyPath=r);case G_:throw Error(N_(343));case j_:e:if(null!==t.replay){r=t.keyPath,t.keyPath=n,n=a.children;try{ZR(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=LR(0,f),null!==e.trackedPostpones&&(s.trackedContentKeyPath=n);var h=FR(0,o.chunks.length,s,t.formatContext,!1,!1);o.children.push(h),o.lastPushedText=!1;var m=FR(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{ZR(e,t,c,-1),h.lastPushedText&&h.textEmbedded&&h.chunks.push(XA),h.status=1}catch(g){throw h.status=12===e.status?3:4,g}finally{t.blockedSegment=o,t.keyPath=r}BR(t=DR(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(ZR(e,t,a,-1),m.lastPushedText&&m.textEmbedded&&m.chunks.push(XA),m.status=1,oO(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=zR(t.componentStack)),s.errorDigest=u,XR(e,s)}finally{t.blockedBoundary=d,t.hoistableState=p,t.blockedSegment=o,t.keyPath=r}BR(t=DR(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 z_:if("ref"in a)for(h in i={},a)"ref"!==h&&(i[h]=a[h]);else i=a;return void $R(e,t,n,r=UR(e,t,n,r.render,i,o),0!==XN,KN,QN);case U_:return void GR(e,t,n,r.type,a,o);case M_:case B_:if(l=a.children,i=t.keyPath,a=a.value,u=r._currentValue,r._currentValue=a,SN=r={parent:o=SN,depth:null===o?0:o.depth+1,context:r,parentValue:u,value:a},t.context=r,t.keyPath=n,WR(e,t,l,-1),null===(e=SN))throw Error(N_(403));return e.context._currentValue=e.parentValue,e=SN=e.parent,t.context=e,void(t.keyPath=i);case F_:return r=(a=a.children)(r._context._currentValue),a=t.keyPath,t.keyPath=n,WR(e,t,r,-1),void(t.keyPath=a);case $_:if(r=(i=r._init)(r._payload),12===e.status)throw null;return void GR(e,t,n,r,a,o)}throw Error(N_(130,null==r?r:typeof r,""))}if(null===(i=t.blockedSegment))i=a.children,l=t.formatContext,u=t.keyPath,t.formatContext=YA(l,r,a),t.keyPath=n,ZR(e,t,i,-1),t.formatContext=l,t.keyPath=u;else{u=DC(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=YA(l,r,a),t.keyPath=n,ZR(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(FC(r))}i.lastPushedText=!1}}}function VR(e,t,n,r,a){var o=t.replay,i=t.blockedBoundary,s=FR(0,0,null,t.formatContext,!1,!1);s.id=n,s.parentFlushed=!0;try{t.replay=null,t.blockedSegment=s,ZR(e,t,r,a),s.status=1,null===i?e.completedRootSegment=s:(oO(i,s),i.parentFlushed&&e.partialBoundaries.push(i))}finally{t.replay=o,t.blockedSegment=null}}function WR(e,t,n,r){null!==t.replay&&"number"==typeof t.replay.slots?VR(e,t,t.replay.slots,n,r):(t.node=n,t.childIndex=r,n=t.componentStack,BR(t),qR(e,t),t.componentStack=n)}function qR(e,t){var n=t.node,r=t.childIndex;if(null!==n){if("object"==typeof n){switch(n.$$typeof){case R_:var a=n.type,o=n.key,i=n.props,s=void 0!==(n=i.ref)?n:null,l=wN(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(N_(490,d[0],l));var p=d[2];l=d[3],c=t.node,t.replay={nodes:p,slots:l,pendingTasks:1};try{if(GR(e,t,o,a,i,s),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(N_(488));t.replay.pendingTasks--}catch(k){if("object"==typeof k&&null!==k&&(k===MN||"function"==typeof k.then))throw t.node===c&&(t.replay=u),k;t.replay.pendingTasks--,i=zR(t.componentStack),eO(e,o=t.blockedBoundary,p,l,a=k,i=jR(e,a,i))}t.replay=u}else{if(a!==j_)throw Error(N_(490,"Suspense",wN(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=LR(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(ZR(e,t,y,-1),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(N_(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=zR(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}BR(t=MR(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 GR(e,t,o,a,i,s);return;case O_:throw Error(N_(257));case $_:if(n=(p=n._init)(n._payload),12===e.status)throw null;return void WR(e,t,n,r)}if(K_(n))return void YR(e,t,n,r);if(null===n||"object"!=typeof n?p=null:p="function"==typeof(p=X_&&n[X_]||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);YR(e,t,i,r)}return}if("function"==typeof n.then)return t.thenableState=null,WR(e,t,hR(n),r);if(n.$$typeof===B_)return WR(e,t,n._currentValue,r);throw r=Object.prototype.toString.call(n),Error(N_(31,"[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r))}"string"==typeof n?null!==(r=t.blockedSegment)&&(r.lastPushedText=KA(r.chunks,n,e.renderState,r.lastPushedText)):"number"!=typeof n&&"bigint"!=typeof n||null!==(r=t.blockedSegment)&&(r.lastPushedText=KA(r.chunks,""+n,e.renderState,r.lastPushedText))}}function YR(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=ON(o,i,r),"number"==typeof(c=s[r])?(VR(e,t,c,l,r),delete s[r]):ZR(e,t,l,r);return t.treeContext=o,void(t.keyPath=a)}for(s=0;s<i;s++)r=n[s],t.treeContext=ON(o,i,s),ZR(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(YR(e,t,n,-1),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(N_(488));t.replay.pendingTasks--}catch(u){if("object"==typeof u&&null!==u&&(u===MN||"function"==typeof u.then))throw u;t.replay.pendingTasks--,n=zR(t.componentStack);var c=t.blockedBoundary;eO(e,c,r,l,u,n=jR(e,u,n))}t.replay=o,i.splice(s,1);break}}t.keyPath=a}}function XR(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 KR(e,t,n){return MR(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 QR(e,t,n){var r=t.blockedSegment,a=FR(0,r.chunks.length,null,t.formatContext,r.lastPushedText,!0);return r.children.push(a),r.lastPushedText=!1,DR(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 ZR(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 WR(e,t,n,r)}catch(p){if(iR(),"object"==typeof(n=p===MN?zN():p)&&null!==n){if("function"==typeof n.then)return e=KR(e,t,r=oR()).ping,n.then(e,e),t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,t.componentStack=l,void IN(o);if("Maximum call stack size exceeded"===n.message)return n=KR(e,t,n=oR()),e.pingedTasks.push(n),t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,t.componentStack=l,void IN(o)}}else{var u=c.children.length,d=c.chunks.length;try{return WR(e,t,n,r)}catch(f){if(iR(),c.children.length=u,c.chunks.length=d,"object"==typeof(n=f===MN?zN():f)&&null!==n){if("function"==typeof n.then)return e=QR(e,t,r=oR()).ping,n.then(e,e),t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,t.componentStack=l,void IN(o);if("Maximum call stack size exceeded"===n.message)return n=QR(e,t,n=oR()),e.pingedTasks.push(n),t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,t.componentStack=l,void IN(o)}}}throw t.formatContext=a,t.context=o,t.keyPath=i,t.treeContext=s,IN(o),n}function JR(e){var t=e.blockedBoundary;null!==(e=e.blockedSegment)&&(e.status=3,iO(this,t,e))}function eO(e,t,n,r,a,o){for(var i=0;i<n.length;i++){var s=n[i];if(4===s.length)eO(e,t,s[2],s[3],a,o);else{s=s[5];var l=e,c=o,u=LR(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(N_(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 tO(e,t,n){var r=e.blockedBoundary,a=e.blockedSegment;if(null!==a){if(6===a.status)return;a.status=3}if(a=zR(e.componentStack),null===r){if(13!==t.status&&14!==t.status){if(null===(r=e.replay))return jR(t,n,a),void HR(t,n);r.pendingTasks--,0===r.pendingTasks&&0<r.nodes.length&&(e=jR(t,n,a),eO(t,null,r.nodes,r.slots,n,e)),t.pendingRootTasks--,0===t.pendingRootTasks&&rO(t)}}else r.pendingTasks--,4!==r.status&&(r.status=4,e=jR(t,n,a),r.status=4,r.errorDigest=e,XR(t,r),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach((function(e){return tO(e,t,n)})),r.fallbackAbortableTasks.clear();t.allPendingTasks--,0===t.allPendingTasks&&aO(t)}function nO(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=pN(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]=RA,o&&(o+=", "),o+=h,n.resets.style[p]="string"==typeof d.crossOrigin||"string"==typeof d.integrity?[d.crossOrigin,d.integrity]:RA}}r(o?{Link:o}:{})}}}catch(m){jR(e,m,{})}}function rO(e){null===e.trackedPostpones&&nO(e,!0),e.onShellError=AR,(e=e.onShellReady)()}function aO(e){nO(e,null===e.trackedPostpones||(null===e.completedRootSegment||5!==e.completedRootSegment.status)),(e=e.onAllReady)()}function oO(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&&oO(e,n)}else e.completedSegments.push(t)}function iO(e,t,n){if(null===t){if(null!==n&&n.parentFlushed){if(null!==e.completedRootSegment)throw Error(N_(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&rO(e)}else t.pendingTasks--,4!==t.status&&(0===t.pendingTasks?(0===t.status&&(t.status=1),null!==n&&n.parentFlushed&&1===n.status&&oO(t,n),t.parentFlushed&&e.completedBoundaries.push(t),1===t.status&&(t.fallbackAbortableTasks.forEach(JR,e),t.fallbackAbortableTasks.clear())):null!==n&&n.parentFlushed&&1===n.status&&(oO(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&aO(e)}function sO(e){if(14!==e.status&&13!==e.status){var t=SN,n=AA.H;AA.H=yR;var r=AA.A;AA.A=wR;var a=OR;OR=e;var o=kR;kR=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){IN(l.context);try{if("number"==typeof l.replay.slots?VR(d,l,l.replay.slots,l.node,l.childIndex):qR(d,l),1===l.replay.pendingTasks&&0<l.replay.nodes.length)throw Error(N_(488));l.replay.pendingTasks--,l.abortSet.delete(l),iO(d,l.blockedBoundary,null)}catch(x){iR();var p=x===MN?zN():x;if("object"==typeof p&&null!==p&&"function"==typeof p.then){var f=l.ping;p.then(f,f),l.thenableState=oR()}else{l.replay.pendingTasks--,l.abortSet.delete(l);var h=zR(l.componentStack);c=void 0;var m=d,g=l.blockedBoundary,y=12===d.status?d.fatalError:p;eO(m,g,l.replay.nodes,l.replay.slots,y,c=jR(m,y,h)),d.pendingRootTasks--,0===d.pendingRootTasks&&rO(d),d.allPendingTasks--,0===d.allPendingTasks&&aO(d)}}}}else if(d=void 0,0===(m=u).status){m.status=6,IN(l.context);var b=m.children.length,v=m.chunks.length;try{qR(c,l),m.lastPushedText&&m.textEmbedded&&m.chunks.push(XA),l.abortSet.delete(l),m.status=1,iO(c,l.blockedBoundary,m)}catch(x){iR(),m.children.length=b,m.chunks.length=v;var k=x===MN?zN():12===c.status?c.fatalError:x;if("object"==typeof k&&null!==k&&"function"==typeof k.then){m.status=0,l.thenableState=oR();var w=l.ping;k.then(w,w)}else{var E=zR(l.componentStack);l.abortSet.delete(l),m.status=4;var S=l.blockedBoundary;d=jR(c,k,E),null===S?HR(c,k):(S.pendingTasks--,4!==S.status&&(S.status=4,S.errorDigest=d,XR(c,S),S.parentFlushed&&c.clientRenderedBoundaries.push(S))),c.allPendingTasks--,0===c.allPendingTasks&&aO(c)}}}}s.splice(0,i),null!==e.destination&&fO(e,e.destination)}catch(T){jR(e,T,{}),HR(e,T)}finally{kR=o,AA.H=n,AA.A=r,n===yR&&IN(t),OR=a}}}function lO(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,iA(t,zC),iA(t,e.placeholderPrefix),iA(t,e=uA(r.toString(16))),sA(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++)iA(t,o[i]);a=cO(e,t,a,r)}for(;i<o.length-1;i++)iA(t,o[i]);return i<o.length&&(a=sA(t,o[i])),a;default:throw Error(N_(390))}}function cO(e,t,n,r){var a=n.boundary;if(null===a)return lO(e,t,n,r);if(a.parentFlushed=!0,4===a.status)a=a.errorDigest,sA(t,GC),iA(t,WC),a&&(iA(t,YC),iA(t,uA(EA(a))),iA(t,qC)),sA(t,XC),lO(e,t,n,r);else if(1!==a.status)0===a.status&&(a.rootSegmentID=e.nextSegmentId++),0<a.completedSegments.length&&e.partialBoundaries.push(a),KC(t,e.renderState,a.rootSegmentID),r&&((a=a.fallbackState).styles.forEach(yN,r),a.stylesheets.forEach(bN,r)),lO(e,t,n,r);else if(a.byteSize>e.progressiveChunkSize)a.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(a),KC(t,e.renderState,a.rootSegmentID),lO(e,t,n,r);else{if(r&&((n=a.contentState).styles.forEach(yN,r),n.stylesheets.forEach(bN,r)),sA(t,HC),1!==(n=a.completedSegments).length)throw Error(N_(391));cO(e,t,n[0],r)}return sA(t,VC)}function uO(e,t,n,r){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:case 2:return iA(e,QC),iA(e,t.segmentPrefix),iA(e,uA(r.toString(16))),sA(e,ZC);case 3:return iA(e,eI),iA(e,t.segmentPrefix),iA(e,uA(r.toString(16))),sA(e,tI);case 4:return iA(e,rI),iA(e,t.segmentPrefix),iA(e,uA(r.toString(16))),sA(e,aI);case 5:return iA(e,iI),iA(e,t.segmentPrefix),iA(e,uA(r.toString(16))),sA(e,sI);case 6:return iA(e,cI),iA(e,t.segmentPrefix),iA(e,uA(r.toString(16))),sA(e,uI);case 7:return iA(e,pI),iA(e,t.segmentPrefix),iA(e,uA(r.toString(16))),sA(e,fI);case 8:return iA(e,mI),iA(e,t.segmentPrefix),iA(e,uA(r.toString(16))),sA(e,gI);default:throw Error(N_(397))}}(t,e.renderState,n.parentFormatContext,n.id),cO(e,t,n,r),function(e,t){switch(t.insertionMode){case 0:case 1:case 2:return sA(e,JC);case 3:return sA(e,nI);case 4:return sA(e,oI);case 5:return sA(e,lI);case 6:return sA(e,dI);case 7:return sA(e,hI);case 8:return sA(e,yI);default:throw Error(N_(397))}}(t,n.parentFormatContext)}function dO(e,t,n){for(var r=n.completedSegments,a=0;a<r.length;a++)pO(e,t,n,r[a]);r.length=0,qI(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,iA(t,e.startInlineScript),o?2&r.instructions?8&r.instructions?iA(t,_I):(r.instructions|=8,iA(t,TI)):(r.instructions|=10,iA(t,xI)):2&r.instructions?iA(t,SI):(r.instructions|=2,iA(t,EI)),r=uA(a.toString(16)),iA(t,e.boundaryPrefix),iA(t,r),iA(t,AI),iA(t,e.segmentPrefix),iA(t,r),o?(iA(t,CI),function(e,t){iA(e,oN);var n=oN;t.stylesheets.forEach((function(t){if(2!==t.state)if(3===t.state)iA(e,n),iA(e,uA(BI(""+t.props.href))),iA(e,lN),n=iN;else{iA(e,n);var r=t.props["data-precedence"],a=t.props,o=_A(""+t.props.href);for(var i in iA(e,uA(BI(o))),r=""+r,iA(e,sN),iA(e,uA(BI(r))),a)if(hA.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(N_(399,"link"));default:cN(e,i,r)}iA(e,lN),n=iN,t.state=3}})),iA(e,lN)}(t,n)):iA(t,II),n=sA(t,NI),BC(t,e)&&n}function pO(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(N_(392));return uO(e,t,r,a)}return o===n.rootSegmentID?uO(e,t,r,a):(uO(e,t,r,a),n=e.resumableState,iA(t,(e=e.renderState).startInlineScript),1&n.instructions?iA(t,vI):(n.instructions|=1,iA(t,bI)),iA(t,e.segmentPrefix),iA(t,o=uA(o.toString(16))),iA(t,kI),iA(t,e.placeholderPrefix),iA(t,o),t=sA(t,wI))}function fO(e,t){aA=new Uint8Array(2048),oA=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++)iA(t,i[a]);if(s)for(a=0;a<s.length;a++)iA(t,s[a]);else iA(t,PC("head")),iA(t,mC)}else if(s)for(a=0;a<s.length;a++)iA(t,s[a]);var l=o.charsetChunks;for(a=0;a<l.length;a++)iA(t,l[a]);l.length=0,o.preconnects.forEach(YI,t),o.preconnects.clear();var c=o.viewportChunks;for(a=0;a<c.length;a++)iA(t,c[a]);c.length=0,o.fontPreloads.forEach(YI,t),o.fontPreloads.clear(),o.highImagePreloads.forEach(YI,t),o.highImagePreloads.clear(),o.styles.forEach(nN,t);var u=o.importMapChunks;for(a=0;a<u.length;a++)iA(t,u[a]);u.length=0,o.bootstrapScripts.forEach(YI,t),o.scripts.forEach(YI,t),o.scripts.clear(),o.bulkPreloads.forEach(YI,t),o.bulkPreloads.clear();var d=o.hoistableChunks;for(a=0;a<d.length;a++)iA(t,d[a]);d.length=0,i&&null===s&&iA(t,FC("head")),cO(e,t,r,null),e.completedRootSegment=null,BC(t,e.renderState)}var p=e.renderState;r=0;var f=p.viewportChunks;for(r=0;r<f.length;r++)iA(t,f[r]);f.length=0,p.preconnects.forEach(YI,t),p.preconnects.clear(),p.fontPreloads.forEach(YI,t),p.fontPreloads.clear(),p.highImagePreloads.forEach(YI,t),p.highImagePreloads.clear(),p.styles.forEach(aN,t),p.scripts.forEach(YI,t),p.scripts.clear(),p.bulkPreloads.forEach(YI,t),p.bulkPreloads.clear();var h=p.hoistableChunks;for(r=0;r<h.length;r++)iA(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;iA(p,b.startInlineScript),4&y.instructions?iA(p,OI):(y.instructions|=4,iA(p,RI)),iA(p,b.boundaryPrefix),iA(p,uA(v.toString(16))),iA(p,PI),k&&(iA(p,LI),iA(p,uA((C=k||"",JSON.stringify(C).replace(MI,(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=sA(p,DI);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(!dO(e,t,E[n]))return e.destination=null,n++,void E.splice(0,n);E.splice(0,n),lA(t),aA=new Uint8Array(2048),oA=0;var S=e.partialBoundaries;for(n=0;n<S.length;n++){var x=S[n];e:{m=e,g=t;var T=x.completedSegments;for(w=0;w<T.length;w++)if(!pO(m,g,x,T[w])){w++,T.splice(0,w);var _=!1;break e}T.splice(0,w),_=qI(g,x.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(!dO(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&&iA(t,FC("body")),n.hasHtml&&iA(t,FC("html")),lA(t),e.status=14,t.close(),e.destination=null):lA(t)}var C}function hO(e){e.flushScheduled=null!==e.destination,rA((function(){return sO(e)})),eA((function(){10===e.status&&(e.status=11),null===e.trackedPostpones&&nO(e,0===e.pendingRootTasks)}))}function mO(e){!1===e.flushScheduled&&0===e.pingedTasks.length&&null!==e.destination&&(e.flushScheduled=!0,eA((function(){var t=e.destination;t?fO(e,t):e.flushScheduled=!1})))}function gO(e,t){if(13===e.status)e.status=14,pA(t,e.fatalError);else if(14!==e.status&&null===e.destination){e.destination=t;try{fO(e,t)}catch(n){jR(e,n,{}),HR(e,n)}}}function yO(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(N_(432)):"object"==typeof t&&null!==t&&"function"==typeof t.then?Error(N_(530)):t;e.fatalError=r,n.forEach((function(t){return tO(t,e,r)})),n.clear()}null!==e.destination&&fO(e,e.destination)}catch(a){jR(e,a,{}),HR(e,a)}}function bO(){var e=C_.version;if("19.0.0"!==e)throw Error(N_(527,e,"19.0.0"))}bO(),bO(),A_.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=VA(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=IR(e,t,n,r,a,o,i,s,l,c,u,void 0)).trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},e}(e,i,GA(i,void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,a,t?t.maxHeadersLength:void 0),qA(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){gO(s,e)},cancel:function(e){s.destination=null,yO(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)yO(s,l.reason);else{var c=function(){yO(s,l.reason),l.removeEventListener("abort",c)};l.addEventListener("abort",c)}}hO(s)}))},A_.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=VA(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=IR(e,c,GA(c,t?t.nonce:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,i,t?t.maxHeadersLength:void 0),qA(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){gO(u,e)},cancel:function(e){u.destination=null,yO(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)yO(u,d.reason);else{var p=function(){yO(u,d.reason),d.removeEventListener("abort",p)};d.addEventListener("abort",p)}}hO(u)}))},A_.version="19.0.0",RR=A_,(NR=BE).version;var vO=NR.renderToString;function kO({children:e="",...t}){let n="";return W.isValidElement(e)?n=vO(e):"string"==typeof e&&(n=e),Hf.jsx("template",{...t,dangerouslySetInnerHTML:{__html:n}})}function wO({root:e,children:t=null}){return re.createPortal(t,e)}function EO(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]),Hf.jsx(e.tag,{ref:l,...i,children:(c||a)&&Hf.jsx(FE.Provider,{value:c,children:a?Hf.jsx(kO,{shadowroot:t,shadowrootmode:t,children:e.render({root:c,ssr:a,children:o})}):Hf.jsx(wO,{root:c,children:e.render({root:c,ssr:a,children:o})})})},d)}))}NR.renderToStaticMarkup,RR.renderToReadableStream,RR.resume&&RR.resume;const SO=new Map;const xO=function(e={},t="core",n=({children:e})=>e){return new Proxy(e,{get:function(e,r){const a=ME.decamelize(r,{separator:"-"}),o=`${t}-${a}`;if(!SO.has(o)){const e=EO({tag:a,render:n});SO.set(o,e)}return SO.get(o)}})}();var TO=Boolean(null==globalThis?void 0:globalThis.document)?V.useLayoutEffect:()=>{},_O=q["useId".toString()]||(()=>{}),AO=0;function CO(e){const[t,n]=V.useState(_O());return TO((()=>{n((e=>e??String(AO++)))}),[e]),t?`radix-${t}`:""}const IO=V.createContext(void 0),NO=()=>V.useContext(IO);function RO({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=CO(),u=xO.div;return Hf.jsxs(u,{id:`inkeep-shadow${c}`,ref:e=>{e&&o(e)},style:e,children:[Hf.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,Hf.jsx("div",{id:"inkeep-widget-root",ref:e=>{e&&s(e)},style:e,children:Hf.jsx(IO.Provider,{value:l,children:a&&i&&t})})]})}const OO=e=>NO()?e.children:Hf.jsx(RO,{...e}),PO="IntelligentForm",LO={prefix:"ikp",aiChatSettings:{model:"inkeep-qa-expert",placeholder:"How do I get started?",aiAssistantName:void 0,shouldOpenLinksInNewTab:!0,disclaimerSettings:{isEnabled:!1,label:"Usage policy"},isShareButtonVisible:!1,isViewOnly:!1,exampleQuestionsLabel:"Example questions",exampleQuestions:[],isFirstExampleQuestionHighlighted:!0,isCopyChatButtonVisible:!1,getHelpOptions:[],workflowsHeader:"Workflows",workflows:[],toolbarButtonLabels:{clear:"Clear",share:"Share",getHelp:"Get help",stop:"Stop",copyChat:"Copy"},prompts:[]},baseSettings:bE,searchSettings:{shouldOpenLinksInNewTab:!1,maxResults:40,defaultQuery:"",debounceTimeMs:0,tabs:["All","Publications","PDFs","GitHub","Forums","Discord","Slack","StackOverflow"],placeholder:"Search for anything...",view:"single-pane"},componentType:"EmbeddedChat"},DO=V.createContext(LO),MO=({children:e,value:t})=>{const n=NO(),r=function(e,t,...n){return n.reduce(((t,n)=>Cf(t,n,e)),t)}(((e,n,r)=>{var a;return"apiKey"!==r||n||(null==(a=null==t?void 0:t.baseSettings)?void 0:a.aiApiBaseUrl)||console.warn("Inkeep API key is missing."),["baseSettings","searchSettings","aiChatSettings"].includes(r)&&!n?e:n}),LO,{baseSettings:n??{}},t??{});return Hf.jsx(DO.Provider,{value:r,children:e})},FO=()=>{const e=V.useContext(DO);if(!e)throw new Error("useInkeepConfig must be used within a ConfigProvider");return e},BO="conversationId",zO=V.createContext(null),jO=({children:e})=>{const t=function(){const[e,t]=V.useState(void 0),{aiChatSettings:n}=FO(),{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(BO);e&&t(e)}};n();const a=()=>n();return window.addEventListener("popstate",a),()=>{window.removeEventListener("popstate",a)}}),[r]),e}(),{aiChatSettings:n}=FO(),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 Hf.jsx(zO.Provider,{value:l,children:e})},HO=()=>{const e=V.useContext(zO);if(!e)throw new Error("useInkeepConversation must be used within an InkeepConversationProvider");return e};const UO="inkeepUsagePreferences",$O={defaultView:null,inkeepChatSessionId:null},GO={hasSwitchModeButtonJiggled:!1,userId:null,...$O},VO={set(e,t,n,r=365){try{if("cookie"===e){const e=new Date;void 0===n?(e.setTime(e.getTime()-1),document.cookie=`${UO}_${t}=; expires=${e.toUTCString()}; path=/`):(e.setTime(e.getTime()+24*r*60*60*1e3),document.cookie=`${UO}_${t}=${n}; expires=${e.toUTCString()}; path=/`)}else"undefined"!=typeof sessionStorage&&sessionStorage.setItem(`${UO}_${t}`,n?JSON.stringify(n):"")}catch(a){return null}},get(e,t){if("cookie"===e){const e=`${UO}_${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(`${UO}_${t}`);return e?JSON.parse(e):null}}catch(n){return null}return null}},WO=()=>{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},qO=V.createContext(void 0),YO=({children:e})=>{const{baseSettings:{userProperties:t,privacyPreferences:n}}=FO(),{optOutAllAnalytics:r,optOutAnalyticalCookies:a}=n,{browserStorage:o,setBrowserStorage:i}=(()=>{const{baseSettings:e,componentType:t}=FO(),{optOutAllAnalytics:n,optOutFunctionalCookies:r}=e.privacyPreferences,a=n||r||!WO()?"sessionStorage":"cookie",o=`${e.apiKey}-${t}`,i=e=>e in $O?`${e}-${o}`:e,s=Object.keys(GO).reduce(((e,t)=>{const n=i(t),r=VO.get(a,n);return{...e,[t]:r}}),{...GO}),[l,c]=V.useState(s);return V.useEffect((()=>{if(r)for(const e of Object.keys(GO)){const t=i(e);VO.set("cookie",t,null,-1)}}),[r]),{browserStorage:l,setBrowserStorage:(e,t,n=365)=>{const r=i(e);VO.set(a,r,t,n),c((n=>({...n,[e]:t})))}}})(),s=V.useMemo((()=>WO()),[]),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]),Hf.jsx(qO.Provider,{value:{userProperties:c},children:e})},XO=()=>{const e=V.useContext(qO);if(!e)throw new Error("useUser must be used within a UserProvider");return e};const KO=V.createContext(void 0),QO=({children:e})=>{const{baseSettings:t,componentType:n}=FO(),{apiKey:r,analyticsApiBaseUrl:a,tags:o,privacyPreferences:i,env:s}=t,{userProperties:l}=XO(),c=V.useMemo((()=>({widgetLibraryVersion:"0.5.39",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 Hf.jsx(KO.Provider,{value:d,children:e})},ZO=V.createContext(void 0),JO=({children:e})=>{const{baseSettings:t}=FO(),{apiKey:n,analyticsApiBaseUrl:r,tags:a,privacyPreferences:{optOutAllAnalytics:o},env:i}=t,{userProperties:s}=XO(),{logEvent:l}=(()=>{const e=V.useContext(KO);if(!e)throw new Error("useBaseEvents must be used within a BaseEventsProvider");return e})(),{conversation:c,setConversation:u}=HO(),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 Hf.jsx(ZO.Provider,{value:f,children:e})},eP=({children:e})=>Hf.jsx(QO,{children:Hf.jsx(JO,{children:e})}),tP=(...e)=>(...t)=>{for(const n of e)null==n||n(...t)},nP=e=>"string"==typeof e;function rP(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 aP=e=>e?"":void 0;function oP(e,t){return"function"==typeof e?e(t):e}var iP=e=>"checkbox"===e.type,sP=e=>e instanceof Date,lP=e=>null==e;const cP=e=>"object"==typeof e;var uP=e=>!lP(e)&&!Array.isArray(e)&&cP(e)&&!sP(e),dP=e=>uP(e)&&e.target?iP(e.target)?e.target.checked:e.target.value:e,pP=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),fP="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function hP(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(fP&&(e instanceof Blob||r)||!n&&!uP(e))return e;if(t=n?[]:{},n||(e=>{const t=e.constructor&&e.constructor.prototype;return uP(t)&&t.hasOwnProperty("isPrototypeOf")})(e))for(const n in e)e.hasOwnProperty(n)&&(t[n]=hP(e[n]));else t=e}return t}var mP=e=>Array.isArray(e)?e.filter(Boolean):[],gP=e=>void 0===e,yP=(e,t,n)=>{if(!t||!uP(e))return n;const r=mP(t.split(/[,[\].]+?/)).reduce(((e,t)=>lP(e)?e:e[t]),e);return gP(r)||r===e?gP(e[t])?n:e[t]:r},bP=e=>"boolean"==typeof e,vP=e=>/^\w*$/.test(e),kP=e=>mP(e.replace(/["|']|\]/g,"").split(/\.|\[/)),wP=(e,t,n)=>{let r=-1;const a=vP(t)?[t]:kP(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=uP(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 EP="blur",SP="focusout",xP="change",TP="onBlur",_P="onChange",AP="onSubmit",CP="onTouched",IP="all",NP="max",RP="min",OP="maxLength",PP="minLength",LP="pattern",DP="required",MP="validate",FP=W.createContext(null),BP=()=>W.useContext(FP);var zP=(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]!==IP&&(t._proxyFormState[a]=!r||IP),n&&(n[a]=!0),e[a]}});return a},jP=e=>uP(e)&&!Object.keys(e).length,HP=(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||IP)))},UP=e=>Array.isArray(e)?e:[e],$P=(e,t,n)=>!e||!t||e===t||UP(e).some((e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))));function GP(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 VP=e=>"string"==typeof e,WP=(e,t,n,r,a)=>VP(e)?(r&&t.watch.add(e),yP(n,e,a)):Array.isArray(e)?e.map((e=>(r&&t.watch.add(e),yP(n,e)))):(r&&(t.watchAll=!0),n);function qP(e){const t=BP(),{name:n,disabled:r,control:a=t.control,shouldUnregister:o}=e,i=pP(a._names.array,n),s=function(e){const t=BP(),{control:n=t.control,name:r,defaultValue:a,disabled:o,exact:i}=e||{},s=W.useRef(r);s.current=r,GP({disabled:o,subject:n._subjects.values,next:e=>{$P(s.current,e.name,i)&&c(hP(WP(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:yP(a._formValues,n,yP(a._defaultValues,n,e.defaultValue)),exact:!0}),l=function(e){const t=BP(),{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,GP({disabled:r,next:e=>l.current&&$P(u.current,e.name,o)&&HP(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((()=>zP(i,n,c.current,!1)),[i,n])}({control:a,name:n,exact:!0}),c=W.useRef(a.register(n,{...e.rules,value:s,...bP(e.disabled)?{disabled:e.disabled}:{}})),u=W.useMemo((()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!yP(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!yP(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!yP(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!yP(l.validatingFields,n)},error:{enumerable:!0,get:()=>yP(l.errors,n)}})),[l,n]),d=W.useMemo((()=>({name:n,value:s,...bP(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:e=>c.current.onChange({target:{value:dP(e),name:n},type:xP}),onBlur:()=>c.current.onBlur({target:{value:yP(a._formValues,n),name:n},type:EP}),ref:e=>{const t=yP(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=yP(a._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){const e=hP(yP(a._options.defaultValues,n));wP(a._defaultValues,n,e),gP(yP(a._formValues,n))&&wP(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 YP=e=>e.render(qP(e));var XP=(e,t,n,r,a)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:a||!0}}:{},KP=e=>({isOnSubmit:!e||e===AP,isOnBlur:e===TP,isOnChange:e===_P,isOnAll:e===IP,isOnTouch:e===CP}),QP=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const ZP=(e,t,n,r)=>{for(const a of n||Object.keys(e)){const n=yP(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(ZP(o,t))break}else if(uP(o)&&ZP(o,t))break}}};var JP=(e,t,n)=>{const r=UP(yP(e,n));return wP(r,"root",t[n]),wP(e,n,r),e},eL=e=>"file"===e.type,tL=e=>"function"==typeof e,nL=e=>{if(!fP)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},rL=e=>VP(e),aL=e=>"radio"===e.type,oL=e=>e instanceof RegExp;const iL={value:!1,isValid:!1},sL={value:!0,isValid:!0};var lL=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&&!gP(e[0].attributes.value)?gP(e[0].value)||""===e[0].value?sL:{value:e[0].value,isValid:!0}:sL:iL}return iL};const cL={isValid:!1,value:null};var uL=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),cL):cL;function dL(e,t,n="validate"){if(rL(e)||Array.isArray(e)&&e.every(rL)||bP(e)&&!e)return{type:n,message:rL(e)?e:"",ref:t}}var pL=e=>uP(e)&&!oL(e)?e:{value:e,message:""},fL=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=yP(n,m);if(!y||t.has(m))return{};const v=s?s[0]:i,k=e=>{a&&v.reportValidity&&(v.setCustomValidity(bP(e)?"":e||""),v.reportValidity())},w={},E=aL(i),S=iP(i),x=E||S,T=(g||eL(i))&&gP(i.value)&&gP(b)||nL(i)&&""===i.value||""===b||Array.isArray(b)&&!b.length,_=XP.bind(null,m,r,w),A=(e,t,n,r=OP,a=PP)=>{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&&(!x&&(T||lP(b))||bP(b)&&!b||S&&!lL(s).isValid||E&&!uL(s).isValid)){const{value:e,message:t}=rL(l)?{value:!!l,message:l}:pL(l);if(e&&(w[m]={type:DP,message:t,ref:v,..._(DP,t)},!r))return k(t),w}if(!(T||lP(d)&&lP(p))){let e,t;const n=pL(p),a=pL(d);if(lP(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;VP(n.value)&&b&&(e=s?o(b)>o(n.value):l?b>n.value:r>new Date(n.value)),VP(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);lP(n.value)||(e=r>n.value),lP(a.value)||(t=r<a.value)}if((e||t)&&(A(!!e,n.message,a.message,NP,RP),!r))return k(w[m].message),w}if((c||u)&&!T&&(VP(b)||o&&Array.isArray(b))){const e=pL(c),t=pL(u),n=!lP(e.value)&&b.length>+e.value,a=!lP(t.value)&&b.length<+t.value;if((n||a)&&(A(n,e.message,t.message),!r))return k(w[m].message),w}if(f&&!T&&VP(b)){const{value:e,message:t}=pL(f);if(oL(e)&&!b.match(e)&&(w[m]={type:LP,message:t,ref:i,..._(LP,t)},!r))return k(t),w}if(h)if(tL(h)){const e=dL(await h(b,n),v);if(e&&(w[m]={...e,..._(MP,e.message)},!r))return k(e.message),w}else if(uP(h)){let e={};for(const t in h){if(!jP(e)&&!r)break;const a=dL(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 hL(e,t){const n=Array.isArray(t)?t:vP(t)?[t]:kP(t),r=1===n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=gP(e)?r++:e[t[r++]];return e}(e,n),a=n.length-1,o=n[a];return r&&delete r[o],0!==a&&(uP(r)&&jP(r)||Array.isArray(r)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!gP(e[t]))return!1;return!0}(r))&&hL(e,n.slice(0,-1)),e}var mL=()=>{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=[]}}},gL=e=>lP(e)||!cP(e);function yL(e,t){if(gL(e)||gL(t))return e===t;if(sP(e)&&sP(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(sP(n)&&sP(e)||uP(n)&&uP(e)||Array.isArray(n)&&Array.isArray(e)?!yL(n,e):n!==e)return!1}}return!0}var bL=e=>"select-multiple"===e.type,vL=e=>nL(e)&&e.isConnected,kL=e=>{for(const t in e)if(tL(e[t]))return!0;return!1};function wL(e,t={}){const n=Array.isArray(e);if(uP(e)||n)for(const r in e)Array.isArray(e[r])||uP(e[r])&&!kL(e[r])?(t[r]=Array.isArray(e[r])?[]:{},wL(e[r],t[r])):lP(e[r])||(t[r]=!0);return t}function EL(e,t,n){const r=Array.isArray(e);if(uP(e)||r)for(const a in e)Array.isArray(e[a])||uP(e[a])&&!kL(e[a])?gP(t)||gL(n[a])?n[a]=Array.isArray(e[a])?wL(e[a],[]):{...wL(e[a])}:EL(e[a],lP(t)?{}:t[a],n[a]):n[a]=!yL(e[a],t[a]);return n}var SL=(e,t)=>EL(e,t,wL(t)),xL=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>gP(e)?e:t?""===e?NaN:e?+e:e:n&&VP(e)?new Date(e):r?r(e):e;function TL(e){const t=e.ref;return eL(t)?t.files:aL(t)?uL(e.refs).value:bL(t)?[...t.selectedOptions].map((({value:e})=>e)):iP(t)?lL(e.refs).value:xL(gP(t.value)?e.ref.value:t.value,e)}var _L=e=>gP(e)?e:oL(e)?e.source:uP(e)?oL(e.value)?e.value.source:e.value:e;const AL="AsyncFunction";function CL(e,t,n){const r=yP(e,n);if(r||vP(n))return{error:r,name:n};const a=n.split(".");for(;a.length;){const r=a.join("."),o=yP(t,r),i=yP(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 IL={mode:AP,reValidateMode:_P,shouldFocusError:!0};function NL(e={}){let t,n={...IL,...e},r={submitCount:0,isDirty:!1,isLoading:tL(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},a={},o=(uP(n.defaultValues)||uP(n.values))&&hP(n.defaultValues||n.values)||{},i=n.shouldUnregister?{}:hP(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:mL(),array:mL(),state:mL()},p=KP(n.mode),f=KP(n.reValidateMode),h=n.criteriaMode===IP,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?wP(r.validatingFields,e,t):hL(r.validatingFields,e))})),d.state.next({validatingFields:r.validatingFields,isValidating:!jP(r.validatingFields)}))},y=(e,t,n,r)=>{const l=yP(a,e);if(l){const a=yP(i,e,gP(n)?yP(o,e):n);gP(a)||r&&r.defaultChecked||t?wP(i,e,t?a:TL(l._f)):x(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=!!(yP(a,e)&&yP(a,e)._f&&yP(a,e)._f.disabled);if(!i||s){u.isDirty&&(p=r.isDirty,r.isDirty=f.isDirty=E(),c=p!==f.isDirty);const a=n||yL(yP(o,e),t);p=!(n||!yP(r.dirtyFields,e)),a||n?hL(r.dirtyFields,e):wP(r.dirtyFields,e,!0),f.dirtyFields=r.dirtyFields,c=c||u.dirtyFields&&p!==!a}if(i){const t=yP(r.touchedFields,e);t||(wP(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=yP(r.errors,e),l=u.isValid&&bP(a)&&r.isValid!==a;var p;if(n.delayError&&o?(p=()=>((e,t)=>{wP(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?wP(r.errors,e,o):hL(r.errors,e)),(o?!yL(s,o):s)||!jP(i)||l){const t={...i,...l&&bP(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=yP(t,o);e&&wP(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&&!!(tL(o.validate)&&o.validate.constructor.name===AL||uP(o.validate)&&Object.values(o.validate).find((e=>e.constructor.name===AL))));p&&u.validatingFields&&g([s],!0);const f=await fL(c,l.disabled,i,h,n.shouldUseNativeValidation&&!t,d);if(p&&u.validatingFields&&g([s]),f[e.name]&&(a.valid=!1,t))break;!t&&(yP(f,e.name)?d?JP(r.errors,f,e.name):wP(r.errors,e.name,f[e.name]):hL(r.errors,e.name))}!jP(d)&&await w(d,t,a)}}var o;return a.valid},E=(e,t)=>!n.disabled&&(e&&t&&wP(i,e,t),!yL(N(),o)),S=(e,t,n)=>WP(e,l,{...s.mount?i:gP(t)?o:VP(e)?{[e]:t}:t},n,t),x=(e,t,n={})=>{const r=yP(a,e);let o=t;if(r){const n=r._f;n&&(!n.disabled&&wP(i,e,xL(t,n)),o=nL(n.ref)&&lP(t)?"":t,bL(n.ref)?[...n.ref.options].forEach((e=>e.selected=o.includes(e.value))):n.refs?iP(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)):eL(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)},T=(e,t,n)=>{for(const r in t){const o=t[r],i=`${e}.${r}`,s=yP(a,i);(l.array.has(e)||uP(o)||s&&!s._f)&&!sP(o)?T(i,o,n):x(i,o,n)}},_=(e,t,n={})=>{const c=yP(a,e),p=l.array.has(e),f=hP(t);wP(i,e,f),p?(d.array.next({name:e,values:{...i}}),(u.isDirty||u.dirtyFields)&&n.shouldDirty&&d.state.next({name:e,dirtyFields:SL(o,i),isDirty:E(e,f)})):!c||c._f||lP(f)?x(e,f,n):T(e,f,n),QP(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=yP(a,c),S=e=>{y=Number.isNaN(e)||sP(e)&&isNaN(e.getTime())||yL(e,yP(i,c,e))};if(E){let s,T;const _=o.type?TL(E._f):dP(e),A=e.type===EP||e.type===SP,C=!((x=E._f).mount&&(x.required||x.min||x.max||x.maxLength||x.minLength||x.pattern||x.validate)||n.resolver||yP(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,yP(r.touchedFields,c),r.isSubmitted,f,p),N=QP(c,l,A);wP(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=CL(r.errors,a,c),n=CL(e,a,t.name||c);s=n.error,c=n.name,T=jP(e)}}else g([c],!0),s=(await fL(E,l.disabled,i,h,n.shouldUseNativeValidation))[c],g([c]),S(_),y&&(s?T=!1:u.isValid&&(T=await w(a,!0)));y&&(E._f.deps&&I(E._f.deps),v(c,T,s,R))}var x},C=(e,t)=>{if(yP(r.errors,t)&&e.focus)return e.focus(),1},I=async(e,t={})=>{let o,i;const s=UP(e);if(n.resolver){const t=await(async e=>{const{errors:t}=await k(e);if(e)for(const n of e){const e=yP(t,n);e?wP(r.errors,n,e):hL(r.errors,n)}else r.errors=t;return t})(gP(e)?e:s);o=jP(t),i=e?!s.some((e=>yP(t,e))):o}else e?(i=(await Promise.all(s.map((async e=>{const t=yP(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({...!VP(e)||u.isValid&&o!==r.isValid?{}:{name:e},...n.resolver||!e?{isValid:o}:{},errors:r.errors}),t.shouldFocus&&!i&&ZP(a,C,e?s:l.mount),i},N=e=>{const t={...s.mount?i:o};return gP(e)?t:VP(e)?yP(t,e):e.map((e=>yP(t,e)))},R=(e,t)=>({invalid:!!yP((t||r).errors,e),isDirty:!!yP((t||r).dirtyFields,e),error:yP((t||r).errors,e),isValidating:!!yP(r.validatingFields,e),isTouched:!!yP((t||r).touchedFields,e)}),O=(e,t,n)=>{const o=(yP(a,e,{_f:{}})._f||{}).ref,i=yP(r.errors,e)||{},{ref:s,message:l,type:c,...u}=i;wP(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?UP(e):l.mount)l.mount.delete(s),l.array.delete(s),t.keepValue||(hL(a,s),hL(i,s)),!t.keepError&&hL(r.errors,s),!t.keepDirty&&hL(r.dirtyFields,s),!t.keepTouched&&hL(r.touchedFields,s),!t.keepIsValidating&&hL(r.validatingFields,s),!n.shouldUnregister&&!t.keepDefaultValue&&hL(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})=>{(bP(e)&&s.mount||e||l.disabled.has(t))&&(e?l.disabled.add(t):l.disabled.delete(t),b(t,TL(n?n._f:yP(r,t)._f),!1,!1,!0))},D=(e,t={})=>{let r=yP(a,e);const i=bP(t.disabled)||bP(n.disabled);return wP(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:bP(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:_L(t.min),max:_L(t.max),minLength:_L(t.minLength),maxLength:_L(t.maxLength),pattern:_L(t.pattern)}:{},name:e,onChange:A,onBlur:A,ref:i=>{if(i){D(e,t),r=yP(a,e);const n=gP(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,s=(e=>aL(e)||iP(e))(n),l=r._f.refs||[];if(s?l.find((e=>e===n)):n===r._f.ref)return;wP(a,e,{_f:{...r._f,...s?{refs:[...l.filter(vL),n,...Array.isArray(yP(o,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),y(e,!1,void 0,n)}else r=yP(a,e,{}),r._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!pP(l.array,e)||!s.action)&&l.unMount.add(e)}}},M=()=>n.shouldFocusError&&ZP(a,C,l.mount),F=(e,t)=>async o=>{let s;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let c=hP(i);if(l.disabled.size)for(const e of l.disabled)wP(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(hL(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?hP(e):o,p=hP(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(SL(o,i))]);for(const t of Array.from(e))yP(r.dirtyFields,t)?wP(h,t,yP(i,t)):_(t,yP(h,t))}else{if(fP&&gP(e))for(const e of l.mount){const t=yP(a,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(nL(e)){const t=e.closest("form");if(t){t.reset();break}}}}a={}}i=n.shouldUnregister?t.keepDefaultValues?hP(o):{}:hP(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||yL(e,o))),isSubmitted:!!t.keepIsSubmitted&&r.isSubmitted,dirtyFields:f?{}:t.keepDirtyValues?t.keepDefaultValues&&i?SL(o,i):r.dirtyFields:t.keepDefaultValues&&e?SL(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(tL(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=yP(a,e);t&&(t._f.refs?t._f.refs.every((e=>!vL(e))):!vL(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(yP(a,e))){const t=l(yP(a,e),c.argA,c.argB);p&&wP(a,e,t)}if(f&&Array.isArray(yP(r.errors,e))){const t=l(yP(r.errors,e),c.argA,c.argB);p&&wP(r.errors,e,t),((e,t)=>{!mP(yP(e,t)).length&&hL(e,t)})(r.errors,e)}if(u.touchedFields&&f&&Array.isArray(yP(r.touchedFields,e))){const t=l(yP(r.touchedFields,e),c.argA,c.argB);p&&wP(r.touchedFields,e,t)}u.dirtyFields&&(r.dirtyFields=SL(o,i)),d.state.next({name:e,isDirty:E(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else wP(i,e,t)},_updateDisabledField:L,_getFieldArray:e=>mP(yP(s.mount?i:o,e,n.shouldUnregister?yP(o,e,[]):[])),_reset:B,_resetDefaultValues:()=>tL(n.defaultValues)&&n.defaultValues().then((e=>{z(e,n.resetOptions),d.state.next({isLoading:!1})})),_updateFormState:e=>{r={...r,...e}},_disableForm:e=>{bP(e)&&(d.state.next({disabled:e}),ZP(a,((t,n)=>{const r=yP(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)=>tL(e)?d.values.subscribe({next:n=>e(S(void 0,t),n)}):S(e,t,!0),setValue:_,getValues:N,reset:z,resetField:(e,t={})=>{yP(a,e)&&(gP(t.defaultValue)?_(e,hP(yP(o,e))):(_(e,t.defaultValue),wP(o,e,hP(t.defaultValue))),t.keepTouched||hL(r.touchedFields,e),t.keepDirty||(hL(r.dirtyFields,e),r.isDirty=t.defaultValue?E(e,hP(yP(o,e))):E()),t.keepError||(hL(r.errors,e),u.isValid&&m()),d.state.next({...r}))},clearErrors:e=>{e&&UP(e).forEach((e=>hL(r.errors,e))),d.state.next({errors:e?r.errors:{}})},unregister:P,setError:O,setFocus:(e,t={})=>{const n=yP(a,e),r=n&&n._f;if(r){const e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&tL(e.select)&&e.select())}},getFieldState:R}}const RL={text:"",email:"",checkbox:!1,textarea:"",file:void 0,select:""};const OL=new TextEncoder;async function PL(e,t){return n=await async function(e,t){return crypto.subtle.digest(e.toUpperCase(),"string"==typeof t?OL.encode(t):new Uint8Array(t))}(e,t),[...new Uint8Array(n)].map((e=>e.toString(16).padStart(2,"0"))).join("");var n}const LL=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 PL(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 DL(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 ML(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function FL(...e){return t=>{let n=!1;const r=e.map((e=>{const r=ML(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():ML(e[t],null)}}}}function BL(...e){return V.useCallback(FL(...e),e)}function zL(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 Hf.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 HL=V.forwardRef(((e,t)=>{const{children:n,...r}=e,a=V.Children.toArray(n),o=a.find(GL);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 Hf.jsx(UL,{...r,ref:t,children:V.isValidElement(e)?V.cloneElement(e,void 0,n):null})}return Hf.jsx(UL,{...r,ref:t,children:n})}));HL.displayName="Slot";var UL=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,{...VL(r,n.props),ref:t?FL(t,e):e})}return V.Children.count(n)>1?V.Children.only(null):null}));UL.displayName="SlotClone";var $L=({children:e})=>Hf.jsx(Hf.Fragment,{children:e});function GL(e){return V.isValidElement(e)&&e.type===$L}function VL(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 WL=["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?HL:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),Hf.jsx(o,{...a,ref:n})}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function qL(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 YL,XL="dismissableLayer.update",KL="dismissableLayer.pointerDownOutside",QL="dismissableLayer.focusOutside",ZL=V.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),JL=V.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:i,onDismiss:s,...l}=e,c=V.useContext(ZL),[u,d]=V.useState(null),p=(null==u?void 0:u.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,f]=V.useState({}),h=BL(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=qL(e),r=V.useRef(!1),a=V.useRef((()=>{}));return V.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){tD(KL,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=qL(e),r=V.useRef(!1);return V.useEffect((()=>{const e=e=>{if(e.target&&!r.current){tD(QL,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=qL(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&&(YL=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),eD(),()=>{n&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=YL)}}),[u,p,n,c]),V.useEffect((()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),eD())}),[u,c]),V.useEffect((()=>{const e=()=>f({});return document.addEventListener(XL,e),()=>document.removeEventListener(XL,e)}),[]),Hf.jsx(WL.div,{...l,ref:h,style:{pointerEvents:v?k?"auto":"none":void 0,...e.style},onFocusCapture:DL(e.onFocusCapture,E.onFocusCapture),onBlurCapture:DL(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:DL(e.onPointerDownCapture,w.onPointerDownCapture)})}));JL.displayName="DismissableLayer";function eD(){const e=new CustomEvent(XL);document.dispatchEvent(e)}function tD(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(ZL),r=V.useRef(null),a=BL(t,r);return V.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),Hf.jsx(WL.div,{...e,ref:a})})).displayName="DismissableLayerBranch";const nD=["top","right","bottom","left"],rD=Math.min,aD=Math.max,oD=Math.round,iD=Math.floor,sD=e=>({x:e,y:e}),lD={left:"right",right:"left",bottom:"top",top:"bottom"},cD={start:"end",end:"start"};function uD(e,t,n){return aD(e,rD(t,n))}function dD(e,t){return"function"==typeof e?e(t):e}function pD(e){return e.split("-")[0]}function fD(e){return e.split("-")[1]}function hD(e){return"x"===e?"y":"x"}function mD(e){return"y"===e?"height":"width"}function gD(e){return["top","bottom"].includes(pD(e))?"y":"x"}function yD(e){return hD(gD(e))}function bD(e){return e.replace(/start|end/g,(e=>cD[e]))}function vD(e){return e.replace(/left|right|bottom|top/g,(e=>lD[e]))}function kD(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 wD(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 ED(e,t,n){let{reference:r,floating:a}=e;const o=gD(t),i=yD(t),s=mD(i),l=pD(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(fD(t)){case"start":f[i]-=p*(n&&c?-1:1);break;case"end":f[i]+=p*(n&&c?-1:1)}return f}async function SD(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}=dD(t,e),h=kD(f),m=s[p?"floating"===d?"reference":"floating":d],g=wD(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=wD(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 TD(e){return nD.some((t=>e[t]>=0))}function _D(){return"undefined"!=typeof window}function AD(e){return ND(e)?(e.nodeName||"").toLowerCase():"#document"}function CD(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ID(e){var t;return null==(t=(ND(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ND(e){return!!_D()&&(e instanceof Node||e instanceof CD(e).Node)}function RD(e){return!!_D()&&(e instanceof Element||e instanceof CD(e).Element)}function OD(e){return!!_D()&&(e instanceof HTMLElement||e instanceof CD(e).HTMLElement)}function PD(e){return!(!_D()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof CD(e).ShadowRoot)}function LD(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 DD(e){return["table","td","th"].includes(AD(e))}function MD(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(sJ){return!1}}))}function FD(e){const t=BD(),n=RD(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 BD(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function zD(e){return["html","body","#document"].includes(AD(e))}function jD(e){return CD(e).getComputedStyle(e)}function HD(e){return RD(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function UD(e){if("html"===AD(e))return e;const t=e.assignedSlot||e.parentNode||PD(e)&&e.host||ID(e);return PD(t)?t.host:t}function $D(e){const t=UD(e);return zD(t)?e.ownerDocument?e.ownerDocument.body:e.body:OD(t)&&LD(t)?t:$D(t)}function GD(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=$D(e),o=a===(null==(r=e.ownerDocument)?void 0:r.body),i=CD(a);if(o){const e=VD(i);return t.concat(i,i.visualViewport||[],LD(a)?a:[],e&&n?GD(e):[])}return t.concat(a,GD(a,[],n))}function VD(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function WD(e){const t=jD(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=OD(e),o=a?e.offsetWidth:n,i=a?e.offsetHeight:r,s=oD(n)!==o||oD(r)!==i;return s&&(n=o,r=i),{width:n,height:r,$:s}}function qD(e){return RD(e)?e:e.contextElement}function YD(e){const t=qD(e);if(!OD(t))return sD(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=WD(t);let i=(o?oD(n.width):n.width)/r,s=(o?oD(n.height):n.height)/a;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const XD=sD(0);function KD(e){const t=CD(e);return BD()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:XD}function QD(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),o=qD(e);let i=sD(1);t&&(r?RD(r)&&(i=YD(r)):i=YD(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==CD(e))&&t}(o,n,r)?KD(o):sD(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=CD(o),t=r&&RD(r)?CD(r):r;let n=e,a=VD(n);for(;a&&r&&t!==n;){const e=YD(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=CD(a),a=VD(n)}}return wD({width:u,height:d,x:l,y:c})}function ZD(e,t){const n=HD(e).scrollLeft;return t?t.left+n:QD(ID(e)).left+n}function JD(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:ZD(e,r)),y:r.top+t.scrollTop}}function eM(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=CD(e),r=ID(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=BD();(!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=ID(e),n=HD(e),r=e.ownerDocument.body,a=aD(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=aD(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+ZD(e);const s=-n.scrollTop;return"rtl"===jD(r).direction&&(i+=aD(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:i,y:s}}(ID(e));else if(RD(t))r=function(e,t){const n=QD(e,!0,"fixed"===t),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=OD(e)?YD(e):sD(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=KD(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return wD(r)}function tM(e,t){const n=UD(e);return!(n===t||!RD(n)||zD(n))&&("fixed"===jD(n).position||tM(n,t))}function nM(e,t,n){const r=OD(t),a=ID(t),o="fixed"===n,i=QD(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=sD(0);if(r||!r&&!o)if(("body"!==AD(t)||LD(a))&&(s=HD(t)),r){const e=QD(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else a&&(l.x=ZD(a));const c=!a||r||o?sD(0):JD(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 rM(e){return"static"===jD(e).position}function aM(e,t){if(!OD(e)||"fixed"===jD(e).position)return null;if(t)return t(e);let n=e.offsetParent;return ID(e)===n&&(n=n.ownerDocument.body),n}function oM(e,t){const n=CD(e);if(MD(e))return n;if(!OD(e)){let t=UD(e);for(;t&&!zD(t);){if(RD(t)&&!rM(t))return t;t=UD(t)}return n}let r=aM(e,t);for(;r&&DD(r)&&rM(r);)r=aM(r,t);return r&&zD(r)&&rM(r)&&!FD(r)?n:r||function(e){let t=UD(e);for(;OD(t)&&!zD(t);){if(FD(t))return t;if(MD(t))return null;t=UD(t)}return null}(e)||n}const iM={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o="fixed"===a,i=ID(r),s=!!t&&MD(t.floating);if(r===i||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=sD(1);const u=sD(0),d=OD(r);if((d||!d&&!o)&&(("body"!==AD(r)||LD(i))&&(l=HD(r)),OD(r))){const e=QD(r);c=YD(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const p=!i||d||o?sD(0):JD(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:ID,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[..."clippingAncestors"===n?MD(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=GD(e,[],!1).filter((e=>RD(e)&&"body"!==AD(e))),a=null;const o="fixed"===jD(e).position;let i=o?UD(e):e;for(;RD(i)&&!zD(i);){const t=jD(i),n=FD(i);n||"fixed"!==t.position||(a=null),(o?!n&&!a:!n&&"static"===t.position&&a&&["absolute","fixed"].includes(a.position)||LD(i)&&!n&&tM(e,i))?r=r.filter((e=>e!==i)):a=t,i=UD(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=o[0],s=o.reduce(((e,n)=>{const r=eM(t,n,a);return e.top=aD(r.top,e.top),e.right=rD(r.right,e.right),e.bottom=rD(r.bottom,e.bottom),e.left=aD(r.left,e.left),e}),eM(t,i,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:oM,getElementRects:async function(e){const t=this.getOffsetParent||oM,n=this.getDimensions,r=await n(e.floating);return{reference:nM(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}=WD(e);return{width:t,height:n}},getScale:YD,isElement:RD,isRTL:function(e){return"rtl"===jD(e).direction}};function sM(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function lM(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=qD(e),u=a||o?[...c?GD(c):[],...GD(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=ID(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:-iD(d)+"px "+-iD(a.clientWidth-(u+p))+"px "+-iD(a.clientHeight-(d+f))+"px "+-iD(u)+"px",threshold:aD(0,rD(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||sM(c,e.getBoundingClientRect())||i(),m=!1}try{r=new IntersectionObserver(g,{...h,root:a.ownerDocument})}catch(sJ){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?QD(e):null;return l&&function t(){const r=QD(e);m&&!sM(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 cM=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=pD(n),s=fD(n),l="y"===gD(n),c=["left","top"].includes(i)?-1:1,u=o&&l?-1:1,d=dD(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}}}}},uM=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}=dD(e,t),c={x:n,y:r},u=await SD(t,l),d=gD(pD(a)),p=hD(d);let f=c[p],h=c[d];if(o){const e="y"===p?"bottom":"right";f=uD(f+u["y"===p?"top":"left"],f,f-u[e])}if(i){const e="y"===d?"bottom":"right";h=uD(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}}}}}},dM=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}=dD(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const y=pD(a),b=gD(s),v=pD(s)===s,k=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(v||!m?[vD(s)]:function(e){const t=vD(e);return[bD(e),t,bD(t)]}(s)),E="none"!==h;!p&&E&&w.push(...function(e,t,n,r){const a=fD(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[]}}(pD(e),"start"===n,r);return a&&(o=o.map((e=>e+"-"+a)),t&&(o=o.concat(o.map(bD)))),o}(s,m,h,k));const S=[s,...w],x=await SD(t,g),T=[];let _=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&T.push(x[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=fD(e),a=yD(e),o=mD(a);let i="x"===a?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=vD(i)),[i,vD(i)]}(a,i,k);T.push(x[e[0]],x[e[1]])}if(_=[..._,{placement:a,overflows:T}],!T.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=gD(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{}}}},pM=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}=dD(e,t),u=await SD(t,c),d=pD(a),p=fD(a),f="y"===gD(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=rD(m-u[g],b),w=rD(h-u[y],v),E=!t.middlewareData.shift;let S=k,x=w;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(x=v),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=b),E&&!p){const e=aD(u.left,0),t=aD(u.right,0),n=aD(u.top,0),r=aD(u.bottom,0);f?x=h-2*(0!==e||0!==t?e+t:aD(u.left,u.right)):S=m-2*(0!==n||0!==r?n+r:aD(u.top,u.bottom))}await l({...t,availableWidth:x,availableHeight:S});const T=await i.getDimensions(s.floating);return h!==T.width||m!==T.height?{reset:{rects:!0}}:{}}}},fM=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=dD(e,t);switch(r){case"referenceHidden":{const e=xD(await SD(t,{...a,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:TD(e)}}}case"escaped":{const e=xD(await SD(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:TD(e)}}}default:return{}}}}},hM=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}=dD(e,t)||{};if(null==c)return{};const d=kD(u),p={x:n,y:r},f=yD(a),h=mD(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 x=k/2-w/2,T=S/2-m[h]/2-1,_=rD(d[y],T),A=rD(d[b],T),C=_,I=S-m[h]-A,N=S/2-m[h]/2+x,R=uD(C,N,I),O=!l.arrow&&null!=fD(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}}}),mM=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}=dD(e,t),u={x:n,y:r},d=gD(a),p=hD(d);let f=u[p],h=u[d];const m=dD(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(pD(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}}}},gM=(e,t,n)=>{const r=new Map,a={platform:iM,...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}=ED(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}=ED(c,p,l))),m=-1)}return{x:u,y:d,placement:p,strategy:a,middlewareData:f}})(e,t,{...a,platform:o})};var yM="undefined"!=typeof document?V.useLayoutEffect:V.useEffect;function bM(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(!bM(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)&&!bM(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function vM(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function kM(e,t){const n=vM(e);return Math.round(t*n)/n}function wM(e){const t=V.useRef(e);return yM((()=>{t.current=e})),t}const EM=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?hM({element:n.current,padding:r}).fn(t):{}:n?hM({element:n,padding:r}).fn(t):{};var a}}),SM=(e,t)=>({...uM(e),options:[e,t]}),xM=(e,t)=>({...mM(e),options:[e,t]}),TM=(e,t)=>({...dM(e),options:[e,t]}),_M=(e,t)=>({...pM(e),options:[e,t]}),AM=(e,t)=>({...fM(e),options:[e,t]}),CM=(e,t)=>({...EM(e),options:[e,t]});var IM=V.forwardRef(((e,t)=>{const{children:n,width:r=10,height:a=5,...o}=e;return Hf.jsx(WL.svg,{...o,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:Hf.jsx("polygon",{points:"0,0 30,0 15,10"})})}));IM.displayName="Arrow";var NM=IM;function RM(e){const[t,n]=V.useState(void 0);return TO((()=>{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 OM="Popper",[PM,LM]=zL(OM),[DM,MM]=PM(OM),FM=e=>{const{__scopePopper:t,children:n}=e,[r,a]=V.useState(null);return Hf.jsx(DM,{scope:t,anchor:r,onAnchorChange:a,children:n})};FM.displayName=OM;var BM="PopperAnchor",zM=V.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,o=MM(BM,n),i=V.useRef(null),s=BL(t,i);return V.useEffect((()=>{o.onAnchorChange((null==r?void 0:r.current)||i.current)})),r?null:Hf.jsx(WL.div,{...a,ref:s})}));zM.displayName=BM;var jM="PopperContent",[HM,UM]=PM(jM),$M=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=MM(jM,l),[S,x]=V.useState(null),T=BL(t,(e=>x(e))),[_,A]=V.useState(null),C=RM(_),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(qM),altBoundary:L},{refs:M,floatingStyles:F,placement:B,isPositioned:z,middlewareData:j}=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);bM(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),x=V.useRef(u),T=null!=l,_=wM(l),A=wM(a),C=wM(c),I=V.useCallback((()=>{if(!E.current||!S.current)return;const e={placement:t,strategy:n,middleware:p};A.current&&(e.platform=A.current),gM(E.current,S.current,e).then((e=>{const t={...e,isPositioned:!1!==C.current};N.current&&!bM(x.current,t)&&(x.current=t,re.flushSync((()=>{d(t)})))}))}),[p,t,n,A,C]);yM((()=>{!1===c&&x.current.isPositioned&&(x.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const N=V.useRef(!1);yM((()=>(N.current=!0,()=>{N.current=!1})),[]),yM((()=>{if(k&&(E.current=k),w&&(S.current=w),k&&w){if(_.current)return _.current(k,w,I);I()}}),[k,w,I,_,T]);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=kM(O.floating,u.x),r=kM(O.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...vM(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)=>lM(...e,{animationFrame:"always"===v}),elements:{reference:E.anchor},middleware:[(H={mainAxis:u+N,alignmentAxis:p},{...cM(H),options:[H,U]}),h&&SM({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?xM():void 0,...D}),h&&TM({...D}),_M({...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`)}}),_&&CM({element:_,padding:f}),YM({arrowWidth:I,arrowHeight:N}),b&&AM({strategy:"referenceHidden",...D})]});var H,U;const[$,G]=XM(B),W=qL(k);TO((()=>{z&&(null==W||W())}),[z,W]);const q=null==(n=j.arrow)?void 0:n.x,Y=null==(r=j.arrow)?void 0:r.y,X=0!==(null==(a=j.arrow)?void 0:a.centerOffset),[K,Q]=V.useState();return TO((()=>{S&&Q(window.getComputedStyle(S).zIndex)}),[S]),Hf.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=j.transformOrigin)?void 0:o.x,null==(i=j.transformOrigin)?void 0:i.y].join(" "),...(null==(s=j.hide)?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:Hf.jsx(HM,{scope:l,placedSide:$,onArrowChange:A,arrowX:q,arrowY:Y,shouldHideArrow:X,children:Hf.jsx(WL.div,{"data-side":$,"data-align":G,...w,ref:T,style:{...w.style,animation:z?void 0:"none"}})})})}));$M.displayName=jM;var GM="PopperArrow",VM={top:"bottom",right:"left",bottom:"top",left:"right"},WM=V.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,a=UM(GM,n),o=VM[a.placedSide];return Hf.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:Hf.jsx(NM,{...r,ref:t,style:{...r.style,display:"block"}})})}));function qM(e){return null!==e}WM.displayName=GM;var YM=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]=XM(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 XM(e){const[t,n="center"]=e.split("-");return[t,n]}var KM=FM,QM=zM,ZM=$M,JM=WM;var eF=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=tF(r.current);o.current="mounted"===s?e:"none"}),[s]),TO((()=>{const t=r.current,n=a.current;if(n!==e){const r=o.current,i=tF(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]),TO((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,i=o=>{const i=tF(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=tF(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=BL(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 tF(e){return(null==e?void 0:e.animationName)||"none"}function nF({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=qL(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=qL(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])]}eF.displayName="Presence";var rF=V.forwardRef(((e,t)=>Hf.jsx(WL.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}})));rF.displayName="VisuallyHidden";const aF=V.createContext(void 0),oF=({children:e,componentStyles:t})=>Hf.jsx(aF.Provider,{value:{componentStyles:t},children:e}),iF=["light","dark"],sF="(prefers-color-scheme: dark)",lF="undefined"==typeof window,cF=V.createContext(void 0),uF={setColorMode:e=>{},colorModes:[]};function dF(e,t){const n=V.useContext(cF)??uF;return"dark"===(n.forcedColorMode??n.resolvedColorMode)?t:e}const pF=e=>(V.useContext(cF),Hf.jsx(hF,{...e})),fF=["light","dark"],hF=({forcedColorMode:e,disableTransitionOnChange:t=!1,enableSystem:n=!1,enableColorScheme:r=!0,storageKey:a="inkeep-colorMode",colorModes:o=fF,defaultColorMode:i=(n?"system":"light"),attribute:s="data-theme",value:l,children:c,nonce:u,shadowHostId:d,rootId:p})=>{const[f,h]=V.useState((()=>gF(a,i))),[m,g]=V.useState((()=>gF(a))),y=l?Object.values(l):o,b=V.useCallback((e=>{var a;let o=e;if(!o)return;"system"===e&&n&&(o=bF());const c=l?l[o]:o,u=t?yF():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=iF.includes(i)?i:null,t=iF.includes(o)?o:e;h.style.colorScheme=t}null==u||u()}),[]),v=V.useCallback((e=>{h(e);try{localStorage.setItem(a,e)}catch(sJ){}}),[e]),k=V.useCallback((t=>{const r=bF(t);g(r),"system"===f&&n&&!e&&b("system")}),[f,e]);V.useEffect((()=>{const e=window.matchMedia(sF);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 Hf.jsxs(cF.Provider,{value:w,children:[Hf.jsx(mF,{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]})},mF=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(iF.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&&iF.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='${sF}',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 Hf.jsx("script",{nonce:l,dangerouslySetInnerHTML:{__html:m}})}),(()=>!0)),gF=(e,t)=>{if(lF)return;let n;try{n=localStorage.getItem(e)||void 0}catch(sJ){}return n||t},yF=()=>{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)}},bF=e=>{e||(e=window.matchMedia(sF));return e.matches?"dark":"light"};var vF=Object.prototype.hasOwnProperty;function kF(e,t,n){for(n of e.keys())if(wF(n,t))return n}function wF(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--&&wF(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=kF(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=kF(t,a)))return!1;if(!wF(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(vF.call(e,n)&&++r&&!vF.call(t,n))return!1;if(!(n in t)||!wF(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!=e&&t!=t}function EF(){const{baseSettings:e}=FO(),[t,n]=V.useState([]),r=function(e){const t=V.useRef(void 0);wF(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=>Hf.jsx("style",{type:"text/css",dangerouslySetInnerHTML:{__html:e.value}},e.key??$f("link_")))),o=e.map((e=>{const t=e.key??$f("stylesheet_");return Hf.jsx("link",{id:t,rel:"stylesheet",type:"text/css",href:e.value,onLoad:()=>{n((t=>[...new Set([...t,e.value])]))}},t)}));return{customStyles:Hf.jsxs(Hf.Fragment,{children:[o,a]}),linksCount:e.length}}),[r]);return{customStyles:a,loaded:t.length>=(o??0)}}const SF=({children:e})=>{const{baseSettings:t}=FO(),{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}=EF(),{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]),Hf.jsxs(Hf.Fragment,{children:[h,m&&Hf.jsx(pF,{forcedColorMode:y??v,...b,shadowHostId:null==a?void 0:a.id,rootId:null==o?void 0:o.id,children:Hf.jsx("div",{className:l,style:{display:"contents",...f},children:e})})]})};function xF(e){const{children:t,config:n,componentType:r}=e;return Hf.jsx(MO,{value:{...n,componentType:r},children:Hf.jsx(SF,{children:Hf.jsx(YO,{children:t})})})}const TF=V.createContext(void 0),_F=({children:e,source:t})=>Hf.jsx(TF.Provider,{value:{source:t},children:e}),AF=()=>{const e=V.useContext(TF);if(!e)throw new Error("useSourceItem must be used within a SourceItemProvider");return e};function CF(e,t){var n;const{prefix:r}=FO(),a=V.useContext(aF),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}-${rP(e)}`].filter(Boolean).join(" ")}function IF(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function NF(...e){return t=>{let n=!1;const r=e.map((e=>{const r=IF(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():IF(e[t],null)}}}}function RF(...e){return V.useCallback(NF(...e),e)}const OF=(...e)=>e.map((e=>{var t;return null==(t=null==e?void 0:e.trim)?void 0:t.call(e)})).filter(Boolean).join(" "),PF=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,LF=e=>{const t={};let n;for(;n=PF.exec(e);)t[n[1]]=n[2];return t},DF=(e,t)=>{if(nP(e)){if(nP(t))return`${e};${t}`;e=LF(e)}else nP(t)&&(t=LF(t));return Object.assign({},e??{},t??{})};function MF(...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]=tP(n[e],t[e]):t[e]="className"!==e&&"class"!==e?"style"!==e?void 0!==n[e]?n[e]:t[e]:DF(t[e],n[e]):OF(t[e],n[e]);for(let e in n)void 0===t[e]&&(t[e]=n[e])}return t}const FF=(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=MF(s,u,{className:CF(a,o),"data-part":rP(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,{...MF(p,f.props),ref:r?NF(r,h):h})})));return n.displayName=e.displayName||e.name,n},BF=new Proxy(FF,{apply(e,t,n){const r=n[0],a=n[1];return FF(r,a)}});function zF(){return zF=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},zF.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 HF=V.useLayoutEffect,UF=function(e,t){"function"!=typeof e?e.current=t:e(t)},$F={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},GF=function(e){Object.keys($F).forEach((function(t){e.style.setProperty(t,$F[t],"important")}))},VF=null,WF=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize};var qF=function(){},YF=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],XF=!!document.documentElement.currentStyle,KF=function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n,r=(n=t,YF.reduce((function(e,t){return e[t]=n[t],e}),{})),a=r.boxSizing;return""===a?null:(XF&&"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 QF(e,t,n){var r,a,o=(r=n,a=W.useRef(r),HF((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 ZF=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],JF=function(e,t){var n=e.cacheMeasurements,r=e.maxRows,a=e.minRows,o=e.onChange,i=void 0===o?qF:o,s=e.onHeightChange,l=void 0===s?qF:s,c=jF(e,ZF),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&&UF(n.current,null),n.current=t,t&&UF(t,r)}),[t])}(d,t),f=V.useRef(0),h=V.useRef(),m=function(){var e=d.current,t=n&&h.current?h.current:KF(e);if(t){h.current=t;var o=function(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=1/0),VF||((VF=document.createElement("textarea")).setAttribute("tabindex","-1"),VF.setAttribute("aria-hidden","true"),GF(VF)),null===VF.parentNode&&document.body.appendChild(VF);var a=e.paddingSize,o=e.borderSize,i=e.sizingStyle,s=i.boxSizing;Object.keys(i).forEach((function(e){var t=e;VF.style[t]=i[t]})),GF(VF),VF.value=t;var l=WF(VF,e);VF.value=t,l=WF(VF,e),VF.value="x";var c=VF.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){QF(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()}))}})),QF(window,"resize",m),function(e){QF(document.fonts,"loadingdone",e)}(m),V.createElement("textarea",zF({},c,{onChange:function(e){u||m(),i(e)},ref:p}))},eB=V.forwardRef(JF);function tB(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 nB="Checkbox",[rB,aB]=zL(nB),[oB,iB]=rB(nB),sB=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=BL(t,(e=>f(e))),m=V.useRef(!1),g=!p||(u||!!p.closest("form")),[y=!1,b]=nF({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]),Hf.jsxs(oB,{scope:n,state:y,disabled:s,children:[Hf.jsx(WL.button,{type:"button",role:"checkbox","aria-checked":dB(y)?"mixed":y,"aria-required":i,"data-state":pB(y),"data-disabled":s?"":void 0,disabled:s,value:l,...d,ref:h,onKeyDown:DL(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:DL(e.onClick,(e=>{b((e=>!!dB(e)||!e)),g&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())}))}),g&&Hf.jsx(uB,{control:p,bubbles:!m.current,name:r,value:l,checked:y,required:i,disabled:s,form:u,style:{transform:"translateX(-100%)"},defaultChecked:!dB(o)&&o})]})}));sB.displayName=nB;var lB="CheckboxIndicator",cB=V.forwardRef(((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...a}=e,o=iB(lB,n);return Hf.jsx(eF,{present:r||dB(o.state)||!0===o.state,children:Hf.jsx(WL.span,{"data-state":pB(o.state),"data-disabled":o.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})}));cB.displayName=lB;var uB=e=>{const{control:t,checked:n,bubbles:r=!0,defaultChecked:a,...o}=e,i=V.useRef(null),s=tB(n),l=RM(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=dB(n),a.call(e,!dB(n)&&n),e.dispatchEvent(t)}}),[s,n,r]);const c=V.useRef(!dB(n)&&n);return Hf.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 dB(e){return"indeterminate"===e}function pB(e){return dB(e)?"indeterminate":e?"checked":"unchecked"}var fB=sB,hB=cB,mB=0;function gB(){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 yB="focusScope.autoFocusOnMount",bB="focusScope.autoFocusOnUnmount",vB={bubbles:!1,cancelable:!0},kB=V.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...i}=e,[s,l]=V.useState(null),c=qL(a),u=qL(o),d=V.useRef(null),p=BL(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){TB.add(f);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(yB,vB);s.addEventListener(yB,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=wB(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&xB(s))}return()=>{s.removeEventListener(yB,c),setTimeout((()=>{const e=new CustomEvent(bB,vB);s.addEventListener(bB,u),s.dispatchEvent(e),e.defaultPrevented||xB(t??document.body,{select:!0}),s.removeEventListener(bB,u),TB.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=wB(e),n=EB(t,e),r=EB(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 Hf.jsx(WL.div,{tabIndex:-1,...i,ref:p,onKeyDown:h})}));function wB(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 EB(e,t){for(const n of e)if(!SB(n,{upTo:t}))return n}function SB(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()}}kB.displayName="FocusScope";var TB=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=_B(e,t),e.unshift(t)},remove(t){var n;e=_B(e,t),null==(n=e[0])||n.resume()}}}();function _B(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var AB=new WeakMap,CB=new WeakMap,IB={},NB=0,RB=function(e){return e&&(e.host||RB(e.parentNode))},OB=function(e,t,n,r){var a=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=RB(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]);IB[n]||(IB[n]=new WeakMap);var o=IB[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=(AB.get(e)||0)+1,c=(o.get(e)||0)+1;AB.set(e,l),o.set(e,c),i.push(e),1===l&&a&&CB.set(e,!0),1===c&&e.setAttribute(n,"true"),a||e.setAttribute(r,"true")}catch(sJ){console.error("aria-hidden: cannot operate on ",e,sJ)}}))};return u(t),s.clear(),NB++,function(){i.forEach((function(e){var t=AB.get(e)-1,a=o.get(e)-1;AB.set(e,t),o.set(e,a),t||(CB.has(e)||e.removeAttribute(r),CB.delete(e)),a||e.removeAttribute(n)})),--NB||(AB=new WeakMap,AB=new WeakMap,CB=new WeakMap,IB={})}},PB=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]"))),OB(r,a,n,"aria-hidden")):function(){return null}},LB=function(){return LB=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},LB.apply(this,arguments)};function DB(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 MB(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 FB="right-scroll-bar-position",BB="width-before-scroll-bar";function zB(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var jB="undefined"!=typeof window?V.useLayoutEffect:V.useEffect,HB=new WeakMap;function UB(e,t){var n,r,a,o=(n=null,r=function(t){return e.forEach((function(e){return zB(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=HB.get(o);if(t){var n=new Set(t),r=new Set(e),a=o.current;n.forEach((function(e){r.has(e)||zB(e,null)})),r.forEach((function(e){n.has(e)||zB(e,a)}))}HB.set(o,e)}),[e]),o}function $B(e){return e}var GB=function(e){var t=e.sideCar,n=DB(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,LB({},n))};GB.isSideCarExport=!0;var VB=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=$B);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=LB({async:!0,ssr:!1},e),t}(),WB=function(){},qB=V.forwardRef((function(e,t){var n=V.useRef(null),r=V.useState({onScrollCapture:WB,onWheelCapture:WB,onTouchMoveCapture:WB}),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=DB(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=p,w=UB([n,t]),E=LB(LB({},v),a);return V.createElement(V.Fragment,null,u&&V.createElement(k,{sideCar:VB,removeScrollBar:c,shards:d,noIsolation:f,inert:h,setCallbacks:o,allowPinchZoom:!!m,lockRef:n,gapMode:b}),i?V.cloneElement(V.Children.only(s),LB(LB({},E),{ref:w})):V.createElement(y,LB({},E,{className:l,ref:w}),s))}));qB.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},qB.classNames={fullWidth:BB,zeroRight:FB};function YB(){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 XB=function(){var e=0,t=null;return{add:function(n){var r,a;0==e&&(t=YB())&&(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)}}},KB=function(){var e,t=(e=XB(),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}},QB={left:0,top:0,right:0,gap:0},ZB=function(e){return parseInt(e||"",10)||0},JB=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return QB;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[ZB(n),ZB(r),ZB(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])}},ez=KB(),tz="data-scroll-locked",nz=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(tz,"] {\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(FB," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(BB," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(FB," .").concat(FB," {\n right: 0 ").concat(r,";\n }\n \n .").concat(BB," .").concat(BB," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(tz,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},rz=function(){var e=parseInt(document.body.getAttribute(tz)||"0",10);return isFinite(e)?e:0},az=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(tz,(rz()+1).toString()),function(){var e=rz()-1;e<=0?document.body.removeAttribute(tz):document.body.setAttribute(tz,e.toString())}}),[]);var o=V.useMemo((function(){return JB(a)}),[a]);return V.createElement(ez,{styles:nz(o,!t,a,n?"":"!important")})},oz=!1;if("undefined"!=typeof window)try{var iz=Object.defineProperty({},"passive",{get:function(){return oz=!0,!0}});window.addEventListener("test",iz,iz),window.removeEventListener("test",iz,iz)}catch(e4){oz=!1}var sz=!!oz&&{passive:!1},lz=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])},cz=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),uz(e,r)){var a=dz(e,r);if(a[1]>a[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},uz=function(e,t){return"v"===e?function(e){return lz(e,"overflowY")}(t):function(e){return lz(e,"overflowX")}(t)},dz=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},pz=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},fz=function(e){return[e.deltaX,e.deltaY]},hz=function(e){return e&&"current"in e?e.current:e},mz=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},gz=0,yz=[];function bz(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const vz=(kz=function(e){var t=V.useRef([]),n=V.useRef([0,0]),r=V.useRef(),a=V.useState(gz++)[0],o=V.useState(KB)[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=MB([e.lockRef.current],(e.shards||[]).map(hz),!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=pz(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=cz(d,u);if(!p)return!0;if(p?a=d:(a="v"===d?"h":"v",p=cz(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=dz(e,i),f=p[0],h=p[1]-p[2]-a*f;(f||h)&&uz(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(yz.length&&yz[yz.length-1]===o){var r="deltaY"in n?fz(n):pz(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(hz).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:bz(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=pz(e),r.current=void 0}),[]),d=V.useCallback((function(t){c(t.type,fz(t),t.target,s(t,e.lockRef.current))}),[]),p=V.useCallback((function(t){c(t.type,pz(t),t.target,s(t,e.lockRef.current))}),[]);V.useEffect((function(){return yz.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,sz),document.addEventListener("touchmove",l,sz),document.addEventListener("touchstart",u,sz),function(){yz=yz.filter((function(e){return e!==o})),document.removeEventListener("wheel",l,sz),document.removeEventListener("touchmove",l,sz),document.removeEventListener("touchstart",u,sz)}}),[]);var f=e.removeScrollBar,h=e.inert;return V.createElement(V.Fragment,null,h?V.createElement(o,{styles:mz(a)}):null,f?V.createElement(az,{gapMode:e.gapMode}):null)},VB.useMedium(kz),GB);var kz,wz=V.forwardRef((function(e,t){return V.createElement(qB,LB({},e,{ref:t,sideCar:vz}))}));wz.classNames=qB.classNames;var Ez=V.createContext(void 0);function Sz(e){const t=V.useContext(Ez);return e||t||"ltr"}function xz(e,[t,n]){return Math.min(n,Math.max(t,e))}var Tz="ScrollArea",[_z,Az]=zL(Tz),[Cz,Iz]=_z(Tz),Nz=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,x]=V.useState(!1),T=BL(t,(e=>l(e))),_=Sz(a);return Hf.jsx(Cz,{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:x,onCornerWidthChange:b,onCornerHeightChange:k,children:Hf.jsx(WL.div,{dir:_,...i,ref:T,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":v+"px",...e.style}})})}));Nz.displayName=Tz;var Rz="ScrollAreaViewport",Oz=V.forwardRef(((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:a,...o}=e,i=Iz(Rz,n),s=BL(t,V.useRef(null),i.onViewportChange);return Hf.jsxs(Hf.Fragment,{children:[Hf.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}),Hf.jsx(WL.div,{"data-radix-scroll-area-viewport":"",...o,ref:s,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:Hf.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})}));Oz.displayName=Rz;var Pz="ScrollAreaScrollbar",Lz=V.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,a=Iz(Pz,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?Hf.jsx(Dz,{...r,ref:t,forceMount:n}):"scroll"===a.type?Hf.jsx(Mz,{...r,ref:t,forceMount:n}):"auto"===a.type?Hf.jsx(Fz,{...r,ref:t,forceMount:n}):"always"===a.type?Hf.jsx(Bz,{...r,ref:t}):null}));Lz.displayName=Pz;var Dz=V.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,a=Iz(Pz,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]),Hf.jsx(eF,{present:n||o,children:Hf.jsx(Fz,{"data-state":o?"visible":"hidden",...r,ref:t})})})),Mz=V.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,a=Iz(Pz,e.__scopeScrollArea),o="horizontal"===e.orientation,i=rj((()=>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]),Hf.jsx(eF,{present:n||"hidden"!==s,children:Hf.jsx(Bz,{"data-state":"hidden"===s?"hidden":"visible",...r,ref:t,onPointerEnter:DL(e.onPointerEnter,(()=>l("POINTER_ENTER"))),onPointerLeave:DL(e.onPointerLeave,(()=>l("POINTER_LEAVE")))})})})),Fz=V.forwardRef(((e,t)=>{const n=Iz(Pz,e.__scopeScrollArea),{forceMount:r,...a}=e,[o,i]=V.useState(!1),s="horizontal"===e.orientation,l=rj((()=>{if(n.viewport){const e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;i(s?e:t)}}),10);return aj(n.viewport,l),aj(n.content,l),Hf.jsx(eF,{present:r||o,children:Hf.jsx(Bz,{"data-state":o?"visible":"hidden",...a,ref:t})})})),Bz=V.forwardRef(((e,t)=>{const{orientation:n="vertical",...r}=e,a=Iz(Pz,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=Qz(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=Zz(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 ej([l,c],d)(e)}(e,i.current,s,t)}return"horizontal"===n?Hf.jsx(zz,{...u,ref:t,onThumbPositionChange:()=>{if(a.viewport&&o.current){const e=Jz(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?Hf.jsx(jz,{...u,ref:t,onThumbPositionChange:()=>{if(a.viewport&&o.current){const e=Jz(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})),zz=V.forwardRef(((e,t)=>{const{sizes:n,onSizesChange:r,...a}=e,o=Iz(Pz,e.__scopeScrollArea),[i,s]=V.useState(),l=V.useRef(null),c=BL(t,l,o.onScrollbarXChange);return V.useEffect((()=>{l.current&&s(getComputedStyle(l.current))}),[l]),Hf.jsx($z,{"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":Zz(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),tj(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:Kz(i.paddingLeft),paddingEnd:Kz(i.paddingRight)}})}})})),jz=V.forwardRef(((e,t)=>{const{sizes:n,onSizesChange:r,...a}=e,o=Iz(Pz,e.__scopeScrollArea),[i,s]=V.useState(),l=V.useRef(null),c=BL(t,l,o.onScrollbarYChange);return V.useEffect((()=>{l.current&&s(getComputedStyle(l.current))}),[l]),Hf.jsx($z,{"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":Zz(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),tj(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:Kz(i.paddingTop),paddingEnd:Kz(i.paddingBottom)}})}})})),[Hz,Uz]=_z(Pz),$z=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=Iz(Pz,n),[h,m]=V.useState(null),g=BL(t,(e=>m(e))),y=V.useRef(null),b=V.useRef(""),v=f.viewport,k=r.content-r.viewport,w=qL(u),E=qL(l),S=rj(d,10);function x(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]),aj(h,S),aj(f.content,S),Hf.jsx(Hz,{scope:n,scrollbar:h,hasThumb:a,onThumbChange:qL(o),onThumbPointerUp:qL(i),onThumbPositionChange:E,onThumbPointerDown:qL(s),children:Hf.jsx(WL.div,{...p,ref:g,style:{position:"absolute",...p.style},onPointerDown:DL(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"),x(e)}})),onPointerMove:DL(e.onPointerMove,x),onPointerUp:DL(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}))})})})),Gz="ScrollAreaThumb",Vz=V.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,a=Uz(Gz,e.__scopeScrollArea);return Hf.jsx(eF,{present:n||a.hasThumb,children:Hf.jsx(Wz,{ref:t,...r})})})),Wz=V.forwardRef(((e,t)=>{const{__scopeScrollArea:n,style:r,...a}=e,o=Iz(Gz,n),i=Uz(Gz,n),{onThumbPositionChange:s}=i,l=BL(t,(e=>i.onThumbChange(e))),c=V.useRef(void 0),u=rj((()=>{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=nj(e,s);c.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}}),[o.viewport,u,s]),Hf.jsx(WL.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:DL(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:DL(e.onPointerUp,i.onThumbPointerUp)})}));Vz.displayName=Gz;var qz="ScrollAreaCorner",Yz=V.forwardRef(((e,t)=>{const n=Iz(qz,e.__scopeScrollArea),r=Boolean(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?Hf.jsx(Xz,{...e,ref:t}):null}));Yz.displayName=qz;var Xz=V.forwardRef(((e,t)=>{const{__scopeScrollArea:n,...r}=e,a=Iz(qz,n),[o,i]=V.useState(0),[s,l]=V.useState(0),c=Boolean(o&&s);return aj(a.scrollbarX,(()=>{var e;const t=(null==(e=a.scrollbarX)?void 0:e.offsetHeight)||0;a.onCornerHeightChange(t),l(t)})),aj(a.scrollbarY,(()=>{var e;const t=(null==(e=a.scrollbarY)?void 0:e.offsetWidth)||0;a.onCornerWidthChange(t),i(t)})),c?Hf.jsx(WL.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 Kz(e){return e?parseInt(e,10):0}function Qz(e,t){const n=e/t;return isNaN(n)?0:n}function Zz(e){const t=Qz(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function Jz(e,t,n="ltr"){const r=Zz(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 ej([0,i],[0,s])(l)}function ej(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 tj(e,t){return e>0&&e<t}var nj=(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 rj(e,t){const n=qL(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 aj(e,t){const n=qL(t);TO((()=>{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 oj=Nz,ij=Oz,sj=Yz;var lj=[" ","Enter","ArrowUp","ArrowDown"],cj=[" ","Enter"],uj="Select",[dj,pj,fj]=function(e){const t=e+"CollectionProvider",[n,r]=zL(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 Hf.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=BL(t,o(s,n).collectionRef);return Hf.jsx(HL,{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=BL(t,i),l=o(c,n);return W.useEffect((()=>(l.itemMap.set(i,{ref:i,...a}),()=>{l.itemMap.delete(i)}))),Hf.jsx(HL,{[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]}(uj),[hj,mj]=zL(uj,[fj,LM]),gj=LM(),[yj,bj]=hj(uj),[vj,kj]=hj(uj),wj=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=gj(t),[g,y]=V.useState(null),[b,v]=V.useState(null),[k,w]=V.useState(!1),E=Sz(c),[S=!1,x]=nF({prop:r,defaultProp:a,onChange:o}),[T,_]=nF({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 Hf.jsx(KM,{...m,children:Hf.jsxs(yj,{required:f,scope:t,trigger:g,onTriggerChange:y,valueNode:b,onValueNodeChange:v,valueNodeHasChildren:k,onValueNodeHasChildrenChange:w,contentId:CO(),value:T,onValueChange:_,open:S,onOpenChange:x,dir:E,triggerPointerDownPosRef:A,disabled:p,children:[Hf.jsx(dj.Provider,{scope:t,children:Hf.jsx(vj,{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?Hf.jsxs(nH,{"aria-hidden":!0,required:f,tabIndex:-1,name:u,autoComplete:d,value:T,onChange:e=>_(e.target.value),disabled:p,form:h,children:[void 0===T?Hf.jsx("option",{value:""}):null,Array.from(I)]},R):null]})})};wj.displayName=uj;var Ej="SelectTrigger",Sj=V.forwardRef(((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...a}=e,o=gj(n),i=bj(Ej,n),s=i.disabled||r,l=BL(t,i.onTriggerChange),c=pj(n),u=V.useRef("touch"),[d,p,f]=rH((e=>{const t=c().filter((e=>!e.disabled)),n=t.find((e=>e.value===i.value)),r=aH(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 Hf.jsx(QM,{asChild:!0,...o,children:Hf.jsx(WL.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":tH(i.value)?"":void 0,...a,ref:l,onClick:DL(a.onClick,(e=>{e.currentTarget.focus(),"mouse"!==u.current&&h(e)})),onPointerDown:DL(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:DL(a.onKeyDown,(e=>{const t=""!==d.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||p(e.key),t&&" "===e.key||lj.includes(e.key)&&(h(),e.preventDefault())}))})})}));Sj.displayName=Ej;var xj="SelectValue",Tj=V.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:a,children:o,placeholder:i="",...s}=e,l=bj(xj,n),{onValueNodeHasChildrenChange:c}=l,u=void 0!==o,d=BL(t,l.onValueNodeChange);return TO((()=>{c(u)}),[c,u]),Hf.jsx(WL.span,{...s,ref:d,style:{pointerEvents:"none"},children:tH(l.value)?Hf.jsx(Hf.Fragment,{children:i}):o})}));Tj.displayName=xj;var _j=V.forwardRef(((e,t)=>{const{__scopeSelect:n,children:r,...a}=e;return Hf.jsx(WL.span,{"aria-hidden":!0,...a,ref:t,children:r||"▼"})}));_j.displayName="SelectIcon";var Aj="SelectContent",Cj=V.forwardRef(((e,t)=>{const n=bj(Aj,e.__scopeSelect),[r,a]=V.useState();if(TO((()=>{a(new DocumentFragment)}),[]),!n.open){const t=r;return t?re.createPortal(Hf.jsx(Nj,{scope:e.__scopeSelect,children:Hf.jsx(dj.Slot,{scope:e.__scopeSelect,children:Hf.jsx("div",{children:e.children})})}),t):null}return Hf.jsx(Oj,{...e,ref:t})}));Cj.displayName=Aj;var Ij=10,[Nj,Rj]=hj(Aj),Oj=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=bj(Aj,n),[v,k]=V.useState(null),[w,E]=V.useState(null),S=BL(t,(e=>k(e))),[x,T]=V.useState(null),[_,A]=V.useState(null),C=pj(n),[I,N]=V.useState(!1),R=V.useRef(!1);V.useEffect((()=>{if(v)return PB(v)}),[v]),V.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??gB()),document.body.insertAdjacentElement("beforeend",e[1]??gB()),mB++,()=>{1===mB&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),mB--}}),[]);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([x,v])),[O,x,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]=rH((e=>{const t=C().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=aH(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)&&(T(e),r&&(R.current=!0))}),[b.value]),z=V.useCallback((()=>null==v?void 0:v.focus()),[v]),j=V.useCallback(((e,t,n)=>{const r=!R.current&&!n;(void 0!==b.value&&b.value===t||r)&&A(e)}),[b.value]),H="popper"===r?Lj:Pj,U=H===Lj?{side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:p,collisionPadding:f,sticky:h,hideWhenDetached:m,avoidCollisions:g}:{};return Hf.jsx(Nj,{scope:n,content:v,viewport:w,onViewportChange:E,itemRefCallback:B,selectedItem:x,onItemLeave:z,itemTextRefCallback:j,focusSelectedItem:P,selectedItemText:_,position:r,isPositioned:I,searchRef:M,children:Hf.jsx(wz,{as:HL,allowPinchZoom:!0,children:Hf.jsx(kB,{asChild:!0,trapped:b.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:DL(a,(e=>{var t;null==(t=b.trigger)||t.focus({preventScroll:!0}),e.preventDefault()})),children:Hf.jsx(JL,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:Hf.jsx(H,{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:DL(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()}}))})})})})})}));Oj.displayName="SelectContentImpl";var Pj=V.forwardRef(((e,t)=>{const{__scopeSelect:n,onPlaced:r,...a}=e,o=bj(Aj,n),i=Rj(Aj,n),[s,l]=V.useState(null),[c,u]=V.useState(null),d=BL(t,(e=>u(e))),p=pj(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-Ij,d=xz(o,[Ij,Math.max(Ij,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-Ij,d=xz(o,[Ij,Math.max(Ij,u-c)]);s.style.minWidth=l+"px",s.style.right=d+"px"}const i=p(),l=window.innerHeight-2*Ij,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),x=parseInt(E.paddingBottom,10),T=e.top+e.height/2-Ij,_=l-T,A=g.offsetHeight/2,C=h+b+(g.offsetTop+A),I=k-C;if(C<=T){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?x: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(T,h+m.offsetTop+(e?S:0)+A)+I;s.style.height=t+"px",m.scrollTop=C-T+m.offsetTop}s.style.margin=`${Ij}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]);TO((()=>v()),[v]);const[k,w]=V.useState();TO((()=>{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 Hf.jsx(Dj,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:f,onScrollButtonChange:E,children:Hf.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:Hf.jsx(WL.div,{...a,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})}));Pj.displayName="SelectItemAlignedPosition";var Lj=V.forwardRef(((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:a=Ij,...o}=e,i=gj(n);return Hf.jsx(ZM,{...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)"}})}));Lj.displayName="SelectPopperPosition";var[Dj,Mj]=hj(Aj,{}),Fj="SelectViewport",Bj=V.forwardRef(((e,t)=>{const{__scopeSelect:n,nonce:r,...a}=e,o=Rj(Fj,n),i=Mj(Fj,n),s=BL(t,o.onViewportChange),l=V.useRef(0);return Hf.jsxs(Hf.Fragment,{children:[Hf.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}),Hf.jsx(dj.Slot,{scope:n,children:Hf.jsx(WL.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:DL(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*Ij,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}))})})]})}));Bj.displayName=Fj;var zj="SelectGroup",[jj,Hj]=hj(zj);V.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=CO();return Hf.jsx(jj,{scope:n,id:a,children:Hf.jsx(WL.div,{role:"group","aria-labelledby":a,...r,ref:t})})})).displayName=zj;var Uj="SelectLabel";V.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=Hj(Uj,n);return Hf.jsx(WL.div,{id:a.id,...r,ref:t})})).displayName=Uj;var $j="SelectItem",[Gj,Vj]=hj($j),Wj=V.forwardRef(((e,t)=>{const{__scopeSelect:n,value:r,disabled:a=!1,textValue:o,...i}=e,s=bj($j,n),l=Rj($j,n),c=s.value===r,[u,d]=V.useState(o??""),[p,f]=V.useState(!1),h=BL(t,(e=>{var t;return null==(t=l.itemRefCallback)?void 0:t.call(l,e,r,a)})),m=CO(),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 Hf.jsx(Gj,{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:Hf.jsx(dj.ItemSlot,{scope:n,value:r,disabled:a,textValue:u,children:Hf.jsx(WL.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:DL(i.onFocus,(()=>f(!0))),onBlur:DL(i.onBlur,(()=>f(!1))),onClick:DL(i.onClick,(()=>{"mouse"!==g.current&&y()})),onPointerUp:DL(i.onPointerUp,(()=>{"mouse"===g.current&&y()})),onPointerDown:DL(i.onPointerDown,(e=>{g.current=e.pointerType})),onPointerMove:DL(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:DL(i.onPointerLeave,(e=>{var t;e.currentTarget===document.activeElement&&(null==(t=l.onItemLeave)||t.call(l))})),onKeyDown:DL(i.onKeyDown,(e=>{var t;""!==(null==(t=l.searchRef)?void 0:t.current)&&" "===e.key||(cj.includes(e.key)&&y()," "===e.key&&e.preventDefault())}))})})})}));Wj.displayName=$j;var qj="SelectItemText",Yj=V.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:a,...o}=e,i=bj(qj,n),s=Rj(qj,n),l=Vj(qj,n),c=kj(qj,n),[u,d]=V.useState(null),p=BL(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((()=>Hf.jsx("option",{value:l.value,disabled:l.disabled,children:f},l.value)),[l.disabled,l.value,f]),{onNativeOptionAdd:m,onNativeOptionRemove:g}=c;return TO((()=>(m(h),()=>g(h))),[m,g,h]),Hf.jsxs(Hf.Fragment,{children:[Hf.jsx(WL.span,{id:l.textId,...o,ref:p}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?re.createPortal(o.children,i.valueNode):null]})}));Yj.displayName=qj;var Xj="SelectItemIndicator",Kj=V.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e;return Vj(Xj,n).isSelected?Hf.jsx(WL.span,{"aria-hidden":!0,...r,ref:t}):null}));Kj.displayName=Xj;var Qj="SelectScrollUpButton";V.forwardRef(((e,t)=>{const n=Rj(Qj,e.__scopeSelect),r=Mj(Qj,e.__scopeSelect),[a,o]=V.useState(!1),i=BL(t,r.onScrollButtonChange);return TO((()=>{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?Hf.jsx(Jj,{...e,ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null})).displayName=Qj;var Zj="SelectScrollDownButton";V.forwardRef(((e,t)=>{const n=Rj(Zj,e.__scopeSelect),r=Mj(Zj,e.__scopeSelect),[a,o]=V.useState(!1),i=BL(t,r.onScrollButtonChange);return TO((()=>{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?Hf.jsx(Jj,{...e,ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null})).displayName=Zj;var Jj=V.forwardRef(((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...a}=e,o=Rj("SelectScrollButton",n),i=V.useRef(null),s=pj(n),l=V.useCallback((()=>{null!==i.current&&(window.clearInterval(i.current),i.current=null)}),[]);return V.useEffect((()=>()=>l()),[l]),TO((()=>{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]),Hf.jsx(WL.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:DL(a.onPointerDown,(()=>{null===i.current&&(i.current=window.setInterval(r,50))})),onPointerMove:DL(a.onPointerMove,(()=>{var e;null==(e=o.onItemLeave)||e.call(o),null===i.current&&(i.current=window.setInterval(r,50))})),onPointerLeave:DL(a.onPointerLeave,(()=>{l()}))})}));V.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e;return Hf.jsx(WL.div,{"aria-hidden":!0,...r,ref:t})})).displayName="SelectSeparator";var eH="SelectArrow";function tH(e){return""===e||void 0===e}V.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,a=gj(n),o=bj(eH,n),i=Rj(eH,n);return o.open&&"popper"===i.position?Hf.jsx(JM,{...a,...r,ref:t}):null})).displayName=eH;var nH=V.forwardRef(((e,t)=>{const{value:n,...r}=e,a=V.useRef(null),o=BL(t,a),i=tB(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]),Hf.jsx(rF,{asChild:!0,children:Hf.jsx("select",{...r,ref:o,defaultValue:n})})}));function rH(e){const t=qL(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 aH(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}nH.displayName="BubbleSelect";var oH=wj,iH=Sj,sH=Tj,lH=_j,cH=Cj,uH=Bj,dH=Wj,pH=Yj,fH=Kj,hH={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},mH=W.createContext&&W.createContext(hH),gH=["attr","size","title"];function yH(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 bH(){return bH=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},bH.apply(this,arguments)}function vH(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 kH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vH(Object(n),!0).forEach((function(t){wH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wH(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 EH(e){return e&&e.map(((e,t)=>W.createElement(e.tag,kH({key:t},e.attr),EH(e.child))))}function SH(e){return t=>W.createElement(xH,bH({attr:kH({},e.attr)},t),EH(e.child))}function xH(e){var t=t=>{var n,{attr:r,size:a,title:o}=e,i=yH(e,gH),s=a||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),W.createElement("svg",bH({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,i,{className:n,style:kH(kH({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!==mH?W.createElement(mH.Consumer,null,(e=>t(e))):t(hH)}function TH(e,t){return(TH=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