@snf/access-qa-bot 3.3.1 → 3.3.2

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.
@@ -6,13 +6,13 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Gu;function mf(){if(Gu)return Mo;Gu=1;var e=B;function n(g){for(var x="https://reactjs.org/docs/error-decoder.html?invariant="+g,I=1;I<arguments.length;I++)x+="&args[]="+encodeURIComponent(arguments[I]);return"Minified React error #"+g+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=Object.prototype.hasOwnProperty,a=/^[: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]*$/,o={},u={};function f(g){return i.call(u,g)?!0:i.call(o,g)?!1:a.test(g)?u[g]=!0:(o[g]=!0,!1)}function A(g,x,I,_,K,V,te){this.acceptsBooleans=x===2||x===3||x===4,this.attributeName=_,this.attributeNamespace=K,this.mustUseProperty=I,this.propertyName=g,this.type=x,this.sanitizeURL=V,this.removeEmptyString=te}var c={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(g){c[g]=new A(g,0,!1,g,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(g){var x=g[0];c[x]=new A(x,1,!1,g[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(g){c[g]=new A(g,2,!1,g.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(g){c[g]=new A(g,2,!1,g,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(g){c[g]=new A(g,3,!1,g.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(g){c[g]=new A(g,3,!0,g,null,!1,!1)}),["capture","download"].forEach(function(g){c[g]=new A(g,4,!1,g,null,!1,!1)}),["cols","rows","size","span"].forEach(function(g){c[g]=new A(g,6,!1,g,null,!1,!1)}),["rowSpan","start"].forEach(function(g){c[g]=new A(g,5,!1,g.toLowerCase(),null,!1,!1)});var d=/[\-:]([a-z])/g;function h(g){return g[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(g){var x=g.replace(d,h);c[x]=new A(x,1,!1,g,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(g){var x=g.replace(d,h);c[x]=new A(x,1,!1,g,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(g){var x=g.replace(d,h);c[x]=new A(x,1,!1,g,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(g){c[g]=new A(g,1,!1,g.toLowerCase(),null,!1,!1)}),c.xlinkHref=new A("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(g){c[g]=new A(g,1,!1,g.toLowerCase(),null,!0,!0)});var v={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},y=["Webkit","ms","Moz","O"];Object.keys(v).forEach(function(g){y.forEach(function(x){x=x+g.charAt(0).toUpperCase()+g.substring(1),v[x]=v[g]})});var k=/["'&<>]/;function C(g){if(typeof g=="boolean"||typeof g=="number")return""+g;g=""+g;var x=k.exec(g);if(x){var I="",_,K=0;for(_=x.index;_<g.length;_++){switch(g.charCodeAt(_)){case 34:x="&quot;";break;case 38:x="&amp;";break;case 39:x="&#x27;";break;case 60:x="&lt;";break;case 62:x="&gt;";break;default:continue}K!==_&&(I+=g.substring(K,_)),K=_+1,I+=x}g=K!==_?I+g.substring(K,_):I}return g}var R=/([A-Z])/g,E=/^ms-/,T=Array.isArray;function Q(g,x){return{insertionMode:g,selectedValue:x}}function M(g,x,I){switch(x){case"select":return Q(1,I.value!=null?I.value:I.defaultValue);case"svg":return Q(2,null);case"math":return Q(3,null);case"foreignObject":return Q(1,null);case"table":return Q(4,null);case"thead":case"tbody":case"tfoot":return Q(5,null);case"colgroup":return Q(7,null);case"tr":return Q(6,null)}return 4<=g.insertionMode||g.insertionMode===0?Q(1,null):g}var U=new Map;function j(g,x,I){if(typeof I!="object")throw Error(n(62));x=!0;for(var _ in I)if(i.call(I,_)){var K=I[_];if(K!=null&&typeof K!="boolean"&&K!==""){if(_.indexOf("--")===0){var V=C(_);K=C((""+K).trim())}else{V=_;var te=U.get(V);te!==void 0||(te=C(V.replace(R,"-$1").toLowerCase().replace(E,"-ms-")),U.set(V,te)),V=te,K=typeof K=="number"?K===0||i.call(v,_)?""+K:K+"px":C((""+K).trim())}x?(x=!1,g.push(' style="',V,":",K)):g.push(";",V,":",K)}}x||g.push('"')}function N(g,x,I,_){switch(I){case"style":j(g,x,_);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<I.length)||I[0]!=="o"&&I[0]!=="O"||I[1]!=="n"&&I[1]!=="N"){if(x=c.hasOwnProperty(I)?c[I]:null,x!==null){switch(typeof _){case"function":case"symbol":return;case"boolean":if(!x.acceptsBooleans)return}switch(I=x.attributeName,x.type){case 3:_&&g.push(" ",I,'=""');break;case 4:_===!0?g.push(" ",I,'=""'):_!==!1&&g.push(" ",I,'="',C(_),'"');break;case 5:isNaN(_)||g.push(" ",I,'="',C(_),'"');break;case 6:!isNaN(_)&&1<=_&&g.push(" ",I,'="',C(_),'"');break;default:x.sanitizeURL&&(_=""+_),g.push(" ",I,'="',C(_),'"')}}else if(f(I)){switch(typeof _){case"function":case"symbol":return;case"boolean":if(x=I.toLowerCase().slice(0,5),x!=="data-"&&x!=="aria-")return}g.push(" ",I,'="',C(_),'"')}}}function W(g,x,I){if(x!=null){if(I!=null)throw Error(n(60));if(typeof x!="object"||!("__html"in x))throw Error(n(61));x=x.__html,x!=null&&g.push(""+x)}}function ee(g){var x="";return e.Children.forEach(g,function(I){I!=null&&(x+=I)}),x}function G(g,x,I,_){g.push($(I));var K=I=null,V;for(V in x)if(i.call(x,V)){var te=x[V];if(te!=null)switch(V){case"children":I=te;break;case"dangerouslySetInnerHTML":K=te;break;default:N(g,_,V,te)}}return g.push(">"),W(g,K,I),typeof I=="string"?(g.push(C(I)),null):I}var Y=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Z=new Map;function $(g){var x=Z.get(g);if(x===void 0){if(!Y.test(g))throw Error(n(65,g));x="<"+g,Z.set(g,x)}return x}function ae(g,x,I,_,K){switch(x){case"select":g.push($("select"));var V=null,te=null;for(Ee in I)if(i.call(I,Ee)){var ue=I[Ee];if(ue!=null)switch(Ee){case"children":V=ue;break;case"dangerouslySetInnerHTML":te=ue;break;case"defaultValue":case"value":break;default:N(g,_,Ee,ue)}}return g.push(">"),W(g,te,V),V;case"option":te=K.selectedValue,g.push($("option"));var ke=ue=null,Ce=null,Ee=null;for(V in I)if(i.call(I,V)){var je=I[V];if(je!=null)switch(V){case"children":ue=je;break;case"selected":Ce=je;break;case"dangerouslySetInnerHTML":Ee=je;break;case"value":ke=je;default:N(g,_,V,je)}}if(te!=null)if(I=ke!==null?""+ke:ee(ue),T(te)){for(_=0;_<te.length;_++)if(""+te[_]===I){g.push(' selected=""');break}}else""+te===I&&g.push(' selected=""');else Ce&&g.push(' selected=""');return g.push(">"),W(g,Ee,ue),ue;case"textarea":g.push($("textarea")),Ee=te=V=null;for(ue in I)if(i.call(I,ue)&&(ke=I[ue],ke!=null))switch(ue){case"children":Ee=ke;break;case"value":V=ke;break;case"defaultValue":te=ke;break;case"dangerouslySetInnerHTML":throw Error(n(91));default:N(g,_,ue,ke)}if(V===null&&te!==null&&(V=te),g.push(">"),Ee!=null){if(V!=null)throw Error(n(92));if(T(Ee)&&1<Ee.length)throw Error(n(93));V=""+Ee}return typeof V=="string"&&V[0]===`
9
+ */var Gu;function mf(){if(Gu)return Mo;Gu=1;var e=B;function n(g){for(var x="https://reactjs.org/docs/error-decoder.html?invariant="+g,I=1;I<arguments.length;I++)x+="&args[]="+encodeURIComponent(arguments[I]);return"Minified React error #"+g+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=Object.prototype.hasOwnProperty,a=/^[: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]*$/,o={},u={};function f(g){return i.call(u,g)?!0:i.call(o,g)?!1:a.test(g)?u[g]=!0:(o[g]=!0,!1)}function A(g,x,I,_,q,V,te){this.acceptsBooleans=x===2||x===3||x===4,this.attributeName=_,this.attributeNamespace=q,this.mustUseProperty=I,this.propertyName=g,this.type=x,this.sanitizeURL=V,this.removeEmptyString=te}var c={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(g){c[g]=new A(g,0,!1,g,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(g){var x=g[0];c[x]=new A(x,1,!1,g[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(g){c[g]=new A(g,2,!1,g.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(g){c[g]=new A(g,2,!1,g,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(g){c[g]=new A(g,3,!1,g.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(g){c[g]=new A(g,3,!0,g,null,!1,!1)}),["capture","download"].forEach(function(g){c[g]=new A(g,4,!1,g,null,!1,!1)}),["cols","rows","size","span"].forEach(function(g){c[g]=new A(g,6,!1,g,null,!1,!1)}),["rowSpan","start"].forEach(function(g){c[g]=new A(g,5,!1,g.toLowerCase(),null,!1,!1)});var d=/[\-:]([a-z])/g;function h(g){return g[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(g){var x=g.replace(d,h);c[x]=new A(x,1,!1,g,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(g){var x=g.replace(d,h);c[x]=new A(x,1,!1,g,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(g){var x=g.replace(d,h);c[x]=new A(x,1,!1,g,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(g){c[g]=new A(g,1,!1,g.toLowerCase(),null,!1,!1)}),c.xlinkHref=new A("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(g){c[g]=new A(g,1,!1,g.toLowerCase(),null,!0,!0)});var v={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},y=["Webkit","ms","Moz","O"];Object.keys(v).forEach(function(g){y.forEach(function(x){x=x+g.charAt(0).toUpperCase()+g.substring(1),v[x]=v[g]})});var k=/["'&<>]/;function C(g){if(typeof g=="boolean"||typeof g=="number")return""+g;g=""+g;var x=k.exec(g);if(x){var I="",_,q=0;for(_=x.index;_<g.length;_++){switch(g.charCodeAt(_)){case 34:x="&quot;";break;case 38:x="&amp;";break;case 39:x="&#x27;";break;case 60:x="&lt;";break;case 62:x="&gt;";break;default:continue}q!==_&&(I+=g.substring(q,_)),q=_+1,I+=x}g=q!==_?I+g.substring(q,_):I}return g}var R=/([A-Z])/g,E=/^ms-/,T=Array.isArray;function Q(g,x){return{insertionMode:g,selectedValue:x}}function M(g,x,I){switch(x){case"select":return Q(1,I.value!=null?I.value:I.defaultValue);case"svg":return Q(2,null);case"math":return Q(3,null);case"foreignObject":return Q(1,null);case"table":return Q(4,null);case"thead":case"tbody":case"tfoot":return Q(5,null);case"colgroup":return Q(7,null);case"tr":return Q(6,null)}return 4<=g.insertionMode||g.insertionMode===0?Q(1,null):g}var U=new Map;function j(g,x,I){if(typeof I!="object")throw Error(n(62));x=!0;for(var _ in I)if(i.call(I,_)){var q=I[_];if(q!=null&&typeof q!="boolean"&&q!==""){if(_.indexOf("--")===0){var V=C(_);q=C((""+q).trim())}else{V=_;var te=U.get(V);te!==void 0||(te=C(V.replace(R,"-$1").toLowerCase().replace(E,"-ms-")),U.set(V,te)),V=te,q=typeof q=="number"?q===0||i.call(v,_)?""+q:q+"px":C((""+q).trim())}x?(x=!1,g.push(' style="',V,":",q)):g.push(";",V,":",q)}}x||g.push('"')}function N(g,x,I,_){switch(I){case"style":j(g,x,_);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<I.length)||I[0]!=="o"&&I[0]!=="O"||I[1]!=="n"&&I[1]!=="N"){if(x=c.hasOwnProperty(I)?c[I]:null,x!==null){switch(typeof _){case"function":case"symbol":return;case"boolean":if(!x.acceptsBooleans)return}switch(I=x.attributeName,x.type){case 3:_&&g.push(" ",I,'=""');break;case 4:_===!0?g.push(" ",I,'=""'):_!==!1&&g.push(" ",I,'="',C(_),'"');break;case 5:isNaN(_)||g.push(" ",I,'="',C(_),'"');break;case 6:!isNaN(_)&&1<=_&&g.push(" ",I,'="',C(_),'"');break;default:x.sanitizeURL&&(_=""+_),g.push(" ",I,'="',C(_),'"')}}else if(f(I)){switch(typeof _){case"function":case"symbol":return;case"boolean":if(x=I.toLowerCase().slice(0,5),x!=="data-"&&x!=="aria-")return}g.push(" ",I,'="',C(_),'"')}}}function W(g,x,I){if(x!=null){if(I!=null)throw Error(n(60));if(typeof x!="object"||!("__html"in x))throw Error(n(61));x=x.__html,x!=null&&g.push(""+x)}}function ee(g){var x="";return e.Children.forEach(g,function(I){I!=null&&(x+=I)}),x}function G(g,x,I,_){g.push($(I));var q=I=null,V;for(V in x)if(i.call(x,V)){var te=x[V];if(te!=null)switch(V){case"children":I=te;break;case"dangerouslySetInnerHTML":q=te;break;default:N(g,_,V,te)}}return g.push(">"),W(g,q,I),typeof I=="string"?(g.push(C(I)),null):I}var Y=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Z=new Map;function $(g){var x=Z.get(g);if(x===void 0){if(!Y.test(g))throw Error(n(65,g));x="<"+g,Z.set(g,x)}return x}function ae(g,x,I,_,q){switch(x){case"select":g.push($("select"));var V=null,te=null;for(Ee in I)if(i.call(I,Ee)){var ue=I[Ee];if(ue!=null)switch(Ee){case"children":V=ue;break;case"dangerouslySetInnerHTML":te=ue;break;case"defaultValue":case"value":break;default:N(g,_,Ee,ue)}}return g.push(">"),W(g,te,V),V;case"option":te=q.selectedValue,g.push($("option"));var ke=ue=null,Ce=null,Ee=null;for(V in I)if(i.call(I,V)){var je=I[V];if(je!=null)switch(V){case"children":ue=je;break;case"selected":Ce=je;break;case"dangerouslySetInnerHTML":Ee=je;break;case"value":ke=je;default:N(g,_,V,je)}}if(te!=null)if(I=ke!==null?""+ke:ee(ue),T(te)){for(_=0;_<te.length;_++)if(""+te[_]===I){g.push(' selected=""');break}}else""+te===I&&g.push(' selected=""');else Ce&&g.push(' selected=""');return g.push(">"),W(g,Ee,ue),ue;case"textarea":g.push($("textarea")),Ee=te=V=null;for(ue in I)if(i.call(I,ue)&&(ke=I[ue],ke!=null))switch(ue){case"children":Ee=ke;break;case"value":V=ke;break;case"defaultValue":te=ke;break;case"dangerouslySetInnerHTML":throw Error(n(91));default:N(g,_,ue,ke)}if(V===null&&te!==null&&(V=te),g.push(">"),Ee!=null){if(V!=null)throw Error(n(92));if(T(Ee)&&1<Ee.length)throw Error(n(93));V=""+Ee}return typeof V=="string"&&V[0]===`
10
10
  `&&g.push(`
11
11
  `),V!==null&&g.push(C(""+V)),null;case"input":g.push($("input")),ke=Ee=ue=V=null;for(te in I)if(i.call(I,te)&&(Ce=I[te],Ce!=null))switch(te){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,"input"));case"defaultChecked":ke=Ce;break;case"defaultValue":ue=Ce;break;case"checked":Ee=Ce;break;case"value":V=Ce;break;default:N(g,_,te,Ce)}return Ee!==null?N(g,_,"checked",Ee):ke!==null&&N(g,_,"checked",ke),V!==null?N(g,_,"value",V):ue!==null&&N(g,_,"value",ue),g.push("/>"),null;case"menuitem":g.push($("menuitem"));for(var Rt in I)if(i.call(I,Rt)&&(V=I[Rt],V!=null))switch(Rt){case"children":case"dangerouslySetInnerHTML":throw Error(n(400));default:N(g,_,Rt,V)}return g.push(">"),null;case"title":g.push($("title")),V=null;for(je in I)if(i.call(I,je)&&(te=I[je],te!=null))switch(je){case"children":V=te;break;case"dangerouslySetInnerHTML":throw Error(n(434));default:N(g,_,je,te)}return g.push(">"),V;case"listing":case"pre":g.push($(x)),te=V=null;for(ke in I)if(i.call(I,ke)&&(ue=I[ke],ue!=null))switch(ke){case"children":V=ue;break;case"dangerouslySetInnerHTML":te=ue;break;default:N(g,_,ke,ue)}if(g.push(">"),te!=null){if(V!=null)throw Error(n(60));if(typeof te!="object"||!("__html"in te))throw Error(n(61));I=te.__html,I!=null&&(typeof I=="string"&&0<I.length&&I[0]===`
12
12
  `?g.push(`
13
13
  `,I):g.push(""+I))}return typeof V=="string"&&V[0]===`
14
14
  `&&g.push(`
15
- `),V;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":g.push($(x));for(var Ot in I)if(i.call(I,Ot)&&(V=I[Ot],V!=null))switch(Ot){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,x));default:N(g,_,Ot,V)}return g.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return G(g,I,x,_);case"html":return K.insertionMode===0&&g.push("<!DOCTYPE html>"),G(g,I,x,_);default:if(x.indexOf("-")===-1&&typeof I.is!="string")return G(g,I,x,_);g.push($(x)),te=V=null;for(Ce in I)if(i.call(I,Ce)&&(ue=I[Ce],ue!=null))switch(Ce){case"children":V=ue;break;case"dangerouslySetInnerHTML":te=ue;break;case"style":j(g,_,ue);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:f(Ce)&&typeof ue!="function"&&typeof ue!="symbol"&&g.push(" ",Ce,'="',C(ue),'"')}return g.push(">"),W(g,te,V),V}}function ie(g,x,I){if(g.push('<!--$?--><template id="'),I===null)throw Error(n(395));return g.push(I),g.push('"></template>')}function le(g,x,I,_){switch(I.insertionMode){case 0:case 1:return g.push('<div hidden id="'),g.push(x.segmentPrefix),x=_.toString(16),g.push(x),g.push('">');case 2:return g.push('<svg aria-hidden="true" style="display:none" id="'),g.push(x.segmentPrefix),x=_.toString(16),g.push(x),g.push('">');case 3:return g.push('<math aria-hidden="true" style="display:none" id="'),g.push(x.segmentPrefix),x=_.toString(16),g.push(x),g.push('">');case 4:return g.push('<table hidden id="'),g.push(x.segmentPrefix),x=_.toString(16),g.push(x),g.push('">');case 5:return g.push('<table hidden><tbody id="'),g.push(x.segmentPrefix),x=_.toString(16),g.push(x),g.push('">');case 6:return g.push('<table hidden><tr id="'),g.push(x.segmentPrefix),x=_.toString(16),g.push(x),g.push('">');case 7:return g.push('<table hidden><colgroup id="'),g.push(x.segmentPrefix),x=_.toString(16),g.push(x),g.push('">');default:throw Error(n(397))}}function be(g,x){switch(x.insertionMode){case 0:case 1:return g.push("</div>");case 2:return g.push("</svg>");case 3:return g.push("</math>");case 4:return g.push("</table>");case 5:return g.push("</tbody></table>");case 6:return g.push("</tr></table>");case 7:return g.push("</colgroup></table>");default:throw Error(n(397))}}var he=/[<\u2028\u2029]/g;function me(g){return JSON.stringify(g).replace(he,function(x){switch(x){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")}})}function L(g,x){return x=x===void 0?"":x,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:x+"P:",segmentPrefix:x+"S:",boundaryPrefix:x+"B:",idPrefix:x,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:g}}function Be(g,x,I,_){return I.generateStaticMarkup?(g.push(C(x)),!1):(x===""?g=_:(_&&g.push("<!-- -->"),g.push(C(x)),g=!0),g)}var F=Object.assign,ve=Symbol.for("react.element"),fe=Symbol.for("react.portal"),ce=Symbol.for("react.fragment"),ge=Symbol.for("react.strict_mode"),ye=Symbol.for("react.profiler"),De=Symbol.for("react.provider"),Fe=Symbol.for("react.context"),Re=Symbol.for("react.forward_ref"),Ue=Symbol.for("react.suspense"),Je=Symbol.for("react.suspense_list"),Dt=Symbol.for("react.memo"),Ke=Symbol.for("react.lazy"),ze=Symbol.for("react.scope"),vt=Symbol.for("react.debug_trace_mode"),It=Symbol.for("react.legacy_hidden"),Ht=Symbol.for("react.default_value"),lt=Symbol.iterator;function qe(g){if(g==null)return null;if(typeof g=="function")return g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case ce:return"Fragment";case fe:return"Portal";case ye:return"Profiler";case ge:return"StrictMode";case Ue:return"Suspense";case Je:return"SuspenseList"}if(typeof g=="object")switch(g.$$typeof){case Fe:return(g.displayName||"Context")+".Consumer";case De:return(g._context.displayName||"Context")+".Provider";case Re:var x=g.render;return g=g.displayName,g||(g=x.displayName||x.name||"",g=g!==""?"ForwardRef("+g+")":"ForwardRef"),g;case Dt:return x=g.displayName||null,x!==null?x:qe(g.type)||"Memo";case Ke:x=g._payload,g=g._init;try{return qe(g(x))}catch{}}return null}var dt={};function Pt(g,x){if(g=g.contextTypes,!g)return dt;var I={},_;for(_ in g)I[_]=x[_];return I}var Et=null;function ut(g,x){if(g!==x){g.context._currentValue2=g.parentValue,g=g.parent;var I=x.parent;if(g===null){if(I!==null)throw Error(n(401))}else{if(I===null)throw Error(n(401));ut(g,I)}x.context._currentValue2=x.value}}function Ze(g){g.context._currentValue2=g.parentValue,g=g.parent,g!==null&&Ze(g)}function kn(g){var x=g.parent;x!==null&&kn(x),g.context._currentValue2=g.value}function Nt(g,x){if(g.context._currentValue2=g.parentValue,g=g.parent,g===null)throw Error(n(402));g.depth===x.depth?ut(g,x):Nt(g,x)}function Kt(g,x){var I=x.parent;if(I===null)throw Error(n(402));g.depth===I.depth?ut(g,I):Kt(g,I),x.context._currentValue2=x.value}function et(g){var x=Et;x!==g&&(x===null?kn(g):g===null?Ze(x):x.depth===g.depth?ut(x,g):x.depth>g.depth?Nt(x,g):Kt(x,g),Et=g)}var ne={isMounted:function(){return!1},enqueueSetState:function(g,x){g=g._reactInternals,g.queue!==null&&g.queue.push(x)},enqueueReplaceState:function(g,x){g=g._reactInternals,g.replace=!0,g.queue=[x]},enqueueForceUpdate:function(){}};function xe(g,x,I,_){var K=g.state!==void 0?g.state:null;g.updater=ne,g.props=I,g.state=K;var V={queue:[],replace:!1};g._reactInternals=V;var te=x.contextType;if(g.context=typeof te=="object"&&te!==null?te._currentValue2:_,te=x.getDerivedStateFromProps,typeof te=="function"&&(te=te(I,K),K=te==null?K:F({},K,te),g.state=K),typeof x.getDerivedStateFromProps!="function"&&typeof g.getSnapshotBeforeUpdate!="function"&&(typeof g.UNSAFE_componentWillMount=="function"||typeof g.componentWillMount=="function"))if(x=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),x!==g.state&&ne.enqueueReplaceState(g,g.state,null),V.queue!==null&&0<V.queue.length)if(x=V.queue,te=V.replace,V.queue=null,V.replace=!1,te&&x.length===1)g.state=x[0];else{for(V=te?x[0]:g.state,K=!0,te=te?1:0;te<x.length;te++){var ue=x[te];ue=typeof ue=="function"?ue.call(g,V,I,_):ue,ue!=null&&(K?(K=!1,V=F({},V,ue)):F(V,ue))}g.state=V}else V.queue=null}var Se={id:1,overflow:""};function _e(g,x,I){var _=g.id;g=g.overflow;var K=32-Oe(_)-1;_&=~(1<<K),I+=1;var V=32-Oe(x)+K;if(30<V){var te=K-K%5;return V=(_&(1<<te)-1).toString(32),_>>=te,K-=te,{id:1<<32-Oe(x)+K|I<<K|_,overflow:V+g}}return{id:1<<V|I<<K|_,overflow:g}}var Oe=Math.clz32?Math.clz32:pt,tt=Math.log,ft=Math.LN2;function pt(g){return g>>>=0,g===0?32:31-(tt(g)/ft|0)|0}function qt(g,x){return g===x&&(g!==0||1/g===1/x)||g!==g&&x!==x}var Jn=typeof Object.is=="function"?Object.is:qt,Ve=null,wt=null,yt=null,Ge=null,_n=!1,pr=!1,Kn=0,un=null,hr=0;function En(){if(Ve===null)throw Error(n(321));return Ve}function bt(){if(0<hr)throw Error(n(312));return{memoizedState:null,queue:null,next:null}}function Br(){return Ge===null?yt===null?(_n=!1,yt=Ge=bt()):(_n=!0,Ge=yt):Ge.next===null?(_n=!1,Ge=Ge.next=bt()):(_n=!0,Ge=Ge.next),Ge}function Mr(){wt=Ve=null,pr=!1,yt=null,hr=0,Ge=un=null}function no(g,x){return typeof x=="function"?x(g):x}function ht(g,x,I){if(Ve=En(),Ge=Br(),_n){var _=Ge.queue;if(x=_.dispatch,un!==null&&(I=un.get(_),I!==void 0)){un.delete(_),_=Ge.memoizedState;do _=g(_,I.action),I=I.next;while(I!==null);return Ge.memoizedState=_,[_,x]}return[Ge.memoizedState,x]}return g=g===no?typeof x=="function"?x():x:I!==void 0?I(x):x,Ge.memoizedState=g,g=Ge.queue={last:null,dispatch:null},g=g.dispatch=Uo.bind(null,Ve,g),[Ge.memoizedState,g]}function Rr(g,x){if(Ve=En(),Ge=Br(),x=x===void 0?null:x,Ge!==null){var I=Ge.memoizedState;if(I!==null&&x!==null){var _=I[1];e:if(_===null)_=!1;else{for(var K=0;K<_.length&&K<x.length;K++)if(!Jn(x[K],_[K])){_=!1;break e}_=!0}if(_)return I[0]}}return g=g(),Ge.memoizedState=[g,x],g}function Uo(g,x,I){if(25<=hr)throw Error(n(301));if(g===Ve)if(pr=!0,g={action:I,next:null},un===null&&(un=new Map),I=un.get(x),I===void 0)un.set(x,g);else{for(x=I;x.next!==null;)x=x.next;x.next=g}}function zo(){throw Error(n(394))}function An(){}var Or={readContext:function(g){return g._currentValue2},useContext:function(g){return En(),g._currentValue2},useMemo:Rr,useReducer:ht,useRef:function(g){Ve=En(),Ge=Br();var x=Ge.memoizedState;return x===null?(g={current:g},Ge.memoizedState=g):x},useState:function(g){return ht(no,g)},useInsertionEffect:An,useLayoutEffect:function(){},useCallback:function(g,x){return Rr(function(){return g},x)},useImperativeHandle:An,useEffect:An,useDebugValue:An,useDeferredValue:function(g){return En(),g},useTransition:function(){return En(),[!1,zo]},useId:function(){var g=wt.treeContext,x=g.overflow;g=g.id,g=(g&~(1<<32-Oe(g)-1)).toString(32)+x;var I=gr;if(I===null)throw Error(n(404));return x=Kn++,g=":"+I.idPrefix+"R"+g,0<x&&(g+="H"+x.toString(32)),g+":"},useMutableSource:function(g,x){return En(),x(g._source)},useSyncExternalStore:function(g,x,I){if(I===void 0)throw Error(n(407));return I()}},gr=null,Ln=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Ut(g){return console.error(g),null}function dn(){}function mr(g,x,I,_,K,V,te,ue,ke){var Ce=[],Ee=new Set;return x={destination:null,responseState:x,progressiveChunkSize:_===void 0?12800:_,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Ee,pingedTasks:Ce,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:K===void 0?Ut:K,onAllReady:dn,onShellReady:te===void 0?dn:te,onShellError:dn,onFatalError:dn},I=Qn(x,0,null,I,!1,!1),I.parentFlushed=!0,g=Fn(x,g,null,I,Ee,dt,null,Se),Ce.push(g),x}function Fn(g,x,I,_,K,V,te,ue){g.allPendingTasks++,I===null?g.pendingRootTasks++:I.pendingTasks++;var ke={node:x,ping:function(){var Ce=g.pingedTasks;Ce.push(ke),Ce.length===1&&Bt(g)},blockedBoundary:I,blockedSegment:_,abortSet:K,legacyContext:V,context:te,treeContext:ue};return K.add(ke),ke}function Qn(g,x,I,_,K,V){return{status:0,id:-1,index:x,parentFlushed:!1,chunks:[],children:[],formatContext:_,boundary:I,lastPushedText:K,textEmbedded:V}}function fn(g,x){if(g=g.onError(x),g!=null&&typeof g!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof g+'" instead');return g}function Hn(g,x){var I=g.onShellError;I(x),I=g.onFatalError,I(x),g.destination!==null?(g.status=2,g.destination.destroy(x)):(g.status=1,g.fatalError=x)}function zt(g,x,I,_,K){for(Ve={},wt=x,Kn=0,g=I(_,K);pr;)pr=!1,Kn=0,hr+=1,Ge=null,g=I(_,K);return Mr(),g}function ro(g,x,I,_){var K=I.render(),V=_.childContextTypes;if(V!=null){var te=x.legacyContext;if(typeof I.getChildContext!="function")_=te;else{I=I.getChildContext();for(var ue in I)if(!(ue in V))throw Error(n(108,qe(_)||"Unknown",ue));_=F({},te,I)}x.legacyContext=_,gt(g,x,K),x.legacyContext=te}else gt(g,x,K)}function oo(g,x){if(g&&g.defaultProps){x=F({},x),g=g.defaultProps;for(var I in g)x[I]===void 0&&(x[I]=g[I]);return x}return x}function Cn(g,x,I,_,K){if(typeof I=="function")if(I.prototype&&I.prototype.isReactComponent){K=Pt(I,x.legacyContext);var V=I.contextType;V=new I(_,typeof V=="object"&&V!==null?V._currentValue2:K),xe(V,I,_,K),ro(g,x,V,I)}else{V=Pt(I,x.legacyContext),K=zt(g,x,I,_,V);var te=Kn!==0;if(typeof K=="object"&&K!==null&&typeof K.render=="function"&&K.$$typeof===void 0)xe(K,I,_,V),ro(g,x,K,I);else if(te){_=x.treeContext,x.treeContext=_e(_,1,0);try{gt(g,x,K)}finally{x.treeContext=_}}else gt(g,x,K)}else if(typeof I=="string"){switch(K=x.blockedSegment,V=ae(K.chunks,I,_,g.responseState,K.formatContext),K.lastPushedText=!1,te=K.formatContext,K.formatContext=M(te,I,_),hn(g,x,V),K.formatContext=te,I){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;default:K.chunks.push("</",I,">")}K.lastPushedText=!1}else{switch(I){case It:case vt:case ge:case ye:case ce:gt(g,x,_.children);return;case Je:gt(g,x,_.children);return;case ze:throw Error(n(343));case Ue:e:{I=x.blockedBoundary,K=x.blockedSegment,V=_.fallback,_=_.children,te=new Set;var ue={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:te,errorDigest:null},ke=Qn(g,K.chunks.length,ue,K.formatContext,!1,!1);K.children.push(ke),K.lastPushedText=!1;var Ce=Qn(g,0,null,K.formatContext,!1,!1);Ce.parentFlushed=!0,x.blockedBoundary=ue,x.blockedSegment=Ce;try{if(hn(g,x,_),g.responseState.generateStaticMarkup||Ce.lastPushedText&&Ce.textEmbedded&&Ce.chunks.push("<!-- -->"),Ce.status=1,$t(ue,Ce),ue.pendingTasks===0)break e}catch(Ee){Ce.status=4,ue.forceClientRender=!0,ue.errorDigest=fn(g,Ee)}finally{x.blockedBoundary=I,x.blockedSegment=K}x=Fn(g,V,I,ke,te,x.legacyContext,x.context,x.treeContext),g.pingedTasks.push(x)}return}if(typeof I=="object"&&I!==null)switch(I.$$typeof){case Re:if(_=zt(g,x,I.render,_,K),Kn!==0){I=x.treeContext,x.treeContext=_e(I,1,0);try{gt(g,x,_)}finally{x.treeContext=I}}else gt(g,x,_);return;case Dt:I=I.type,_=oo(I,_),Cn(g,x,I,_,K);return;case De:if(K=_.children,I=I._context,_=_.value,V=I._currentValue2,I._currentValue2=_,te=Et,Et=_={parent:te,depth:te===null?0:te.depth+1,context:I,parentValue:V,value:_},x.context=_,gt(g,x,K),g=Et,g===null)throw Error(n(403));_=g.parentValue,g.context._currentValue2=_===Ht?g.context._defaultValue:_,g=Et=g.parent,x.context=g;return;case Fe:_=_.children,_=_(I._currentValue2),gt(g,x,_);return;case Ke:K=I._init,I=K(I._payload),_=oo(I,_),Cn(g,x,I,_,void 0);return}throw Error(n(130,I==null?I:typeof I,""))}}function gt(g,x,I){if(x.node=I,typeof I=="object"&&I!==null){switch(I.$$typeof){case ve:Cn(g,x,I.type,I.props,I.ref);return;case fe:throw Error(n(257));case Ke:var _=I._init;I=_(I._payload),gt(g,x,I);return}if(T(I)){pn(g,x,I);return}if(I===null||typeof I!="object"?_=null:(_=lt&&I[lt]||I["@@iterator"],_=typeof _=="function"?_:null),_&&(_=_.call(I))){if(I=_.next(),!I.done){var K=[];do K.push(I.value),I=_.next();while(!I.done);pn(g,x,K)}return}throw g=Object.prototype.toString.call(I),Error(n(31,g==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":g))}typeof I=="string"?(_=x.blockedSegment,_.lastPushedText=Be(x.blockedSegment.chunks,I,g.responseState,_.lastPushedText)):typeof I=="number"&&(_=x.blockedSegment,_.lastPushedText=Be(x.blockedSegment.chunks,""+I,g.responseState,_.lastPushedText))}function pn(g,x,I){for(var _=I.length,K=0;K<_;K++){var V=x.treeContext;x.treeContext=_e(V,_,K);try{hn(g,x,I[K])}finally{x.treeContext=V}}}function hn(g,x,I){var _=x.blockedSegment.formatContext,K=x.legacyContext,V=x.context;try{return gt(g,x,I)}catch(ke){if(Mr(),typeof ke=="object"&&ke!==null&&typeof ke.then=="function"){I=ke;var te=x.blockedSegment,ue=Qn(g,te.chunks.length,null,te.formatContext,te.lastPushedText,!0);te.children.push(ue),te.lastPushedText=!1,g=Fn(g,x.node,x.blockedBoundary,ue,x.abortSet,x.legacyContext,x.context,x.treeContext).ping,I.then(g,g),x.blockedSegment.formatContext=_,x.legacyContext=K,x.context=V,et(V)}else throw x.blockedSegment.formatContext=_,x.legacyContext=K,x.context=V,et(V),ke}}function Nn(g){var x=g.blockedBoundary;g=g.blockedSegment,g.status=3,gn(this,x,g)}function vr(g,x,I){var _=g.blockedBoundary;g.blockedSegment.status=3,_===null?(x.allPendingTasks--,x.status!==2&&(x.status=2,x.destination!==null&&x.destination.push(null))):(_.pendingTasks--,_.forceClientRender||(_.forceClientRender=!0,g=I===void 0?Error(n(432)):I,_.errorDigest=x.onError(g),_.parentFlushed&&x.clientRenderedBoundaries.push(_)),_.fallbackAbortableTasks.forEach(function(K){return vr(K,x,I)}),_.fallbackAbortableTasks.clear(),x.allPendingTasks--,x.allPendingTasks===0&&(_=x.onAllReady,_()))}function $t(g,x){if(x.chunks.length===0&&x.children.length===1&&x.children[0].boundary===null){var I=x.children[0];I.id=x.id,I.parentFlushed=!0,I.status===1&&$t(g,I)}else g.completedSegments.push(x)}function gn(g,x,I){if(x===null){if(I.parentFlushed){if(g.completedRootSegment!==null)throw Error(n(389));g.completedRootSegment=I}g.pendingRootTasks--,g.pendingRootTasks===0&&(g.onShellError=dn,x=g.onShellReady,x())}else x.pendingTasks--,x.forceClientRender||(x.pendingTasks===0?(I.parentFlushed&&I.status===1&&$t(x,I),x.parentFlushed&&g.completedBoundaries.push(x),x.fallbackAbortableTasks.forEach(Nn,g),x.fallbackAbortableTasks.clear()):I.parentFlushed&&I.status===1&&($t(x,I),x.completedSegments.length===1&&x.parentFlushed&&g.partialBoundaries.push(x)));g.allPendingTasks--,g.allPendingTasks===0&&(g=g.onAllReady,g())}function Bt(g){if(g.status!==2){var x=Et,I=Ln.current;Ln.current=Or;var _=gr;gr=g.responseState;try{var K=g.pingedTasks,V;for(V=0;V<K.length;V++){var te=K[V],ue=g,ke=te.blockedSegment;if(ke.status===0){et(te.context);try{gt(ue,te,te.node),ue.responseState.generateStaticMarkup||ke.lastPushedText&&ke.textEmbedded&&ke.chunks.push("<!-- -->"),te.abortSet.delete(te),ke.status=1,gn(ue,te.blockedBoundary,ke)}catch(_t){if(Mr(),typeof _t=="object"&&_t!==null&&typeof _t.then=="function"){var Ce=te.ping;_t.then(Ce,Ce)}else{te.abortSet.delete(te),ke.status=4;var Ee=te.blockedBoundary,je=_t,Rt=fn(ue,je);if(Ee===null?Hn(ue,je):(Ee.pendingTasks--,Ee.forceClientRender||(Ee.forceClientRender=!0,Ee.errorDigest=Rt,Ee.parentFlushed&&ue.clientRenderedBoundaries.push(Ee))),ue.allPendingTasks--,ue.allPendingTasks===0){var Ot=ue.onAllReady;Ot()}}}finally{}}}K.splice(0,V),g.destination!==null&&Mt(g,g.destination)}catch(_t){fn(g,_t),Hn(g,_t)}finally{gr=_,Ln.current=I,I===Or&&et(x)}}}function Un(g,x,I){switch(I.parentFlushed=!0,I.status){case 0:var _=I.id=g.nextSegmentId++;return I.lastPushedText=!1,I.textEmbedded=!1,g=g.responseState,x.push('<template id="'),x.push(g.placeholderPrefix),g=_.toString(16),x.push(g),x.push('"></template>');case 1:I.status=2;var K=!0;_=I.chunks;var V=0;I=I.children;for(var te=0;te<I.length;te++){for(K=I[te];V<K.index;V++)x.push(_[V]);K=qn(g,x,K)}for(;V<_.length-1;V++)x.push(_[V]);return V<_.length&&(K=x.push(_[V])),K;default:throw Error(n(390))}}function qn(g,x,I){var _=I.boundary;if(_===null)return Un(g,x,I);if(_.parentFlushed=!0,_.forceClientRender)return g.responseState.generateStaticMarkup||(_=_.errorDigest,x.push("<!--$!-->"),x.push("<template"),_&&(x.push(' data-dgst="'),_=C(_),x.push(_),x.push('"')),x.push("></template>")),Un(g,x,I),g=g.responseState.generateStaticMarkup?!0:x.push("<!--/$-->"),g;if(0<_.pendingTasks){_.rootSegmentID=g.nextSegmentId++,0<_.completedSegments.length&&g.partialBoundaries.push(_);var K=g.responseState,V=K.nextSuspenseID++;return K=K.boundaryPrefix+V.toString(16),_=_.id=K,ie(x,g.responseState,_),Un(g,x,I),x.push("<!--/$-->")}if(_.byteSize>g.progressiveChunkSize)return _.rootSegmentID=g.nextSegmentId++,g.completedBoundaries.push(_),ie(x,g.responseState,_.id),Un(g,x,I),x.push("<!--/$-->");if(g.responseState.generateStaticMarkup||x.push("<!--$-->"),I=_.completedSegments,I.length!==1)throw Error(n(391));return qn(g,x,I[0]),g=g.responseState.generateStaticMarkup?!0:x.push("<!--/$-->"),g}function yr(g,x,I){return le(x,g.responseState,I.formatContext,I.id),qn(g,x,I),be(x,I.formatContext)}function Xt(g,x,I){for(var _=I.completedSegments,K=0;K<_.length;K++)mn(g,x,I,_[K]);if(_.length=0,g=g.responseState,_=I.id,I=I.rootSegmentID,x.push(g.startInlineScript),g.sentCompleteBoundaryFunction?x.push('$RC("'):(g.sentCompleteBoundaryFunction=!0,x.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),_===null)throw Error(n(395));return I=I.toString(16),x.push(_),x.push('","'),x.push(g.segmentPrefix),x.push(I),x.push('")<\/script>')}function mn(g,x,I,_){if(_.status===2)return!0;var K=_.id;if(K===-1){if((_.id=I.rootSegmentID)===-1)throw Error(n(392));return yr(g,x,_)}return yr(g,x,_),g=g.responseState,x.push(g.startInlineScript),g.sentCompleteSegmentFunction?x.push('$RS("'):(g.sentCompleteSegmentFunction=!0,x.push('function $RS(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("')),x.push(g.segmentPrefix),K=K.toString(16),x.push(K),x.push('","'),x.push(g.placeholderPrefix),x.push(K),x.push('")<\/script>')}function Mt(g,x){try{var I=g.completedRootSegment;if(I!==null&&g.pendingRootTasks===0){qn(g,x,I),g.completedRootSegment=null;var _=g.responseState.bootstrapChunks;for(I=0;I<_.length-1;I++)x.push(_[I]);I<_.length&&x.push(_[I])}var K=g.clientRenderedBoundaries,V;for(V=0;V<K.length;V++){var te=K[V];_=x;var ue=g.responseState,ke=te.id,Ce=te.errorDigest,Ee=te.errorMessage,je=te.errorComponentStack;if(_.push(ue.startInlineScript),ue.sentClientRenderFunction?_.push('$RX("'):(ue.sentClientRenderFunction=!0,_.push('function $RX(b,c,d,e){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),b._reactRetry&&b._reactRetry())};$RX("')),ke===null)throw Error(n(395));if(_.push(ke),_.push('"'),Ce||Ee||je){_.push(",");var Rt=me(Ce||"");_.push(Rt)}if(Ee||je){_.push(",");var Ot=me(Ee||"");_.push(Ot)}if(je){_.push(",");var _t=me(je);_.push(_t)}if(!_.push(")<\/script>")){g.destination=null,V++,K.splice(0,V);return}}K.splice(0,V);var zn=g.completedBoundaries;for(V=0;V<zn.length;V++)if(!Xt(g,x,zn[V])){g.destination=null,V++,zn.splice(0,V);return}zn.splice(0,V);var vn=g.partialBoundaries;for(V=0;V<vn.length;V++){var wr=vn[V];e:{K=g,te=x;var jn=wr.completedSegments;for(ue=0;ue<jn.length;ue++)if(!mn(K,te,wr,jn[ue])){ue++,jn.splice(0,ue);var $n=!1;break e}jn.splice(0,ue),$n=!0}if(!$n){g.destination=null,V++,vn.splice(0,V);return}}vn.splice(0,V);var Pn=g.completedBoundaries;for(V=0;V<Pn.length;V++)if(!Xt(g,x,Pn[V])){g.destination=null,V++,Pn.splice(0,V);return}Pn.splice(0,V)}finally{g.allPendingTasks===0&&g.pingedTasks.length===0&&g.clientRenderedBoundaries.length===0&&g.completedBoundaries.length===0&&x.push(null)}}function br(g,x){try{var I=g.abortableTasks;I.forEach(function(_){return vr(_,g,x)}),I.clear(),g.destination!==null&&Mt(g,g.destination)}catch(_){fn(g,_),Hn(g,_)}}function xt(){}function jt(g,x,I,_){var K=!1,V=null,te="",ue={push:function(Ce){return Ce!==null&&(te+=Ce),!0},destroy:function(Ce){K=!0,V=Ce}},ke=!1;if(g=mr(g,L(I,x?x.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,xt,void 0,function(){ke=!0}),Bt(g),br(g,_),g.status===1)g.status=2,ue.destroy(g.fatalError);else if(g.status!==2&&g.destination===null){g.destination=ue;try{Mt(g,ue)}catch(Ce){fn(g,Ce),Hn(g,Ce)}}if(K)throw V;if(!ke)throw Error(n(426));return te}return Mo.renderToNodeStream=function(){throw Error(n(207))},Mo.renderToStaticMarkup=function(g,x){return jt(g,x,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Mo.renderToStaticNodeStream=function(){throw Error(n(208))},Mo.renderToString=function(g,x){return jt(g,x,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Mo.version="18.3.1",Mo}var Ms={};/**
15
+ `),V;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":g.push($(x));for(var Ot in I)if(i.call(I,Ot)&&(V=I[Ot],V!=null))switch(Ot){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,x));default:N(g,_,Ot,V)}return g.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return G(g,I,x,_);case"html":return q.insertionMode===0&&g.push("<!DOCTYPE html>"),G(g,I,x,_);default:if(x.indexOf("-")===-1&&typeof I.is!="string")return G(g,I,x,_);g.push($(x)),te=V=null;for(Ce in I)if(i.call(I,Ce)&&(ue=I[Ce],ue!=null))switch(Ce){case"children":V=ue;break;case"dangerouslySetInnerHTML":te=ue;break;case"style":j(g,_,ue);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:f(Ce)&&typeof ue!="function"&&typeof ue!="symbol"&&g.push(" ",Ce,'="',C(ue),'"')}return g.push(">"),W(g,te,V),V}}function ie(g,x,I){if(g.push('<!--$?--><template id="'),I===null)throw Error(n(395));return g.push(I),g.push('"></template>')}function le(g,x,I,_){switch(I.insertionMode){case 0:case 1:return g.push('<div hidden id="'),g.push(x.segmentPrefix),x=_.toString(16),g.push(x),g.push('">');case 2:return g.push('<svg aria-hidden="true" style="display:none" id="'),g.push(x.segmentPrefix),x=_.toString(16),g.push(x),g.push('">');case 3:return g.push('<math aria-hidden="true" style="display:none" id="'),g.push(x.segmentPrefix),x=_.toString(16),g.push(x),g.push('">');case 4:return g.push('<table hidden id="'),g.push(x.segmentPrefix),x=_.toString(16),g.push(x),g.push('">');case 5:return g.push('<table hidden><tbody id="'),g.push(x.segmentPrefix),x=_.toString(16),g.push(x),g.push('">');case 6:return g.push('<table hidden><tr id="'),g.push(x.segmentPrefix),x=_.toString(16),g.push(x),g.push('">');case 7:return g.push('<table hidden><colgroup id="'),g.push(x.segmentPrefix),x=_.toString(16),g.push(x),g.push('">');default:throw Error(n(397))}}function be(g,x){switch(x.insertionMode){case 0:case 1:return g.push("</div>");case 2:return g.push("</svg>");case 3:return g.push("</math>");case 4:return g.push("</table>");case 5:return g.push("</tbody></table>");case 6:return g.push("</tr></table>");case 7:return g.push("</colgroup></table>");default:throw Error(n(397))}}var he=/[<\u2028\u2029]/g;function me(g){return JSON.stringify(g).replace(he,function(x){switch(x){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")}})}function L(g,x){return x=x===void 0?"":x,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:x+"P:",segmentPrefix:x+"S:",boundaryPrefix:x+"B:",idPrefix:x,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:g}}function Be(g,x,I,_){return I.generateStaticMarkup?(g.push(C(x)),!1):(x===""?g=_:(_&&g.push("<!-- -->"),g.push(C(x)),g=!0),g)}var F=Object.assign,ve=Symbol.for("react.element"),fe=Symbol.for("react.portal"),ce=Symbol.for("react.fragment"),ge=Symbol.for("react.strict_mode"),ye=Symbol.for("react.profiler"),De=Symbol.for("react.provider"),Fe=Symbol.for("react.context"),Re=Symbol.for("react.forward_ref"),Ue=Symbol.for("react.suspense"),Je=Symbol.for("react.suspense_list"),Dt=Symbol.for("react.memo"),qe=Symbol.for("react.lazy"),ze=Symbol.for("react.scope"),vt=Symbol.for("react.debug_trace_mode"),It=Symbol.for("react.legacy_hidden"),Ht=Symbol.for("react.default_value"),lt=Symbol.iterator;function Ke(g){if(g==null)return null;if(typeof g=="function")return g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case ce:return"Fragment";case fe:return"Portal";case ye:return"Profiler";case ge:return"StrictMode";case Ue:return"Suspense";case Je:return"SuspenseList"}if(typeof g=="object")switch(g.$$typeof){case Fe:return(g.displayName||"Context")+".Consumer";case De:return(g._context.displayName||"Context")+".Provider";case Re:var x=g.render;return g=g.displayName,g||(g=x.displayName||x.name||"",g=g!==""?"ForwardRef("+g+")":"ForwardRef"),g;case Dt:return x=g.displayName||null,x!==null?x:Ke(g.type)||"Memo";case qe:x=g._payload,g=g._init;try{return Ke(g(x))}catch{}}return null}var dt={};function Pt(g,x){if(g=g.contextTypes,!g)return dt;var I={},_;for(_ in g)I[_]=x[_];return I}var Et=null;function ut(g,x){if(g!==x){g.context._currentValue2=g.parentValue,g=g.parent;var I=x.parent;if(g===null){if(I!==null)throw Error(n(401))}else{if(I===null)throw Error(n(401));ut(g,I)}x.context._currentValue2=x.value}}function Ze(g){g.context._currentValue2=g.parentValue,g=g.parent,g!==null&&Ze(g)}function kn(g){var x=g.parent;x!==null&&kn(x),g.context._currentValue2=g.value}function Nt(g,x){if(g.context._currentValue2=g.parentValue,g=g.parent,g===null)throw Error(n(402));g.depth===x.depth?ut(g,x):Nt(g,x)}function qt(g,x){var I=x.parent;if(I===null)throw Error(n(402));g.depth===I.depth?ut(g,I):qt(g,I),x.context._currentValue2=x.value}function et(g){var x=Et;x!==g&&(x===null?kn(g):g===null?Ze(x):x.depth===g.depth?ut(x,g):x.depth>g.depth?Nt(x,g):qt(x,g),Et=g)}var ne={isMounted:function(){return!1},enqueueSetState:function(g,x){g=g._reactInternals,g.queue!==null&&g.queue.push(x)},enqueueReplaceState:function(g,x){g=g._reactInternals,g.replace=!0,g.queue=[x]},enqueueForceUpdate:function(){}};function xe(g,x,I,_){var q=g.state!==void 0?g.state:null;g.updater=ne,g.props=I,g.state=q;var V={queue:[],replace:!1};g._reactInternals=V;var te=x.contextType;if(g.context=typeof te=="object"&&te!==null?te._currentValue2:_,te=x.getDerivedStateFromProps,typeof te=="function"&&(te=te(I,q),q=te==null?q:F({},q,te),g.state=q),typeof x.getDerivedStateFromProps!="function"&&typeof g.getSnapshotBeforeUpdate!="function"&&(typeof g.UNSAFE_componentWillMount=="function"||typeof g.componentWillMount=="function"))if(x=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),x!==g.state&&ne.enqueueReplaceState(g,g.state,null),V.queue!==null&&0<V.queue.length)if(x=V.queue,te=V.replace,V.queue=null,V.replace=!1,te&&x.length===1)g.state=x[0];else{for(V=te?x[0]:g.state,q=!0,te=te?1:0;te<x.length;te++){var ue=x[te];ue=typeof ue=="function"?ue.call(g,V,I,_):ue,ue!=null&&(q?(q=!1,V=F({},V,ue)):F(V,ue))}g.state=V}else V.queue=null}var Se={id:1,overflow:""};function _e(g,x,I){var _=g.id;g=g.overflow;var q=32-Oe(_)-1;_&=~(1<<q),I+=1;var V=32-Oe(x)+q;if(30<V){var te=q-q%5;return V=(_&(1<<te)-1).toString(32),_>>=te,q-=te,{id:1<<32-Oe(x)+q|I<<q|_,overflow:V+g}}return{id:1<<V|I<<q|_,overflow:g}}var Oe=Math.clz32?Math.clz32:pt,tt=Math.log,ft=Math.LN2;function pt(g){return g>>>=0,g===0?32:31-(tt(g)/ft|0)|0}function Kt(g,x){return g===x&&(g!==0||1/g===1/x)||g!==g&&x!==x}var Jn=typeof Object.is=="function"?Object.is:Kt,Ve=null,wt=null,yt=null,Ge=null,_n=!1,pr=!1,qn=0,un=null,hr=0;function En(){if(Ve===null)throw Error(n(321));return Ve}function bt(){if(0<hr)throw Error(n(312));return{memoizedState:null,queue:null,next:null}}function Br(){return Ge===null?yt===null?(_n=!1,yt=Ge=bt()):(_n=!0,Ge=yt):Ge.next===null?(_n=!1,Ge=Ge.next=bt()):(_n=!0,Ge=Ge.next),Ge}function Mr(){wt=Ve=null,pr=!1,yt=null,hr=0,Ge=un=null}function no(g,x){return typeof x=="function"?x(g):x}function ht(g,x,I){if(Ve=En(),Ge=Br(),_n){var _=Ge.queue;if(x=_.dispatch,un!==null&&(I=un.get(_),I!==void 0)){un.delete(_),_=Ge.memoizedState;do _=g(_,I.action),I=I.next;while(I!==null);return Ge.memoizedState=_,[_,x]}return[Ge.memoizedState,x]}return g=g===no?typeof x=="function"?x():x:I!==void 0?I(x):x,Ge.memoizedState=g,g=Ge.queue={last:null,dispatch:null},g=g.dispatch=Uo.bind(null,Ve,g),[Ge.memoizedState,g]}function Rr(g,x){if(Ve=En(),Ge=Br(),x=x===void 0?null:x,Ge!==null){var I=Ge.memoizedState;if(I!==null&&x!==null){var _=I[1];e:if(_===null)_=!1;else{for(var q=0;q<_.length&&q<x.length;q++)if(!Jn(x[q],_[q])){_=!1;break e}_=!0}if(_)return I[0]}}return g=g(),Ge.memoizedState=[g,x],g}function Uo(g,x,I){if(25<=hr)throw Error(n(301));if(g===Ve)if(pr=!0,g={action:I,next:null},un===null&&(un=new Map),I=un.get(x),I===void 0)un.set(x,g);else{for(x=I;x.next!==null;)x=x.next;x.next=g}}function zo(){throw Error(n(394))}function An(){}var Or={readContext:function(g){return g._currentValue2},useContext:function(g){return En(),g._currentValue2},useMemo:Rr,useReducer:ht,useRef:function(g){Ve=En(),Ge=Br();var x=Ge.memoizedState;return x===null?(g={current:g},Ge.memoizedState=g):x},useState:function(g){return ht(no,g)},useInsertionEffect:An,useLayoutEffect:function(){},useCallback:function(g,x){return Rr(function(){return g},x)},useImperativeHandle:An,useEffect:An,useDebugValue:An,useDeferredValue:function(g){return En(),g},useTransition:function(){return En(),[!1,zo]},useId:function(){var g=wt.treeContext,x=g.overflow;g=g.id,g=(g&~(1<<32-Oe(g)-1)).toString(32)+x;var I=gr;if(I===null)throw Error(n(404));return x=qn++,g=":"+I.idPrefix+"R"+g,0<x&&(g+="H"+x.toString(32)),g+":"},useMutableSource:function(g,x){return En(),x(g._source)},useSyncExternalStore:function(g,x,I){if(I===void 0)throw Error(n(407));return I()}},gr=null,Ln=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Ut(g){return console.error(g),null}function dn(){}function mr(g,x,I,_,q,V,te,ue,ke){var Ce=[],Ee=new Set;return x={destination:null,responseState:x,progressiveChunkSize:_===void 0?12800:_,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Ee,pingedTasks:Ce,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:q===void 0?Ut:q,onAllReady:dn,onShellReady:te===void 0?dn:te,onShellError:dn,onFatalError:dn},I=Qn(x,0,null,I,!1,!1),I.parentFlushed=!0,g=Fn(x,g,null,I,Ee,dt,null,Se),Ce.push(g),x}function Fn(g,x,I,_,q,V,te,ue){g.allPendingTasks++,I===null?g.pendingRootTasks++:I.pendingTasks++;var ke={node:x,ping:function(){var Ce=g.pingedTasks;Ce.push(ke),Ce.length===1&&Bt(g)},blockedBoundary:I,blockedSegment:_,abortSet:q,legacyContext:V,context:te,treeContext:ue};return q.add(ke),ke}function Qn(g,x,I,_,q,V){return{status:0,id:-1,index:x,parentFlushed:!1,chunks:[],children:[],formatContext:_,boundary:I,lastPushedText:q,textEmbedded:V}}function fn(g,x){if(g=g.onError(x),g!=null&&typeof g!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof g+'" instead');return g}function Hn(g,x){var I=g.onShellError;I(x),I=g.onFatalError,I(x),g.destination!==null?(g.status=2,g.destination.destroy(x)):(g.status=1,g.fatalError=x)}function zt(g,x,I,_,q){for(Ve={},wt=x,qn=0,g=I(_,q);pr;)pr=!1,qn=0,hr+=1,Ge=null,g=I(_,q);return Mr(),g}function ro(g,x,I,_){var q=I.render(),V=_.childContextTypes;if(V!=null){var te=x.legacyContext;if(typeof I.getChildContext!="function")_=te;else{I=I.getChildContext();for(var ue in I)if(!(ue in V))throw Error(n(108,Ke(_)||"Unknown",ue));_=F({},te,I)}x.legacyContext=_,gt(g,x,q),x.legacyContext=te}else gt(g,x,q)}function oo(g,x){if(g&&g.defaultProps){x=F({},x),g=g.defaultProps;for(var I in g)x[I]===void 0&&(x[I]=g[I]);return x}return x}function Cn(g,x,I,_,q){if(typeof I=="function")if(I.prototype&&I.prototype.isReactComponent){q=Pt(I,x.legacyContext);var V=I.contextType;V=new I(_,typeof V=="object"&&V!==null?V._currentValue2:q),xe(V,I,_,q),ro(g,x,V,I)}else{V=Pt(I,x.legacyContext),q=zt(g,x,I,_,V);var te=qn!==0;if(typeof q=="object"&&q!==null&&typeof q.render=="function"&&q.$$typeof===void 0)xe(q,I,_,V),ro(g,x,q,I);else if(te){_=x.treeContext,x.treeContext=_e(_,1,0);try{gt(g,x,q)}finally{x.treeContext=_}}else gt(g,x,q)}else if(typeof I=="string"){switch(q=x.blockedSegment,V=ae(q.chunks,I,_,g.responseState,q.formatContext),q.lastPushedText=!1,te=q.formatContext,q.formatContext=M(te,I,_),hn(g,x,V),q.formatContext=te,I){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;default:q.chunks.push("</",I,">")}q.lastPushedText=!1}else{switch(I){case It:case vt:case ge:case ye:case ce:gt(g,x,_.children);return;case Je:gt(g,x,_.children);return;case ze:throw Error(n(343));case Ue:e:{I=x.blockedBoundary,q=x.blockedSegment,V=_.fallback,_=_.children,te=new Set;var ue={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:te,errorDigest:null},ke=Qn(g,q.chunks.length,ue,q.formatContext,!1,!1);q.children.push(ke),q.lastPushedText=!1;var Ce=Qn(g,0,null,q.formatContext,!1,!1);Ce.parentFlushed=!0,x.blockedBoundary=ue,x.blockedSegment=Ce;try{if(hn(g,x,_),g.responseState.generateStaticMarkup||Ce.lastPushedText&&Ce.textEmbedded&&Ce.chunks.push("<!-- -->"),Ce.status=1,$t(ue,Ce),ue.pendingTasks===0)break e}catch(Ee){Ce.status=4,ue.forceClientRender=!0,ue.errorDigest=fn(g,Ee)}finally{x.blockedBoundary=I,x.blockedSegment=q}x=Fn(g,V,I,ke,te,x.legacyContext,x.context,x.treeContext),g.pingedTasks.push(x)}return}if(typeof I=="object"&&I!==null)switch(I.$$typeof){case Re:if(_=zt(g,x,I.render,_,q),qn!==0){I=x.treeContext,x.treeContext=_e(I,1,0);try{gt(g,x,_)}finally{x.treeContext=I}}else gt(g,x,_);return;case Dt:I=I.type,_=oo(I,_),Cn(g,x,I,_,q);return;case De:if(q=_.children,I=I._context,_=_.value,V=I._currentValue2,I._currentValue2=_,te=Et,Et=_={parent:te,depth:te===null?0:te.depth+1,context:I,parentValue:V,value:_},x.context=_,gt(g,x,q),g=Et,g===null)throw Error(n(403));_=g.parentValue,g.context._currentValue2=_===Ht?g.context._defaultValue:_,g=Et=g.parent,x.context=g;return;case Fe:_=_.children,_=_(I._currentValue2),gt(g,x,_);return;case qe:q=I._init,I=q(I._payload),_=oo(I,_),Cn(g,x,I,_,void 0);return}throw Error(n(130,I==null?I:typeof I,""))}}function gt(g,x,I){if(x.node=I,typeof I=="object"&&I!==null){switch(I.$$typeof){case ve:Cn(g,x,I.type,I.props,I.ref);return;case fe:throw Error(n(257));case qe:var _=I._init;I=_(I._payload),gt(g,x,I);return}if(T(I)){pn(g,x,I);return}if(I===null||typeof I!="object"?_=null:(_=lt&&I[lt]||I["@@iterator"],_=typeof _=="function"?_:null),_&&(_=_.call(I))){if(I=_.next(),!I.done){var q=[];do q.push(I.value),I=_.next();while(!I.done);pn(g,x,q)}return}throw g=Object.prototype.toString.call(I),Error(n(31,g==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":g))}typeof I=="string"?(_=x.blockedSegment,_.lastPushedText=Be(x.blockedSegment.chunks,I,g.responseState,_.lastPushedText)):typeof I=="number"&&(_=x.blockedSegment,_.lastPushedText=Be(x.blockedSegment.chunks,""+I,g.responseState,_.lastPushedText))}function pn(g,x,I){for(var _=I.length,q=0;q<_;q++){var V=x.treeContext;x.treeContext=_e(V,_,q);try{hn(g,x,I[q])}finally{x.treeContext=V}}}function hn(g,x,I){var _=x.blockedSegment.formatContext,q=x.legacyContext,V=x.context;try{return gt(g,x,I)}catch(ke){if(Mr(),typeof ke=="object"&&ke!==null&&typeof ke.then=="function"){I=ke;var te=x.blockedSegment,ue=Qn(g,te.chunks.length,null,te.formatContext,te.lastPushedText,!0);te.children.push(ue),te.lastPushedText=!1,g=Fn(g,x.node,x.blockedBoundary,ue,x.abortSet,x.legacyContext,x.context,x.treeContext).ping,I.then(g,g),x.blockedSegment.formatContext=_,x.legacyContext=q,x.context=V,et(V)}else throw x.blockedSegment.formatContext=_,x.legacyContext=q,x.context=V,et(V),ke}}function Nn(g){var x=g.blockedBoundary;g=g.blockedSegment,g.status=3,gn(this,x,g)}function vr(g,x,I){var _=g.blockedBoundary;g.blockedSegment.status=3,_===null?(x.allPendingTasks--,x.status!==2&&(x.status=2,x.destination!==null&&x.destination.push(null))):(_.pendingTasks--,_.forceClientRender||(_.forceClientRender=!0,g=I===void 0?Error(n(432)):I,_.errorDigest=x.onError(g),_.parentFlushed&&x.clientRenderedBoundaries.push(_)),_.fallbackAbortableTasks.forEach(function(q){return vr(q,x,I)}),_.fallbackAbortableTasks.clear(),x.allPendingTasks--,x.allPendingTasks===0&&(_=x.onAllReady,_()))}function $t(g,x){if(x.chunks.length===0&&x.children.length===1&&x.children[0].boundary===null){var I=x.children[0];I.id=x.id,I.parentFlushed=!0,I.status===1&&$t(g,I)}else g.completedSegments.push(x)}function gn(g,x,I){if(x===null){if(I.parentFlushed){if(g.completedRootSegment!==null)throw Error(n(389));g.completedRootSegment=I}g.pendingRootTasks--,g.pendingRootTasks===0&&(g.onShellError=dn,x=g.onShellReady,x())}else x.pendingTasks--,x.forceClientRender||(x.pendingTasks===0?(I.parentFlushed&&I.status===1&&$t(x,I),x.parentFlushed&&g.completedBoundaries.push(x),x.fallbackAbortableTasks.forEach(Nn,g),x.fallbackAbortableTasks.clear()):I.parentFlushed&&I.status===1&&($t(x,I),x.completedSegments.length===1&&x.parentFlushed&&g.partialBoundaries.push(x)));g.allPendingTasks--,g.allPendingTasks===0&&(g=g.onAllReady,g())}function Bt(g){if(g.status!==2){var x=Et,I=Ln.current;Ln.current=Or;var _=gr;gr=g.responseState;try{var q=g.pingedTasks,V;for(V=0;V<q.length;V++){var te=q[V],ue=g,ke=te.blockedSegment;if(ke.status===0){et(te.context);try{gt(ue,te,te.node),ue.responseState.generateStaticMarkup||ke.lastPushedText&&ke.textEmbedded&&ke.chunks.push("<!-- -->"),te.abortSet.delete(te),ke.status=1,gn(ue,te.blockedBoundary,ke)}catch(_t){if(Mr(),typeof _t=="object"&&_t!==null&&typeof _t.then=="function"){var Ce=te.ping;_t.then(Ce,Ce)}else{te.abortSet.delete(te),ke.status=4;var Ee=te.blockedBoundary,je=_t,Rt=fn(ue,je);if(Ee===null?Hn(ue,je):(Ee.pendingTasks--,Ee.forceClientRender||(Ee.forceClientRender=!0,Ee.errorDigest=Rt,Ee.parentFlushed&&ue.clientRenderedBoundaries.push(Ee))),ue.allPendingTasks--,ue.allPendingTasks===0){var Ot=ue.onAllReady;Ot()}}}finally{}}}q.splice(0,V),g.destination!==null&&Mt(g,g.destination)}catch(_t){fn(g,_t),Hn(g,_t)}finally{gr=_,Ln.current=I,I===Or&&et(x)}}}function Un(g,x,I){switch(I.parentFlushed=!0,I.status){case 0:var _=I.id=g.nextSegmentId++;return I.lastPushedText=!1,I.textEmbedded=!1,g=g.responseState,x.push('<template id="'),x.push(g.placeholderPrefix),g=_.toString(16),x.push(g),x.push('"></template>');case 1:I.status=2;var q=!0;_=I.chunks;var V=0;I=I.children;for(var te=0;te<I.length;te++){for(q=I[te];V<q.index;V++)x.push(_[V]);q=Kn(g,x,q)}for(;V<_.length-1;V++)x.push(_[V]);return V<_.length&&(q=x.push(_[V])),q;default:throw Error(n(390))}}function Kn(g,x,I){var _=I.boundary;if(_===null)return Un(g,x,I);if(_.parentFlushed=!0,_.forceClientRender)return g.responseState.generateStaticMarkup||(_=_.errorDigest,x.push("<!--$!-->"),x.push("<template"),_&&(x.push(' data-dgst="'),_=C(_),x.push(_),x.push('"')),x.push("></template>")),Un(g,x,I),g=g.responseState.generateStaticMarkup?!0:x.push("<!--/$-->"),g;if(0<_.pendingTasks){_.rootSegmentID=g.nextSegmentId++,0<_.completedSegments.length&&g.partialBoundaries.push(_);var q=g.responseState,V=q.nextSuspenseID++;return q=q.boundaryPrefix+V.toString(16),_=_.id=q,ie(x,g.responseState,_),Un(g,x,I),x.push("<!--/$-->")}if(_.byteSize>g.progressiveChunkSize)return _.rootSegmentID=g.nextSegmentId++,g.completedBoundaries.push(_),ie(x,g.responseState,_.id),Un(g,x,I),x.push("<!--/$-->");if(g.responseState.generateStaticMarkup||x.push("<!--$-->"),I=_.completedSegments,I.length!==1)throw Error(n(391));return Kn(g,x,I[0]),g=g.responseState.generateStaticMarkup?!0:x.push("<!--/$-->"),g}function yr(g,x,I){return le(x,g.responseState,I.formatContext,I.id),Kn(g,x,I),be(x,I.formatContext)}function Xt(g,x,I){for(var _=I.completedSegments,q=0;q<_.length;q++)mn(g,x,I,_[q]);if(_.length=0,g=g.responseState,_=I.id,I=I.rootSegmentID,x.push(g.startInlineScript),g.sentCompleteBoundaryFunction?x.push('$RC("'):(g.sentCompleteBoundaryFunction=!0,x.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),_===null)throw Error(n(395));return I=I.toString(16),x.push(_),x.push('","'),x.push(g.segmentPrefix),x.push(I),x.push('")<\/script>')}function mn(g,x,I,_){if(_.status===2)return!0;var q=_.id;if(q===-1){if((_.id=I.rootSegmentID)===-1)throw Error(n(392));return yr(g,x,_)}return yr(g,x,_),g=g.responseState,x.push(g.startInlineScript),g.sentCompleteSegmentFunction?x.push('$RS("'):(g.sentCompleteSegmentFunction=!0,x.push('function $RS(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("')),x.push(g.segmentPrefix),q=q.toString(16),x.push(q),x.push('","'),x.push(g.placeholderPrefix),x.push(q),x.push('")<\/script>')}function Mt(g,x){try{var I=g.completedRootSegment;if(I!==null&&g.pendingRootTasks===0){Kn(g,x,I),g.completedRootSegment=null;var _=g.responseState.bootstrapChunks;for(I=0;I<_.length-1;I++)x.push(_[I]);I<_.length&&x.push(_[I])}var q=g.clientRenderedBoundaries,V;for(V=0;V<q.length;V++){var te=q[V];_=x;var ue=g.responseState,ke=te.id,Ce=te.errorDigest,Ee=te.errorMessage,je=te.errorComponentStack;if(_.push(ue.startInlineScript),ue.sentClientRenderFunction?_.push('$RX("'):(ue.sentClientRenderFunction=!0,_.push('function $RX(b,c,d,e){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),b._reactRetry&&b._reactRetry())};$RX("')),ke===null)throw Error(n(395));if(_.push(ke),_.push('"'),Ce||Ee||je){_.push(",");var Rt=me(Ce||"");_.push(Rt)}if(Ee||je){_.push(",");var Ot=me(Ee||"");_.push(Ot)}if(je){_.push(",");var _t=me(je);_.push(_t)}if(!_.push(")<\/script>")){g.destination=null,V++,q.splice(0,V);return}}q.splice(0,V);var zn=g.completedBoundaries;for(V=0;V<zn.length;V++)if(!Xt(g,x,zn[V])){g.destination=null,V++,zn.splice(0,V);return}zn.splice(0,V);var vn=g.partialBoundaries;for(V=0;V<vn.length;V++){var wr=vn[V];e:{q=g,te=x;var jn=wr.completedSegments;for(ue=0;ue<jn.length;ue++)if(!mn(q,te,wr,jn[ue])){ue++,jn.splice(0,ue);var $n=!1;break e}jn.splice(0,ue),$n=!0}if(!$n){g.destination=null,V++,vn.splice(0,V);return}}vn.splice(0,V);var Pn=g.completedBoundaries;for(V=0;V<Pn.length;V++)if(!Xt(g,x,Pn[V])){g.destination=null,V++,Pn.splice(0,V);return}Pn.splice(0,V)}finally{g.allPendingTasks===0&&g.pingedTasks.length===0&&g.clientRenderedBoundaries.length===0&&g.completedBoundaries.length===0&&x.push(null)}}function br(g,x){try{var I=g.abortableTasks;I.forEach(function(_){return vr(_,g,x)}),I.clear(),g.destination!==null&&Mt(g,g.destination)}catch(_){fn(g,_),Hn(g,_)}}function xt(){}function jt(g,x,I,_){var q=!1,V=null,te="",ue={push:function(Ce){return Ce!==null&&(te+=Ce),!0},destroy:function(Ce){q=!0,V=Ce}},ke=!1;if(g=mr(g,L(I,x?x.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,xt,void 0,function(){ke=!0}),Bt(g),br(g,_),g.status===1)g.status=2,ue.destroy(g.fatalError);else if(g.status!==2&&g.destination===null){g.destination=ue;try{Mt(g,ue)}catch(Ce){fn(g,Ce),Hn(g,Ce)}}if(q)throw V;if(!ke)throw Error(n(426));return te}return Mo.renderToNodeStream=function(){throw Error(n(207))},Mo.renderToStaticMarkup=function(g,x){return jt(g,x,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Mo.renderToStaticNodeStream=function(){throw Error(n(208))},Mo.renderToString=function(g,x){return jt(g,x,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Mo.version="18.3.1",Mo}var Ms={};/**
16
16
  * @license React
17
17
  * react-dom-server.browser.production.min.js
18
18
  *
@@ -20,11 +20,11 @@
20
20
  *
21
21
  * This source code is licensed under the MIT license found in the
22
22
  * LICENSE file in the root directory of this source tree.
23
- */var Vu;function vf(){if(Vu)return Ms;Vu=1;var e=B;function n(m){for(var w="https://reactjs.org/docs/error-decoder.html?invariant="+m,P=1;P<arguments.length;P++)w+="&args[]="+encodeURIComponent(arguments[P]);return"Minified React error #"+m+"; visit "+w+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=null,a=0;function o(m,w){if(w.length!==0)if(512<w.length)0<a&&(m.enqueue(new Uint8Array(i.buffer,0,a)),i=new Uint8Array(512),a=0),m.enqueue(w);else{var P=i.length-a;P<w.length&&(P===0?m.enqueue(i):(i.set(w.subarray(0,P),a),m.enqueue(i),w=w.subarray(P)),i=new Uint8Array(512),a=0),i.set(w,a),a+=w.length}}function u(m,w){return o(m,w),!0}function f(m){i&&0<a&&(m.enqueue(new Uint8Array(i.buffer,0,a)),i=null,a=0)}var A=new TextEncoder;function c(m){return A.encode(m)}function d(m){return A.encode(m)}function h(m,w){typeof m.error=="function"?m.error(w):m.close()}var v=Object.prototype.hasOwnProperty,y=/^[: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]*$/,k={},C={};function R(m){return v.call(C,m)?!0:v.call(k,m)?!1:y.test(m)?C[m]=!0:(k[m]=!0,!1)}function E(m,w,P,O,q,J,re){this.acceptsBooleans=w===2||w===3||w===4,this.attributeName=O,this.attributeNamespace=q,this.mustUseProperty=P,this.propertyName=m,this.type=w,this.sanitizeURL=J,this.removeEmptyString=re}var T={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(m){T[m]=new E(m,0,!1,m,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(m){var w=m[0];T[w]=new E(w,1,!1,m[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(m){T[m]=new E(m,2,!1,m.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(m){T[m]=new E(m,2,!1,m,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(m){T[m]=new E(m,3,!1,m.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(m){T[m]=new E(m,3,!0,m,null,!1,!1)}),["capture","download"].forEach(function(m){T[m]=new E(m,4,!1,m,null,!1,!1)}),["cols","rows","size","span"].forEach(function(m){T[m]=new E(m,6,!1,m,null,!1,!1)}),["rowSpan","start"].forEach(function(m){T[m]=new E(m,5,!1,m.toLowerCase(),null,!1,!1)});var Q=/[\-:]([a-z])/g;function M(m){return m[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(m){var w=m.replace(Q,M);T[w]=new E(w,1,!1,m,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(m){var w=m.replace(Q,M);T[w]=new E(w,1,!1,m,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(m){var w=m.replace(Q,M);T[w]=new E(w,1,!1,m,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(m){T[m]=new E(m,1,!1,m.toLowerCase(),null,!1,!1)}),T.xlinkHref=new E("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(m){T[m]=new E(m,1,!1,m.toLowerCase(),null,!0,!0)});var U={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},j=["Webkit","ms","Moz","O"];Object.keys(U).forEach(function(m){j.forEach(function(w){w=w+m.charAt(0).toUpperCase()+m.substring(1),U[w]=U[m]})});var N=/["'&<>]/;function W(m){if(typeof m=="boolean"||typeof m=="number")return""+m;m=""+m;var w=N.exec(m);if(w){var P="",O,q=0;for(O=w.index;O<m.length;O++){switch(m.charCodeAt(O)){case 34:w="&quot;";break;case 38:w="&amp;";break;case 39:w="&#x27;";break;case 60:w="&lt;";break;case 62:w="&gt;";break;default:continue}q!==O&&(P+=m.substring(q,O)),q=O+1,P+=w}m=q!==O?P+m.substring(q,O):P}return m}var ee=/([A-Z])/g,G=/^ms-/,Y=Array.isArray,Z=d("<script>"),$=d("<\/script>"),ae=d('<script src="'),ie=d('<script type="module" src="'),le=d('" async=""><\/script>'),be=/(<\/|<)(s)(cript)/gi;function he(m,w,P,O){return""+w+(P==="s"?"\\u0073":"\\u0053")+O}function me(m,w,P,O,q){m=m===void 0?"":m,w=w===void 0?Z:d('<script nonce="'+W(w)+'">');var J=[];if(P!==void 0&&J.push(w,c((""+P).replace(be,he)),$),O!==void 0)for(P=0;P<O.length;P++)J.push(ae,c(W(O[P])),le);if(q!==void 0)for(O=0;O<q.length;O++)J.push(ie,c(W(q[O])),le);return{bootstrapChunks:J,startInlineScript:w,placeholderPrefix:d(m+"P:"),segmentPrefix:d(m+"S:"),boundaryPrefix:m+"B:",idPrefix:m,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function L(m,w){return{insertionMode:m,selectedValue:w}}function Be(m){return L(m==="http://www.w3.org/2000/svg"?2:m==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function F(m,w,P){switch(w){case"select":return L(1,P.value!=null?P.value:P.defaultValue);case"svg":return L(2,null);case"math":return L(3,null);case"foreignObject":return L(1,null);case"table":return L(4,null);case"thead":case"tbody":case"tfoot":return L(5,null);case"colgroup":return L(7,null);case"tr":return L(6,null)}return 4<=m.insertionMode||m.insertionMode===0?L(1,null):m}var ve=d("<!-- -->");function fe(m,w,P,O){return w===""?O:(O&&m.push(ve),m.push(c(W(w))),!0)}var ce=new Map,ge=d(' style="'),ye=d(":"),De=d(";");function Fe(m,w,P){if(typeof P!="object")throw Error(n(62));w=!0;for(var O in P)if(v.call(P,O)){var q=P[O];if(q!=null&&typeof q!="boolean"&&q!==""){if(O.indexOf("--")===0){var J=c(W(O));q=c(W((""+q).trim()))}else{J=O;var re=ce.get(J);re!==void 0||(re=d(W(J.replace(ee,"-$1").toLowerCase().replace(G,"-ms-"))),ce.set(J,re)),J=re,q=typeof q=="number"?q===0||v.call(U,O)?c(""+q):c(q+"px"):c(W((""+q).trim()))}w?(w=!1,m.push(ge,J,ye,q)):m.push(De,J,ye,q)}}w||m.push(Je)}var Re=d(" "),Ue=d('="'),Je=d('"'),Dt=d('=""');function Ke(m,w,P,O){switch(P){case"style":Fe(m,w,O);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<P.length)||P[0]!=="o"&&P[0]!=="O"||P[1]!=="n"&&P[1]!=="N"){if(w=T.hasOwnProperty(P)?T[P]:null,w!==null){switch(typeof O){case"function":case"symbol":return;case"boolean":if(!w.acceptsBooleans)return}switch(P=c(w.attributeName),w.type){case 3:O&&m.push(Re,P,Dt);break;case 4:O===!0?m.push(Re,P,Dt):O!==!1&&m.push(Re,P,Ue,c(W(O)),Je);break;case 5:isNaN(O)||m.push(Re,P,Ue,c(W(O)),Je);break;case 6:!isNaN(O)&&1<=O&&m.push(Re,P,Ue,c(W(O)),Je);break;default:w.sanitizeURL&&(O=""+O),m.push(Re,P,Ue,c(W(O)),Je)}}else if(R(P)){switch(typeof O){case"function":case"symbol":return;case"boolean":if(w=P.toLowerCase().slice(0,5),w!=="data-"&&w!=="aria-")return}m.push(Re,c(P),Ue,c(W(O)),Je)}}}var ze=d(">"),vt=d("/>");function It(m,w,P){if(w!=null){if(P!=null)throw Error(n(60));if(typeof w!="object"||!("__html"in w))throw Error(n(61));w=w.__html,w!=null&&m.push(c(""+w))}}function Ht(m){var w="";return e.Children.forEach(m,function(P){P!=null&&(w+=P)}),w}var lt=d(' selected=""');function qe(m,w,P,O){m.push(ut(P));var q=P=null,J;for(J in w)if(v.call(w,J)){var re=w[J];if(re!=null)switch(J){case"children":P=re;break;case"dangerouslySetInnerHTML":q=re;break;default:Ke(m,O,J,re)}}return m.push(ze),It(m,q,P),typeof P=="string"?(m.push(c(W(P))),null):P}var dt=d(`
24
- `),Pt=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Et=new Map;function ut(m){var w=Et.get(m);if(w===void 0){if(!Pt.test(m))throw Error(n(65,m));w=d("<"+m),Et.set(m,w)}return w}var Ze=d("<!DOCTYPE html>");function kn(m,w,P,O,q){switch(w){case"select":m.push(ut("select"));var J=null,re=null;for(Le in P)if(v.call(P,Le)){var Ae=P[Le];if(Ae!=null)switch(Le){case"children":J=Ae;break;case"dangerouslySetInnerHTML":re=Ae;break;case"defaultValue":case"value":break;default:Ke(m,O,Le,Ae)}}return m.push(ze),It(m,re,J),J;case"option":re=q.selectedValue,m.push(ut("option"));var Pe=Ae=null,Qe=null,Le=null;for(J in P)if(v.call(P,J)){var nt=P[J];if(nt!=null)switch(J){case"children":Ae=nt;break;case"selected":Qe=nt;break;case"dangerouslySetInnerHTML":Le=nt;break;case"value":Pe=nt;default:Ke(m,O,J,nt)}}if(re!=null)if(P=Pe!==null?""+Pe:Ht(Ae),Y(re)){for(O=0;O<re.length;O++)if(""+re[O]===P){m.push(lt);break}}else""+re===P&&m.push(lt);else Qe&&m.push(lt);return m.push(ze),It(m,Le,Ae),Ae;case"textarea":m.push(ut("textarea")),Le=re=J=null;for(Ae in P)if(v.call(P,Ae)&&(Pe=P[Ae],Pe!=null))switch(Ae){case"children":Le=Pe;break;case"value":J=Pe;break;case"defaultValue":re=Pe;break;case"dangerouslySetInnerHTML":throw Error(n(91));default:Ke(m,O,Ae,Pe)}if(J===null&&re!==null&&(J=re),m.push(ze),Le!=null){if(J!=null)throw Error(n(92));if(Y(Le)&&1<Le.length)throw Error(n(93));J=""+Le}return typeof J=="string"&&J[0]===`
25
- `&&m.push(dt),J!==null&&m.push(c(W(""+J))),null;case"input":m.push(ut("input")),Pe=Le=Ae=J=null;for(re in P)if(v.call(P,re)&&(Qe=P[re],Qe!=null))switch(re){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,"input"));case"defaultChecked":Pe=Qe;break;case"defaultValue":Ae=Qe;break;case"checked":Le=Qe;break;case"value":J=Qe;break;default:Ke(m,O,re,Qe)}return Le!==null?Ke(m,O,"checked",Le):Pe!==null&&Ke(m,O,"checked",Pe),J!==null?Ke(m,O,"value",J):Ae!==null&&Ke(m,O,"value",Ae),m.push(vt),null;case"menuitem":m.push(ut("menuitem"));for(var Yt in P)if(v.call(P,Yt)&&(J=P[Yt],J!=null))switch(Yt){case"children":case"dangerouslySetInnerHTML":throw Error(n(400));default:Ke(m,O,Yt,J)}return m.push(ze),null;case"title":m.push(ut("title")),J=null;for(nt in P)if(v.call(P,nt)&&(re=P[nt],re!=null))switch(nt){case"children":J=re;break;case"dangerouslySetInnerHTML":throw Error(n(434));default:Ke(m,O,nt,re)}return m.push(ze),J;case"listing":case"pre":m.push(ut(w)),re=J=null;for(Pe in P)if(v.call(P,Pe)&&(Ae=P[Pe],Ae!=null))switch(Pe){case"children":J=Ae;break;case"dangerouslySetInnerHTML":re=Ae;break;default:Ke(m,O,Pe,Ae)}if(m.push(ze),re!=null){if(J!=null)throw Error(n(60));if(typeof re!="object"||!("__html"in re))throw Error(n(61));P=re.__html,P!=null&&(typeof P=="string"&&0<P.length&&P[0]===`
23
+ */var Vu;function vf(){if(Vu)return Ms;Vu=1;var e=B;function n(m){for(var w="https://reactjs.org/docs/error-decoder.html?invariant="+m,P=1;P<arguments.length;P++)w+="&args[]="+encodeURIComponent(arguments[P]);return"Minified React error #"+m+"; visit "+w+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=null,a=0;function o(m,w){if(w.length!==0)if(512<w.length)0<a&&(m.enqueue(new Uint8Array(i.buffer,0,a)),i=new Uint8Array(512),a=0),m.enqueue(w);else{var P=i.length-a;P<w.length&&(P===0?m.enqueue(i):(i.set(w.subarray(0,P),a),m.enqueue(i),w=w.subarray(P)),i=new Uint8Array(512),a=0),i.set(w,a),a+=w.length}}function u(m,w){return o(m,w),!0}function f(m){i&&0<a&&(m.enqueue(new Uint8Array(i.buffer,0,a)),i=null,a=0)}var A=new TextEncoder;function c(m){return A.encode(m)}function d(m){return A.encode(m)}function h(m,w){typeof m.error=="function"?m.error(w):m.close()}var v=Object.prototype.hasOwnProperty,y=/^[: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]*$/,k={},C={};function R(m){return v.call(C,m)?!0:v.call(k,m)?!1:y.test(m)?C[m]=!0:(k[m]=!0,!1)}function E(m,w,P,O,K,J,re){this.acceptsBooleans=w===2||w===3||w===4,this.attributeName=O,this.attributeNamespace=K,this.mustUseProperty=P,this.propertyName=m,this.type=w,this.sanitizeURL=J,this.removeEmptyString=re}var T={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(m){T[m]=new E(m,0,!1,m,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(m){var w=m[0];T[w]=new E(w,1,!1,m[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(m){T[m]=new E(m,2,!1,m.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(m){T[m]=new E(m,2,!1,m,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(m){T[m]=new E(m,3,!1,m.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(m){T[m]=new E(m,3,!0,m,null,!1,!1)}),["capture","download"].forEach(function(m){T[m]=new E(m,4,!1,m,null,!1,!1)}),["cols","rows","size","span"].forEach(function(m){T[m]=new E(m,6,!1,m,null,!1,!1)}),["rowSpan","start"].forEach(function(m){T[m]=new E(m,5,!1,m.toLowerCase(),null,!1,!1)});var Q=/[\-:]([a-z])/g;function M(m){return m[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(m){var w=m.replace(Q,M);T[w]=new E(w,1,!1,m,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(m){var w=m.replace(Q,M);T[w]=new E(w,1,!1,m,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(m){var w=m.replace(Q,M);T[w]=new E(w,1,!1,m,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(m){T[m]=new E(m,1,!1,m.toLowerCase(),null,!1,!1)}),T.xlinkHref=new E("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(m){T[m]=new E(m,1,!1,m.toLowerCase(),null,!0,!0)});var U={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},j=["Webkit","ms","Moz","O"];Object.keys(U).forEach(function(m){j.forEach(function(w){w=w+m.charAt(0).toUpperCase()+m.substring(1),U[w]=U[m]})});var N=/["'&<>]/;function W(m){if(typeof m=="boolean"||typeof m=="number")return""+m;m=""+m;var w=N.exec(m);if(w){var P="",O,K=0;for(O=w.index;O<m.length;O++){switch(m.charCodeAt(O)){case 34:w="&quot;";break;case 38:w="&amp;";break;case 39:w="&#x27;";break;case 60:w="&lt;";break;case 62:w="&gt;";break;default:continue}K!==O&&(P+=m.substring(K,O)),K=O+1,P+=w}m=K!==O?P+m.substring(K,O):P}return m}var ee=/([A-Z])/g,G=/^ms-/,Y=Array.isArray,Z=d("<script>"),$=d("<\/script>"),ae=d('<script src="'),ie=d('<script type="module" src="'),le=d('" async=""><\/script>'),be=/(<\/|<)(s)(cript)/gi;function he(m,w,P,O){return""+w+(P==="s"?"\\u0073":"\\u0053")+O}function me(m,w,P,O,K){m=m===void 0?"":m,w=w===void 0?Z:d('<script nonce="'+W(w)+'">');var J=[];if(P!==void 0&&J.push(w,c((""+P).replace(be,he)),$),O!==void 0)for(P=0;P<O.length;P++)J.push(ae,c(W(O[P])),le);if(K!==void 0)for(O=0;O<K.length;O++)J.push(ie,c(W(K[O])),le);return{bootstrapChunks:J,startInlineScript:w,placeholderPrefix:d(m+"P:"),segmentPrefix:d(m+"S:"),boundaryPrefix:m+"B:",idPrefix:m,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function L(m,w){return{insertionMode:m,selectedValue:w}}function Be(m){return L(m==="http://www.w3.org/2000/svg"?2:m==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function F(m,w,P){switch(w){case"select":return L(1,P.value!=null?P.value:P.defaultValue);case"svg":return L(2,null);case"math":return L(3,null);case"foreignObject":return L(1,null);case"table":return L(4,null);case"thead":case"tbody":case"tfoot":return L(5,null);case"colgroup":return L(7,null);case"tr":return L(6,null)}return 4<=m.insertionMode||m.insertionMode===0?L(1,null):m}var ve=d("<!-- -->");function fe(m,w,P,O){return w===""?O:(O&&m.push(ve),m.push(c(W(w))),!0)}var ce=new Map,ge=d(' style="'),ye=d(":"),De=d(";");function Fe(m,w,P){if(typeof P!="object")throw Error(n(62));w=!0;for(var O in P)if(v.call(P,O)){var K=P[O];if(K!=null&&typeof K!="boolean"&&K!==""){if(O.indexOf("--")===0){var J=c(W(O));K=c(W((""+K).trim()))}else{J=O;var re=ce.get(J);re!==void 0||(re=d(W(J.replace(ee,"-$1").toLowerCase().replace(G,"-ms-"))),ce.set(J,re)),J=re,K=typeof K=="number"?K===0||v.call(U,O)?c(""+K):c(K+"px"):c(W((""+K).trim()))}w?(w=!1,m.push(ge,J,ye,K)):m.push(De,J,ye,K)}}w||m.push(Je)}var Re=d(" "),Ue=d('="'),Je=d('"'),Dt=d('=""');function qe(m,w,P,O){switch(P){case"style":Fe(m,w,O);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<P.length)||P[0]!=="o"&&P[0]!=="O"||P[1]!=="n"&&P[1]!=="N"){if(w=T.hasOwnProperty(P)?T[P]:null,w!==null){switch(typeof O){case"function":case"symbol":return;case"boolean":if(!w.acceptsBooleans)return}switch(P=c(w.attributeName),w.type){case 3:O&&m.push(Re,P,Dt);break;case 4:O===!0?m.push(Re,P,Dt):O!==!1&&m.push(Re,P,Ue,c(W(O)),Je);break;case 5:isNaN(O)||m.push(Re,P,Ue,c(W(O)),Je);break;case 6:!isNaN(O)&&1<=O&&m.push(Re,P,Ue,c(W(O)),Je);break;default:w.sanitizeURL&&(O=""+O),m.push(Re,P,Ue,c(W(O)),Je)}}else if(R(P)){switch(typeof O){case"function":case"symbol":return;case"boolean":if(w=P.toLowerCase().slice(0,5),w!=="data-"&&w!=="aria-")return}m.push(Re,c(P),Ue,c(W(O)),Je)}}}var ze=d(">"),vt=d("/>");function It(m,w,P){if(w!=null){if(P!=null)throw Error(n(60));if(typeof w!="object"||!("__html"in w))throw Error(n(61));w=w.__html,w!=null&&m.push(c(""+w))}}function Ht(m){var w="";return e.Children.forEach(m,function(P){P!=null&&(w+=P)}),w}var lt=d(' selected=""');function Ke(m,w,P,O){m.push(ut(P));var K=P=null,J;for(J in w)if(v.call(w,J)){var re=w[J];if(re!=null)switch(J){case"children":P=re;break;case"dangerouslySetInnerHTML":K=re;break;default:qe(m,O,J,re)}}return m.push(ze),It(m,K,P),typeof P=="string"?(m.push(c(W(P))),null):P}var dt=d(`
24
+ `),Pt=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Et=new Map;function ut(m){var w=Et.get(m);if(w===void 0){if(!Pt.test(m))throw Error(n(65,m));w=d("<"+m),Et.set(m,w)}return w}var Ze=d("<!DOCTYPE html>");function kn(m,w,P,O,K){switch(w){case"select":m.push(ut("select"));var J=null,re=null;for(Le in P)if(v.call(P,Le)){var Ae=P[Le];if(Ae!=null)switch(Le){case"children":J=Ae;break;case"dangerouslySetInnerHTML":re=Ae;break;case"defaultValue":case"value":break;default:qe(m,O,Le,Ae)}}return m.push(ze),It(m,re,J),J;case"option":re=K.selectedValue,m.push(ut("option"));var Pe=Ae=null,Qe=null,Le=null;for(J in P)if(v.call(P,J)){var nt=P[J];if(nt!=null)switch(J){case"children":Ae=nt;break;case"selected":Qe=nt;break;case"dangerouslySetInnerHTML":Le=nt;break;case"value":Pe=nt;default:qe(m,O,J,nt)}}if(re!=null)if(P=Pe!==null?""+Pe:Ht(Ae),Y(re)){for(O=0;O<re.length;O++)if(""+re[O]===P){m.push(lt);break}}else""+re===P&&m.push(lt);else Qe&&m.push(lt);return m.push(ze),It(m,Le,Ae),Ae;case"textarea":m.push(ut("textarea")),Le=re=J=null;for(Ae in P)if(v.call(P,Ae)&&(Pe=P[Ae],Pe!=null))switch(Ae){case"children":Le=Pe;break;case"value":J=Pe;break;case"defaultValue":re=Pe;break;case"dangerouslySetInnerHTML":throw Error(n(91));default:qe(m,O,Ae,Pe)}if(J===null&&re!==null&&(J=re),m.push(ze),Le!=null){if(J!=null)throw Error(n(92));if(Y(Le)&&1<Le.length)throw Error(n(93));J=""+Le}return typeof J=="string"&&J[0]===`
25
+ `&&m.push(dt),J!==null&&m.push(c(W(""+J))),null;case"input":m.push(ut("input")),Pe=Le=Ae=J=null;for(re in P)if(v.call(P,re)&&(Qe=P[re],Qe!=null))switch(re){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,"input"));case"defaultChecked":Pe=Qe;break;case"defaultValue":Ae=Qe;break;case"checked":Le=Qe;break;case"value":J=Qe;break;default:qe(m,O,re,Qe)}return Le!==null?qe(m,O,"checked",Le):Pe!==null&&qe(m,O,"checked",Pe),J!==null?qe(m,O,"value",J):Ae!==null&&qe(m,O,"value",Ae),m.push(vt),null;case"menuitem":m.push(ut("menuitem"));for(var Yt in P)if(v.call(P,Yt)&&(J=P[Yt],J!=null))switch(Yt){case"children":case"dangerouslySetInnerHTML":throw Error(n(400));default:qe(m,O,Yt,J)}return m.push(ze),null;case"title":m.push(ut("title")),J=null;for(nt in P)if(v.call(P,nt)&&(re=P[nt],re!=null))switch(nt){case"children":J=re;break;case"dangerouslySetInnerHTML":throw Error(n(434));default:qe(m,O,nt,re)}return m.push(ze),J;case"listing":case"pre":m.push(ut(w)),re=J=null;for(Pe in P)if(v.call(P,Pe)&&(Ae=P[Pe],Ae!=null))switch(Pe){case"children":J=Ae;break;case"dangerouslySetInnerHTML":re=Ae;break;default:qe(m,O,Pe,Ae)}if(m.push(ze),re!=null){if(J!=null)throw Error(n(60));if(typeof re!="object"||!("__html"in re))throw Error(n(61));P=re.__html,P!=null&&(typeof P=="string"&&0<P.length&&P[0]===`
26
26
  `?m.push(dt,c(P)):m.push(c(""+P)))}return typeof J=="string"&&J[0]===`
27
- `&&m.push(dt),J;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":m.push(ut(w));for(var en in P)if(v.call(P,en)&&(J=P[en],J!=null))switch(en){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,w));default:Ke(m,O,en,J)}return m.push(vt),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return qe(m,P,w,O);case"html":return q.insertionMode===0&&m.push(Ze),qe(m,P,w,O);default:if(w.indexOf("-")===-1&&typeof P.is!="string")return qe(m,P,w,O);m.push(ut(w)),re=J=null;for(Qe in P)if(v.call(P,Qe)&&(Ae=P[Qe],Ae!=null))switch(Qe){case"children":J=Ae;break;case"dangerouslySetInnerHTML":re=Ae;break;case"style":Fe(m,O,Ae);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:R(Qe)&&typeof Ae!="function"&&typeof Ae!="symbol"&&m.push(Re,c(Qe),Ue,c(W(Ae)),Je)}return m.push(ze),It(m,re,J),J}}var Nt=d("</"),Kt=d(">"),et=d('<template id="'),ne=d('"></template>'),xe=d("<!--$-->"),Se=d('<!--$?--><template id="'),_e=d('"></template>'),Oe=d("<!--$!-->"),tt=d("<!--/$-->"),ft=d("<template"),pt=d('"'),qt=d(' data-dgst="');d(' data-msg="'),d(' data-stck="');var Jn=d("></template>");function Ve(m,w,P){if(o(m,Se),P===null)throw Error(n(395));return o(m,P),u(m,_e)}var wt=d('<div hidden id="'),yt=d('">'),Ge=d("</div>"),_n=d('<svg aria-hidden="true" style="display:none" id="'),pr=d('">'),Kn=d("</svg>"),un=d('<math aria-hidden="true" style="display:none" id="'),hr=d('">'),En=d("</math>"),bt=d('<table hidden id="'),Br=d('">'),Mr=d("</table>"),no=d('<table hidden><tbody id="'),ht=d('">'),Rr=d("</tbody></table>"),Uo=d('<table hidden><tr id="'),zo=d('">'),An=d("</tr></table>"),Or=d('<table hidden><colgroup id="'),gr=d('">'),Ln=d("</colgroup></table>");function Ut(m,w,P,O){switch(P.insertionMode){case 0:case 1:return o(m,wt),o(m,w.segmentPrefix),o(m,c(O.toString(16))),u(m,yt);case 2:return o(m,_n),o(m,w.segmentPrefix),o(m,c(O.toString(16))),u(m,pr);case 3:return o(m,un),o(m,w.segmentPrefix),o(m,c(O.toString(16))),u(m,hr);case 4:return o(m,bt),o(m,w.segmentPrefix),o(m,c(O.toString(16))),u(m,Br);case 5:return o(m,no),o(m,w.segmentPrefix),o(m,c(O.toString(16))),u(m,ht);case 6:return o(m,Uo),o(m,w.segmentPrefix),o(m,c(O.toString(16))),u(m,zo);case 7:return o(m,Or),o(m,w.segmentPrefix),o(m,c(O.toString(16))),u(m,gr);default:throw Error(n(397))}}function dn(m,w){switch(w.insertionMode){case 0:case 1:return u(m,Ge);case 2:return u(m,Kn);case 3:return u(m,En);case 4:return u(m,Mr);case 5:return u(m,Rr);case 6:return u(m,An);case 7:return u(m,Ln);default:throw Error(n(397))}}var mr=d('function $RS(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("'),Fn=d('$RS("'),Qn=d('","'),fn=d('")<\/script>'),Hn=d('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),zt=d('$RC("'),ro=d('","'),oo=d('")<\/script>'),Cn=d('function $RX(b,c,d,e){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),b._reactRetry&&b._reactRetry())};$RX("'),gt=d('$RX("'),pn=d('"'),hn=d(")<\/script>"),Nn=d(","),vr=/[<\u2028\u2029]/g;function $t(m){return JSON.stringify(m).replace(vr,function(w){switch(w){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 gn=Object.assign,Bt=Symbol.for("react.element"),Un=Symbol.for("react.portal"),qn=Symbol.for("react.fragment"),yr=Symbol.for("react.strict_mode"),Xt=Symbol.for("react.profiler"),mn=Symbol.for("react.provider"),Mt=Symbol.for("react.context"),br=Symbol.for("react.forward_ref"),xt=Symbol.for("react.suspense"),jt=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),I=Symbol.for("react.scope"),_=Symbol.for("react.debug_trace_mode"),K=Symbol.for("react.legacy_hidden"),V=Symbol.for("react.default_value"),te=Symbol.iterator;function ue(m){if(m==null)return null;if(typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case qn:return"Fragment";case Un:return"Portal";case Xt:return"Profiler";case yr:return"StrictMode";case xt:return"Suspense";case jt:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case Mt:return(m.displayName||"Context")+".Consumer";case mn:return(m._context.displayName||"Context")+".Provider";case br:var w=m.render;return m=m.displayName,m||(m=w.displayName||w.name||"",m=m!==""?"ForwardRef("+m+")":"ForwardRef"),m;case g:return w=m.displayName||null,w!==null?w:ue(m.type)||"Memo";case x:w=m._payload,m=m._init;try{return ue(m(w))}catch{}}return null}var ke={};function Ce(m,w){if(m=m.contextTypes,!m)return ke;var P={},O;for(O in m)P[O]=w[O];return P}var Ee=null;function je(m,w){if(m!==w){m.context._currentValue=m.parentValue,m=m.parent;var P=w.parent;if(m===null){if(P!==null)throw Error(n(401))}else{if(P===null)throw Error(n(401));je(m,P)}w.context._currentValue=w.value}}function Rt(m){m.context._currentValue=m.parentValue,m=m.parent,m!==null&&Rt(m)}function Ot(m){var w=m.parent;w!==null&&Ot(w),m.context._currentValue=m.value}function _t(m,w){if(m.context._currentValue=m.parentValue,m=m.parent,m===null)throw Error(n(402));m.depth===w.depth?je(m,w):_t(m,w)}function zn(m,w){var P=w.parent;if(P===null)throw Error(n(402));m.depth===P.depth?je(m,P):zn(m,P),w.context._currentValue=w.value}function vn(m){var w=Ee;w!==m&&(w===null?Ot(m):m===null?Rt(w):w.depth===m.depth?je(w,m):w.depth>m.depth?_t(w,m):zn(w,m),Ee=m)}var wr={isMounted:function(){return!1},enqueueSetState:function(m,w){m=m._reactInternals,m.queue!==null&&m.queue.push(w)},enqueueReplaceState:function(m,w){m=m._reactInternals,m.replace=!0,m.queue=[w]},enqueueForceUpdate:function(){}};function jn(m,w,P,O){var q=m.state!==void 0?m.state:null;m.updater=wr,m.props=P,m.state=q;var J={queue:[],replace:!1};m._reactInternals=J;var re=w.contextType;if(m.context=typeof re=="object"&&re!==null?re._currentValue:O,re=w.getDerivedStateFromProps,typeof re=="function"&&(re=re(P,q),q=re==null?q:gn({},q,re),m.state=q),typeof w.getDerivedStateFromProps!="function"&&typeof m.getSnapshotBeforeUpdate!="function"&&(typeof m.UNSAFE_componentWillMount=="function"||typeof m.componentWillMount=="function"))if(w=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),w!==m.state&&wr.enqueueReplaceState(m,m.state,null),J.queue!==null&&0<J.queue.length)if(w=J.queue,re=J.replace,J.queue=null,J.replace=!1,re&&w.length===1)m.state=w[0];else{for(J=re?w[0]:m.state,q=!0,re=re?1:0;re<w.length;re++){var Ae=w[re];Ae=typeof Ae=="function"?Ae.call(m,J,P,O):Ae,Ae!=null&&(q?(q=!1,J=gn({},J,Ae)):gn(J,Ae))}m.state=J}else J.queue=null}var $n={id:1,overflow:""};function Pn(m,w,P){var O=m.id;m=m.overflow;var q=32-Zn(O)-1;O&=~(1<<q),P+=1;var J=32-Zn(w)+q;if(30<J){var re=q-q%5;return J=(O&(1<<re)-1).toString(32),O>>=re,q-=re,{id:1<<32-Zn(w)+q|P<<q|O,overflow:J+m}}return{id:1<<J|P<<q|O,overflow:m}}var Zn=Math.clz32?Math.clz32:ao,Ui=Math.log,zi=Math.LN2;function ao(m){return m>>>=0,m===0?32:31-(Ui(m)/zi|0)|0}function yn(m,w){return m===w&&(m!==0||1/m===1/w)||m!==m&&w!==w}var ji=typeof Object.is=="function"?Object.is:yn,Tn=null,jo=null,io=null,$e=null,er=!1,so=!1,tr=0,Wn=null,lo=0;function Yn(){if(Tn===null)throw Error(n(321));return Tn}function Zt(){if(0<lo)throw Error(n(312));return{memoizedState:null,queue:null,next:null}}function Wo(){return $e===null?io===null?(er=!1,io=$e=Zt()):(er=!0,$e=io):$e.next===null?(er=!1,$e=$e.next=Zt()):(er=!0,$e=$e.next),$e}function _r(){jo=Tn=null,so=!1,io=null,lo=0,$e=Wn=null}function Ia(m,w){return typeof w=="function"?w(m):w}function co(m,w,P){if(Tn=Yn(),$e=Wo(),er){var O=$e.queue;if(w=O.dispatch,Wn!==null&&(P=Wn.get(O),P!==void 0)){Wn.delete(O),O=$e.memoizedState;do O=m(O,P.action),P=P.next;while(P!==null);return $e.memoizedState=O,[O,w]}return[$e.memoizedState,w]}return m=m===Ia?typeof w=="function"?w():w:P!==void 0?P(w):w,$e.memoizedState=m,m=$e.queue={last:null,dispatch:null},m=m.dispatch=Wi.bind(null,Tn,m),[$e.memoizedState,m]}function Ba(m,w){if(Tn=Yn(),$e=Wo(),w=w===void 0?null:w,$e!==null){var P=$e.memoizedState;if(P!==null&&w!==null){var O=P[1];e:if(O===null)O=!1;else{for(var q=0;q<O.length&&q<w.length;q++)if(!ji(w[q],O[q])){O=!1;break e}O=!0}if(O)return P[0]}}return m=m(),$e.memoizedState=[m,w],m}function Wi(m,w,P){if(25<=lo)throw Error(n(301));if(m===Tn)if(so=!0,m={action:P,next:null},Wn===null&&(Wn=new Map),P=Wn.get(w),P===void 0)Wn.set(w,m);else{for(w=P;w.next!==null;)w=w.next;w.next=m}}function Yi(){throw Error(n(394))}function uo(){}var Ma={readContext:function(m){return m._currentValue},useContext:function(m){return Yn(),m._currentValue},useMemo:Ba,useReducer:co,useRef:function(m){Tn=Yn(),$e=Wo();var w=$e.memoizedState;return w===null?(m={current:m},$e.memoizedState=m):w},useState:function(m){return co(Ia,m)},useInsertionEffect:uo,useLayoutEffect:function(){},useCallback:function(m,w){return Ba(function(){return m},w)},useImperativeHandle:uo,useEffect:uo,useDebugValue:uo,useDeferredValue:function(m){return Yn(),m},useTransition:function(){return Yn(),[!1,Yi]},useId:function(){var m=jo.treeContext,w=m.overflow;m=m.id,m=(m&~(1<<32-Zn(m)-1)).toString(32)+w;var P=Lr;if(P===null)throw Error(n(404));return w=tr++,m=":"+P.idPrefix+"R"+m,0<w&&(m+="H"+w.toString(32)),m+":"},useMutableSource:function(m,w){return Yn(),w(m._source)},useSyncExternalStore:function(m,w,P){if(P===void 0)throw Error(n(407));return P()}},Lr=null,Yo=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Gi(m){return console.error(m),null}function xr(){}function Go(m,w,P,O,q,J,re,Ae,Pe){var Qe=[],Le=new Set;return w={destination:null,responseState:w,progressiveChunkSize:O===void 0?12800:O,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Le,pingedTasks:Qe,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:q===void 0?Gi:q,onAllReady:J===void 0?xr:J,onShellReady:re===void 0?xr:re,onShellError:Ae===void 0?xr:Ae,onFatalError:Pe===void 0?xr:Pe},P=Sr(w,0,null,P,!1,!1),P.parentFlushed=!0,m=Vo(w,m,null,P,Le,ke,null,$n),Qe.push(m),w}function Vo(m,w,P,O,q,J,re,Ae){m.allPendingTasks++,P===null?m.pendingRootTasks++:P.pendingTasks++;var Pe={node:w,ping:function(){var Qe=m.pingedTasks;Qe.push(Pe),Qe.length===1&&Ha(m)},blockedBoundary:P,blockedSegment:O,abortSet:q,legacyContext:J,context:re,treeContext:Ae};return q.add(Pe),Pe}function Sr(m,w,P,O,q,J){return{status:0,id:-1,index:w,parentFlushed:!1,chunks:[],children:[],formatContext:O,boundary:P,lastPushedText:q,textEmbedded:J}}function Fr(m,w){if(m=m.onError(w),m!=null&&typeof m!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof m+'" instead');return m}function Ao(m,w){var P=m.onShellError;P(w),P=m.onFatalError,P(w),m.destination!==null?(m.status=2,h(m.destination,w)):(m.status=1,m.fatalError=w)}function Ra(m,w,P,O,q){for(Tn={},jo=w,tr=0,m=P(O,q);so;)so=!1,tr=0,lo+=1,$e=null,m=P(O,q);return _r(),m}function Oa(m,w,P,O){var q=P.render(),J=O.childContextTypes;if(J!=null){var re=w.legacyContext;if(typeof P.getChildContext!="function")O=re;else{P=P.getChildContext();for(var Ae in P)if(!(Ae in J))throw Error(n(108,ue(O)||"Unknown",Ae));O=gn({},re,P)}w.legacyContext=O,Wt(m,w,q),w.legacyContext=re}else Wt(m,w,q)}function _a(m,w){if(m&&m.defaultProps){w=gn({},w),m=m.defaultProps;for(var P in m)w[P]===void 0&&(w[P]=m[P]);return w}return w}function fo(m,w,P,O,q){if(typeof P=="function")if(P.prototype&&P.prototype.isReactComponent){q=Ce(P,w.legacyContext);var J=P.contextType;J=new P(O,typeof J=="object"&&J!==null?J._currentValue:q),jn(J,P,O,q),Oa(m,w,J,P)}else{J=Ce(P,w.legacyContext),q=Ra(m,w,P,O,J);var re=tr!==0;if(typeof q=="object"&&q!==null&&typeof q.render=="function"&&q.$$typeof===void 0)jn(q,P,O,J),Oa(m,w,q,P);else if(re){O=w.treeContext,w.treeContext=Pn(O,1,0);try{Wt(m,w,q)}finally{w.treeContext=O}}else Wt(m,w,q)}else if(typeof P=="string"){switch(q=w.blockedSegment,J=kn(q.chunks,P,O,m.responseState,q.formatContext),q.lastPushedText=!1,re=q.formatContext,q.formatContext=F(re,P,O),po(m,w,J),q.formatContext=re,P){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;default:q.chunks.push(Nt,c(P),Kt)}q.lastPushedText=!1}else{switch(P){case K:case _:case yr:case Xt:case qn:Wt(m,w,O.children);return;case jt:Wt(m,w,O.children);return;case I:throw Error(n(343));case xt:e:{P=w.blockedBoundary,q=w.blockedSegment,J=O.fallback,O=O.children,re=new Set;var Ae={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:re,errorDigest:null},Pe=Sr(m,q.chunks.length,Ae,q.formatContext,!1,!1);q.children.push(Pe),q.lastPushedText=!1;var Qe=Sr(m,0,null,q.formatContext,!1,!1);Qe.parentFlushed=!0,w.blockedBoundary=Ae,w.blockedSegment=Qe;try{if(po(m,w,O),Qe.lastPushedText&&Qe.textEmbedded&&Qe.chunks.push(ve),Qe.status=1,ho(Ae,Qe),Ae.pendingTasks===0)break e}catch(Le){Qe.status=4,Ae.forceClientRender=!0,Ae.errorDigest=Fr(m,Le)}finally{w.blockedBoundary=P,w.blockedSegment=q}w=Vo(m,J,P,Pe,re,w.legacyContext,w.context,w.treeContext),m.pingedTasks.push(w)}return}if(typeof P=="object"&&P!==null)switch(P.$$typeof){case br:if(O=Ra(m,w,P.render,O,q),tr!==0){P=w.treeContext,w.treeContext=Pn(P,1,0);try{Wt(m,w,O)}finally{w.treeContext=P}}else Wt(m,w,O);return;case g:P=P.type,O=_a(P,O),fo(m,w,P,O,q);return;case mn:if(q=O.children,P=P._context,O=O.value,J=P._currentValue,P._currentValue=O,re=Ee,Ee=O={parent:re,depth:re===null?0:re.depth+1,context:P,parentValue:J,value:O},w.context=O,Wt(m,w,q),m=Ee,m===null)throw Error(n(403));O=m.parentValue,m.context._currentValue=O===V?m.context._defaultValue:O,m=Ee=m.parent,w.context=m;return;case Mt:O=O.children,O=O(P._currentValue),Wt(m,w,O);return;case x:q=P._init,P=q(P._payload),O=_a(P,O),fo(m,w,P,O,void 0);return}throw Error(n(130,P==null?P:typeof P,""))}}function Wt(m,w,P){if(w.node=P,typeof P=="object"&&P!==null){switch(P.$$typeof){case Bt:fo(m,w,P.type,P.props,P.ref);return;case Un:throw Error(n(257));case x:var O=P._init;P=O(P._payload),Wt(m,w,P);return}if(Y(P)){La(m,w,P);return}if(P===null||typeof P!="object"?O=null:(O=te&&P[te]||P["@@iterator"],O=typeof O=="function"?O:null),O&&(O=O.call(P))){if(P=O.next(),!P.done){var q=[];do q.push(P.value),P=O.next();while(!P.done);La(m,w,q)}return}throw m=Object.prototype.toString.call(P),Error(n(31,m==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":m))}typeof P=="string"?(O=w.blockedSegment,O.lastPushedText=fe(w.blockedSegment.chunks,P,m.responseState,O.lastPushedText)):typeof P=="number"&&(O=w.blockedSegment,O.lastPushedText=fe(w.blockedSegment.chunks,""+P,m.responseState,O.lastPushedText))}function La(m,w,P){for(var O=P.length,q=0;q<O;q++){var J=w.treeContext;w.treeContext=Pn(J,O,q);try{po(m,w,P[q])}finally{w.treeContext=J}}}function po(m,w,P){var O=w.blockedSegment.formatContext,q=w.legacyContext,J=w.context;try{return Wt(m,w,P)}catch(Pe){if(_r(),typeof Pe=="object"&&Pe!==null&&typeof Pe.then=="function"){P=Pe;var re=w.blockedSegment,Ae=Sr(m,re.chunks.length,null,re.formatContext,re.lastPushedText,!0);re.children.push(Ae),re.lastPushedText=!1,m=Vo(m,w.node,w.blockedBoundary,Ae,w.abortSet,w.legacyContext,w.context,w.treeContext).ping,P.then(m,m),w.blockedSegment.formatContext=O,w.legacyContext=q,w.context=J,vn(J)}else throw w.blockedSegment.formatContext=O,w.legacyContext=q,w.context=J,vn(J),Pe}}function Vi(m){var w=m.blockedBoundary;m=m.blockedSegment,m.status=3,Qa(this,w,m)}function Fa(m,w,P){var O=m.blockedBoundary;m.blockedSegment.status=3,O===null?(w.allPendingTasks--,w.status!==2&&(w.status=2,w.destination!==null&&w.destination.close())):(O.pendingTasks--,O.forceClientRender||(O.forceClientRender=!0,m=P===void 0?Error(n(432)):P,O.errorDigest=w.onError(m),O.parentFlushed&&w.clientRenderedBoundaries.push(O)),O.fallbackAbortableTasks.forEach(function(q){return Fa(q,w,P)}),O.fallbackAbortableTasks.clear(),w.allPendingTasks--,w.allPendingTasks===0&&(O=w.onAllReady,O()))}function ho(m,w){if(w.chunks.length===0&&w.children.length===1&&w.children[0].boundary===null){var P=w.children[0];P.id=w.id,P.parentFlushed=!0,P.status===1&&ho(m,P)}else m.completedSegments.push(w)}function Qa(m,w,P){if(w===null){if(P.parentFlushed){if(m.completedRootSegment!==null)throw Error(n(389));m.completedRootSegment=P}m.pendingRootTasks--,m.pendingRootTasks===0&&(m.onShellError=xr,w=m.onShellReady,w())}else w.pendingTasks--,w.forceClientRender||(w.pendingTasks===0?(P.parentFlushed&&P.status===1&&ho(w,P),w.parentFlushed&&m.completedBoundaries.push(w),w.fallbackAbortableTasks.forEach(Vi,m),w.fallbackAbortableTasks.clear()):P.parentFlushed&&P.status===1&&(ho(w,P),w.completedSegments.length===1&&w.parentFlushed&&m.partialBoundaries.push(w)));m.allPendingTasks--,m.allPendingTasks===0&&(m=m.onAllReady,m())}function Ha(m){if(m.status!==2){var w=Ee,P=Yo.current;Yo.current=Ma;var O=Lr;Lr=m.responseState;try{var q=m.pingedTasks,J;for(J=0;J<q.length;J++){var re=q[J],Ae=m,Pe=re.blockedSegment;if(Pe.status===0){vn(re.context);try{Wt(Ae,re,re.node),Pe.lastPushedText&&Pe.textEmbedded&&Pe.chunks.push(ve),re.abortSet.delete(re),Pe.status=1,Qa(Ae,re.blockedBoundary,Pe)}catch(tn){if(_r(),typeof tn=="object"&&tn!==null&&typeof tn.then=="function"){var Qe=re.ping;tn.then(Qe,Qe)}else{re.abortSet.delete(re),Pe.status=4;var Le=re.blockedBoundary,nt=tn,Yt=Fr(Ae,nt);if(Le===null?Ao(Ae,nt):(Le.pendingTasks--,Le.forceClientRender||(Le.forceClientRender=!0,Le.errorDigest=Yt,Le.parentFlushed&&Ae.clientRenderedBoundaries.push(Le))),Ae.allPendingTasks--,Ae.allPendingTasks===0){var en=Ae.onAllReady;en()}}}finally{}}}q.splice(0,J),m.destination!==null&&Xo(m,m.destination)}catch(tn){Fr(m,tn),Ao(m,tn)}finally{Lr=O,Yo.current=P,P===Ma&&vn(w)}}}function go(m,w,P){switch(P.parentFlushed=!0,P.status){case 0:var O=P.id=m.nextSegmentId++;return P.lastPushedText=!1,P.textEmbedded=!1,m=m.responseState,o(w,et),o(w,m.placeholderPrefix),m=c(O.toString(16)),o(w,m),u(w,ne);case 1:P.status=2;var q=!0;O=P.chunks;var J=0;P=P.children;for(var re=0;re<P.length;re++){for(q=P[re];J<q.index;J++)o(w,O[J]);q=mo(m,w,q)}for(;J<O.length-1;J++)o(w,O[J]);return J<O.length&&(q=u(w,O[J])),q;default:throw Error(n(390))}}function mo(m,w,P){var O=P.boundary;if(O===null)return go(m,w,P);if(O.parentFlushed=!0,O.forceClientRender)O=O.errorDigest,u(w,Oe),o(w,ft),O&&(o(w,qt),o(w,c(W(O))),o(w,pt)),u(w,Jn),go(m,w,P);else if(0<O.pendingTasks){O.rootSegmentID=m.nextSegmentId++,0<O.completedSegments.length&&m.partialBoundaries.push(O);var q=m.responseState,J=q.nextSuspenseID++;q=d(q.boundaryPrefix+J.toString(16)),O=O.id=q,Ve(w,m.responseState,O),go(m,w,P)}else if(O.byteSize>m.progressiveChunkSize)O.rootSegmentID=m.nextSegmentId++,m.completedBoundaries.push(O),Ve(w,m.responseState,O.id),go(m,w,P);else{if(u(w,xe),P=O.completedSegments,P.length!==1)throw Error(n(391));mo(m,w,P[0])}return u(w,tt)}function Na(m,w,P){return Ut(w,m.responseState,P.formatContext,P.id),mo(m,w,P),dn(w,P.formatContext)}function Ua(m,w,P){for(var O=P.completedSegments,q=0;q<O.length;q++)za(m,w,P,O[q]);if(O.length=0,m=m.responseState,O=P.id,P=P.rootSegmentID,o(w,m.startInlineScript),m.sentCompleteBoundaryFunction?o(w,zt):(m.sentCompleteBoundaryFunction=!0,o(w,Hn)),O===null)throw Error(n(395));return P=c(P.toString(16)),o(w,O),o(w,ro),o(w,m.segmentPrefix),o(w,P),u(w,oo)}function za(m,w,P,O){if(O.status===2)return!0;var q=O.id;if(q===-1){if((O.id=P.rootSegmentID)===-1)throw Error(n(392));return Na(m,w,O)}return Na(m,w,O),m=m.responseState,o(w,m.startInlineScript),m.sentCompleteSegmentFunction?o(w,Fn):(m.sentCompleteSegmentFunction=!0,o(w,mr)),o(w,m.segmentPrefix),q=c(q.toString(16)),o(w,q),o(w,Qn),o(w,m.placeholderPrefix),o(w,q),u(w,fn)}function Xo(m,w){i=new Uint8Array(512),a=0;try{var P=m.completedRootSegment;if(P!==null&&m.pendingRootTasks===0){mo(m,w,P),m.completedRootSegment=null;var O=m.responseState.bootstrapChunks;for(P=0;P<O.length-1;P++)o(w,O[P]);P<O.length&&u(w,O[P])}var q=m.clientRenderedBoundaries,J;for(J=0;J<q.length;J++){var re=q[J];O=w;var Ae=m.responseState,Pe=re.id,Qe=re.errorDigest,Le=re.errorMessage,nt=re.errorComponentStack;if(o(O,Ae.startInlineScript),Ae.sentClientRenderFunction?o(O,gt):(Ae.sentClientRenderFunction=!0,o(O,Cn)),Pe===null)throw Error(n(395));o(O,Pe),o(O,pn),(Qe||Le||nt)&&(o(O,Nn),o(O,c($t(Qe||"")))),(Le||nt)&&(o(O,Nn),o(O,c($t(Le||"")))),nt&&(o(O,Nn),o(O,c($t(nt)))),u(O,hn)}q.splice(0,J);var Yt=m.completedBoundaries;for(J=0;J<Yt.length;J++)Ua(m,w,Yt[J]);Yt.splice(0,J),f(w),i=new Uint8Array(512),a=0;var en=m.partialBoundaries;for(J=0;J<en.length;J++){var tn=en[J];e:{q=m,re=w;var vo=tn.completedSegments;for(Ae=0;Ae<vo.length;Ae++)if(!za(q,re,tn,vo[Ae])){Ae++,vo.splice(0,Ae);var Wa=!1;break e}vo.splice(0,Ae),Wa=!0}if(!Wa){m.destination=null,J++,en.splice(0,J);return}}en.splice(0,J);var Qr=m.completedBoundaries;for(J=0;J<Qr.length;J++)Ua(m,w,Qr[J]);Qr.splice(0,J)}finally{f(w),m.allPendingTasks===0&&m.pingedTasks.length===0&&m.clientRenderedBoundaries.length===0&&m.completedBoundaries.length===0&&w.close()}}function ja(m,w){try{var P=m.abortableTasks;P.forEach(function(O){return Fa(O,m,w)}),P.clear(),m.destination!==null&&Xo(m,m.destination)}catch(O){Fr(m,O),Ao(m,O)}}return Ms.renderToReadableStream=function(m,w){return new Promise(function(P,O){var q,J,re=new Promise(function(Le,nt){J=Le,q=nt}),Ae=Go(m,me(w?w.identifierPrefix:void 0,w?w.nonce:void 0,w?w.bootstrapScriptContent:void 0,w?w.bootstrapScripts:void 0,w?w.bootstrapModules:void 0),Be(w?w.namespaceURI:void 0),w?w.progressiveChunkSize:void 0,w?w.onError:void 0,J,function(){var Le=new ReadableStream({type:"bytes",pull:function(nt){if(Ae.status===1)Ae.status=2,h(nt,Ae.fatalError);else if(Ae.status!==2&&Ae.destination===null){Ae.destination=nt;try{Xo(Ae,nt)}catch(Yt){Fr(Ae,Yt),Ao(Ae,Yt)}}},cancel:function(){ja(Ae)}},{highWaterMark:0});Le.allReady=re,P(Le)},function(Le){re.catch(function(){}),O(Le)},q);if(w&&w.signal){var Pe=w.signal,Qe=function(){ja(Ae,Pe.reason),Pe.removeEventListener("abort",Qe)};Pe.addEventListener("abort",Qe)}Ha(Ae)})},Ms.version="18.3.1",Ms}var Ro={};/**
27
+ `&&m.push(dt),J;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":m.push(ut(w));for(var en in P)if(v.call(P,en)&&(J=P[en],J!=null))switch(en){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,w));default:qe(m,O,en,J)}return m.push(vt),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return Ke(m,P,w,O);case"html":return K.insertionMode===0&&m.push(Ze),Ke(m,P,w,O);default:if(w.indexOf("-")===-1&&typeof P.is!="string")return Ke(m,P,w,O);m.push(ut(w)),re=J=null;for(Qe in P)if(v.call(P,Qe)&&(Ae=P[Qe],Ae!=null))switch(Qe){case"children":J=Ae;break;case"dangerouslySetInnerHTML":re=Ae;break;case"style":Fe(m,O,Ae);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:R(Qe)&&typeof Ae!="function"&&typeof Ae!="symbol"&&m.push(Re,c(Qe),Ue,c(W(Ae)),Je)}return m.push(ze),It(m,re,J),J}}var Nt=d("</"),qt=d(">"),et=d('<template id="'),ne=d('"></template>'),xe=d("<!--$-->"),Se=d('<!--$?--><template id="'),_e=d('"></template>'),Oe=d("<!--$!-->"),tt=d("<!--/$-->"),ft=d("<template"),pt=d('"'),Kt=d(' data-dgst="');d(' data-msg="'),d(' data-stck="');var Jn=d("></template>");function Ve(m,w,P){if(o(m,Se),P===null)throw Error(n(395));return o(m,P),u(m,_e)}var wt=d('<div hidden id="'),yt=d('">'),Ge=d("</div>"),_n=d('<svg aria-hidden="true" style="display:none" id="'),pr=d('">'),qn=d("</svg>"),un=d('<math aria-hidden="true" style="display:none" id="'),hr=d('">'),En=d("</math>"),bt=d('<table hidden id="'),Br=d('">'),Mr=d("</table>"),no=d('<table hidden><tbody id="'),ht=d('">'),Rr=d("</tbody></table>"),Uo=d('<table hidden><tr id="'),zo=d('">'),An=d("</tr></table>"),Or=d('<table hidden><colgroup id="'),gr=d('">'),Ln=d("</colgroup></table>");function Ut(m,w,P,O){switch(P.insertionMode){case 0:case 1:return o(m,wt),o(m,w.segmentPrefix),o(m,c(O.toString(16))),u(m,yt);case 2:return o(m,_n),o(m,w.segmentPrefix),o(m,c(O.toString(16))),u(m,pr);case 3:return o(m,un),o(m,w.segmentPrefix),o(m,c(O.toString(16))),u(m,hr);case 4:return o(m,bt),o(m,w.segmentPrefix),o(m,c(O.toString(16))),u(m,Br);case 5:return o(m,no),o(m,w.segmentPrefix),o(m,c(O.toString(16))),u(m,ht);case 6:return o(m,Uo),o(m,w.segmentPrefix),o(m,c(O.toString(16))),u(m,zo);case 7:return o(m,Or),o(m,w.segmentPrefix),o(m,c(O.toString(16))),u(m,gr);default:throw Error(n(397))}}function dn(m,w){switch(w.insertionMode){case 0:case 1:return u(m,Ge);case 2:return u(m,qn);case 3:return u(m,En);case 4:return u(m,Mr);case 5:return u(m,Rr);case 6:return u(m,An);case 7:return u(m,Ln);default:throw Error(n(397))}}var mr=d('function $RS(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("'),Fn=d('$RS("'),Qn=d('","'),fn=d('")<\/script>'),Hn=d('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),zt=d('$RC("'),ro=d('","'),oo=d('")<\/script>'),Cn=d('function $RX(b,c,d,e){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),b._reactRetry&&b._reactRetry())};$RX("'),gt=d('$RX("'),pn=d('"'),hn=d(")<\/script>"),Nn=d(","),vr=/[<\u2028\u2029]/g;function $t(m){return JSON.stringify(m).replace(vr,function(w){switch(w){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 gn=Object.assign,Bt=Symbol.for("react.element"),Un=Symbol.for("react.portal"),Kn=Symbol.for("react.fragment"),yr=Symbol.for("react.strict_mode"),Xt=Symbol.for("react.profiler"),mn=Symbol.for("react.provider"),Mt=Symbol.for("react.context"),br=Symbol.for("react.forward_ref"),xt=Symbol.for("react.suspense"),jt=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),I=Symbol.for("react.scope"),_=Symbol.for("react.debug_trace_mode"),q=Symbol.for("react.legacy_hidden"),V=Symbol.for("react.default_value"),te=Symbol.iterator;function ue(m){if(m==null)return null;if(typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case Kn:return"Fragment";case Un:return"Portal";case Xt:return"Profiler";case yr:return"StrictMode";case xt:return"Suspense";case jt:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case Mt:return(m.displayName||"Context")+".Consumer";case mn:return(m._context.displayName||"Context")+".Provider";case br:var w=m.render;return m=m.displayName,m||(m=w.displayName||w.name||"",m=m!==""?"ForwardRef("+m+")":"ForwardRef"),m;case g:return w=m.displayName||null,w!==null?w:ue(m.type)||"Memo";case x:w=m._payload,m=m._init;try{return ue(m(w))}catch{}}return null}var ke={};function Ce(m,w){if(m=m.contextTypes,!m)return ke;var P={},O;for(O in m)P[O]=w[O];return P}var Ee=null;function je(m,w){if(m!==w){m.context._currentValue=m.parentValue,m=m.parent;var P=w.parent;if(m===null){if(P!==null)throw Error(n(401))}else{if(P===null)throw Error(n(401));je(m,P)}w.context._currentValue=w.value}}function Rt(m){m.context._currentValue=m.parentValue,m=m.parent,m!==null&&Rt(m)}function Ot(m){var w=m.parent;w!==null&&Ot(w),m.context._currentValue=m.value}function _t(m,w){if(m.context._currentValue=m.parentValue,m=m.parent,m===null)throw Error(n(402));m.depth===w.depth?je(m,w):_t(m,w)}function zn(m,w){var P=w.parent;if(P===null)throw Error(n(402));m.depth===P.depth?je(m,P):zn(m,P),w.context._currentValue=w.value}function vn(m){var w=Ee;w!==m&&(w===null?Ot(m):m===null?Rt(w):w.depth===m.depth?je(w,m):w.depth>m.depth?_t(w,m):zn(w,m),Ee=m)}var wr={isMounted:function(){return!1},enqueueSetState:function(m,w){m=m._reactInternals,m.queue!==null&&m.queue.push(w)},enqueueReplaceState:function(m,w){m=m._reactInternals,m.replace=!0,m.queue=[w]},enqueueForceUpdate:function(){}};function jn(m,w,P,O){var K=m.state!==void 0?m.state:null;m.updater=wr,m.props=P,m.state=K;var J={queue:[],replace:!1};m._reactInternals=J;var re=w.contextType;if(m.context=typeof re=="object"&&re!==null?re._currentValue:O,re=w.getDerivedStateFromProps,typeof re=="function"&&(re=re(P,K),K=re==null?K:gn({},K,re),m.state=K),typeof w.getDerivedStateFromProps!="function"&&typeof m.getSnapshotBeforeUpdate!="function"&&(typeof m.UNSAFE_componentWillMount=="function"||typeof m.componentWillMount=="function"))if(w=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),w!==m.state&&wr.enqueueReplaceState(m,m.state,null),J.queue!==null&&0<J.queue.length)if(w=J.queue,re=J.replace,J.queue=null,J.replace=!1,re&&w.length===1)m.state=w[0];else{for(J=re?w[0]:m.state,K=!0,re=re?1:0;re<w.length;re++){var Ae=w[re];Ae=typeof Ae=="function"?Ae.call(m,J,P,O):Ae,Ae!=null&&(K?(K=!1,J=gn({},J,Ae)):gn(J,Ae))}m.state=J}else J.queue=null}var $n={id:1,overflow:""};function Pn(m,w,P){var O=m.id;m=m.overflow;var K=32-Zn(O)-1;O&=~(1<<K),P+=1;var J=32-Zn(w)+K;if(30<J){var re=K-K%5;return J=(O&(1<<re)-1).toString(32),O>>=re,K-=re,{id:1<<32-Zn(w)+K|P<<K|O,overflow:J+m}}return{id:1<<J|P<<K|O,overflow:m}}var Zn=Math.clz32?Math.clz32:ao,Ui=Math.log,zi=Math.LN2;function ao(m){return m>>>=0,m===0?32:31-(Ui(m)/zi|0)|0}function yn(m,w){return m===w&&(m!==0||1/m===1/w)||m!==m&&w!==w}var ji=typeof Object.is=="function"?Object.is:yn,Tn=null,jo=null,io=null,$e=null,er=!1,so=!1,tr=0,Wn=null,lo=0;function Yn(){if(Tn===null)throw Error(n(321));return Tn}function Zt(){if(0<lo)throw Error(n(312));return{memoizedState:null,queue:null,next:null}}function Wo(){return $e===null?io===null?(er=!1,io=$e=Zt()):(er=!0,$e=io):$e.next===null?(er=!1,$e=$e.next=Zt()):(er=!0,$e=$e.next),$e}function _r(){jo=Tn=null,so=!1,io=null,lo=0,$e=Wn=null}function Ia(m,w){return typeof w=="function"?w(m):w}function co(m,w,P){if(Tn=Yn(),$e=Wo(),er){var O=$e.queue;if(w=O.dispatch,Wn!==null&&(P=Wn.get(O),P!==void 0)){Wn.delete(O),O=$e.memoizedState;do O=m(O,P.action),P=P.next;while(P!==null);return $e.memoizedState=O,[O,w]}return[$e.memoizedState,w]}return m=m===Ia?typeof w=="function"?w():w:P!==void 0?P(w):w,$e.memoizedState=m,m=$e.queue={last:null,dispatch:null},m=m.dispatch=Wi.bind(null,Tn,m),[$e.memoizedState,m]}function Ba(m,w){if(Tn=Yn(),$e=Wo(),w=w===void 0?null:w,$e!==null){var P=$e.memoizedState;if(P!==null&&w!==null){var O=P[1];e:if(O===null)O=!1;else{for(var K=0;K<O.length&&K<w.length;K++)if(!ji(w[K],O[K])){O=!1;break e}O=!0}if(O)return P[0]}}return m=m(),$e.memoizedState=[m,w],m}function Wi(m,w,P){if(25<=lo)throw Error(n(301));if(m===Tn)if(so=!0,m={action:P,next:null},Wn===null&&(Wn=new Map),P=Wn.get(w),P===void 0)Wn.set(w,m);else{for(w=P;w.next!==null;)w=w.next;w.next=m}}function Yi(){throw Error(n(394))}function uo(){}var Ma={readContext:function(m){return m._currentValue},useContext:function(m){return Yn(),m._currentValue},useMemo:Ba,useReducer:co,useRef:function(m){Tn=Yn(),$e=Wo();var w=$e.memoizedState;return w===null?(m={current:m},$e.memoizedState=m):w},useState:function(m){return co(Ia,m)},useInsertionEffect:uo,useLayoutEffect:function(){},useCallback:function(m,w){return Ba(function(){return m},w)},useImperativeHandle:uo,useEffect:uo,useDebugValue:uo,useDeferredValue:function(m){return Yn(),m},useTransition:function(){return Yn(),[!1,Yi]},useId:function(){var m=jo.treeContext,w=m.overflow;m=m.id,m=(m&~(1<<32-Zn(m)-1)).toString(32)+w;var P=Lr;if(P===null)throw Error(n(404));return w=tr++,m=":"+P.idPrefix+"R"+m,0<w&&(m+="H"+w.toString(32)),m+":"},useMutableSource:function(m,w){return Yn(),w(m._source)},useSyncExternalStore:function(m,w,P){if(P===void 0)throw Error(n(407));return P()}},Lr=null,Yo=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Gi(m){return console.error(m),null}function xr(){}function Go(m,w,P,O,K,J,re,Ae,Pe){var Qe=[],Le=new Set;return w={destination:null,responseState:w,progressiveChunkSize:O===void 0?12800:O,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Le,pingedTasks:Qe,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:K===void 0?Gi:K,onAllReady:J===void 0?xr:J,onShellReady:re===void 0?xr:re,onShellError:Ae===void 0?xr:Ae,onFatalError:Pe===void 0?xr:Pe},P=Sr(w,0,null,P,!1,!1),P.parentFlushed=!0,m=Vo(w,m,null,P,Le,ke,null,$n),Qe.push(m),w}function Vo(m,w,P,O,K,J,re,Ae){m.allPendingTasks++,P===null?m.pendingRootTasks++:P.pendingTasks++;var Pe={node:w,ping:function(){var Qe=m.pingedTasks;Qe.push(Pe),Qe.length===1&&Ha(m)},blockedBoundary:P,blockedSegment:O,abortSet:K,legacyContext:J,context:re,treeContext:Ae};return K.add(Pe),Pe}function Sr(m,w,P,O,K,J){return{status:0,id:-1,index:w,parentFlushed:!1,chunks:[],children:[],formatContext:O,boundary:P,lastPushedText:K,textEmbedded:J}}function Fr(m,w){if(m=m.onError(w),m!=null&&typeof m!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof m+'" instead');return m}function Ao(m,w){var P=m.onShellError;P(w),P=m.onFatalError,P(w),m.destination!==null?(m.status=2,h(m.destination,w)):(m.status=1,m.fatalError=w)}function Ra(m,w,P,O,K){for(Tn={},jo=w,tr=0,m=P(O,K);so;)so=!1,tr=0,lo+=1,$e=null,m=P(O,K);return _r(),m}function Oa(m,w,P,O){var K=P.render(),J=O.childContextTypes;if(J!=null){var re=w.legacyContext;if(typeof P.getChildContext!="function")O=re;else{P=P.getChildContext();for(var Ae in P)if(!(Ae in J))throw Error(n(108,ue(O)||"Unknown",Ae));O=gn({},re,P)}w.legacyContext=O,Wt(m,w,K),w.legacyContext=re}else Wt(m,w,K)}function _a(m,w){if(m&&m.defaultProps){w=gn({},w),m=m.defaultProps;for(var P in m)w[P]===void 0&&(w[P]=m[P]);return w}return w}function fo(m,w,P,O,K){if(typeof P=="function")if(P.prototype&&P.prototype.isReactComponent){K=Ce(P,w.legacyContext);var J=P.contextType;J=new P(O,typeof J=="object"&&J!==null?J._currentValue:K),jn(J,P,O,K),Oa(m,w,J,P)}else{J=Ce(P,w.legacyContext),K=Ra(m,w,P,O,J);var re=tr!==0;if(typeof K=="object"&&K!==null&&typeof K.render=="function"&&K.$$typeof===void 0)jn(K,P,O,J),Oa(m,w,K,P);else if(re){O=w.treeContext,w.treeContext=Pn(O,1,0);try{Wt(m,w,K)}finally{w.treeContext=O}}else Wt(m,w,K)}else if(typeof P=="string"){switch(K=w.blockedSegment,J=kn(K.chunks,P,O,m.responseState,K.formatContext),K.lastPushedText=!1,re=K.formatContext,K.formatContext=F(re,P,O),po(m,w,J),K.formatContext=re,P){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;default:K.chunks.push(Nt,c(P),qt)}K.lastPushedText=!1}else{switch(P){case q:case _:case yr:case Xt:case Kn:Wt(m,w,O.children);return;case jt:Wt(m,w,O.children);return;case I:throw Error(n(343));case xt:e:{P=w.blockedBoundary,K=w.blockedSegment,J=O.fallback,O=O.children,re=new Set;var Ae={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:re,errorDigest:null},Pe=Sr(m,K.chunks.length,Ae,K.formatContext,!1,!1);K.children.push(Pe),K.lastPushedText=!1;var Qe=Sr(m,0,null,K.formatContext,!1,!1);Qe.parentFlushed=!0,w.blockedBoundary=Ae,w.blockedSegment=Qe;try{if(po(m,w,O),Qe.lastPushedText&&Qe.textEmbedded&&Qe.chunks.push(ve),Qe.status=1,ho(Ae,Qe),Ae.pendingTasks===0)break e}catch(Le){Qe.status=4,Ae.forceClientRender=!0,Ae.errorDigest=Fr(m,Le)}finally{w.blockedBoundary=P,w.blockedSegment=K}w=Vo(m,J,P,Pe,re,w.legacyContext,w.context,w.treeContext),m.pingedTasks.push(w)}return}if(typeof P=="object"&&P!==null)switch(P.$$typeof){case br:if(O=Ra(m,w,P.render,O,K),tr!==0){P=w.treeContext,w.treeContext=Pn(P,1,0);try{Wt(m,w,O)}finally{w.treeContext=P}}else Wt(m,w,O);return;case g:P=P.type,O=_a(P,O),fo(m,w,P,O,K);return;case mn:if(K=O.children,P=P._context,O=O.value,J=P._currentValue,P._currentValue=O,re=Ee,Ee=O={parent:re,depth:re===null?0:re.depth+1,context:P,parentValue:J,value:O},w.context=O,Wt(m,w,K),m=Ee,m===null)throw Error(n(403));O=m.parentValue,m.context._currentValue=O===V?m.context._defaultValue:O,m=Ee=m.parent,w.context=m;return;case Mt:O=O.children,O=O(P._currentValue),Wt(m,w,O);return;case x:K=P._init,P=K(P._payload),O=_a(P,O),fo(m,w,P,O,void 0);return}throw Error(n(130,P==null?P:typeof P,""))}}function Wt(m,w,P){if(w.node=P,typeof P=="object"&&P!==null){switch(P.$$typeof){case Bt:fo(m,w,P.type,P.props,P.ref);return;case Un:throw Error(n(257));case x:var O=P._init;P=O(P._payload),Wt(m,w,P);return}if(Y(P)){La(m,w,P);return}if(P===null||typeof P!="object"?O=null:(O=te&&P[te]||P["@@iterator"],O=typeof O=="function"?O:null),O&&(O=O.call(P))){if(P=O.next(),!P.done){var K=[];do K.push(P.value),P=O.next();while(!P.done);La(m,w,K)}return}throw m=Object.prototype.toString.call(P),Error(n(31,m==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":m))}typeof P=="string"?(O=w.blockedSegment,O.lastPushedText=fe(w.blockedSegment.chunks,P,m.responseState,O.lastPushedText)):typeof P=="number"&&(O=w.blockedSegment,O.lastPushedText=fe(w.blockedSegment.chunks,""+P,m.responseState,O.lastPushedText))}function La(m,w,P){for(var O=P.length,K=0;K<O;K++){var J=w.treeContext;w.treeContext=Pn(J,O,K);try{po(m,w,P[K])}finally{w.treeContext=J}}}function po(m,w,P){var O=w.blockedSegment.formatContext,K=w.legacyContext,J=w.context;try{return Wt(m,w,P)}catch(Pe){if(_r(),typeof Pe=="object"&&Pe!==null&&typeof Pe.then=="function"){P=Pe;var re=w.blockedSegment,Ae=Sr(m,re.chunks.length,null,re.formatContext,re.lastPushedText,!0);re.children.push(Ae),re.lastPushedText=!1,m=Vo(m,w.node,w.blockedBoundary,Ae,w.abortSet,w.legacyContext,w.context,w.treeContext).ping,P.then(m,m),w.blockedSegment.formatContext=O,w.legacyContext=K,w.context=J,vn(J)}else throw w.blockedSegment.formatContext=O,w.legacyContext=K,w.context=J,vn(J),Pe}}function Vi(m){var w=m.blockedBoundary;m=m.blockedSegment,m.status=3,Qa(this,w,m)}function Fa(m,w,P){var O=m.blockedBoundary;m.blockedSegment.status=3,O===null?(w.allPendingTasks--,w.status!==2&&(w.status=2,w.destination!==null&&w.destination.close())):(O.pendingTasks--,O.forceClientRender||(O.forceClientRender=!0,m=P===void 0?Error(n(432)):P,O.errorDigest=w.onError(m),O.parentFlushed&&w.clientRenderedBoundaries.push(O)),O.fallbackAbortableTasks.forEach(function(K){return Fa(K,w,P)}),O.fallbackAbortableTasks.clear(),w.allPendingTasks--,w.allPendingTasks===0&&(O=w.onAllReady,O()))}function ho(m,w){if(w.chunks.length===0&&w.children.length===1&&w.children[0].boundary===null){var P=w.children[0];P.id=w.id,P.parentFlushed=!0,P.status===1&&ho(m,P)}else m.completedSegments.push(w)}function Qa(m,w,P){if(w===null){if(P.parentFlushed){if(m.completedRootSegment!==null)throw Error(n(389));m.completedRootSegment=P}m.pendingRootTasks--,m.pendingRootTasks===0&&(m.onShellError=xr,w=m.onShellReady,w())}else w.pendingTasks--,w.forceClientRender||(w.pendingTasks===0?(P.parentFlushed&&P.status===1&&ho(w,P),w.parentFlushed&&m.completedBoundaries.push(w),w.fallbackAbortableTasks.forEach(Vi,m),w.fallbackAbortableTasks.clear()):P.parentFlushed&&P.status===1&&(ho(w,P),w.completedSegments.length===1&&w.parentFlushed&&m.partialBoundaries.push(w)));m.allPendingTasks--,m.allPendingTasks===0&&(m=m.onAllReady,m())}function Ha(m){if(m.status!==2){var w=Ee,P=Yo.current;Yo.current=Ma;var O=Lr;Lr=m.responseState;try{var K=m.pingedTasks,J;for(J=0;J<K.length;J++){var re=K[J],Ae=m,Pe=re.blockedSegment;if(Pe.status===0){vn(re.context);try{Wt(Ae,re,re.node),Pe.lastPushedText&&Pe.textEmbedded&&Pe.chunks.push(ve),re.abortSet.delete(re),Pe.status=1,Qa(Ae,re.blockedBoundary,Pe)}catch(tn){if(_r(),typeof tn=="object"&&tn!==null&&typeof tn.then=="function"){var Qe=re.ping;tn.then(Qe,Qe)}else{re.abortSet.delete(re),Pe.status=4;var Le=re.blockedBoundary,nt=tn,Yt=Fr(Ae,nt);if(Le===null?Ao(Ae,nt):(Le.pendingTasks--,Le.forceClientRender||(Le.forceClientRender=!0,Le.errorDigest=Yt,Le.parentFlushed&&Ae.clientRenderedBoundaries.push(Le))),Ae.allPendingTasks--,Ae.allPendingTasks===0){var en=Ae.onAllReady;en()}}}finally{}}}K.splice(0,J),m.destination!==null&&Xo(m,m.destination)}catch(tn){Fr(m,tn),Ao(m,tn)}finally{Lr=O,Yo.current=P,P===Ma&&vn(w)}}}function go(m,w,P){switch(P.parentFlushed=!0,P.status){case 0:var O=P.id=m.nextSegmentId++;return P.lastPushedText=!1,P.textEmbedded=!1,m=m.responseState,o(w,et),o(w,m.placeholderPrefix),m=c(O.toString(16)),o(w,m),u(w,ne);case 1:P.status=2;var K=!0;O=P.chunks;var J=0;P=P.children;for(var re=0;re<P.length;re++){for(K=P[re];J<K.index;J++)o(w,O[J]);K=mo(m,w,K)}for(;J<O.length-1;J++)o(w,O[J]);return J<O.length&&(K=u(w,O[J])),K;default:throw Error(n(390))}}function mo(m,w,P){var O=P.boundary;if(O===null)return go(m,w,P);if(O.parentFlushed=!0,O.forceClientRender)O=O.errorDigest,u(w,Oe),o(w,ft),O&&(o(w,Kt),o(w,c(W(O))),o(w,pt)),u(w,Jn),go(m,w,P);else if(0<O.pendingTasks){O.rootSegmentID=m.nextSegmentId++,0<O.completedSegments.length&&m.partialBoundaries.push(O);var K=m.responseState,J=K.nextSuspenseID++;K=d(K.boundaryPrefix+J.toString(16)),O=O.id=K,Ve(w,m.responseState,O),go(m,w,P)}else if(O.byteSize>m.progressiveChunkSize)O.rootSegmentID=m.nextSegmentId++,m.completedBoundaries.push(O),Ve(w,m.responseState,O.id),go(m,w,P);else{if(u(w,xe),P=O.completedSegments,P.length!==1)throw Error(n(391));mo(m,w,P[0])}return u(w,tt)}function Na(m,w,P){return Ut(w,m.responseState,P.formatContext,P.id),mo(m,w,P),dn(w,P.formatContext)}function Ua(m,w,P){for(var O=P.completedSegments,K=0;K<O.length;K++)za(m,w,P,O[K]);if(O.length=0,m=m.responseState,O=P.id,P=P.rootSegmentID,o(w,m.startInlineScript),m.sentCompleteBoundaryFunction?o(w,zt):(m.sentCompleteBoundaryFunction=!0,o(w,Hn)),O===null)throw Error(n(395));return P=c(P.toString(16)),o(w,O),o(w,ro),o(w,m.segmentPrefix),o(w,P),u(w,oo)}function za(m,w,P,O){if(O.status===2)return!0;var K=O.id;if(K===-1){if((O.id=P.rootSegmentID)===-1)throw Error(n(392));return Na(m,w,O)}return Na(m,w,O),m=m.responseState,o(w,m.startInlineScript),m.sentCompleteSegmentFunction?o(w,Fn):(m.sentCompleteSegmentFunction=!0,o(w,mr)),o(w,m.segmentPrefix),K=c(K.toString(16)),o(w,K),o(w,Qn),o(w,m.placeholderPrefix),o(w,K),u(w,fn)}function Xo(m,w){i=new Uint8Array(512),a=0;try{var P=m.completedRootSegment;if(P!==null&&m.pendingRootTasks===0){mo(m,w,P),m.completedRootSegment=null;var O=m.responseState.bootstrapChunks;for(P=0;P<O.length-1;P++)o(w,O[P]);P<O.length&&u(w,O[P])}var K=m.clientRenderedBoundaries,J;for(J=0;J<K.length;J++){var re=K[J];O=w;var Ae=m.responseState,Pe=re.id,Qe=re.errorDigest,Le=re.errorMessage,nt=re.errorComponentStack;if(o(O,Ae.startInlineScript),Ae.sentClientRenderFunction?o(O,gt):(Ae.sentClientRenderFunction=!0,o(O,Cn)),Pe===null)throw Error(n(395));o(O,Pe),o(O,pn),(Qe||Le||nt)&&(o(O,Nn),o(O,c($t(Qe||"")))),(Le||nt)&&(o(O,Nn),o(O,c($t(Le||"")))),nt&&(o(O,Nn),o(O,c($t(nt)))),u(O,hn)}K.splice(0,J);var Yt=m.completedBoundaries;for(J=0;J<Yt.length;J++)Ua(m,w,Yt[J]);Yt.splice(0,J),f(w),i=new Uint8Array(512),a=0;var en=m.partialBoundaries;for(J=0;J<en.length;J++){var tn=en[J];e:{K=m,re=w;var vo=tn.completedSegments;for(Ae=0;Ae<vo.length;Ae++)if(!za(K,re,tn,vo[Ae])){Ae++,vo.splice(0,Ae);var Wa=!1;break e}vo.splice(0,Ae),Wa=!0}if(!Wa){m.destination=null,J++,en.splice(0,J);return}}en.splice(0,J);var Qr=m.completedBoundaries;for(J=0;J<Qr.length;J++)Ua(m,w,Qr[J]);Qr.splice(0,J)}finally{f(w),m.allPendingTasks===0&&m.pingedTasks.length===0&&m.clientRenderedBoundaries.length===0&&m.completedBoundaries.length===0&&w.close()}}function ja(m,w){try{var P=m.abortableTasks;P.forEach(function(O){return Fa(O,m,w)}),P.clear(),m.destination!==null&&Xo(m,m.destination)}catch(O){Fr(m,O),Ao(m,O)}}return Ms.renderToReadableStream=function(m,w){return new Promise(function(P,O){var K,J,re=new Promise(function(Le,nt){J=Le,K=nt}),Ae=Go(m,me(w?w.identifierPrefix:void 0,w?w.nonce:void 0,w?w.bootstrapScriptContent:void 0,w?w.bootstrapScripts:void 0,w?w.bootstrapModules:void 0),Be(w?w.namespaceURI:void 0),w?w.progressiveChunkSize:void 0,w?w.onError:void 0,J,function(){var Le=new ReadableStream({type:"bytes",pull:function(nt){if(Ae.status===1)Ae.status=2,h(nt,Ae.fatalError);else if(Ae.status!==2&&Ae.destination===null){Ae.destination=nt;try{Xo(Ae,nt)}catch(Yt){Fr(Ae,Yt),Ao(Ae,Yt)}}},cancel:function(){ja(Ae)}},{highWaterMark:0});Le.allReady=re,P(Le)},function(Le){re.catch(function(){}),O(Le)},K);if(w&&w.signal){var Pe=w.signal,Qe=function(){ja(Ae,Pe.reason),Pe.removeEventListener("abort",Qe)};Pe.addEventListener("abort",Qe)}Ha(Ae)})},Ms.version="18.3.1",Ms}var Ro={};/**
28
28
  * @license React
29
29
  * react-dom-server-legacy.browser.development.js
30
30
  *
@@ -32,15 +32,15 @@
32
32
  *
33
33
  * This source code is licensed under the MIT license found in the
34
34
  * LICENSE file in the root directory of this source tree.
35
- */var Xu;function yf(){return Xu||(Xu=1,process.env.NODE_ENV!=="production"&&function(){var e=B,n="18.3.1",i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function a(t){{for(var r=arguments.length,s=new Array(r>1?r-1:0),p=1;p<r;p++)s[p-1]=arguments[p];u("warn",t,s)}}function o(t){{for(var r=arguments.length,s=new Array(r>1?r-1:0),p=1;p<r;p++)s[p-1]=arguments[p];u("error",t,s)}}function u(t,r,s){{var p=i.ReactDebugCurrentFrame,b=p.getStackAddendum();b!==""&&(r+="%s",s=s.concat([b]));var S=s.map(function(D){return String(D)});S.unshift("Warning: "+r),Function.prototype.apply.call(console[t],console,S)}}function f(t){t()}function A(t){}function c(t,r){d(t,r)}function d(t,r){return t.push(r)}function h(t){}function v(t){t.push(null)}function y(t){return t}function k(t){return t}function C(t,r){t.destroy(r)}function R(t){{var r=typeof Symbol=="function"&&Symbol.toStringTag,s=r&&t[Symbol.toStringTag]||t.constructor.name||"Object";return s}}function E(t){try{return T(t),!1}catch{return!0}}function T(t){return""+t}function Q(t,r){if(E(t))return o("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",r,R(t)),T(t)}function M(t,r){if(E(t))return o("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",r,R(t)),T(t)}function U(t){if(E(t))return o("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",R(t)),T(t)}var j=Object.prototype.hasOwnProperty,N=0,W=1,ee=2,G=3,Y=4,Z=5,$=6,ae=":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",ie=ae+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",le=new RegExp("^["+ae+"]["+ie+"]*$"),be={},he={};function me(t){return j.call(he,t)?!0:j.call(be,t)?!1:le.test(t)?(he[t]=!0,!0):(be[t]=!0,o("Invalid attribute name: `%s`",t),!1)}function L(t,r,s,p){if(s!==null&&s.type===N)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":{if(s!==null)return!s.acceptsBooleans;var b=t.toLowerCase().slice(0,5);return b!=="data-"&&b!=="aria-"}default:return!1}}function Be(t){return ve.hasOwnProperty(t)?ve[t]:null}function F(t,r,s,p,b,S,D){this.acceptsBooleans=r===ee||r===G||r===Y,this.attributeName=p,this.attributeNamespace=b,this.mustUseProperty=s,this.propertyName=t,this.type=r,this.sanitizeURL=S,this.removeEmptyString=D}var ve={},fe=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];fe.forEach(function(t){ve[t]=new F(t,N,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var r=t[0],s=t[1];ve[r]=new F(r,W,!1,s,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){ve[t]=new F(t,ee,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){ve[t]=new F(t,ee,!1,t,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(t){ve[t]=new F(t,G,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){ve[t]=new F(t,G,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){ve[t]=new F(t,Y,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){ve[t]=new F(t,$,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){ve[t]=new F(t,Z,!1,t.toLowerCase(),null,!1,!1)});var ce=/[\-\:]([a-z])/g,ge=function(t){return t[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(t){var r=t.replace(ce,ge);ve[r]=new F(r,W,!1,t,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(t){var r=t.replace(ce,ge);ve[r]=new F(r,W,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var r=t.replace(ce,ge);ve[r]=new F(r,W,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){ve[t]=new F(t,W,!1,t.toLowerCase(),null,!1,!1)});var ye="xlinkHref";ve[ye]=new F("xlinkHref",W,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){ve[t]=new F(t,W,!1,t.toLowerCase(),null,!0,!0)});var De={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function Fe(t,r){return t+r.charAt(0).toUpperCase()+r.substring(1)}var Re=["Webkit","ms","Moz","O"];Object.keys(De).forEach(function(t){Re.forEach(function(r){De[Fe(r,t)]=De[t]})});var Ue={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Je(t,r){Ue[r.type]||r.onChange||r.onInput||r.readOnly||r.disabled||r.value==null||o("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),r.onChange||r.readOnly||r.disabled||r.checked==null||o("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Dt(t,r){if(t.indexOf("-")===-1)return typeof r.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ke={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},ze={},vt=new RegExp("^(aria)-["+ie+"]*$"),It=new RegExp("^(aria)[A-Z]["+ie+"]*$");function Ht(t,r){{if(j.call(ze,r)&&ze[r])return!0;if(It.test(r)){var s="aria-"+r.slice(4).toLowerCase(),p=Ke.hasOwnProperty(s)?s:null;if(p==null)return o("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",r),ze[r]=!0,!0;if(r!==p)return o("Invalid ARIA attribute `%s`. Did you mean `%s`?",r,p),ze[r]=!0,!0}if(vt.test(r)){var b=r.toLowerCase(),S=Ke.hasOwnProperty(b)?b:null;if(S==null)return ze[r]=!0,!1;if(r!==S)return o("Unknown ARIA attribute `%s`. Did you mean `%s`?",r,S),ze[r]=!0,!0}}return!0}function lt(t,r){{var s=[];for(var p in r){var b=Ht(t,p);b||s.push(p)}var S=s.map(function(D){return"`"+D+"`"}).join(", ");s.length===1?o("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",S,t):s.length>1&&o("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",S,t)}}function qe(t,r){Dt(t,r)||lt(t,r)}var dt=!1;function Pt(t,r){{if(t!=="input"&&t!=="textarea"&&t!=="select")return;r!=null&&r.value===null&&!dt&&(dt=!0,t==="select"&&r.multiple?o("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",t):o("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",t))}}var Et={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},ut=function(){};{var Ze={},kn=/^on./,Nt=/^on[^A-Z]/,Kt=new RegExp("^(aria)-["+ie+"]*$"),et=new RegExp("^(aria)[A-Z]["+ie+"]*$");ut=function(t,r,s,p){if(j.call(Ze,r)&&Ze[r])return!0;var b=r.toLowerCase();if(b==="onfocusin"||b==="onfocusout")return o("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Ze[r]=!0,!0;if(p!=null){var S=p.registrationNameDependencies,D=p.possibleRegistrationNames;if(S.hasOwnProperty(r))return!0;var H=D.hasOwnProperty(b)?D[b]:null;if(H!=null)return o("Invalid event handler property `%s`. Did you mean `%s`?",r,H),Ze[r]=!0,!0;if(kn.test(r))return o("Unknown event handler property `%s`. It will be ignored.",r),Ze[r]=!0,!0}else if(kn.test(r))return Nt.test(r)&&o("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",r),Ze[r]=!0,!0;if(Kt.test(r)||et.test(r))return!0;if(b==="innerhtml")return o("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Ze[r]=!0,!0;if(b==="aria")return o("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Ze[r]=!0,!0;if(b==="is"&&s!==null&&s!==void 0&&typeof s!="string")return o("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof s),Ze[r]=!0,!0;if(typeof s=="number"&&isNaN(s))return o("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",r),Ze[r]=!0,!0;var X=Be(r),oe=X!==null&&X.type===N;if(Et.hasOwnProperty(b)){var se=Et[b];if(se!==r)return o("Invalid DOM property `%s`. Did you mean `%s`?",r,se),Ze[r]=!0,!0}else if(!oe&&r!==b)return o("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",r,b),Ze[r]=!0,!0;return typeof s=="boolean"&&L(r,s,X)?(s?o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',s,r,r,s,r):o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',s,r,r,s,r,r,r),Ze[r]=!0,!0):oe?!0:L(r,s,X)?(Ze[r]=!0,!1):((s==="false"||s==="true")&&X!==null&&X.type===G&&(o("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",s,r,s==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',r,s),Ze[r]=!0),!0)}}var ne=function(t,r,s){{var p=[];for(var b in r){var S=ut(t,b,r[b],s);S||p.push(b)}var D=p.map(function(H){return"`"+H+"`"}).join(", ");p.length===1?o("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",D,t):p.length>1&&o("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",D,t)}};function xe(t,r,s){Dt(t,r)||ne(t,r,s)}var Se=function(){};{var _e=/^(?:webkit|moz|o)[A-Z]/,Oe=/^-ms-/,tt=/-(.)/g,ft=/;\s*$/,pt={},qt={},Jn=!1,Ve=!1,wt=function(t){return t.replace(tt,function(r,s){return s.toUpperCase()})},yt=function(t){pt.hasOwnProperty(t)&&pt[t]||(pt[t]=!0,o("Unsupported style property %s. Did you mean %s?",t,wt(t.replace(Oe,"ms-"))))},Ge=function(t){pt.hasOwnProperty(t)&&pt[t]||(pt[t]=!0,o("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1)))},_n=function(t,r){qt.hasOwnProperty(r)&&qt[r]||(qt[r]=!0,o(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,r.replace(ft,"")))},pr=function(t,r){Jn||(Jn=!0,o("`NaN` is an invalid value for the `%s` css style property.",t))},Kn=function(t,r){Ve||(Ve=!0,o("`Infinity` is an invalid value for the `%s` css style property.",t))};Se=function(t,r){t.indexOf("-")>-1?yt(t):_e.test(t)?Ge(t):ft.test(r)&&_n(t,r),typeof r=="number"&&(isNaN(r)?pr(t,r):isFinite(r)||Kn(t,r))}}var un=Se,hr=/["'&<>]/;function En(t){U(t);var r=""+t,s=hr.exec(r);if(!s)return r;var p,b="",S,D=0;for(S=s.index;S<r.length;S++){switch(r.charCodeAt(S)){case 34:p="&quot;";break;case 38:p="&amp;";break;case 39:p="&#x27;";break;case 60:p="&lt;";break;case 62:p="&gt;";break;default:continue}D!==S&&(b+=r.substring(D,S)),D=S+1,b+=p}return D!==S?b+r.substring(D,S):b}function bt(t){return typeof t=="boolean"||typeof t=="number"?""+t:En(t)}var Br=/([A-Z])/g,Mr=/^ms-/;function no(t){return t.replace(Br,"-$1").toLowerCase().replace(Mr,"-ms-")}var ht=/^[\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,Rr=!1;function Uo(t){!Rr&&ht.test(t)&&(Rr=!0,o("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(t)))}var zo=Array.isArray;function An(t){return zo(t)}var Or="<script>";function gr(t,r,s,p,b){var S=t===void 0?"":t,D=Or,H=[];return{bootstrapChunks:H,startInlineScript:D,placeholderPrefix:S+"P:",segmentPrefix:S+"S:",boundaryPrefix:S+"B:",idPrefix:S,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Ln=0,Ut=1,dn=2,mr=3,Fn=4,Qn=5,fn=6,Hn=7;function zt(t,r){return{insertionMode:t,selectedValue:r}}function ro(t,r,s){switch(r){case"select":return zt(Ut,s.value!=null?s.value:s.defaultValue);case"svg":return zt(dn,null);case"math":return zt(mr,null);case"foreignObject":return zt(Ut,null);case"table":return zt(Fn,null);case"thead":case"tbody":case"tfoot":return zt(Qn,null);case"colgroup":return zt(Hn,null);case"tr":return zt(fn,null)}return t.insertionMode>=Fn||t.insertionMode===Ln?zt(Ut,null):t}var oo=null;function Cn(t){var r=t.nextSuspenseID++;return t.boundaryPrefix+r.toString(16)}function gt(t,r,s){var p=t.idPrefix,b=":"+p+"R"+r;return s>0&&(b+="H"+s.toString(32)),b+":"}function pn(t){return bt(t)}var hn="<!-- -->";function Nn(t,r,s,p){return r===""?p:(p&&t.push(hn),t.push(pn(r)),!0)}function vr(t,r,s,p){s&&p&&t.push(hn)}var $t=new Map;function gn(t){var r=$t.get(t);if(r!==void 0)return r;var s=bt(no(t));return $t.set(t,s),s}var Bt=' style="',Un=":",qn=";";function yr(t,r,s){if(typeof s!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var p=!0;for(var b in s)if(j.call(s,b)){var S=s[b];if(!(S==null||typeof S=="boolean"||S==="")){var D=void 0,H=void 0,X=b.indexOf("--")===0;X?(D=bt(b),M(S,b),H=bt((""+S).trim())):(un(b,S),D=gn(b),typeof S=="number"?S!==0&&!j.call(De,b)?H=S+"px":H=""+S:(M(S,b),H=bt((""+S).trim()))),p?(p=!1,t.push(Bt,D,Un,H)):t.push(qn,D,Un,H)}}p||t.push(Mt)}var Xt=" ",mn='="',Mt='"',br='=""';function xt(t,r,s,p){switch(s){case"style":{yr(t,r,p);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(s.length>2&&(s[0]==="o"||s[0]==="O")&&(s[1]==="n"||s[1]==="N"))){var b=Be(s);if(b!==null){switch(typeof p){case"function":case"symbol":return;case"boolean":if(!b.acceptsBooleans)return}var S=b.attributeName,D=S;switch(b.type){case G:p&&t.push(Xt,D,br);return;case Y:p===!0?t.push(Xt,D,br):p===!1||t.push(Xt,D,mn,bt(p),Mt);return;case Z:isNaN(p)||t.push(Xt,D,mn,bt(p),Mt);break;case $:!isNaN(p)&&p>=1&&t.push(Xt,D,mn,bt(p),Mt);break;default:b.sanitizeURL&&(Q(p,S),p=""+p,Uo(p)),t.push(Xt,D,mn,bt(p),Mt)}}else if(me(s)){switch(typeof p){case"function":case"symbol":return;case"boolean":{var H=s.toLowerCase().slice(0,5);if(H!=="data-"&&H!=="aria-")return}}t.push(Xt,s,mn,bt(p),Mt)}}}var jt=">",g="/>";function x(t,r,s){if(r!=null){if(s!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof r!="object"||!("__html"in r))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var p=r.__html;p!=null&&(U(p),t.push(""+p))}}var I=!1,_=!1,K=!1,V=!1,te=!1,ue=!1,ke=!1;function Ce(t,r){{var s=t[r];if(s!=null){var p=An(s);t.multiple&&!p?o("The `%s` prop supplied to <select> must be an array if `multiple` is true.",r):!t.multiple&&p&&o("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",r)}}}function Ee(t,r,s){Je("select",r),Ce(r,"value"),Ce(r,"defaultValue"),r.value!==void 0&&r.defaultValue!==void 0&&!K&&(o("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),K=!0),t.push(yn("select"));var p=null,b=null;for(var S in r)if(j.call(r,S)){var D=r[S];if(D==null)continue;switch(S){case"children":p=D;break;case"dangerouslySetInnerHTML":b=D;break;case"defaultValue":case"value":break;default:xt(t,s,S,D);break}}return t.push(jt),x(t,b,p),p}function je(t){var r="";return e.Children.forEach(t,function(s){s!=null&&(r+=s,!te&&typeof s!="string"&&typeof s!="number"&&(te=!0,o("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),r}var Rt=' selected=""';function Ot(t,r,s,p){var b=p.selectedValue;t.push(yn("option"));var S=null,D=null,H=null,X=null;for(var oe in r)if(j.call(r,oe)){var se=r[oe];if(se==null)continue;switch(oe){case"children":S=se;break;case"selected":H=se,ke||(o("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),ke=!0);break;case"dangerouslySetInnerHTML":X=se;break;case"value":D=se;default:xt(t,s,oe,se);break}}if(b!=null){var pe;if(D!==null?(Q(D,"value"),pe=""+D):(X!==null&&(ue||(ue=!0,o("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),pe=je(S)),An(b))for(var Te=0;Te<b.length;Te++){Q(b[Te],"value");var Ye=""+b[Te];if(Ye===pe){t.push(Rt);break}}else Q(b,"select.value"),""+b===pe&&t.push(Rt)}else H&&t.push(Rt);return t.push(jt),x(t,X,S),S}function _t(t,r,s){Je("input",r),r.checked!==void 0&&r.defaultChecked!==void 0&&!_&&(o("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",r.type),_=!0),r.value!==void 0&&r.defaultValue!==void 0&&!I&&(o("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",r.type),I=!0),t.push(yn("input"));var p=null,b=null,S=null,D=null;for(var H in r)if(j.call(r,H)){var X=r[H];if(X==null)continue;switch(H){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":D=X;break;case"defaultValue":b=X;break;case"checked":S=X;break;case"value":p=X;break;default:xt(t,s,H,X);break}}return S!==null?xt(t,s,"checked",S):D!==null&&xt(t,s,"checked",D),p!==null?xt(t,s,"value",p):b!==null&&xt(t,s,"value",b),t.push(g),null}function zn(t,r,s){Je("textarea",r),r.value!==void 0&&r.defaultValue!==void 0&&!V&&(o("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),V=!0),t.push(yn("textarea"));var p=null,b=null,S=null;for(var D in r)if(j.call(r,D)){var H=r[D];if(H==null)continue;switch(D){case"children":S=H;break;case"value":p=H;break;case"defaultValue":b=H;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:xt(t,s,D,H);break}}if(p===null&&b!==null&&(p=b),t.push(jt),S!=null){if(o("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),p!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(An(S)){if(S.length>1)throw new Error("<textarea> can only have at most one child.");U(S[0]),p=""+S[0]}U(S),p=""+S}return typeof p=="string"&&p[0]===`
35
+ */var Xu;function yf(){return Xu||(Xu=1,process.env.NODE_ENV!=="production"&&function(){var e=B,n="18.3.1",i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function a(t){{for(var r=arguments.length,s=new Array(r>1?r-1:0),p=1;p<r;p++)s[p-1]=arguments[p];u("warn",t,s)}}function o(t){{for(var r=arguments.length,s=new Array(r>1?r-1:0),p=1;p<r;p++)s[p-1]=arguments[p];u("error",t,s)}}function u(t,r,s){{var p=i.ReactDebugCurrentFrame,b=p.getStackAddendum();b!==""&&(r+="%s",s=s.concat([b]));var S=s.map(function(D){return String(D)});S.unshift("Warning: "+r),Function.prototype.apply.call(console[t],console,S)}}function f(t){t()}function A(t){}function c(t,r){d(t,r)}function d(t,r){return t.push(r)}function h(t){}function v(t){t.push(null)}function y(t){return t}function k(t){return t}function C(t,r){t.destroy(r)}function R(t){{var r=typeof Symbol=="function"&&Symbol.toStringTag,s=r&&t[Symbol.toStringTag]||t.constructor.name||"Object";return s}}function E(t){try{return T(t),!1}catch{return!0}}function T(t){return""+t}function Q(t,r){if(E(t))return o("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",r,R(t)),T(t)}function M(t,r){if(E(t))return o("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",r,R(t)),T(t)}function U(t){if(E(t))return o("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",R(t)),T(t)}var j=Object.prototype.hasOwnProperty,N=0,W=1,ee=2,G=3,Y=4,Z=5,$=6,ae=":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",ie=ae+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",le=new RegExp("^["+ae+"]["+ie+"]*$"),be={},he={};function me(t){return j.call(he,t)?!0:j.call(be,t)?!1:le.test(t)?(he[t]=!0,!0):(be[t]=!0,o("Invalid attribute name: `%s`",t),!1)}function L(t,r,s,p){if(s!==null&&s.type===N)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":{if(s!==null)return!s.acceptsBooleans;var b=t.toLowerCase().slice(0,5);return b!=="data-"&&b!=="aria-"}default:return!1}}function Be(t){return ve.hasOwnProperty(t)?ve[t]:null}function F(t,r,s,p,b,S,D){this.acceptsBooleans=r===ee||r===G||r===Y,this.attributeName=p,this.attributeNamespace=b,this.mustUseProperty=s,this.propertyName=t,this.type=r,this.sanitizeURL=S,this.removeEmptyString=D}var ve={},fe=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];fe.forEach(function(t){ve[t]=new F(t,N,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var r=t[0],s=t[1];ve[r]=new F(r,W,!1,s,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){ve[t]=new F(t,ee,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){ve[t]=new F(t,ee,!1,t,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(t){ve[t]=new F(t,G,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){ve[t]=new F(t,G,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){ve[t]=new F(t,Y,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){ve[t]=new F(t,$,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){ve[t]=new F(t,Z,!1,t.toLowerCase(),null,!1,!1)});var ce=/[\-\:]([a-z])/g,ge=function(t){return t[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(t){var r=t.replace(ce,ge);ve[r]=new F(r,W,!1,t,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(t){var r=t.replace(ce,ge);ve[r]=new F(r,W,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var r=t.replace(ce,ge);ve[r]=new F(r,W,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){ve[t]=new F(t,W,!1,t.toLowerCase(),null,!1,!1)});var ye="xlinkHref";ve[ye]=new F("xlinkHref",W,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){ve[t]=new F(t,W,!1,t.toLowerCase(),null,!0,!0)});var De={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function Fe(t,r){return t+r.charAt(0).toUpperCase()+r.substring(1)}var Re=["Webkit","ms","Moz","O"];Object.keys(De).forEach(function(t){Re.forEach(function(r){De[Fe(r,t)]=De[t]})});var Ue={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Je(t,r){Ue[r.type]||r.onChange||r.onInput||r.readOnly||r.disabled||r.value==null||o("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),r.onChange||r.readOnly||r.disabled||r.checked==null||o("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Dt(t,r){if(t.indexOf("-")===-1)return typeof r.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var qe={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},ze={},vt=new RegExp("^(aria)-["+ie+"]*$"),It=new RegExp("^(aria)[A-Z]["+ie+"]*$");function Ht(t,r){{if(j.call(ze,r)&&ze[r])return!0;if(It.test(r)){var s="aria-"+r.slice(4).toLowerCase(),p=qe.hasOwnProperty(s)?s:null;if(p==null)return o("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",r),ze[r]=!0,!0;if(r!==p)return o("Invalid ARIA attribute `%s`. Did you mean `%s`?",r,p),ze[r]=!0,!0}if(vt.test(r)){var b=r.toLowerCase(),S=qe.hasOwnProperty(b)?b:null;if(S==null)return ze[r]=!0,!1;if(r!==S)return o("Unknown ARIA attribute `%s`. Did you mean `%s`?",r,S),ze[r]=!0,!0}}return!0}function lt(t,r){{var s=[];for(var p in r){var b=Ht(t,p);b||s.push(p)}var S=s.map(function(D){return"`"+D+"`"}).join(", ");s.length===1?o("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",S,t):s.length>1&&o("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",S,t)}}function Ke(t,r){Dt(t,r)||lt(t,r)}var dt=!1;function Pt(t,r){{if(t!=="input"&&t!=="textarea"&&t!=="select")return;r!=null&&r.value===null&&!dt&&(dt=!0,t==="select"&&r.multiple?o("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",t):o("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",t))}}var Et={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},ut=function(){};{var Ze={},kn=/^on./,Nt=/^on[^A-Z]/,qt=new RegExp("^(aria)-["+ie+"]*$"),et=new RegExp("^(aria)[A-Z]["+ie+"]*$");ut=function(t,r,s,p){if(j.call(Ze,r)&&Ze[r])return!0;var b=r.toLowerCase();if(b==="onfocusin"||b==="onfocusout")return o("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Ze[r]=!0,!0;if(p!=null){var S=p.registrationNameDependencies,D=p.possibleRegistrationNames;if(S.hasOwnProperty(r))return!0;var H=D.hasOwnProperty(b)?D[b]:null;if(H!=null)return o("Invalid event handler property `%s`. Did you mean `%s`?",r,H),Ze[r]=!0,!0;if(kn.test(r))return o("Unknown event handler property `%s`. It will be ignored.",r),Ze[r]=!0,!0}else if(kn.test(r))return Nt.test(r)&&o("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",r),Ze[r]=!0,!0;if(qt.test(r)||et.test(r))return!0;if(b==="innerhtml")return o("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Ze[r]=!0,!0;if(b==="aria")return o("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Ze[r]=!0,!0;if(b==="is"&&s!==null&&s!==void 0&&typeof s!="string")return o("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof s),Ze[r]=!0,!0;if(typeof s=="number"&&isNaN(s))return o("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",r),Ze[r]=!0,!0;var X=Be(r),oe=X!==null&&X.type===N;if(Et.hasOwnProperty(b)){var se=Et[b];if(se!==r)return o("Invalid DOM property `%s`. Did you mean `%s`?",r,se),Ze[r]=!0,!0}else if(!oe&&r!==b)return o("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",r,b),Ze[r]=!0,!0;return typeof s=="boolean"&&L(r,s,X)?(s?o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',s,r,r,s,r):o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',s,r,r,s,r,r,r),Ze[r]=!0,!0):oe?!0:L(r,s,X)?(Ze[r]=!0,!1):((s==="false"||s==="true")&&X!==null&&X.type===G&&(o("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",s,r,s==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',r,s),Ze[r]=!0),!0)}}var ne=function(t,r,s){{var p=[];for(var b in r){var S=ut(t,b,r[b],s);S||p.push(b)}var D=p.map(function(H){return"`"+H+"`"}).join(", ");p.length===1?o("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",D,t):p.length>1&&o("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",D,t)}};function xe(t,r,s){Dt(t,r)||ne(t,r,s)}var Se=function(){};{var _e=/^(?:webkit|moz|o)[A-Z]/,Oe=/^-ms-/,tt=/-(.)/g,ft=/;\s*$/,pt={},Kt={},Jn=!1,Ve=!1,wt=function(t){return t.replace(tt,function(r,s){return s.toUpperCase()})},yt=function(t){pt.hasOwnProperty(t)&&pt[t]||(pt[t]=!0,o("Unsupported style property %s. Did you mean %s?",t,wt(t.replace(Oe,"ms-"))))},Ge=function(t){pt.hasOwnProperty(t)&&pt[t]||(pt[t]=!0,o("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1)))},_n=function(t,r){Kt.hasOwnProperty(r)&&Kt[r]||(Kt[r]=!0,o(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,r.replace(ft,"")))},pr=function(t,r){Jn||(Jn=!0,o("`NaN` is an invalid value for the `%s` css style property.",t))},qn=function(t,r){Ve||(Ve=!0,o("`Infinity` is an invalid value for the `%s` css style property.",t))};Se=function(t,r){t.indexOf("-")>-1?yt(t):_e.test(t)?Ge(t):ft.test(r)&&_n(t,r),typeof r=="number"&&(isNaN(r)?pr(t,r):isFinite(r)||qn(t,r))}}var un=Se,hr=/["'&<>]/;function En(t){U(t);var r=""+t,s=hr.exec(r);if(!s)return r;var p,b="",S,D=0;for(S=s.index;S<r.length;S++){switch(r.charCodeAt(S)){case 34:p="&quot;";break;case 38:p="&amp;";break;case 39:p="&#x27;";break;case 60:p="&lt;";break;case 62:p="&gt;";break;default:continue}D!==S&&(b+=r.substring(D,S)),D=S+1,b+=p}return D!==S?b+r.substring(D,S):b}function bt(t){return typeof t=="boolean"||typeof t=="number"?""+t:En(t)}var Br=/([A-Z])/g,Mr=/^ms-/;function no(t){return t.replace(Br,"-$1").toLowerCase().replace(Mr,"-ms-")}var ht=/^[\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,Rr=!1;function Uo(t){!Rr&&ht.test(t)&&(Rr=!0,o("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(t)))}var zo=Array.isArray;function An(t){return zo(t)}var Or="<script>";function gr(t,r,s,p,b){var S=t===void 0?"":t,D=Or,H=[];return{bootstrapChunks:H,startInlineScript:D,placeholderPrefix:S+"P:",segmentPrefix:S+"S:",boundaryPrefix:S+"B:",idPrefix:S,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Ln=0,Ut=1,dn=2,mr=3,Fn=4,Qn=5,fn=6,Hn=7;function zt(t,r){return{insertionMode:t,selectedValue:r}}function ro(t,r,s){switch(r){case"select":return zt(Ut,s.value!=null?s.value:s.defaultValue);case"svg":return zt(dn,null);case"math":return zt(mr,null);case"foreignObject":return zt(Ut,null);case"table":return zt(Fn,null);case"thead":case"tbody":case"tfoot":return zt(Qn,null);case"colgroup":return zt(Hn,null);case"tr":return zt(fn,null)}return t.insertionMode>=Fn||t.insertionMode===Ln?zt(Ut,null):t}var oo=null;function Cn(t){var r=t.nextSuspenseID++;return t.boundaryPrefix+r.toString(16)}function gt(t,r,s){var p=t.idPrefix,b=":"+p+"R"+r;return s>0&&(b+="H"+s.toString(32)),b+":"}function pn(t){return bt(t)}var hn="<!-- -->";function Nn(t,r,s,p){return r===""?p:(p&&t.push(hn),t.push(pn(r)),!0)}function vr(t,r,s,p){s&&p&&t.push(hn)}var $t=new Map;function gn(t){var r=$t.get(t);if(r!==void 0)return r;var s=bt(no(t));return $t.set(t,s),s}var Bt=' style="',Un=":",Kn=";";function yr(t,r,s){if(typeof s!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var p=!0;for(var b in s)if(j.call(s,b)){var S=s[b];if(!(S==null||typeof S=="boolean"||S==="")){var D=void 0,H=void 0,X=b.indexOf("--")===0;X?(D=bt(b),M(S,b),H=bt((""+S).trim())):(un(b,S),D=gn(b),typeof S=="number"?S!==0&&!j.call(De,b)?H=S+"px":H=""+S:(M(S,b),H=bt((""+S).trim()))),p?(p=!1,t.push(Bt,D,Un,H)):t.push(Kn,D,Un,H)}}p||t.push(Mt)}var Xt=" ",mn='="',Mt='"',br='=""';function xt(t,r,s,p){switch(s){case"style":{yr(t,r,p);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(s.length>2&&(s[0]==="o"||s[0]==="O")&&(s[1]==="n"||s[1]==="N"))){var b=Be(s);if(b!==null){switch(typeof p){case"function":case"symbol":return;case"boolean":if(!b.acceptsBooleans)return}var S=b.attributeName,D=S;switch(b.type){case G:p&&t.push(Xt,D,br);return;case Y:p===!0?t.push(Xt,D,br):p===!1||t.push(Xt,D,mn,bt(p),Mt);return;case Z:isNaN(p)||t.push(Xt,D,mn,bt(p),Mt);break;case $:!isNaN(p)&&p>=1&&t.push(Xt,D,mn,bt(p),Mt);break;default:b.sanitizeURL&&(Q(p,S),p=""+p,Uo(p)),t.push(Xt,D,mn,bt(p),Mt)}}else if(me(s)){switch(typeof p){case"function":case"symbol":return;case"boolean":{var H=s.toLowerCase().slice(0,5);if(H!=="data-"&&H!=="aria-")return}}t.push(Xt,s,mn,bt(p),Mt)}}}var jt=">",g="/>";function x(t,r,s){if(r!=null){if(s!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof r!="object"||!("__html"in r))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var p=r.__html;p!=null&&(U(p),t.push(""+p))}}var I=!1,_=!1,q=!1,V=!1,te=!1,ue=!1,ke=!1;function Ce(t,r){{var s=t[r];if(s!=null){var p=An(s);t.multiple&&!p?o("The `%s` prop supplied to <select> must be an array if `multiple` is true.",r):!t.multiple&&p&&o("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",r)}}}function Ee(t,r,s){Je("select",r),Ce(r,"value"),Ce(r,"defaultValue"),r.value!==void 0&&r.defaultValue!==void 0&&!q&&(o("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),q=!0),t.push(yn("select"));var p=null,b=null;for(var S in r)if(j.call(r,S)){var D=r[S];if(D==null)continue;switch(S){case"children":p=D;break;case"dangerouslySetInnerHTML":b=D;break;case"defaultValue":case"value":break;default:xt(t,s,S,D);break}}return t.push(jt),x(t,b,p),p}function je(t){var r="";return e.Children.forEach(t,function(s){s!=null&&(r+=s,!te&&typeof s!="string"&&typeof s!="number"&&(te=!0,o("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),r}var Rt=' selected=""';function Ot(t,r,s,p){var b=p.selectedValue;t.push(yn("option"));var S=null,D=null,H=null,X=null;for(var oe in r)if(j.call(r,oe)){var se=r[oe];if(se==null)continue;switch(oe){case"children":S=se;break;case"selected":H=se,ke||(o("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),ke=!0);break;case"dangerouslySetInnerHTML":X=se;break;case"value":D=se;default:xt(t,s,oe,se);break}}if(b!=null){var pe;if(D!==null?(Q(D,"value"),pe=""+D):(X!==null&&(ue||(ue=!0,o("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),pe=je(S)),An(b))for(var Te=0;Te<b.length;Te++){Q(b[Te],"value");var Ye=""+b[Te];if(Ye===pe){t.push(Rt);break}}else Q(b,"select.value"),""+b===pe&&t.push(Rt)}else H&&t.push(Rt);return t.push(jt),x(t,X,S),S}function _t(t,r,s){Je("input",r),r.checked!==void 0&&r.defaultChecked!==void 0&&!_&&(o("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",r.type),_=!0),r.value!==void 0&&r.defaultValue!==void 0&&!I&&(o("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",r.type),I=!0),t.push(yn("input"));var p=null,b=null,S=null,D=null;for(var H in r)if(j.call(r,H)){var X=r[H];if(X==null)continue;switch(H){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":D=X;break;case"defaultValue":b=X;break;case"checked":S=X;break;case"value":p=X;break;default:xt(t,s,H,X);break}}return S!==null?xt(t,s,"checked",S):D!==null&&xt(t,s,"checked",D),p!==null?xt(t,s,"value",p):b!==null&&xt(t,s,"value",b),t.push(g),null}function zn(t,r,s){Je("textarea",r),r.value!==void 0&&r.defaultValue!==void 0&&!V&&(o("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),V=!0),t.push(yn("textarea"));var p=null,b=null,S=null;for(var D in r)if(j.call(r,D)){var H=r[D];if(H==null)continue;switch(D){case"children":S=H;break;case"value":p=H;break;case"defaultValue":b=H;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:xt(t,s,D,H);break}}if(p===null&&b!==null&&(p=b),t.push(jt),S!=null){if(o("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),p!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(An(S)){if(S.length>1)throw new Error("<textarea> can only have at most one child.");U(S[0]),p=""+S[0]}U(S),p=""+S}return typeof p=="string"&&p[0]===`
36
36
  `&&t.push(Zn),p!==null&&(Q(p,"value"),t.push(pn(""+p))),null}function vn(t,r,s,p){t.push(yn(s));for(var b in r)if(j.call(r,b)){var S=r[b];if(S==null)continue;switch(b){case"children":case"dangerouslySetInnerHTML":throw new Error(s+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:xt(t,p,b,S);break}}return t.push(g),null}function wr(t,r,s){t.push(yn("menuitem"));for(var p in r)if(j.call(r,p)){var b=r[p];if(b==null)continue;switch(p){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:xt(t,s,p,b);break}}return t.push(jt),null}function jn(t,r,s){t.push(yn("title"));var p=null;for(var b in r)if(j.call(r,b)){var S=r[b];if(S==null)continue;switch(b){case"children":p=S;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:xt(t,s,b,S);break}}t.push(jt);{var D=Array.isArray(p)&&p.length<2?p[0]||null:p;Array.isArray(p)&&p.length>1?o("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):D!=null&&D.$$typeof!=null?o("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):D!=null&&typeof D!="string"&&typeof D!="number"&&o("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return p}function $n(t,r,s,p){t.push(yn(s));var b=null,S=null;for(var D in r)if(j.call(r,D)){var H=r[D];if(H==null)continue;switch(D){case"children":b=H;break;case"dangerouslySetInnerHTML":S=H;break;default:xt(t,p,D,H);break}}return t.push(jt),x(t,S,b),typeof b=="string"?(t.push(pn(b)),null):b}function Pn(t,r,s,p){t.push(yn(s));var b=null,S=null;for(var D in r)if(j.call(r,D)){var H=r[D];if(H==null)continue;switch(D){case"children":b=H;break;case"dangerouslySetInnerHTML":S=H;break;case"style":yr(t,p,H);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:me(D)&&typeof H!="function"&&typeof H!="symbol"&&t.push(Xt,D,mn,bt(H),Mt);break}}return t.push(jt),x(t,S,b),b}var Zn=`
37
37
  `;function Ui(t,r,s,p){t.push(yn(s));var b=null,S=null;for(var D in r)if(j.call(r,D)){var H=r[D];if(H==null)continue;switch(D){case"children":b=H;break;case"dangerouslySetInnerHTML":S=H;break;default:xt(t,p,D,H);break}}if(t.push(jt),S!=null){if(b!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof S!="object"||!("__html"in S))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var X=S.__html;X!=null&&(typeof X=="string"&&X.length>0&&X[0]===`
38
38
  `?t.push(Zn,X):(U(X),t.push(""+X)))}return typeof b=="string"&&b[0]===`
39
- `&&t.push(Zn),b}var zi=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ao=new Map;function yn(t){var r=ao.get(t);if(r===void 0){if(!zi.test(t))throw new Error("Invalid tag: "+t);r="<"+t,ao.set(t,r)}return r}var ji="<!DOCTYPE html>";function Tn(t,r,s,p,b){switch(qe(r,s),Pt(r,s),xe(r,s,null),!s.suppressContentEditableWarning&&s.contentEditable&&s.children!=null&&o("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),b.insertionMode!==dn&&b.insertionMode!==mr&&r.indexOf("-")===-1&&typeof s.is!="string"&&r.toLowerCase()!==r&&o("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",r),r){case"select":return Ee(t,s,p);case"option":return Ot(t,s,p,b);case"textarea":return zn(t,s,p);case"input":return _t(t,s,p);case"menuitem":return wr(t,s,p);case"title":return jn(t,s,p);case"listing":case"pre":return Ui(t,s,r,p);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return vn(t,s,r,p);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return $n(t,s,r,p);case"html":return b.insertionMode===Ln&&t.push(ji),$n(t,s,r,p);default:return r.indexOf("-")===-1&&typeof s.is!="string"?$n(t,s,r,p):Pn(t,s,r,p)}}var jo="</",io=">";function $e(t,r,s){switch(r){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;default:t.push(jo,r,io)}}function er(t,r){for(var s=r.bootstrapChunks,p=0;p<s.length-1;p++)c(t,s[p]);return p<s.length?d(t,s[p]):!0}var so='<template id="',tr='"></template>';function Wn(t,r,s){c(t,so),c(t,r.placeholderPrefix);var p=s.toString(16);return c(t,p),d(t,tr)}var lo="<!--$-->",Yn='<!--$?--><template id="',Zt='"></template>',Wo="<!--$!-->",_r="<!--/$-->",Ia="<template",co='"',Ba=' data-dgst="',Wi=' data-msg="',Yi=' data-stck="',uo="></template>";function Ma(t,r){return d(t,lo)}function Lr(t,r,s){if(c(t,Yn),s===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return c(t,s),d(t,Zt)}function Yo(t,r,s,p,b){var S;return S=d(t,Wo),c(t,Ia),s&&(c(t,Ba),c(t,bt(s)),c(t,co)),p&&(c(t,Wi),c(t,bt(p)),c(t,co)),b&&(c(t,Yi),c(t,bt(b)),c(t,co)),S=d(t,uo),S}function Gi(t,r){return d(t,_r)}function xr(t,r){return d(t,_r)}function Go(t,r){return d(t,_r)}var Vo='<div hidden id="',Sr='">',Fr="</div>",Ao='<svg aria-hidden="true" style="display:none" id="',Ra='">',Oa="</svg>",_a='<math aria-hidden="true" style="display:none" id="',fo='">',Wt="</math>",La='<table hidden id="',po='">',Vi="</table>",Fa='<table hidden><tbody id="',ho='">',Qa="</tbody></table>",Ha='<table hidden><tr id="',go='">',mo="</tr></table>",Na='<table hidden><colgroup id="',Ua='">',za="</colgroup></table>";function Xo(t,r,s,p){switch(s.insertionMode){case Ln:case Ut:return c(t,Vo),c(t,r.segmentPrefix),c(t,p.toString(16)),d(t,Sr);case dn:return c(t,Ao),c(t,r.segmentPrefix),c(t,p.toString(16)),d(t,Ra);case mr:return c(t,_a),c(t,r.segmentPrefix),c(t,p.toString(16)),d(t,fo);case Fn:return c(t,La),c(t,r.segmentPrefix),c(t,p.toString(16)),d(t,po);case Qn:return c(t,Fa),c(t,r.segmentPrefix),c(t,p.toString(16)),d(t,ho);case fn:return c(t,Ha),c(t,r.segmentPrefix),c(t,p.toString(16)),d(t,go);case Hn:return c(t,Na),c(t,r.segmentPrefix),c(t,p.toString(16)),d(t,Ua);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function ja(t,r){switch(r.insertionMode){case Ln:case Ut:return d(t,Fr);case dn:return d(t,Oa);case mr:return d(t,Wt);case Fn:return d(t,Vi);case Qn:return d(t,Qa);case fn:return d(t,mo);case Hn:return d(t,za);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var m="function $RS(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)}",w='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',P='function $RX(b,c,d,e){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),b._reactRetry&&b._reactRetry())}',O=m+';$RS("',q='$RS("',J='","',re='")<\/script>';function Ae(t,r,s){c(t,r.startInlineScript),r.sentCompleteSegmentFunction?c(t,q):(r.sentCompleteSegmentFunction=!0,c(t,O)),c(t,r.segmentPrefix);var p=s.toString(16);return c(t,p),c(t,J),c(t,r.placeholderPrefix),c(t,p),d(t,re)}var Pe=w+';$RC("',Qe='$RC("',Le='","',nt='")<\/script>';function Yt(t,r,s,p){if(c(t,r.startInlineScript),r.sentCompleteBoundaryFunction?c(t,Qe):(r.sentCompleteBoundaryFunction=!0,c(t,Pe)),s===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var b=p.toString(16);return c(t,s),c(t,Le),c(t,r.segmentPrefix),c(t,b),d(t,nt)}var en=P+';$RX("',tn='$RX("',vo='"',Wa=")<\/script>",Qr=",";function Kc(t,r,s,p,b,S){if(c(t,r.startInlineScript),r.sentClientRenderFunction?c(t,tn):(r.sentClientRenderFunction=!0,c(t,en)),s===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return c(t,s),c(t,vo),(p||b||S)&&(c(t,Qr),c(t,Xi(p||""))),(b||S)&&(c(t,Qr),c(t,Xi(b||""))),S&&(c(t,Qr),c(t,Xi(S))),d(t,Wa)}var qc=/[<\u2028\u2029]/g;function Xi(t){var r=JSON.stringify(t);return r.replace(qc,function(s){switch(s){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new 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")}})}function $c(t,r){var s=gr(r);return{bootstrapChunks:s.bootstrapChunks,startInlineScript:s.startInlineScript,placeholderPrefix:s.placeholderPrefix,segmentPrefix:s.segmentPrefix,boundaryPrefix:s.boundaryPrefix,idPrefix:s.idPrefix,nextSuspenseID:s.nextSuspenseID,sentCompleteSegmentFunction:s.sentCompleteSegmentFunction,sentCompleteBoundaryFunction:s.sentCompleteBoundaryFunction,sentClientRenderFunction:s.sentClientRenderFunction,generateStaticMarkup:t}}function Zc(){return{insertionMode:Ut,selectedValue:null}}function ol(t,r,s,p){return s.generateStaticMarkup?(t.push(bt(r)),!1):Nn(t,r,s,p)}function al(t,r,s,p){if(!r.generateStaticMarkup)return vr(t,r,s,p)}function eu(t,r){return r.generateStaticMarkup?!0:Ma(t)}function tu(t,r,s,p,b){return r.generateStaticMarkup?!0:Yo(t,r,s,p,b)}function nu(t,r){return r.generateStaticMarkup?!0:Gi(t)}function ru(t,r){return r.generateStaticMarkup?!0:Go(t)}var Jt=Object.assign,ou=Symbol.for("react.element"),il=Symbol.for("react.portal"),Ya=Symbol.for("react.fragment"),nn=Symbol.for("react.strict_mode"),sl=Symbol.for("react.profiler"),Ga=Symbol.for("react.provider"),Va=Symbol.for("react.context"),Xa=Symbol.for("react.forward_ref"),Ja=Symbol.for("react.suspense"),Jo=Symbol.for("react.suspense_list"),Ko=Symbol.for("react.memo"),yo=Symbol.for("react.lazy"),Ji=Symbol.for("react.scope"),Ki=Symbol.for("react.debug_trace_mode"),qi=Symbol.for("react.legacy_hidden"),Ka=Symbol.for("react.default_value"),ll=Symbol.iterator,au="@@iterator";function iu(t){if(t===null||typeof t!="object")return null;var r=ll&&t[ll]||t[au];return typeof r=="function"?r:null}function su(t,r,s){var p=t.displayName;if(p)return p;var b=r.displayName||r.name||"";return b!==""?s+"("+b+")":s}function $i(t){return t.displayName||"Context"}function ct(t){if(t==null)return null;if(typeof t.tag=="number"&&o("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Ya:return"Fragment";case il:return"Portal";case sl:return"Profiler";case nn:return"StrictMode";case Ja:return"Suspense";case Jo:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Va:var r=t;return $i(r)+".Consumer";case Ga:var s=t;return $i(s._context)+".Provider";case Xa:return su(t,t.render,"ForwardRef");case Ko:var p=t.displayName||null;return p!==null?p:ct(t.type)||"Memo";case yo:{var b=t,S=b._payload,D=b._init;try{return ct(D(S))}catch{return null}}}return null}var qo=0,cl,Zi,at,bo,es,ts,ns;function rs(){}rs.__reactDisabledLog=!0;function ul(){{if(qo===0){cl=console.log,Zi=console.info,at=console.warn,bo=console.error,es=console.group,ts=console.groupCollapsed,ns=console.groupEnd;var t={configurable:!0,enumerable:!0,value:rs,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}qo++}}function Al(){{if(qo--,qo===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Jt({},t,{value:cl}),info:Jt({},t,{value:Zi}),warn:Jt({},t,{value:at}),error:Jt({},t,{value:bo}),group:Jt({},t,{value:es}),groupCollapsed:Jt({},t,{value:ts}),groupEnd:Jt({},t,{value:ns})})}qo<0&&o("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var qa=i.ReactCurrentDispatcher,$a;function $o(t,r,s){{if($a===void 0)try{throw Error()}catch(b){var p=b.stack.trim().match(/\n( *(at )?)/);$a=p&&p[1]||""}return`
40
- `+$a+t}}var os=!1,wo;{var as=typeof WeakMap=="function"?WeakMap:Map;wo=new as}function Hr(t,r){if(!t||os)return"";{var s=wo.get(t);if(s!==void 0)return s}var p;os=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var S;S=qa.current,qa.current=null,ul();try{if(r){var D=function(){throw Error()};if(Object.defineProperty(D.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(D,[])}catch(Tt){p=Tt}Reflect.construct(t,[],D)}else{try{D.call()}catch(Tt){p=Tt}t.call(D.prototype)}}else{try{throw Error()}catch(Tt){p=Tt}t()}}catch(Tt){if(Tt&&p&&typeof Tt.stack=="string"){for(var H=Tt.stack.split(`
39
+ `&&t.push(Zn),b}var zi=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ao=new Map;function yn(t){var r=ao.get(t);if(r===void 0){if(!zi.test(t))throw new Error("Invalid tag: "+t);r="<"+t,ao.set(t,r)}return r}var ji="<!DOCTYPE html>";function Tn(t,r,s,p,b){switch(Ke(r,s),Pt(r,s),xe(r,s,null),!s.suppressContentEditableWarning&&s.contentEditable&&s.children!=null&&o("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),b.insertionMode!==dn&&b.insertionMode!==mr&&r.indexOf("-")===-1&&typeof s.is!="string"&&r.toLowerCase()!==r&&o("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",r),r){case"select":return Ee(t,s,p);case"option":return Ot(t,s,p,b);case"textarea":return zn(t,s,p);case"input":return _t(t,s,p);case"menuitem":return wr(t,s,p);case"title":return jn(t,s,p);case"listing":case"pre":return Ui(t,s,r,p);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return vn(t,s,r,p);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return $n(t,s,r,p);case"html":return b.insertionMode===Ln&&t.push(ji),$n(t,s,r,p);default:return r.indexOf("-")===-1&&typeof s.is!="string"?$n(t,s,r,p):Pn(t,s,r,p)}}var jo="</",io=">";function $e(t,r,s){switch(r){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;default:t.push(jo,r,io)}}function er(t,r){for(var s=r.bootstrapChunks,p=0;p<s.length-1;p++)c(t,s[p]);return p<s.length?d(t,s[p]):!0}var so='<template id="',tr='"></template>';function Wn(t,r,s){c(t,so),c(t,r.placeholderPrefix);var p=s.toString(16);return c(t,p),d(t,tr)}var lo="<!--$-->",Yn='<!--$?--><template id="',Zt='"></template>',Wo="<!--$!-->",_r="<!--/$-->",Ia="<template",co='"',Ba=' data-dgst="',Wi=' data-msg="',Yi=' data-stck="',uo="></template>";function Ma(t,r){return d(t,lo)}function Lr(t,r,s){if(c(t,Yn),s===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return c(t,s),d(t,Zt)}function Yo(t,r,s,p,b){var S;return S=d(t,Wo),c(t,Ia),s&&(c(t,Ba),c(t,bt(s)),c(t,co)),p&&(c(t,Wi),c(t,bt(p)),c(t,co)),b&&(c(t,Yi),c(t,bt(b)),c(t,co)),S=d(t,uo),S}function Gi(t,r){return d(t,_r)}function xr(t,r){return d(t,_r)}function Go(t,r){return d(t,_r)}var Vo='<div hidden id="',Sr='">',Fr="</div>",Ao='<svg aria-hidden="true" style="display:none" id="',Ra='">',Oa="</svg>",_a='<math aria-hidden="true" style="display:none" id="',fo='">',Wt="</math>",La='<table hidden id="',po='">',Vi="</table>",Fa='<table hidden><tbody id="',ho='">',Qa="</tbody></table>",Ha='<table hidden><tr id="',go='">',mo="</tr></table>",Na='<table hidden><colgroup id="',Ua='">',za="</colgroup></table>";function Xo(t,r,s,p){switch(s.insertionMode){case Ln:case Ut:return c(t,Vo),c(t,r.segmentPrefix),c(t,p.toString(16)),d(t,Sr);case dn:return c(t,Ao),c(t,r.segmentPrefix),c(t,p.toString(16)),d(t,Ra);case mr:return c(t,_a),c(t,r.segmentPrefix),c(t,p.toString(16)),d(t,fo);case Fn:return c(t,La),c(t,r.segmentPrefix),c(t,p.toString(16)),d(t,po);case Qn:return c(t,Fa),c(t,r.segmentPrefix),c(t,p.toString(16)),d(t,ho);case fn:return c(t,Ha),c(t,r.segmentPrefix),c(t,p.toString(16)),d(t,go);case Hn:return c(t,Na),c(t,r.segmentPrefix),c(t,p.toString(16)),d(t,Ua);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function ja(t,r){switch(r.insertionMode){case Ln:case Ut:return d(t,Fr);case dn:return d(t,Oa);case mr:return d(t,Wt);case Fn:return d(t,Vi);case Qn:return d(t,Qa);case fn:return d(t,mo);case Hn:return d(t,za);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var m="function $RS(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)}",w='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',P='function $RX(b,c,d,e){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),b._reactRetry&&b._reactRetry())}',O=m+';$RS("',K='$RS("',J='","',re='")<\/script>';function Ae(t,r,s){c(t,r.startInlineScript),r.sentCompleteSegmentFunction?c(t,K):(r.sentCompleteSegmentFunction=!0,c(t,O)),c(t,r.segmentPrefix);var p=s.toString(16);return c(t,p),c(t,J),c(t,r.placeholderPrefix),c(t,p),d(t,re)}var Pe=w+';$RC("',Qe='$RC("',Le='","',nt='")<\/script>';function Yt(t,r,s,p){if(c(t,r.startInlineScript),r.sentCompleteBoundaryFunction?c(t,Qe):(r.sentCompleteBoundaryFunction=!0,c(t,Pe)),s===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var b=p.toString(16);return c(t,s),c(t,Le),c(t,r.segmentPrefix),c(t,b),d(t,nt)}var en=P+';$RX("',tn='$RX("',vo='"',Wa=")<\/script>",Qr=",";function qc(t,r,s,p,b,S){if(c(t,r.startInlineScript),r.sentClientRenderFunction?c(t,tn):(r.sentClientRenderFunction=!0,c(t,en)),s===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return c(t,s),c(t,vo),(p||b||S)&&(c(t,Qr),c(t,Xi(p||""))),(b||S)&&(c(t,Qr),c(t,Xi(b||""))),S&&(c(t,Qr),c(t,Xi(S))),d(t,Wa)}var Kc=/[<\u2028\u2029]/g;function Xi(t){var r=JSON.stringify(t);return r.replace(Kc,function(s){switch(s){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new 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")}})}function $c(t,r){var s=gr(r);return{bootstrapChunks:s.bootstrapChunks,startInlineScript:s.startInlineScript,placeholderPrefix:s.placeholderPrefix,segmentPrefix:s.segmentPrefix,boundaryPrefix:s.boundaryPrefix,idPrefix:s.idPrefix,nextSuspenseID:s.nextSuspenseID,sentCompleteSegmentFunction:s.sentCompleteSegmentFunction,sentCompleteBoundaryFunction:s.sentCompleteBoundaryFunction,sentClientRenderFunction:s.sentClientRenderFunction,generateStaticMarkup:t}}function Zc(){return{insertionMode:Ut,selectedValue:null}}function ol(t,r,s,p){return s.generateStaticMarkup?(t.push(bt(r)),!1):Nn(t,r,s,p)}function al(t,r,s,p){if(!r.generateStaticMarkup)return vr(t,r,s,p)}function eu(t,r){return r.generateStaticMarkup?!0:Ma(t)}function tu(t,r,s,p,b){return r.generateStaticMarkup?!0:Yo(t,r,s,p,b)}function nu(t,r){return r.generateStaticMarkup?!0:Gi(t)}function ru(t,r){return r.generateStaticMarkup?!0:Go(t)}var Jt=Object.assign,ou=Symbol.for("react.element"),il=Symbol.for("react.portal"),Ya=Symbol.for("react.fragment"),nn=Symbol.for("react.strict_mode"),sl=Symbol.for("react.profiler"),Ga=Symbol.for("react.provider"),Va=Symbol.for("react.context"),Xa=Symbol.for("react.forward_ref"),Ja=Symbol.for("react.suspense"),Jo=Symbol.for("react.suspense_list"),qo=Symbol.for("react.memo"),yo=Symbol.for("react.lazy"),Ji=Symbol.for("react.scope"),qi=Symbol.for("react.debug_trace_mode"),Ki=Symbol.for("react.legacy_hidden"),qa=Symbol.for("react.default_value"),ll=Symbol.iterator,au="@@iterator";function iu(t){if(t===null||typeof t!="object")return null;var r=ll&&t[ll]||t[au];return typeof r=="function"?r:null}function su(t,r,s){var p=t.displayName;if(p)return p;var b=r.displayName||r.name||"";return b!==""?s+"("+b+")":s}function $i(t){return t.displayName||"Context"}function ct(t){if(t==null)return null;if(typeof t.tag=="number"&&o("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Ya:return"Fragment";case il:return"Portal";case sl:return"Profiler";case nn:return"StrictMode";case Ja:return"Suspense";case Jo:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Va:var r=t;return $i(r)+".Consumer";case Ga:var s=t;return $i(s._context)+".Provider";case Xa:return su(t,t.render,"ForwardRef");case qo:var p=t.displayName||null;return p!==null?p:ct(t.type)||"Memo";case yo:{var b=t,S=b._payload,D=b._init;try{return ct(D(S))}catch{return null}}}return null}var Ko=0,cl,Zi,at,bo,es,ts,ns;function rs(){}rs.__reactDisabledLog=!0;function ul(){{if(Ko===0){cl=console.log,Zi=console.info,at=console.warn,bo=console.error,es=console.group,ts=console.groupCollapsed,ns=console.groupEnd;var t={configurable:!0,enumerable:!0,value:rs,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}Ko++}}function Al(){{if(Ko--,Ko===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Jt({},t,{value:cl}),info:Jt({},t,{value:Zi}),warn:Jt({},t,{value:at}),error:Jt({},t,{value:bo}),group:Jt({},t,{value:es}),groupCollapsed:Jt({},t,{value:ts}),groupEnd:Jt({},t,{value:ns})})}Ko<0&&o("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ka=i.ReactCurrentDispatcher,$a;function $o(t,r,s){{if($a===void 0)try{throw Error()}catch(b){var p=b.stack.trim().match(/\n( *(at )?)/);$a=p&&p[1]||""}return`
40
+ `+$a+t}}var os=!1,wo;{var as=typeof WeakMap=="function"?WeakMap:Map;wo=new as}function Hr(t,r){if(!t||os)return"";{var s=wo.get(t);if(s!==void 0)return s}var p;os=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var S;S=Ka.current,Ka.current=null,ul();try{if(r){var D=function(){throw Error()};if(Object.defineProperty(D.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(D,[])}catch(Tt){p=Tt}Reflect.construct(t,[],D)}else{try{D.call()}catch(Tt){p=Tt}t.call(D.prototype)}}else{try{throw Error()}catch(Tt){p=Tt}t()}}catch(Tt){if(Tt&&p&&typeof Tt.stack=="string"){for(var H=Tt.stack.split(`
41
41
  `),X=p.stack.split(`
42
42
  `),oe=H.length-1,se=X.length-1;oe>=1&&se>=0&&H[oe]!==X[se];)se--;for(;oe>=1&&se>=0;oe--,se--)if(H[oe]!==X[se]){if(oe!==1||se!==1)do if(oe--,se--,se<0||H[oe]!==X[se]){var pe=`
43
- `+H[oe].replace(" at new "," at ");return t.displayName&&pe.includes("<anonymous>")&&(pe=pe.replace("<anonymous>",t.displayName)),typeof t=="function"&&wo.set(t,pe),pe}while(oe>=1&&se>=0);break}}}finally{os=!1,qa.current=S,Al(),Error.prepareStackTrace=b}var Te=t?t.displayName||t.name:"",Ye=Te?$o(Te):"";return typeof t=="function"&&wo.set(t,Ye),Ye}function is(t,r,s){return Hr(t,!0)}function Zo(t,r,s){return Hr(t,!1)}function lu(t){var r=t.prototype;return!!(r&&r.isReactComponent)}function ea(t,r,s){if(t==null)return"";if(typeof t=="function")return Hr(t,lu(t));if(typeof t=="string")return $o(t);switch(t){case Ja:return $o("Suspense");case Jo:return $o("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case Xa:return Zo(t.render);case Ko:return ea(t.type,r,s);case yo:{var p=t,b=p._payload,S=p._init;try{return ea(S(b),r,s)}catch{}}}return""}var dl={},ss=i.ReactDebugCurrentFrame;function Za(t){if(t){var r=t._owner,s=ea(t.type,t._source,r?r.type:null);ss.setExtraStackFrame(s)}else ss.setExtraStackFrame(null)}function ei(t,r,s,p,b){{var S=Function.call.bind(j);for(var D in t)if(S(t,D)){var H=void 0;try{if(typeof t[D]!="function"){var X=Error((p||"React class")+": "+s+" type `"+D+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[D]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw X.name="Invariant Violation",X}H=t[D](r,D,p,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(oe){H=oe}H&&!(H instanceof Error)&&(Za(b),o("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",p||"React class",s,D,typeof H),Za(null)),H instanceof Error&&!(H.message in dl)&&(dl[H.message]=!0,Za(b),o("Failed %s type: %s",s,H.message),Za(null))}}}var ti;ti={};var ta={};Object.freeze(ta);function na(t,r){{var s=t.contextTypes;if(!s)return ta;var p={};for(var b in s)p[b]=r[b];{var S=ct(t)||"Unknown";ei(s,p,"context",S)}return p}}function fl(t,r,s,p){{if(typeof t.getChildContext!="function"){{var b=ct(r)||"Unknown";ti[b]||(ti[b]=!0,o("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",b,b))}return s}var S=t.getChildContext();for(var D in S)if(!(D in p))throw new Error((ct(r)||"Unknown")+'.getChildContext(): key "'+D+'" is not defined in childContextTypes.');{var H=ct(r)||"Unknown";ei(p,S,"child context",H)}return Jt({},s,S)}}var Nr;Nr={};var ni=null,kr=null;function ls(t){t.context._currentValue2=t.parentValue}function Ur(t){t.context._currentValue2=t.value}function ri(t,r){if(t!==r){ls(t);var s=t.parent,p=r.parent;if(s===null){if(p!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(p===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");ri(s,p)}Ur(r)}}function Er(t){ls(t);var r=t.parent;r!==null&&Er(r)}function oi(t){var r=t.parent;r!==null&&oi(r),Ur(t)}function ai(t,r){ls(t);var s=t.parent;if(s===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");s.depth===r.depth?ri(s,r):ai(s,r)}function ra(t,r){var s=r.parent;if(s===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");t.depth===s.depth?ri(t,s):ra(t,s),Ur(r)}function oa(t){var r=kr,s=t;r!==s&&(r===null?oi(s):s===null?Er(r):r.depth===s.depth?ri(r,s):r.depth>s.depth?ai(r,s):ra(r,s),kr=s)}function pl(t,r){var s;s=t._currentValue2,t._currentValue2=r,t._currentRenderer2!==void 0&&t._currentRenderer2!==null&&t._currentRenderer2!==Nr&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer2=Nr;var p=kr,b={parent:p,depth:p===null?0:p.depth+1,context:t,parentValue:s,value:r};return kr=b,b}function hl(t){var r=kr;if(r===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");r.context!==t&&o("The parent context is not the expected context. This is probably a bug in React.");{var s=r.parentValue;s===Ka?r.context._currentValue2=r.context._defaultValue:r.context._currentValue2=s,t._currentRenderer2!==void 0&&t._currentRenderer2!==null&&t._currentRenderer2!==Nr&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer2=Nr}return kr=r.parent}function gl(){return kr}function Cr(t){var r=t._currentValue2;return r}function cs(t){return t._reactInternals}function cu(t,r){t._reactInternals=r}var ml={},xo={},aa,us,ii,si,li,So,ia,sa,ci;{aa=new Set,us=new Set,ii=new Set,ia=new Set,si=new Set,sa=new Set,ci=new Set;var la=new Set;So=function(t,r){if(!(t===null||typeof t=="function")){var s=r+"_"+t;la.has(s)||(la.add(s),o("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",r,t))}},li=function(t,r){if(r===void 0){var s=ct(t)||"Component";si.has(s)||(si.add(s),o("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",s))}}}function ui(t,r){{var s=t.constructor,p=s&&ct(s)||"ReactClass",b=p+"."+r;if(ml[b])return;o(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
43
+ `+H[oe].replace(" at new "," at ");return t.displayName&&pe.includes("<anonymous>")&&(pe=pe.replace("<anonymous>",t.displayName)),typeof t=="function"&&wo.set(t,pe),pe}while(oe>=1&&se>=0);break}}}finally{os=!1,Ka.current=S,Al(),Error.prepareStackTrace=b}var Te=t?t.displayName||t.name:"",Ye=Te?$o(Te):"";return typeof t=="function"&&wo.set(t,Ye),Ye}function is(t,r,s){return Hr(t,!0)}function Zo(t,r,s){return Hr(t,!1)}function lu(t){var r=t.prototype;return!!(r&&r.isReactComponent)}function ea(t,r,s){if(t==null)return"";if(typeof t=="function")return Hr(t,lu(t));if(typeof t=="string")return $o(t);switch(t){case Ja:return $o("Suspense");case Jo:return $o("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case Xa:return Zo(t.render);case qo:return ea(t.type,r,s);case yo:{var p=t,b=p._payload,S=p._init;try{return ea(S(b),r,s)}catch{}}}return""}var dl={},ss=i.ReactDebugCurrentFrame;function Za(t){if(t){var r=t._owner,s=ea(t.type,t._source,r?r.type:null);ss.setExtraStackFrame(s)}else ss.setExtraStackFrame(null)}function ei(t,r,s,p,b){{var S=Function.call.bind(j);for(var D in t)if(S(t,D)){var H=void 0;try{if(typeof t[D]!="function"){var X=Error((p||"React class")+": "+s+" type `"+D+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[D]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw X.name="Invariant Violation",X}H=t[D](r,D,p,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(oe){H=oe}H&&!(H instanceof Error)&&(Za(b),o("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",p||"React class",s,D,typeof H),Za(null)),H instanceof Error&&!(H.message in dl)&&(dl[H.message]=!0,Za(b),o("Failed %s type: %s",s,H.message),Za(null))}}}var ti;ti={};var ta={};Object.freeze(ta);function na(t,r){{var s=t.contextTypes;if(!s)return ta;var p={};for(var b in s)p[b]=r[b];{var S=ct(t)||"Unknown";ei(s,p,"context",S)}return p}}function fl(t,r,s,p){{if(typeof t.getChildContext!="function"){{var b=ct(r)||"Unknown";ti[b]||(ti[b]=!0,o("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",b,b))}return s}var S=t.getChildContext();for(var D in S)if(!(D in p))throw new Error((ct(r)||"Unknown")+'.getChildContext(): key "'+D+'" is not defined in childContextTypes.');{var H=ct(r)||"Unknown";ei(p,S,"child context",H)}return Jt({},s,S)}}var Nr;Nr={};var ni=null,kr=null;function ls(t){t.context._currentValue2=t.parentValue}function Ur(t){t.context._currentValue2=t.value}function ri(t,r){if(t!==r){ls(t);var s=t.parent,p=r.parent;if(s===null){if(p!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(p===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");ri(s,p)}Ur(r)}}function Er(t){ls(t);var r=t.parent;r!==null&&Er(r)}function oi(t){var r=t.parent;r!==null&&oi(r),Ur(t)}function ai(t,r){ls(t);var s=t.parent;if(s===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");s.depth===r.depth?ri(s,r):ai(s,r)}function ra(t,r){var s=r.parent;if(s===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");t.depth===s.depth?ri(t,s):ra(t,s),Ur(r)}function oa(t){var r=kr,s=t;r!==s&&(r===null?oi(s):s===null?Er(r):r.depth===s.depth?ri(r,s):r.depth>s.depth?ai(r,s):ra(r,s),kr=s)}function pl(t,r){var s;s=t._currentValue2,t._currentValue2=r,t._currentRenderer2!==void 0&&t._currentRenderer2!==null&&t._currentRenderer2!==Nr&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer2=Nr;var p=kr,b={parent:p,depth:p===null?0:p.depth+1,context:t,parentValue:s,value:r};return kr=b,b}function hl(t){var r=kr;if(r===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");r.context!==t&&o("The parent context is not the expected context. This is probably a bug in React.");{var s=r.parentValue;s===qa?r.context._currentValue2=r.context._defaultValue:r.context._currentValue2=s,t._currentRenderer2!==void 0&&t._currentRenderer2!==null&&t._currentRenderer2!==Nr&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer2=Nr}return kr=r.parent}function gl(){return kr}function Cr(t){var r=t._currentValue2;return r}function cs(t){return t._reactInternals}function cu(t,r){t._reactInternals=r}var ml={},xo={},aa,us,ii,si,li,So,ia,sa,ci;{aa=new Set,us=new Set,ii=new Set,ia=new Set,si=new Set,sa=new Set,ci=new Set;var la=new Set;So=function(t,r){if(!(t===null||typeof t=="function")){var s=r+"_"+t;la.has(s)||(la.add(s),o("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",r,t))}},li=function(t,r){if(r===void 0){var s=ct(t)||"Component";si.has(s)||(si.add(s),o("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",s))}}}function ui(t,r){{var s=t.constructor,p=s&&ct(s)||"ReactClass",b=p+"."+r;if(ml[b])return;o(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
44
44
 
45
45
  Please check the code for the %s component.`,r,r,p),ml[b]=!0}}var Ai={isMounted:function(t){return!1},enqueueSetState:function(t,r,s){var p=cs(t);p.queue===null?ui(t,"setState"):(p.queue.push(r),s!=null&&So(s,"setState"))},enqueueReplaceState:function(t,r,s){var p=cs(t);p.replace=!0,p.queue=[r],s!=null&&So(s,"setState")},enqueueForceUpdate:function(t,r){var s=cs(t);s.queue===null?ui(t,"forceUpdate"):r!=null&&So(r,"setState")}};function As(t,r,s,p,b){var S=s(b,p);li(r,S);var D=S==null?p:Jt({},p,S);return D}function vl(t,r,s){var p=ta,b=t.contextType;if("contextType"in t){var S=b===null||b!==void 0&&b.$$typeof===Va&&b._context===void 0;if(!S&&!ci.has(t)){ci.add(t);var D="";b===void 0?D=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof b!="object"?D=" However, it is set to a "+typeof b+".":b.$$typeof===Ga?D=" Did you accidentally pass the Context.Provider instead?":b._context!==void 0?D=" Did you accidentally pass the Context.Consumer instead?":D=" However, it is set to an object with keys {"+Object.keys(b).join(", ")+"}.",o("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",ct(t)||"Component",D)}}typeof b=="object"&&b!==null?p=Cr(b):p=s;var H=new t(r,p);{if(typeof t.getDerivedStateFromProps=="function"&&(H.state===null||H.state===void 0)){var X=ct(t)||"Component";aa.has(X)||(aa.add(X),o("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",X,H.state===null?"null":"undefined",X))}if(typeof t.getDerivedStateFromProps=="function"||typeof H.getSnapshotBeforeUpdate=="function"){var oe=null,se=null,pe=null;if(typeof H.componentWillMount=="function"&&H.componentWillMount.__suppressDeprecationWarning!==!0?oe="componentWillMount":typeof H.UNSAFE_componentWillMount=="function"&&(oe="UNSAFE_componentWillMount"),typeof H.componentWillReceiveProps=="function"&&H.componentWillReceiveProps.__suppressDeprecationWarning!==!0?se="componentWillReceiveProps":typeof H.UNSAFE_componentWillReceiveProps=="function"&&(se="UNSAFE_componentWillReceiveProps"),typeof H.componentWillUpdate=="function"&&H.componentWillUpdate.__suppressDeprecationWarning!==!0?pe="componentWillUpdate":typeof H.UNSAFE_componentWillUpdate=="function"&&(pe="UNSAFE_componentWillUpdate"),oe!==null||se!==null||pe!==null){var Te=ct(t)||"Component",Ye=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";ii.has(Te)||(ii.add(Te),o(`Unsafe legacy lifecycles will not be called for components using new component APIs.
46
46
 
@@ -63,7 +63,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
63
63
  Previous: %s
64
64
  Incoming: %s`,an,"["+t.join(", ")+"]","["+r.join(", ")+"]");for(var s=0;s<r.length&&s<t.length;s++)if(!mu(t[s],r[s]))return!1;return!0}function Dn(){if(Pr>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function Tr(){return ot===null?fi===null?(rn=!1,fi=ot=Dn()):(rn=!0,ot=fi):ot.next===null?(rn=!1,ot=ot.next=Dn()):(rn=!0,ot=ot.next),ot}function jr(t,r){nr=r,ps=t,on=!1,zr=0}function yu(t,r,s,p){for(;ko;)ko=!1,zr=0,Pr+=1,ot=null,s=t(r,p);return ua(),s}function hs(){var t=zr!==0;return t}function ua(){on=!1,nr=null,ps=null,ko=!1,fi=null,Pr=0,We=null,ot=null}function bu(t){return on&&o("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),Cr(t)}function wu(t){return an="useContext",Gn(),Cr(t)}function hi(t,r){return typeof r=="function"?r(t):r}function gs(t){return an="useState",xl(hi,t)}function xl(t,r,s){if(t!==hi&&(an="useReducer"),nr=Gn(),ot=Tr(),rn){var p=ot.queue,b=p.dispatch;if(We!==null){var S=We.get(p);if(S!==void 0){We.delete(p);var D=ot.memoizedState,H=S;do{var X=H.action;on=!0,D=t(D,X),on=!1,H=H.next}while(H!==null);return ot.memoizedState=D,[D,b]}}return[ot.memoizedState,b]}else{on=!0;var oe;t===hi?oe=typeof r=="function"?r():r:oe=s!==void 0?s(r):r,on=!1,ot.memoizedState=oe;var se=ot.queue={last:null,dispatch:null},pe=se.dispatch=kl.bind(null,nr,se);return[ot.memoizedState,pe]}}function Sl(t,r){nr=Gn(),ot=Tr();var s=r===void 0?null:r;if(ot!==null){var p=ot.memoizedState;if(p!==null&&s!==null){var b=p[1];if(vu(s,b))return p[0]}}on=!0;var S=t();return on=!1,ot.memoizedState=[S,s],S}function ms(t){nr=Gn(),ot=Tr();var r=ot.memoizedState;if(r===null){var s={current:t};return Object.seal(s),ot.memoizedState=s,s}else return r}function xu(t,r){an="useLayoutEffect",o("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.")}function kl(t,r,s){if(Pr>=pi)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(t===nr){ko=!0;var p={action:s,next:null};We===null&&(We=new Map);var b=We.get(r);if(b===void 0)We.set(r,p);else{for(var S=b;S.next!==null;)S=S.next;S.next=p}}}function El(t,r){return Sl(function(){return t},r)}function Su(t,r,s){return Gn(),r(t._source)}function ku(t,r,s){if(s===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return s()}function Eu(t){return Gn(),t}function Cu(){throw new Error("startTransition cannot be called during server rendering.")}function Pu(){return Gn(),[!1,Cu]}function Tu(){var t=ps,r=du(t.treeContext),s=vs;if(s===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var p=zr++;return gt(s,r,p)}function gi(){}var Cl={readContext:bu,useContext:wu,useMemo:Sl,useReducer:xl,useRef:ms,useState:gs,useInsertionEffect:gi,useLayoutEffect:xu,useCallback:El,useImperativeHandle:gi,useEffect:gi,useDebugValue:gi,useDeferredValue:Eu,useTransition:Pu,useId:Tu,useMutableSource:Su,useSyncExternalStore:ku},vs=null;function Pl(t){vs=t}function mi(t){try{var r="",s=t;do{switch(s.tag){case 0:r+=$o(s.type,null,null);break;case 1:r+=Zo(s.type,null,null);break;case 2:r+=is(s.type,null,null);break}s=s.parent}while(s);return r}catch(p){return`
65
65
  Error generating stack: `+p.message+`
66
- `+p.stack}}var vi=i.ReactCurrentDispatcher,Aa=i.ReactDebugCurrentFrame,yi=0,Eo=1,bi=2,wi=3,xi=4,Co=0,ys=1,Wr=2,Tl=12800;function Du(t){return console.error(t),null}function Po(){}function To(t,r,s,p,b,S,D,H,X){var oe=[],se=new Set,pe={destination:null,responseState:r,progressiveChunkSize:p===void 0?Tl:p,status:Co,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:se,pingedTasks:oe,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:b===void 0?Du:b,onAllReady:Po,onShellReady:D===void 0?Po:D,onShellError:Po,onFatalError:Po},Te=Si(pe,0,null,s,!1,!1);Te.parentFlushed=!0;var Ye=Yr(pe,t,null,Te,se,ta,ni,Au);return oe.push(Ye),pe}function Iu(t,r){var s=t.pingedTasks;s.push(r),s.length===1&&f(function(){return Ds(t)})}function Bu(t,r){return{id:oo,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:r,errorDigest:null}}function Yr(t,r,s,p,b,S,D,H){t.allPendingTasks++,s===null?t.pendingRootTasks++:s.pendingTasks++;var X={node:r,ping:function(){return Iu(t,X)},blockedBoundary:s,blockedSegment:p,abortSet:b,legacyContext:S,context:D,treeContext:H};return X.componentStack=null,b.add(X),X}function Si(t,r,s,p,b,S){return{status:yi,id:-1,index:r,parentFlushed:!1,chunks:[],children:[],formatContext:p,boundary:s,lastPushedText:b,textEmbedded:S}}var rr=null;function bs(){return rr===null||rr.componentStack===null?"":mi(rr.componentStack)}function Gr(t,r){t.componentStack={tag:0,parent:t.componentStack,type:r}}function da(t,r){t.componentStack={tag:1,parent:t.componentStack,type:r}}function or(t,r){t.componentStack={tag:2,parent:t.componentStack,type:r}}function Vn(t){t.componentStack===null?o("Unexpectedly popped too many stack frames. This is a bug in React."):t.componentStack=t.componentStack.parent}var ar=null;function ki(t,r){{var s;typeof r=="string"?s=r:r&&typeof r.message=="string"?s=r.message:s=String(r);var p=ar||bs();ar=null,t.errorMessage=s,t.errorComponentStack=p}}function fa(t,r){var s=t.onError(r);if(s!=null&&typeof s!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof s+'" instead');return s}function In(t,r){var s=t.onShellError;s(r);var p=t.onFatalError;p(r),t.destination!==null?(t.status=Wr,C(t.destination,r)):(t.status=ys,t.fatalError=r)}function pa(t,r,s){Gr(r,"Suspense");var p=r.blockedBoundary,b=r.blockedSegment,S=s.fallback,D=s.children,H=new Set,X=Bu(t,H),oe=b.chunks.length,se=Si(t,oe,X,b.formatContext,!1,!1);b.children.push(se),b.lastPushedText=!1;var pe=Si(t,0,null,b.formatContext,!1,!1);pe.parentFlushed=!0,r.blockedBoundary=X,r.blockedSegment=pe;try{if(Gt(t,r,D),al(pe.chunks,t.responseState,pe.lastPushedText,pe.textEmbedded),pe.status=Eo,Do(X,pe),X.pendingTasks===0){Vn(r);return}}catch(Ye){pe.status=xi,X.forceClientRender=!0,X.errorDigest=fa(t,Ye),ki(X,Ye)}finally{r.blockedBoundary=p,r.blockedSegment=b}var Te=Yr(t,S,p,se,H,r.legacyContext,r.context,r.treeContext);Te.componentStack=r.componentStack,t.pingedTasks.push(Te),Vn(r)}function ws(t,r,s,p){Gr(r,s);var b=r.blockedSegment,S=Tn(b.chunks,s,p,t.responseState,b.formatContext);b.lastPushedText=!1;var D=b.formatContext;b.formatContext=ro(D,s,p),Gt(t,r,S),b.formatContext=D,$e(b.chunks,s),b.lastPushedText=!1,Vn(r)}function ha(t){return t.prototype&&t.prototype.isReactComponent}function ga(t,r,s,p,b){var S={};jr(r,S);var D=s(p,b);return yu(s,p,D,b)}function Dl(t,r,s,p,b){var S=s.render();s.props!==b&&(Ss||o("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",ct(p)||"a component"),Ss=!0);{var D=p.childContextTypes;if(D!=null){var H=r.legacyContext,X=fl(s,p,H,D);r.legacyContext=X,sn(t,r,S),r.legacyContext=H;return}}sn(t,r,S)}function Mu(t,r,s,p){or(r,s);var b=na(s,r.legacyContext),S=vl(s,p,b);wl(S,s,p,b),Dl(t,r,S,s,p),Vn(r)}var Il={},ma={},xs={},Bl={},Ss=!1,va={},ks=!1,Es=!1,Cs=!1;function Ml(t,r,s,p){var b;if(b=na(s,r.legacyContext),da(r,s),s.prototype&&typeof s.prototype.render=="function"){var S=ct(s)||"Unknown";Il[S]||(o("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",S,S),Il[S]=!0)}var D=ga(t,r,s,p,b),H=hs();if(typeof D=="object"&&D!==null&&typeof D.render=="function"&&D.$$typeof===void 0){var X=ct(s)||"Unknown";ma[X]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",X,X,X),ma[X]=!0)}if(typeof D=="object"&&D!==null&&typeof D.render=="function"&&D.$$typeof===void 0){{var oe=ct(s)||"Unknown";ma[oe]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",oe,oe,oe),ma[oe]=!0)}wl(D,s,p,b),Dl(t,r,D,s,p)}else if(Rl(s),H){var se=r.treeContext,pe=1,Te=0;r.treeContext=ds(se,pe,Te);try{sn(t,r,D)}finally{r.treeContext=se}}else sn(t,r,D);Vn(r)}function Rl(t){{if(t&&t.childContextTypes&&o("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),t.defaultProps!==void 0){var r=ct(t)||"Unknown";va[r]||(o("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",r),va[r]=!0)}if(typeof t.getDerivedStateFromProps=="function"){var s=ct(t)||"Unknown";Bl[s]||(o("%s: Function components do not support getDerivedStateFromProps.",s),Bl[s]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var p=ct(t)||"Unknown";xs[p]||(o("%s: Function components do not support contextType.",p),xs[p]=!0)}}}function Ps(t,r){if(t&&t.defaultProps){var s=Jt({},r),p=t.defaultProps;for(var b in p)s[b]===void 0&&(s[b]=p[b]);return s}return r}function Ol(t,r,s,p,b){da(r,s.render);var S=ga(t,r,s.render,p,b),D=hs();if(D){var H=r.treeContext,X=1,oe=0;r.treeContext=ds(H,X,oe);try{sn(t,r,S)}finally{r.treeContext=H}}else sn(t,r,S);Vn(r)}function Ru(t,r,s,p,b){var S=s.type,D=Ps(S,p);Ts(t,r,S,D,b)}function Ou(t,r,s,p){s._context===void 0?s!==s.Consumer&&(Cs||(Cs=!0,o("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):s=s._context;var b=p.children;typeof b!="function"&&o("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var S=Cr(s),D=b(S);sn(t,r,D)}function _l(t,r,s,p){var b=s._context,S=p.value,D=p.children,H;H=r.context,r.context=pl(b,S),sn(t,r,D),r.context=hl(b),H!==r.context&&o("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function _u(t,r,s,p,b){Gr(r,"Lazy");var S=s._payload,D=s._init,H=D(S),X=Ps(H,p);Ts(t,r,H,X,b),Vn(r)}function Ts(t,r,s,p,b){if(typeof s=="function")if(ha(s)){Mu(t,r,s,p);return}else{Ml(t,r,s,p);return}if(typeof s=="string"){ws(t,r,s,p);return}switch(s){case qi:case Ki:case nn:case sl:case Ya:{sn(t,r,p.children);return}case Jo:{Gr(r,"SuspenseList"),sn(t,r,p.children),Vn(r);return}case Ji:throw new Error("ReactDOMServer does not yet support scope components.");case Ja:{pa(t,r,p);return}}if(typeof s=="object"&&s!==null)switch(s.$$typeof){case Xa:{Ol(t,r,s,p,b);return}case Ko:{Ru(t,r,s,p,b);return}case Ga:{_l(t,r,s,p);return}case Va:{Ou(t,r,s,p);return}case yo:{_u(t,r,s,p);return}}var S="";throw(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).length===0)&&(S+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(s==null?s:typeof s)+"."+S))}function Lu(t,r){typeof Symbol=="function"&&t[Symbol.toStringTag]==="Generator"&&(ks||o("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),ks=!0),t.entries===r&&(Es||o("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Es=!0)}function sn(t,r,s){try{return Fu(t,r,s)}catch(p){throw typeof p=="object"&&p!==null&&typeof p.then=="function"||(ar=ar!==null?ar:bs()),p}}function Fu(t,r,s){if(r.node=s,typeof s=="object"&&s!==null){switch(s.$$typeof){case ou:{var p=s,b=p.type,S=p.props,D=p.ref;Ts(t,r,b,S,D);return}case il:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case yo:{var H=s,X=H._payload,oe=H._init,se;try{se=oe(X)}catch(Io){throw typeof Io=="object"&&Io!==null&&typeof Io.then=="function"&&Gr(r,"Lazy"),Io}sn(t,r,se);return}}if(An(s)){Ei(t,r,s);return}var pe=iu(s);if(pe){Lu(s,pe);var Te=pe.call(s);if(Te){var Ye=Te.next();if(!Ye.done){var Tt=[];do Tt.push(Ye.value),Ye=Te.next();while(!Ye.done);Ei(t,r,Tt);return}return}}var Xr=Object.prototype.toString.call(s);throw new Error("Objects are not valid as a React child (found: "+(Xr==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":Xr)+"). If you meant to render a collection of children, use an array instead.")}if(typeof s=="string"){var Jr=r.blockedSegment;Jr.lastPushedText=ol(r.blockedSegment.chunks,s,t.responseState,Jr.lastPushedText);return}if(typeof s=="number"){var ir=r.blockedSegment;ir.lastPushedText=ol(r.blockedSegment.chunks,""+s,t.responseState,ir.lastPushedText);return}typeof s=="function"&&o("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function Ei(t,r,s){for(var p=s.length,b=0;b<p;b++){var S=r.treeContext;r.treeContext=ds(S,p,b);try{Gt(t,r,s[b])}finally{r.treeContext=S}}}function Qu(t,r,s){var p=r.blockedSegment,b=p.chunks.length,S=Si(t,b,null,p.formatContext,p.lastPushedText,!0);p.children.push(S),p.lastPushedText=!1;var D=Yr(t,r.node,r.blockedBoundary,S,r.abortSet,r.legacyContext,r.context,r.treeContext);r.componentStack!==null&&(D.componentStack=r.componentStack.parent);var H=D.ping;s.then(H,H)}function Gt(t,r,s){var p=r.blockedSegment.formatContext,b=r.legacyContext,S=r.context,D=null;D=r.componentStack;try{return sn(t,r,s)}catch(H){if(ua(),typeof H=="object"&&H!==null&&typeof H.then=="function"){Qu(t,r,H),r.blockedSegment.formatContext=p,r.legacyContext=b,r.context=S,oa(S),r.componentStack=D;return}else throw r.blockedSegment.formatContext=p,r.legacyContext=b,r.context=S,oa(S),r.componentStack=D,H}}function Hu(t,r,s,p){var b=fa(t,p);if(r===null?In(t,p):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,r.errorDigest=b,ki(r,p),r.parentFlushed&&t.clientRenderedBoundaries.push(r))),t.allPendingTasks--,t.allPendingTasks===0){var S=t.onAllReady;S()}}function Ll(t){var r=this,s=t.blockedBoundary,p=t.blockedSegment;p.status=wi,Ql(r,s,p)}function Fl(t,r,s){var p=t.blockedBoundary,b=t.blockedSegment;if(b.status=wi,p===null)r.allPendingTasks--,r.status!==Wr&&(r.status=Wr,r.destination!==null&&v(r.destination));else{if(p.pendingTasks--,!p.forceClientRender){p.forceClientRender=!0;var S=s===void 0?new Error("The render was aborted by the server without a reason."):s;p.errorDigest=r.onError(S);{var D="The server did not finish this Suspense boundary: ";S&&typeof S.message=="string"?S=D+S.message:S=D+String(S);var H=rr;rr=t;try{ki(p,S)}finally{rr=H}}p.parentFlushed&&r.clientRenderedBoundaries.push(p)}if(p.fallbackAbortableTasks.forEach(function(oe){return Fl(oe,r,s)}),p.fallbackAbortableTasks.clear(),r.allPendingTasks--,r.allPendingTasks===0){var X=r.onAllReady;X()}}}function Do(t,r){if(r.chunks.length===0&&r.children.length===1&&r.children[0].boundary===null){var s=r.children[0];s.id=r.id,s.parentFlushed=!0,s.status===Eo&&Do(t,s)}else{var p=t.completedSegments;p.push(r)}}function Ql(t,r,s){if(r===null){if(s.parentFlushed){if(t.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");t.completedRootSegment=s}if(t.pendingRootTasks--,t.pendingRootTasks===0){t.onShellError=Po;var p=t.onShellReady;p()}}else if(r.pendingTasks--,!r.forceClientRender){if(r.pendingTasks===0)s.parentFlushed&&s.status===Eo&&Do(r,s),r.parentFlushed&&t.completedBoundaries.push(r),r.fallbackAbortableTasks.forEach(Ll,t),r.fallbackAbortableTasks.clear();else if(s.parentFlushed&&s.status===Eo){Do(r,s);var b=r.completedSegments;b.length===1&&r.parentFlushed&&t.partialBoundaries.push(r)}}if(t.allPendingTasks--,t.allPendingTasks===0){var S=t.onAllReady;S()}}function Nu(t,r){var s=r.blockedSegment;if(s.status===yi){oa(r.context);var p=null;p=rr,rr=r;try{sn(t,r,r.node),al(s.chunks,t.responseState,s.lastPushedText,s.textEmbedded),r.abortSet.delete(r),s.status=Eo,Ql(t,r.blockedBoundary,s)}catch(S){if(ua(),typeof S=="object"&&S!==null&&typeof S.then=="function"){var b=r.ping;S.then(b,b)}else r.abortSet.delete(r),s.status=xi,Hu(t,r.blockedBoundary,s,S)}finally{rr=p}}}function Ds(t){if(t.status!==Wr){var r=gl(),s=vi.current;vi.current=Cl;var p;p=Aa.getCurrentStack,Aa.getCurrentStack=bs;var b=vs;Pl(t.responseState);try{var S=t.pingedTasks,D;for(D=0;D<S.length;D++){var H=S[D];Nu(t,H)}S.splice(0,D),t.destination!==null&&Pi(t,t.destination)}catch(X){fa(t,X),In(t,X)}finally{Pl(b),vi.current=s,Aa.getCurrentStack=p,s===Cl&&oa(r)}}}function Vr(t,r,s){switch(s.parentFlushed=!0,s.status){case yi:{var p=s.id=t.nextSegmentId++;return s.lastPushedText=!1,s.textEmbedded=!1,Wn(r,t.responseState,p)}case Eo:{s.status=bi;for(var b=!0,S=s.chunks,D=0,H=s.children,X=0;X<H.length;X++){for(var oe=H[X];D<oe.index;D++)c(r,S[D]);b=ya(t,r,oe)}for(;D<S.length-1;D++)c(r,S[D]);return D<S.length&&(b=d(r,S[D])),b}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function ya(t,r,s){var p=s.boundary;if(p===null)return Vr(t,r,s);if(p.parentFlushed=!0,p.forceClientRender)return tu(r,t.responseState,p.errorDigest,p.errorMessage,p.errorComponentStack),Vr(t,r,s),ru(r,t.responseState);if(p.pendingTasks>0){p.rootSegmentID=t.nextSegmentId++,p.completedSegments.length>0&&t.partialBoundaries.push(p);var b=p.id=Cn(t.responseState);return Lr(r,t.responseState,b),Vr(t,r,s),xr(r,t.responseState)}else{if(p.byteSize>t.progressiveChunkSize)return p.rootSegmentID=t.nextSegmentId++,t.completedBoundaries.push(p),Lr(r,t.responseState,p.id),Vr(t,r,s),xr(r,t.responseState);eu(r,t.responseState);var S=p.completedSegments;if(S.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var D=S[0];return ya(t,r,D),nu(r,t.responseState)}}function Uu(t,r,s){return Kc(r,t.responseState,s.id,s.errorDigest,s.errorMessage,s.errorComponentStack)}function Is(t,r,s){return Xo(r,t.responseState,s.formatContext,s.id),ya(t,r,s),ja(r,s.formatContext)}function ba(t,r,s){for(var p=s.completedSegments,b=0;b<p.length;b++){var S=p[b];Hl(t,r,s,S)}return p.length=0,Yt(r,t.responseState,s.id,s.rootSegmentID)}function Ci(t,r,s){for(var p=s.completedSegments,b=0;b<p.length;b++){var S=p[b];if(!Hl(t,r,s,S))return b++,p.splice(0,b),!1}return p.splice(0,b),!0}function Hl(t,r,s,p){if(p.status===bi)return!0;var b=p.id;if(b===-1){var S=p.id=s.rootSegmentID;if(S===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Is(t,r,p)}else return Is(t,r,p),Ae(r,t.responseState,b)}function Pi(t,r){try{var s=t.completedRootSegment;s!==null&&t.pendingRootTasks===0&&(ya(t,r,s),t.completedRootSegment=null,er(r,t.responseState));var p=t.clientRenderedBoundaries,b;for(b=0;b<p.length;b++){var S=p[b];if(!Uu(t,r,S)){t.destination=null,b++,p.splice(0,b);return}}p.splice(0,b);var D=t.completedBoundaries;for(b=0;b<D.length;b++){var H=D[b];if(!ba(t,r,H)){t.destination=null,b++,D.splice(0,b);return}}D.splice(0,b);var X=t.partialBoundaries;for(b=0;b<X.length;b++){var oe=X[b];if(!Ci(t,r,oe)){t.destination=null,b++,X.splice(0,b);return}}X.splice(0,b);var se=t.completedBoundaries;for(b=0;b<se.length;b++){var pe=se[b];if(!ba(t,r,pe)){t.destination=null,b++,se.splice(0,b);return}}se.splice(0,b)}finally{t.allPendingTasks===0&&t.pingedTasks.length===0&&t.clientRenderedBoundaries.length===0&&t.completedBoundaries.length===0&&(t.abortableTasks.size!==0&&o("There was still abortable task at the root when we closed. This is a bug in React."),v(r))}}function Nl(t){f(function(){return Ds(t)})}function zu(t,r){if(t.status===ys){t.status=Wr,C(r,t.fatalError);return}if(t.status!==Wr&&t.destination===null){t.destination=r;try{Pi(t,r)}catch(s){fa(t,s),In(t,s)}}}function Ul(t,r){try{var s=t.abortableTasks;s.forEach(function(p){return Fl(p,t,r)}),s.clear(),t.destination!==null&&Pi(t,t.destination)}catch(p){fa(t,p),In(t,p)}}function Bs(){}function zl(t,r,s,p){var b=!1,S=null,D="",H={push:function(pe){return pe!==null&&(D+=pe),!0},destroy:function(pe){b=!0,S=pe}},X=!1;function oe(){X=!0}var se=To(t,$c(s,r?r.identifierPrefix:void 0),Zc(),1/0,Bs,void 0,oe);if(Nl(se),Ul(se,p),zu(se,H),b)throw S;if(!X)throw new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");return D}function ju(t,r){return zl(t,r,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function jl(t,r){return zl(t,r,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function Wu(){throw new Error("ReactDOMServer.renderToNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToString() instead.")}function l(){throw new Error("ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToStaticMarkup() instead.")}Ro.renderToNodeStream=Wu,Ro.renderToStaticMarkup=jl,Ro.renderToStaticNodeStream=l,Ro.renderToString=ju,Ro.version=n}()),Ro}var Rs={};/**
66
+ `+p.stack}}var vi=i.ReactCurrentDispatcher,Aa=i.ReactDebugCurrentFrame,yi=0,Eo=1,bi=2,wi=3,xi=4,Co=0,ys=1,Wr=2,Tl=12800;function Du(t){return console.error(t),null}function Po(){}function To(t,r,s,p,b,S,D,H,X){var oe=[],se=new Set,pe={destination:null,responseState:r,progressiveChunkSize:p===void 0?Tl:p,status:Co,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:se,pingedTasks:oe,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:b===void 0?Du:b,onAllReady:Po,onShellReady:D===void 0?Po:D,onShellError:Po,onFatalError:Po},Te=Si(pe,0,null,s,!1,!1);Te.parentFlushed=!0;var Ye=Yr(pe,t,null,Te,se,ta,ni,Au);return oe.push(Ye),pe}function Iu(t,r){var s=t.pingedTasks;s.push(r),s.length===1&&f(function(){return Ds(t)})}function Bu(t,r){return{id:oo,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:r,errorDigest:null}}function Yr(t,r,s,p,b,S,D,H){t.allPendingTasks++,s===null?t.pendingRootTasks++:s.pendingTasks++;var X={node:r,ping:function(){return Iu(t,X)},blockedBoundary:s,blockedSegment:p,abortSet:b,legacyContext:S,context:D,treeContext:H};return X.componentStack=null,b.add(X),X}function Si(t,r,s,p,b,S){return{status:yi,id:-1,index:r,parentFlushed:!1,chunks:[],children:[],formatContext:p,boundary:s,lastPushedText:b,textEmbedded:S}}var rr=null;function bs(){return rr===null||rr.componentStack===null?"":mi(rr.componentStack)}function Gr(t,r){t.componentStack={tag:0,parent:t.componentStack,type:r}}function da(t,r){t.componentStack={tag:1,parent:t.componentStack,type:r}}function or(t,r){t.componentStack={tag:2,parent:t.componentStack,type:r}}function Vn(t){t.componentStack===null?o("Unexpectedly popped too many stack frames. This is a bug in React."):t.componentStack=t.componentStack.parent}var ar=null;function ki(t,r){{var s;typeof r=="string"?s=r:r&&typeof r.message=="string"?s=r.message:s=String(r);var p=ar||bs();ar=null,t.errorMessage=s,t.errorComponentStack=p}}function fa(t,r){var s=t.onError(r);if(s!=null&&typeof s!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof s+'" instead');return s}function In(t,r){var s=t.onShellError;s(r);var p=t.onFatalError;p(r),t.destination!==null?(t.status=Wr,C(t.destination,r)):(t.status=ys,t.fatalError=r)}function pa(t,r,s){Gr(r,"Suspense");var p=r.blockedBoundary,b=r.blockedSegment,S=s.fallback,D=s.children,H=new Set,X=Bu(t,H),oe=b.chunks.length,se=Si(t,oe,X,b.formatContext,!1,!1);b.children.push(se),b.lastPushedText=!1;var pe=Si(t,0,null,b.formatContext,!1,!1);pe.parentFlushed=!0,r.blockedBoundary=X,r.blockedSegment=pe;try{if(Gt(t,r,D),al(pe.chunks,t.responseState,pe.lastPushedText,pe.textEmbedded),pe.status=Eo,Do(X,pe),X.pendingTasks===0){Vn(r);return}}catch(Ye){pe.status=xi,X.forceClientRender=!0,X.errorDigest=fa(t,Ye),ki(X,Ye)}finally{r.blockedBoundary=p,r.blockedSegment=b}var Te=Yr(t,S,p,se,H,r.legacyContext,r.context,r.treeContext);Te.componentStack=r.componentStack,t.pingedTasks.push(Te),Vn(r)}function ws(t,r,s,p){Gr(r,s);var b=r.blockedSegment,S=Tn(b.chunks,s,p,t.responseState,b.formatContext);b.lastPushedText=!1;var D=b.formatContext;b.formatContext=ro(D,s,p),Gt(t,r,S),b.formatContext=D,$e(b.chunks,s),b.lastPushedText=!1,Vn(r)}function ha(t){return t.prototype&&t.prototype.isReactComponent}function ga(t,r,s,p,b){var S={};jr(r,S);var D=s(p,b);return yu(s,p,D,b)}function Dl(t,r,s,p,b){var S=s.render();s.props!==b&&(Ss||o("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",ct(p)||"a component"),Ss=!0);{var D=p.childContextTypes;if(D!=null){var H=r.legacyContext,X=fl(s,p,H,D);r.legacyContext=X,sn(t,r,S),r.legacyContext=H;return}}sn(t,r,S)}function Mu(t,r,s,p){or(r,s);var b=na(s,r.legacyContext),S=vl(s,p,b);wl(S,s,p,b),Dl(t,r,S,s,p),Vn(r)}var Il={},ma={},xs={},Bl={},Ss=!1,va={},ks=!1,Es=!1,Cs=!1;function Ml(t,r,s,p){var b;if(b=na(s,r.legacyContext),da(r,s),s.prototype&&typeof s.prototype.render=="function"){var S=ct(s)||"Unknown";Il[S]||(o("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",S,S),Il[S]=!0)}var D=ga(t,r,s,p,b),H=hs();if(typeof D=="object"&&D!==null&&typeof D.render=="function"&&D.$$typeof===void 0){var X=ct(s)||"Unknown";ma[X]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",X,X,X),ma[X]=!0)}if(typeof D=="object"&&D!==null&&typeof D.render=="function"&&D.$$typeof===void 0){{var oe=ct(s)||"Unknown";ma[oe]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",oe,oe,oe),ma[oe]=!0)}wl(D,s,p,b),Dl(t,r,D,s,p)}else if(Rl(s),H){var se=r.treeContext,pe=1,Te=0;r.treeContext=ds(se,pe,Te);try{sn(t,r,D)}finally{r.treeContext=se}}else sn(t,r,D);Vn(r)}function Rl(t){{if(t&&t.childContextTypes&&o("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),t.defaultProps!==void 0){var r=ct(t)||"Unknown";va[r]||(o("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",r),va[r]=!0)}if(typeof t.getDerivedStateFromProps=="function"){var s=ct(t)||"Unknown";Bl[s]||(o("%s: Function components do not support getDerivedStateFromProps.",s),Bl[s]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var p=ct(t)||"Unknown";xs[p]||(o("%s: Function components do not support contextType.",p),xs[p]=!0)}}}function Ps(t,r){if(t&&t.defaultProps){var s=Jt({},r),p=t.defaultProps;for(var b in p)s[b]===void 0&&(s[b]=p[b]);return s}return r}function Ol(t,r,s,p,b){da(r,s.render);var S=ga(t,r,s.render,p,b),D=hs();if(D){var H=r.treeContext,X=1,oe=0;r.treeContext=ds(H,X,oe);try{sn(t,r,S)}finally{r.treeContext=H}}else sn(t,r,S);Vn(r)}function Ru(t,r,s,p,b){var S=s.type,D=Ps(S,p);Ts(t,r,S,D,b)}function Ou(t,r,s,p){s._context===void 0?s!==s.Consumer&&(Cs||(Cs=!0,o("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):s=s._context;var b=p.children;typeof b!="function"&&o("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var S=Cr(s),D=b(S);sn(t,r,D)}function _l(t,r,s,p){var b=s._context,S=p.value,D=p.children,H;H=r.context,r.context=pl(b,S),sn(t,r,D),r.context=hl(b),H!==r.context&&o("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function _u(t,r,s,p,b){Gr(r,"Lazy");var S=s._payload,D=s._init,H=D(S),X=Ps(H,p);Ts(t,r,H,X,b),Vn(r)}function Ts(t,r,s,p,b){if(typeof s=="function")if(ha(s)){Mu(t,r,s,p);return}else{Ml(t,r,s,p);return}if(typeof s=="string"){ws(t,r,s,p);return}switch(s){case Ki:case qi:case nn:case sl:case Ya:{sn(t,r,p.children);return}case Jo:{Gr(r,"SuspenseList"),sn(t,r,p.children),Vn(r);return}case Ji:throw new Error("ReactDOMServer does not yet support scope components.");case Ja:{pa(t,r,p);return}}if(typeof s=="object"&&s!==null)switch(s.$$typeof){case Xa:{Ol(t,r,s,p,b);return}case qo:{Ru(t,r,s,p,b);return}case Ga:{_l(t,r,s,p);return}case Va:{Ou(t,r,s,p);return}case yo:{_u(t,r,s,p);return}}var S="";throw(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).length===0)&&(S+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(s==null?s:typeof s)+"."+S))}function Lu(t,r){typeof Symbol=="function"&&t[Symbol.toStringTag]==="Generator"&&(ks||o("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),ks=!0),t.entries===r&&(Es||o("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Es=!0)}function sn(t,r,s){try{return Fu(t,r,s)}catch(p){throw typeof p=="object"&&p!==null&&typeof p.then=="function"||(ar=ar!==null?ar:bs()),p}}function Fu(t,r,s){if(r.node=s,typeof s=="object"&&s!==null){switch(s.$$typeof){case ou:{var p=s,b=p.type,S=p.props,D=p.ref;Ts(t,r,b,S,D);return}case il:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case yo:{var H=s,X=H._payload,oe=H._init,se;try{se=oe(X)}catch(Io){throw typeof Io=="object"&&Io!==null&&typeof Io.then=="function"&&Gr(r,"Lazy"),Io}sn(t,r,se);return}}if(An(s)){Ei(t,r,s);return}var pe=iu(s);if(pe){Lu(s,pe);var Te=pe.call(s);if(Te){var Ye=Te.next();if(!Ye.done){var Tt=[];do Tt.push(Ye.value),Ye=Te.next();while(!Ye.done);Ei(t,r,Tt);return}return}}var Xr=Object.prototype.toString.call(s);throw new Error("Objects are not valid as a React child (found: "+(Xr==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":Xr)+"). If you meant to render a collection of children, use an array instead.")}if(typeof s=="string"){var Jr=r.blockedSegment;Jr.lastPushedText=ol(r.blockedSegment.chunks,s,t.responseState,Jr.lastPushedText);return}if(typeof s=="number"){var ir=r.blockedSegment;ir.lastPushedText=ol(r.blockedSegment.chunks,""+s,t.responseState,ir.lastPushedText);return}typeof s=="function"&&o("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function Ei(t,r,s){for(var p=s.length,b=0;b<p;b++){var S=r.treeContext;r.treeContext=ds(S,p,b);try{Gt(t,r,s[b])}finally{r.treeContext=S}}}function Qu(t,r,s){var p=r.blockedSegment,b=p.chunks.length,S=Si(t,b,null,p.formatContext,p.lastPushedText,!0);p.children.push(S),p.lastPushedText=!1;var D=Yr(t,r.node,r.blockedBoundary,S,r.abortSet,r.legacyContext,r.context,r.treeContext);r.componentStack!==null&&(D.componentStack=r.componentStack.parent);var H=D.ping;s.then(H,H)}function Gt(t,r,s){var p=r.blockedSegment.formatContext,b=r.legacyContext,S=r.context,D=null;D=r.componentStack;try{return sn(t,r,s)}catch(H){if(ua(),typeof H=="object"&&H!==null&&typeof H.then=="function"){Qu(t,r,H),r.blockedSegment.formatContext=p,r.legacyContext=b,r.context=S,oa(S),r.componentStack=D;return}else throw r.blockedSegment.formatContext=p,r.legacyContext=b,r.context=S,oa(S),r.componentStack=D,H}}function Hu(t,r,s,p){var b=fa(t,p);if(r===null?In(t,p):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,r.errorDigest=b,ki(r,p),r.parentFlushed&&t.clientRenderedBoundaries.push(r))),t.allPendingTasks--,t.allPendingTasks===0){var S=t.onAllReady;S()}}function Ll(t){var r=this,s=t.blockedBoundary,p=t.blockedSegment;p.status=wi,Ql(r,s,p)}function Fl(t,r,s){var p=t.blockedBoundary,b=t.blockedSegment;if(b.status=wi,p===null)r.allPendingTasks--,r.status!==Wr&&(r.status=Wr,r.destination!==null&&v(r.destination));else{if(p.pendingTasks--,!p.forceClientRender){p.forceClientRender=!0;var S=s===void 0?new Error("The render was aborted by the server without a reason."):s;p.errorDigest=r.onError(S);{var D="The server did not finish this Suspense boundary: ";S&&typeof S.message=="string"?S=D+S.message:S=D+String(S);var H=rr;rr=t;try{ki(p,S)}finally{rr=H}}p.parentFlushed&&r.clientRenderedBoundaries.push(p)}if(p.fallbackAbortableTasks.forEach(function(oe){return Fl(oe,r,s)}),p.fallbackAbortableTasks.clear(),r.allPendingTasks--,r.allPendingTasks===0){var X=r.onAllReady;X()}}}function Do(t,r){if(r.chunks.length===0&&r.children.length===1&&r.children[0].boundary===null){var s=r.children[0];s.id=r.id,s.parentFlushed=!0,s.status===Eo&&Do(t,s)}else{var p=t.completedSegments;p.push(r)}}function Ql(t,r,s){if(r===null){if(s.parentFlushed){if(t.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");t.completedRootSegment=s}if(t.pendingRootTasks--,t.pendingRootTasks===0){t.onShellError=Po;var p=t.onShellReady;p()}}else if(r.pendingTasks--,!r.forceClientRender){if(r.pendingTasks===0)s.parentFlushed&&s.status===Eo&&Do(r,s),r.parentFlushed&&t.completedBoundaries.push(r),r.fallbackAbortableTasks.forEach(Ll,t),r.fallbackAbortableTasks.clear();else if(s.parentFlushed&&s.status===Eo){Do(r,s);var b=r.completedSegments;b.length===1&&r.parentFlushed&&t.partialBoundaries.push(r)}}if(t.allPendingTasks--,t.allPendingTasks===0){var S=t.onAllReady;S()}}function Nu(t,r){var s=r.blockedSegment;if(s.status===yi){oa(r.context);var p=null;p=rr,rr=r;try{sn(t,r,r.node),al(s.chunks,t.responseState,s.lastPushedText,s.textEmbedded),r.abortSet.delete(r),s.status=Eo,Ql(t,r.blockedBoundary,s)}catch(S){if(ua(),typeof S=="object"&&S!==null&&typeof S.then=="function"){var b=r.ping;S.then(b,b)}else r.abortSet.delete(r),s.status=xi,Hu(t,r.blockedBoundary,s,S)}finally{rr=p}}}function Ds(t){if(t.status!==Wr){var r=gl(),s=vi.current;vi.current=Cl;var p;p=Aa.getCurrentStack,Aa.getCurrentStack=bs;var b=vs;Pl(t.responseState);try{var S=t.pingedTasks,D;for(D=0;D<S.length;D++){var H=S[D];Nu(t,H)}S.splice(0,D),t.destination!==null&&Pi(t,t.destination)}catch(X){fa(t,X),In(t,X)}finally{Pl(b),vi.current=s,Aa.getCurrentStack=p,s===Cl&&oa(r)}}}function Vr(t,r,s){switch(s.parentFlushed=!0,s.status){case yi:{var p=s.id=t.nextSegmentId++;return s.lastPushedText=!1,s.textEmbedded=!1,Wn(r,t.responseState,p)}case Eo:{s.status=bi;for(var b=!0,S=s.chunks,D=0,H=s.children,X=0;X<H.length;X++){for(var oe=H[X];D<oe.index;D++)c(r,S[D]);b=ya(t,r,oe)}for(;D<S.length-1;D++)c(r,S[D]);return D<S.length&&(b=d(r,S[D])),b}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function ya(t,r,s){var p=s.boundary;if(p===null)return Vr(t,r,s);if(p.parentFlushed=!0,p.forceClientRender)return tu(r,t.responseState,p.errorDigest,p.errorMessage,p.errorComponentStack),Vr(t,r,s),ru(r,t.responseState);if(p.pendingTasks>0){p.rootSegmentID=t.nextSegmentId++,p.completedSegments.length>0&&t.partialBoundaries.push(p);var b=p.id=Cn(t.responseState);return Lr(r,t.responseState,b),Vr(t,r,s),xr(r,t.responseState)}else{if(p.byteSize>t.progressiveChunkSize)return p.rootSegmentID=t.nextSegmentId++,t.completedBoundaries.push(p),Lr(r,t.responseState,p.id),Vr(t,r,s),xr(r,t.responseState);eu(r,t.responseState);var S=p.completedSegments;if(S.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var D=S[0];return ya(t,r,D),nu(r,t.responseState)}}function Uu(t,r,s){return qc(r,t.responseState,s.id,s.errorDigest,s.errorMessage,s.errorComponentStack)}function Is(t,r,s){return Xo(r,t.responseState,s.formatContext,s.id),ya(t,r,s),ja(r,s.formatContext)}function ba(t,r,s){for(var p=s.completedSegments,b=0;b<p.length;b++){var S=p[b];Hl(t,r,s,S)}return p.length=0,Yt(r,t.responseState,s.id,s.rootSegmentID)}function Ci(t,r,s){for(var p=s.completedSegments,b=0;b<p.length;b++){var S=p[b];if(!Hl(t,r,s,S))return b++,p.splice(0,b),!1}return p.splice(0,b),!0}function Hl(t,r,s,p){if(p.status===bi)return!0;var b=p.id;if(b===-1){var S=p.id=s.rootSegmentID;if(S===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Is(t,r,p)}else return Is(t,r,p),Ae(r,t.responseState,b)}function Pi(t,r){try{var s=t.completedRootSegment;s!==null&&t.pendingRootTasks===0&&(ya(t,r,s),t.completedRootSegment=null,er(r,t.responseState));var p=t.clientRenderedBoundaries,b;for(b=0;b<p.length;b++){var S=p[b];if(!Uu(t,r,S)){t.destination=null,b++,p.splice(0,b);return}}p.splice(0,b);var D=t.completedBoundaries;for(b=0;b<D.length;b++){var H=D[b];if(!ba(t,r,H)){t.destination=null,b++,D.splice(0,b);return}}D.splice(0,b);var X=t.partialBoundaries;for(b=0;b<X.length;b++){var oe=X[b];if(!Ci(t,r,oe)){t.destination=null,b++,X.splice(0,b);return}}X.splice(0,b);var se=t.completedBoundaries;for(b=0;b<se.length;b++){var pe=se[b];if(!ba(t,r,pe)){t.destination=null,b++,se.splice(0,b);return}}se.splice(0,b)}finally{t.allPendingTasks===0&&t.pingedTasks.length===0&&t.clientRenderedBoundaries.length===0&&t.completedBoundaries.length===0&&(t.abortableTasks.size!==0&&o("There was still abortable task at the root when we closed. This is a bug in React."),v(r))}}function Nl(t){f(function(){return Ds(t)})}function zu(t,r){if(t.status===ys){t.status=Wr,C(r,t.fatalError);return}if(t.status!==Wr&&t.destination===null){t.destination=r;try{Pi(t,r)}catch(s){fa(t,s),In(t,s)}}}function Ul(t,r){try{var s=t.abortableTasks;s.forEach(function(p){return Fl(p,t,r)}),s.clear(),t.destination!==null&&Pi(t,t.destination)}catch(p){fa(t,p),In(t,p)}}function Bs(){}function zl(t,r,s,p){var b=!1,S=null,D="",H={push:function(pe){return pe!==null&&(D+=pe),!0},destroy:function(pe){b=!0,S=pe}},X=!1;function oe(){X=!0}var se=To(t,$c(s,r?r.identifierPrefix:void 0),Zc(),1/0,Bs,void 0,oe);if(Nl(se),Ul(se,p),zu(se,H),b)throw S;if(!X)throw new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");return D}function ju(t,r){return zl(t,r,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function jl(t,r){return zl(t,r,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function Wu(){throw new Error("ReactDOMServer.renderToNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToString() instead.")}function l(){throw new Error("ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToStaticMarkup() instead.")}Ro.renderToNodeStream=Wu,Ro.renderToStaticMarkup=jl,Ro.renderToStaticNodeStream=l,Ro.renderToString=ju,Ro.version=n}()),Ro}var Rs={};/**
67
67
  * @license React
68
68
  * react-dom-server.browser.development.js
69
69
  *
@@ -71,17 +71,17 @@ Error generating stack: `+p.message+`
71
71
  *
72
72
  * This source code is licensed under the MIT license found in the
73
73
  * LICENSE file in the root directory of this source tree.
74
- */var Ju;function bf(){return Ju||(Ju=1,process.env.NODE_ENV!=="production"&&function(){var e=B,n="18.3.1",i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function a(l){{for(var t=arguments.length,r=new Array(t>1?t-1:0),s=1;s<t;s++)r[s-1]=arguments[s];u("warn",l,r)}}function o(l){{for(var t=arguments.length,r=new Array(t>1?t-1:0),s=1;s<t;s++)r[s-1]=arguments[s];u("error",l,r)}}function u(l,t,r){{var s=i.ReactDebugCurrentFrame,p=s.getStackAddendum();p!==""&&(t+="%s",r=r.concat([p]));var b=r.map(function(S){return String(S)});b.unshift("Warning: "+t),Function.prototype.apply.call(console[l],console,b)}}function f(l){l()}var A=512,c=null,d=0;function h(l){c=new Uint8Array(A),d=0}function v(l,t){if(t.length!==0){if(t.length>A){d>0&&(l.enqueue(new Uint8Array(c.buffer,0,d)),c=new Uint8Array(A),d=0),l.enqueue(t);return}var r=t,s=c.length-d;s<r.length&&(s===0?l.enqueue(c):(c.set(r.subarray(0,s),d),l.enqueue(c),r=r.subarray(s)),c=new Uint8Array(A),d=0),c.set(r,d),d+=r.length}}function y(l,t){return v(l,t),!0}function k(l){c&&d>0&&(l.enqueue(new Uint8Array(c.buffer,0,d)),c=null,d=0)}function C(l){l.close()}var R=new TextEncoder;function E(l){return R.encode(l)}function T(l){return R.encode(l)}function Q(l,t){typeof l.error=="function"?l.error(t):l.close()}function M(l){{var t=typeof Symbol=="function"&&Symbol.toStringTag,r=t&&l[Symbol.toStringTag]||l.constructor.name||"Object";return r}}function U(l){try{return j(l),!1}catch{return!0}}function j(l){return""+l}function N(l,t){if(U(l))return o("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,M(l)),j(l)}function W(l,t){if(U(l))return o("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,M(l)),j(l)}function ee(l){if(U(l))return o("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",M(l)),j(l)}var G=Object.prototype.hasOwnProperty,Y=0,Z=1,$=2,ae=3,ie=4,le=5,be=6,he=":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",me=he+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",L=new RegExp("^["+he+"]["+me+"]*$"),Be={},F={};function ve(l){return G.call(F,l)?!0:G.call(Be,l)?!1:L.test(l)?(F[l]=!0,!0):(Be[l]=!0,o("Invalid attribute name: `%s`",l),!1)}function fe(l,t,r,s){if(r!==null&&r.type===Y)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":{if(r!==null)return!r.acceptsBooleans;var p=l.toLowerCase().slice(0,5);return p!=="data-"&&p!=="aria-"}default:return!1}}function ce(l){return ye.hasOwnProperty(l)?ye[l]:null}function ge(l,t,r,s,p,b,S){this.acceptsBooleans=t===$||t===ae||t===ie,this.attributeName=s,this.attributeNamespace=p,this.mustUseProperty=r,this.propertyName=l,this.type=t,this.sanitizeURL=b,this.removeEmptyString=S}var ye={},De=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];De.forEach(function(l){ye[l]=new ge(l,Y,!1,l,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var t=l[0],r=l[1];ye[t]=new ge(t,Z,!1,r,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){ye[l]=new ge(l,$,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){ye[l]=new ge(l,$,!1,l,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(l){ye[l]=new ge(l,ae,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){ye[l]=new ge(l,ae,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){ye[l]=new ge(l,ie,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){ye[l]=new ge(l,be,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){ye[l]=new ge(l,le,!1,l.toLowerCase(),null,!1,!1)});var Fe=/[\-\:]([a-z])/g,Re=function(l){return l[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(l){var t=l.replace(Fe,Re);ye[t]=new ge(t,Z,!1,l,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(l){var t=l.replace(Fe,Re);ye[t]=new ge(t,Z,!1,l,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(l){var t=l.replace(Fe,Re);ye[t]=new ge(t,Z,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){ye[l]=new ge(l,Z,!1,l.toLowerCase(),null,!1,!1)});var Ue="xlinkHref";ye[Ue]=new ge("xlinkHref",Z,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){ye[l]=new ge(l,Z,!1,l.toLowerCase(),null,!0,!0)});var Je={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function Dt(l,t){return l+t.charAt(0).toUpperCase()+t.substring(1)}var Ke=["Webkit","ms","Moz","O"];Object.keys(Je).forEach(function(l){Ke.forEach(function(t){Je[Dt(t,l)]=Je[l]})});var ze={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function vt(l,t){ze[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||o("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||o("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function It(l,t){if(l.indexOf("-")===-1)return typeof t.is=="string";switch(l){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ht={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},lt={},qe=new RegExp("^(aria)-["+me+"]*$"),dt=new RegExp("^(aria)[A-Z]["+me+"]*$");function Pt(l,t){{if(G.call(lt,t)&&lt[t])return!0;if(dt.test(t)){var r="aria-"+t.slice(4).toLowerCase(),s=Ht.hasOwnProperty(r)?r:null;if(s==null)return o("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),lt[t]=!0,!0;if(t!==s)return o("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,s),lt[t]=!0,!0}if(qe.test(t)){var p=t.toLowerCase(),b=Ht.hasOwnProperty(p)?p:null;if(b==null)return lt[t]=!0,!1;if(t!==b)return o("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,b),lt[t]=!0,!0}}return!0}function Et(l,t){{var r=[];for(var s in t){var p=Pt(l,s);p||r.push(s)}var b=r.map(function(S){return"`"+S+"`"}).join(", ");r.length===1?o("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",b,l):r.length>1&&o("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",b,l)}}function ut(l,t){It(l,t)||Et(l,t)}var Ze=!1;function kn(l,t){{if(l!=="input"&&l!=="textarea"&&l!=="select")return;t!=null&&t.value===null&&!Ze&&(Ze=!0,l==="select"&&t.multiple?o("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",l):o("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",l))}}var Nt={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Kt=function(){};{var et={},ne=/^on./,xe=/^on[^A-Z]/,Se=new RegExp("^(aria)-["+me+"]*$"),_e=new RegExp("^(aria)[A-Z]["+me+"]*$");Kt=function(l,t,r,s){if(G.call(et,t)&&et[t])return!0;var p=t.toLowerCase();if(p==="onfocusin"||p==="onfocusout")return o("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),et[t]=!0,!0;if(s!=null){var b=s.registrationNameDependencies,S=s.possibleRegistrationNames;if(b.hasOwnProperty(t))return!0;var D=S.hasOwnProperty(p)?S[p]:null;if(D!=null)return o("Invalid event handler property `%s`. Did you mean `%s`?",t,D),et[t]=!0,!0;if(ne.test(t))return o("Unknown event handler property `%s`. It will be ignored.",t),et[t]=!0,!0}else if(ne.test(t))return xe.test(t)&&o("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),et[t]=!0,!0;if(Se.test(t)||_e.test(t))return!0;if(p==="innerhtml")return o("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),et[t]=!0,!0;if(p==="aria")return o("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),et[t]=!0,!0;if(p==="is"&&r!==null&&r!==void 0&&typeof r!="string")return o("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof r),et[t]=!0,!0;if(typeof r=="number"&&isNaN(r))return o("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),et[t]=!0,!0;var H=ce(t),X=H!==null&&H.type===Y;if(Nt.hasOwnProperty(p)){var oe=Nt[p];if(oe!==t)return o("Invalid DOM property `%s`. Did you mean `%s`?",t,oe),et[t]=!0,!0}else if(!X&&t!==p)return o("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,p),et[t]=!0,!0;return typeof r=="boolean"&&fe(t,r,H)?(r?o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',r,t,t,r,t):o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',r,t,t,r,t,t,t),et[t]=!0,!0):X?!0:fe(t,r,H)?(et[t]=!0,!1):((r==="false"||r==="true")&&H!==null&&H.type===ae&&(o("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",r,t,r==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,r),et[t]=!0),!0)}}var Oe=function(l,t,r){{var s=[];for(var p in t){var b=Kt(l,p,t[p],r);b||s.push(p)}var S=s.map(function(D){return"`"+D+"`"}).join(", ");s.length===1?o("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",S,l):s.length>1&&o("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",S,l)}};function tt(l,t,r){It(l,t)||Oe(l,t,r)}var ft=function(){};{var pt=/^(?:webkit|moz|o)[A-Z]/,qt=/^-ms-/,Jn=/-(.)/g,Ve=/;\s*$/,wt={},yt={},Ge=!1,_n=!1,pr=function(l){return l.replace(Jn,function(t,r){return r.toUpperCase()})},Kn=function(l){wt.hasOwnProperty(l)&&wt[l]||(wt[l]=!0,o("Unsupported style property %s. Did you mean %s?",l,pr(l.replace(qt,"ms-"))))},un=function(l){wt.hasOwnProperty(l)&&wt[l]||(wt[l]=!0,o("Unsupported vendor-prefixed style property %s. Did you mean %s?",l,l.charAt(0).toUpperCase()+l.slice(1)))},hr=function(l,t){yt.hasOwnProperty(t)&&yt[t]||(yt[t]=!0,o(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,l,t.replace(Ve,"")))},En=function(l,t){Ge||(Ge=!0,o("`NaN` is an invalid value for the `%s` css style property.",l))},bt=function(l,t){_n||(_n=!0,o("`Infinity` is an invalid value for the `%s` css style property.",l))};ft=function(l,t){l.indexOf("-")>-1?Kn(l):pt.test(l)?un(l):Ve.test(t)&&hr(l,t),typeof t=="number"&&(isNaN(t)?En(l,t):isFinite(t)||bt(l,t))}}var Br=ft,Mr=/["'&<>]/;function no(l){ee(l);var t=""+l,r=Mr.exec(t);if(!r)return t;var s,p="",b,S=0;for(b=r.index;b<t.length;b++){switch(t.charCodeAt(b)){case 34:s="&quot;";break;case 38:s="&amp;";break;case 39:s="&#x27;";break;case 60:s="&lt;";break;case 62:s="&gt;";break;default:continue}S!==b&&(p+=t.substring(S,b)),S=b+1,p+=s}return S!==b?p+t.substring(S,b):p}function ht(l){return typeof l=="boolean"||typeof l=="number"?""+l:no(l)}var Rr=/([A-Z])/g,Uo=/^ms-/;function zo(l){return l.replace(Rr,"-$1").toLowerCase().replace(Uo,"-ms-")}var An=/^[\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,Or=!1;function gr(l){!Or&&An.test(l)&&(Or=!0,o("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(l)))}var Ln=Array.isArray;function Ut(l){return Ln(l)}var dn=T("<script>"),mr=T("<\/script>"),Fn=T('<script src="'),Qn=T('<script type="module" src="'),fn=T('" async=""><\/script>');function Hn(l){return ee(l),(""+l).replace(zt,ro)}var zt=/(<\/|<)(s)(cript)/gi,ro=function(l,t,r,s){return""+t+(r==="s"?"\\u0073":"\\u0053")+s};function oo(l,t,r,s,p){var b=l===void 0?"":l,S=t===void 0?dn:T('<script nonce="'+ht(t)+'">'),D=[];if(r!==void 0&&D.push(S,E(Hn(r)),mr),s!==void 0)for(var H=0;H<s.length;H++)D.push(Fn,E(ht(s[H])),fn);if(p!==void 0)for(var X=0;X<p.length;X++)D.push(Qn,E(ht(p[X])),fn);return{bootstrapChunks:D,startInlineScript:S,placeholderPrefix:T(b+"P:"),segmentPrefix:T(b+"S:"),boundaryPrefix:b+"B:",idPrefix:b,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Cn=0,gt=1,pn=2,hn=3,Nn=4,vr=5,$t=6,gn=7;function Bt(l,t){return{insertionMode:l,selectedValue:t}}function Un(l){var t=l==="http://www.w3.org/2000/svg"?pn:l==="http://www.w3.org/1998/Math/MathML"?hn:Cn;return Bt(t,null)}function qn(l,t,r){switch(t){case"select":return Bt(gt,r.value!=null?r.value:r.defaultValue);case"svg":return Bt(pn,null);case"math":return Bt(hn,null);case"foreignObject":return Bt(gt,null);case"table":return Bt(Nn,null);case"thead":case"tbody":case"tfoot":return Bt(vr,null);case"colgroup":return Bt(gn,null);case"tr":return Bt($t,null)}return l.insertionMode>=Nn||l.insertionMode===Cn?Bt(gt,null):l}var yr=null;function Xt(l){var t=l.nextSuspenseID++;return T(l.boundaryPrefix+t.toString(16))}function mn(l,t,r){var s=l.idPrefix,p=":"+s+"R"+t;return r>0&&(p+="H"+r.toString(32)),p+":"}function Mt(l){return ht(l)}var br=T("<!-- -->");function xt(l,t,r,s){return t===""?s:(s&&l.push(br),l.push(E(Mt(t))),!0)}function jt(l,t,r,s){r&&s&&l.push(br)}var g=new Map;function x(l){var t=g.get(l);if(t!==void 0)return t;var r=T(ht(zo(l)));return g.set(l,r),r}var I=T(' style="'),_=T(":"),K=T(";");function V(l,t,r){if(typeof r!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var s=!0;for(var p in r)if(G.call(r,p)){var b=r[p];if(!(b==null||typeof b=="boolean"||b==="")){var S=void 0,D=void 0,H=p.indexOf("--")===0;H?(S=E(ht(p)),W(b,p),D=E(ht((""+b).trim()))):(Br(p,b),S=x(p),typeof b=="number"?b!==0&&!G.call(Je,p)?D=E(b+"px"):D=E(""+b):(W(b,p),D=E(ht((""+b).trim())))),s?(s=!1,l.push(I,S,_,D)):l.push(K,S,_,D)}}s||l.push(ke)}var te=T(" "),ue=T('="'),ke=T('"'),Ce=T('=""');function Ee(l,t,r,s){switch(r){case"style":{V(l,t,s);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(r.length>2&&(r[0]==="o"||r[0]==="O")&&(r[1]==="n"||r[1]==="N"))){var p=ce(r);if(p!==null){switch(typeof s){case"function":case"symbol":return;case"boolean":if(!p.acceptsBooleans)return}var b=p.attributeName,S=E(b);switch(p.type){case ae:s&&l.push(te,S,Ce);return;case ie:s===!0?l.push(te,S,Ce):s===!1||l.push(te,S,ue,E(ht(s)),ke);return;case le:isNaN(s)||l.push(te,S,ue,E(ht(s)),ke);break;case be:!isNaN(s)&&s>=1&&l.push(te,S,ue,E(ht(s)),ke);break;default:p.sanitizeURL&&(N(s,b),s=""+s,gr(s)),l.push(te,S,ue,E(ht(s)),ke)}}else if(ve(r)){switch(typeof s){case"function":case"symbol":return;case"boolean":{var D=r.toLowerCase().slice(0,5);if(D!=="data-"&&D!=="aria-")return}}l.push(te,E(r),ue,E(ht(s)),ke)}}}var je=T(">"),Rt=T("/>");function Ot(l,t,r){if(t!=null){if(r!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof t!="object"||!("__html"in t))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var s=t.__html;s!=null&&(ee(s),l.push(E(""+s)))}}var _t=!1,zn=!1,vn=!1,wr=!1,jn=!1,$n=!1,Pn=!1;function Zn(l,t){{var r=l[t];if(r!=null){var s=Ut(r);l.multiple&&!s?o("The `%s` prop supplied to <select> must be an array if `multiple` is true.",t):!l.multiple&&s&&o("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",t)}}}function Ui(l,t,r){vt("select",t),Zn(t,"value"),Zn(t,"defaultValue"),t.value!==void 0&&t.defaultValue!==void 0&&!vn&&(o("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),vn=!0),l.push(Zt("select"));var s=null,p=null;for(var b in t)if(G.call(t,b)){var S=t[b];if(S==null)continue;switch(b){case"children":s=S;break;case"dangerouslySetInnerHTML":p=S;break;case"defaultValue":case"value":break;default:Ee(l,r,b,S);break}}return l.push(je),Ot(l,p,s),s}function zi(l){var t="";return e.Children.forEach(l,function(r){r!=null&&(t+=r,!jn&&typeof r!="string"&&typeof r!="number"&&(jn=!0,o("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),t}var ao=T(' selected=""');function yn(l,t,r,s){var p=s.selectedValue;l.push(Zt("option"));var b=null,S=null,D=null,H=null;for(var X in t)if(G.call(t,X)){var oe=t[X];if(oe==null)continue;switch(X){case"children":b=oe;break;case"selected":D=oe,Pn||(o("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Pn=!0);break;case"dangerouslySetInnerHTML":H=oe;break;case"value":S=oe;default:Ee(l,r,X,oe);break}}if(p!=null){var se;if(S!==null?(N(S,"value"),se=""+S):(H!==null&&($n||($n=!0,o("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),se=zi(b)),Ut(p))for(var pe=0;pe<p.length;pe++){N(p[pe],"value");var Te=""+p[pe];if(Te===se){l.push(ao);break}}else N(p,"select.value"),""+p===se&&l.push(ao)}else D&&l.push(ao);return l.push(je),Ot(l,H,b),b}function ji(l,t,r){vt("input",t),t.checked!==void 0&&t.defaultChecked!==void 0&&!zn&&(o("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",t.type),zn=!0),t.value!==void 0&&t.defaultValue!==void 0&&!_t&&(o("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",t.type),_t=!0),l.push(Zt("input"));var s=null,p=null,b=null,S=null;for(var D in t)if(G.call(t,D)){var H=t[D];if(H==null)continue;switch(D){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":S=H;break;case"defaultValue":p=H;break;case"checked":b=H;break;case"value":s=H;break;default:Ee(l,r,D,H);break}}return b!==null?Ee(l,r,"checked",b):S!==null&&Ee(l,r,"checked",S),s!==null?Ee(l,r,"value",s):p!==null&&Ee(l,r,"value",p),l.push(Rt),null}function Tn(l,t,r){vt("textarea",t),t.value!==void 0&&t.defaultValue!==void 0&&!wr&&(o("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),wr=!0),l.push(Zt("textarea"));var s=null,p=null,b=null;for(var S in t)if(G.call(t,S)){var D=t[S];if(D==null)continue;switch(S){case"children":b=D;break;case"value":s=D;break;case"defaultValue":p=D;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:Ee(l,r,S,D);break}}if(s===null&&p!==null&&(s=p),l.push(je),b!=null){if(o("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),s!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Ut(b)){if(b.length>1)throw new Error("<textarea> can only have at most one child.");ee(b[0]),s=""+b[0]}ee(b),s=""+b}return typeof s=="string"&&s[0]===`
74
+ */var Ju;function bf(){return Ju||(Ju=1,process.env.NODE_ENV!=="production"&&function(){var e=B,n="18.3.1",i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function a(l){{for(var t=arguments.length,r=new Array(t>1?t-1:0),s=1;s<t;s++)r[s-1]=arguments[s];u("warn",l,r)}}function o(l){{for(var t=arguments.length,r=new Array(t>1?t-1:0),s=1;s<t;s++)r[s-1]=arguments[s];u("error",l,r)}}function u(l,t,r){{var s=i.ReactDebugCurrentFrame,p=s.getStackAddendum();p!==""&&(t+="%s",r=r.concat([p]));var b=r.map(function(S){return String(S)});b.unshift("Warning: "+t),Function.prototype.apply.call(console[l],console,b)}}function f(l){l()}var A=512,c=null,d=0;function h(l){c=new Uint8Array(A),d=0}function v(l,t){if(t.length!==0){if(t.length>A){d>0&&(l.enqueue(new Uint8Array(c.buffer,0,d)),c=new Uint8Array(A),d=0),l.enqueue(t);return}var r=t,s=c.length-d;s<r.length&&(s===0?l.enqueue(c):(c.set(r.subarray(0,s),d),l.enqueue(c),r=r.subarray(s)),c=new Uint8Array(A),d=0),c.set(r,d),d+=r.length}}function y(l,t){return v(l,t),!0}function k(l){c&&d>0&&(l.enqueue(new Uint8Array(c.buffer,0,d)),c=null,d=0)}function C(l){l.close()}var R=new TextEncoder;function E(l){return R.encode(l)}function T(l){return R.encode(l)}function Q(l,t){typeof l.error=="function"?l.error(t):l.close()}function M(l){{var t=typeof Symbol=="function"&&Symbol.toStringTag,r=t&&l[Symbol.toStringTag]||l.constructor.name||"Object";return r}}function U(l){try{return j(l),!1}catch{return!0}}function j(l){return""+l}function N(l,t){if(U(l))return o("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,M(l)),j(l)}function W(l,t){if(U(l))return o("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,M(l)),j(l)}function ee(l){if(U(l))return o("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",M(l)),j(l)}var G=Object.prototype.hasOwnProperty,Y=0,Z=1,$=2,ae=3,ie=4,le=5,be=6,he=":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",me=he+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",L=new RegExp("^["+he+"]["+me+"]*$"),Be={},F={};function ve(l){return G.call(F,l)?!0:G.call(Be,l)?!1:L.test(l)?(F[l]=!0,!0):(Be[l]=!0,o("Invalid attribute name: `%s`",l),!1)}function fe(l,t,r,s){if(r!==null&&r.type===Y)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":{if(r!==null)return!r.acceptsBooleans;var p=l.toLowerCase().slice(0,5);return p!=="data-"&&p!=="aria-"}default:return!1}}function ce(l){return ye.hasOwnProperty(l)?ye[l]:null}function ge(l,t,r,s,p,b,S){this.acceptsBooleans=t===$||t===ae||t===ie,this.attributeName=s,this.attributeNamespace=p,this.mustUseProperty=r,this.propertyName=l,this.type=t,this.sanitizeURL=b,this.removeEmptyString=S}var ye={},De=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];De.forEach(function(l){ye[l]=new ge(l,Y,!1,l,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var t=l[0],r=l[1];ye[t]=new ge(t,Z,!1,r,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){ye[l]=new ge(l,$,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){ye[l]=new ge(l,$,!1,l,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(l){ye[l]=new ge(l,ae,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){ye[l]=new ge(l,ae,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){ye[l]=new ge(l,ie,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){ye[l]=new ge(l,be,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){ye[l]=new ge(l,le,!1,l.toLowerCase(),null,!1,!1)});var Fe=/[\-\:]([a-z])/g,Re=function(l){return l[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(l){var t=l.replace(Fe,Re);ye[t]=new ge(t,Z,!1,l,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(l){var t=l.replace(Fe,Re);ye[t]=new ge(t,Z,!1,l,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(l){var t=l.replace(Fe,Re);ye[t]=new ge(t,Z,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){ye[l]=new ge(l,Z,!1,l.toLowerCase(),null,!1,!1)});var Ue="xlinkHref";ye[Ue]=new ge("xlinkHref",Z,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){ye[l]=new ge(l,Z,!1,l.toLowerCase(),null,!0,!0)});var Je={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function Dt(l,t){return l+t.charAt(0).toUpperCase()+t.substring(1)}var qe=["Webkit","ms","Moz","O"];Object.keys(Je).forEach(function(l){qe.forEach(function(t){Je[Dt(t,l)]=Je[l]})});var ze={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function vt(l,t){ze[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||o("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||o("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function It(l,t){if(l.indexOf("-")===-1)return typeof t.is=="string";switch(l){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ht={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},lt={},Ke=new RegExp("^(aria)-["+me+"]*$"),dt=new RegExp("^(aria)[A-Z]["+me+"]*$");function Pt(l,t){{if(G.call(lt,t)&&lt[t])return!0;if(dt.test(t)){var r="aria-"+t.slice(4).toLowerCase(),s=Ht.hasOwnProperty(r)?r:null;if(s==null)return o("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),lt[t]=!0,!0;if(t!==s)return o("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,s),lt[t]=!0,!0}if(Ke.test(t)){var p=t.toLowerCase(),b=Ht.hasOwnProperty(p)?p:null;if(b==null)return lt[t]=!0,!1;if(t!==b)return o("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,b),lt[t]=!0,!0}}return!0}function Et(l,t){{var r=[];for(var s in t){var p=Pt(l,s);p||r.push(s)}var b=r.map(function(S){return"`"+S+"`"}).join(", ");r.length===1?o("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",b,l):r.length>1&&o("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",b,l)}}function ut(l,t){It(l,t)||Et(l,t)}var Ze=!1;function kn(l,t){{if(l!=="input"&&l!=="textarea"&&l!=="select")return;t!=null&&t.value===null&&!Ze&&(Ze=!0,l==="select"&&t.multiple?o("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",l):o("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",l))}}var Nt={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},qt=function(){};{var et={},ne=/^on./,xe=/^on[^A-Z]/,Se=new RegExp("^(aria)-["+me+"]*$"),_e=new RegExp("^(aria)[A-Z]["+me+"]*$");qt=function(l,t,r,s){if(G.call(et,t)&&et[t])return!0;var p=t.toLowerCase();if(p==="onfocusin"||p==="onfocusout")return o("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),et[t]=!0,!0;if(s!=null){var b=s.registrationNameDependencies,S=s.possibleRegistrationNames;if(b.hasOwnProperty(t))return!0;var D=S.hasOwnProperty(p)?S[p]:null;if(D!=null)return o("Invalid event handler property `%s`. Did you mean `%s`?",t,D),et[t]=!0,!0;if(ne.test(t))return o("Unknown event handler property `%s`. It will be ignored.",t),et[t]=!0,!0}else if(ne.test(t))return xe.test(t)&&o("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),et[t]=!0,!0;if(Se.test(t)||_e.test(t))return!0;if(p==="innerhtml")return o("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),et[t]=!0,!0;if(p==="aria")return o("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),et[t]=!0,!0;if(p==="is"&&r!==null&&r!==void 0&&typeof r!="string")return o("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof r),et[t]=!0,!0;if(typeof r=="number"&&isNaN(r))return o("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),et[t]=!0,!0;var H=ce(t),X=H!==null&&H.type===Y;if(Nt.hasOwnProperty(p)){var oe=Nt[p];if(oe!==t)return o("Invalid DOM property `%s`. Did you mean `%s`?",t,oe),et[t]=!0,!0}else if(!X&&t!==p)return o("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,p),et[t]=!0,!0;return typeof r=="boolean"&&fe(t,r,H)?(r?o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',r,t,t,r,t):o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',r,t,t,r,t,t,t),et[t]=!0,!0):X?!0:fe(t,r,H)?(et[t]=!0,!1):((r==="false"||r==="true")&&H!==null&&H.type===ae&&(o("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",r,t,r==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,r),et[t]=!0),!0)}}var Oe=function(l,t,r){{var s=[];for(var p in t){var b=qt(l,p,t[p],r);b||s.push(p)}var S=s.map(function(D){return"`"+D+"`"}).join(", ");s.length===1?o("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",S,l):s.length>1&&o("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",S,l)}};function tt(l,t,r){It(l,t)||Oe(l,t,r)}var ft=function(){};{var pt=/^(?:webkit|moz|o)[A-Z]/,Kt=/^-ms-/,Jn=/-(.)/g,Ve=/;\s*$/,wt={},yt={},Ge=!1,_n=!1,pr=function(l){return l.replace(Jn,function(t,r){return r.toUpperCase()})},qn=function(l){wt.hasOwnProperty(l)&&wt[l]||(wt[l]=!0,o("Unsupported style property %s. Did you mean %s?",l,pr(l.replace(Kt,"ms-"))))},un=function(l){wt.hasOwnProperty(l)&&wt[l]||(wt[l]=!0,o("Unsupported vendor-prefixed style property %s. Did you mean %s?",l,l.charAt(0).toUpperCase()+l.slice(1)))},hr=function(l,t){yt.hasOwnProperty(t)&&yt[t]||(yt[t]=!0,o(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,l,t.replace(Ve,"")))},En=function(l,t){Ge||(Ge=!0,o("`NaN` is an invalid value for the `%s` css style property.",l))},bt=function(l,t){_n||(_n=!0,o("`Infinity` is an invalid value for the `%s` css style property.",l))};ft=function(l,t){l.indexOf("-")>-1?qn(l):pt.test(l)?un(l):Ve.test(t)&&hr(l,t),typeof t=="number"&&(isNaN(t)?En(l,t):isFinite(t)||bt(l,t))}}var Br=ft,Mr=/["'&<>]/;function no(l){ee(l);var t=""+l,r=Mr.exec(t);if(!r)return t;var s,p="",b,S=0;for(b=r.index;b<t.length;b++){switch(t.charCodeAt(b)){case 34:s="&quot;";break;case 38:s="&amp;";break;case 39:s="&#x27;";break;case 60:s="&lt;";break;case 62:s="&gt;";break;default:continue}S!==b&&(p+=t.substring(S,b)),S=b+1,p+=s}return S!==b?p+t.substring(S,b):p}function ht(l){return typeof l=="boolean"||typeof l=="number"?""+l:no(l)}var Rr=/([A-Z])/g,Uo=/^ms-/;function zo(l){return l.replace(Rr,"-$1").toLowerCase().replace(Uo,"-ms-")}var An=/^[\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,Or=!1;function gr(l){!Or&&An.test(l)&&(Or=!0,o("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(l)))}var Ln=Array.isArray;function Ut(l){return Ln(l)}var dn=T("<script>"),mr=T("<\/script>"),Fn=T('<script src="'),Qn=T('<script type="module" src="'),fn=T('" async=""><\/script>');function Hn(l){return ee(l),(""+l).replace(zt,ro)}var zt=/(<\/|<)(s)(cript)/gi,ro=function(l,t,r,s){return""+t+(r==="s"?"\\u0073":"\\u0053")+s};function oo(l,t,r,s,p){var b=l===void 0?"":l,S=t===void 0?dn:T('<script nonce="'+ht(t)+'">'),D=[];if(r!==void 0&&D.push(S,E(Hn(r)),mr),s!==void 0)for(var H=0;H<s.length;H++)D.push(Fn,E(ht(s[H])),fn);if(p!==void 0)for(var X=0;X<p.length;X++)D.push(Qn,E(ht(p[X])),fn);return{bootstrapChunks:D,startInlineScript:S,placeholderPrefix:T(b+"P:"),segmentPrefix:T(b+"S:"),boundaryPrefix:b+"B:",idPrefix:b,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Cn=0,gt=1,pn=2,hn=3,Nn=4,vr=5,$t=6,gn=7;function Bt(l,t){return{insertionMode:l,selectedValue:t}}function Un(l){var t=l==="http://www.w3.org/2000/svg"?pn:l==="http://www.w3.org/1998/Math/MathML"?hn:Cn;return Bt(t,null)}function Kn(l,t,r){switch(t){case"select":return Bt(gt,r.value!=null?r.value:r.defaultValue);case"svg":return Bt(pn,null);case"math":return Bt(hn,null);case"foreignObject":return Bt(gt,null);case"table":return Bt(Nn,null);case"thead":case"tbody":case"tfoot":return Bt(vr,null);case"colgroup":return Bt(gn,null);case"tr":return Bt($t,null)}return l.insertionMode>=Nn||l.insertionMode===Cn?Bt(gt,null):l}var yr=null;function Xt(l){var t=l.nextSuspenseID++;return T(l.boundaryPrefix+t.toString(16))}function mn(l,t,r){var s=l.idPrefix,p=":"+s+"R"+t;return r>0&&(p+="H"+r.toString(32)),p+":"}function Mt(l){return ht(l)}var br=T("<!-- -->");function xt(l,t,r,s){return t===""?s:(s&&l.push(br),l.push(E(Mt(t))),!0)}function jt(l,t,r,s){r&&s&&l.push(br)}var g=new Map;function x(l){var t=g.get(l);if(t!==void 0)return t;var r=T(ht(zo(l)));return g.set(l,r),r}var I=T(' style="'),_=T(":"),q=T(";");function V(l,t,r){if(typeof r!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var s=!0;for(var p in r)if(G.call(r,p)){var b=r[p];if(!(b==null||typeof b=="boolean"||b==="")){var S=void 0,D=void 0,H=p.indexOf("--")===0;H?(S=E(ht(p)),W(b,p),D=E(ht((""+b).trim()))):(Br(p,b),S=x(p),typeof b=="number"?b!==0&&!G.call(Je,p)?D=E(b+"px"):D=E(""+b):(W(b,p),D=E(ht((""+b).trim())))),s?(s=!1,l.push(I,S,_,D)):l.push(q,S,_,D)}}s||l.push(ke)}var te=T(" "),ue=T('="'),ke=T('"'),Ce=T('=""');function Ee(l,t,r,s){switch(r){case"style":{V(l,t,s);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(r.length>2&&(r[0]==="o"||r[0]==="O")&&(r[1]==="n"||r[1]==="N"))){var p=ce(r);if(p!==null){switch(typeof s){case"function":case"symbol":return;case"boolean":if(!p.acceptsBooleans)return}var b=p.attributeName,S=E(b);switch(p.type){case ae:s&&l.push(te,S,Ce);return;case ie:s===!0?l.push(te,S,Ce):s===!1||l.push(te,S,ue,E(ht(s)),ke);return;case le:isNaN(s)||l.push(te,S,ue,E(ht(s)),ke);break;case be:!isNaN(s)&&s>=1&&l.push(te,S,ue,E(ht(s)),ke);break;default:p.sanitizeURL&&(N(s,b),s=""+s,gr(s)),l.push(te,S,ue,E(ht(s)),ke)}}else if(ve(r)){switch(typeof s){case"function":case"symbol":return;case"boolean":{var D=r.toLowerCase().slice(0,5);if(D!=="data-"&&D!=="aria-")return}}l.push(te,E(r),ue,E(ht(s)),ke)}}}var je=T(">"),Rt=T("/>");function Ot(l,t,r){if(t!=null){if(r!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof t!="object"||!("__html"in t))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var s=t.__html;s!=null&&(ee(s),l.push(E(""+s)))}}var _t=!1,zn=!1,vn=!1,wr=!1,jn=!1,$n=!1,Pn=!1;function Zn(l,t){{var r=l[t];if(r!=null){var s=Ut(r);l.multiple&&!s?o("The `%s` prop supplied to <select> must be an array if `multiple` is true.",t):!l.multiple&&s&&o("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",t)}}}function Ui(l,t,r){vt("select",t),Zn(t,"value"),Zn(t,"defaultValue"),t.value!==void 0&&t.defaultValue!==void 0&&!vn&&(o("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),vn=!0),l.push(Zt("select"));var s=null,p=null;for(var b in t)if(G.call(t,b)){var S=t[b];if(S==null)continue;switch(b){case"children":s=S;break;case"dangerouslySetInnerHTML":p=S;break;case"defaultValue":case"value":break;default:Ee(l,r,b,S);break}}return l.push(je),Ot(l,p,s),s}function zi(l){var t="";return e.Children.forEach(l,function(r){r!=null&&(t+=r,!jn&&typeof r!="string"&&typeof r!="number"&&(jn=!0,o("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),t}var ao=T(' selected=""');function yn(l,t,r,s){var p=s.selectedValue;l.push(Zt("option"));var b=null,S=null,D=null,H=null;for(var X in t)if(G.call(t,X)){var oe=t[X];if(oe==null)continue;switch(X){case"children":b=oe;break;case"selected":D=oe,Pn||(o("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Pn=!0);break;case"dangerouslySetInnerHTML":H=oe;break;case"value":S=oe;default:Ee(l,r,X,oe);break}}if(p!=null){var se;if(S!==null?(N(S,"value"),se=""+S):(H!==null&&($n||($n=!0,o("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),se=zi(b)),Ut(p))for(var pe=0;pe<p.length;pe++){N(p[pe],"value");var Te=""+p[pe];if(Te===se){l.push(ao);break}}else N(p,"select.value"),""+p===se&&l.push(ao)}else D&&l.push(ao);return l.push(je),Ot(l,H,b),b}function ji(l,t,r){vt("input",t),t.checked!==void 0&&t.defaultChecked!==void 0&&!zn&&(o("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",t.type),zn=!0),t.value!==void 0&&t.defaultValue!==void 0&&!_t&&(o("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",t.type),_t=!0),l.push(Zt("input"));var s=null,p=null,b=null,S=null;for(var D in t)if(G.call(t,D)){var H=t[D];if(H==null)continue;switch(D){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":S=H;break;case"defaultValue":p=H;break;case"checked":b=H;break;case"value":s=H;break;default:Ee(l,r,D,H);break}}return b!==null?Ee(l,r,"checked",b):S!==null&&Ee(l,r,"checked",S),s!==null?Ee(l,r,"value",s):p!==null&&Ee(l,r,"value",p),l.push(Rt),null}function Tn(l,t,r){vt("textarea",t),t.value!==void 0&&t.defaultValue!==void 0&&!wr&&(o("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),wr=!0),l.push(Zt("textarea"));var s=null,p=null,b=null;for(var S in t)if(G.call(t,S)){var D=t[S];if(D==null)continue;switch(S){case"children":b=D;break;case"value":s=D;break;case"defaultValue":p=D;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:Ee(l,r,S,D);break}}if(s===null&&p!==null&&(s=p),l.push(je),b!=null){if(o("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),s!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Ut(b)){if(b.length>1)throw new Error("<textarea> can only have at most one child.");ee(b[0]),s=""+b[0]}ee(b),s=""+b}return typeof s=="string"&&s[0]===`
75
75
  `&&l.push(tr),s!==null&&(N(s,"value"),l.push(E(Mt(""+s)))),null}function jo(l,t,r,s){l.push(Zt(r));for(var p in t)if(G.call(t,p)){var b=t[p];if(b==null)continue;switch(p){case"children":case"dangerouslySetInnerHTML":throw new Error(r+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Ee(l,s,p,b);break}}return l.push(Rt),null}function io(l,t,r){l.push(Zt("menuitem"));for(var s in t)if(G.call(t,s)){var p=t[s];if(p==null)continue;switch(s){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:Ee(l,r,s,p);break}}return l.push(je),null}function $e(l,t,r){l.push(Zt("title"));var s=null;for(var p in t)if(G.call(t,p)){var b=t[p];if(b==null)continue;switch(p){case"children":s=b;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:Ee(l,r,p,b);break}}l.push(je);{var S=Array.isArray(s)&&s.length<2?s[0]||null:s;Array.isArray(s)&&s.length>1?o("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):S!=null&&S.$$typeof!=null?o("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):S!=null&&typeof S!="string"&&typeof S!="number"&&o("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return s}function er(l,t,r,s){l.push(Zt(r));var p=null,b=null;for(var S in t)if(G.call(t,S)){var D=t[S];if(D==null)continue;switch(S){case"children":p=D;break;case"dangerouslySetInnerHTML":b=D;break;default:Ee(l,s,S,D);break}}return l.push(je),Ot(l,b,p),typeof p=="string"?(l.push(E(Mt(p))),null):p}function so(l,t,r,s){l.push(Zt(r));var p=null,b=null;for(var S in t)if(G.call(t,S)){var D=t[S];if(D==null)continue;switch(S){case"children":p=D;break;case"dangerouslySetInnerHTML":b=D;break;case"style":V(l,s,D);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:ve(S)&&typeof D!="function"&&typeof D!="symbol"&&l.push(te,E(S),ue,E(ht(D)),ke);break}}return l.push(je),Ot(l,b,p),p}var tr=T(`
76
76
  `);function Wn(l,t,r,s){l.push(Zt(r));var p=null,b=null;for(var S in t)if(G.call(t,S)){var D=t[S];if(D==null)continue;switch(S){case"children":p=D;break;case"dangerouslySetInnerHTML":b=D;break;default:Ee(l,s,S,D);break}}if(l.push(je),b!=null){if(p!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof b!="object"||!("__html"in b))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var H=b.__html;H!=null&&(typeof H=="string"&&H.length>0&&H[0]===`
77
77
  `?l.push(tr,E(H)):(ee(H),l.push(E(""+H))))}return typeof p=="string"&&p[0]===`
78
- `&&l.push(tr),p}var lo=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Yn=new Map;function Zt(l){var t=Yn.get(l);if(t===void 0){if(!lo.test(l))throw new Error("Invalid tag: "+l);t=T("<"+l),Yn.set(l,t)}return t}var Wo=T("<!DOCTYPE html>");function _r(l,t,r,s,p){switch(ut(t,r),kn(t,r),tt(t,r,null),!r.suppressContentEditableWarning&&r.contentEditable&&r.children!=null&&o("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),p.insertionMode!==pn&&p.insertionMode!==hn&&t.indexOf("-")===-1&&typeof r.is!="string"&&t.toLowerCase()!==t&&o("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",t),t){case"select":return Ui(l,r,s);case"option":return yn(l,r,s,p);case"textarea":return Tn(l,r,s);case"input":return ji(l,r,s);case"menuitem":return io(l,r,s);case"title":return $e(l,r,s);case"listing":case"pre":return Wn(l,r,t,s);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return jo(l,r,t,s);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return er(l,r,t,s);case"html":return p.insertionMode===Cn&&l.push(Wo),er(l,r,t,s);default:return t.indexOf("-")===-1&&typeof r.is!="string"?er(l,r,t,s):so(l,r,t,s)}}var Ia=T("</"),co=T(">");function Ba(l,t,r){switch(t){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;default:l.push(Ia,E(t),co)}}function Wi(l,t){for(var r=t.bootstrapChunks,s=0;s<r.length-1;s++)v(l,r[s]);return s<r.length?y(l,r[s]):!0}var Yi=T('<template id="'),uo=T('"></template>');function Ma(l,t,r){v(l,Yi),v(l,t.placeholderPrefix);var s=E(r.toString(16));return v(l,s),y(l,uo)}var Lr=T("<!--$-->"),Yo=T('<!--$?--><template id="'),Gi=T('"></template>'),xr=T("<!--$!-->"),Go=T("<!--/$-->"),Vo=T("<template"),Sr=T('"'),Fr=T(' data-dgst="'),Ao=T(' data-msg="'),Ra=T(' data-stck="'),Oa=T("></template>");function _a(l,t){return y(l,Lr)}function fo(l,t,r){if(v(l,Yo),r===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return v(l,r),y(l,Gi)}function Wt(l,t,r,s,p){var b;return b=y(l,xr),v(l,Vo),r&&(v(l,Fr),v(l,E(ht(r))),v(l,Sr)),s&&(v(l,Ao),v(l,E(ht(s))),v(l,Sr)),p&&(v(l,Ra),v(l,E(ht(p))),v(l,Sr)),b=y(l,Oa),b}function La(l,t){return y(l,Go)}function po(l,t){return y(l,Go)}function Vi(l,t){return y(l,Go)}var Fa=T('<div hidden id="'),ho=T('">'),Qa=T("</div>"),Ha=T('<svg aria-hidden="true" style="display:none" id="'),go=T('">'),mo=T("</svg>"),Na=T('<math aria-hidden="true" style="display:none" id="'),Ua=T('">'),za=T("</math>"),Xo=T('<table hidden id="'),ja=T('">'),m=T("</table>"),w=T('<table hidden><tbody id="'),P=T('">'),O=T("</tbody></table>"),q=T('<table hidden><tr id="'),J=T('">'),re=T("</tr></table>"),Ae=T('<table hidden><colgroup id="'),Pe=T('">'),Qe=T("</colgroup></table>");function Le(l,t,r,s){switch(r.insertionMode){case Cn:case gt:return v(l,Fa),v(l,t.segmentPrefix),v(l,E(s.toString(16))),y(l,ho);case pn:return v(l,Ha),v(l,t.segmentPrefix),v(l,E(s.toString(16))),y(l,go);case hn:return v(l,Na),v(l,t.segmentPrefix),v(l,E(s.toString(16))),y(l,Ua);case Nn:return v(l,Xo),v(l,t.segmentPrefix),v(l,E(s.toString(16))),y(l,ja);case vr:return v(l,w),v(l,t.segmentPrefix),v(l,E(s.toString(16))),y(l,P);case $t:return v(l,q),v(l,t.segmentPrefix),v(l,E(s.toString(16))),y(l,J);case gn:return v(l,Ae),v(l,t.segmentPrefix),v(l,E(s.toString(16))),y(l,Pe);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function nt(l,t){switch(t.insertionMode){case Cn:case gt:return y(l,Qa);case pn:return y(l,mo);case hn:return y(l,za);case Nn:return y(l,m);case vr:return y(l,O);case $t:return y(l,re);case gn:return y(l,Qe);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var Yt="function $RS(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)}",en='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',tn='function $RX(b,c,d,e){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),b._reactRetry&&b._reactRetry())}',vo=T(Yt+';$RS("'),Wa=T('$RS("'),Qr=T('","'),Kc=T('")<\/script>');function qc(l,t,r){v(l,t.startInlineScript),t.sentCompleteSegmentFunction?v(l,Wa):(t.sentCompleteSegmentFunction=!0,v(l,vo)),v(l,t.segmentPrefix);var s=E(r.toString(16));return v(l,s),v(l,Qr),v(l,t.placeholderPrefix),v(l,s),y(l,Kc)}var Xi=T(en+';$RC("'),$c=T('$RC("'),Zc=T('","'),ol=T('")<\/script>');function al(l,t,r,s){if(v(l,t.startInlineScript),t.sentCompleteBoundaryFunction?v(l,$c):(t.sentCompleteBoundaryFunction=!0,v(l,Xi)),r===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var p=E(s.toString(16));return v(l,r),v(l,Zc),v(l,t.segmentPrefix),v(l,p),y(l,ol)}var eu=T(tn+';$RX("'),tu=T('$RX("'),nu=T('"'),ru=T(")<\/script>"),Jt=T(",");function ou(l,t,r,s,p,b){if(v(l,t.startInlineScript),t.sentClientRenderFunction?v(l,tu):(t.sentClientRenderFunction=!0,v(l,eu)),r===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return v(l,r),v(l,nu),(s||p||b)&&(v(l,Jt),v(l,E(Ya(s||"")))),(p||b)&&(v(l,Jt),v(l,E(Ya(p||"")))),b&&(v(l,Jt),v(l,E(Ya(b)))),y(l,ru)}var il=/[<\u2028\u2029]/g;function Ya(l){var t=JSON.stringify(l);return t.replace(il,function(r){switch(r){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new 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 nn=Object.assign,sl=Symbol.for("react.element"),Ga=Symbol.for("react.portal"),Va=Symbol.for("react.fragment"),Xa=Symbol.for("react.strict_mode"),Ja=Symbol.for("react.profiler"),Jo=Symbol.for("react.provider"),Ko=Symbol.for("react.context"),yo=Symbol.for("react.forward_ref"),Ji=Symbol.for("react.suspense"),Ki=Symbol.for("react.suspense_list"),qi=Symbol.for("react.memo"),Ka=Symbol.for("react.lazy"),ll=Symbol.for("react.scope"),au=Symbol.for("react.debug_trace_mode"),iu=Symbol.for("react.legacy_hidden"),su=Symbol.for("react.default_value"),$i=Symbol.iterator,ct="@@iterator";function qo(l){if(l===null||typeof l!="object")return null;var t=$i&&l[$i]||l[ct];return typeof t=="function"?t:null}function cl(l,t,r){var s=l.displayName;if(s)return s;var p=t.displayName||t.name||"";return p!==""?r+"("+p+")":r}function Zi(l){return l.displayName||"Context"}function at(l){if(l==null)return null;if(typeof l.tag=="number"&&o("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case Va:return"Fragment";case Ga:return"Portal";case Ja:return"Profiler";case Xa:return"StrictMode";case Ji:return"Suspense";case Ki:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case Ko:var t=l;return Zi(t)+".Consumer";case Jo:var r=l;return Zi(r._context)+".Provider";case yo:return cl(l,l.render,"ForwardRef");case qi:var s=l.displayName||null;return s!==null?s:at(l.type)||"Memo";case Ka:{var p=l,b=p._payload,S=p._init;try{return at(S(b))}catch{return null}}}return null}var bo=0,es,ts,ns,rs,ul,Al,qa;function $a(){}$a.__reactDisabledLog=!0;function $o(){{if(bo===0){es=console.log,ts=console.info,ns=console.warn,rs=console.error,ul=console.group,Al=console.groupCollapsed,qa=console.groupEnd;var l={configurable:!0,enumerable:!0,value:$a,writable:!0};Object.defineProperties(console,{info:l,log:l,warn:l,error:l,group:l,groupCollapsed:l,groupEnd:l})}bo++}}function os(){{if(bo--,bo===0){var l={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:nn({},l,{value:es}),info:nn({},l,{value:ts}),warn:nn({},l,{value:ns}),error:nn({},l,{value:rs}),group:nn({},l,{value:ul}),groupCollapsed:nn({},l,{value:Al}),groupEnd:nn({},l,{value:qa})})}bo<0&&o("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var wo=i.ReactCurrentDispatcher,as;function Hr(l,t,r){{if(as===void 0)try{throw Error()}catch(p){var s=p.stack.trim().match(/\n( *(at )?)/);as=s&&s[1]||""}return`
78
+ `&&l.push(tr),p}var lo=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Yn=new Map;function Zt(l){var t=Yn.get(l);if(t===void 0){if(!lo.test(l))throw new Error("Invalid tag: "+l);t=T("<"+l),Yn.set(l,t)}return t}var Wo=T("<!DOCTYPE html>");function _r(l,t,r,s,p){switch(ut(t,r),kn(t,r),tt(t,r,null),!r.suppressContentEditableWarning&&r.contentEditable&&r.children!=null&&o("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),p.insertionMode!==pn&&p.insertionMode!==hn&&t.indexOf("-")===-1&&typeof r.is!="string"&&t.toLowerCase()!==t&&o("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",t),t){case"select":return Ui(l,r,s);case"option":return yn(l,r,s,p);case"textarea":return Tn(l,r,s);case"input":return ji(l,r,s);case"menuitem":return io(l,r,s);case"title":return $e(l,r,s);case"listing":case"pre":return Wn(l,r,t,s);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return jo(l,r,t,s);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return er(l,r,t,s);case"html":return p.insertionMode===Cn&&l.push(Wo),er(l,r,t,s);default:return t.indexOf("-")===-1&&typeof r.is!="string"?er(l,r,t,s):so(l,r,t,s)}}var Ia=T("</"),co=T(">");function Ba(l,t,r){switch(t){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;default:l.push(Ia,E(t),co)}}function Wi(l,t){for(var r=t.bootstrapChunks,s=0;s<r.length-1;s++)v(l,r[s]);return s<r.length?y(l,r[s]):!0}var Yi=T('<template id="'),uo=T('"></template>');function Ma(l,t,r){v(l,Yi),v(l,t.placeholderPrefix);var s=E(r.toString(16));return v(l,s),y(l,uo)}var Lr=T("<!--$-->"),Yo=T('<!--$?--><template id="'),Gi=T('"></template>'),xr=T("<!--$!-->"),Go=T("<!--/$-->"),Vo=T("<template"),Sr=T('"'),Fr=T(' data-dgst="'),Ao=T(' data-msg="'),Ra=T(' data-stck="'),Oa=T("></template>");function _a(l,t){return y(l,Lr)}function fo(l,t,r){if(v(l,Yo),r===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return v(l,r),y(l,Gi)}function Wt(l,t,r,s,p){var b;return b=y(l,xr),v(l,Vo),r&&(v(l,Fr),v(l,E(ht(r))),v(l,Sr)),s&&(v(l,Ao),v(l,E(ht(s))),v(l,Sr)),p&&(v(l,Ra),v(l,E(ht(p))),v(l,Sr)),b=y(l,Oa),b}function La(l,t){return y(l,Go)}function po(l,t){return y(l,Go)}function Vi(l,t){return y(l,Go)}var Fa=T('<div hidden id="'),ho=T('">'),Qa=T("</div>"),Ha=T('<svg aria-hidden="true" style="display:none" id="'),go=T('">'),mo=T("</svg>"),Na=T('<math aria-hidden="true" style="display:none" id="'),Ua=T('">'),za=T("</math>"),Xo=T('<table hidden id="'),ja=T('">'),m=T("</table>"),w=T('<table hidden><tbody id="'),P=T('">'),O=T("</tbody></table>"),K=T('<table hidden><tr id="'),J=T('">'),re=T("</tr></table>"),Ae=T('<table hidden><colgroup id="'),Pe=T('">'),Qe=T("</colgroup></table>");function Le(l,t,r,s){switch(r.insertionMode){case Cn:case gt:return v(l,Fa),v(l,t.segmentPrefix),v(l,E(s.toString(16))),y(l,ho);case pn:return v(l,Ha),v(l,t.segmentPrefix),v(l,E(s.toString(16))),y(l,go);case hn:return v(l,Na),v(l,t.segmentPrefix),v(l,E(s.toString(16))),y(l,Ua);case Nn:return v(l,Xo),v(l,t.segmentPrefix),v(l,E(s.toString(16))),y(l,ja);case vr:return v(l,w),v(l,t.segmentPrefix),v(l,E(s.toString(16))),y(l,P);case $t:return v(l,K),v(l,t.segmentPrefix),v(l,E(s.toString(16))),y(l,J);case gn:return v(l,Ae),v(l,t.segmentPrefix),v(l,E(s.toString(16))),y(l,Pe);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function nt(l,t){switch(t.insertionMode){case Cn:case gt:return y(l,Qa);case pn:return y(l,mo);case hn:return y(l,za);case Nn:return y(l,m);case vr:return y(l,O);case $t:return y(l,re);case gn:return y(l,Qe);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var Yt="function $RS(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)}",en='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',tn='function $RX(b,c,d,e){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),b._reactRetry&&b._reactRetry())}',vo=T(Yt+';$RS("'),Wa=T('$RS("'),Qr=T('","'),qc=T('")<\/script>');function Kc(l,t,r){v(l,t.startInlineScript),t.sentCompleteSegmentFunction?v(l,Wa):(t.sentCompleteSegmentFunction=!0,v(l,vo)),v(l,t.segmentPrefix);var s=E(r.toString(16));return v(l,s),v(l,Qr),v(l,t.placeholderPrefix),v(l,s),y(l,qc)}var Xi=T(en+';$RC("'),$c=T('$RC("'),Zc=T('","'),ol=T('")<\/script>');function al(l,t,r,s){if(v(l,t.startInlineScript),t.sentCompleteBoundaryFunction?v(l,$c):(t.sentCompleteBoundaryFunction=!0,v(l,Xi)),r===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var p=E(s.toString(16));return v(l,r),v(l,Zc),v(l,t.segmentPrefix),v(l,p),y(l,ol)}var eu=T(tn+';$RX("'),tu=T('$RX("'),nu=T('"'),ru=T(")<\/script>"),Jt=T(",");function ou(l,t,r,s,p,b){if(v(l,t.startInlineScript),t.sentClientRenderFunction?v(l,tu):(t.sentClientRenderFunction=!0,v(l,eu)),r===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return v(l,r),v(l,nu),(s||p||b)&&(v(l,Jt),v(l,E(Ya(s||"")))),(p||b)&&(v(l,Jt),v(l,E(Ya(p||"")))),b&&(v(l,Jt),v(l,E(Ya(b)))),y(l,ru)}var il=/[<\u2028\u2029]/g;function Ya(l){var t=JSON.stringify(l);return t.replace(il,function(r){switch(r){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new 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 nn=Object.assign,sl=Symbol.for("react.element"),Ga=Symbol.for("react.portal"),Va=Symbol.for("react.fragment"),Xa=Symbol.for("react.strict_mode"),Ja=Symbol.for("react.profiler"),Jo=Symbol.for("react.provider"),qo=Symbol.for("react.context"),yo=Symbol.for("react.forward_ref"),Ji=Symbol.for("react.suspense"),qi=Symbol.for("react.suspense_list"),Ki=Symbol.for("react.memo"),qa=Symbol.for("react.lazy"),ll=Symbol.for("react.scope"),au=Symbol.for("react.debug_trace_mode"),iu=Symbol.for("react.legacy_hidden"),su=Symbol.for("react.default_value"),$i=Symbol.iterator,ct="@@iterator";function Ko(l){if(l===null||typeof l!="object")return null;var t=$i&&l[$i]||l[ct];return typeof t=="function"?t:null}function cl(l,t,r){var s=l.displayName;if(s)return s;var p=t.displayName||t.name||"";return p!==""?r+"("+p+")":r}function Zi(l){return l.displayName||"Context"}function at(l){if(l==null)return null;if(typeof l.tag=="number"&&o("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case Va:return"Fragment";case Ga:return"Portal";case Ja:return"Profiler";case Xa:return"StrictMode";case Ji:return"Suspense";case qi:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case qo:var t=l;return Zi(t)+".Consumer";case Jo:var r=l;return Zi(r._context)+".Provider";case yo:return cl(l,l.render,"ForwardRef");case Ki:var s=l.displayName||null;return s!==null?s:at(l.type)||"Memo";case qa:{var p=l,b=p._payload,S=p._init;try{return at(S(b))}catch{return null}}}return null}var bo=0,es,ts,ns,rs,ul,Al,Ka;function $a(){}$a.__reactDisabledLog=!0;function $o(){{if(bo===0){es=console.log,ts=console.info,ns=console.warn,rs=console.error,ul=console.group,Al=console.groupCollapsed,Ka=console.groupEnd;var l={configurable:!0,enumerable:!0,value:$a,writable:!0};Object.defineProperties(console,{info:l,log:l,warn:l,error:l,group:l,groupCollapsed:l,groupEnd:l})}bo++}}function os(){{if(bo--,bo===0){var l={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:nn({},l,{value:es}),info:nn({},l,{value:ts}),warn:nn({},l,{value:ns}),error:nn({},l,{value:rs}),group:nn({},l,{value:ul}),groupCollapsed:nn({},l,{value:Al}),groupEnd:nn({},l,{value:Ka})})}bo<0&&o("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var wo=i.ReactCurrentDispatcher,as;function Hr(l,t,r){{if(as===void 0)try{throw Error()}catch(p){var s=p.stack.trim().match(/\n( *(at )?)/);as=s&&s[1]||""}return`
79
79
  `+as+l}}var is=!1,Zo;{var lu=typeof WeakMap=="function"?WeakMap:Map;Zo=new lu}function ea(l,t){if(!l||is)return"";{var r=Zo.get(l);if(r!==void 0)return r}var s;is=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var b;b=wo.current,wo.current=null,$o();try{if(t){var S=function(){throw Error()};if(Object.defineProperty(S.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(S,[])}catch(Ye){s=Ye}Reflect.construct(l,[],S)}else{try{S.call()}catch(Ye){s=Ye}l.call(S.prototype)}}else{try{throw Error()}catch(Ye){s=Ye}l()}}catch(Ye){if(Ye&&s&&typeof Ye.stack=="string"){for(var D=Ye.stack.split(`
80
80
  `),H=s.stack.split(`
81
81
  `),X=D.length-1,oe=H.length-1;X>=1&&oe>=0&&D[X]!==H[oe];)oe--;for(;X>=1&&oe>=0;X--,oe--)if(D[X]!==H[oe]){if(X!==1||oe!==1)do if(X--,oe--,oe<0||D[X]!==H[oe]){var se=`
82
- `+D[X].replace(" at new "," at ");return l.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",l.displayName)),typeof l=="function"&&Zo.set(l,se),se}while(X>=1&&oe>=0);break}}}finally{is=!1,wo.current=b,os(),Error.prepareStackTrace=p}var pe=l?l.displayName||l.name:"",Te=pe?Hr(pe):"";return typeof l=="function"&&Zo.set(l,Te),Te}function dl(l,t,r){return ea(l,!0)}function ss(l,t,r){return ea(l,!1)}function Za(l){var t=l.prototype;return!!(t&&t.isReactComponent)}function ei(l,t,r){if(l==null)return"";if(typeof l=="function")return ea(l,Za(l));if(typeof l=="string")return Hr(l);switch(l){case Ji:return Hr("Suspense");case Ki:return Hr("SuspenseList")}if(typeof l=="object")switch(l.$$typeof){case yo:return ss(l.render);case qi:return ei(l.type,t,r);case Ka:{var s=l,p=s._payload,b=s._init;try{return ei(b(p),t,r)}catch{}}}return""}var ti={},ta=i.ReactDebugCurrentFrame;function na(l){if(l){var t=l._owner,r=ei(l.type,l._source,t?t.type:null);ta.setExtraStackFrame(r)}else ta.setExtraStackFrame(null)}function fl(l,t,r,s,p){{var b=Function.call.bind(G);for(var S in l)if(b(l,S)){var D=void 0;try{if(typeof l[S]!="function"){var H=Error((s||"React class")+": "+r+" type `"+S+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[S]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw H.name="Invariant Violation",H}D=l[S](t,S,s,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(X){D=X}D&&!(D instanceof Error)&&(na(p),o("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",s||"React class",r,S,typeof D),na(null)),D instanceof Error&&!(D.message in ti)&&(ti[D.message]=!0,na(p),o("Failed %s type: %s",r,D.message),na(null))}}}var Nr;Nr={};var ni={};Object.freeze(ni);function kr(l,t){{var r=l.contextTypes;if(!r)return ni;var s={};for(var p in r)s[p]=t[p];{var b=at(l)||"Unknown";fl(r,s,"context",b)}return s}}function ls(l,t,r,s){{if(typeof l.getChildContext!="function"){{var p=at(t)||"Unknown";Nr[p]||(Nr[p]=!0,o("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",p,p))}return r}var b=l.getChildContext();for(var S in b)if(!(S in s))throw new Error((at(t)||"Unknown")+'.getChildContext(): key "'+S+'" is not defined in childContextTypes.');{var D=at(t)||"Unknown";fl(s,b,"child context",D)}return nn({},r,b)}}var Ur;Ur={};var ri=null,Er=null;function oi(l){l.context._currentValue=l.parentValue}function ai(l){l.context._currentValue=l.value}function ra(l,t){if(l!==t){oi(l);var r=l.parent,s=t.parent;if(r===null){if(s!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(s===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");ra(r,s)}ai(t)}}function oa(l){oi(l);var t=l.parent;t!==null&&oa(t)}function pl(l){var t=l.parent;t!==null&&pl(t),ai(l)}function hl(l,t){oi(l);var r=l.parent;if(r===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");r.depth===t.depth?ra(r,t):hl(r,t)}function gl(l,t){var r=t.parent;if(r===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");l.depth===r.depth?ra(l,r):gl(l,r),ai(t)}function Cr(l){var t=Er,r=l;t!==r&&(t===null?pl(r):r===null?oa(t):t.depth===r.depth?ra(t,r):t.depth>r.depth?hl(t,r):gl(t,r),Er=r)}function cs(l,t){var r;r=l._currentValue,l._currentValue=t,l._currentRenderer!==void 0&&l._currentRenderer!==null&&l._currentRenderer!==Ur&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),l._currentRenderer=Ur;var s=Er,p={parent:s,depth:s===null?0:s.depth+1,context:l,parentValue:r,value:t};return Er=p,p}function cu(l){var t=Er;if(t===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");t.context!==l&&o("The parent context is not the expected context. This is probably a bug in React.");{var r=t.parentValue;r===su?t.context._currentValue=t.context._defaultValue:t.context._currentValue=r,l._currentRenderer!==void 0&&l._currentRenderer!==null&&l._currentRenderer!==Ur&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),l._currentRenderer=Ur}return Er=t.parent}function ml(){return Er}function xo(l){var t=l._currentValue;return t}function aa(l){return l._reactInternals}function us(l,t){l._reactInternals=t}var ii={},si={},li,So,ia,sa,ci,la,ui,Ai,As;{li=new Set,So=new Set,ia=new Set,ui=new Set,sa=new Set,Ai=new Set,As=new Set;var vl=new Set;la=function(l,t){if(!(l===null||typeof l=="function")){var r=t+"_"+l;vl.has(r)||(vl.add(r),o("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,l))}},ci=function(l,t){if(t===void 0){var r=at(l)||"Component";sa.has(r)||(sa.add(r),o("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",r))}}}function yl(l,t){{var r=l.constructor,s=r&&at(r)||"ReactClass",p=s+"."+t;if(ii[p])return;o(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
82
+ `+D[X].replace(" at new "," at ");return l.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",l.displayName)),typeof l=="function"&&Zo.set(l,se),se}while(X>=1&&oe>=0);break}}}finally{is=!1,wo.current=b,os(),Error.prepareStackTrace=p}var pe=l?l.displayName||l.name:"",Te=pe?Hr(pe):"";return typeof l=="function"&&Zo.set(l,Te),Te}function dl(l,t,r){return ea(l,!0)}function ss(l,t,r){return ea(l,!1)}function Za(l){var t=l.prototype;return!!(t&&t.isReactComponent)}function ei(l,t,r){if(l==null)return"";if(typeof l=="function")return ea(l,Za(l));if(typeof l=="string")return Hr(l);switch(l){case Ji:return Hr("Suspense");case qi:return Hr("SuspenseList")}if(typeof l=="object")switch(l.$$typeof){case yo:return ss(l.render);case Ki:return ei(l.type,t,r);case qa:{var s=l,p=s._payload,b=s._init;try{return ei(b(p),t,r)}catch{}}}return""}var ti={},ta=i.ReactDebugCurrentFrame;function na(l){if(l){var t=l._owner,r=ei(l.type,l._source,t?t.type:null);ta.setExtraStackFrame(r)}else ta.setExtraStackFrame(null)}function fl(l,t,r,s,p){{var b=Function.call.bind(G);for(var S in l)if(b(l,S)){var D=void 0;try{if(typeof l[S]!="function"){var H=Error((s||"React class")+": "+r+" type `"+S+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[S]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw H.name="Invariant Violation",H}D=l[S](t,S,s,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(X){D=X}D&&!(D instanceof Error)&&(na(p),o("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",s||"React class",r,S,typeof D),na(null)),D instanceof Error&&!(D.message in ti)&&(ti[D.message]=!0,na(p),o("Failed %s type: %s",r,D.message),na(null))}}}var Nr;Nr={};var ni={};Object.freeze(ni);function kr(l,t){{var r=l.contextTypes;if(!r)return ni;var s={};for(var p in r)s[p]=t[p];{var b=at(l)||"Unknown";fl(r,s,"context",b)}return s}}function ls(l,t,r,s){{if(typeof l.getChildContext!="function"){{var p=at(t)||"Unknown";Nr[p]||(Nr[p]=!0,o("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",p,p))}return r}var b=l.getChildContext();for(var S in b)if(!(S in s))throw new Error((at(t)||"Unknown")+'.getChildContext(): key "'+S+'" is not defined in childContextTypes.');{var D=at(t)||"Unknown";fl(s,b,"child context",D)}return nn({},r,b)}}var Ur;Ur={};var ri=null,Er=null;function oi(l){l.context._currentValue=l.parentValue}function ai(l){l.context._currentValue=l.value}function ra(l,t){if(l!==t){oi(l);var r=l.parent,s=t.parent;if(r===null){if(s!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(s===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");ra(r,s)}ai(t)}}function oa(l){oi(l);var t=l.parent;t!==null&&oa(t)}function pl(l){var t=l.parent;t!==null&&pl(t),ai(l)}function hl(l,t){oi(l);var r=l.parent;if(r===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");r.depth===t.depth?ra(r,t):hl(r,t)}function gl(l,t){var r=t.parent;if(r===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");l.depth===r.depth?ra(l,r):gl(l,r),ai(t)}function Cr(l){var t=Er,r=l;t!==r&&(t===null?pl(r):r===null?oa(t):t.depth===r.depth?ra(t,r):t.depth>r.depth?hl(t,r):gl(t,r),Er=r)}function cs(l,t){var r;r=l._currentValue,l._currentValue=t,l._currentRenderer!==void 0&&l._currentRenderer!==null&&l._currentRenderer!==Ur&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),l._currentRenderer=Ur;var s=Er,p={parent:s,depth:s===null?0:s.depth+1,context:l,parentValue:r,value:t};return Er=p,p}function cu(l){var t=Er;if(t===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");t.context!==l&&o("The parent context is not the expected context. This is probably a bug in React.");{var r=t.parentValue;r===su?t.context._currentValue=t.context._defaultValue:t.context._currentValue=r,l._currentRenderer!==void 0&&l._currentRenderer!==null&&l._currentRenderer!==Ur&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),l._currentRenderer=Ur}return Er=t.parent}function ml(){return Er}function xo(l){var t=l._currentValue;return t}function aa(l){return l._reactInternals}function us(l,t){l._reactInternals=t}var ii={},si={},li,So,ia,sa,ci,la,ui,Ai,As;{li=new Set,So=new Set,ia=new Set,ui=new Set,sa=new Set,Ai=new Set,As=new Set;var vl=new Set;la=function(l,t){if(!(l===null||typeof l=="function")){var r=t+"_"+l;vl.has(r)||(vl.add(r),o("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,l))}},ci=function(l,t){if(t===void 0){var r=at(l)||"Component";sa.has(r)||(sa.add(r),o("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",r))}}}function yl(l,t){{var r=l.constructor,s=r&&at(r)||"ReactClass",p=s+"."+t;if(ii[p])return;o(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
83
83
 
84
- Please check the code for the %s component.`,t,t,s),ii[p]=!0}}var bl={isMounted:function(l){return!1},enqueueSetState:function(l,t,r){var s=aa(l);s.queue===null?yl(l,"setState"):(s.queue.push(t),r!=null&&la(r,"setState"))},enqueueReplaceState:function(l,t,r){var s=aa(l);s.replace=!0,s.queue=[t],r!=null&&la(r,"setState")},enqueueForceUpdate:function(l,t){var r=aa(l);r.queue===null?yl(l,"forceUpdate"):t!=null&&la(t,"setState")}};function uu(l,t,r,s,p){var b=r(p,s);ci(t,b);var S=b==null?s:nn({},s,b);return S}function wl(l,t,r){var s=ni,p=l.contextType;if("contextType"in l){var b=p===null||p!==void 0&&p.$$typeof===Ko&&p._context===void 0;if(!b&&!As.has(l)){As.add(l);var S="";p===void 0?S=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof p!="object"?S=" However, it is set to a "+typeof p+".":p.$$typeof===Jo?S=" Did you accidentally pass the Context.Provider instead?":p._context!==void 0?S=" Did you accidentally pass the Context.Consumer instead?":S=" However, it is set to an object with keys {"+Object.keys(p).join(", ")+"}.",o("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",at(l)||"Component",S)}}typeof p=="object"&&p!==null?s=xo(p):s=r;var D=new l(t,s);{if(typeof l.getDerivedStateFromProps=="function"&&(D.state===null||D.state===void 0)){var H=at(l)||"Component";li.has(H)||(li.add(H),o("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",H,D.state===null?"null":"undefined",H))}if(typeof l.getDerivedStateFromProps=="function"||typeof D.getSnapshotBeforeUpdate=="function"){var X=null,oe=null,se=null;if(typeof D.componentWillMount=="function"&&D.componentWillMount.__suppressDeprecationWarning!==!0?X="componentWillMount":typeof D.UNSAFE_componentWillMount=="function"&&(X="UNSAFE_componentWillMount"),typeof D.componentWillReceiveProps=="function"&&D.componentWillReceiveProps.__suppressDeprecationWarning!==!0?oe="componentWillReceiveProps":typeof D.UNSAFE_componentWillReceiveProps=="function"&&(oe="UNSAFE_componentWillReceiveProps"),typeof D.componentWillUpdate=="function"&&D.componentWillUpdate.__suppressDeprecationWarning!==!0?se="componentWillUpdate":typeof D.UNSAFE_componentWillUpdate=="function"&&(se="UNSAFE_componentWillUpdate"),X!==null||oe!==null||se!==null){var pe=at(l)||"Component",Te=typeof l.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";ia.has(pe)||(ia.add(pe),o(`Unsafe legacy lifecycles will not be called for components using new component APIs.
84
+ Please check the code for the %s component.`,t,t,s),ii[p]=!0}}var bl={isMounted:function(l){return!1},enqueueSetState:function(l,t,r){var s=aa(l);s.queue===null?yl(l,"setState"):(s.queue.push(t),r!=null&&la(r,"setState"))},enqueueReplaceState:function(l,t,r){var s=aa(l);s.replace=!0,s.queue=[t],r!=null&&la(r,"setState")},enqueueForceUpdate:function(l,t){var r=aa(l);r.queue===null?yl(l,"forceUpdate"):t!=null&&la(t,"setState")}};function uu(l,t,r,s,p){var b=r(p,s);ci(t,b);var S=b==null?s:nn({},s,b);return S}function wl(l,t,r){var s=ni,p=l.contextType;if("contextType"in l){var b=p===null||p!==void 0&&p.$$typeof===qo&&p._context===void 0;if(!b&&!As.has(l)){As.add(l);var S="";p===void 0?S=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof p!="object"?S=" However, it is set to a "+typeof p+".":p.$$typeof===Jo?S=" Did you accidentally pass the Context.Provider instead?":p._context!==void 0?S=" Did you accidentally pass the Context.Consumer instead?":S=" However, it is set to an object with keys {"+Object.keys(p).join(", ")+"}.",o("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",at(l)||"Component",S)}}typeof p=="object"&&p!==null?s=xo(p):s=r;var D=new l(t,s);{if(typeof l.getDerivedStateFromProps=="function"&&(D.state===null||D.state===void 0)){var H=at(l)||"Component";li.has(H)||(li.add(H),o("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",H,D.state===null?"null":"undefined",H))}if(typeof l.getDerivedStateFromProps=="function"||typeof D.getSnapshotBeforeUpdate=="function"){var X=null,oe=null,se=null;if(typeof D.componentWillMount=="function"&&D.componentWillMount.__suppressDeprecationWarning!==!0?X="componentWillMount":typeof D.UNSAFE_componentWillMount=="function"&&(X="UNSAFE_componentWillMount"),typeof D.componentWillReceiveProps=="function"&&D.componentWillReceiveProps.__suppressDeprecationWarning!==!0?oe="componentWillReceiveProps":typeof D.UNSAFE_componentWillReceiveProps=="function"&&(oe="UNSAFE_componentWillReceiveProps"),typeof D.componentWillUpdate=="function"&&D.componentWillUpdate.__suppressDeprecationWarning!==!0?se="componentWillUpdate":typeof D.UNSAFE_componentWillUpdate=="function"&&(se="UNSAFE_componentWillUpdate"),X!==null||oe!==null||se!==null){var pe=at(l)||"Component",Te=typeof l.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";ia.has(pe)||(ia.add(pe),o(`Unsafe legacy lifecycles will not be called for components using new component APIs.
85
85
 
86
86
  %s uses %s but also contains the following legacy lifecycles:%s%s%s
87
87
 
@@ -102,16 +102,16 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
102
102
  Previous: %s
103
103
  Incoming: %s`,Tr,"["+l.join(", ")+"]","["+t.join(", ")+"]");for(var r=0;r<t.length&&r<l.length;r++)if(!ot(l[r],t[r]))return!1;return!0}function hs(){if(Gn>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function ua(){return We===null?zr===null?(Pr=!1,zr=We=hs()):(Pr=!0,We=zr):We.next===null?(Pr=!1,We=We.next=hs()):(Pr=!0,We=We.next),We}function bu(l,t){rn=t,ko=l,Dn=!1,on=0}function wu(l,t,r,s){for(;pi;)pi=!1,on=0,Gn+=1,We=null,r=l(t,s);return gs(),r}function hi(){var l=on!==0;return l}function gs(){Dn=!1,rn=null,ko=null,pi=!1,zr=null,Gn=0,an=null,We=null}function xl(l){return Dn&&o("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),xo(l)}function Sl(l){return Tr="useContext",jr(),xo(l)}function ms(l,t){return typeof t=="function"?t(l):t}function xu(l){return Tr="useState",kl(ms,l)}function kl(l,t,r){if(l!==ms&&(Tr="useReducer"),rn=jr(),We=ua(),Pr){var s=We.queue,p=s.dispatch;if(an!==null){var b=an.get(s);if(b!==void 0){an.delete(s);var S=We.memoizedState,D=b;do{var H=D.action;Dn=!0,S=l(S,H),Dn=!1,D=D.next}while(D!==null);return We.memoizedState=S,[S,p]}}return[We.memoizedState,p]}else{Dn=!0;var X;l===ms?X=typeof t=="function"?t():t:X=r!==void 0?r(t):t,Dn=!1,We.memoizedState=X;var oe=We.queue={last:null,dispatch:null},se=oe.dispatch=Eu.bind(null,rn,oe);return[We.memoizedState,se]}}function El(l,t){rn=jr(),We=ua();var r=t===void 0?null:t;if(We!==null){var s=We.memoizedState;if(s!==null&&r!==null){var p=s[1];if(yu(r,p))return s[0]}}Dn=!0;var b=l();return Dn=!1,We.memoizedState=[b,r],b}function Su(l){rn=jr(),We=ua();var t=We.memoizedState;if(t===null){var r={current:l};return Object.seal(r),We.memoizedState=r,r}else return t}function ku(l,t){Tr="useLayoutEffect",o("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.")}function Eu(l,t,r){if(Gn>=vu)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(l===rn){pi=!0;var s={action:r,next:null};an===null&&(an=new Map);var p=an.get(t);if(p===void 0)an.set(t,s);else{for(var b=p;b.next!==null;)b=b.next;b.next=s}}}function Cu(l,t){return El(function(){return l},t)}function Pu(l,t,r){return jr(),t(l._source)}function Tu(l,t,r){if(r===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return r()}function gi(l){return jr(),l}function Cl(){throw new Error("startTransition cannot be called during server rendering.")}function vs(){return jr(),[!1,Cl]}function Pl(){var l=ko,t=pu(l.treeContext),r=Aa;if(r===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var s=on++;return mn(r,t,s)}function mi(){}var vi={readContext:xl,useContext:Sl,useMemo:El,useReducer:kl,useRef:Su,useState:xu,useInsertionEffect:mi,useLayoutEffect:ku,useCallback:Cu,useImperativeHandle:mi,useEffect:mi,useDebugValue:mi,useDeferredValue:gi,useTransition:vs,useId:Pl,useMutableSource:Pu,useSyncExternalStore:Tu},Aa=null;function yi(l){Aa=l}function Eo(l){try{var t="",r=l;do{switch(r.tag){case 0:t+=Hr(r.type,null,null);break;case 1:t+=ss(r.type,null,null);break;case 2:t+=dl(r.type,null,null);break}r=r.parent}while(r);return t}catch(s){return`
104
104
  Error generating stack: `+s.message+`
105
- `+s.stack}}var bi=i.ReactCurrentDispatcher,wi=i.ReactDebugCurrentFrame,xi=0,Co=1,ys=2,Wr=3,Tl=4,Du=0,Po=1,To=2,Iu=12800;function Bu(l){return console.error(l),null}function Yr(){}function Si(l,t,r,s,p,b,S,D,H){var X=[],oe=new Set,se={destination:null,responseState:t,progressiveChunkSize:s===void 0?Iu:s,status:Du,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:oe,pingedTasks:X,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:p===void 0?Bu:p,onAllReady:b===void 0?Yr:b,onShellReady:S===void 0?Yr:S,onShellError:D===void 0?Yr:D,onFatalError:H===void 0?Yr:H},pe=da(se,0,null,r,!1,!1);pe.parentFlushed=!0;var Te=Gr(se,l,null,pe,oe,ni,ri,fu);return X.push(Te),se}function rr(l,t){var r=l.pingedTasks;r.push(t),r.length===1&&f(function(){return Is(l)})}function bs(l,t){return{id:yr,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:t,errorDigest:null}}function Gr(l,t,r,s,p,b,S,D){l.allPendingTasks++,r===null?l.pendingRootTasks++:r.pendingTasks++;var H={node:t,ping:function(){return rr(l,H)},blockedBoundary:r,blockedSegment:s,abortSet:p,legacyContext:b,context:S,treeContext:D};return H.componentStack=null,p.add(H),H}function da(l,t,r,s,p,b){return{status:xi,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:s,boundary:r,lastPushedText:p,textEmbedded:b}}var or=null;function Vn(){return or===null||or.componentStack===null?"":Eo(or.componentStack)}function ar(l,t){l.componentStack={tag:0,parent:l.componentStack,type:t}}function ki(l,t){l.componentStack={tag:1,parent:l.componentStack,type:t}}function fa(l,t){l.componentStack={tag:2,parent:l.componentStack,type:t}}function In(l){l.componentStack===null?o("Unexpectedly popped too many stack frames. This is a bug in React."):l.componentStack=l.componentStack.parent}var pa=null;function ws(l,t){{var r;typeof t=="string"?r=t:t&&typeof t.message=="string"?r=t.message:r=String(t);var s=pa||Vn();pa=null,l.errorMessage=r,l.errorComponentStack=s}}function ha(l,t){var r=l.onError(t);if(r!=null&&typeof r!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof r+'" instead');return r}function ga(l,t){var r=l.onShellError;r(t);var s=l.onFatalError;s(t),l.destination!==null?(l.status=To,Q(l.destination,t)):(l.status=Po,l.fatalError=t)}function Dl(l,t,r){ar(t,"Suspense");var s=t.blockedBoundary,p=t.blockedSegment,b=r.fallback,S=r.children,D=new Set,H=bs(l,D),X=p.chunks.length,oe=da(l,X,H,p.formatContext,!1,!1);p.children.push(oe),p.lastPushedText=!1;var se=da(l,0,null,p.formatContext,!1,!1);se.parentFlushed=!0,t.blockedBoundary=H,t.blockedSegment=se;try{if(Do(l,t,S),jt(se.chunks,l.responseState,se.lastPushedText,se.textEmbedded),se.status=Co,Vr(H,se),H.pendingTasks===0){In(t);return}}catch(Te){se.status=Tl,H.forceClientRender=!0,H.errorDigest=ha(l,Te),ws(H,Te)}finally{t.blockedBoundary=s,t.blockedSegment=p}var pe=Gr(l,b,s,oe,D,t.legacyContext,t.context,t.treeContext);pe.componentStack=t.componentStack,l.pingedTasks.push(pe),In(t)}function Mu(l,t,r,s){ar(t,r);var p=t.blockedSegment,b=_r(p.chunks,r,s,l.responseState,p.formatContext);p.lastPushedText=!1;var S=p.formatContext;p.formatContext=qn(S,r,s),Do(l,t,b),p.formatContext=S,Ba(p.chunks,r),p.lastPushedText=!1,In(t)}function Il(l){return l.prototype&&l.prototype.isReactComponent}function ma(l,t,r,s,p){var b={};bu(t,b);var S=r(s,p);return wu(r,s,S,p)}function xs(l,t,r,s,p){var b=r.render();r.props!==p&&(Cs||o("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",at(s)||"a component"),Cs=!0);{var S=s.childContextTypes;if(S!=null){var D=t.legacyContext,H=ls(r,s,D,S);t.legacyContext=H,Gt(l,t,b),t.legacyContext=D;return}}Gt(l,t,b)}function Bl(l,t,r,s){fa(t,r);var p=kr(r,t.legacyContext),b=wl(r,s,p);ca(b,r,s,p),xs(l,t,b,r,s),In(t)}var Ss={},va={},ks={},Es={},Cs=!1,Ml={},Rl=!1,Ps=!1,Ol=!1;function Ru(l,t,r,s){var p;if(p=kr(r,t.legacyContext),ki(t,r),r.prototype&&typeof r.prototype.render=="function"){var b=at(r)||"Unknown";Ss[b]||(o("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",b,b),Ss[b]=!0)}var S=ma(l,t,r,s,p),D=hi();if(typeof S=="object"&&S!==null&&typeof S.render=="function"&&S.$$typeof===void 0){var H=at(r)||"Unknown";va[H]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",H,H,H),va[H]=!0)}if(typeof S=="object"&&S!==null&&typeof S.render=="function"&&S.$$typeof===void 0){{var X=at(r)||"Unknown";va[X]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",X,X,X),va[X]=!0)}ca(S,r,s,p),xs(l,t,S,r,s)}else if(Ou(r),D){var oe=t.treeContext,se=1,pe=0;t.treeContext=fs(oe,se,pe);try{Gt(l,t,S)}finally{t.treeContext=oe}}else Gt(l,t,S);In(t)}function Ou(l){{if(l&&l.childContextTypes&&o("%s(...): childContextTypes cannot be defined on a function component.",l.displayName||l.name||"Component"),l.defaultProps!==void 0){var t=at(l)||"Unknown";Ml[t]||(o("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",t),Ml[t]=!0)}if(typeof l.getDerivedStateFromProps=="function"){var r=at(l)||"Unknown";Es[r]||(o("%s: Function components do not support getDerivedStateFromProps.",r),Es[r]=!0)}if(typeof l.contextType=="object"&&l.contextType!==null){var s=at(l)||"Unknown";ks[s]||(o("%s: Function components do not support contextType.",s),ks[s]=!0)}}}function _l(l,t){if(l&&l.defaultProps){var r=nn({},t),s=l.defaultProps;for(var p in s)r[p]===void 0&&(r[p]=s[p]);return r}return t}function _u(l,t,r,s,p){ki(t,r.render);var b=ma(l,t,r.render,s,p),S=hi();if(S){var D=t.treeContext,H=1,X=0;t.treeContext=fs(D,H,X);try{Gt(l,t,b)}finally{t.treeContext=D}}else Gt(l,t,b);In(t)}function Ts(l,t,r,s,p){var b=r.type,S=_l(b,s);Ei(l,t,b,S,p)}function Lu(l,t,r,s){r._context===void 0?r!==r.Consumer&&(Ol||(Ol=!0,o("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):r=r._context;var p=s.children;typeof p!="function"&&o("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var b=xo(r),S=p(b);Gt(l,t,S)}function sn(l,t,r,s){var p=r._context,b=s.value,S=s.children,D;D=t.context,t.context=cs(p,b),Gt(l,t,S),t.context=cu(p),D!==t.context&&o("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Fu(l,t,r,s,p){ar(t,"Lazy");var b=r._payload,S=r._init,D=S(b),H=_l(D,s);Ei(l,t,D,H,p),In(t)}function Ei(l,t,r,s,p){if(typeof r=="function")if(Il(r)){Bl(l,t,r,s);return}else{Ru(l,t,r,s);return}if(typeof r=="string"){Mu(l,t,r,s);return}switch(r){case iu:case au:case Xa:case Ja:case Va:{Gt(l,t,s.children);return}case Ki:{ar(t,"SuspenseList"),Gt(l,t,s.children),In(t);return}case ll:throw new Error("ReactDOMServer does not yet support scope components.");case Ji:{Dl(l,t,s);return}}if(typeof r=="object"&&r!==null)switch(r.$$typeof){case yo:{_u(l,t,r,s,p);return}case qi:{Ts(l,t,r,s,p);return}case Jo:{sn(l,t,r,s);return}case Ko:{Lu(l,t,r,s);return}case Ka:{Fu(l,t,r,s);return}}var b="";throw(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).length===0)&&(b+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(r==null?r:typeof r)+"."+b))}function Qu(l,t){typeof Symbol=="function"&&l[Symbol.toStringTag]==="Generator"&&(Rl||o("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),Rl=!0),l.entries===t&&(Ps||o("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ps=!0)}function Gt(l,t,r){try{return Hu(l,t,r)}catch(s){throw typeof s=="object"&&s!==null&&typeof s.then=="function"||(pa=pa!==null?pa:Vn()),s}}function Hu(l,t,r){if(t.node=r,typeof r=="object"&&r!==null){switch(r.$$typeof){case sl:{var s=r,p=s.type,b=s.props,S=s.ref;Ei(l,t,p,b,S);return}case Ga:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case Ka:{var D=r,H=D._payload,X=D._init,oe;try{oe=X(H)}catch(ir){throw typeof ir=="object"&&ir!==null&&typeof ir.then=="function"&&ar(t,"Lazy"),ir}Gt(l,t,oe);return}}if(Ut(r)){Ll(l,t,r);return}var se=qo(r);if(se){Qu(r,se);var pe=se.call(r);if(pe){var Te=pe.next();if(!Te.done){var Ye=[];do Ye.push(Te.value),Te=pe.next();while(!Te.done);Ll(l,t,Ye);return}return}}var Tt=Object.prototype.toString.call(r);throw new Error("Objects are not valid as a React child (found: "+(Tt==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":Tt)+"). If you meant to render a collection of children, use an array instead.")}if(typeof r=="string"){var Xr=t.blockedSegment;Xr.lastPushedText=xt(t.blockedSegment.chunks,r,l.responseState,Xr.lastPushedText);return}if(typeof r=="number"){var Jr=t.blockedSegment;Jr.lastPushedText=xt(t.blockedSegment.chunks,""+r,l.responseState,Jr.lastPushedText);return}typeof r=="function"&&o("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function Ll(l,t,r){for(var s=r.length,p=0;p<s;p++){var b=t.treeContext;t.treeContext=fs(b,s,p);try{Do(l,t,r[p])}finally{t.treeContext=b}}}function Fl(l,t,r){var s=t.blockedSegment,p=s.chunks.length,b=da(l,p,null,s.formatContext,s.lastPushedText,!0);s.children.push(b),s.lastPushedText=!1;var S=Gr(l,t.node,t.blockedBoundary,b,t.abortSet,t.legacyContext,t.context,t.treeContext);t.componentStack!==null&&(S.componentStack=t.componentStack.parent);var D=S.ping;r.then(D,D)}function Do(l,t,r){var s=t.blockedSegment.formatContext,p=t.legacyContext,b=t.context,S=null;S=t.componentStack;try{return Gt(l,t,r)}catch(D){if(gs(),typeof D=="object"&&D!==null&&typeof D.then=="function"){Fl(l,t,D),t.blockedSegment.formatContext=s,t.legacyContext=p,t.context=b,Cr(b),t.componentStack=S;return}else throw t.blockedSegment.formatContext=s,t.legacyContext=p,t.context=b,Cr(b),t.componentStack=S,D}}function Ql(l,t,r,s){var p=ha(l,s);if(t===null?ga(l,s):(t.pendingTasks--,t.forceClientRender||(t.forceClientRender=!0,t.errorDigest=p,ws(t,s),t.parentFlushed&&l.clientRenderedBoundaries.push(t))),l.allPendingTasks--,l.allPendingTasks===0){var b=l.onAllReady;b()}}function Nu(l){var t=this,r=l.blockedBoundary,s=l.blockedSegment;s.status=Wr,ya(t,r,s)}function Ds(l,t,r){var s=l.blockedBoundary,p=l.blockedSegment;if(p.status=Wr,s===null)t.allPendingTasks--,t.status!==To&&(t.status=To,t.destination!==null&&C(t.destination));else{if(s.pendingTasks--,!s.forceClientRender){s.forceClientRender=!0;var b=r===void 0?new Error("The render was aborted by the server without a reason."):r;s.errorDigest=t.onError(b);{var S="The server did not finish this Suspense boundary: ";b&&typeof b.message=="string"?b=S+b.message:b=S+String(b);var D=or;or=l;try{ws(s,b)}finally{or=D}}s.parentFlushed&&t.clientRenderedBoundaries.push(s)}if(s.fallbackAbortableTasks.forEach(function(X){return Ds(X,t,r)}),s.fallbackAbortableTasks.clear(),t.allPendingTasks--,t.allPendingTasks===0){var H=t.onAllReady;H()}}}function Vr(l,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null){var r=t.children[0];r.id=t.id,r.parentFlushed=!0,r.status===Co&&Vr(l,r)}else{var s=l.completedSegments;s.push(t)}}function ya(l,t,r){if(t===null){if(r.parentFlushed){if(l.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");l.completedRootSegment=r}if(l.pendingRootTasks--,l.pendingRootTasks===0){l.onShellError=Yr;var s=l.onShellReady;s()}}else if(t.pendingTasks--,!t.forceClientRender){if(t.pendingTasks===0)r.parentFlushed&&r.status===Co&&Vr(t,r),t.parentFlushed&&l.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Nu,l),t.fallbackAbortableTasks.clear();else if(r.parentFlushed&&r.status===Co){Vr(t,r);var p=t.completedSegments;p.length===1&&t.parentFlushed&&l.partialBoundaries.push(t)}}if(l.allPendingTasks--,l.allPendingTasks===0){var b=l.onAllReady;b()}}function Uu(l,t){var r=t.blockedSegment;if(r.status===xi){Cr(t.context);var s=null;s=or,or=t;try{Gt(l,t,t.node),jt(r.chunks,l.responseState,r.lastPushedText,r.textEmbedded),t.abortSet.delete(t),r.status=Co,ya(l,t.blockedBoundary,r)}catch(b){if(gs(),typeof b=="object"&&b!==null&&typeof b.then=="function"){var p=t.ping;b.then(p,p)}else t.abortSet.delete(t),r.status=Tl,Ql(l,t.blockedBoundary,r,b)}finally{or=s}}}function Is(l){if(l.status!==To){var t=ml(),r=bi.current;bi.current=vi;var s;s=wi.getCurrentStack,wi.getCurrentStack=Vn;var p=Aa;yi(l.responseState);try{var b=l.pingedTasks,S;for(S=0;S<b.length;S++){var D=b[S];Uu(l,D)}b.splice(0,S),l.destination!==null&&Bs(l,l.destination)}catch(H){ha(l,H),ga(l,H)}finally{yi(p),bi.current=r,wi.getCurrentStack=s,r===vi&&Cr(t)}}}function ba(l,t,r){switch(r.parentFlushed=!0,r.status){case xi:{var s=r.id=l.nextSegmentId++;return r.lastPushedText=!1,r.textEmbedded=!1,Ma(t,l.responseState,s)}case Co:{r.status=ys;for(var p=!0,b=r.chunks,S=0,D=r.children,H=0;H<D.length;H++){for(var X=D[H];S<X.index;S++)v(t,b[S]);p=Ci(l,t,X)}for(;S<b.length-1;S++)v(t,b[S]);return S<b.length&&(p=y(t,b[S])),p}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function Ci(l,t,r){var s=r.boundary;if(s===null)return ba(l,t,r);if(s.parentFlushed=!0,s.forceClientRender)return Wt(t,l.responseState,s.errorDigest,s.errorMessage,s.errorComponentStack),ba(l,t,r),Vi(t,l.responseState);if(s.pendingTasks>0){s.rootSegmentID=l.nextSegmentId++,s.completedSegments.length>0&&l.partialBoundaries.push(s);var p=s.id=Xt(l.responseState);return fo(t,l.responseState,p),ba(l,t,r),po(t,l.responseState)}else{if(s.byteSize>l.progressiveChunkSize)return s.rootSegmentID=l.nextSegmentId++,l.completedBoundaries.push(s),fo(t,l.responseState,s.id),ba(l,t,r),po(t,l.responseState);_a(t,l.responseState);var b=s.completedSegments;if(b.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var S=b[0];return Ci(l,t,S),La(t,l.responseState)}}function Hl(l,t,r){return ou(t,l.responseState,r.id,r.errorDigest,r.errorMessage,r.errorComponentStack)}function Pi(l,t,r){return Le(t,l.responseState,r.formatContext,r.id),Ci(l,t,r),nt(t,r.formatContext)}function Nl(l,t,r){for(var s=r.completedSegments,p=0;p<s.length;p++){var b=s[p];Ul(l,t,r,b)}return s.length=0,al(t,l.responseState,r.id,r.rootSegmentID)}function zu(l,t,r){for(var s=r.completedSegments,p=0;p<s.length;p++){var b=s[p];if(!Ul(l,t,r,b))return p++,s.splice(0,p),!1}return s.splice(0,p),!0}function Ul(l,t,r,s){if(s.status===ys)return!0;var p=s.id;if(p===-1){var b=s.id=r.rootSegmentID;if(b===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Pi(l,t,s)}else return Pi(l,t,s),qc(t,l.responseState,p)}function Bs(l,t){h();try{var r=l.completedRootSegment;r!==null&&l.pendingRootTasks===0&&(Ci(l,t,r),l.completedRootSegment=null,Wi(t,l.responseState));var s=l.clientRenderedBoundaries,p;for(p=0;p<s.length;p++){var b=s[p];Hl(l,t,b)}s.splice(0,p);var S=l.completedBoundaries;for(p=0;p<S.length;p++){var D=S[p];Nl(l,t,D)}S.splice(0,p),k(t),h(t);var H=l.partialBoundaries;for(p=0;p<H.length;p++){var X=H[p];if(!zu(l,t,X)){l.destination=null,p++,H.splice(0,p);return}}H.splice(0,p);var oe=l.completedBoundaries;for(p=0;p<oe.length;p++){var se=oe[p];Nl(l,t,se)}oe.splice(0,p)}finally{k(t),l.allPendingTasks===0&&l.pingedTasks.length===0&&l.clientRenderedBoundaries.length===0&&l.completedBoundaries.length===0&&(l.abortableTasks.size!==0&&o("There was still abortable task at the root when we closed. This is a bug in React."),C(t))}}function zl(l){f(function(){return Is(l)})}function ju(l,t){if(l.status===Po){l.status=To,Q(t,l.fatalError);return}if(l.status!==To&&l.destination===null){l.destination=t;try{Bs(l,t)}catch(r){ha(l,r),ga(l,r)}}}function jl(l,t){try{var r=l.abortableTasks;r.forEach(function(s){return Ds(s,l,t)}),r.clear(),l.destination!==null&&Bs(l,l.destination)}catch(s){ha(l,s),ga(l,s)}}function Wu(l,t){return new Promise(function(r,s){var p,b,S=new Promise(function(pe,Te){b=pe,p=Te});function D(){var pe=new ReadableStream({type:"bytes",pull:function(Te){ju(X,Te)},cancel:function(Te){jl(X)}},{highWaterMark:0});pe.allReady=S,r(pe)}function H(pe){S.catch(function(){}),s(pe)}var X=Si(l,oo(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),Un(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,b,D,H,p);if(t&&t.signal){var oe=t.signal,se=function(){jl(X,oe.reason),oe.removeEventListener("abort",se)};oe.addEventListener("abort",se)}zl(X)})}Rs.renderToReadableStream=Wu,Rs.version=n}()),Rs}var Oo,Yl;process.env.NODE_ENV==="production"?(Oo=mf(),Yl=vf()):(Oo=yf(),Yl=bf()),Bo.version=Oo.version,Bo.renderToString=Oo.renderToString,Bo.renderToStaticMarkup=Oo.renderToStaticMarkup,Bo.renderToNodeStream=Oo.renderToNodeStream,Bo.renderToStaticNodeStream=Oo.renderToStaticNodeStream,Bo.renderToReadableStream=Yl.renderToReadableStream;function Ku(e,n){n===void 0&&(n={});var i=n.insertAt;if(e&&typeof document<"u"){var a=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",i==="top"&&a.firstChild?a.insertBefore(o,a.firstChild):a.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}Ku('.rcb-chat-header-container{border-bottom:1px solid #ccc;color:#fff;display:flex;justify-content:space-between;max-height:55px;padding:12px}.rcb-chat-header{display:flex;flex-direction:row}.rcb-bot-avatar{background-size:cover;border-radius:50%;height:30px;margin-right:12px;width:30px}.rcb-message-prompt-container.visible{align-items:center;animation:rcb-animation-pop-in .3s ease-in-out;bottom:0;display:flex;justify-content:center;margin:auto;opacity:1;pointer-events:auto;position:sticky}.rcb-message-prompt-container.hidden{height:0;opacity:0;pointer-events:none;visibility:hidden}.rcb-message-prompt-text{background-color:#fff;border:.5px solid #adadad;border-radius:20px;color:#adadad;cursor:pointer;font-size:12px;padding:6px 12px;transition:color .3s ease,border-color .3s ease;z-index:9999}.rcb-message-prompt-container.hidden .rcb-message-prompt-text{padding:0}.rcb-user-message-container{display:flex;flex-direction:row;justify-content:right}.rcb-user-message{border-radius:22px;font-size:15px;height:fit-content;margin-right:16px;margin-top:8px;min-height:20px;overflow:auto;overflow-wrap:anywhere;padding:12px 16px;text-align:right;white-space:pre-wrap;width:fit-content}.rcb-user-message-offset{margin-right:50px}.rcb-user-message-entry{animation:rcb-animation-user-message-entry .3s ease-in backwards}.rcb-message-user-avatar{background-size:cover;border-radius:50%;height:40px;margin-left:-10px;margin-right:6px;margin-top:9px;width:40px}.rcb-bot-message-container{display:flex;flex-direction:row}.rcb-bot-message{border-radius:22px;font-size:15px;height:fit-content;margin-left:16px;margin-top:8px;min-height:20px;overflow:auto;overflow-wrap:anywhere;padding:12px 16px;text-align:left;white-space:pre-wrap;width:fit-content}.rcb-bot-message-offset{margin-left:50px}.rcb-bot-message-entry{animation:rcb-animation-bot-message-entry .3s ease-in backwards}.rcb-message-bot-avatar{background-size:cover;border-radius:50%;height:40px;margin-left:6px;margin-right:-10px;margin-top:9px;width:40px}.rcb-typing-indicator{align-items:center;display:flex}.rcb-dot{animation:rcb-animation-bot-typing 1s infinite;background-color:#ccc;border-radius:50%;height:8px;margin-right:4px;width:8px}.rcb-dot:nth-child(2){animation-delay:.2s}.rcb-dot:nth-child(3){animation-delay:.4s}.rcb-chat-body-container{height:100%;overflow-x:hidden;overflow-y:scroll;padding-bottom:16px;position:relative;touch-action:pan-y;width:100%}.rcb-chat-body-container::-webkit-scrollbar-track{background-color:#f1f1f1}.rcb-chat-body-container::-webkit-scrollbar-thumb{background-color:#ddd;border-radius:4px}.rcb-chat-body-container::-webkit-scrollbar-thumb:hover{background-color:#cfcfcf}.rcb-chat-body-container::-webkit-scrollbar-corner{background-color:#f1f1f1}.rcb-checkbox-container{display:flex;flex-wrap:wrap;gap:10px;margin-left:16px;padding-top:12px}.rcb-checkbox-offset{margin-left:50px!important}.rcb-checkbox-row-container{align-items:center;animation:rcb-animations-checkboxes-entry .5s ease-out;background-color:#fff;border-radius:10px;border-style:solid;border-width:.5px;cursor:pointer;display:flex;gap:5px;max-height:32px;min-height:30px;overflow:hidden;width:80%}.rcb-checkbox-row-container:hover{box-shadow:0 0 5px #0003}.rcb-checkbox-row{align-items:center;cursor:pointer;display:inline-flex;margin-left:10px}.rcb-checkbox-mark{align-items:center;background-color:#f2f2f2;border:none;border-radius:50%;cursor:pointer;display:flex;height:20px;justify-content:center;margin-right:10px;transition:all .3s ease;width:20px}.rcb-checkbox-mark:hover{background-color:#c2c2c2}.rcb-checkbox-mark:before{content:"✓";transition:all .3s ease}.rcb-checkbox-label{font-size:14px}.rcb-checkbox-next-button{align-items:center;animation:rcb-animations-checkboxes-entry .5s ease-out;background-color:#fff;border-radius:10px;border-style:solid;border-width:.5px;cursor:pointer;display:inline-block;font-size:24px;max-height:32px;min-height:30px;text-align:center;width:80%}.rcb-checkbox-next-button:before{content:"→"}.rcb-checkbox-next-button:hover{box-shadow:0 0 5px #0003}.rcb-options-container{display:flex;flex-wrap:wrap;gap:10px;margin-left:16px;max-width:70%;padding-top:12px}.rcb-options-offset{margin-left:50px!important}.rcb-options{align-items:center;animation:rcb-animation-options-entry .5s ease-out;border-radius:20px;border-style:solid;border-width:.5px;cursor:pointer;display:inline-flex;font-size:14px;justify-content:center;overflow:hidden;padding:10px 20px;transition:background-color .3s ease}.rcb-options:hover{box-shadow:0 0 5px #0003}.rcb-line-break-container{align-items:center;display:flex;justify-content:center;max-height:45px;padding-bottom:5px;padding-top:10px}.rcb-line-break-text{color:#adadad;font-size:12px;padding:6px 12px}.rcb-spinner-container{align-items:center;display:flex;justify-content:center;max-height:45px;min-height:35px;padding-bottom:5px;padding-top:10px}.rcb-spinner{animation:rcb-animation-spin 1s linear infinite;border:4px solid #f3f3f3;border-radius:50%;height:22px;width:22px}.rcb-chat-input{align-items:center;background-color:#fff;border-top:1px solid #ccc;display:flex;padding:8px 16px}.rcb-chat-input::placeholder{color:#999}.rcb-chat-input-textarea{background-color:#fff;border:none;border-radius:4px;color:#000;flex:1;font-family:inherit;font-size:16px;height:auto;min-height:38px;outline:none;overflow-y:scroll;padding:8px;resize:none;touch-action:none}.rcb-chat-input-textarea::-webkit-scrollbar,.rcb-chat-input-textarea::-webkit-scrollbar-thumb{background-color:initial}.rcb-chat-input-textarea::-webkit-scrollbar-thumb:hover{background-color:initial}.rcb-chat-input-char-counter{font-size:14px;margin-left:8px;margin-top:3px}.rcb-chat-footer-container{align-items:flex-end;background-color:#f2f2f2;border-top:1px solid #ccc;color:#000;display:flex;font-size:12px;justify-content:space-between;max-height:55px;padding:12px 16px 8px 10px}.rcb-chat-footer,.rcb-toggle-button{display:flex;flex-direction:row}.rcb-toggle-button{border:none;border-radius:50%;bottom:20px;box-shadow:0 2px 4px #0003;cursor:pointer;height:75px;position:fixed;right:20px;width:75px;z-index:9999}.rcb-toggle-button.rcb-button-hide{animation:rcb-animation-collapse .3s ease-in-out forwards;opacity:0;visibility:hidden}.rcb-toggle-button.rcb-button-show{animation:rcb-animation-expand .3s ease-in-out forwards;opacity:1;visibility:visible}.rcb-toggle-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;border-radius:inherit;height:100%;margin:auto;width:100%}.rcb-badge,.rcb-toggle-icon{align-items:center;display:flex;justify-content:center}.rcb-badge{background-color:red;border-radius:50%;color:#fff;height:25px;position:absolute;right:-6px;top:-6px;width:25px}.rcb-chat-tooltip{border-radius:20px;box-shadow:0 2px 6px #0003;cursor:pointer;font-size:20px;padding:16px;position:fixed;transition:transform .3s ease;white-space:nowrap;z-index:9999}.rcb-chat-tooltip-tail{border-style:solid;border-width:10px 0 10px 10px;content:"";margin-top:-10px;position:absolute;right:-10px;top:50%}.rcb-chat-tooltip.rcb-tooltip-hide{animation:rcb-animation-tooltip-out .5s ease-in-out;opacity:0;visibility:hidden}.rcb-chat-tooltip.rcb-tooltip-show{animation:rcb-animation-tooltip-in .5s ease-in-out;opacity:1;visibility:visible}.rcb-toast-prompt{animation:rcb-animation-pop-in .3s ease-in-out;background-color:#fff;border:.5px solid #7a7a7a;border-radius:5px;color:#7a7a7a;cursor:pointer;font-size:12px;margin-top:6px;padding:6px 12px;text-align:center;transition:color .3s ease,border-color .3s ease;width:100%;z-index:9999}.rcb-toast-prompt-container{align-items:center;animation:popIn .3s ease-in-out;bottom:0;display:flex;flex-direction:column;justify-content:flex-end;left:50%;margin:200 auto auto;opacity:1;pointer-events:auto;position:absolute;transform:translate(-50%)}.rcb-media-display-image-container,.rcb-media-display-video-container{border-radius:22px;margin-right:16px;margin-top:8px;padding:16px;width:fit-content}.rcb-media-display-offset{margin-right:50px!important}.rcb-media-display-image{border-radius:22px;height:auto;object-fit:cover;width:100%}.rcb-media-display-video{background-color:#000;border-radius:22px;height:auto;width:100%}.rcb-media-display-audio{border-radius:22px;height:auto;margin-right:16px;margin-top:8px;width:100%}.rcb-media-entry{animation:rcb-animation-user-message-entry .3s ease-in backwards}.rcb-attach-button-disabled,.rcb-attach-button-enabled{background-size:cover;border-radius:6px;display:inline-block;height:30px;position:relative;text-align:center;width:30px}.rcb-attach-button-disabled input[type=file],.rcb-attach-button-enabled input[type=file]{display:none;height:100%;position:absolute;width:100%}.rcb-attach-button-enabled{cursor:pointer}.rcb-attach-button-disabled{opacity:.5}.rcb-attach-button-enabled:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-attach-button-enabled:hover:after{height:130%;opacity:1;width:130%}.rcb-attach-icon-disabled,.rcb-attach-icon-enabled{background-repeat:no-repeat;background-size:cover;display:inline-block;height:24px;margin-top:2px;transition:background-image .3s ease;width:24px}.rcb-attach-icon-enabled{cursor:pointer}.rcb-emoji-button-disabled,.rcb-emoji-button-enabled{background-size:cover;border-radius:6px;cursor:pointer;display:inline-block;height:30px;position:relative;text-align:center;width:30px}.rcb-emoji-icon-disabled,.rcb-emoji-icon-enabled{background-repeat:no-repeat;background-size:cover;display:inline-block;font-size:20px;height:24px;margin-top:2px;position:relative;width:24px}.rcb-emoji-icon-enabled{cursor:pointer}.rcb-emoji-icon-disabled{opacity:.5}.rcb-emoji-button-enabled:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-emoji-button-enabled:hover:after{height:130%;opacity:1;width:130%}.rcb-emoji-button-popup{background-color:#fff;border:1px solid #ccc;border-radius:4px;box-shadow:0 2px 4px #0003;max-height:200px;overflow-y:auto;padding:8px;position:absolute;transform:translateY(calc(-100% - 30px));width:158px}.rcb-emoji{cursor:pointer;font-size:24px;padding:3px;transition:transform .2s ease-in-out}.rcb-emoji:hover{transform:scale(1.2)}.rcb-audio-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-audio-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-audio-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-close-chat-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-close-chat-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-close-chat-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-notification-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-notification-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-notification-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-voice-button-disabled,.rcb-voice-button-enabled{align-items:center;background-color:#fff;border-radius:4px;box-shadow:0 0 3px #0000004d;cursor:pointer;display:inline-flex;height:32px;justify-content:center;margin-left:8px;text-transform:uppercase;transition:all .3s ease;width:32px}.rcb-voice-button-enabled{border:1px solid red;box-shadow:0 0 3px #ff000080}.rcb-voice-button-enabled:hover{border:1px solid #3d0000}.rcb-voice-button-disabled{border:1px;border-color:#0003;border-style:solid}.rcb-voice-button-disabled:hover{box-shadow:0 0 3px #8a0000}.rcb-voice-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;background-size:contain;height:60%;object-fit:cover;width:60%}.rcb-voice-icon.on{animation:rcb-animation-ping 1s infinite}.rcb-send-button{border:none;border-radius:4px;box-shadow:0 0 3px #0000004d;cursor:pointer;display:inline-flex;height:32px;justify-content:center;margin-left:8px;text-transform:uppercase;transition:background-color .3s ease;width:51px}.rcb-send-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;background-size:contain;height:50%;object-fit:cover;transform:translateY(20%);width:50%}.rcb-view-history-container{align-items:center;display:flex;justify-content:center;max-height:45px;min-height:35px;padding-bottom:5px;padding-top:10px}.rcb-view-history-button{align-items:center;background-color:#fff;border:.5px solid #adadad;border-radius:20px;color:#adadad;cursor:pointer;display:inline-flex;font-size:12px;justify-content:center;max-width:60%;padding:6px 12px;transition:color .3s ease,border-color .3s ease}.rcb-view-history-button>p{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rcb-chatbot-global{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.5;z-index:9999}.rcb-chat-window{background-color:#fff;border-radius:10px;bottom:20px;box-shadow:0 2px 4px #0003;display:flex;flex-direction:column;height:550px;overflow:hidden;position:fixed;right:20px;transition:all .3s ease;width:375px}.rcb-window-embedded .rcb-chat-window{bottom:auto;opacity:1;position:relative;right:auto;visibility:visible}.rcb-window-open .rcb-chat-window{animation:rcb-animation-expand .3s ease-in-out forwards;opacity:1;visibility:visible}.rcb-window-close .rcb-chat-window{animation:rcb-animation-collapse .3s ease-in-out forwards;opacity:0;visibility:hidden}@keyframes rcb-animation-expand{0%{opacity:0;transform:translate(100%,100%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-collapse{0%{opacity:1;transform:translate(0) scale(1)}to{opacity:0;transform:translate(100%,100%) scale(0)}}@keyframes rcb-animation-ping{0%{filter:brightness(100%);opacity:1}50%{filter:brightness(50%);opacity:.8}}@keyframes rcb-animation-bot-message-entry{0%{opacity:0;transform:translate(-100%,50%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-user-message-entry{0%{opacity:0;transform:translate(100%,50%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-bot-typing{0%{opacity:.4}50%{opacity:1}to{opacity:.4}}@keyframes rcb-animation-pop-in{0%{opacity:0;transform:scale(.8)}70%{opacity:1;transform:scale(1.1)}to{transform:scale(1)}}@keyframes rcb-animations-checkboxes-entry{0%{opacity:0;transform:translate(-100%)}to{opacity:1;transform:translate(0)}}@keyframes rcb-animation-options-entry{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes rcb-animation-tooltip-in{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}@keyframes rcb-animation-tooltip-out{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-5px)}}@keyframes rcb-animation-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}',{insertAt:"top"});const mt={AUDIO_BUTTON:"audio-button",NOTIFICATION_BUTTON:"notification-button",CLOSE_CHAT_BUTTON:"close-chat-button",SEND_MESSAGE_BUTTON:"send-button",VOICE_MESSAGE_BUTTON:"voice-button",FILE_ATTACHMENT_BUTTON:"file-attachment-button",EMOJI_PICKER_BUTTON:"emoji-button"},qu="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20viewBox='0%200%201000%201000'%3e%3crect%20width='100%25'%20height='100%25'%20fill='%23fff'/%3e%3cg%3e%3crect%20width='45'%20height='30'%20x='-22.5'%20y='-15'%20rx='1.5'%20ry='1.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-99%20362)%20scale(3.4003)'/%3e%3cpath%20d='M0%2075q14%200%2014%2017%200%2016-14%2016Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(180%20106%20386)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='4'%20x='-12.5'%20y='-2'%20rx='.2'%20ry='.2'%20style='stroke:%2346648c;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-46%20282)%20scale(3.4003)'/%3e%3cpath%20d='M19%2065h4l5%204v1H14v-1Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='2'%20x='-12.5'%20y='-1'%20rx='.1'%20ry='.1'%20style='stroke:%2398b0ca;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-3%20240)%20scale(3.4003)'/%3e%3ccircle%20r='7.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(236%20175)%20scale(3.4003)'/%3e%3crect%20width='45'%20height='30'%20x='-22.5'%20y='-15'%20rx='1.5'%20ry='1.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20139%20600)%20scale(3.4003)'/%3e%3cpath%20d='M184%2075q14%200%2014%2017%200%2016-14%2016Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='4'%20x='-12.5'%20y='-2'%20rx='.2'%20ry='.2'%20style='stroke:%2346648c;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20219%20548)%20scale(3.4003)'/%3e%3cpath%20d='M175%2065h4l5%204v1h-14v-1Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='2'%20x='-12.5'%20y='-1'%20rx='.1'%20ry='.1'%20style='stroke:%2398b0ca;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20262%20505)%20scale(3.4003)'/%3e%3ccircle%20r='7.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(767%20175)%20scale(3.4003)'/%3e%3crect%20width='116.7'%20height='70'%20x='-58.4'%20y='-35'%20rx='31.5'%20ry='31.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2371c9fc;fill-rule:nonzero;opacity:1'%20transform='translate(502%20877)%20scale(3.4003)'/%3e%3crect%20width='60'%20height='20'%20x='-30'%20y='-10'%20rx='3'%20ry='3'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='translate(502%20728)%20scale(3.4003)'/%3e%3ccircle%20r='75'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2371c9fc;fill-rule:nonzero;opacity:1'%20transform='translate(502%20473)%20scale(3.4003)'/%3e%3crect%20width='129.4'%20height='82.3'%20x='-64.7'%20y='-41.1'%20rx='37'%20ry='37'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23fff;fill-rule:nonzero;opacity:1'%20transform='translate(502%20464)%20scale(3.4003)'/%3e%3crect%20width='108'%20height='68.6'%20x='-54'%20y='-34.3'%20rx='30.9'%20ry='30.9'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23162334;fill-rule:nonzero;opacity:1'%20transform='translate(502%20464)%20scale(3.4003)'/%3e%3ccircle%20r='19.4'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(415%20464)%20scale(3.4003)'/%3e%3ccircle%20r='19.4'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(591%20464)%20scale(3.4003)'/%3e%3crect%20width='96'%20height='53.2'%20x='-48'%20y='-26.6'%20rx='23.9'%20ry='23.9'%20style='stroke:%23162334;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23162334;fill-rule:nonzero;opacity:1'%20transform='translate(503%20875)%20scale(3.4003)'/%3e%3cpath%20stroke-linecap='round'%20d='m68%20215%207-15M81%20222l-7-22M81%20222l7-14M101%20208H87M114%20219l-7-24M113%20219l13-22M131%20214l-5-17M148%20214h-18M69%20214H51M100%20209l7-15'%20style='stroke:%23a478fc;stroke-width:3;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:10;is-custom-font:none;font-file-url:none;fill:none;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3c/g%3e%3c/svg%3e",$u=B.forwardRef((e,n)=>At.createElement("svg",{viewBox:"0 0 637 637",ref:n,...e},At.createElement("path",{d:"m478 113-13 2-4 1h4l14-2c10-2 35-2 42-1l6 3 3 1c3 0-4-3-8-5-7-1-34-1-44 1m56 6 8 6c7 5 20 17 20 19s7 12 8 12l-3-6-4-6c0-3-15-17-25-24-5-3-8-4-4-1m-198 16-9 1a512 512 0 0 1 9-1m-180 30a412 412 0 0 0-23 4 167 167 0 0 0-32 8 439 439 0 0 1 46-9 304 304 0 0 1 11-2l6-1h-8m369 8 4 3-7-6c-1 0 0 2 3 3m-439 9c-7 3-18 13-18 15l6-5c5-5 9-8 14-10l6-4-8 4m442 12-10 11-7 6 7-6c7-5 14-14 13-16l-3 5M65 205l-1 11c0 9 0 10 4 17 5 10 7 12 22 11 10 0 15 0 38-5l5-1-6 1-16 2-21 2c-13 1-16-1-21-10-3-5-4-6-4-15l1-12c1-4 1-5-1-1m335 1c3 0 3 1 3 3l-2 6c-2 5-35 39-76 80-53 51-120 117-138 137-21 24-22 25-22 27 0 3 6 9 9 9 4 0 14-8 38-27a5073 5073 0 0 1 15-16 1421 1421 0 0 0-17 15l-31 25-6 2-4-3c-3-3-3-4-2-6 3-8 79-85 160-163 57-57 79-80 79-86 0-2-3-4-7-4-2 0-2 0 1 1m165 18c-9 17-25 32-57 53l-10 8 16-11 12-8c15-10 27-22 39-39 5-7 6-8 4-8l-4 5m-221 2a199 199 0 0 0-19 10 183 183 0 0 1 27-12c0-1-1-1-8 2m-34 16c-3 3-2 3 2 0l1-2-3 2m151 3-1 2 2-2c3-3 2-3-1 0m-16 12-11 10a281 281 0 0 0 11-10m-24 18-7 5-7 5-42 31c-10 7-24 19-22 19l7-6 16-12a343 343 0 0 0 35-25 573 573 0 0 0 20-17m-187 0-2 2 4-2 3-2-5 2m-14 6-3 2 4-1 4-3-5 2m-7 3-8 4-18 8 18-7 7-3 3-1c1-2 0-2-2-1m254 24a2672 2672 0 0 1-71 54 601 601 0 0 0 39-29 1352 1352 0 0 1 32-25m-291-8-2 2 4-2 3-2-5 2m-13 5-2 2h3c5-3 4-4-1-2m-19 9-7 3-13 6c-10 5-13 7-14 10-3 4-2 5 1 0 2-3 5-5 14-9l13-6 12-6-6 2m178 36c-17 12-21 16-21 17a390 390 0 0 1 20-17m-206 34 1 4 1 3 1 5 2 8 1 5v-6l-1-8-2-5-1-4-1-2c-1-2-1-2-1 0m222 23-9 7a683 683 0 0 0-56 44 261 261 0 0 0-26 20 1345 1345 0 0 0-46 34c-6 3-7 3-19 3-11 0-12 0-18-3-8-4-10-8-17-20l-5-10 4 10c5 10 12 18 19 22 4 2 6 2 17 2 13 0 14 0 21-3l26-19 42-33a2183 2183 0 0 0 43-34 643 643 0 0 1 24-20",fill:"#fff",fillRule:"evenodd"}),At.createElement("path",{d:"M478 114a620 620 0 0 1-39 6l-21 3a5481 5481 0 0 0-19 3 870 870 0 0 1-54 8l-1 1-6 1-12 2-13 2a992 992 0 0 0-76 12 400 400 0 0 1-45 8l-6 1-5 1h-3l-3 1-2 1-26 4-13 2-17 3c-23 5-33 9-43 19-7 8-9 13-9 27 0 8 1 9 4 14 5 9 8 11 21 10l21-2a1133 1133 0 0 1 23-4 659 659 0 0 0 74-14l3-1h3l3-1h3l2-1 2-1h3l2-1h2l24-5 38-7a2100 2100 0 0 1 93-18l3-1 10-1a2082 2082 0 0 1 120-17l2 1c2 0 8 5 8 7l1 2 1 6c0 4 0 6-3 10-2 4-16 16-18 16l-7 5-10 8a1070 1070 0 0 0-11 7 113 113 0 0 1-20 14l-2 2-3 2-2 2h-1a154 154 0 0 1-28 21l-5 4-5 4a573 573 0 0 1-50 37 175 175 0 0 0-24 18l-1 2-2 1-2 1-2 1-1 1-12 10a396 396 0 0 0-32 25l-8 6-6 5-9 7a326 326 0 0 1-25 20l-13 12a5073 5073 0 0 0-17 15c-24 20-34 27-39 27-2 0-8-6-8-9 0-2 1-3 22-27 18-20 85-86 138-137 41-41 74-75 76-80l2-6c0-2 0-3-2-3l-7 1a233 233 0 0 1-26 9l-1 1-1 1h-1l-1 1h-2l-3 2-1 1h-2l-3 2h-1l-5 2-22 10-9 4-4 2-5 2-10 4-2 1-2 1-2 1-13 6a334 334 0 0 1-38 17 75 75 0 0 0-14 6l-5 2-4 1-2 1-3 2-7 3-16 6a247 247 0 0 0-32 14l-1 1h-2l-1 1h-2l-1 1-12 6a103 103 0 0 0-27 15l-2 5-1 1v11l1 5 1 5 1 4c0 3 0 4 2 4v3l1 3 1 2 2 10 1 4 1 5 2 10 2 8 1 4 1 4c3 3 9 25 11 38l1 7v2l1 4v1l1 1v2l1 2 1 3v1l5 10c7 13 9 16 17 20 6 3 7 3 18 3 12 0 13 0 19-3 8-4 11-6 26-18a1345 1345 0 0 1 85-67 683 683 0 0 1 50-39l12-9a513 513 0 0 1 44-33 201 201 0 0 0 22-17 2270 2270 0 0 0 73-54 158 158 0 0 0 58-59c2 0 3-9 4-27l-1-19-1-4-1-6-1-3-4-6-4-6c0-2-6-8-13-14a77 77 0 0 0-28-18c-6-1-34-1-43 1"}))),Zu=B.forwardRef((e,n)=>At.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},At.createElement("path",{d:"M765-321q0 117-84 196-83 80-200 80-118 0-200-80t-83-196v-392q0-85 61-144 61-58 146-58 86 0 147 58 61 59 61 144v374q0 54-39 92-39 37-93 37-55 0-93-37-38-38-38-92v-372h110v372q0 9 6 14t15 5q8 0 15-5t7-14v-374q0-39-29-66t-68-27q-40 0-69 27t-29 66v392q0 71 51 119t122 48q71 0 122-48t51-119v-426h111v426Z"}))),wf=B.forwardRef((e,n)=>At.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},At.createElement("path",{d:"M125-165v-113h77v-273q0-93 55-167 56-75 146-100v-19q0-32 22-55 23-23 55-23t55 23q22 23 22 55v19q90 25 146 99 56 73 56 168v273h77v113H125ZM480-32q-38 0-66-27-27-27-27-66h186q0 39-27 66t-66 27Z"}))),xf=B.forwardRef((e,n)=>At.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},At.createElement("path",{d:"M137-190v-113h78v-253q0-41 11-79 11-39 35-71l-9 150h10L17-802l74-74L873-92l-74 74-175-172H137Zm609-149L319-769q20-15 41-25t44-16v-28q0-32 22-54t54-22q32 0 55 22t22 54v28q85 23 137 94t52 160v217ZM481-47q-38 0-65-27t-27-65h184q0 38-27 65t-65 27Z"}))),Sf=B.forwardRef((e,n)=>At.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",ref:n,...e},At.createElement("g",{strokeLinecap:"round",strokeWidth:10},At.createElement("path",{d:"m19 19 61 61M80 19 19 80"})))),kf=B.forwardRef((e,n)=>At.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},At.createElement("path",{d:"M94-136v-255l351-93-351-92v-253l816 346L94-136Z"}))),Ef=B.forwardRef((e,n)=>At.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},At.createElement("path",{d:"M480-372q-61 0-105-43-43-43-43-105v-240q0-61 43-105 43-43 105-43 61 0 105 43 43 44 43 105v240q0 62-43 105t-105 43ZM425-76v-122q-121-16-197-108t-76-214h109q0 91 64 154t155 63q91 0 155-63t64-154h109q0 122-77 214T534-198v122H425Z"}))),Cf=B.forwardRef((e,n)=>At.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},At.createElement("path",{d:"m763-343-80-79q8-20 13-44 5-23 5-54h109q0 49-11 95t-36 82ZM625-482 336-770v-2q3-56 45-96t101-40q62 0 105 43t43 105v249l-1 17q-1 7-4 12ZM427-76v-122q-120-16-196-108-77-92-77-214h109q0 91 64 154t155 63q43 0 80-14 37-15 67-41l78 79q-35 32-78 53t-93 28v122H427Zm362 27L41-796l75-75 748 748-75 74Z"}))),eA=B.forwardRef((e,n)=>At.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},At.createElement("path",{d:"M625-511q29 0 50-21t20-50q0-29-20-50-21-20-50-20t-50 20-20 50q0 29 20 50 21 21 50 21Zm-290 0q29 0 50-21t20-49q0-30-20-50t-50-21q-29 0-50 20-20 21-20 50 0 30 20 50 21 21 50 21Zm145 268q75 0 137-43t85-115H258q24 72 85 115 62 43 137 43Zm0 198q-90 0-170-34-79-34-138-93T79-310q-34-80-34-170t34-170q34-79 93-138t138-93q80-34 170-34t170 34q79 34 138 93t93 138q34 80 34 170t-34 170q-34 79-93 138T650-79q-80 34-170 34Zm0-435Zm0 322q134 0 228-94t94-228q0-134-94-228t-228-94q-134 0-228 94t-94 228q0 134 94 228t228 94Z"}))),Pf=B.forwardRef((e,n)=>At.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},At.createElement("path",{d:"M553-64v-108q107-27 173-113 67-87 67-197 0-109-67-195T553-789v-108q152 26 249 144 97 117 97 271 0 155-97 273T553-64ZM61-335v-290h176l236-237v764L237-335H61Zm492 28v-346q51 23 82 70t31 103-31 103q-31 47-82 70Z"}))),Tf=B.forwardRef((e,n)=>At.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},At.createElement("path",{d:"M807-15 700-123q-33 21-71 37-38 15-80 22v-108q20-4 38-12l35-17-153-154v257L234-335H57v-290h144L10-818l74-75L882-90l-75 75Zm37-264-80-79q13-30 19-60 7-31 7-64 0-109-68-195-67-86-173-112v-108q152 26 249 144 98 117 98 271 0 55-14 107-13 51-38 96ZM661-462 549-575v-78q51 23 83 70 31 47 31 103l-1 9-1 9ZM469-655 366-759l103-103v207Z"}))),tA={general:{primaryColor:"#42b0c5",secondaryColor:"#491d8d",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",showHeader:!0,showFooter:!0,showInputRow:!0,actionDisabledIcon:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2042%2042'%3e%3cpath%20style='fill:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke:%23b00000;stroke-opacity:1;stroke-miterlimit:4'%20d='M17%209a8%208%200%200%201-8%208%208%208%200%200%201-8-8%208%208%200%200%201%208-8%208%208%200%200%201%208%208Zm0%200'%20transform='rotate(.086)%20scale(1.77778)'/%3e%3cpath%20style='fill:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke:%23b00000;stroke-opacity:1;stroke-miterlimit:10'%20d='M14.66%2014.66%203.34%203.34'%20transform='rotate(.086)%20scale(1.77778)'/%3e%3c/svg%3e",embedded:!1,flowStartTrigger:"ON_LOAD"},tooltip:{mode:"CLOSE",text:"Talk to me! 😊"},chatButton:{icon:$u},header:{title:z.jsx("div",{style:{cursor:"pointer",margin:0,fontSize:20,fontWeight:"bold"},onClick:()=>window.open("https://github.com/tjtanjin/"),children:"Tan Jin"}),showAvatar:!0,avatar:qu,buttons:[mt.NOTIFICATION_BUTTON,mt.AUDIO_BUTTON,mt.CLOSE_CHAT_BUTTON],closeChatIcon:Sf},notification:{disabled:!1,defaultToggledOn:!0,volume:.2,icon:wf,iconDisabled:xf,sound:"data:audio/wav;base64,UklGRmaIAABXQVZFZm10IBAAAAABAAIAQB8AAAB9AAAEABAATElTVBoAAABJTkZPSVNGVA4AAABMYXZmNjAuMTYuMTAwAGRhdGEgiAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////AAAAAAAA//////7/////////AAABAAAAAgABAAEAAQAAAAIAAQABAP//AAD+////AAD+//7////+////AAD//wAA/v8AAAAA/v8AAP//AAAAAAAAAgD////////+////AAABAAEAAgD/////AQABAAAA//8CAP//AAAAAAAA/v8AAAAA//8AAAEA//8EAAAAAAAAAAAA//8BAP//AQABAAEA/////wEA/v///wAAAAACAAAAAAABAAAA//8AAP//AAACAP//////////AAAAAAEAAAAAAAEA//8AAAEAAQADAAIAAgAAAAAA/v///wEAAAAAAAEAAAAAAAEA//8AAAEAAQD//wAA//8AAAEAAAABAAEAAAABAP//AAD//wAAAgAAAP//AQD/////AAAAAP7/AgAAAAIAAAAAAAAAAAABAAAAAQABAP//AAABAP///v8AAP////8AAP//AAD//wAA//8BAP//AAD///7///8BAP7///8AAAIAAgABAAEA/v8AAP//AQADAAEAAAACAAEA/////////v///wEA/v////7/AAD+////AAAAAAAAAgAAAAAAAAD//wEAAAAAAAAAAQABAAIA/v8AAAAA//8AAAEAAAAAAP//AgD//wEA/////wAAAQACAAAAAAAAAP//AQD/////AQAAAAEA/v8AAAEAAQABAAEA///+////AQD//wEAAgD+//7/AAAAAAAAAQAAAAAAAQAAAAAAAAAAAP//AAD//wEAAQD//wAAAQABAP7///8AAP7/AAABAP7/AQABAAEAAAABAAEAAAD+/wIAAAABAAAAAQD/////AQACAP////8AAP//AQD//wEA/v8CAAEAAAAAAAAAAQAAAAIAAQAAAAEAAgD//wEAAAAAAP7///8BAP//AgAAAP///v8CAAAAAgD///////////7/AAACAAEAAgD//wAAAAABAP//AwAAAAMA//8AAAAAAQD+/wAAAAD//wAAAQD//wEA//8BAP7/AAABAAAA//8BAAAA//8AAP//AQADAP3////+////AgD+/////v8BAAEAAQACAAAAAAAAAAAA//8AAP//AAD+/wEA/v8AAP7/AAD//wAAAQACAAAAAQAAAP//AQAAAAAAAAABAAAAAAD+//////8AAAAAAAD//wAAAAABAAEA//8AAAEA//8AAP//AgD+/wAA///+/wAA/v///wAAAQABAAAAAQD//wAA//8AAAEA//8BAAAAAgABAP//AAACAAIAAQABAP//AAAAAAAA//8BAAIAAAABAAAA//8CAAEA/v//////AAAAAAEA////////AQAAAP//AAD//wAAAAAAAP3/AAAAAAEAAAACAAAAAAAAAP//AAD//wAAAAAAAAAAAAAAAP///v///wAAAAABAAAAAAD//wEAAAABAAEAAQD//wAAAAACAAAAAQD+/wAA//8BAAEAAAD+/wAA/////wAAAAABAAAAAAD//////v8AAAAA//8AAAAAAAAAAAIAAAABAAEAAAABAP7/AAD9//////////7///8BAP//AAD///3/AQABAP//AAD//wAAAAABAAAA//8AAP//AAD/////AQABAAEA//8AAAAA//8BAAMA//8AAAAA//8AAP7/AAD//wAAAAAAAP7/AQAAAAAA/v8CAP//AAABAAIAAQABAAAA//8BAAEAAQD///7/AQD//wAAAQABAP//AAD//wEAAAAAAAAAAQAAAAIA//8AAP////8AAP//AQD//////v///wEA/v8AAAIAAgACAAEAAAAAAAEAAAAAAAAAAAAAAAAAAQD//wAA/////wAAAQACAP////8AAAAAAAD//wAAAQD+/wEA//8AAAEAAwD//wEAAQAAAAAAAAABAP////8AAAAAAQAAAAAAAAAAAAEAAQAAAP////////7/AQABAAEAAQD///////8BAAAA//8AAAAAAgABAAEA/v8BAP7///8BAP3/AQABAAIAAAD//wEAAAAAAP//AAABAAIA//8CAAAAAQAAAAEA//8BAAAA/////wAAAAD//wEAAQD//wAAAAAAAP//AAAAAAAAAQABAAAAAQAAAP//AQD//////v8AAAEAAAAAAAAA//8AAAAAAAACAAEAAQAAAP//AAABAAEA/////wAAAgABAAAAAAAAAAEAAAABAP//AQABAP7////+/wEAAAAAAP//AAABAAAAAAABAAEAAAAAAAAA//8BAP///f/+/wEAAQD///7///8AAAAAAQAAAP////8AAAAAAAABAAAAAQD/////AAD//wEA//8AAAIA//8CAAAA//8AAAAAAAD+/wEAAAD+/wAA/////wAA////////AAAAAAAA//8BAAAAAAD//wAAAAD//wEA//8AAP//AQD+/wAAAAAAAP7/AAD+/wEAAQABAP//AAABAAEAAQD//wAA/////wEA//8AAAAAAgAAAAAA//8BAAAAAgAAAAAAAAAAAP7/AQD//wAAAAD+/wAAAAADAAIA/////wAAAQD//wIA//8BAAEA/v8AAAIAAAAAAP3///8AAAAAAAAAAAAAAAABAP///////wAA//8AAAEAAQABAAEAAQABAAAAAQAAAAAAAQABAP7/AQD//wAAAQABAAEA//8BAAAAAgAAAAEAAAABAP//AAD/////AAD//wIA/////wIAAAD///7/AAAAAAAAAAACAP//AAABAP////8AAAAAAAABAAAAAgAAAAAAAQD+/wEA/////wAA/////wAAAAAAAAAA/v//////AAAAAP//AAABAAAAAQAAAAIAAAACAAAA//8AAAAA//8AAP7/AAAAAP//AAACAP//AQABAP//AQABAAAA/////////v8AAP//AQAAAAAA///+/wAAAQD+/wEAAQAAAAEA/////wAAAQD//wAA//8AAAAA/v8BAAEA//8AAP7//v8BAAAAAAAAAAEA//8AAAEA/////wAAAAD//////////wEAAAABAAEA//8CAAEA/f8AAAAA//8BAAAABAABAAEAAQAAAAAAAAAAAP7///8AAAAA/v8BAAAA//8AAAIA//8AAP////8BAP//AAAAAAAAAAD/////AQD///7/////////AQD8////AgABAAIA////////AAD//wAAAAABAAAAAAAAAAEAAgAAAP//AQD//wAAAAAAAP/////+/wAAAAABAAAAAwABAP///////wEAAAADAP//AQACAAAA//8CAAEAAAAAAP///////wIAAAAAAAAAAQAAAAAAAgD//wEAAAABAAAA/v8AAAAAAAAAAAAAAAAAAAEA/v8AAP//AQD//wAA//////7///8AAAAAAAAAAP7/AQD//wAA//8AAAEAAAABAAEAAQD/////AAD//wEAAAD/////AQAAAAEAAAD//wEAAAD/////AgD//wAAAQD//////////wAAAAD//wAAAAABAAAAAAD//wAAAQD///7/AQD//wEAAAD/////AAD//wEA//8AAAEA//8CAAAAAQD//wEAAgAAAAEAAwAAAAAA/v8BAAEAAgD//wEAAAAAAAAAAAD//wEA//8AAAAAAQACAP///////wAAAQABAAEAAAAAAAEAAQD+/wEA/f////////8AAAAA//8AAAEA//8BAAAA/v///wEAAAAAAAEA/////wAAAAAAAP//AAAAAAIAAAABAAAA/////wAAAAD//wAA/v8AAAMAAQD+/wEAAAABAAEA//8BAP//AgAAAAAAAAD//wAA/////wEA/v8CAP3/AAACAP3/AQABAAAAAQACAAEA/v8AAAAA//8BAAAAAgAAAAAAAgACAAEA/v/9/wAAAQABAP7///8AAP//AgD+/////v8CAP////8BAP//AQACAAEAAQABAP//AAD///7/AAABAAEAAgD//wEA//8CAAEAAQABAAEAAAABAAAA/v8AAAEA/v8AAP//AAABAP//AQAAAAEAAgAAAAAA/v///wEAAQAAAAIAAAD/////AgAAAAEA/v8AAP7/AQAAAAAAAQAAAAEAAAACAAEA//8BAP////8AAAIAAAAAAP//AAAAAAIAAAAAAAAAAwABAP///v8BAAAAAAAAAP3/AAABAAEA/v////////////3//v8AAAAAAQABAAIAAAD+/////v8AAAAAAQABAAEAAQAAAP//AAAAAP//AQAAAP//AAABAAAAAAAAAAAA////////AAAAAP//AQD/////AAABAAEA//8CAP7///8AAP7//v8BAAEAAAD+/////////wEAAAAAAAAAAgD//wAAAQAAAP7/AQABAP//AQAAAAAAAAD/////AAACAP////8BAAAAAAD//wAA//8AAAEAAQABAAAAAAABAAAAAQD+/wEA/v8AAAEAAQD/////AAD//wAAAQABAP7//v//////AAACAAAAAAAAAAAAAAACAAAAAQAAAAAA//8BAP//AQD//wAA///+/wIAAQD//wAAAAD//wAA/v8AAP3///8AAAAAAAAAAAAA/f8AAAAA//8CAP7/AAD///7/AAAAAAAAAAD//wEAAAAAAAEAAAAAAAAA//8BAP////8BAP7///8CAAEA//8BAP3///////////8BAAAAAAAAAAEAAgD+//////8BAAMAAQADAAEAAAACAAAAAQD/////AAABAAMAAQAAAP//AQD//wAA//8AAAAA//8CAP7//////wAAAAAAAAIA/v8AAP//AAACAP//AwD//wAA//8AAP//AwD//wEAAQABAAEAAQACAAEAAAD//wAA//8AAAIAAAAAAP///////wAAAQD//wIA//8BAP7/AAD///////8AAAAAAAAAAAEAAAD//wAAAQD//wEA//8BAAAAAAD/////AgABAAIAAAABAAAAAAAAAP//AAAAAAAA//8AAAAAAAD/////AQAAAAAAAQD//wAA///+////AAAAAAEAAgABAAEAAAAAAP//AQAAAAAAAQD+/wAAAAABAAEAAAD/////AQABAP7///8AAAIAAAACAAAA//8AAP//AgACAAAA///+/wAAAAABAAAAAQAAAAEA/v8BAAEA//8CAP//AQD+/////v8AAAAAAAACAP//AAD+/wIA/v8BAAAAAAD/////AAAAAP7///8AAP7//////wEAAAABAAAAAAD//wAAAAAAAAAAAgACAAAAAAABAAAA/f8AAP7/AgAAAAEA//8BAAAAAAD///7/AQD//wAAAAAAAAEAAAAAAAEAAAAAAAAAAQAAAAAA//8AAAAAAAABAP///////wAAAgABAAEA//8AAP//AAACAP//AQABAAEA//8BAAAAAAABAAAA//8AAAEAAAAAAAIA/v8BAP//AQD//wEAAAABAAEAAQACAAEAAAAAAAEAAAABAAAAAAD/////AAABAAEA//8AAAAAAQABAP//AAAAAP//AAD/////AQD//wAAAAABAAEA//8BAAAA//8AAP///f/+/wAA/////wAAAQAAAAIAAAAAAAAAAAD+/wEA/f8CAAAA//8AAAEAAgAAAAMAAAABAAAAAAAAAP//AQAAAAAAAQABAAAAAQAAAP//AAAAAAAA//8AAAAAAAABAAAAAQAAAAAAAAABAAIAAAAAAP7/AQD//wAAAAD+////AAAAAAAAAAABAAAA/////wAA//8AAAAAAAD/////AgD//wAA//8CAP//AQACAAEA/f////////8BAAIAAQABAP//AAD//wAA///+////AAD+/wAAAQD/////AAAAAAAA/////wAAAAABAAAAAQAAAAAA//8AAAIAAAABAP//AQABAAEA//8AAAAAAAADAAEAAAABAP//AgD//wMA//8AAAAAAAD//wAAAAD9/wEA///+/wAA//8BAAEA//8BAAAA//8AAP///v8BAP///////////v8BAAAAAQABAAAAAAAAAAAA//8AAP7/AQAAAAAAAAAAAP7/AQAAAAAAAgABAAEAAAABAAEAAAAAAAAAAAD+/wAAAAD//wEAAAAAAAAAAAAAAP//AgABAAAAAAABAAEAAAD/////AAAAAP//AAABAP////8BAAAAAQABAP7//v/+////AQAAAAAAAQAAAAEAAgAAAAAAAQAAAAEAAAD+/////v8BAP//AAABAP//AQABAAAAAAD//wAA//8CAP//AAAAAAEAAAABAAAAAAAAAP//AAD+////AwAAAAAAAQD//wEAAAACAAEAAAADAAAAAAD/////AAAAAAEAAAABAAAA//8AAAEA//8BAP///v8AAP//AAD//wAAAQABAP//AQAAAAAA/////wEAAQAAAP////8AAAEA//8BAAAAAQAAAP////8AAAAAAQAAAAIAAQAAAAEAAAAAAAEAAAD//wEAAAAAAP////8AAAAA//8BAAEAAAAAAAIA///+/wIA/v8BAAAAAQACAAAAAQAAAP7///8AAP//AAAAAAEAAAAAAP7/AAD+////AAAAAAAAAAD//wAA/v8BAAMAAAABAAIAAgD//wAA//8BAAEA//8BAP7/AAAAAP7///8BAAAAAQAAAP7/AQD/////AAAAAAEAAAABAP//AQABAAAAAgABAAAAAAAAAP///////wEA//8AAAEA//8AAAAAAQAAAAIAAAABAP7//////wAAAQABAAAAAAABAAEA///+/wAA//8BAP///v8AAP///v8BAAAA//8CAAAAAQAAAAEAAQABAAAAAAD+/wAAAAD+/wAAAAAAAAAA/f////////8AAAAAAQABAP///////wEA//8BAAEAAAAAAAAA/////wEA/v//////AAAAAP//AAABAAAAAAD+/wAAAAD9////AQAAAAEAAwD//wEAAQAAAP//AgAAAAAAAAD+/wIAAAAAAAAAAAAAAAIA//8AAAEAAQACAAAAAQD//wAAAAD//wIAAQABAAAAAAD//wEA//8BAAEAAQAAAAAAAQABAP7/AAD//wEAAAACAP7/AQAAAAAAAAD//wIAAQACAAIAAQAAAAAAAAAAAP3///8BAAAAAQACAP//AgD9/wAAAAD//wEA/v////////8AAAAAAAD//wEAAQD//wMAAQAAAAEA//8AAAEA//8AAAAAAAACAAAAAAD//wAAAQD///////8AAAAA//8BAAIA/v8BAAEA/f8AAAAAAAAAAAAAAgD/////AAD+/wAAAAD//wAAAAAAAP//////////AgABAP///v8AAAIAAQAAAP//AAABAAAA/////wAAAAAAAAEAAAABAP///v///wIA//8BAAEAAQAAAAAA///+/wEAAAAAAAAA/////////v8BAP3/AAAAAAAAAAAAAAAA//8AAP//AAAAAP//AAABAAIAAAACAP////8DAAAAAAABAAAAAwABAP//AAABAP//AAAAAP////8BAAAAAgD//wAA///+/wAAAQD//wAA//8AAP7///8AAAAA/v8AAAAAAQD//wEA/v////////8AAAAAAQAAAP//AQACAAAAAAAAAP//AAD//wAAAAD//wAAAAD+/wAAAAAAAP//AQD//wAAAgAAAAAAAQABAAAAAwD+/wAAAAD///7/AQD//wIAAQAAAP//AAD//wAA//8CAAEAAAAAAAAA/////wAAAAD//wEAAQD///////8BAAAA//8BAAEAAAAAAAAA/v///wEAAAAAAAAAAAADAAAAAAAAAAAAAQABAAEAAAD+//7//v8AAP//AQAAAAAAAAABAAEAAgAAAAAAAQD//wAA/f8AAAAAAAABAAAAAQAAAAAAAAAAAAIA//8BAP///////wIA/////wAAAAABAAEA//8BAAAAAAD//wAAAQD//wEAAAAAAAIA/v8BAP//AAAAAAEAAAABAP//AAAAAAAAAQABAP7/AAABAAAAAQD//wIAAAAAAAEA///+/wAA//8AAP//AAAAAAAAAAABAP///////wIAAQAAAAEAAQAAAP7/AQAAAAAAAQAAAAAAAQD/////AQAAAAAA///+//7/AAD+/wEA//8AAAAA///+/wEAAAABAAIAAQABAAAA//8AAP//AAD//wAAAAD//wAAAAAAAP//AQAAAAAA////////AQAAAAAAAQD+////AQABAP7/AAD///7/AgD//wAAAAAAAP//AAAAAAEA//8BAAEAAgAAAAIAAAD//wEA/////wAAAQD///7/AQD//wEAAQD/////AAAAAAEAAgAAAAAAAQD//wEA//8AAP7//////wAA//8BAAEA//8BAAAAAQD/////AAABAP//AAACAP//AQAAAP//AAABAP////8AAAAAAAABAAEAAwABAAAAAgD//wAAAAD//wEAAAABAAAAAAABAAEA/////wAA//8AAAIAAAAAAAEAAQABAAEAAQABAP//AgAAAAAA//8BAP3//v///wAA//8AAAAAAQAAAP//AQD//wEAAAACAAIAAAABAAAA//8BAAEA//8BAP//AAAAAP//AQAAAAIAAAD//wAAAAAAAAEA////////AQAAAP//AQD//wAAAQD+/wEAAAABAP///v///wAAAAAAAP//AAAAAAIAAQD//wAAAgD+/wAAAAD//wAAAAABAP///P//////AAACAP////8AAAIAAAABAAAAAAAAAAAA//8AAAAAAQADAP//AQAAAAAAAAABAAEAAQAAAAAA/v8AAAAAAAD//wAAAQD//wAAAAD//wAA/v////////8CAAEA/v8BAP7/AAAAAAAA//8AAAEAAAD//wIAAQAAAAIAAQAAAAAAAAD///7/AQABAP//AAAAAP//AAACAAEA//8BAAAAAwAAAAAAAAD//wEAAAD//wAA///////////+/wAAAQABAAIAAAABAAEAAAD//wEAAAD/////AAD+/wIAAwABAAEA/v8BAAEAAAD//wAA//8AAP//AAAAAAEAAAAAAP//AAAAAAEAAQABAAEA/v///wAAAAD//wEAAAACAAAA/f/+/wAA/v///wAA//8AAAEAAQD///7/AAAAAAAAAAABAAAAAAACAAAAAAABAAAAAAABAP//AQD//wAA//8BAP7/AgABAAEAAQAAAAAAAQD//wEA/v8AAP////8AAP///////wIAAQD//wAAAAD//wAA/v///wAAAQD//wIA/////wEAAAAAAAIAAAABAAAAAAD//wEA//8AAAAA/////wAAAQAAAAAAAAD//wEAAQAAAAAAAAACAP///////wAAAgD//wAA/v8AAAIAAAAAAAEAAAABAP//AQABAAEAAQAAAP///v8BAAEAAAAAAP////8AAAAAAQD//wIAAQAAAAEAAAAAAAAA//8BAP//AAAAAP7//v///wEAAAAAAAIAAAAAAP//AAD//wEA//8BAAAAAAABAAEAAAABAP7///8AAAIAAAABAP//AAD//wEAAAAAAP//AAAAAAEAAAAAAAAAAAAAAP7/AQD//wAAAQD+/wEA/v8BAP7/AAABAAEAAAACAAIAAAADAAAA//8AAAEAAAABAP//AQD//wIA/////wEA//8AAAEA//8AAAEAAAAAAAAAAQABAAAAAAAAAAAAAAD//////////wAA//8AAP7/AAD+/wAAAQAAAAAA/////wAABAAAAAAA//8AAAEAAAAAAAAA/v8AAP//AAAAAAAAAAD//wAAAAD///////8BAAEAAAD/////AgABAAEA/v/+/wAAAQACAAEAAAD//wAAAwABAP//AgD+/wAA/v8AAAAAAAAAAAEA//8AAAEAAAD+/wEAAAAAAAEAAgAAAAEAAAABAP//AQD+/wIA/////wAAAQD//wAAAQD+/wAAAQABAAAA////////AAACAAAAAQAAAAIA//8BAP///v///wEA//8BAAEAAQD+/wAAAQD9/wAAAQAAAAEAAAABAAAAAgAAAP//AAD+/wAA/f8AAAAA////////AgAAAAcAAQD7/wEA/f8AAAIA//8GAP7//v/+//b/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+P/F//z/rv/i/7r/6v/Z/wYABwAoADAAKQBOABkATAD0/zQA1P8PANv/0//v/6//FwCi/ywAxP8oAPn//v82APT/WwD4/00A+/8yAPv//f/8/83/+v+w/+T/sf/j/9b/AQACACoAIgAtAEIAHwBPAAEAQADe/xcA0v/k/+X/t/8IAKv/IgC//yEA6/8EACMA9/9PAPf/VAD+/zcA+/8JAPn/1P8AALf/6f+w/+P/zf////j/HAAdAC0APgAfAEsABwBCAOP/IADV/+//2v/B//3/rP8PALv/GADd/xEAFgABAEMABABaAP//QgACABcA+//n/wAAwP/w/67/4v+///3/6f8WABcAKQA0ACIARgAQAEcA8f8pANn/9f/U/87/7f+v/wgAtP8RANP/FgANAAIAOQACAFQA/f9HAAAAIAABAO3//P/E/wEAs//q/7n/9P/i/wYAEQAZADEAJABBABMASAAAADEA3/8CANL/1v/g/7H/AACy/w8Axf8ZAPv/CQAzAAIAVQD//1AAAAAsAAIA9v/7/8r/AwC2//P/tf/m/+H/AwADABEAKQApADoAHgBHAAgAPADr/wkA1//f/93/vP/6/7L/CgDA/x4A7/8hACkAAgBPAPz/UgD1/zIABAAEAPz/0v/5/7f/AACy//H/2f/+/wEAAAAkABUAMwAdADoAEQA9APD/EADU//L/1P/H/+z/tf8LALv/HADk/ygAGgADAEMA//9TAPn/QAAAABAAAQDc//z/wf8DALD/7P/Q//z/9/8HABoAFgA3ACMAMAAOADwA+P8ZANv/+P/Y/9H/5v+8/wUAu/8WANf/HgAMAAoAPQABAFMA/f9HAP7/HwAEAN//+v/H/wMAs//2/8r/8//y/wMADgAQAC4AIwAyABMAJwD8/xcA3v8LANP/5v/f/8j/AgC4/w4A1P8eAAQACgAxAAEAUgD+/0gA/v8nAAIA8f/5/8r/BAC6/+3/wP/l/+b/AQAIABkAIwArAC4AIAAoAAkAGADj/w0A0f/r/9//0P8DAL3/CgDN/xkA//8IACUAAgBJAAAATwD+/ysAAQD7//3/z/8DAMT/+f/K/+L/5P/1////EgAcACYALgApAC4ACwAcAPL/EADZ//L/1f/U//f/uv8KAMX/DwDu/wcAHwADAEUABgBNAAEANQAAAAYAAQDf////xf/+/9P/4f/b//X/9v8LAA4AGAAlACoAMAAQABkA9v8TAOL/+f/W/9r/8f/I/wcAxP8MAOr/BwATAAQAOAAGAEcAAABCAAEADwAEAOP//v/F/wIAzf/o/93/8P/s/w4ACwAZACEAKgAyABMAIQD5/xgA6v8DANb/4P/y/9H/AQDJ/wkA4/8DAAoA/f8wAAQAQwABAEAA//8VAAIA7P/+/8r/BADP/+v/2v/s/+n/CwAIAA0AHAAjADQAHAAkAP//GQDy/wQA5v/i//b/0P/7/8f/AADh/wMAAAD+/yUAAAA7AAEAOAAAABwAAAD6/wAA1/8CAMr/AADb/+3/5f8BAAIACAAVABcALwAfACgA+/8XAPn/DgDe/+//7v/Q/wMAz/8JAOP/CwDx////EAAHADEAAQArAAIAHQAEAAcAAADr/wEAzv8CANj//f/k/wEA+f/+/xQABwAqAB4ALAD+/x4A8P8SAOb/8//f/9j//f/N/wEA3v8LAO7/AgAMAAQALAAEAC0AAQAdAAQADwABAPP/BADV/wMA0/8AAOH/AQD1/wAAEAADACQAGwAwAAQAHwD0/xUA8f/4/+L/2//7/8z/AwDc/woA6f8AAAQAAwAoAAcANAAAACcAAgAUAAEA+P8CANv/AgDR/wEA4v8BAOz/AgAIAPv/JAAVADMAFAAhAPP/GQDz//7/3P/l/+3/z/8BANf/CgDn/wkA/P///xoABwAwAAIAJwACABcAAwABAAIA4f8BAND/AgDd//3/6P8CAAYA/f8YAAwALwAZACUA9v8bAPj/AwDq/+r/7P/S//7/1/8EAOX/CQD6//7/GQAFAC8AAQApAAEAGQACAAMAAgDm/wEAzv8BANv//v/p/wIA//8BABMABQArACAALAABAB4A8f8NAOv/7v/m/9n/+P/R/wMA4f8OAPT/AQATAAMAKwAHACoAAwAbAAMABQADAO7/AQDU/wEA2f8AAOL////3////EgAAACUAGgAvAAUAHQD2/xIA9f/0//T/3P/4/8///f/h/wIA7f8AAAoAAQApAAQALQADACAAAgAPAP//9P///9r//f/T/wAA3f/9//D/AQAQAP//HAAHAC8ACQAfAPv/GAD+//f/+P/j/wEA0v/+/9n/AADq/wIABgD//x0AAQAuAAEAIwAAABQAAwD8/wEA3/8AAM//AADe////7f8BAAwA//8ZAAMALwAAACEA//8dAP3//v/9/+n////U//z/1v8BAOT/AAD+/wAAGwD+/ywA/v8kAAIAGAD///3////q/wEA0P///97/AADk/wAABAAAABUAAQAqAAEAKQAAABwAAAAFAP//6f8AANr////X/wAA4/8AAPj/AgAUAAAAKgD//ywAAAAcAP7/AQAAAOv/AADU/wAA2v8CAOP/AAABAAAAFgABABsAAAAqAAEAHwAAABQAAgDv/wEA3v///9H////f////7/8BAAoAAQApAAAALgD//yEAAQAIAAAA8P8BANr//v/V////4f8AAPf//v8UAAAAFAAAACYAAQAhAP7/GwD+//T/AADo/wIA1v8CANr/AgDp/wEABgAAAB8AAQAsAAEAJAAAAAwA///z/wEA3/8AANT/AADh/wEA9P///xQAAgASAAAAJQAAACEAAAAaAP//+v8BAOj////W////2P8BAOf///8DAAAAHwAAAC4AAAAlAAAAEgAAAPL/AQDm////0f8CAN3/AADr//7/EQD//xAAAQAhAAIAJQAAAB8AAAABAP//6v8CAN//AQDX/wAA4/8AAPr/AAAXAAAAKgABACgAAAAbAP///f8AAOj/AADU/wAA2v///+f/AQANAAMAEQD+/xwA/v8kAP7/IQABAAgA/v/p////5/8AANf/AQDd/wEA8v8BABMAAQAjAAAALgAAACAAAQADAAEA7f8BANn/AgDY//7/4P/+/wEAAAAXAAIAFAAFACUA/P8jAP//EgAAAO//AQDo////1/8AAN3/AADx//7/DgAAAB0AAQAoAAAAIwAAAAoAAQDv/wMA4f8AANn/AQDi/wEA+v///xgAAAAQAP3/IwD//yUA/v8XAAAA7/8AAOv/AADc/wAA3P/+/+v/AQALAAEAGgACACkAAAAkAP7/EAABAO/////q//7/1/8AANz/AgDw/wEAEgD//w8AAAAcAAIAJQAAAB0AAAD2////7P8AAOP/AgDa/wAA5P8BAAQAAQAWAAAAIgAAACMAAAAaAP//+P///+v/AQDZ/wAA2////+7/AAARAAAADgAAABYAAAAhAAAAIAABAPz/AQDt/wAA5P8AANr/AQDg/wEA/P8BABcAAAAhAP//KQD//xwAAAD8/wEA7v8AAN3////Z/wAA6f8BAA0AAAARAAEAEQAAACMAAAAgAAEA/f8CAO3/AADv/wAA3v8BANv////1////EgAAABkA//8nAAAAIgAAAAMAAADu/wAA6P8CANn/AQDg////BQD//xMAAQAOAP//IAABACYAAAAGAAAA6f////H/AADg/wEA2f8AAO3///8PAAAAFQACACQAAAAkAAEADQABAO//AADp/wAA2////9z/AQD7/wEAFgAAAAwAAQAXAP7/JQD9/xMAAADx/wAA8f8AAOr/AADc/wEA4/8BAAkAAAAVAAAAIQD//yYA//8UAAEA9P8BAOz/AADf/wAA3P8AAPP/AAAQAAAADQABAA0AAAAlAAEAGAD///H//v/0/wEA7v8CAN//AADg//3/BAACABUAAQAfAAAAJwABABgAAQD0//7/7f///+L/AADa/wIA8P///w4A//8SAAMACQAAACAAAQAgAP//+v////P////y/wEA4/8BANr/AQD9/wAAEwD//xkAAQAjAAAAIgABAPz////s/wAA6v8BANX/AQDr//7/BwABABMAAAAHAP//FwAAACYAAAD//wEA9P8BAPb/AQDu////2v8BAPn/AAATAP//FwD//yEAAAAjAAAAAgAAAOn/AQDr//7/2P8CAOT/AAABAP//FgABAAUAAQATAP//IwAAAAEAAgDy/wEA9/8AAPb/AADb/wAA6/8BABAAAAATAP7/IQAAACYA//8UAP//7/8AAPD/AADd/wEA3P/+//7///8OAAAACgAAAAgAAAAhAP//CQACAPT/AQD2/wAA9v///97////m/wIADgABABMAAQAfAP//JwAAABMAAADw/wAA8P///+r/AQDb/wAA9f8AAA8AAAARAAIABAD//wYA/v8HAAAAAQD//wMAAgAGAAAA7f8AAOz/AAALAP//DwACABQA//8bAAAAHgD///f/AADq/wEA6/8BANj//v/t/wAACAD+/xAAAgAEAAAABAABAAcAAQADAAAA//8AAAUA///1/wAA5f///wIAAAAOAAAAEAAAABsAAAAhAAAA/v8BAOj////y////3f8AAOf/AQAGAAEADAAAAAcA//8BAP//CQABAAMA//8BAP//BQAAAAAAAADo/wAA+/8AAAoAAAALAAAAFAAAACAAAQAGAAIA7f8BAPH/AADm/wMA3P8CAP7/AgASAP//CgD//wAAAAAIAP//BQD//wEAAAACAP7/BAAAAPz/AwD8////BAAAAAEA//8HAAAAHQAAAAgA/v/x//7/8f///+f/AQDg/////P///woAAAAMAP//AAABAAYA//8EAAAAAgAAAAUAAAACAAAAAwAAAAIAAAABAAAAAQABAAAAAgAcAP//DgD///T/AQDx/wAA9P8CAOH/AAD3/wAACQAAAAoAAQABAP//AwAAAAcAAAD+/wAAAgACAAEAAAD+////AwD+/wAAAAABAP//+v8BABEAAQATAAAA9f/+//L//f/z/wIA6f8AAPb/AQAFAP//DAAAAAAAAAAFAP//BQD//wEA//8DAAEAAQAAAP7///8AAAAA//8BAAIAAAD+/wAAEAABABYAAgD6/wEA8v8BAPX/AwDp/wAA8////wMA//8JAAEABAABAAEA//8FAAEA//8AAAMAAQACAP//AQAAAAEAAgAFAP//AQABAAAAAQAAAP//EQABAAAAAAD5/wEA+P8AAPr////6/wAA+/8BAAIA//8BAAAA//8CAAUA//8BAP7/AAABAAEAAgAAAAAAAwAAAAEA/v8DAAIAAAACAAQA//8TAAAA/P8BAPr////3//////8AAPz/AQD7/wEAAgD/////AAABAAEABAAAAP//////////AAAAAAAAAAADAAAAAwAAAAAA//8EAP///v/+/xAA//8HAAAA+/////j/AQD8////AAD///n///8AAAAA//8AAP////8DAP//AgAAAAAAAAACAAIAAAD+/wAAAQD//wAA/////wIAAgD9////CQACAAYA///9////+f8BAPr/AQAAAAIA/v///wAA//8AAAAAAAAAAAEAAAABAAAAAgAAAAEAAAAAAAEAAQABAAAAAgABAP//AAD//wEAAAD///////8BAAIAAQAAAAAA/v/+//////8BAAAAAQABAP//AAD///////8BAAAAAQABAP////8CAAEAAQD//wEA/v//////AQAAAAAAAAAAAAAAAAD9/wMA/////wAAAQD+/wEA/v/+//7/AQD//wMAAAAAAAAAAAABAAEA//////7/AAACAP3/AAD//wAAAQAAAP//AQD//wAAAAAAAAEA//8CAP//AAAAAAAA/v8AAAAA//8BAP//AAABAP//AAAAAP//AQD//wAAAQABAAAAAAABAAEA/v///wAAAAD//////////wAAAAAAAP//AAD////////8/wIAAAADAAEA/////wEA/v8BAP7/AgAAAAEAAgAAAP//AgD/////AQD//wEA//////7/AQD//wMAAAAAAAAA//8CAP//AQAAAP//AAACAAAAAAABAP//AQD+/wAA/////wAA/f///wAAAAAAAP7/AAAAAAAAAgD//wEAAQACAP//AAAAAAEAAQD//wAAAAAAAAAA//8BAAMA/v8AAP7/AQAAAAAAAQAAAAAA///+//7/AAAAAAAA//8BAP7/AQAAAP//AQABAAAAAQAAAP//AAD//wIA/v///wAAAQABAP//AAD//wEA//8BAP//AgAAAP///////wAAAQABAP//AwABAAAAAAAAAAAA/////wIAAwACAAAA/v8BAAAAAAAAAAAA//8AAP////8AAAAA/////wAA/////wEA/v8CAAEAAQD//wAAAAABAAAAAAD//wEAAQABAAAA//8CAAAAAAAAAP7/AAABAAAAAQABAAAAAgABAAAAAQD//wEAAwD+/wAA/v8AAAEAAAAAAAAAAAAAAAEAAAD//wMA/v///wAAAAACAAEAAAAAAP7///8DAAEAAQD//wEA/f8BAAEAAQD//wEAAQABAAMAAgAAAAEA//8AAP//BAAAAAIA/v//////AQABAAAAAAD//wEAAAACAAIAAQAAAAAAAgAAAAAAAAABAAIAAAABAAIAAQAAAP////8AAAAAAAD//wAAAQACAP//AAAAAAAAAQAAAAEA//8AAAAAAAD/////AQD//wAAAQD9////AQAAAAAA//8BAAAA///+/////v8BAAAAAQAAAAAAAAAAAAIA//8BAAAAAAACAP//AQD//wAAAAD/////AAD9/wAAAAACAAAAAgAAAAEAAQABAAEAAAAAAAEA//8AAAEAAQACAAAAAQAAAAEA//8BAAIAAAACAP//AAABAAAAAAAAAAAAAAD//wAAAQD/////AAAAAP////8AAAEAAAAAAP7///8BAAIAAQD//wEAAQAAAP//AgAAAAAAAAD//wAA//8CAP7/AQAAAP7/AAD+////AAAAAAAAAQABAAAA//8AAAEAAAABAP7/AAAAAP7/AAD+/wAAAQABAAEA/////////v8BAP///v///wIAAAAAAAAAAQAAAAIAAQAAAAAAAAABAAEAAAAAAAAAAAD//wEAAQD//wAAAQABAAAA/v/+/////////wAAAAD//wAAAAD/////AAAAAP7/AAD//wIA//8CAP//AQAAAP////8AAAAAAQABAP////8AAP//AQACAAAAAQAAAAAAAAAAAAAA//8BAAAAAAD+/wAA/v///wEAAAD+//7///8CAP7/AAABAP3/AwAAAAAAAAABAAIAAAABAAAAAQABAAIAAAAAAP//AAAAAAEAAAACAAEAAAACAAAAAAABAAAAAwAAAAAAAAD+/wAAAQD9//////8BAAAA/v8AAAAAAAAAAAAAAAD//wMA/v8BAAEAAQACAAAA/v8BAP//AwABAAIAAQABAP//AQAAAAEAAAAAAAEA//8AAAAAAAD/////AAABAAEAAAAAAP////8AAAAAAAAAAAAA/v8AAP//AQAAAP//AAABAAIAAQAAAAAAAgABAAAA/////wAAAQABAP//AQABAAEA/////wAAAAAAAAAAAAABAAEAAQAAAAAAAAAAAAAA//8AAP7/AQD9/wAAAgD//wEAAQABAAEA/v8AAAEA/////wAAAAAAAP//AAABAAAAAAAAAAAA//8CAP//AAABAAEAAQABAAAA//8BAAIAAgD//wAA/v8AAAEAAAD///7/AAAAAAEAAAABAAAAAQABAAAAAQACAAAA///+/wAAAQABAP7////+/wAA//8AAAAAAgAAAP//AQD9/wAAAAD//wAA//8AAAAAAQAAAAAAAQD//wAAAAAAAP//AQABAAAA/v8CAP//AAD///////8AAAAAAAACAAEA//8BAP7/AAAAAAEA//8BAAAAAQD//wAAAQD+/wAA/////wAAAAD//wAAAQABAAAA//8AAAEA/////wAA//8AAAAA/v/+/wEAAgABAP//AgD//wIA/////wAA//8AAAEAAQAAAAAAAQAAAAMAAAACAP//",showCount:!0},audio:{disabled:!0,defaultToggledOn:!1,language:"en-US",voiceNames:["Microsoft David - English (United States)","Alex (English - United States)"],rate:1,volume:1,icon:Pf,iconDisabled:Tf},chatHistory:{disabled:!1,maxEntries:30,storageKey:"rcb-history",storageType:"LOCAL_STORAGE",viewChatHistoryButtonText:"Load Chat History ⟳",chatHistoryLineBreakText:"----- Previous Chat History -----",autoLoad:!1},chatInput:{disabled:!1,allowNewline:!1,enabledPlaceholderText:"Type your message...",disabledPlaceholderText:"",showCharacterCount:!1,characterLimit:-1,botDelay:1e3,sendButtonIcon:kf,blockSpam:!0,sendOptionOutput:!0,sendCheckboxOutput:!0,buttons:[mt.VOICE_MESSAGE_BUTTON,mt.SEND_MESSAGE_BUTTON]},chatWindow:{showScrollbar:!1,showTypingIndicator:!0,autoJumpToBottom:!1,showMessagePrompt:!0,messagePromptText:"New Messages ↓",messagePromptOffset:30,defaultOpen:!1},sensitiveInput:{maskInTextArea:!0,maskInUserBubble:!0,asterisksCount:10,hideInUserBubble:!1},userBubble:{animate:!0,showAvatar:!1,avatar:"data:image/svg+xml,%3csvg%20width='140'%20height='140'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cy='60.044'%20cx='70'%20fill='%235c5c5c'%20r='29'/%3e%3cpath%20d='m16.36%20156.186-.01-30.5c-.005-16.844%2024.168-30.507%2053.991-30.516%2029.823-.009%2054.004%2013.64%2054.01%2030.484l.008%2030.5-108%20.032z'%20fill='%235c5c5c'/%3e%3c/svg%3e",simulateStream:!1,streamSpeed:30},botBubble:{animate:!0,showAvatar:!1,avatar:qu,simulateStream:!1,streamSpeed:30},voice:{disabled:!0,defaultToggledOn:!1,language:"en-US",timeoutPeriod:1e4,autoSendDisabled:!1,autoSendPeriod:1e3,sendAsAudio:!1,icon:Ef,iconDisabled:Cf},footer:{text:z.jsxs("div",{style:{cursor:"pointer",display:"flex",flexDirection:"row",alignItems:"center",columnGap:3},onClick:()=>window.open("https://react-chatbotify.com"),children:[z.jsx("span",{children:"Powered By "},0),z.jsx("div",{style:{borderRadius:"50%",width:14,height:14,display:"flex",justifyContent:"center",alignItems:"center",background:"linear-gradient(to right, #42b0c5, #491d8d)"},children:z.jsx($u,{style:{width:"80%",height:"80%",fill:"#fff"}})},1),z.jsx("span",{style:{fontWeight:"bold"},children:" React ChatBotify"},2)]}),buttons:[mt.FILE_ATTACHMENT_BUTTON,mt.EMOJI_PICKER_BUTTON]},fileAttachment:{disabled:!1,multiple:!0,accept:".png",icon:Zu,iconDisabled:Zu,sendFileName:!0,showMediaDisplay:!1},emoji:{disabled:!1,icon:eA,iconDisabled:eA,list:["😀","😃","😄","😅","😊","😌","😇","🙃","🤣","😍","🥰","🥳","🎉","🎈","🚀","⭐️"]},toast:{maxCount:3,forbidOnMax:!1,dismissOnClick:!0},event:{rcbPreInjectMessage:!1,rcbPostInjectMessage:!1,rcbStartSimulateStreamMessage:!1,rcbStopSimulateStreamMessage:!1,rcbStartStreamMessage:!1,rcbChunkStreamMessage:!1,rcbStopStreamMessage:!1,rcbRemoveMessage:!1,rcbLoadChatHistory:!1,rcbToggleChatWindow:!1,rcbStartSpeakAudio:!1,rcbToggleAudio:!1,rcbToggleNotifications:!1,rcbToggleVoice:!1,rcbChangePath:!1,rcbShowToast:!1,rcbDismissToast:!1,rcbUserSubmitText:!1,rcbUserUploadFile:!1,rcbTextAreaChangeValue:!1,rcbPreLoadChatBot:!1,rcbPostLoadChatBot:!1,rcbPreProcessBlock:!1,rcbPostProcessBlock:!1},ariaLabel:{chatButton:"open chat",audioButton:"toggle audio",closeChatButton:"close chat",emojiButton:"emoji picker",fileAttachmentButton:"upload file",notificationButton:"toggle notifications",sendButton:"send message",voiceButton:"toggle voice",inputTextArea:"input text area"},device:{desktopEnabled:!0,mobileEnabled:!0,applyMobileOptimizations:!0}},nA=B.createContext({settings:{},setSyncedSettings:()=>null,syncedSettingsRef:{current:{}}}),Ne=()=>B.useContext(nA),Df=({children:e,settings:n=tA,setSyncedSettings:i,syncedSettingsRef:a})=>z.jsx(nA.Provider,{value:{settings:n,setSyncedSettings:i,syncedSettingsRef:a},children:e}),rA={tooltipStyle:{},notificationBadgeStyle:{},chatWindowStyle:{},headerStyle:{},bodyStyle:{},chatInputContainerStyle:{},chatInputAreaStyle:{},chatInputAreaFocusedStyle:{},chatInputAreaDisabledStyle:{},userBubbleStyle:{},botBubbleStyle:{},botOptionStyle:{},botOptionHoveredStyle:{},botCheckboxRowStyle:{},botCheckboxNextStyle:{},botCheckMarkStyle:{},botCheckMarkSelectedStyle:{},characterLimitStyle:{},characterLimitReachedStyle:{},chatHistoryLineBreakStyle:{},chatMessagePromptStyle:{},chatMessagePromptHoveredStyle:{},footerStyle:{},loadingSpinnerStyle:{},mediaDisplayContainerStyle:{},chatButtonStyle:{},chatButtonHoveredStyle:{},chatHistoryButtonStyle:{},chatHistoryButtonHoveredStyle:{},sendButtonStyle:{},sendButtonHoveredStyle:{},sendButtonDisabledStyle:{},audioButtonStyle:{},audioButtonDisabledStyle:{},closeChatButtonStyle:{},emojiButtonStyle:{},emojiButtonDisabledStyle:{},fileAttachmentButtonStyle:{},fileAttachmentButtonDisabledStyle:{},notificationButtonStyle:{},notificationButtonDisabledStyle:{},voiceButtonStyle:{},voiceButtonDisabledStyle:{},chatIconStyle:{},audioIconStyle:{},audioIconDisabledStyle:{},closeChatIconStyle:{},emojiIconStyle:{},emojiIconDisabledStyle:{},fileAttachmentIconStyle:{},fileAttachmentIconDisabledStyle:{},notificationIconStyle:{},notificationIconDisabledStyle:{},voiceIconStyle:{},voiceIconDisabledStyle:{},sendIconStyle:{},sendIconDisabledStyle:{},sendIconHoveredStyle:{},rcbTypingIndicatorContainerStyle:{},rcbTypingIndicatorDotStyle:{},toastPromptContainerStyle:{},toastPromptStyle:{},toastPromptHoveredStyle:{}},oA=B.createContext({styles:{},setSyncedStyles:()=>null,syncedStylesRef:{current:{}}}),rt=()=>B.useContext(oA),If=({children:e,styles:n=rA,setSyncedStyles:i,syncedStylesRef:a})=>z.jsx(oA.Provider,{value:{styles:n,setSyncedStyles:i,syncedStylesRef:a},children:e}),Bf=({buttons:e})=>{var n,i,a,o,u,f,A;const{settings:c}=Ne(),{styles:d}=rt(),h={backgroundImage:`linear-gradient(to right, ${(n=c.general)==null?void 0:n.secondaryColor},
106
- ${(i=c.general)==null?void 0:i.primaryColor})`,...d.headerStyle};return z.jsxs("div",{style:h,className:"rcb-chat-header-container",children:[z.jsxs("div",{className:"rcb-chat-header",children:[((a=c.header)==null?void 0:a.showAvatar)&&z.jsx("div",{style:{backgroundImage:`url("${(o=c.header)==null?void 0:o.avatar}")`},className:"rcb-bot-avatar"}),B.isValidElement((u=c.header)==null?void 0:u.title)?(f=c.header)==null?void 0:f.title:z.jsx("div",{style:{margin:0,fontSize:20,fontWeight:"bold"},children:(A=c.header)==null?void 0:A.title})]}),z.jsx("div",{className:"rcb-chat-header",children:e==null?void 0:e.map((v,y)=>z.jsx(B.Fragment,{children:v},y))})]})},aA=B.createContext({}),St=()=>B.useContext(aA),Mf=({children:e,botIdRef:n,flowRef:i})=>{const a=B.useRef(null),o=B.useRef(""),u=B.useRef(null),f=B.useRef(new Map),A=B.useRef(null),c=B.useRef(""),d=B.useRef(!1),h=B.useRef(null),v=B.useRef(null),y=B.useRef(null);return z.jsx(aA.Provider,{value:{botIdRef:n,flowRef:i,inputRef:a,timeoutIdRef:u,streamMessageMap:f,chatBodyRef:A,paramsInputRef:c,keepVoiceOnRef:d,audioContextRef:h,audioBufferRef:v,gainNodeRef:y,prevInputRef:o},children:e})},bn=e=>{const[n,i]=B.useState(e),a=B.useRef(e);return[n,o=>{const u=typeof o=="function"?o(a.current):o;a.current=u,i(u)},a]},iA=B.createContext({}),Ct=()=>B.useContext(iA),Rf=({children:e,settings:n})=>{var i,a,o,u,f,A;const[c,d,h]=bn(!1),[v,y,k]=bn(((i=n==null?void 0:n.chatWindow)==null?void 0:i.defaultOpen)??!1),[C,R,E]=bn(((a=n==null?void 0:n.audio)==null?void 0:a.defaultToggledOn)??!1),[T,Q,M]=bn(((o=n==null?void 0:n.voice)==null?void 0:o.defaultToggledOn)??!1),[U,j,N]=bn(((u=n==null?void 0:n.notification)==null?void 0:u.defaultToggledOn)??!0),[W,ee]=B.useState(!1),[G,Y]=B.useState(!1),[Z,$,ae]=bn(!1),[ie,le,be]=bn(!0),[he,me,L]=bn(!1),[Be,F]=B.useState(!1),[ve,fe]=B.useState(!1),[ce,ge]=B.useState(0),[ye,De]=B.useState(0),[Fe,Re]=B.useState(!1),[Ue,Je]=B.useState(((f=window.visualViewport)==null?void 0:f.height)??window.innerHeight),[Dt,Ke]=B.useState(((A=window.visualViewport)==null?void 0:A.width)??window.innerWidth);return z.jsx(iA.Provider,{value:{isBotTyping:c,setSyncedIsBotTyping:d,syncedIsBotTypingRef:h,isChatWindowOpen:v,setSyncedIsChatWindowOpen:y,syncedIsChatWindowOpenRef:k,audioToggledOn:C,setSyncedAudioToggledOn:R,syncedAudioToggledOnRef:E,voiceToggledOn:T,setSyncedVoiceToggledOn:Q,syncedVoiceToggledOnRef:M,notificationsToggledOn:U,setSyncedNotificationsToggledOn:j,syncedNotificationsToggledOnRef:N,isLoadingChatHistory:W,setIsLoadingChatHistory:ee,hasChatHistoryLoaded:G,setHasChatHistoryLoaded:Y,isScrolling:Z,setSyncedIsScrolling:$,syncedIsScrollingRef:ae,textAreaDisabled:ie,setSyncedTextAreaDisabled:le,syncedTextAreaDisabledRef:be,textAreaSensitiveMode:he,setSyncedTextAreaSensitiveMode:me,syncedTextAreaSensitiveModeRef:L,hasInteractedPage:Be,setHasInteractedPage:F,hasFlowStarted:ve,setHasFlowStarted:fe,unreadCount:ce,setUnreadCount:ge,inputLength:ye,setInputLength:De,blockAllowsAttachment:Fe,setBlockAllowsAttachment:Re,viewportHeight:Ue,setViewportHeight:Je,viewportWidth:Dt,setViewportWidth:Ke},children:e})};var we=(e=>(e.START_SPEAK_AUDIO="rcb-start-speak-audio",e.TOGGLE_AUDIO="rcb-toggle-audio",e.TOGGLE_NOTIFICATIONS="rcb-toggle-notifications",e.TOGGLE_VOICE="rcb-toggle-voice",e.TOGGLE_CHAT_WINDOW="rcb-toggle-chat-window",e.PRE_INJECT_MESSAGE="rcb-pre-inject-message",e.POST_INJECT_MESSAGE="rcb-post-inject-message",e.START_SIMULATE_STREAM_MESSAGE="rcb-start-simulate-stream-message",e.STOP_SIMULATE_STREAM_MESSAGE="rcb-stop-simulate-stream-message",e.START_STREAM_MESSAGE="rcb-start-stream-message",e.CHUNK_STREAM_MESSAGE="rcb-chunk-stream-message",e.STOP_STREAM_MESSAGE="rcb-stop-stream-message",e.REMOVE_MESSAGE="rcb-remove-message",e.LOAD_CHAT_HISTORY="rcb-load-chat-history",e.CHANGE_PATH="rcb-change-path",e.SHOW_TOAST="rcb-show-toast",e.DISMISS_TOAST="rcb-dismiss-toast",e.USER_SUBMIT_TEXT="rcb-user-submit-text",e.USER_UPLOAD_FILE="rcb-user-upload-file",e.TEXT_AREA_CHANGE_VALUE="rcb-text-area-change-value",e.PRE_LOAD_CHATBOT="rcb-pre-load-chatbot",e.POST_LOAD_CHATBOT="rcb-post-load-chatbot",e.PRE_PROCESS_BLOCK="rcb-pre-process-block",e.POST_PROCESS_BLOCK="rcb-post-process-block",e))(we||{});const Of={[we.START_SPEAK_AUDIO]:!0,[we.TOGGLE_AUDIO]:!0,[we.TOGGLE_VOICE]:!0,[we.TOGGLE_NOTIFICATIONS]:!0,[we.TOGGLE_CHAT_WINDOW]:!0,[we.PRE_INJECT_MESSAGE]:!0,[we.POST_INJECT_MESSAGE]:!1,[we.PRE_LOAD_CHATBOT]:!0,[we.POST_LOAD_CHATBOT]:!1,[we.START_SIMULATE_STREAM_MESSAGE]:!0,[we.STOP_SIMULATE_STREAM_MESSAGE]:!1,[we.START_STREAM_MESSAGE]:!0,[we.CHUNK_STREAM_MESSAGE]:!0,[we.STOP_STREAM_MESSAGE]:!0,[we.REMOVE_MESSAGE]:!0,[we.LOAD_CHAT_HISTORY]:!0,[we.CHANGE_PATH]:!0,[we.SHOW_TOAST]:!0,[we.DISMISS_TOAST]:!0,[we.USER_SUBMIT_TEXT]:!0,[we.USER_UPLOAD_FILE]:!0,[we.TEXT_AREA_CHANGE_VALUE]:!0,[we.PRE_PROCESS_BLOCK]:!0,[we.POST_PROCESS_BLOCK]:!0},Gl=async(e,n,i)=>{const a=new CustomEvent(e,{detail:n,cancelable:Of[e]});return a.data=i,a.promises=[],window.dispatchEvent(a),await Promise.all(a.promises),a},sA=B.createContext({paths:[],setSyncedPaths:()=>{},syncedPathsRef:{current:[]}}),Ti=()=>B.useContext(sA),_f=({children:e})=>{const[n,i,a]=bn([]);return z.jsx(sA.Provider,{value:{paths:n,setSyncedPaths:i,syncedPathsRef:a},children:e})},Xn=()=>{const{botIdRef:e}=St(),{syncedPathsRef:n}=Ti(),i=B.useCallback(()=>n.current.length>0?n.current.at(-1)??null:null,[]),a=B.useCallback(()=>n.current.length>1?n.current.at(-2)??null:null,[]);return{dispatchRcbEvent:B.useCallback(async(o,u)=>{const f={botId:e.current,currPath:i(),prevPath:a()};return await Gl(o,f,u)},[e])}},wn=()=>{const{settings:e}=Ne(),{isChatWindowOpen:n,setSyncedIsChatWindowOpen:i,viewportHeight:a,setViewportHeight:o,viewportWidth:u,setViewportWidth:f,setUnreadCount:A,setSyncedIsBotTyping:c,setSyncedIsScrolling:d,syncedIsBotTypingRef:h,syncedIsChatWindowOpenRef:v}=Ct(),{chatBodyRef:y}=St(),{dispatchRcbEvent:k}=Xn(),C=B.useCallback(()=>{if(!y.current)return!1;const M=y.current.getBoundingClientRect(),U=window.innerHeight??document.documentElement.clientHeight,j=window.innerWidth??document.documentElement.clientWidth;return M.top>=0&&M.left>=0&&M.bottom<=U&&M.right<=j},[y]),R=B.useCallback(async M=>{var U;M!==v.current&&((U=e.event)!=null&&U.rcbToggleChatWindow&&(await k(we.TOGGLE_CHAT_WINDOW,{currState:v.current,newState:!v.current})).defaultPrevented||i(j=>(j||A(0),!j)))},[v]),E=B.useCallback(async M=>{M!==h.current&&c(U=>!U)},[h]),T=B.useCallback((M,U,j,N)=>(M/=N/2)<1?j/2*M*M+U:-j/2*(--M*(M-2)-1)+U,[]),Q=B.useCallback((M=0)=>{if(!y.current)return;const U=y.current.scrollHeight-y.current.clientHeight;if(M<=0)return y.current.scrollTop=U,void d(!1);const j=y.current.scrollTop,N=U-j;let W=0;const ee=()=>{if(!y.current)return;W+=20;const G=T(W,j,N,M);y.current.scrollTop=G,W<M?requestAnimationFrame(ee):d(!1)};ee()},[y]);return{isChatWindowOpen:n,setSyncedIsChatWindowOpen:i,toggleChatWindow:R,viewportHeight:a,setViewportHeight:o,viewportWidth:u,setViewportWidth:f,toggleIsBotTyping:E,scrollToBottom:Q,getIsChatBotVisible:C}},Lf=()=>{var e,n,i;const{settings:a}=Ne(),{styles:o}=rt(),{unreadCount:u,isScrolling:f}=Ct(),{chatBodyRef:A}=St(),{scrollToBottom:c}=wn(),[d,h]=B.useState(!1),v={color:(e=a.general)==null?void 0:e.primaryColor,borderColor:(n=a.general)==null?void 0:n.primaryColor,...o.chatMessagePromptHoveredStyle};return z.jsx("div",{className:"rcb-message-prompt-container "+(A.current&&((y=a.chatWindow)!=null&&y.showMessagePrompt)&&f&&u>0?"visible":"hidden"),children:z.jsx("div",{onMouseEnter:()=>{h(!0)},onMouseLeave:()=>{h(!1)},style:d?v:{...o.chatMessagePromptStyle},onMouseDown:k=>{k.preventDefault(),c(600)},className:"rcb-message-prompt-text",children:(i=a.chatWindow)==null?void 0:i.messagePromptText})});var y},lA=B.createContext({messages:[],setSyncedMessages:()=>{},syncedMessagesRef:{current:[]}}),Vl=()=>B.useContext(lA),Ff=({children:e})=>{const[n,i,a]=bn([]);return z.jsx(lA.Provider,{value:{messages:n,setSyncedMessages:i,syncedMessagesRef:a},children:e})},Qf=({message:e,isNewSender:n})=>{var i,a,o,u,f,A;const{settings:c}=Ne(),{styles:d}=rt(),h=typeof e.content=="string",v=e.content,y=e.contentWrapper?z.jsx(e.contentWrapper,{children:v}):v,k={backgroundColor:(i=c.general)==null?void 0:i.primaryColor,color:"#fff",maxWidth:(a=c.userBubble)!=null&&a.showAvatar?"65%":"70%",...d.userBubbleStyle},C=(o=c.userBubble)!=null&&o.animate?"rcb-user-message-entry":"",R=((u=c.userBubble)==null?void 0:u.showAvatar)&&n,E="rcb-user-message"+(!n&&(f=c.userBubble)!=null&&f.showAvatar?" rcb-user-message-offset":"");return z.jsxs("div",{className:"rcb-user-message-container",children:[h?z.jsx("div",{style:k,className:`${E} ${C}`,children:y}):z.jsx(z.Fragment,{children:y}),R&&z.jsx("div",{style:{backgroundImage:`url("${(A=c.userBubble)==null?void 0:A.avatar}")`},className:"rcb-message-user-avatar"})]})},Hf=({message:e,isNewSender:n})=>{var i,a,o,u,f,A;const{settings:c}=Ne(),{styles:d}=rt(),h=typeof e.content=="string",v=e.content,y=e.contentWrapper?z.jsx(e.contentWrapper,{children:v}):v,k={backgroundColor:(i=c.general)==null?void 0:i.secondaryColor,color:"#fff",maxWidth:(a=c.botBubble)!=null&&a.showAvatar?"65%":"70%",...d.botBubbleStyle},C=(o=c.botBubble)!=null&&o.animate?"rcb-bot-message-entry":"",R=((u=c.botBubble)==null?void 0:u.showAvatar)&&n,E="rcb-bot-message"+(!n&&(f=c.botBubble)!=null&&f.showAvatar?" rcb-bot-message-offset":"");return z.jsxs("div",{className:"rcb-bot-message-container",children:[R&&z.jsx("div",{style:{backgroundImage:`url("${(A=c.botBubble)==null?void 0:A.avatar}")`},className:"rcb-message-bot-avatar"}),h?z.jsx("div",{style:k,className:`${E} ${C}`,children:y}):z.jsx(z.Fragment,{children:y})]})},Nf=()=>{var e,n,i;const{settings:a}=Ne(),{styles:o}=rt(),u=(e=a.botBubble)!=null&&e.animate?"rcb-bot-message-entry":"";return z.jsxs("div",{className:"rcb-bot-message-container",children:[((n=a.botBubble)==null?void 0:n.showAvatar)&&z.jsx("div",{style:{backgroundImage:`url("${(i=a.botBubble)==null?void 0:i.avatar}")`},className:"rcb-message-bot-avatar"}),z.jsx("div",{onMouseDown:f=>{f.preventDefault()},className:`rcb-bot-message ${u}`,children:z.jsxs("div",{className:"rcb-typing-indicator",style:{...o==null?void 0:o.rcbTypingIndicatorContainerStyle},children:[z.jsx("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}}),z.jsx("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}}),z.jsx("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}})]})})]})},Uf=()=>{var e,n,i;const{settings:a}=Ne(),{styles:o}=rt(),{messages:u}=Vl(),{scrollToBottom:f}=wn(),{isBotTyping:A,syncedIsScrollingRef:c}=Ct(),{chatBodyRef:d}=St(),h={...o==null?void 0:o.bodyStyle,scrollbarWidth:(e=a.chatWindow)!=null&&e.showScrollbar?"auto":"none"};return B.useEffect(()=>{c.current||f()},[(n=d.current)==null?void 0:n.scrollHeight]),z.jsxs("div",{style:h,className:"rcb-chat-body-container",ref:d,children:[u.map((v,y)=>{const k=(C=>C===0||u[C].sender!==u[C-1].sender)(y);return v.sender.toUpperCase()==="USER"?z.jsx(Qf,{message:v,isNewSender:k},y):v.sender.toUpperCase()==="BOT"?z.jsx(Hf,{message:v,isNewSender:k},y):z.jsx("div",{children:v.content},y)}),A&&((i=a.chatWindow)==null?void 0:i.showTypingIndicator)&&z.jsx(Nf,{}),z.jsx(Lf,{})]})},zf=({checkboxes:e,checkedItems:n,path:i})=>{var a,o,u,f,A,c,d,h,v,y,k;const{settings:C}=Ne(),{styles:R}=rt(),{paths:E}=Ti(),{handleSubmitText:T}=xa(),[Q,M]=B.useState(new Set),[U,j]=B.useState(!1),N={cursor:U?`url("${(a=C.general)==null?void 0:a.actionDisabledIcon}"), auto`:"pointer",color:(o=C.general)==null?void 0:o.primaryColor,borderColor:(u=C.general)==null?void 0:u.primaryColor,...R.botCheckboxRowStyle},W={cursor:U||Q.size<e.min?`url("${(f=C.general)==null?void 0:f.actionDisabledIcon}"), auto`:"pointer",color:(A=C.general)==null?void 0:A.primaryColor,borderColor:(c=C.general)==null?void 0:c.primaryColor,...R.botCheckboxNextStyle},ee={cursor:U?`url("${(d=C.general)==null?void 0:d.actionDisabledIcon}"), auto`:"pointer",color:"transparent",...R.botCheckMarkStyle},G={cursor:U?`url("${(h=C.general)==null?void 0:h.actionDisabledIcon}"), auto`:"pointer",color:"#fff",borderColor:(v=C.general)==null?void 0:v.primaryColor,backgroundColor:(y=C.general)==null?void 0:y.primaryColor,...R.botCheckMarkSelectedStyle};return B.useEffect(()=>{E.length>0&&E[E.length-1]!==i&&j(!e.reusable)},[E]),z.jsxs("div",{className:"rcb-checkbox-container "+((k=C.botBubble)!=null&&k.showAvatar?"rcb-checkbox-offset":""),children:[e.items.map(Y=>z.jsx("div",{onMouseDown:Z=>{Z.preventDefault(),($=>{U||M(ae=>{const ie=new Set(ae);if(ie.has($))n.delete($),ie.delete($);else{if(Q.size==e.max)return ae;n.add($),ie.add($)}return ie})})(Y)},style:N,className:"rcb-checkbox-row-container",children:z.jsxs("div",{className:"rcb-checkbox-row",children:[z.jsx("div",{style:Q.has(Y)?G:ee,className:"rcb-checkbox-mark"}),z.jsx("div",{className:"rcb-checkbox-label",children:Y})]})},Y)),z.jsx("div",{style:W,className:"rcb-checkbox-next-button",onMouseDown:Y=>{var Z;if(Y.preventDefault(),U||Q.size<e.min)return;const $=Array.from(n).join(", ");let ae;j(!e.reusable),ae=e.sendOutput!=null?e.sendOutput:((Z=C.chatInput)==null?void 0:Z.sendCheckboxOutput)??!0,T($,ae)}})]})},jf=async(e,n)=>{const i=e.checkboxes;if(!i)return;let a;if(typeof i=="function"?(a=i(n),a instanceof Promise&&(a=await a)):a=i,Array.isArray(a)&&(a={items:a}),!("items"in a)||a.items.length==0)return;a.min==null&&(a.min=1),a.max==null&&(a.max=a.items.length),a.min>a.max&&(a.min=a.max),a.reusable==null&&(a.reusable=!1);const o=new Set,u=n.currPath,f=z.jsx(zf,{checkboxes:a,checkedItems:o,path:u});await n.injectMessage(f)},Wf=async(e,n)=>{const i=e.function;if(!i)return;const a=i(n);return a instanceof Promise?await a:a},Yf=async(e,n,i)=>{const a=e.message;if(!a)return;if(typeof a=="string")return void(a.trim()!==""&&(i?await n.simulateStreamMessage(a):await n.injectMessage(a)));let o=a(n);o instanceof Promise&&(o=await o),typeof o=="string"&&o.trim()!==""&&(i?await n.simulateStreamMessage(o):await n.injectMessage(o))},Gf=({options:e,path:n})=>{var i,a,o,u,f,A;const{settings:c}=Ne(),{styles:d}=rt(),{paths:h}=Ti(),{handleSubmitText:v}=xa(),[y,k]=B.useState([]),[C,R]=B.useState(!1),E={cursor:C?`url("${(i=c.general)==null?void 0:i.actionDisabledIcon}"), auto`:"pointer",color:(a=c.general)==null?void 0:a.primaryColor,borderColor:(o=c.general)==null?void 0:o.primaryColor,backgroundColor:"#fff",...d.botOptionStyle},T={color:"#fff",borderColor:(u=c.general)==null?void 0:u.primaryColor,backgroundColor:(f=c.general)==null?void 0:f.primaryColor,...d.botOptionHoveredStyle};return B.useEffect(()=>{h.length>0&&h[h.length-1]!==n&&R(!e.reusable)},[h]),z.jsx("div",{className:"rcb-options-container "+((A=c.botBubble)!=null&&A.showAvatar?"rcb-options-offset":""),children:e.items.map((Q,M)=>{const U=y[M]&&!C;return z.jsx("div",{className:"rcb-options",style:U?T:E,onMouseEnter:()=>(j=>{k(N=>{const W=[...N];return W[j]=!0,W})})(M),onMouseLeave:()=>(j=>{k(N=>{const W=[...N];return W[j]=!1,W})})(M),onMouseDown:j=>{var N;if(j.preventDefault(),C)return;let W;R(!e.reusable),W=e.sendOutput!=null?e.sendOutput:((N=c.chatInput)==null?void 0:N.sendOptionOutput)??!0,v(Q,W)},children:Q},Q)})})},Vf=async(e,n)=>{const i=e.options;if(!i)return;let a;if(typeof i=="function"?(a=i(n),a instanceof Promise&&(a=await a)):a=i,Array.isArray(a)&&(a={items:a}),!("items"in a)||a.items.length==0)return;a.reusable==null&&(a.reusable=!1);const o=n.currPath,u=z.jsx(Gf,{options:a,path:o});await n.injectMessage(u)},Xf=async(e,n)=>{const i=e.component;if(i){if(typeof i=="function"){let a=i(n);return a instanceof Promise&&(a=await a),a?void await n.injectMessage(a):void 0}await n.injectMessage(i)}},Jf=async(e,n,i,a)=>{const o=e.transition;let u;if(typeof o=="function"?(u=o(n),u instanceof Promise&&(u=await u)):u=o,typeof u=="number"&&(u={duration:u}),!u||u instanceof Promise||u.duration==null||typeof u.duration!="number")return;u.interruptable==null&&(u.interruptable=!1);const f=setTimeout(async()=>{const A=await a(e);A&&await uA(A,n)},u.duration);u.interruptable&&(i.current=f)},Kf=async(e,n,i)=>{const a=e.chatDisabled;if(a==null)return;let o;typeof a=="function"?(o=a(n),o instanceof Promise&&(o=await o)):o=a,i(o)},cA=async(e,n,i)=>{const a=e.isSensitive;if(!a)return void i(!1);let o;typeof a=="function"?(o=a(n),o instanceof Promise&&(o=await o)):o=a,i(o)},uA=async(e,n)=>{if(!e)throw new Error("Block is not valid.");const i=Object.keys(e);for(const a of i)a==="function"&&await Wf(e,n);i.includes("path")&&await(async(a,o)=>{const u=a.path;if(!u)return!1;if(typeof u=="string")return await o.goToPath(u),!0;let f=u(o);if(f instanceof Promise&&(f=await f),!f)return!1;const A=f;return await o.goToPath(A),!0})(e,n)},qf=()=>{var e;const{settings:n}=Ne(),{styles:i}=rt();return z.jsx("div",{className:"rcb-line-break-container",children:z.jsx("div",{style:{...i.chatHistoryLineBreakStyle},className:"rcb-line-break-text","data-testid":"chat-history-line-break-text",children:(e=n.chatHistory)==null?void 0:e.chatHistoryLineBreakText})})},$f=()=>{var e;const{settings:n}=Ne(),{styles:i}=rt(),a={borderTop:`4px solid ${(e=n.general)==null?void 0:e.primaryColor}`,...i.loadingSpinnerStyle};return z.jsx("div",{className:"rcb-spinner-container",children:z.jsx("div",{style:a,className:"rcb-spinner"})})},Os=()=>{try{if(typeof crypto<"u"&&typeof crypto.randomUUID=="function")return crypto.randomUUID();throw new Error("crypto.randomUUID not available")}catch(e){if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function")return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){const i=crypto.getRandomValues(new Uint8Array(1))[0]%16;return(n==="x"?i:3&i|8).toString(16)});throw console.error(e),new Error("crypto.getRandomValues is also not available")}},Kr=(e,n)=>({id:Os(),content:e,sender:n,type:typeof e=="string"?"string":"object",timestamp:new Date().toUTCString(),tags:[]});let qr,AA=!1,_s="rcb-history",Ls=30,dA=!1,Di=[];const Xl=async e=>{if(dA||!qr)return;const n=[],i=AA?Di.length:0;for(let o=e.length-1;o>=i;o--){const u=e[o];if(u.sender.toUpperCase()!=="SYSTEM"&&(u.content!==""&&n.unshift(u),n.length===Ls))break}let a=n.map(ep);if(a.length<Ls){const o=Ls-a.length;a=[...Di.slice(-o),...a]}fA(a)},Jl=()=>Di,Zf=e=>{fA(e),Di=e},fA=e=>{qr&&qr.setItem(_s,JSON.stringify(e))},Kl=e=>{var n,i,a,o,u;qr=((i=(n=e.chatHistory)==null?void 0:n.storageType)==null?void 0:i.toUpperCase())==="SESSION_STORAGE"?sessionStorage:localStorage,_s=(a=e.chatHistory)==null?void 0:a.storageKey,Ls=(o=e.chatHistory)==null?void 0:o.maxEntries,dA=(u=e.chatHistory)==null?void 0:u.disabled,Di=(f=>{if(f!=null)try{return JSON.parse(f)}catch{return[]}return[]})(qr.getItem(_s))},ep=e=>B.isValidElement(e.content)?structuredClone({id:e.id,content:Bo.renderToString(e.content),type:e.type,sender:e.sender.toUpperCase(),timestamp:e.timestamp,tags:e.tags}):e,pA=(e,n,i)=>{const a=new DOMParser().parseFromString(e,"text/html");return Array.from(a.body.childNodes).map((o,u)=>{var f;if(o.nodeType===Node.TEXT_NODE)return o.textContent;{const A=o.tagName.toLowerCase();let c=Array.from(o.attributes).reduce((d,h)=>{const v=h.name.toLowerCase();if(v==="style"){const y=h.value.split(";").filter(C=>C.trim()!==""),k={};y.forEach(C=>{const[R,E]=C.split(":").map(Q=>Q.trim()),T=R.replace(/-([a-z])/g,(Q,M)=>M.toUpperCase());k[T]=E}),d[v]=k}else A!=="audio"&&A!=="video"||v!=="controls"||h.value!==""?d[v]=h.value:d[v]="true";return d},{});if(Object.prototype.hasOwnProperty.call(c,"class")){const d=o.classList;c.className=d.toString(),delete c.class,(f=n.botBubble)!=null&&f.showAvatar&&(c=tp(d,c)),c=np(d,c,n,i),c=rp(d,c,n,i),c=op(d,c,n,i),c=ap(d,c,n,i)}if(["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"].includes(A))return B.createElement(A,{key:u,...c});{const d=pA(o.innerHTML,n,i);return B.createElement(A,{key:u,...c},...d)}}})},tp=(e,n)=>((e.contains("rcb-options-container")||e.contains("rcb-checkbox-container"))&&(n.className=`${e.toString()} rcb-options-offset`),n),np=(e,n,i,a)=>{var o,u,f,A,c;return e.contains("rcb-options")&&(n.style={...n.style,color:((o=a.botOptionStyle)==null?void 0:o.color)??((u=i.general)==null?void 0:u.primaryColor),borderColor:((f=a.botOptionStyle)==null?void 0:f.color)??((A=i.general)==null?void 0:A.primaryColor),cursor:`url("${(c=i.general)==null?void 0:c.actionDisabledIcon}"), auto`,...a.botOptionStyle}),n},rp=(e,n,i,a)=>{var o,u,f,A,c;return e.contains("rcb-checkbox-row-container")&&(n.style={...n.style,color:((o=a.botCheckboxRowStyle)==null?void 0:o.color)??((u=i.general)==null?void 0:u.primaryColor),borderColor:((f=a.botCheckboxRowStyle)==null?void 0:f.color)??((A=i.general)==null?void 0:A.primaryColor),cursor:`url("${(c=i.general)==null?void 0:c.actionDisabledIcon}"), auto`,...a.botCheckboxRowStyle}),n},op=(e,n,i,a)=>{var o,u,f,A,c;return e.contains("rcb-checkbox-next-button")&&(n.style={...n.style,color:((o=a.botCheckboxNextStyle)==null?void 0:o.color)??((u=i.general)==null?void 0:u.primaryColor),borderColor:((f=a.botCheckboxNextStyle)==null?void 0:f.color)??((A=i.general)==null?void 0:A.primaryColor),cursor:`url("${(c=i.general)==null?void 0:c.actionDisabledIcon}"), auto`,...a.botCheckboxNextStyle}),n},ap=(e,n,i,a)=>{var o,u;return(e.contains("rcb-media-display-image-container")||e.contains("rcb-media-display-video-container"))&&(n.style={...n.style,backgroundColor:(o=i.general)==null?void 0:o.primaryColor,maxWidth:(u=i.userBubble)!=null&&u.showAvatar?"65%":"70%",...a.mediaDisplayContainerStyle}),n},ql=()=>{const{settings:e}=Ne(),{notificationsToggledOn:n,setSyncedNotificationsToggledOn:i,hasInteractedPage:a,unreadCount:o,setUnreadCount:u,syncedNotificationsToggledOnRef:f}=Ct(),{audioBufferRef:A,audioContextRef:c,gainNodeRef:d}=St(),{dispatchRcbEvent:h}=Xn(),v=B.useCallback(async()=>{var k,C;const R=(k=e.notification)==null?void 0:k.sound;c.current=new AudioContext;const E=c.current.createGain();let T;if(E.gain.value=((C=e.notification)==null?void 0:C.volume)??.2,d.current=E,R!=null&&R.startsWith("data:audio")){const Q=atob(R.split(",")[1]),M=new ArrayBuffer(Q.length),U=new Uint8Array(M);for(let j=0;j<Q.length;j++)U[j]=Q.charCodeAt(j);T=M}else T=await(await fetch(R)).arrayBuffer();A.current=await c.current.decodeAudioData(T)},[e.notification]),y=B.useCallback(()=>{var k;if((k=e.notification)!=null&&k.disabled||!f.current||!a||!c.current||!A.current)return;const C=c.current.createBufferSource();C.buffer=A.current,C.connect(d.current).connect(c.current.destination),C.start()},[e.notification,f,a,c,A,d]);return{unreadCount:o,setUnreadCount:u,notificationsToggledOn:n,toggleNotifications:B.useCallback(async k=>{var C;k!==f.current&&((C=e.event)!=null&&C.rcbToggleNotifications&&(await h(we.TOGGLE_NOTIFICATIONS,{currState:f.current,newState:!f.current})).defaultPrevented||i(R=>!R))},[f]),playNotificationSound:y,setUpNotifications:v}},ip=(e,n)=>{var i,a,o,u;((f,A,c,d,h)=>{if(!window.SpeechSynthesisUtterance)return void console.info("Speech Synthesis API is not supported in this environment.");const v=new window.SpeechSynthesisUtterance;v.text=f,v.lang=A,v.rate=d,v.volume=h;let y=!1;for(const k of c)if(window.speechSynthesis.getVoices().find(C=>{if(C.name===k)return v.voice=C,window.speechSynthesis.speak(v),void(y=!0)}),y)break;y||window.speechSynthesis.speak(v)})(n,(i=e.audio)==null?void 0:i.language,(a=e.audio)==null?void 0:a.voiceNames,(o=e.audio)==null?void 0:o.rate,(u=e.audio)==null?void 0:u.volume)},hA=()=>{const{settings:e}=Ne(),{audioToggledOn:n,setSyncedAudioToggledOn:i,syncedAudioToggledOnRef:a}=Ct(),{dispatchRcbEvent:o}=Xn(),u=B.useCallback(async A=>{var c;A!==a.current&&((c=e.event)!=null&&c.rcbToggleAudio&&(await o(we.TOGGLE_AUDIO,{currState:a.current,newState:!a.current})).defaultPrevented||i(d=>!d))},[a]),f=B.useCallback(async A=>{var c,d;if((c=e.audio)!=null&&c.disabled||!a.current)return;let h=A;if((d=e.event)!=null&&d.rcbStartSpeakAudio){const v=await o(we.START_SPEAK_AUDIO,{textToRead:h});if(v.defaultPrevented)return;h=v.data.textToRead}ip(e,h)},[e,a]);return{audioToggledOn:n,speakAudio:f,toggleAudio:u}},_o=()=>{var e,n;const{settings:i}=Ne(),{messages:a,setSyncedMessages:o,syncedMessagesRef:u}=Vl(),{setSyncedIsBotTyping:f,setUnreadCount:A,syncedIsScrollingRef:c,syncedIsChatWindowOpenRef:d}=Ct(),{streamMessageMap:h,chatBodyRef:v,paramsInputRef:y}=St(),{scrollToBottom:k,getIsChatBotVisible:C}=wn(),{dispatchRcbEvent:R}=Xn(),{speakAudio:E}=hA(),{playNotificationSound:T}=ql(),Q=B.useCallback((G,Y=!1)=>{var Z,$;Xl(G);let ae=!0;const ie=G[G.length-1];if(!ie)return;const le=ie.sender.toUpperCase();le==="USER"&&(ae=!1),(Z=i.general)!=null&&Z.embedded&&C()&&(ae=!1),(d.current&&!c.current||Y)&&(ae=!1),ae&&T(),!Y&&(le!=="USER"&&($=i.chatWindow)!=null&&$.autoJumpToBottom||le==="USER"||!c.current)&&setTimeout(()=>k(),1)},[i,v,d,c,T,k,C]),M=B.useCallback(async(G,Y="BOT",Z=null)=>{var $,ae,ie,le,be;if(typeof G!="string")throw new Error("Content must be of type string to simulate stream.");Y=Y.toUpperCase();let he=Kr(G,Y);if(($=i.event)!=null&&$.rcbStartSimulateStreamMessage){const ce=await R(we.START_SIMULATE_STREAM_MESSAGE,{message:he});if(ce.defaultPrevented)return null;Z=ce.data.simulateStreamChunker||Z,he=ce.data.message}f(!1);let me=30;me=Y==="BOT"?(ae=i.botBubble)==null?void 0:ae.streamSpeed:(ie=i.userBubble)==null?void 0:ie.streamSpeed;const L={...he,content:""};o(ce=>[...ce,L]),Q(u.current);let Be=he.content;Z&&(Be=Z(Be));let F=0;const ve=Be.length;he.sender.toUpperCase()==="BOT"&&(d.current||(le=i.general)!=null&&le.embedded)&&typeof he.content=="string"&&he.content.trim()!==""&&E(he.content);const fe=new Promise(ce=>{const ge=setInterval(()=>{if(F>=ve)return clearInterval(ge),void ce();o(ye=>{const De=[...ye];for(let Fe=De.length-1;Fe>=0;Fe--)if(De[Fe].id===L.id){const Re=Be[F];Re&&(L.content+=Re,De[Fe]=L),F++;break}return De})},me)});return(c.current||!d.current)&&A(ce=>ce+1),await fe,Xl(u.current),(be=i.event)!=null&&be.rcbStopSimulateStreamMessage&&await R(we.STOP_SIMULATE_STREAM_MESSAGE,{message:he}),Y==="USER"&&(y.current=G),he},[i,R,Q,u,y,f,A,d,E]),U=B.useCallback(async(G,Y="BOT")=>{var Z,$,ae;Y=Y.toUpperCase();let ie=Kr(G,Y);if((Z=i.event)!=null&&Z.rcbPreInjectMessage){const le=await R(we.PRE_INJECT_MESSAGE,{message:ie});if(le.defaultPrevented)return null;ie=le.data.message}return ie.sender.toUpperCase()==="BOT"&&(d.current||($=i.general)!=null&&$.embedded)&&typeof ie.content=="string"&&ie.content.trim()!==""&&E(ie.content),(c.current||!d.current)&&A(le=>le+1),(ae=i.event)!=null&&ae.rcbPostInjectMessage&&await R(we.POST_INJECT_MESSAGE,{message:ie}),o(le=>[...le,ie]),Q(u.current),Y==="USER"&&typeof G=="string"&&(y.current=G),ie},[i,R,Q,y,u,d,E,A]),j=B.useCallback(async G=>{var Y;const Z=u.current.find($=>$.id===G);return!Z||(Y=i.event)!=null&&Y.rcbRemoveMessage&&(await R(we.REMOVE_MESSAGE,{message:Z})).defaultPrevented?null:(o($=>$.filter(ae=>ae.id!==G)),Q(u.current),A($=>Math.max($-1,0)),Z)},[R,(e=i.event)==null?void 0:e.rcbRemoveMessage,Q,u,A]),N=B.useCallback(async(G,Y="BOT")=>{var Z,$;if(Y=Y.toUpperCase(),!h.current.has(Y)){const ie=Kr(G,Y);return(Z=i.event)!=null&&Z.rcbStartStreamMessage&&(await R(we.START_STREAM_MESSAGE,{message:ie})).defaultPrevented?null:(f(!1),o(le=>[...le,ie]),Q(u.current),h.current.set(Y,ie.id),(c.current||!d.current)&&A(le=>le+1),ie)}const ae={...Kr(G,Y),id:h.current.get(Y)};return($=i.event)!=null&&$.rcbChunkStreamMessage&&(await R(we.CHUNK_STREAM_MESSAGE,{message:ae})).defaultPrevented?null:(o(ie=>ie.map(le=>le.id===ae.id?ae:le)),Q(u.current,!0),ae)},[R,i.event,Q,u,f,A,h]),W=B.useCallback(async(G="BOT")=>{var Y;if(G=G.toUpperCase(),!h.current.has(G))return!0;const Z=h.current.get(G);let $;for(let ae=0;ae<3;ae++){const ie=u.current.find(le=>le.id===Z);ie&&($=ie),await new Promise(le=>setTimeout(le,20))}return((Y=i.event)==null||!Y.rcbStopStreamMessage||!(await R(we.STOP_STREAM_MESSAGE,{message:$})).defaultPrevented)&&(h.current.delete(G),Xl(u.current),G==="USER"&&typeof($==null?void 0:$.content)=="string"&&(y.current=$.content),!0)},[R,(n=i.event)==null?void 0:n.rcbStopStreamMessage,h,y]),ee=B.useCallback(G=>{const Y=typeof G=="function"?G(u.current):G;o(Y),Q(Y)},[Q,u]);return{simulateStreamMessage:M,injectMessage:U,removeMessage:j,streamMessage:N,endStreamMessage:W,replaceMessages:ee,messages:a}};let $l,sr,Fs,$r=!1,lr=null;const Zl=()=>{if(!$l){const e=window.SpeechRecognition||window.webkitSpeechRecognition;$l=e!=null?new e:null}return $l},sp=(e,n,i,a,o,u)=>{var f,A,c;const d=Zl();if(!d)return;if(!$r)try{$r=!0,d.lang=(f=e.voice)==null?void 0:f.language,d.start()}catch{}const h=(A=e.voice)==null?void 0:A.timeoutPeriod,v=(c=e.voice)==null?void 0:c.autoSendPeriod;d.onresult=y=>{var k,C;clearTimeout(sr),sr=null,clearTimeout(Fs);const R=y.results[y.results.length-1][0].transcript;if(u.current){const E=(k=e.chatInput)==null?void 0:k.characterLimit,T=u.current.value+R;E!=null&&E>=0&&T.length>E?a(T.slice(0,E)):a(T),o(u.current.value.length)}h&&(sr=setTimeout(async()=>await tc(n,u),h)),(C=e.voice)!=null&&C.autoSendDisabled||(Fs=setTimeout(i,v))},d.onend=()=>{$r?(d.start(),!sr&&h&&(sr=setTimeout(async()=>await tc(n,u),h))):(clearTimeout(sr),sr=null,clearTimeout(Fs))},h&&(sr=setTimeout(async()=>await tc(n,u),h))},lp=(e,n)=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(i=>{if(lr=new MediaRecorder(i),!$r)try{$r=!0,lr.start()}catch{}lr.ondataavailable=a=>{n.current&&n.current.push(a.data)},lr.onstop=()=>{e(),i.getTracks().forEach(a=>a.stop())}}).catch(i=>{console.error("Unable to use microphone:",i)})},ec=()=>{const e=Zl();e&&($r=!1,e&&e.stop(),lr&&lr.state!=="inactive"&&(lr.stop(),lr=null),clearTimeout(sr),sr=null,clearTimeout(Fs))},tc=async(e,n)=>{var i;(i=n.current)!=null&&i.disabled||await e(),ec()},nc=()=>{const{settings:e}=Ne(),{voiceToggledOn:n,setSyncedVoiceToggledOn:i,syncedVoiceToggledOnRef:a}=Ct(),{dispatchRcbEvent:o}=Xn(),u=B.useCallback(async A=>{var c;A!==a.current&&((c=e.event)!=null&&c.rcbToggleVoice&&(await o(we.TOGGLE_VOICE,{currState:a.current,newState:!a.current})).defaultPrevented||i(d=>!d))},[a]),f=B.useCallback(A=>{((c,d)=>{var h,v,y;const k=Zl();(h=d.voice)!=null&&h.disabled||(v=d.chatInput)==null||!v.blockSpam||!k||(c&&!$r?($r=!0,(y=d.voice)!=null&&y.sendAsAudio?lr==null||lr.start():k.start()):c||ec())})(A,e)},[e]);return{voiceToggledOn:n,toggleVoice:u,syncVoice:f}},Lo=()=>{var e;const{settings:n}=Ne(),{inputLength:i,setInputLength:a,textAreaDisabled:o,setSyncedTextAreaDisabled:u,textAreaSensitiveMode:f,setSyncedTextAreaSensitiveMode:A,syncedTextAreaDisabledRef:c,syncedTextAreaSensitiveModeRef:d}=Ct(),{inputRef:h,chatBodyRef:v,prevInputRef:y}=St(),{dispatchRcbEvent:k}=Xn(),{getIsChatBotVisible:C}=wn(),R=B.useCallback(async N=>{var W,ee,G;if(c.current&&h.current)h.current.value="";else if(h.current&&y.current!==null){const Y=(W=n.chatInput)==null?void 0:W.characterLimit,Z=(ee=n.chatInput)!=null&&ee.allowNewline?N:N.replace(/\n/g," ");if(Y!=null&&Y>=0&&Z.length>Y?h.current.value=Z.slice(0,Y):h.current.value=Z,(G=n.event)!=null&&G.rcbTextAreaChangeValue&&(await k(we.TEXT_AREA_CHANGE_VALUE,{currValue:h.current.value,prevValue:y.current})).defaultPrevented)return void(h.current.value=y.current);y.current=h.current.value}},[c,h,y,n,k]),E=B.useCallback(N=>{var W;(W=h.current)!=null&&W.disabled||setTimeout(()=>{var ee,G,Y;(ee=n.general)!=null&&ee.embedded?C()&&((G=h.current)==null||G.focus()):N!=="start"&&((Y=h.current)==null||Y.focus())},100)},[h,(e=n.general)==null?void 0:e.embedded,v,C]),T=B.useCallback(()=>{h.current&&h.current.focus()},[]),Q=B.useCallback(()=>{h.current&&h.current.blur()},[]),M=B.useCallback(()=>h&&h.current?h.current.value:"",[]),U=B.useCallback(N=>{N!==c.current&&u(W=>!W)},[c]),j=B.useCallback(N=>{N!==d.current&&A(W=>!W)},[d]);return{textAreaDisabled:o,setSyncedTextAreaDisabled:u,textAreaSensitiveMode:f,setSyncedTextAreaSensitiveMode:A,inputLength:i,setInputLength:a,getTextAreaValue:M,setTextAreaValue:R,updateTextAreaFocus:E,focusTextArea:T,blurTextArea:Q,toggleTextAreaDisabled:U,toggleTextAreaSensitiveMode:j}},gA=B.createContext({toasts:[],setSyncedToasts:()=>{},syncedToastsRef:{current:[]}}),mA=()=>B.useContext(gA),cp=({children:e})=>{const[n,i,a]=bn([]);return z.jsx(gA.Provider,{value:{toasts:n,setSyncedToasts:i,syncedToastsRef:a},children:e})},wa=()=>{const{settings:e}=Ne(),{toasts:n,setSyncedToasts:i,syncedToastsRef:a}=mA(),{dispatchRcbEvent:o}=Xn(),u=B.useCallback(async(c,d)=>{var h,v,y,k;let C=null;if(a.current.length>=(((h=e.toast)==null?void 0:h.maxCount)??3)){if((v=e.toast)!=null&&v.forbidOnMax)return null;C=Os();let E={id:C,content:c,timeout:d};if((y=e.event)!=null&&y.rcbShowToast){const T=await o(we.SHOW_TOAST,{toast:E});if(T.defaultPrevented)return null;E=T.data.toast}return i(T=>[...T.slice(1),E]),C}C=Os();let R={id:C,content:c,timeout:d};if((k=e.event)!=null&&k.rcbShowToast){const E=await o(we.SHOW_TOAST,{toast:R});if(E.defaultPrevented)return null;R=E.data.toast}return i(E=>[...E,R]),C},[e,o]),f=B.useCallback(async c=>{var d;const h=a.current.find(v=>v.id===c);return!h||(d=e.event)!=null&&d.rcbDismissToast&&(await o(we.DISMISS_TOAST,{toast:h})).defaultPrevented?null:(i(v=>v.filter(y=>y.id!==c)),c)},[o]),A=B.useCallback(c=>{const d=typeof c=="function"?c(a.current):c;i(d)},[a]);return{showToast:u,dismissToast:f,toasts:n,replaceToasts:A}},Qs=()=>{var e,n,i,a,o;const{settings:u}=Ne(),{paths:f,setSyncedPaths:A,syncedPathsRef:c}=Ti(),{flowRef:d,streamMessageMap:h,paramsInputRef:v,keepVoiceOnRef:y,timeoutIdRef:k}=St(),{setSyncedIsBotTyping:C,setSyncedTextAreaDisabled:R,setSyncedTextAreaSensitiveMode:E,blockAllowsAttachment:T,setBlockAllowsAttachment:Q}=Ct(),{dispatchRcbEvent:M}=Xn(),{endStreamMessage:U,injectMessage:j,removeMessage:N,simulateStreamMessage:W,streamMessage:ee}=_o(),{showToast:G,dismissToast:Y}=wa(),{toggleChatWindow:Z}=wn(),{updateTextAreaFocus:$,setTextAreaValue:ae}=Lo(),{syncVoice:ie}=nc(),le=B.useCallback(async F=>{var ve;if((ve=u.event)!=null&&ve.rcbPostProcessBlock){const fe=await M(we.POST_PROCESS_BLOCK,{block:F});if(fe.defaultPrevented)return null;F=fe.data.block}return F},[(e=u.event)==null?void 0:e.rcbPostProcessBlock,M]),be=B.useCallback(async(F,ve)=>{var fe,ce,ge,ye;if(!F)return;let De=d.current[F];if(!De)return void C(!1);if((fe=u.event)!=null&&fe.rcbPreProcessBlock){const Re=await M(we.PRE_PROCESS_BLOCK,{block:De});if(Re.defaultPrevented)return;De=Re.data.block}C(!0),(ce=u.chatInput)!=null&&ce.blockSpam&&R(!0),E(!1);const Fe={prevPath:ve,currPath:F,goToPath:L,setTextAreaValue:ae,userInput:v.current,endStreamMessage:U,injectMessage:j,removeMessage:N,simulateStreamMessage:W,streamMessage:ee,toggleChatWindow:Z,showToast:G,dismissToast:Y};await(async(Re,Ue,Je,Dt,Ke,ze,vt)=>{if(!Re)throw new Error("Block is not valid.");for(const It of Object.keys(Re))switch(It){case"message":await Yf(Re,Ue,Je);break;case"options":await Vf(Re,Ue);break;case"checkboxes":await jf(Re,Ue);break;case"component":await Xf(Re,Ue);break;case"chatDisabled":await Kf(Re,Ue,Ke);break;case"isSensitive":await cA(Re,Ue,ze);break;case"transition":await Jf(Re,Ue,Dt,vt)}})(De,Fe,((ge=u.botBubble)==null?void 0:ge.simulateStream)??!1,k,R,E,le),C(!1),"chatDisabled"in De||R((ye=u.chatInput)==null?void 0:ye.disabled),"isSensitive"in De||E(!1),Q(typeof De.file=="function"),$(F),ie(y.current&&!De.chatDisabled),F!==ve&&h.current.clear()},[d,$,ie,(n=u.botBubble)==null?void 0:n.simulateStream,(i=u.chatInput)==null?void 0:i.disabled,v,U,j,N,W,ee,Z,G,Y,y,h]),he=B.useCallback(()=>c.current.length>0?c.current.at(-1)??null:null,[]),me=B.useCallback(()=>c.current.length>1?c.current.at(-2)??null:null,[]),L=B.useCallback(async F=>{var ve;const fe=he(),ce=me();return((ve=u.event)==null||!ve.rcbChangePath||!(await M(we.CHANGE_PATH,{currPath:fe,prevPath:ce,nextPath:F})).defaultPrevented)&&(A(ge=>[...ge,F]),await be(F,fe),!0)},[(a=u.chatInput)==null?void 0:a.blockSpam,(o=u.event)==null?void 0:o.rcbChangePath,be,M]),Be=B.useCallback(F=>{const ve=typeof F=="function"?F(c.current):F;A(ve)},[c]);return{getCurrPath:he,getPrevPath:me,goToPath:L,blockAllowsAttachment:T,setBlockAllowsAttachment:Q,paths:f,replacePaths:Be,firePostProcessBlockEvent:le}},xa=()=>{var e,n,i,a;const{settings:o}=Ne(),{endStreamMessage:u,injectMessage:f,removeMessage:A,simulateStreamMessage:c,streamMessage:d}=_o(),{syncedPathsRef:h}=Ti(),{getCurrPath:v,getPrevPath:y,goToPath:k,firePostProcessBlockEvent:C}=Qs(),{setSyncedTextAreaSensitiveMode:R,setSyncedTextAreaDisabled:E,setSyncedIsBotTyping:T,setBlockAllowsAttachment:Q,setInputLength:M,syncedVoiceToggledOnRef:U,syncedTextAreaSensitiveModeRef:j}=Ct(),{flowRef:N,inputRef:W,keepVoiceOnRef:ee,paramsInputRef:G,timeoutIdRef:Y}=St(),{showToast:Z,dismissToast:$}=wa(),{dispatchRcbEvent:ae}=Xn(),{syncVoice:ie}=nc(),{setTextAreaValue:le}=Lo(),{toggleChatWindow:be}=wn(),he=B.useCallback(async L=>{var Be,F,ve,fe,ce,ge;const ye=v();if(ye&&N.current[ye]){if(j.current){if((Be=o==null?void 0:o.sensitiveInput)!=null&&Be.hideInUserBubble)return;if((F=o==null?void 0:o.sensitiveInput)!=null&&F.maskInUserBubble)return void((ve=o.userBubble)!=null&&ve.simulateStream?await c("*".repeat(((fe=o.sensitiveInput)==null?void 0:fe.asterisksCount)??10),"USER"):await f("*".repeat(((ce=o.sensitiveInput)==null?void 0:ce.asterisksCount)??10),"USER"))}(ge=o.userBubble)!=null&&ge.simulateStream?await c(L,"USER"):await f(L,"USER")}},[N,v,o,f,c,j]),me=B.useCallback(async(L,Be=!0)=>{var F,ve;if((L=L.trim())==="")return;Be&&await he(L),Y.current&&clearTimeout(Y.current),W.current&&(le(""),M(0));const fe=v();if(!fe)return;let ce=N.current[fe];const ge=await C(ce);ge&&((F=o.chatInput)!=null&&F.blockSpam&&E(!0),ee.current=U.current,ie(!1),setTimeout(()=>{T(!0)},400),R(!1),setTimeout(async()=>{var ye;const De={prevPath:y(),currPath:v(),goToPath:k,setTextAreaValue:le,userInput:G.current,injectMessage:f,simulateStreamMessage:c,streamMessage:d,removeMessage:A,endStreamMessage:u,toggleChatWindow:be,showToast:Z,dismissToast:$},Fe=h.current.length;await uA(ge,De),h.current.length===Fe&&(E("chatDisabled"in ce?!!ce.chatDisabled:!((ye=o.chatInput)==null||!ye.disabled)),cA(ce,De,R),Q(typeof ce.file=="function"),ie(ee.current),T(!1))},(ve=o.chatInput)==null?void 0:ve.botDelay))},[Y,(e=o.chatInput)==null?void 0:e.blockSpam,(n=o.chatInput)==null?void 0:n.botDelay,(i=o.chatInput)==null?void 0:i.disabled,ee,U,ie,he,y,v,k,f,c,d,A,u,be,Z,$,N]);return{handleSubmitText:B.useCallback(async(L,Be=!0)=>{var F,ve;L=L??((F=W.current)==null?void 0:F.value),!((ve=o.event)!=null&&ve.rcbUserSubmitText&&(await ae(we.USER_SUBMIT_TEXT,{inputText:L,sendInChat:Be})).defaultPrevented||!v())&&me(L,Be)},[ae,v,me,W,(a=o.event)==null?void 0:a.rcbUserSubmitText])}},Hs=()=>{var e;const{settings:n}=Ne();return B.useMemo(()=>{var i;if(typeof window>"u"||!window.navigator)return!1;if((i=n.device)==null||!i.applyMobileOptimizations)return!0;const a=navigator.userAgent,o=!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a),u=window.innerWidth>=768;return o&&u},[(e=n.device)==null?void 0:e.applyMobileOptimizations])},up=({buttons:e})=>{var n,i,a,o,u,f,A,c,d,h,v;const y=Hs(),{settings:k}=Ne(),{styles:C}=rt(),{textAreaDisabled:R,textAreaSensitiveMode:E,inputLength:T,hasFlowStarted:Q,setHasFlowStarted:M,setInputLength:U}=Ct(),{inputRef:j}=St(),[N,W]=B.useState(!1),[ee,G]=B.useState(!1),{handleSubmitText:Y}=xa(),{setTextAreaValue:Z}=Lo(),$={boxSizing:y?"content-box":"border-box",...C.chatInputAreaStyle},ae={outline:R?"":"none",boxShadow:R?"":`0 0 5px ${(n=k.general)==null?void 0:n.primaryColor}`,boxSizing:y?"content-box":"border-box",...C.chatInputAreaStyle,...C.chatInputAreaFocusedStyle},ie={cursor:`url("${(i=k.general)==null?void 0:i.actionDisabledIcon}"), auto`,caretColor:"transparent",boxSizing:y?"content-box":"border-box",...C.chatInputAreaStyle,...C.chatInputAreaDisabledStyle},le={color:"#989898",...C.characterLimitStyle},be={color:"#ff0000",...C.characterLimitReachedStyle},he=R?(a=k.chatInput)==null?void 0:a.disabledPlaceholderText:(o=k.chatInput)==null?void 0:o.enabledPlaceholderText,me=()=>{R||W(!0)},L=()=>{W(!1)},Be=()=>{G(!0)},F=()=>{G(!1)},ve=async ce=>{var ge;if(!ee&&ce.key==="Enter"){if(ce.shiftKey)return void((ge=k.chatInput)!=null&&ge.allowNewline||ce.preventDefault());ce.preventDefault(),await Y()}},fe=ce=>{j.current&&(Z(ce.target.value),U(j.current.value.length))};return z.jsxs("div",{"aria-label":((u=k.ariaLabel)==null?void 0:u.inputTextArea)??"input text area",role:"textbox",onMouseDown:ce=>{var ge;ce.stopPropagation(),!Q&&((ge=k.general)==null?void 0:ge.flowStartTrigger)==="ON_CHATBOT_INTERACT"&&M(!0)},style:{...C.chatInputContainerStyle},className:"rcb-chat-input",children:[E&&(f=k.sensitiveInput)!=null&&f.maskInTextArea?z.jsx("input",{ref:j,type:"password",className:"rcb-chat-input-textarea",style:R?ie:N?ae:$,placeholder:he,onChange:fe,onKeyDown:ve,onFocus:me,onBlur:L,onCompositionStart:Be,onCompositionEnd:F}):z.jsx("textarea",{ref:j,style:R?ie:N?ae:$,rows:1,className:"rcb-chat-input-textarea",placeholder:he,onChange:fe,onKeyDown:ve,onFocus:me,onBlur:L,onCompositionStart:Be,onCompositionEnd:F}),z.jsxs(z.Fragment,{children:[e==null?void 0:e.map((ce,ge)=>z.jsx(B.Fragment,{children:ce},ge)),((A=k.chatInput)==null?void 0:A.showCharacterCount)&&((c=k.chatInput)==null?void 0:c.characterLimit)!=null&&((d=k.chatInput)==null?void 0:d.characterLimit)>0&&z.jsxs("div",{className:"rcb-chat-input-char-counter",style:T>=((h=k.chatInput)==null?void 0:h.characterLimit)?be:le,children:[T,"/",(v=k.chatInput)==null?void 0:v.characterLimit]})]})]})},Ap=({buttons:e})=>{var n;const{settings:i}=Ne(),{styles:a}=rt();return z.jsxs("div",{"data-testid":"chatbot-footer-container",style:{...a.footerStyle},className:"rcb-chat-footer-container",children:[z.jsx("div",{className:"rcb-chat-footer",children:e==null?void 0:e.map((o,u)=>z.jsx(B.Fragment,{children:o},u))}),z.jsx("span",{children:(n=i.footer)==null?void 0:n.text})]})},dp=()=>{var e,n,i,a,o,u,f;const{settings:A}=Ne(),{styles:c}=rt(),{unreadCount:d}=Ct(),{isChatWindowOpen:h,toggleChatWindow:v}=wn(),[y,k]=B.useState(!1),C={backgroundImage:`linear-gradient(to right, ${(e=A.general)==null?void 0:e.secondaryColor},
107
- ${(n=A.general)==null?void 0:n.primaryColor})`,...c.chatButtonStyle},R={transform:"scale(1.05)",...c.chatButtonStyle,...c.chatButtonHoveredStyle},E={backgroundImage:`url(${(i=A.chatButton)==null?void 0:i.icon})`,fill:"#fff",width:75,height:75,...c.chatIconStyle};return z.jsx(z.Fragment,{children:!((a=A.general)!=null&&a.embedded)&&z.jsxs("div",{"aria-label":((o=A.ariaLabel)==null?void 0:o.chatButton)??"open chat",role:"button",style:y?R:C,className:"rcb-toggle-button "+(h?"rcb-button-hide":"rcb-button-show"),onMouseEnter:()=>{k(!0)},onMouseLeave:()=>{k(!1)},onClick:()=>v(!0),children:[(()=>{var T;const Q=(T=A.chatButton)==null?void 0:T.icon;return Q&&typeof Q!="string"?Q&&z.jsx("span",{className:"rcb-toggle-icon",children:z.jsx(Q,{style:E})}):z.jsx("span",{className:"rcb-toggle-icon",style:E})})(),!((u=A.notification)!=null&&u.disabled)&&((f=A.notification)==null?void 0:f.showCount)&&z.jsx("span",{style:{...c.notificationBadgeStyle},className:"rcb-badge",children:d})]})})},fp=()=>{var e,n,i,a;const o=Hs(),{settings:u}=Ne(),{styles:f}=rt(),{chatBodyRef:A}=St(),{isChatWindowOpen:c,toggleChatWindow:d}=wn(),[h,v]=B.useState(!1),[y,k]=B.useState(!1),[C,R]=B.useState(0);B.useEffect(()=>{var Q,M,U;const j=(Q=u.tooltip)==null?void 0:Q.mode;if(j==="ALWAYS")if(o){let N;N=c?(((M=A.current)==null?void 0:M.offsetWidth)??375)-(typeof((U=f.chatButtonStyle)==null?void 0:U.width)=="number"?f.chatButtonStyle.width:75):0,R(N),v(!0)}else v(!c);else j==="NEVER"?v(!1):j==="START"?y?v(!1):(k(!0),v(!0)):j==="CLOSE"&&v(!c)},[c]);const E={transform:`translateX(-${C}px)`,right:(((e=f.chatButtonStyle)==null?void 0:e.width)??75)+40,bottom:30,backgroundColor:(n=u.general)==null?void 0:n.secondaryColor,color:"#fff",...f.tooltipStyle},T={borderColor:`transparent transparent transparent ${E.backgroundColor}`};return z.jsx(z.Fragment,{children:!((i=u.general)!=null&&i.embedded)&&z.jsxs("div",{"data-testid":"chat-tooltip",style:E,className:"rcb-chat-tooltip "+(h?"rcb-tooltip-show":"rcb-tooltip-hide"),onClick:()=>d(!0),children:[z.jsx("span",{children:(a=u.tooltip)==null?void 0:a.text}),z.jsx("span",{className:"rcb-chat-tooltip-tail",style:T})]})})},pp=({id:e,content:n,timeout:i})=>{var a,o;const{settings:u}=Ne(),{styles:f}=rt(),[A]=B.useState({toastPromptStyle:{...f.toastPromptStyle},toastPromptHoveredStyle:{...f.toastPromptHoveredStyle}}),{dismissToast:c}=wa(),[d,h]=B.useState(!1),v={color:(a=u.general)==null?void 0:a.primaryColor,borderColor:(o=u.general)==null?void 0:o.primaryColor,...A.toastPromptHoveredStyle};return B.useEffect(()=>{if(i){const y=setTimeout(()=>{c(e)},i);return()=>clearTimeout(y)}},[e,c,i]),typeof n=="string"?z.jsx("div",{onMouseEnter:()=>{h(!0)},onMouseLeave:()=>{h(!1)},style:d?v:A.toastPromptStyle,onMouseDown:async y=>{var k;(k=u.toast)!=null&&k.dismissOnClick&&(y.preventDefault(),await c(e))},className:"rcb-toast-prompt",children:n}):z.jsx(z.Fragment,{children:n})},hp=()=>{var e,n,i,a,o,u,f,A,c,d,h,v;const{styles:y}=rt(),{toasts:k}=mA(),C={bottom:`calc(${typeof((e=y.footerStyle)==null?void 0:e.height)=="number"?`${(n=y.footerStyle)==null?void 0:n.height}px`:((i=y.footerStyle)==null?void 0:i.height)??"50px"} + ${typeof((a=y.chatInputContainerStyle)==null?void 0:a.height)=="number"?`${(o=y.chatInputContainerStyle)==null?void 0:o.height}px`:((u=y.chatInputContainerStyle)==null?void 0:u.height)??"70px"} + 20px)`,width:300,minWidth:`calc(${typeof((f=y.chatWindowStyle)==null?void 0:f.width)=="number"?`${(A=y.chatWindowStyle)==null?void 0:A.width}px`:((c=y.chatWindowStyle)==null?void 0:c.width)??"375px"} / 2)`,maxWidth:`calc(${typeof((d=y.chatWindowStyle)==null?void 0:d.width)=="number"?`${(h=y.chatWindowStyle)==null?void 0:h.width}px`:((v=y.chatWindowStyle)==null?void 0:v.width)??"375px"} - 50px)`,...y.toastPromptContainerStyle};return z.jsx("div",{className:"rcb-toast-prompt-container",style:C,children:k.map(R=>z.jsx(pp,{id:R.id,content:R.content,timeout:R.timeout},R.id))})},vA=({file:e,fileType:n,fileUrl:i})=>{var a,o,u;const{settings:f}=Ne(),{styles:A}=rt(),c={backgroundColor:(a=f.general)==null?void 0:a.primaryColor,maxWidth:(o=f.userBubble)!=null&&o.showAvatar?"65%":"70%",...A.mediaDisplayContainerStyle};return z.jsx(z.Fragment,{children:i?z.jsxs(z.Fragment,{children:[n==="image"&&i&&z.jsx("div",{style:c,className:"rcb-media-display-image-container rcb-media-entry","data-testid":"media-display-image-container",children:z.jsx("img",{src:i,alt:"Image Display",className:"rcb-media-display-image"})}),n==="video"&&i&&z.jsx("div",{style:c,className:"rcb-media-display-video-container rcb-media-entry","data-testid":"media-display-video-container",children:z.jsxs("video",{controls:!0,className:"rcb-media-display-video",children:[z.jsx("source",{src:i,type:e.type}),"Your browser does not support the video tag."]})}),n==="audio"&&i&&z.jsxs("audio",{"data-testid":"media-display-audio-container",style:{maxWidth:(u=f.userBubble)!=null&&u.showAvatar?"65%":"70%"},controls:!0,className:"rcb-media-display-audio rcb-media-entry",children:[z.jsx("source",{src:i,type:e.type}),"Your browser does not support the audio tag."]})]}):z.jsx(z.Fragment,{})})},yA=async e=>{if(!e)return{fileType:null,fileUrl:null};const n=e.type.split("/")[0];if(!["image","video","audio"].includes(n))return{fileType:null,fileUrl:null};try{return{fileType:n,fileUrl:await new Promise((i,a)=>{const o=new FileReader;o.onload=()=>i(o.result),o.onerror=()=>a(new Error("File reading failed")),o.readAsDataURL(e)})}}catch(i){return console.error(i),{fileType:null,fileUrl:null}}},gp=()=>{var e,n,i,a,o,u;const{settings:f}=Ne(),{styles:A}=rt(),{injectMessage:c,simulateStreamMessage:d,streamMessage:h,removeMessage:v,endStreamMessage:y}=_o(),{getCurrPath:k,getPrevPath:C,goToPath:R,blockAllowsAttachment:E}=Qs(),{flowRef:T,inputRef:Q}=St(),M=T.current,{showToast:U,dismissToast:j}=wa(),{dispatchRcbEvent:N}=Xn(),{toggleChatWindow:W}=wn(),{setTextAreaValue:ee}=Lo(),{handleSubmitText:G}=xa(),Y={cursor:`url("${(e=f.general)==null?void 0:e.actionDisabledIcon}"), auto`,...A.fileAttachmentButtonStyle,...A.fileAttachmentButtonDisabledStyle},Z={backgroundImage:`url(${(n=f.fileAttachment)==null?void 0:n.icon})`,fill:"#a6a6a6",...A.fileAttachmentIconStyle},$={backgroundImage:`url(${(i=f.fileAttachment)==null?void 0:i.icon})`,fill:"#a6a6a6",...A.fileAttachmentIconStyle,...A.fileAttachmentIconDisabledStyle};return z.jsxs("label",{"aria-label":((a=f.ariaLabel)==null?void 0:a.fileAttachmentButton)??"upload file",role:"button",className:E?"rcb-attach-button-enabled":"rcb-attach-button-disabled",style:E?{...A.fileAttachmentButtonStyle}:Y,children:[z.jsx("input",{className:"rcb-attach-input",role:"file",type:"file",onChange:async ae=>{var ie,le,be,he;const me=ae.target.files;if(!me)return;const L=Array.from(me);if(ae.target.value="",(ie=f.event)!=null&&ie.rcbUserUploadFile&&(await N(we.USER_UPLOAD_FILE,{files:L})).defaultPrevented)return;const Be=k();if(!Be)return;const F=M[Be];if(!F)return;const ve=F.file;if(ve!=null){const fe=[];for(let ce=0;ce<L.length;ce++){if(fe.push(L[ce].name),(le=f.fileAttachment)==null||!le.showMediaDisplay)continue;const ge=await yA(L[ce]);!ge.fileType||!ge.fileUrl||await c(z.jsx(vA,{file:L[ce],fileType:ge.fileType,fileUrl:ge.fileUrl}),"USER")}await G("📄 "+fe.join(", "),(be=f.fileAttachment)==null?void 0:be.sendFileName),await ve({userInput:(he=Q.current)==null?void 0:he.value,prevPath:C(),currPath:k(),goToPath:R,setTextAreaValue:ee,injectMessage:c,simulateStreamMessage:d,streamMessage:h,removeMessage:v,endStreamMessage:y,toggleChatWindow:W,showToast:U,dismissToast:j,files:L})}},multiple:(o=f.fileAttachment)==null?void 0:o.multiple,accept:(u=f.fileAttachment)==null?void 0:u.accept,disabled:!E}),(()=>{var ae,ie;const le=E?(ae=f.fileAttachment)==null?void 0:ae.icon:(ie=f.fileAttachment)==null?void 0:ie.iconDisabled;return le&&typeof le!="string"?le&&z.jsx("span",{className:E?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",children:z.jsx(le,{style:E?Z:$})}):z.jsx("span",{className:E?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",style:E?Z:$})})()]})},mp=()=>{var e,n,i,a,o,u;const{settings:f}=Ne(),{styles:A}=rt(),{syncedTextAreaDisabledRef:c}=Ct(),{inputRef:d}=St(),{textAreaDisabled:h,setTextAreaValue:v}=Lo(),y=B.useRef(null),k=B.useRef(null),[C,R]=B.useState(!1),E={cursor:`url("${(e=f.general)==null?void 0:e.actionDisabledIcon}"), auto`,...A.emojiButtonStyle,...A.emojiButtonDisabledStyle},T={backgroundImage:`url(${(n=f.emoji)==null?void 0:n.icon})`,fill:"#a6a6a6",...A.emojiIconStyle},Q={backgroundImage:`url(${(i=f.emoji)==null?void 0:i.icon})`,fill:"#a6a6a6",...A.emojiIconStyle,...A.emojiIconDisabledStyle};return B.useEffect(()=>{const M=j=>{const N=j.composedPath();y.current&&!N.includes(y.current)&&k.current&&!N.includes(k.current)&&R(!1)},U=()=>{(()=>{if(y.current&&k.current){const j=k.current.getBoundingClientRect(),N=y.current.offsetHeight,W=j.top-N-8;y.current.style.left=`${j.left}px`,y.current.style.top=`${W}px`}})()};return document.addEventListener("mousedown",M),window.addEventListener("resize",U),()=>{document.removeEventListener("mousedown",M),window.removeEventListener("resize",U)}},[]),z.jsxs(z.Fragment,{children:[z.jsx("div",{"aria-label":((a=f.ariaLabel)==null?void 0:a.emojiButton)??"emoji picker",role:"button",ref:k,className:h?"rcb-emoji-button-disabled":"rcb-emoji-button-enabled",style:h?E:{...A.emojiButtonStyle},onMouseDown:M=>{M.preventDefault(),c.current?R(!1):R(U=>!U)},children:(()=>{var M,U;const j=h?(M=f.emoji)==null?void 0:M.iconDisabled:(U=f.emoji)==null?void 0:U.icon;return j&&typeof j!="string"?j&&z.jsx("span",{className:h?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled",children:z.jsx(j,{style:h?Q:T})}):z.jsx("span",{className:h?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled",style:h?Q:T})})()}),C&&z.jsx("div",{className:"rcb-emoji-button-popup",ref:y,children:(u=(o=f.emoji)==null?void 0:o.list)==null?void 0:u.map((M,U)=>z.jsx("span",{className:"rcb-emoji",onMouseDown:j=>((N,W)=>{N.preventDefault(),d.current&&(v(d.current.value+W),setTimeout(()=>{const ee=d.current;if(ee){ee.focus();const G=ee.value.length;ee.setSelectionRange(G,G)}},50)),R(!1)})(j,M),children:M},U))})]})},vp=()=>{var e,n,i;const{settings:a}=Ne(),{styles:o}=rt(),{audioToggledOn:u,toggleAudio:f}=hA(),A={backgroundImage:`url(${(e=a.audio)==null?void 0:e.icon})`,fill:"#fcec3d",...o.audioIconStyle},c={backgroundImage:`url(${(n=a.audio)==null?void 0:n.iconDisabled})`,fill:"#e8eaed",...o.audioIconStyle,...o.audioIconDisabledStyle};return z.jsx("div",{"aria-label":((i=a.ariaLabel)==null?void 0:i.audioButton)??"toggle audio",role:"button",onMouseDown:async d=>{d.preventDefault(),await f()},style:u?{...o.audioButtonStyle}:{...o.audioButtonStyle,...o.audioButtonDisabledStyle},children:(()=>{var d,h;const v=u?(d=a.audio)==null?void 0:d.icon:(h=a.audio)==null?void 0:h.iconDisabled;return v&&typeof v!="string"?v&&z.jsx("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",children:z.jsx(v,{style:u?A:c,"data-testid":"rcb-audio-icon-svg"})}):z.jsx("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",style:u?A:c})})()})},yp=()=>{var e,n;const{settings:i}=Ne(),{styles:a}=rt(),{toggleChatWindow:o}=wn(),u={backgroundImage:`url(${(e=i.header)==null?void 0:e.closeChatIcon})`,fill:"#e8eaed",stroke:"#e8eaed",...a.closeChatIconStyle};return z.jsx("div",{"aria-label":((n=i.ariaLabel)==null?void 0:n.closeChatButton)??"close chat",role:"button",onMouseDown:f=>{f.stopPropagation(),o(!1)},style:{...a.closeChatButtonStyle},children:(()=>{var f;const A=(f=i.header)==null?void 0:f.closeChatIcon;return A&&typeof A!="string"?A&&z.jsx("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",children:z.jsx(A,{style:u})}):z.jsx("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",style:u})})()})},bp=()=>{var e,n,i;const{settings:a}=Ne(),{styles:o}=rt(),{notificationsToggledOn:u,toggleNotifications:f}=(()=>{const{notificationsToggledOn:d,toggleNotifications:h,playNotificationSound:v}=ql();return{notificationsToggledOn:d,toggleNotifications:h,playNotificationSound:v}})(),A={backgroundImage:`url(${(e=a.notification)==null?void 0:e.icon})`,fill:"#fcec3d",...o.notificationIconStyle},c={backgroundImage:`url(${(n=a.notification)==null?void 0:n.iconDisabled})`,fill:"#e8eaed",...o.notificationIconStyle,...o.notificationIconDisabledStyle};return z.jsx("div",{"aria-label":((i=a.ariaLabel)==null?void 0:i.notificationButton)??"toggle notifications",role:"button",onMouseDown:async d=>{d.preventDefault(),await f()},style:u?{...o.notificationButtonStyle}:{...o.notificationButtonStyle,...o.notificationButtonDisabledStyle},children:(()=>{var d,h;const v=u?(d=a.notification)==null?void 0:d.icon:(h=a.notification)==null?void 0:h.iconDisabled;return v&&typeof v!="string"?v&&z.jsx("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",children:z.jsx(v,{style:u?A:c,"data-testid":"rcb-notification-icon-svg"})}):z.jsx("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",style:u?A:c})})()})},wp=()=>{var e,n,i;const{settings:a}=Ne(),{styles:o}=rt(),{injectMessage:u}=_o(),{inputRef:f}=St(),{voiceToggledOn:A,toggleVoice:c}=nc(),{setInputLength:d,setTextAreaValue:h,textAreaDisabled:v}=Lo(),{handleSubmitText:y}=xa(),k=B.useRef([]),[C,R]=B.useState(!1);B.useEffect(()=>{var U;(U=a.voice)!=null&&U.sendAsAudio?(M(),k.current=[]):y()},[C]),B.useEffect(()=>{A?((U,j,N,W,ee,G,Y)=>{var Z;(Z=U.voice)!=null&&Z.sendAsAudio?lp(N,G):sp(U,j,N,W,ee,Y)})(a,c,Q,h,d,k,f):ec()},[A]);const E={backgroundImage:`url(${(e=a.voice)==null?void 0:e.icon})`,fill:"#9aa0a6",...o.voiceIconStyle},T={backgroundImage:`url(${(n=a.voice)==null?void 0:n.iconDisabled})`,fill:"#9aa0a6",...o.voiceIconStyle,...o.voiceIconDisabledStyle},Q=()=>{R(U=>!U)},M=async()=>{const U=new Blob(k.current,{type:"audio/wav"}),j=new File([U],"voice-input.wav",{type:"audio/wav"}),N=await yA(j);!N.fileType||!N.fileUrl||await u(z.jsx(vA,{file:j,fileType:N.fileType,fileUrl:N.fileUrl}),"USER")};return z.jsx("div",{"aria-label":((i=a.ariaLabel)==null?void 0:i.voiceButton)??"toggle voice",role:"button",onMouseDown:async U=>{U.preventDefault(),!v&&await c()},style:A&&!v?{...o.voiceButtonStyle}:{...o.voiceButtonStyle,...o.voiceButtonDisabledStyle},className:A&&!v?"rcb-voice-button-enabled":"rcb-voice-button-disabled",children:(()=>{var U,j;const N=A?(U=a.voice)==null?void 0:U.icon:(j=a.voice)==null?void 0:j.iconDisabled;return N&&typeof N!="string"?N&&z.jsx("span",{className:"rcb-voice-icon "+(A&&!v?"on":""),children:z.jsx(N,{style:A&&!v?E:T})}):z.jsx("span",{className:"rcb-voice-icon"+(A&&!v?"-on":""),"data-testid":"rcb-voice-icon",style:A&&!v?E:T})})()})},xp=()=>{var e,n,i,a,o,u,f,A;const{settings:c}=Ne(),{styles:d}=rt(),{textAreaDisabled:h}=Ct(),[v,y]=B.useState(!1),{handleSubmitText:k}=xa(),C={backgroundColor:(e=c.general)==null?void 0:e.primaryColor,...d.sendButtonStyle},R={cursor:`url("${(n=c.general)==null?void 0:n.actionDisabledIcon}"), auto`,backgroundColor:(i=c.general)==null?void 0:i.primaryColor,...d.sendButtonStyle,...d.sendButtonDisabledStyle},E={backgroundColor:(a=c.general)==null?void 0:a.secondaryColor,...d.sendButtonStyle,...d.sendButtonHoveredStyle},T={backgroundImage:`url(${(o=c.chatInput)==null?void 0:o.sendButtonIcon})`,fill:"#fff",...d.sendIconStyle},Q={backgroundImage:`url(${(u=c.chatInput)==null?void 0:u.sendButtonIcon})`,fill:"#fff",...d.sendIconStyle,...d.sendIconDisabledStyle},M={backgroundImage:`url(${(f=c.chatInput)==null?void 0:f.sendButtonIcon})`,fill:"#fff",...d.sendIconStyle,...d.sendIconHoveredStyle};return z.jsx("div",{"aria-label":((A=c.ariaLabel)==null?void 0:A.sendButton)??"send message",role:"button",onMouseEnter:()=>{y(!0)},onMouseLeave:()=>{y(!1)},onMouseDown:async U=>{U==null||U.preventDefault(),!h&&await k()},style:h?R:v?E:C,className:"rcb-send-button",children:(()=>{var U;const j=(U=c.chatInput)==null?void 0:U.sendButtonIcon;return j&&typeof j!="string"?j&&z.jsx("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",children:z.jsx(j,{style:h?Q:v?M:T})}):z.jsx("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",style:h?Q:v?M:T})})()})},Sp=(e,n)=>{var i,a,o,u,f,A,c,d,h;const v={[mt.AUDIO_BUTTON]:(i=e.audio)==null?void 0:i.disabled,[mt.CLOSE_CHAT_BUTTON]:(a=e.general)==null?void 0:a.embedded,[mt.EMOJI_PICKER_BUTTON]:(o=e.emoji)==null?void 0:o.disabled,[mt.FILE_ATTACHMENT_BUTTON]:(u=e.fileAttachment)==null?void 0:u.disabled,[mt.NOTIFICATION_BUTTON]:(f=e.notification)==null?void 0:f.disabled,[mt.SEND_MESSAGE_BUTTON]:!1,[mt.VOICE_MESSAGE_BUTTON]:(A=e.voice)==null?void 0:A.disabled},y={},k=C=>C?C.map(R=>{if(typeof R=="string"){if((E=>Object.values(mt).includes(E))(R)&&!v[R]){if(y[R])return y[R];const E=n[R];if(typeof E=="function"){const T=E();return y[R]=T,T}return null}return null}return R}).filter(R=>R!==null):[];return{header:k((c=e.header)==null?void 0:c.buttons),chatInput:k((d=e.chatInput)==null?void 0:d.buttons),footer:k((h=e.footer)==null?void 0:h.buttons)}},kp=()=>{const{settings:e}=Ne(),n=B.useMemo(()=>({[mt.CLOSE_CHAT_BUTTON]:()=>z.jsx(yp,{}),[mt.AUDIO_BUTTON]:()=>z.jsx(vp,{}),[mt.NOTIFICATION_BUTTON]:()=>z.jsx(bp,{}),[mt.EMOJI_PICKER_BUTTON]:()=>z.jsx(mp,{}),[mt.FILE_ATTACHMENT_BUTTON]:()=>z.jsx(gp,{}),[mt.SEND_MESSAGE_BUTTON]:()=>z.jsx(xp,{}),[mt.VOICE_MESSAGE_BUTTON]:()=>z.jsx(wp,{})}),[]),{header:i,chatInput:a,footer:o}=B.useMemo(()=>Sp(e,n),[e,n]);return{headerButtons:B.useMemo(()=>i,[i]),chatInputButtons:B.useMemo(()=>a,[a]),footerButtons:B.useMemo(()=>o,[o])}},rc=()=>{const{settings:e}=Ne(),{styles:n}=rt(),{setSyncedMessages:i,syncedMessagesRef:a}=Vl(),{isLoadingChatHistory:o,setIsLoadingChatHistory:u,hasChatHistoryLoaded:f,setHasChatHistoryLoaded:A}=Ct(),{chatBodyRef:c}=St(),{dispatchRcbEvent:d}=Xn(),h=B.useCallback(async()=>{var v,y;const k=Jl();if(!k||(v=e.event)!=null&&v.rcbLoadChatHistory&&(await d(we.LOAD_CHAT_HISTORY,{})).defaultPrevented)return;u(!0);const C=((y=c.current)==null?void 0:y.scrollHeight)??0;((R,E,T,Q,M,U,j,N,W)=>{var ee;if(AA=!0,T!=null)try{const G=Kr(z.jsx($f,{}),"SYSTEM"),Y=M.current.slice(1);Q([G,...Y]);const Z=T.map($=>{if($.type==="object"){const ae=pA($.content,R,E);return{...$,content:ae}}return $});setTimeout(()=>{var $;const ae=M.current.slice(1);let ie=($=R.chatHistory)!=null&&$.autoLoad?Kr(z.jsx(z.Fragment,{}),"SYSTEM"):Kr(z.jsx(qf,{}),"SYSTEM");Q([...Z,ie,...ae]),W(!0)},500),setTimeout(()=>{if(!U.current)return;const{scrollHeight:$}=U.current,ae=$-j;U.current.scrollTop+=ae,N(!1)},510)}catch{qr.removeItem((ee=R.chatHistory)==null?void 0:ee.storageKey)}})(e,n,k,i,a,c,C,u,A)},[e,n,d,a,c,u,A]);return{isLoadingChatHistory:o,setIsLoadingChatHistory:u,hasChatHistoryLoaded:f,showChatHistory:h}},Ep=()=>{var e,n,i;const{settings:a}=Ne(),{styles:o}=rt(),{showChatHistory:u}=rc(),[f,A]=B.useState(!1),c={color:(e=a.general)==null?void 0:e.primaryColor,borderColor:(n=a.general)==null?void 0:n.primaryColor,...o.chatHistoryButtonStyle,...o.chatHistoryButtonHoveredStyle};return z.jsx("div",{className:"rcb-view-history-container",children:z.jsx("div",{onMouseEnter:()=>{A(!0)},onMouseLeave:()=>{A(!1)},style:f?c:{...o.chatHistoryButtonStyle},onMouseDown:d=>{d.preventDefault(),u()},className:"rcb-view-history-button",role:"button",tabIndex:0,children:z.jsx("p",{children:(i=a.chatHistory)==null?void 0:i.viewChatHistoryButtonText})})})},Cp=()=>{var e,n,i,a;const o=Hs(),{settings:u}=Ne(),{replaceMessages:f}=_o(),{isBotTyping:A,isChatWindowOpen:c,setUnreadCount:d,setSyncedIsChatWindowOpen:h,setSyncedTextAreaDisabled:v,setSyncedAudioToggledOn:y,setSyncedVoiceToggledOn:k,setSyncedIsScrolling:C,syncedIsScrollingRef:R,syncedIsChatWindowOpenRef:E}=Ct(),{chatBodyRef:T}=St(),{viewportHeight:Q,setViewportHeight:M,setViewportWidth:U,scrollToBottom:j}=wn(),{setUpNotifications:N}=ql(),{handleFirstInteraction:W}=(()=>{var Z;const{settings:$}=Ne(),{hasInteractedPage:ae,setHasInteractedPage:ie,hasFlowStarted:le,setHasFlowStarted:be}=Ct(),he=B.useCallback(()=>{var me;if(ie(!0),!le&&((me=$.general)==null?void 0:me.flowStartTrigger)==="ON_PAGE_INTERACT"&&be(!0),!window.SpeechSynthesisUtterance)return void console.info("Speech Synthesis API is not supported in this environment.");const L=new window.SpeechSynthesisUtterance;L.text="",L.onend=()=>{window.removeEventListener("click",he),window.removeEventListener("keydown",he),window.removeEventListener("touchstart",he)},window.speechSynthesis.speak(L)},[le,(Z=$.general)==null?void 0:Z.flowStartTrigger]);return{hasInteractedPage:ae,handleFirstInteraction:he}})(),{showChatHistory:ee}=rc(),G=B.useRef(0),Y=B.useRef(!1);B.useEffect(()=>(window.addEventListener("click",W),window.addEventListener("keydown",W),window.addEventListener("touchstart",W),()=>{window.removeEventListener("click",W),window.removeEventListener("keydown",W),window.removeEventListener("touchstart",W)}),[]),B.useEffect(()=>{const Z=T.current;if(!Z)return;const $=()=>{Y.current||(Y.current=!0,requestAnimationFrame(()=>{var ae,ie;if(!Z)return;const{scrollTop:le,clientHeight:be,scrollHeight:he}=Z,me=le+be<he-(((ae=u.chatWindow)==null?void 0:ae.messagePromptOffset)??30);C(me),R.current=me,me||(le+be>=he-1&&(Z.scrollTop=he-be-1),(E.current||(ie=u.general)!=null&&ie.embedded)&&d(0)),Y.current=!1}))};return Z.addEventListener("wheel",$,{passive:!0}),Z.addEventListener("touchmove",$,{passive:!0}),()=>{Z.removeEventListener("wheel",$),Z.removeEventListener("touchmove",$)}},[]),B.useEffect(()=>{var Z,$,ae;v((Z=u.chatInput)==null?void 0:Z.disabled),h(($=u.chatWindow)==null?void 0:$.defaultOpen),y((ae=u.audio)==null?void 0:ae.defaultToggledOn),setTimeout(()=>{var ie;k((ie=u.voice)==null?void 0:ie.defaultToggledOn)},1)},[]),B.useEffect(()=>{var Z;(Z=u.notification)!=null&&Z.disabled||N()},[(e=u.notification)==null?void 0:e.disabled]),B.useEffect(()=>{!R.current&&T!=null&&T.current&&j()},[A]),B.useEffect(()=>{var Z,$;if((Z=u.chatHistory)!=null&&Z.disabled)qr&&qr.removeItem(_s);else if(Kl(u),Jl().length>0){const ae=Kr(z.jsx(Ep,{}),"SYSTEM");f([ae]),($=u.chatHistory)!=null&&$.autoLoad&&ee()}},[(n=u.chatHistory)==null?void 0:n.storageKey,(i=u.chatHistory)==null?void 0:i.maxEntries,(a=u.chatHistory)==null?void 0:a.disabled]),B.useEffect(()=>{var Z;o||(Z=u.general)!=null&&Z.embedded||!navigator.virtualKeyboard||(navigator.virtualKeyboard.overlaysContent=!0,navigator.virtualKeyboard.addEventListener("geometrychange",$=>{if(!$.target)return;const{x:ae,y:ie,width:le,height:be}=$.target.boundingRect;ae==0&&ie==0&&le==0&&be==0?(setTimeout(()=>{var he;M((he=window.visualViewport)==null?void 0:he.height)},101),setTimeout(()=>{var he,me;Q!=((he=window.visualViewport)==null?void 0:he.height)&&M((me=window.visualViewport)==null?void 0:me.height)},1001)):setTimeout(()=>{var he;M(((he=window.visualViewport)==null?void 0:he.height)-be)},101)}))},[o]),B.useEffect(()=>{var Z,$,ae,ie;if(o)return;c&&(M((Z=window.visualViewport)==null?void 0:Z.height),U(($=window.visualViewport)==null?void 0:$.width));const le=()=>window.scrollTo({top:0,left:0,behavior:"auto"}),be=()=>G.current=window.scrollY,he=()=>{var L,Be;M((L=window.visualViewport)==null?void 0:L.height),U((Be=window.visualViewport)==null?void 0:Be.width)},me=()=>{var L;window.removeEventListener("scroll",le),window.removeEventListener("scroll",be),(L=window.visualViewport)==null||L.removeEventListener("resize",he)};return c?(me(),document.body.style.position="fixed",window.addEventListener("scroll",le),(ae=window.visualViewport)==null||ae.addEventListener("resize",he)):(document.body.style.position="static",me(),window.scrollTo({top:G.current,left:0,behavior:"auto"}),window.addEventListener("scroll",be),(ie=window.visualViewport)==null||ie.removeEventListener("resize",he)),me},[c,o])},Pp="https://cdn.jsdelivr.net/gh/react-chatbotify/community-themes/themes",Tp="2592000",bA="RCB_THEME_CACHE_DATA",wA=async(e,n)=>{const{id:i,version:a,baseUrl:o=Pp,cacheDuration:u=Tp}=n,f=a||await(async(T,Q)=>{const M=`${Q}/${T}/meta.json`;try{const U=await fetch(M);return U.ok?(await U.json()).version:(console.error(`Failed to fetch meta.json from ${M}`),null)}catch(U){return console.error(`Failed to fetch meta.json from ${M}`,U),null}})(i,o);if(!f)return console.error(`Unable to find version for theme: ${i}`),{settings:{},inlineStyles:{},cssStylesText:""};const A=((T,Q,M)=>{const U=localStorage.getItem(`${bA}_${T}_${Q}`);if(!U)return null;try{const j=JSON.parse(U),N=new Date().getTime(),W=Math.floor(N/1e3);return j.cacheDate+M>=W?j:null}catch(j){return console.error(`Unable to fetch cache for ${T}`,j),null}})(i,f,u);if(A){const T=xA(e,A.cssStylesText);return{settings:A.settings,inlineStyles:A.inlineStyles,cssStylesText:T}}const c=`${o}/${i}/${f}/styles.css`,d=`${o}/${i}/${f}/settings.json`,h=`${o}/${i}/${f}/styles.json`;let v="";const y=await fetch(c);y.ok?v=await y.text():console.info(`Could not fetch styles.css from ${c}`);const k=await fetch(d);let C={};k.ok?C=await k.json():console.info(`Could not fetch settings.json from ${d}`);const R=await fetch(h);let E={};return R.ok?E=await R.json():console.info(`Could not fetch styles.json from ${h}`),((T,Q,M,U,j)=>{const N=new Date().getTime(),W={settings:M,inlineStyles:U,cssStylesText:j,cacheDate:Math.floor(N/1e3)};localStorage.setItem(`${bA}_${T}_${Q}`,JSON.stringify(W))})(i,f,C,E,v),{settings:C,inlineStyles:E,cssStylesText:xA(e,v)}},xA=(e,n)=>n.split(new RegExp("(?<=})")).map(i=>{const a=i.trim();return a.startsWith("@import")||a.startsWith("@keyframes")||a.startsWith("@media")?a:a?`#${e} ${a}`:""}).join(`
105
+ `+s.stack}}var bi=i.ReactCurrentDispatcher,wi=i.ReactDebugCurrentFrame,xi=0,Co=1,ys=2,Wr=3,Tl=4,Du=0,Po=1,To=2,Iu=12800;function Bu(l){return console.error(l),null}function Yr(){}function Si(l,t,r,s,p,b,S,D,H){var X=[],oe=new Set,se={destination:null,responseState:t,progressiveChunkSize:s===void 0?Iu:s,status:Du,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:oe,pingedTasks:X,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:p===void 0?Bu:p,onAllReady:b===void 0?Yr:b,onShellReady:S===void 0?Yr:S,onShellError:D===void 0?Yr:D,onFatalError:H===void 0?Yr:H},pe=da(se,0,null,r,!1,!1);pe.parentFlushed=!0;var Te=Gr(se,l,null,pe,oe,ni,ri,fu);return X.push(Te),se}function rr(l,t){var r=l.pingedTasks;r.push(t),r.length===1&&f(function(){return Is(l)})}function bs(l,t){return{id:yr,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:t,errorDigest:null}}function Gr(l,t,r,s,p,b,S,D){l.allPendingTasks++,r===null?l.pendingRootTasks++:r.pendingTasks++;var H={node:t,ping:function(){return rr(l,H)},blockedBoundary:r,blockedSegment:s,abortSet:p,legacyContext:b,context:S,treeContext:D};return H.componentStack=null,p.add(H),H}function da(l,t,r,s,p,b){return{status:xi,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:s,boundary:r,lastPushedText:p,textEmbedded:b}}var or=null;function Vn(){return or===null||or.componentStack===null?"":Eo(or.componentStack)}function ar(l,t){l.componentStack={tag:0,parent:l.componentStack,type:t}}function ki(l,t){l.componentStack={tag:1,parent:l.componentStack,type:t}}function fa(l,t){l.componentStack={tag:2,parent:l.componentStack,type:t}}function In(l){l.componentStack===null?o("Unexpectedly popped too many stack frames. This is a bug in React."):l.componentStack=l.componentStack.parent}var pa=null;function ws(l,t){{var r;typeof t=="string"?r=t:t&&typeof t.message=="string"?r=t.message:r=String(t);var s=pa||Vn();pa=null,l.errorMessage=r,l.errorComponentStack=s}}function ha(l,t){var r=l.onError(t);if(r!=null&&typeof r!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof r+'" instead');return r}function ga(l,t){var r=l.onShellError;r(t);var s=l.onFatalError;s(t),l.destination!==null?(l.status=To,Q(l.destination,t)):(l.status=Po,l.fatalError=t)}function Dl(l,t,r){ar(t,"Suspense");var s=t.blockedBoundary,p=t.blockedSegment,b=r.fallback,S=r.children,D=new Set,H=bs(l,D),X=p.chunks.length,oe=da(l,X,H,p.formatContext,!1,!1);p.children.push(oe),p.lastPushedText=!1;var se=da(l,0,null,p.formatContext,!1,!1);se.parentFlushed=!0,t.blockedBoundary=H,t.blockedSegment=se;try{if(Do(l,t,S),jt(se.chunks,l.responseState,se.lastPushedText,se.textEmbedded),se.status=Co,Vr(H,se),H.pendingTasks===0){In(t);return}}catch(Te){se.status=Tl,H.forceClientRender=!0,H.errorDigest=ha(l,Te),ws(H,Te)}finally{t.blockedBoundary=s,t.blockedSegment=p}var pe=Gr(l,b,s,oe,D,t.legacyContext,t.context,t.treeContext);pe.componentStack=t.componentStack,l.pingedTasks.push(pe),In(t)}function Mu(l,t,r,s){ar(t,r);var p=t.blockedSegment,b=_r(p.chunks,r,s,l.responseState,p.formatContext);p.lastPushedText=!1;var S=p.formatContext;p.formatContext=Kn(S,r,s),Do(l,t,b),p.formatContext=S,Ba(p.chunks,r),p.lastPushedText=!1,In(t)}function Il(l){return l.prototype&&l.prototype.isReactComponent}function ma(l,t,r,s,p){var b={};bu(t,b);var S=r(s,p);return wu(r,s,S,p)}function xs(l,t,r,s,p){var b=r.render();r.props!==p&&(Cs||o("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",at(s)||"a component"),Cs=!0);{var S=s.childContextTypes;if(S!=null){var D=t.legacyContext,H=ls(r,s,D,S);t.legacyContext=H,Gt(l,t,b),t.legacyContext=D;return}}Gt(l,t,b)}function Bl(l,t,r,s){fa(t,r);var p=kr(r,t.legacyContext),b=wl(r,s,p);ca(b,r,s,p),xs(l,t,b,r,s),In(t)}var Ss={},va={},ks={},Es={},Cs=!1,Ml={},Rl=!1,Ps=!1,Ol=!1;function Ru(l,t,r,s){var p;if(p=kr(r,t.legacyContext),ki(t,r),r.prototype&&typeof r.prototype.render=="function"){var b=at(r)||"Unknown";Ss[b]||(o("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",b,b),Ss[b]=!0)}var S=ma(l,t,r,s,p),D=hi();if(typeof S=="object"&&S!==null&&typeof S.render=="function"&&S.$$typeof===void 0){var H=at(r)||"Unknown";va[H]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",H,H,H),va[H]=!0)}if(typeof S=="object"&&S!==null&&typeof S.render=="function"&&S.$$typeof===void 0){{var X=at(r)||"Unknown";va[X]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",X,X,X),va[X]=!0)}ca(S,r,s,p),xs(l,t,S,r,s)}else if(Ou(r),D){var oe=t.treeContext,se=1,pe=0;t.treeContext=fs(oe,se,pe);try{Gt(l,t,S)}finally{t.treeContext=oe}}else Gt(l,t,S);In(t)}function Ou(l){{if(l&&l.childContextTypes&&o("%s(...): childContextTypes cannot be defined on a function component.",l.displayName||l.name||"Component"),l.defaultProps!==void 0){var t=at(l)||"Unknown";Ml[t]||(o("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",t),Ml[t]=!0)}if(typeof l.getDerivedStateFromProps=="function"){var r=at(l)||"Unknown";Es[r]||(o("%s: Function components do not support getDerivedStateFromProps.",r),Es[r]=!0)}if(typeof l.contextType=="object"&&l.contextType!==null){var s=at(l)||"Unknown";ks[s]||(o("%s: Function components do not support contextType.",s),ks[s]=!0)}}}function _l(l,t){if(l&&l.defaultProps){var r=nn({},t),s=l.defaultProps;for(var p in s)r[p]===void 0&&(r[p]=s[p]);return r}return t}function _u(l,t,r,s,p){ki(t,r.render);var b=ma(l,t,r.render,s,p),S=hi();if(S){var D=t.treeContext,H=1,X=0;t.treeContext=fs(D,H,X);try{Gt(l,t,b)}finally{t.treeContext=D}}else Gt(l,t,b);In(t)}function Ts(l,t,r,s,p){var b=r.type,S=_l(b,s);Ei(l,t,b,S,p)}function Lu(l,t,r,s){r._context===void 0?r!==r.Consumer&&(Ol||(Ol=!0,o("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):r=r._context;var p=s.children;typeof p!="function"&&o("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var b=xo(r),S=p(b);Gt(l,t,S)}function sn(l,t,r,s){var p=r._context,b=s.value,S=s.children,D;D=t.context,t.context=cs(p,b),Gt(l,t,S),t.context=cu(p),D!==t.context&&o("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Fu(l,t,r,s,p){ar(t,"Lazy");var b=r._payload,S=r._init,D=S(b),H=_l(D,s);Ei(l,t,D,H,p),In(t)}function Ei(l,t,r,s,p){if(typeof r=="function")if(Il(r)){Bl(l,t,r,s);return}else{Ru(l,t,r,s);return}if(typeof r=="string"){Mu(l,t,r,s);return}switch(r){case iu:case au:case Xa:case Ja:case Va:{Gt(l,t,s.children);return}case qi:{ar(t,"SuspenseList"),Gt(l,t,s.children),In(t);return}case ll:throw new Error("ReactDOMServer does not yet support scope components.");case Ji:{Dl(l,t,s);return}}if(typeof r=="object"&&r!==null)switch(r.$$typeof){case yo:{_u(l,t,r,s,p);return}case Ki:{Ts(l,t,r,s,p);return}case Jo:{sn(l,t,r,s);return}case qo:{Lu(l,t,r,s);return}case qa:{Fu(l,t,r,s);return}}var b="";throw(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).length===0)&&(b+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(r==null?r:typeof r)+"."+b))}function Qu(l,t){typeof Symbol=="function"&&l[Symbol.toStringTag]==="Generator"&&(Rl||o("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),Rl=!0),l.entries===t&&(Ps||o("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ps=!0)}function Gt(l,t,r){try{return Hu(l,t,r)}catch(s){throw typeof s=="object"&&s!==null&&typeof s.then=="function"||(pa=pa!==null?pa:Vn()),s}}function Hu(l,t,r){if(t.node=r,typeof r=="object"&&r!==null){switch(r.$$typeof){case sl:{var s=r,p=s.type,b=s.props,S=s.ref;Ei(l,t,p,b,S);return}case Ga:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case qa:{var D=r,H=D._payload,X=D._init,oe;try{oe=X(H)}catch(ir){throw typeof ir=="object"&&ir!==null&&typeof ir.then=="function"&&ar(t,"Lazy"),ir}Gt(l,t,oe);return}}if(Ut(r)){Ll(l,t,r);return}var se=Ko(r);if(se){Qu(r,se);var pe=se.call(r);if(pe){var Te=pe.next();if(!Te.done){var Ye=[];do Ye.push(Te.value),Te=pe.next();while(!Te.done);Ll(l,t,Ye);return}return}}var Tt=Object.prototype.toString.call(r);throw new Error("Objects are not valid as a React child (found: "+(Tt==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":Tt)+"). If you meant to render a collection of children, use an array instead.")}if(typeof r=="string"){var Xr=t.blockedSegment;Xr.lastPushedText=xt(t.blockedSegment.chunks,r,l.responseState,Xr.lastPushedText);return}if(typeof r=="number"){var Jr=t.blockedSegment;Jr.lastPushedText=xt(t.blockedSegment.chunks,""+r,l.responseState,Jr.lastPushedText);return}typeof r=="function"&&o("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function Ll(l,t,r){for(var s=r.length,p=0;p<s;p++){var b=t.treeContext;t.treeContext=fs(b,s,p);try{Do(l,t,r[p])}finally{t.treeContext=b}}}function Fl(l,t,r){var s=t.blockedSegment,p=s.chunks.length,b=da(l,p,null,s.formatContext,s.lastPushedText,!0);s.children.push(b),s.lastPushedText=!1;var S=Gr(l,t.node,t.blockedBoundary,b,t.abortSet,t.legacyContext,t.context,t.treeContext);t.componentStack!==null&&(S.componentStack=t.componentStack.parent);var D=S.ping;r.then(D,D)}function Do(l,t,r){var s=t.blockedSegment.formatContext,p=t.legacyContext,b=t.context,S=null;S=t.componentStack;try{return Gt(l,t,r)}catch(D){if(gs(),typeof D=="object"&&D!==null&&typeof D.then=="function"){Fl(l,t,D),t.blockedSegment.formatContext=s,t.legacyContext=p,t.context=b,Cr(b),t.componentStack=S;return}else throw t.blockedSegment.formatContext=s,t.legacyContext=p,t.context=b,Cr(b),t.componentStack=S,D}}function Ql(l,t,r,s){var p=ha(l,s);if(t===null?ga(l,s):(t.pendingTasks--,t.forceClientRender||(t.forceClientRender=!0,t.errorDigest=p,ws(t,s),t.parentFlushed&&l.clientRenderedBoundaries.push(t))),l.allPendingTasks--,l.allPendingTasks===0){var b=l.onAllReady;b()}}function Nu(l){var t=this,r=l.blockedBoundary,s=l.blockedSegment;s.status=Wr,ya(t,r,s)}function Ds(l,t,r){var s=l.blockedBoundary,p=l.blockedSegment;if(p.status=Wr,s===null)t.allPendingTasks--,t.status!==To&&(t.status=To,t.destination!==null&&C(t.destination));else{if(s.pendingTasks--,!s.forceClientRender){s.forceClientRender=!0;var b=r===void 0?new Error("The render was aborted by the server without a reason."):r;s.errorDigest=t.onError(b);{var S="The server did not finish this Suspense boundary: ";b&&typeof b.message=="string"?b=S+b.message:b=S+String(b);var D=or;or=l;try{ws(s,b)}finally{or=D}}s.parentFlushed&&t.clientRenderedBoundaries.push(s)}if(s.fallbackAbortableTasks.forEach(function(X){return Ds(X,t,r)}),s.fallbackAbortableTasks.clear(),t.allPendingTasks--,t.allPendingTasks===0){var H=t.onAllReady;H()}}}function Vr(l,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null){var r=t.children[0];r.id=t.id,r.parentFlushed=!0,r.status===Co&&Vr(l,r)}else{var s=l.completedSegments;s.push(t)}}function ya(l,t,r){if(t===null){if(r.parentFlushed){if(l.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");l.completedRootSegment=r}if(l.pendingRootTasks--,l.pendingRootTasks===0){l.onShellError=Yr;var s=l.onShellReady;s()}}else if(t.pendingTasks--,!t.forceClientRender){if(t.pendingTasks===0)r.parentFlushed&&r.status===Co&&Vr(t,r),t.parentFlushed&&l.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Nu,l),t.fallbackAbortableTasks.clear();else if(r.parentFlushed&&r.status===Co){Vr(t,r);var p=t.completedSegments;p.length===1&&t.parentFlushed&&l.partialBoundaries.push(t)}}if(l.allPendingTasks--,l.allPendingTasks===0){var b=l.onAllReady;b()}}function Uu(l,t){var r=t.blockedSegment;if(r.status===xi){Cr(t.context);var s=null;s=or,or=t;try{Gt(l,t,t.node),jt(r.chunks,l.responseState,r.lastPushedText,r.textEmbedded),t.abortSet.delete(t),r.status=Co,ya(l,t.blockedBoundary,r)}catch(b){if(gs(),typeof b=="object"&&b!==null&&typeof b.then=="function"){var p=t.ping;b.then(p,p)}else t.abortSet.delete(t),r.status=Tl,Ql(l,t.blockedBoundary,r,b)}finally{or=s}}}function Is(l){if(l.status!==To){var t=ml(),r=bi.current;bi.current=vi;var s;s=wi.getCurrentStack,wi.getCurrentStack=Vn;var p=Aa;yi(l.responseState);try{var b=l.pingedTasks,S;for(S=0;S<b.length;S++){var D=b[S];Uu(l,D)}b.splice(0,S),l.destination!==null&&Bs(l,l.destination)}catch(H){ha(l,H),ga(l,H)}finally{yi(p),bi.current=r,wi.getCurrentStack=s,r===vi&&Cr(t)}}}function ba(l,t,r){switch(r.parentFlushed=!0,r.status){case xi:{var s=r.id=l.nextSegmentId++;return r.lastPushedText=!1,r.textEmbedded=!1,Ma(t,l.responseState,s)}case Co:{r.status=ys;for(var p=!0,b=r.chunks,S=0,D=r.children,H=0;H<D.length;H++){for(var X=D[H];S<X.index;S++)v(t,b[S]);p=Ci(l,t,X)}for(;S<b.length-1;S++)v(t,b[S]);return S<b.length&&(p=y(t,b[S])),p}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function Ci(l,t,r){var s=r.boundary;if(s===null)return ba(l,t,r);if(s.parentFlushed=!0,s.forceClientRender)return Wt(t,l.responseState,s.errorDigest,s.errorMessage,s.errorComponentStack),ba(l,t,r),Vi(t,l.responseState);if(s.pendingTasks>0){s.rootSegmentID=l.nextSegmentId++,s.completedSegments.length>0&&l.partialBoundaries.push(s);var p=s.id=Xt(l.responseState);return fo(t,l.responseState,p),ba(l,t,r),po(t,l.responseState)}else{if(s.byteSize>l.progressiveChunkSize)return s.rootSegmentID=l.nextSegmentId++,l.completedBoundaries.push(s),fo(t,l.responseState,s.id),ba(l,t,r),po(t,l.responseState);_a(t,l.responseState);var b=s.completedSegments;if(b.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var S=b[0];return Ci(l,t,S),La(t,l.responseState)}}function Hl(l,t,r){return ou(t,l.responseState,r.id,r.errorDigest,r.errorMessage,r.errorComponentStack)}function Pi(l,t,r){return Le(t,l.responseState,r.formatContext,r.id),Ci(l,t,r),nt(t,r.formatContext)}function Nl(l,t,r){for(var s=r.completedSegments,p=0;p<s.length;p++){var b=s[p];Ul(l,t,r,b)}return s.length=0,al(t,l.responseState,r.id,r.rootSegmentID)}function zu(l,t,r){for(var s=r.completedSegments,p=0;p<s.length;p++){var b=s[p];if(!Ul(l,t,r,b))return p++,s.splice(0,p),!1}return s.splice(0,p),!0}function Ul(l,t,r,s){if(s.status===ys)return!0;var p=s.id;if(p===-1){var b=s.id=r.rootSegmentID;if(b===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Pi(l,t,s)}else return Pi(l,t,s),Kc(t,l.responseState,p)}function Bs(l,t){h();try{var r=l.completedRootSegment;r!==null&&l.pendingRootTasks===0&&(Ci(l,t,r),l.completedRootSegment=null,Wi(t,l.responseState));var s=l.clientRenderedBoundaries,p;for(p=0;p<s.length;p++){var b=s[p];Hl(l,t,b)}s.splice(0,p);var S=l.completedBoundaries;for(p=0;p<S.length;p++){var D=S[p];Nl(l,t,D)}S.splice(0,p),k(t),h(t);var H=l.partialBoundaries;for(p=0;p<H.length;p++){var X=H[p];if(!zu(l,t,X)){l.destination=null,p++,H.splice(0,p);return}}H.splice(0,p);var oe=l.completedBoundaries;for(p=0;p<oe.length;p++){var se=oe[p];Nl(l,t,se)}oe.splice(0,p)}finally{k(t),l.allPendingTasks===0&&l.pingedTasks.length===0&&l.clientRenderedBoundaries.length===0&&l.completedBoundaries.length===0&&(l.abortableTasks.size!==0&&o("There was still abortable task at the root when we closed. This is a bug in React."),C(t))}}function zl(l){f(function(){return Is(l)})}function ju(l,t){if(l.status===Po){l.status=To,Q(t,l.fatalError);return}if(l.status!==To&&l.destination===null){l.destination=t;try{Bs(l,t)}catch(r){ha(l,r),ga(l,r)}}}function jl(l,t){try{var r=l.abortableTasks;r.forEach(function(s){return Ds(s,l,t)}),r.clear(),l.destination!==null&&Bs(l,l.destination)}catch(s){ha(l,s),ga(l,s)}}function Wu(l,t){return new Promise(function(r,s){var p,b,S=new Promise(function(pe,Te){b=pe,p=Te});function D(){var pe=new ReadableStream({type:"bytes",pull:function(Te){ju(X,Te)},cancel:function(Te){jl(X)}},{highWaterMark:0});pe.allReady=S,r(pe)}function H(pe){S.catch(function(){}),s(pe)}var X=Si(l,oo(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),Un(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,b,D,H,p);if(t&&t.signal){var oe=t.signal,se=function(){jl(X,oe.reason),oe.removeEventListener("abort",se)};oe.addEventListener("abort",se)}zl(X)})}Rs.renderToReadableStream=Wu,Rs.version=n}()),Rs}var Oo,Yl;process.env.NODE_ENV==="production"?(Oo=mf(),Yl=vf()):(Oo=yf(),Yl=bf()),Bo.version=Oo.version,Bo.renderToString=Oo.renderToString,Bo.renderToStaticMarkup=Oo.renderToStaticMarkup,Bo.renderToNodeStream=Oo.renderToNodeStream,Bo.renderToStaticNodeStream=Oo.renderToStaticNodeStream,Bo.renderToReadableStream=Yl.renderToReadableStream;function qu(e,n){n===void 0&&(n={});var i=n.insertAt;if(e&&typeof document<"u"){var a=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",i==="top"&&a.firstChild?a.insertBefore(o,a.firstChild):a.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}qu('.rcb-chat-header-container{border-bottom:1px solid #ccc;color:#fff;display:flex;justify-content:space-between;max-height:55px;padding:12px}.rcb-chat-header{display:flex;flex-direction:row}.rcb-bot-avatar{background-size:cover;border-radius:50%;height:30px;margin-right:12px;width:30px}.rcb-message-prompt-container.visible{align-items:center;animation:rcb-animation-pop-in .3s ease-in-out;bottom:0;display:flex;justify-content:center;margin:auto;opacity:1;pointer-events:auto;position:sticky}.rcb-message-prompt-container.hidden{height:0;opacity:0;pointer-events:none;visibility:hidden}.rcb-message-prompt-text{background-color:#fff;border:.5px solid #adadad;border-radius:20px;color:#adadad;cursor:pointer;font-size:12px;padding:6px 12px;transition:color .3s ease,border-color .3s ease;z-index:9999}.rcb-message-prompt-container.hidden .rcb-message-prompt-text{padding:0}.rcb-user-message-container{display:flex;flex-direction:row;justify-content:right}.rcb-user-message{border-radius:22px;font-size:15px;height:fit-content;margin-right:16px;margin-top:8px;min-height:20px;overflow:auto;overflow-wrap:anywhere;padding:12px 16px;text-align:right;white-space:pre-wrap;width:fit-content}.rcb-user-message-offset{margin-right:50px}.rcb-user-message-entry{animation:rcb-animation-user-message-entry .3s ease-in backwards}.rcb-message-user-avatar{background-size:cover;border-radius:50%;height:40px;margin-left:-10px;margin-right:6px;margin-top:9px;width:40px}.rcb-bot-message-container{display:flex;flex-direction:row}.rcb-bot-message{border-radius:22px;font-size:15px;height:fit-content;margin-left:16px;margin-top:8px;min-height:20px;overflow:auto;overflow-wrap:anywhere;padding:12px 16px;text-align:left;white-space:pre-wrap;width:fit-content}.rcb-bot-message-offset{margin-left:50px}.rcb-bot-message-entry{animation:rcb-animation-bot-message-entry .3s ease-in backwards}.rcb-message-bot-avatar{background-size:cover;border-radius:50%;height:40px;margin-left:6px;margin-right:-10px;margin-top:9px;width:40px}.rcb-typing-indicator{align-items:center;display:flex}.rcb-dot{animation:rcb-animation-bot-typing 1s infinite;background-color:#ccc;border-radius:50%;height:8px;margin-right:4px;width:8px}.rcb-dot:nth-child(2){animation-delay:.2s}.rcb-dot:nth-child(3){animation-delay:.4s}.rcb-chat-body-container{height:100%;overflow-x:hidden;overflow-y:scroll;padding-bottom:16px;position:relative;touch-action:pan-y;width:100%}.rcb-chat-body-container::-webkit-scrollbar-track{background-color:#f1f1f1}.rcb-chat-body-container::-webkit-scrollbar-thumb{background-color:#ddd;border-radius:4px}.rcb-chat-body-container::-webkit-scrollbar-thumb:hover{background-color:#cfcfcf}.rcb-chat-body-container::-webkit-scrollbar-corner{background-color:#f1f1f1}.rcb-checkbox-container{display:flex;flex-wrap:wrap;gap:10px;margin-left:16px;padding-top:12px}.rcb-checkbox-offset{margin-left:50px!important}.rcb-checkbox-row-container{align-items:center;animation:rcb-animations-checkboxes-entry .5s ease-out;background-color:#fff;border-radius:10px;border-style:solid;border-width:.5px;cursor:pointer;display:flex;gap:5px;max-height:32px;min-height:30px;overflow:hidden;width:80%}.rcb-checkbox-row-container:hover{box-shadow:0 0 5px #0003}.rcb-checkbox-row{align-items:center;cursor:pointer;display:inline-flex;margin-left:10px}.rcb-checkbox-mark{align-items:center;background-color:#f2f2f2;border:none;border-radius:50%;cursor:pointer;display:flex;height:20px;justify-content:center;margin-right:10px;transition:all .3s ease;width:20px}.rcb-checkbox-mark:hover{background-color:#c2c2c2}.rcb-checkbox-mark:before{content:"✓";transition:all .3s ease}.rcb-checkbox-label{font-size:14px}.rcb-checkbox-next-button{align-items:center;animation:rcb-animations-checkboxes-entry .5s ease-out;background-color:#fff;border-radius:10px;border-style:solid;border-width:.5px;cursor:pointer;display:inline-block;font-size:24px;max-height:32px;min-height:30px;text-align:center;width:80%}.rcb-checkbox-next-button:before{content:"→"}.rcb-checkbox-next-button:hover{box-shadow:0 0 5px #0003}.rcb-options-container{display:flex;flex-wrap:wrap;gap:10px;margin-left:16px;max-width:70%;padding-top:12px}.rcb-options-offset{margin-left:50px!important}.rcb-options{align-items:center;animation:rcb-animation-options-entry .5s ease-out;border-radius:20px;border-style:solid;border-width:.5px;cursor:pointer;display:inline-flex;font-size:14px;justify-content:center;overflow:hidden;padding:10px 20px;transition:background-color .3s ease}.rcb-options:hover{box-shadow:0 0 5px #0003}.rcb-line-break-container{align-items:center;display:flex;justify-content:center;max-height:45px;padding-bottom:5px;padding-top:10px}.rcb-line-break-text{color:#adadad;font-size:12px;padding:6px 12px}.rcb-spinner-container{align-items:center;display:flex;justify-content:center;max-height:45px;min-height:35px;padding-bottom:5px;padding-top:10px}.rcb-spinner{animation:rcb-animation-spin 1s linear infinite;border:4px solid #f3f3f3;border-radius:50%;height:22px;width:22px}.rcb-chat-input{align-items:center;background-color:#fff;border-top:1px solid #ccc;display:flex;padding:8px 16px}.rcb-chat-input::placeholder{color:#999}.rcb-chat-input-textarea{background-color:#fff;border:none;border-radius:4px;color:#000;flex:1;font-family:inherit;font-size:16px;height:auto;min-height:38px;outline:none;overflow-y:scroll;padding:8px;resize:none;touch-action:none}.rcb-chat-input-textarea::-webkit-scrollbar,.rcb-chat-input-textarea::-webkit-scrollbar-thumb{background-color:initial}.rcb-chat-input-textarea::-webkit-scrollbar-thumb:hover{background-color:initial}.rcb-chat-input-char-counter{font-size:14px;margin-left:8px;margin-top:3px}.rcb-chat-footer-container{align-items:flex-end;background-color:#f2f2f2;border-top:1px solid #ccc;color:#000;display:flex;font-size:12px;justify-content:space-between;max-height:55px;padding:12px 16px 8px 10px}.rcb-chat-footer,.rcb-toggle-button{display:flex;flex-direction:row}.rcb-toggle-button{border:none;border-radius:50%;bottom:20px;box-shadow:0 2px 4px #0003;cursor:pointer;height:75px;position:fixed;right:20px;width:75px;z-index:9999}.rcb-toggle-button.rcb-button-hide{animation:rcb-animation-collapse .3s ease-in-out forwards;opacity:0;visibility:hidden}.rcb-toggle-button.rcb-button-show{animation:rcb-animation-expand .3s ease-in-out forwards;opacity:1;visibility:visible}.rcb-toggle-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;border-radius:inherit;height:100%;margin:auto;width:100%}.rcb-badge,.rcb-toggle-icon{align-items:center;display:flex;justify-content:center}.rcb-badge{background-color:red;border-radius:50%;color:#fff;height:25px;position:absolute;right:-6px;top:-6px;width:25px}.rcb-chat-tooltip{border-radius:20px;box-shadow:0 2px 6px #0003;cursor:pointer;font-size:20px;padding:16px;position:fixed;transition:transform .3s ease;white-space:nowrap;z-index:9999}.rcb-chat-tooltip-tail{border-style:solid;border-width:10px 0 10px 10px;content:"";margin-top:-10px;position:absolute;right:-10px;top:50%}.rcb-chat-tooltip.rcb-tooltip-hide{animation:rcb-animation-tooltip-out .5s ease-in-out;opacity:0;visibility:hidden}.rcb-chat-tooltip.rcb-tooltip-show{animation:rcb-animation-tooltip-in .5s ease-in-out;opacity:1;visibility:visible}.rcb-toast-prompt{animation:rcb-animation-pop-in .3s ease-in-out;background-color:#fff;border:.5px solid #7a7a7a;border-radius:5px;color:#7a7a7a;cursor:pointer;font-size:12px;margin-top:6px;padding:6px 12px;text-align:center;transition:color .3s ease,border-color .3s ease;width:100%;z-index:9999}.rcb-toast-prompt-container{align-items:center;animation:popIn .3s ease-in-out;bottom:0;display:flex;flex-direction:column;justify-content:flex-end;left:50%;margin:200 auto auto;opacity:1;pointer-events:auto;position:absolute;transform:translate(-50%)}.rcb-media-display-image-container,.rcb-media-display-video-container{border-radius:22px;margin-right:16px;margin-top:8px;padding:16px;width:fit-content}.rcb-media-display-offset{margin-right:50px!important}.rcb-media-display-image{border-radius:22px;height:auto;object-fit:cover;width:100%}.rcb-media-display-video{background-color:#000;border-radius:22px;height:auto;width:100%}.rcb-media-display-audio{border-radius:22px;height:auto;margin-right:16px;margin-top:8px;width:100%}.rcb-media-entry{animation:rcb-animation-user-message-entry .3s ease-in backwards}.rcb-attach-button-disabled,.rcb-attach-button-enabled{background-size:cover;border-radius:6px;display:inline-block;height:30px;position:relative;text-align:center;width:30px}.rcb-attach-button-disabled input[type=file],.rcb-attach-button-enabled input[type=file]{display:none;height:100%;position:absolute;width:100%}.rcb-attach-button-enabled{cursor:pointer}.rcb-attach-button-disabled{opacity:.5}.rcb-attach-button-enabled:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-attach-button-enabled:hover:after{height:130%;opacity:1;width:130%}.rcb-attach-icon-disabled,.rcb-attach-icon-enabled{background-repeat:no-repeat;background-size:cover;display:inline-block;height:24px;margin-top:2px;transition:background-image .3s ease;width:24px}.rcb-attach-icon-enabled{cursor:pointer}.rcb-emoji-button-disabled,.rcb-emoji-button-enabled{background-size:cover;border-radius:6px;cursor:pointer;display:inline-block;height:30px;position:relative;text-align:center;width:30px}.rcb-emoji-icon-disabled,.rcb-emoji-icon-enabled{background-repeat:no-repeat;background-size:cover;display:inline-block;font-size:20px;height:24px;margin-top:2px;position:relative;width:24px}.rcb-emoji-icon-enabled{cursor:pointer}.rcb-emoji-icon-disabled{opacity:.5}.rcb-emoji-button-enabled:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-emoji-button-enabled:hover:after{height:130%;opacity:1;width:130%}.rcb-emoji-button-popup{background-color:#fff;border:1px solid #ccc;border-radius:4px;box-shadow:0 2px 4px #0003;max-height:200px;overflow-y:auto;padding:8px;position:absolute;transform:translateY(calc(-100% - 30px));width:158px}.rcb-emoji{cursor:pointer;font-size:24px;padding:3px;transition:transform .2s ease-in-out}.rcb-emoji:hover{transform:scale(1.2)}.rcb-audio-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-audio-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-audio-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-close-chat-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-close-chat-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-close-chat-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-notification-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-notification-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-notification-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-voice-button-disabled,.rcb-voice-button-enabled{align-items:center;background-color:#fff;border-radius:4px;box-shadow:0 0 3px #0000004d;cursor:pointer;display:inline-flex;height:32px;justify-content:center;margin-left:8px;text-transform:uppercase;transition:all .3s ease;width:32px}.rcb-voice-button-enabled{border:1px solid red;box-shadow:0 0 3px #ff000080}.rcb-voice-button-enabled:hover{border:1px solid #3d0000}.rcb-voice-button-disabled{border:1px;border-color:#0003;border-style:solid}.rcb-voice-button-disabled:hover{box-shadow:0 0 3px #8a0000}.rcb-voice-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;background-size:contain;height:60%;object-fit:cover;width:60%}.rcb-voice-icon.on{animation:rcb-animation-ping 1s infinite}.rcb-send-button{border:none;border-radius:4px;box-shadow:0 0 3px #0000004d;cursor:pointer;display:inline-flex;height:32px;justify-content:center;margin-left:8px;text-transform:uppercase;transition:background-color .3s ease;width:51px}.rcb-send-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;background-size:contain;height:50%;object-fit:cover;transform:translateY(20%);width:50%}.rcb-view-history-container{align-items:center;display:flex;justify-content:center;max-height:45px;min-height:35px;padding-bottom:5px;padding-top:10px}.rcb-view-history-button{align-items:center;background-color:#fff;border:.5px solid #adadad;border-radius:20px;color:#adadad;cursor:pointer;display:inline-flex;font-size:12px;justify-content:center;max-width:60%;padding:6px 12px;transition:color .3s ease,border-color .3s ease}.rcb-view-history-button>p{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rcb-chatbot-global{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.5;z-index:9999}.rcb-chat-window{background-color:#fff;border-radius:10px;bottom:20px;box-shadow:0 2px 4px #0003;display:flex;flex-direction:column;height:550px;overflow:hidden;position:fixed;right:20px;transition:all .3s ease;width:375px}.rcb-window-embedded .rcb-chat-window{bottom:auto;opacity:1;position:relative;right:auto;visibility:visible}.rcb-window-open .rcb-chat-window{animation:rcb-animation-expand .3s ease-in-out forwards;opacity:1;visibility:visible}.rcb-window-close .rcb-chat-window{animation:rcb-animation-collapse .3s ease-in-out forwards;opacity:0;visibility:hidden}@keyframes rcb-animation-expand{0%{opacity:0;transform:translate(100%,100%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-collapse{0%{opacity:1;transform:translate(0) scale(1)}to{opacity:0;transform:translate(100%,100%) scale(0)}}@keyframes rcb-animation-ping{0%{filter:brightness(100%);opacity:1}50%{filter:brightness(50%);opacity:.8}}@keyframes rcb-animation-bot-message-entry{0%{opacity:0;transform:translate(-100%,50%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-user-message-entry{0%{opacity:0;transform:translate(100%,50%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-bot-typing{0%{opacity:.4}50%{opacity:1}to{opacity:.4}}@keyframes rcb-animation-pop-in{0%{opacity:0;transform:scale(.8)}70%{opacity:1;transform:scale(1.1)}to{transform:scale(1)}}@keyframes rcb-animations-checkboxes-entry{0%{opacity:0;transform:translate(-100%)}to{opacity:1;transform:translate(0)}}@keyframes rcb-animation-options-entry{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes rcb-animation-tooltip-in{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}@keyframes rcb-animation-tooltip-out{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-5px)}}@keyframes rcb-animation-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}',{insertAt:"top"});const mt={AUDIO_BUTTON:"audio-button",NOTIFICATION_BUTTON:"notification-button",CLOSE_CHAT_BUTTON:"close-chat-button",SEND_MESSAGE_BUTTON:"send-button",VOICE_MESSAGE_BUTTON:"voice-button",FILE_ATTACHMENT_BUTTON:"file-attachment-button",EMOJI_PICKER_BUTTON:"emoji-button"},Ku="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20viewBox='0%200%201000%201000'%3e%3crect%20width='100%25'%20height='100%25'%20fill='%23fff'/%3e%3cg%3e%3crect%20width='45'%20height='30'%20x='-22.5'%20y='-15'%20rx='1.5'%20ry='1.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-99%20362)%20scale(3.4003)'/%3e%3cpath%20d='M0%2075q14%200%2014%2017%200%2016-14%2016Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(180%20106%20386)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='4'%20x='-12.5'%20y='-2'%20rx='.2'%20ry='.2'%20style='stroke:%2346648c;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-46%20282)%20scale(3.4003)'/%3e%3cpath%20d='M19%2065h4l5%204v1H14v-1Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='2'%20x='-12.5'%20y='-1'%20rx='.1'%20ry='.1'%20style='stroke:%2398b0ca;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-3%20240)%20scale(3.4003)'/%3e%3ccircle%20r='7.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(236%20175)%20scale(3.4003)'/%3e%3crect%20width='45'%20height='30'%20x='-22.5'%20y='-15'%20rx='1.5'%20ry='1.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20139%20600)%20scale(3.4003)'/%3e%3cpath%20d='M184%2075q14%200%2014%2017%200%2016-14%2016Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='4'%20x='-12.5'%20y='-2'%20rx='.2'%20ry='.2'%20style='stroke:%2346648c;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20219%20548)%20scale(3.4003)'/%3e%3cpath%20d='M175%2065h4l5%204v1h-14v-1Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='2'%20x='-12.5'%20y='-1'%20rx='.1'%20ry='.1'%20style='stroke:%2398b0ca;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20262%20505)%20scale(3.4003)'/%3e%3ccircle%20r='7.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(767%20175)%20scale(3.4003)'/%3e%3crect%20width='116.7'%20height='70'%20x='-58.4'%20y='-35'%20rx='31.5'%20ry='31.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2371c9fc;fill-rule:nonzero;opacity:1'%20transform='translate(502%20877)%20scale(3.4003)'/%3e%3crect%20width='60'%20height='20'%20x='-30'%20y='-10'%20rx='3'%20ry='3'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='translate(502%20728)%20scale(3.4003)'/%3e%3ccircle%20r='75'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2371c9fc;fill-rule:nonzero;opacity:1'%20transform='translate(502%20473)%20scale(3.4003)'/%3e%3crect%20width='129.4'%20height='82.3'%20x='-64.7'%20y='-41.1'%20rx='37'%20ry='37'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23fff;fill-rule:nonzero;opacity:1'%20transform='translate(502%20464)%20scale(3.4003)'/%3e%3crect%20width='108'%20height='68.6'%20x='-54'%20y='-34.3'%20rx='30.9'%20ry='30.9'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23162334;fill-rule:nonzero;opacity:1'%20transform='translate(502%20464)%20scale(3.4003)'/%3e%3ccircle%20r='19.4'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(415%20464)%20scale(3.4003)'/%3e%3ccircle%20r='19.4'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(591%20464)%20scale(3.4003)'/%3e%3crect%20width='96'%20height='53.2'%20x='-48'%20y='-26.6'%20rx='23.9'%20ry='23.9'%20style='stroke:%23162334;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23162334;fill-rule:nonzero;opacity:1'%20transform='translate(503%20875)%20scale(3.4003)'/%3e%3cpath%20stroke-linecap='round'%20d='m68%20215%207-15M81%20222l-7-22M81%20222l7-14M101%20208H87M114%20219l-7-24M113%20219l13-22M131%20214l-5-17M148%20214h-18M69%20214H51M100%20209l7-15'%20style='stroke:%23a478fc;stroke-width:3;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:10;is-custom-font:none;font-file-url:none;fill:none;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3c/g%3e%3c/svg%3e",$u=B.forwardRef((e,n)=>At.createElement("svg",{viewBox:"0 0 637 637",ref:n,...e},At.createElement("path",{d:"m478 113-13 2-4 1h4l14-2c10-2 35-2 42-1l6 3 3 1c3 0-4-3-8-5-7-1-34-1-44 1m56 6 8 6c7 5 20 17 20 19s7 12 8 12l-3-6-4-6c0-3-15-17-25-24-5-3-8-4-4-1m-198 16-9 1a512 512 0 0 1 9-1m-180 30a412 412 0 0 0-23 4 167 167 0 0 0-32 8 439 439 0 0 1 46-9 304 304 0 0 1 11-2l6-1h-8m369 8 4 3-7-6c-1 0 0 2 3 3m-439 9c-7 3-18 13-18 15l6-5c5-5 9-8 14-10l6-4-8 4m442 12-10 11-7 6 7-6c7-5 14-14 13-16l-3 5M65 205l-1 11c0 9 0 10 4 17 5 10 7 12 22 11 10 0 15 0 38-5l5-1-6 1-16 2-21 2c-13 1-16-1-21-10-3-5-4-6-4-15l1-12c1-4 1-5-1-1m335 1c3 0 3 1 3 3l-2 6c-2 5-35 39-76 80-53 51-120 117-138 137-21 24-22 25-22 27 0 3 6 9 9 9 4 0 14-8 38-27a5073 5073 0 0 1 15-16 1421 1421 0 0 0-17 15l-31 25-6 2-4-3c-3-3-3-4-2-6 3-8 79-85 160-163 57-57 79-80 79-86 0-2-3-4-7-4-2 0-2 0 1 1m165 18c-9 17-25 32-57 53l-10 8 16-11 12-8c15-10 27-22 39-39 5-7 6-8 4-8l-4 5m-221 2a199 199 0 0 0-19 10 183 183 0 0 1 27-12c0-1-1-1-8 2m-34 16c-3 3-2 3 2 0l1-2-3 2m151 3-1 2 2-2c3-3 2-3-1 0m-16 12-11 10a281 281 0 0 0 11-10m-24 18-7 5-7 5-42 31c-10 7-24 19-22 19l7-6 16-12a343 343 0 0 0 35-25 573 573 0 0 0 20-17m-187 0-2 2 4-2 3-2-5 2m-14 6-3 2 4-1 4-3-5 2m-7 3-8 4-18 8 18-7 7-3 3-1c1-2 0-2-2-1m254 24a2672 2672 0 0 1-71 54 601 601 0 0 0 39-29 1352 1352 0 0 1 32-25m-291-8-2 2 4-2 3-2-5 2m-13 5-2 2h3c5-3 4-4-1-2m-19 9-7 3-13 6c-10 5-13 7-14 10-3 4-2 5 1 0 2-3 5-5 14-9l13-6 12-6-6 2m178 36c-17 12-21 16-21 17a390 390 0 0 1 20-17m-206 34 1 4 1 3 1 5 2 8 1 5v-6l-1-8-2-5-1-4-1-2c-1-2-1-2-1 0m222 23-9 7a683 683 0 0 0-56 44 261 261 0 0 0-26 20 1345 1345 0 0 0-46 34c-6 3-7 3-19 3-11 0-12 0-18-3-8-4-10-8-17-20l-5-10 4 10c5 10 12 18 19 22 4 2 6 2 17 2 13 0 14 0 21-3l26-19 42-33a2183 2183 0 0 0 43-34 643 643 0 0 1 24-20",fill:"#fff",fillRule:"evenodd"}),At.createElement("path",{d:"M478 114a620 620 0 0 1-39 6l-21 3a5481 5481 0 0 0-19 3 870 870 0 0 1-54 8l-1 1-6 1-12 2-13 2a992 992 0 0 0-76 12 400 400 0 0 1-45 8l-6 1-5 1h-3l-3 1-2 1-26 4-13 2-17 3c-23 5-33 9-43 19-7 8-9 13-9 27 0 8 1 9 4 14 5 9 8 11 21 10l21-2a1133 1133 0 0 1 23-4 659 659 0 0 0 74-14l3-1h3l3-1h3l2-1 2-1h3l2-1h2l24-5 38-7a2100 2100 0 0 1 93-18l3-1 10-1a2082 2082 0 0 1 120-17l2 1c2 0 8 5 8 7l1 2 1 6c0 4 0 6-3 10-2 4-16 16-18 16l-7 5-10 8a1070 1070 0 0 0-11 7 113 113 0 0 1-20 14l-2 2-3 2-2 2h-1a154 154 0 0 1-28 21l-5 4-5 4a573 573 0 0 1-50 37 175 175 0 0 0-24 18l-1 2-2 1-2 1-2 1-1 1-12 10a396 396 0 0 0-32 25l-8 6-6 5-9 7a326 326 0 0 1-25 20l-13 12a5073 5073 0 0 0-17 15c-24 20-34 27-39 27-2 0-8-6-8-9 0-2 1-3 22-27 18-20 85-86 138-137 41-41 74-75 76-80l2-6c0-2 0-3-2-3l-7 1a233 233 0 0 1-26 9l-1 1-1 1h-1l-1 1h-2l-3 2-1 1h-2l-3 2h-1l-5 2-22 10-9 4-4 2-5 2-10 4-2 1-2 1-2 1-13 6a334 334 0 0 1-38 17 75 75 0 0 0-14 6l-5 2-4 1-2 1-3 2-7 3-16 6a247 247 0 0 0-32 14l-1 1h-2l-1 1h-2l-1 1-12 6a103 103 0 0 0-27 15l-2 5-1 1v11l1 5 1 5 1 4c0 3 0 4 2 4v3l1 3 1 2 2 10 1 4 1 5 2 10 2 8 1 4 1 4c3 3 9 25 11 38l1 7v2l1 4v1l1 1v2l1 2 1 3v1l5 10c7 13 9 16 17 20 6 3 7 3 18 3 12 0 13 0 19-3 8-4 11-6 26-18a1345 1345 0 0 1 85-67 683 683 0 0 1 50-39l12-9a513 513 0 0 1 44-33 201 201 0 0 0 22-17 2270 2270 0 0 0 73-54 158 158 0 0 0 58-59c2 0 3-9 4-27l-1-19-1-4-1-6-1-3-4-6-4-6c0-2-6-8-13-14a77 77 0 0 0-28-18c-6-1-34-1-43 1"}))),Zu=B.forwardRef((e,n)=>At.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},At.createElement("path",{d:"M765-321q0 117-84 196-83 80-200 80-118 0-200-80t-83-196v-392q0-85 61-144 61-58 146-58 86 0 147 58 61 59 61 144v374q0 54-39 92-39 37-93 37-55 0-93-37-38-38-38-92v-372h110v372q0 9 6 14t15 5q8 0 15-5t7-14v-374q0-39-29-66t-68-27q-40 0-69 27t-29 66v392q0 71 51 119t122 48q71 0 122-48t51-119v-426h111v426Z"}))),wf=B.forwardRef((e,n)=>At.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},At.createElement("path",{d:"M125-165v-113h77v-273q0-93 55-167 56-75 146-100v-19q0-32 22-55 23-23 55-23t55 23q22 23 22 55v19q90 25 146 99 56 73 56 168v273h77v113H125ZM480-32q-38 0-66-27-27-27-27-66h186q0 39-27 66t-66 27Z"}))),xf=B.forwardRef((e,n)=>At.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},At.createElement("path",{d:"M137-190v-113h78v-253q0-41 11-79 11-39 35-71l-9 150h10L17-802l74-74L873-92l-74 74-175-172H137Zm609-149L319-769q20-15 41-25t44-16v-28q0-32 22-54t54-22q32 0 55 22t22 54v28q85 23 137 94t52 160v217ZM481-47q-38 0-65-27t-27-65h184q0 38-27 65t-65 27Z"}))),Sf=B.forwardRef((e,n)=>At.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",ref:n,...e},At.createElement("g",{strokeLinecap:"round",strokeWidth:10},At.createElement("path",{d:"m19 19 61 61M80 19 19 80"})))),kf=B.forwardRef((e,n)=>At.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},At.createElement("path",{d:"M94-136v-255l351-93-351-92v-253l816 346L94-136Z"}))),Ef=B.forwardRef((e,n)=>At.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},At.createElement("path",{d:"M480-372q-61 0-105-43-43-43-43-105v-240q0-61 43-105 43-43 105-43 61 0 105 43 43 44 43 105v240q0 62-43 105t-105 43ZM425-76v-122q-121-16-197-108t-76-214h109q0 91 64 154t155 63q91 0 155-63t64-154h109q0 122-77 214T534-198v122H425Z"}))),Cf=B.forwardRef((e,n)=>At.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},At.createElement("path",{d:"m763-343-80-79q8-20 13-44 5-23 5-54h109q0 49-11 95t-36 82ZM625-482 336-770v-2q3-56 45-96t101-40q62 0 105 43t43 105v249l-1 17q-1 7-4 12ZM427-76v-122q-120-16-196-108-77-92-77-214h109q0 91 64 154t155 63q43 0 80-14 37-15 67-41l78 79q-35 32-78 53t-93 28v122H427Zm362 27L41-796l75-75 748 748-75 74Z"}))),eA=B.forwardRef((e,n)=>At.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},At.createElement("path",{d:"M625-511q29 0 50-21t20-50q0-29-20-50-21-20-50-20t-50 20-20 50q0 29 20 50 21 21 50 21Zm-290 0q29 0 50-21t20-49q0-30-20-50t-50-21q-29 0-50 20-20 21-20 50 0 30 20 50 21 21 50 21Zm145 268q75 0 137-43t85-115H258q24 72 85 115 62 43 137 43Zm0 198q-90 0-170-34-79-34-138-93T79-310q-34-80-34-170t34-170q34-79 93-138t138-93q80-34 170-34t170 34q79 34 138 93t93 138q34 80 34 170t-34 170q-34 79-93 138T650-79q-80 34-170 34Zm0-435Zm0 322q134 0 228-94t94-228q0-134-94-228t-228-94q-134 0-228 94t-94 228q0 134 94 228t228 94Z"}))),Pf=B.forwardRef((e,n)=>At.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},At.createElement("path",{d:"M553-64v-108q107-27 173-113 67-87 67-197 0-109-67-195T553-789v-108q152 26 249 144 97 117 97 271 0 155-97 273T553-64ZM61-335v-290h176l236-237v764L237-335H61Zm492 28v-346q51 23 82 70t31 103-31 103q-31 47-82 70Z"}))),Tf=B.forwardRef((e,n)=>At.createElement("svg",{viewBox:"0 -960 960 960",ref:n,...e},At.createElement("path",{d:"M807-15 700-123q-33 21-71 37-38 15-80 22v-108q20-4 38-12l35-17-153-154v257L234-335H57v-290h144L10-818l74-75L882-90l-75 75Zm37-264-80-79q13-30 19-60 7-31 7-64 0-109-68-195-67-86-173-112v-108q152 26 249 144 98 117 98 271 0 55-14 107-13 51-38 96ZM661-462 549-575v-78q51 23 83 70 31 47 31 103l-1 9-1 9ZM469-655 366-759l103-103v207Z"}))),tA={general:{primaryColor:"#42b0c5",secondaryColor:"#491d8d",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",showHeader:!0,showFooter:!0,showInputRow:!0,actionDisabledIcon:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2042%2042'%3e%3cpath%20style='fill:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke:%23b00000;stroke-opacity:1;stroke-miterlimit:4'%20d='M17%209a8%208%200%200%201-8%208%208%208%200%200%201-8-8%208%208%200%200%201%208-8%208%208%200%200%201%208%208Zm0%200'%20transform='rotate(.086)%20scale(1.77778)'/%3e%3cpath%20style='fill:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke:%23b00000;stroke-opacity:1;stroke-miterlimit:10'%20d='M14.66%2014.66%203.34%203.34'%20transform='rotate(.086)%20scale(1.77778)'/%3e%3c/svg%3e",embedded:!1,flowStartTrigger:"ON_LOAD"},tooltip:{mode:"CLOSE",text:"Talk to me! 😊"},chatButton:{icon:$u},header:{title:z.jsx("div",{style:{cursor:"pointer",margin:0,fontSize:20,fontWeight:"bold"},onClick:()=>window.open("https://github.com/tjtanjin/"),children:"Tan Jin"}),showAvatar:!0,avatar:Ku,buttons:[mt.NOTIFICATION_BUTTON,mt.AUDIO_BUTTON,mt.CLOSE_CHAT_BUTTON],closeChatIcon:Sf},notification:{disabled:!1,defaultToggledOn:!0,volume:.2,icon:wf,iconDisabled:xf,sound:"data:audio/wav;base64,UklGRmaIAABXQVZFZm10IBAAAAABAAIAQB8AAAB9AAAEABAATElTVBoAAABJTkZPSVNGVA4AAABMYXZmNjAuMTYuMTAwAGRhdGEgiAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////AAAAAAAA//////7/////////AAABAAAAAgABAAEAAQAAAAIAAQABAP//AAD+////AAD+//7////+////AAD//wAA/v8AAAAA/v8AAP//AAAAAAAAAgD////////+////AAABAAEAAgD/////AQABAAAA//8CAP//AAAAAAAA/v8AAAAA//8AAAEA//8EAAAAAAAAAAAA//8BAP//AQABAAEA/////wEA/v///wAAAAACAAAAAAABAAAA//8AAP//AAACAP//////////AAAAAAEAAAAAAAEA//8AAAEAAQADAAIAAgAAAAAA/v///wEAAAAAAAEAAAAAAAEA//8AAAEAAQD//wAA//8AAAEAAAABAAEAAAABAP//AAD//wAAAgAAAP//AQD/////AAAAAP7/AgAAAAIAAAAAAAAAAAABAAAAAQABAP//AAABAP///v8AAP////8AAP//AAD//wAA//8BAP//AAD///7///8BAP7///8AAAIAAgABAAEA/v8AAP//AQADAAEAAAACAAEA/////////v///wEA/v////7/AAD+////AAAAAAAAAgAAAAAAAAD//wEAAAAAAAAAAQABAAIA/v8AAAAA//8AAAEAAAAAAP//AgD//wEA/////wAAAQACAAAAAAAAAP//AQD/////AQAAAAEA/v8AAAEAAQABAAEA///+////AQD//wEAAgD+//7/AAAAAAAAAQAAAAAAAQAAAAAAAAAAAP//AAD//wEAAQD//wAAAQABAP7///8AAP7/AAABAP7/AQABAAEAAAABAAEAAAD+/wIAAAABAAAAAQD/////AQACAP////8AAP//AQD//wEA/v8CAAEAAAAAAAAAAQAAAAIAAQAAAAEAAgD//wEAAAAAAP7///8BAP//AgAAAP///v8CAAAAAgD///////////7/AAACAAEAAgD//wAAAAABAP//AwAAAAMA//8AAAAAAQD+/wAAAAD//wAAAQD//wEA//8BAP7/AAABAAAA//8BAAAA//8AAP//AQADAP3////+////AgD+/////v8BAAEAAQACAAAAAAAAAAAA//8AAP//AAD+/wEA/v8AAP7/AAD//wAAAQACAAAAAQAAAP//AQAAAAAAAAABAAAAAAD+//////8AAAAAAAD//wAAAAABAAEA//8AAAEA//8AAP//AgD+/wAA///+/wAA/v///wAAAQABAAAAAQD//wAA//8AAAEA//8BAAAAAgABAP//AAACAAIAAQABAP//AAAAAAAA//8BAAIAAAABAAAA//8CAAEA/v//////AAAAAAEA////////AQAAAP//AAD//wAAAAAAAP3/AAAAAAEAAAACAAAAAAAAAP//AAD//wAAAAAAAAAAAAAAAP///v///wAAAAABAAAAAAD//wEAAAABAAEAAQD//wAAAAACAAAAAQD+/wAA//8BAAEAAAD+/wAA/////wAAAAABAAAAAAD//////v8AAAAA//8AAAAAAAAAAAIAAAABAAEAAAABAP7/AAD9//////////7///8BAP//AAD///3/AQABAP//AAD//wAAAAABAAAA//8AAP//AAD/////AQABAAEA//8AAAAA//8BAAMA//8AAAAA//8AAP7/AAD//wAAAAAAAP7/AQAAAAAA/v8CAP//AAABAAIAAQABAAAA//8BAAEAAQD///7/AQD//wAAAQABAP//AAD//wEAAAAAAAAAAQAAAAIA//8AAP////8AAP//AQD//////v///wEA/v8AAAIAAgACAAEAAAAAAAEAAAAAAAAAAAAAAAAAAQD//wAA/////wAAAQACAP////8AAAAAAAD//wAAAQD+/wEA//8AAAEAAwD//wEAAQAAAAAAAAABAP////8AAAAAAQAAAAAAAAAAAAEAAQAAAP////////7/AQABAAEAAQD///////8BAAAA//8AAAAAAgABAAEA/v8BAP7///8BAP3/AQABAAIAAAD//wEAAAAAAP//AAABAAIA//8CAAAAAQAAAAEA//8BAAAA/////wAAAAD//wEAAQD//wAAAAAAAP//AAAAAAAAAQABAAAAAQAAAP//AQD//////v8AAAEAAAAAAAAA//8AAAAAAAACAAEAAQAAAP//AAABAAEA/////wAAAgABAAAAAAAAAAEAAAABAP//AQABAP7////+/wEAAAAAAP//AAABAAAAAAABAAEAAAAAAAAA//8BAP///f/+/wEAAQD///7///8AAAAAAQAAAP////8AAAAAAAABAAAAAQD/////AAD//wEA//8AAAIA//8CAAAA//8AAAAAAAD+/wEAAAD+/wAA/////wAA////////AAAAAAAA//8BAAAAAAD//wAAAAD//wEA//8AAP//AQD+/wAAAAAAAP7/AAD+/wEAAQABAP//AAABAAEAAQD//wAA/////wEA//8AAAAAAgAAAAAA//8BAAAAAgAAAAAAAAAAAP7/AQD//wAAAAD+/wAAAAADAAIA/////wAAAQD//wIA//8BAAEA/v8AAAIAAAAAAP3///8AAAAAAAAAAAAAAAABAP///////wAA//8AAAEAAQABAAEAAQABAAAAAQAAAAAAAQABAP7/AQD//wAAAQABAAEA//8BAAAAAgAAAAEAAAABAP//AAD/////AAD//wIA/////wIAAAD///7/AAAAAAAAAAACAP//AAABAP////8AAAAAAAABAAAAAgAAAAAAAQD+/wEA/////wAA/////wAAAAAAAAAA/v//////AAAAAP//AAABAAAAAQAAAAIAAAACAAAA//8AAAAA//8AAP7/AAAAAP//AAACAP//AQABAP//AQABAAAA/////////v8AAP//AQAAAAAA///+/wAAAQD+/wEAAQAAAAEA/////wAAAQD//wAA//8AAAAA/v8BAAEA//8AAP7//v8BAAAAAAAAAAEA//8AAAEA/////wAAAAD//////////wEAAAABAAEA//8CAAEA/f8AAAAA//8BAAAABAABAAEAAQAAAAAAAAAAAP7///8AAAAA/v8BAAAA//8AAAIA//8AAP////8BAP//AAAAAAAAAAD/////AQD///7/////////AQD8////AgABAAIA////////AAD//wAAAAABAAAAAAAAAAEAAgAAAP//AQD//wAAAAAAAP/////+/wAAAAABAAAAAwABAP///////wEAAAADAP//AQACAAAA//8CAAEAAAAAAP///////wIAAAAAAAAAAQAAAAAAAgD//wEAAAABAAAA/v8AAAAAAAAAAAAAAAAAAAEA/v8AAP//AQD//wAA//////7///8AAAAAAAAAAP7/AQD//wAA//8AAAEAAAABAAEAAQD/////AAD//wEAAAD/////AQAAAAEAAAD//wEAAAD/////AgD//wAAAQD//////////wAAAAD//wAAAAABAAAAAAD//wAAAQD///7/AQD//wEAAAD/////AAD//wEA//8AAAEA//8CAAAAAQD//wEAAgAAAAEAAwAAAAAA/v8BAAEAAgD//wEAAAAAAAAAAAD//wEA//8AAAAAAQACAP///////wAAAQABAAEAAAAAAAEAAQD+/wEA/f////////8AAAAA//8AAAEA//8BAAAA/v///wEAAAAAAAEA/////wAAAAAAAP//AAAAAAIAAAABAAAA/////wAAAAD//wAA/v8AAAMAAQD+/wEAAAABAAEA//8BAP//AgAAAAAAAAD//wAA/////wEA/v8CAP3/AAACAP3/AQABAAAAAQACAAEA/v8AAAAA//8BAAAAAgAAAAAAAgACAAEA/v/9/wAAAQABAP7///8AAP//AgD+/////v8CAP////8BAP//AQACAAEAAQABAP//AAD///7/AAABAAEAAgD//wEA//8CAAEAAQABAAEAAAABAAAA/v8AAAEA/v8AAP//AAABAP//AQAAAAEAAgAAAAAA/v///wEAAQAAAAIAAAD/////AgAAAAEA/v8AAP7/AQAAAAAAAQAAAAEAAAACAAEA//8BAP////8AAAIAAAAAAP//AAAAAAIAAAAAAAAAAwABAP///v8BAAAAAAAAAP3/AAABAAEA/v////////////3//v8AAAAAAQABAAIAAAD+/////v8AAAAAAQABAAEAAQAAAP//AAAAAP//AQAAAP//AAABAAAAAAAAAAAA////////AAAAAP//AQD/////AAABAAEA//8CAP7///8AAP7//v8BAAEAAAD+/////////wEAAAAAAAAAAgD//wAAAQAAAP7/AQABAP//AQAAAAAAAAD/////AAACAP////8BAAAAAAD//wAA//8AAAEAAQABAAAAAAABAAAAAQD+/wEA/v8AAAEAAQD/////AAD//wAAAQABAP7//v//////AAACAAAAAAAAAAAAAAACAAAAAQAAAAAA//8BAP//AQD//wAA///+/wIAAQD//wAAAAD//wAA/v8AAP3///8AAAAAAAAAAAAA/f8AAAAA//8CAP7/AAD///7/AAAAAAAAAAD//wEAAAAAAAEAAAAAAAAA//8BAP////8BAP7///8CAAEA//8BAP3///////////8BAAAAAAAAAAEAAgD+//////8BAAMAAQADAAEAAAACAAAAAQD/////AAABAAMAAQAAAP//AQD//wAA//8AAAAA//8CAP7//////wAAAAAAAAIA/v8AAP//AAACAP//AwD//wAA//8AAP//AwD//wEAAQABAAEAAQACAAEAAAD//wAA//8AAAIAAAAAAP///////wAAAQD//wIA//8BAP7/AAD///////8AAAAAAAAAAAEAAAD//wAAAQD//wEA//8BAAAAAAD/////AgABAAIAAAABAAAAAAAAAP//AAAAAAAA//8AAAAAAAD/////AQAAAAAAAQD//wAA///+////AAAAAAEAAgABAAEAAAAAAP//AQAAAAAAAQD+/wAAAAABAAEAAAD/////AQABAP7///8AAAIAAAACAAAA//8AAP//AgACAAAA///+/wAAAAABAAAAAQAAAAEA/v8BAAEA//8CAP//AQD+/////v8AAAAAAAACAP//AAD+/wIA/v8BAAAAAAD/////AAAAAP7///8AAP7//////wEAAAABAAAAAAD//wAAAAAAAAAAAgACAAAAAAABAAAA/f8AAP7/AgAAAAEA//8BAAAAAAD///7/AQD//wAAAAAAAAEAAAAAAAEAAAAAAAAAAQAAAAAA//8AAAAAAAABAP///////wAAAgABAAEA//8AAP//AAACAP//AQABAAEA//8BAAAAAAABAAAA//8AAAEAAAAAAAIA/v8BAP//AQD//wEAAAABAAEAAQACAAEAAAAAAAEAAAABAAAAAAD/////AAABAAEA//8AAAAAAQABAP//AAAAAP//AAD/////AQD//wAAAAABAAEA//8BAAAA//8AAP///f/+/wAA/////wAAAQAAAAIAAAAAAAAAAAD+/wEA/f8CAAAA//8AAAEAAgAAAAMAAAABAAAAAAAAAP//AQAAAAAAAQABAAAAAQAAAP//AAAAAAAA//8AAAAAAAABAAAAAQAAAAAAAAABAAIAAAAAAP7/AQD//wAAAAD+////AAAAAAAAAAABAAAA/////wAA//8AAAAAAAD/////AgD//wAA//8CAP//AQACAAEA/f////////8BAAIAAQABAP//AAD//wAA///+////AAD+/wAAAQD/////AAAAAAAA/////wAAAAABAAAAAQAAAAAA//8AAAIAAAABAP//AQABAAEA//8AAAAAAAADAAEAAAABAP//AgD//wMA//8AAAAAAAD//wAAAAD9/wEA///+/wAA//8BAAEA//8BAAAA//8AAP///v8BAP///////////v8BAAAAAQABAAAAAAAAAAAA//8AAP7/AQAAAAAAAAAAAP7/AQAAAAAAAgABAAEAAAABAAEAAAAAAAAAAAD+/wAAAAD//wEAAAAAAAAAAAAAAP//AgABAAAAAAABAAEAAAD/////AAAAAP//AAABAP////8BAAAAAQABAP7//v/+////AQAAAAAAAQAAAAEAAgAAAAAAAQAAAAEAAAD+/////v8BAP//AAABAP//AQABAAAAAAD//wAA//8CAP//AAAAAAEAAAABAAAAAAAAAP//AAD+////AwAAAAAAAQD//wEAAAACAAEAAAADAAAAAAD/////AAAAAAEAAAABAAAA//8AAAEA//8BAP///v8AAP//AAD//wAAAQABAP//AQAAAAAA/////wEAAQAAAP////8AAAEA//8BAAAAAQAAAP////8AAAAAAQAAAAIAAQAAAAEAAAAAAAEAAAD//wEAAAAAAP////8AAAAA//8BAAEAAAAAAAIA///+/wIA/v8BAAAAAQACAAAAAQAAAP7///8AAP//AAAAAAEAAAAAAP7/AAD+////AAAAAAAAAAD//wAA/v8BAAMAAAABAAIAAgD//wAA//8BAAEA//8BAP7/AAAAAP7///8BAAAAAQAAAP7/AQD/////AAAAAAEAAAABAP//AQABAAAAAgABAAAAAAAAAP///////wEA//8AAAEA//8AAAAAAQAAAAIAAAABAP7//////wAAAQABAAAAAAABAAEA///+/wAA//8BAP///v8AAP///v8BAAAA//8CAAAAAQAAAAEAAQABAAAAAAD+/wAAAAD+/wAAAAAAAAAA/f////////8AAAAAAQABAP///////wEA//8BAAEAAAAAAAAA/////wEA/v//////AAAAAP//AAABAAAAAAD+/wAAAAD9////AQAAAAEAAwD//wEAAQAAAP//AgAAAAAAAAD+/wIAAAAAAAAAAAAAAAIA//8AAAEAAQACAAAAAQD//wAAAAD//wIAAQABAAAAAAD//wEA//8BAAEAAQAAAAAAAQABAP7/AAD//wEAAAACAP7/AQAAAAAAAAD//wIAAQACAAIAAQAAAAAAAAAAAP3///8BAAAAAQACAP//AgD9/wAAAAD//wEA/v////////8AAAAAAAD//wEAAQD//wMAAQAAAAEA//8AAAEA//8AAAAAAAACAAAAAAD//wAAAQD///////8AAAAA//8BAAIA/v8BAAEA/f8AAAAAAAAAAAAAAgD/////AAD+/wAAAAD//wAAAAAAAP//////////AgABAP///v8AAAIAAQAAAP//AAABAAAA/////wAAAAAAAAEAAAABAP///v///wIA//8BAAEAAQAAAAAA///+/wEAAAAAAAAA/////////v8BAP3/AAAAAAAAAAAAAAAA//8AAP//AAAAAP//AAABAAIAAAACAP////8DAAAAAAABAAAAAwABAP//AAABAP//AAAAAP////8BAAAAAgD//wAA///+/wAAAQD//wAA//8AAP7///8AAAAA/v8AAAAAAQD//wEA/v////////8AAAAAAQAAAP//AQACAAAAAAAAAP//AAD//wAAAAD//wAAAAD+/wAAAAAAAP//AQD//wAAAgAAAAAAAQABAAAAAwD+/wAAAAD///7/AQD//wIAAQAAAP//AAD//wAA//8CAAEAAAAAAAAA/////wAAAAD//wEAAQD///////8BAAAA//8BAAEAAAAAAAAA/v///wEAAAAAAAAAAAADAAAAAAAAAAAAAQABAAEAAAD+//7//v8AAP//AQAAAAAAAAABAAEAAgAAAAAAAQD//wAA/f8AAAAAAAABAAAAAQAAAAAAAAAAAAIA//8BAP///////wIA/////wAAAAABAAEA//8BAAAAAAD//wAAAQD//wEAAAAAAAIA/v8BAP//AAAAAAEAAAABAP//AAAAAAAAAQABAP7/AAABAAAAAQD//wIAAAAAAAEA///+/wAA//8AAP//AAAAAAAAAAABAP///////wIAAQAAAAEAAQAAAP7/AQAAAAAAAQAAAAAAAQD/////AQAAAAAA///+//7/AAD+/wEA//8AAAAA///+/wEAAAABAAIAAQABAAAA//8AAP//AAD//wAAAAD//wAAAAAAAP//AQAAAAAA////////AQAAAAAAAQD+////AQABAP7/AAD///7/AgD//wAAAAAAAP//AAAAAAEA//8BAAEAAgAAAAIAAAD//wEA/////wAAAQD///7/AQD//wEAAQD/////AAAAAAEAAgAAAAAAAQD//wEA//8AAP7//////wAA//8BAAEA//8BAAAAAQD/////AAABAP//AAACAP//AQAAAP//AAABAP////8AAAAAAAABAAEAAwABAAAAAgD//wAAAAD//wEAAAABAAAAAAABAAEA/////wAA//8AAAIAAAAAAAEAAQABAAEAAQABAP//AgAAAAAA//8BAP3//v///wAA//8AAAAAAQAAAP//AQD//wEAAAACAAIAAAABAAAA//8BAAEA//8BAP//AAAAAP//AQAAAAIAAAD//wAAAAAAAAEA////////AQAAAP//AQD//wAAAQD+/wEAAAABAP///v///wAAAAAAAP//AAAAAAIAAQD//wAAAgD+/wAAAAD//wAAAAABAP///P//////AAACAP////8AAAIAAAABAAAAAAAAAAAA//8AAAAAAQADAP//AQAAAAAAAAABAAEAAQAAAAAA/v8AAAAAAAD//wAAAQD//wAAAAD//wAA/v////////8CAAEA/v8BAP7/AAAAAAAA//8AAAEAAAD//wIAAQAAAAIAAQAAAAAAAAD///7/AQABAP//AAAAAP//AAACAAEA//8BAAAAAwAAAAAAAAD//wEAAAD//wAA///////////+/wAAAQABAAIAAAABAAEAAAD//wEAAAD/////AAD+/wIAAwABAAEA/v8BAAEAAAD//wAA//8AAP//AAAAAAEAAAAAAP//AAAAAAEAAQABAAEA/v///wAAAAD//wEAAAACAAAA/f/+/wAA/v///wAA//8AAAEAAQD///7/AAAAAAAAAAABAAAAAAACAAAAAAABAAAAAAABAP//AQD//wAA//8BAP7/AgABAAEAAQAAAAAAAQD//wEA/v8AAP////8AAP///////wIAAQD//wAAAAD//wAA/v///wAAAQD//wIA/////wEAAAAAAAIAAAABAAAAAAD//wEA//8AAAAA/////wAAAQAAAAAAAAD//wEAAQAAAAAAAAACAP///////wAAAgD//wAA/v8AAAIAAAAAAAEAAAABAP//AQABAAEAAQAAAP///v8BAAEAAAAAAP////8AAAAAAQD//wIAAQAAAAEAAAAAAAAA//8BAP//AAAAAP7//v///wEAAAAAAAIAAAAAAP//AAD//wEA//8BAAAAAAABAAEAAAABAP7///8AAAIAAAABAP//AAD//wEAAAAAAP//AAAAAAEAAAAAAAAAAAAAAP7/AQD//wAAAQD+/wEA/v8BAP7/AAABAAEAAAACAAIAAAADAAAA//8AAAEAAAABAP//AQD//wIA/////wEA//8AAAEA//8AAAEAAAAAAAAAAQABAAAAAAAAAAAAAAD//////////wAA//8AAP7/AAD+/wAAAQAAAAAA/////wAABAAAAAAA//8AAAEAAAAAAAAA/v8AAP//AAAAAAAAAAD//wAAAAD///////8BAAEAAAD/////AgABAAEA/v/+/wAAAQACAAEAAAD//wAAAwABAP//AgD+/wAA/v8AAAAAAAAAAAEA//8AAAEAAAD+/wEAAAAAAAEAAgAAAAEAAAABAP//AQD+/wIA/////wAAAQD//wAAAQD+/wAAAQABAAAA////////AAACAAAAAQAAAAIA//8BAP///v///wEA//8BAAEAAQD+/wAAAQD9/wAAAQAAAAEAAAABAAAAAgAAAP//AAD+/wAA/f8AAAAA////////AgAAAAcAAQD7/wEA/f8AAAIA//8GAP7//v/+//b/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+P/F//z/rv/i/7r/6v/Z/wYABwAoADAAKQBOABkATAD0/zQA1P8PANv/0//v/6//FwCi/ywAxP8oAPn//v82APT/WwD4/00A+/8yAPv//f/8/83/+v+w/+T/sf/j/9b/AQACACoAIgAtAEIAHwBPAAEAQADe/xcA0v/k/+X/t/8IAKv/IgC//yEA6/8EACMA9/9PAPf/VAD+/zcA+/8JAPn/1P8AALf/6f+w/+P/zf////j/HAAdAC0APgAfAEsABwBCAOP/IADV/+//2v/B//3/rP8PALv/GADd/xEAFgABAEMABABaAP//QgACABcA+//n/wAAwP/w/67/4v+///3/6f8WABcAKQA0ACIARgAQAEcA8f8pANn/9f/U/87/7f+v/wgAtP8RANP/FgANAAIAOQACAFQA/f9HAAAAIAABAO3//P/E/wEAs//q/7n/9P/i/wYAEQAZADEAJABBABMASAAAADEA3/8CANL/1v/g/7H/AACy/w8Axf8ZAPv/CQAzAAIAVQD//1AAAAAsAAIA9v/7/8r/AwC2//P/tf/m/+H/AwADABEAKQApADoAHgBHAAgAPADr/wkA1//f/93/vP/6/7L/CgDA/x4A7/8hACkAAgBPAPz/UgD1/zIABAAEAPz/0v/5/7f/AACy//H/2f/+/wEAAAAkABUAMwAdADoAEQA9APD/EADU//L/1P/H/+z/tf8LALv/HADk/ygAGgADAEMA//9TAPn/QAAAABAAAQDc//z/wf8DALD/7P/Q//z/9/8HABoAFgA3ACMAMAAOADwA+P8ZANv/+P/Y/9H/5v+8/wUAu/8WANf/HgAMAAoAPQABAFMA/f9HAP7/HwAEAN//+v/H/wMAs//2/8r/8//y/wMADgAQAC4AIwAyABMAJwD8/xcA3v8LANP/5v/f/8j/AgC4/w4A1P8eAAQACgAxAAEAUgD+/0gA/v8nAAIA8f/5/8r/BAC6/+3/wP/l/+b/AQAIABkAIwArAC4AIAAoAAkAGADj/w0A0f/r/9//0P8DAL3/CgDN/xkA//8IACUAAgBJAAAATwD+/ysAAQD7//3/z/8DAMT/+f/K/+L/5P/1////EgAcACYALgApAC4ACwAcAPL/EADZ//L/1f/U//f/uv8KAMX/DwDu/wcAHwADAEUABgBNAAEANQAAAAYAAQDf////xf/+/9P/4f/b//X/9v8LAA4AGAAlACoAMAAQABkA9v8TAOL/+f/W/9r/8f/I/wcAxP8MAOr/BwATAAQAOAAGAEcAAABCAAEADwAEAOP//v/F/wIAzf/o/93/8P/s/w4ACwAZACEAKgAyABMAIQD5/xgA6v8DANb/4P/y/9H/AQDJ/wkA4/8DAAoA/f8wAAQAQwABAEAA//8VAAIA7P/+/8r/BADP/+v/2v/s/+n/CwAIAA0AHAAjADQAHAAkAP//GQDy/wQA5v/i//b/0P/7/8f/AADh/wMAAAD+/yUAAAA7AAEAOAAAABwAAAD6/wAA1/8CAMr/AADb/+3/5f8BAAIACAAVABcALwAfACgA+/8XAPn/DgDe/+//7v/Q/wMAz/8JAOP/CwDx////EAAHADEAAQArAAIAHQAEAAcAAADr/wEAzv8CANj//f/k/wEA+f/+/xQABwAqAB4ALAD+/x4A8P8SAOb/8//f/9j//f/N/wEA3v8LAO7/AgAMAAQALAAEAC0AAQAdAAQADwABAPP/BADV/wMA0/8AAOH/AQD1/wAAEAADACQAGwAwAAQAHwD0/xUA8f/4/+L/2//7/8z/AwDc/woA6f8AAAQAAwAoAAcANAAAACcAAgAUAAEA+P8CANv/AgDR/wEA4v8BAOz/AgAIAPv/JAAVADMAFAAhAPP/GQDz//7/3P/l/+3/z/8BANf/CgDn/wkA/P///xoABwAwAAIAJwACABcAAwABAAIA4f8BAND/AgDd//3/6P8CAAYA/f8YAAwALwAZACUA9v8bAPj/AwDq/+r/7P/S//7/1/8EAOX/CQD6//7/GQAFAC8AAQApAAEAGQACAAMAAgDm/wEAzv8BANv//v/p/wIA//8BABMABQArACAALAABAB4A8f8NAOv/7v/m/9n/+P/R/wMA4f8OAPT/AQATAAMAKwAHACoAAwAbAAMABQADAO7/AQDU/wEA2f8AAOL////3////EgAAACUAGgAvAAUAHQD2/xIA9f/0//T/3P/4/8///f/h/wIA7f8AAAoAAQApAAQALQADACAAAgAPAP//9P///9r//f/T/wAA3f/9//D/AQAQAP//HAAHAC8ACQAfAPv/GAD+//f/+P/j/wEA0v/+/9n/AADq/wIABgD//x0AAQAuAAEAIwAAABQAAwD8/wEA3/8AAM//AADe////7f8BAAwA//8ZAAMALwAAACEA//8dAP3//v/9/+n////U//z/1v8BAOT/AAD+/wAAGwD+/ywA/v8kAAIAGAD///3////q/wEA0P///97/AADk/wAABAAAABUAAQAqAAEAKQAAABwAAAAFAP//6f8AANr////X/wAA4/8AAPj/AgAUAAAAKgD//ywAAAAcAP7/AQAAAOv/AADU/wAA2v8CAOP/AAABAAAAFgABABsAAAAqAAEAHwAAABQAAgDv/wEA3v///9H////f////7/8BAAoAAQApAAAALgD//yEAAQAIAAAA8P8BANr//v/V////4f8AAPf//v8UAAAAFAAAACYAAQAhAP7/GwD+//T/AADo/wIA1v8CANr/AgDp/wEABgAAAB8AAQAsAAEAJAAAAAwA///z/wEA3/8AANT/AADh/wEA9P///xQAAgASAAAAJQAAACEAAAAaAP//+v8BAOj////W////2P8BAOf///8DAAAAHwAAAC4AAAAlAAAAEgAAAPL/AQDm////0f8CAN3/AADr//7/EQD//xAAAQAhAAIAJQAAAB8AAAABAP//6v8CAN//AQDX/wAA4/8AAPr/AAAXAAAAKgABACgAAAAbAP///f8AAOj/AADU/wAA2v///+f/AQANAAMAEQD+/xwA/v8kAP7/IQABAAgA/v/p////5/8AANf/AQDd/wEA8v8BABMAAQAjAAAALgAAACAAAQADAAEA7f8BANn/AgDY//7/4P/+/wEAAAAXAAIAFAAFACUA/P8jAP//EgAAAO//AQDo////1/8AAN3/AADx//7/DgAAAB0AAQAoAAAAIwAAAAoAAQDv/wMA4f8AANn/AQDi/wEA+v///xgAAAAQAP3/IwD//yUA/v8XAAAA7/8AAOv/AADc/wAA3P/+/+v/AQALAAEAGgACACkAAAAkAP7/EAABAO/////q//7/1/8AANz/AgDw/wEAEgD//w8AAAAcAAIAJQAAAB0AAAD2////7P8AAOP/AgDa/wAA5P8BAAQAAQAWAAAAIgAAACMAAAAaAP//+P///+v/AQDZ/wAA2////+7/AAARAAAADgAAABYAAAAhAAAAIAABAPz/AQDt/wAA5P8AANr/AQDg/wEA/P8BABcAAAAhAP//KQD//xwAAAD8/wEA7v8AAN3////Z/wAA6f8BAA0AAAARAAEAEQAAACMAAAAgAAEA/f8CAO3/AADv/wAA3v8BANv////1////EgAAABkA//8nAAAAIgAAAAMAAADu/wAA6P8CANn/AQDg////BQD//xMAAQAOAP//IAABACYAAAAGAAAA6f////H/AADg/wEA2f8AAO3///8PAAAAFQACACQAAAAkAAEADQABAO//AADp/wAA2////9z/AQD7/wEAFgAAAAwAAQAXAP7/JQD9/xMAAADx/wAA8f8AAOr/AADc/wEA4/8BAAkAAAAVAAAAIQD//yYA//8UAAEA9P8BAOz/AADf/wAA3P8AAPP/AAAQAAAADQABAA0AAAAlAAEAGAD///H//v/0/wEA7v8CAN//AADg//3/BAACABUAAQAfAAAAJwABABgAAQD0//7/7f///+L/AADa/wIA8P///w4A//8SAAMACQAAACAAAQAgAP//+v////P////y/wEA4/8BANr/AQD9/wAAEwD//xkAAQAjAAAAIgABAPz////s/wAA6v8BANX/AQDr//7/BwABABMAAAAHAP//FwAAACYAAAD//wEA9P8BAPb/AQDu////2v8BAPn/AAATAP//FwD//yEAAAAjAAAAAgAAAOn/AQDr//7/2P8CAOT/AAABAP//FgABAAUAAQATAP//IwAAAAEAAgDy/wEA9/8AAPb/AADb/wAA6/8BABAAAAATAP7/IQAAACYA//8UAP//7/8AAPD/AADd/wEA3P/+//7///8OAAAACgAAAAgAAAAhAP//CQACAPT/AQD2/wAA9v///97////m/wIADgABABMAAQAfAP//JwAAABMAAADw/wAA8P///+r/AQDb/wAA9f8AAA8AAAARAAIABAD//wYA/v8HAAAAAQD//wMAAgAGAAAA7f8AAOz/AAALAP//DwACABQA//8bAAAAHgD///f/AADq/wEA6/8BANj//v/t/wAACAD+/xAAAgAEAAAABAABAAcAAQADAAAA//8AAAUA///1/wAA5f///wIAAAAOAAAAEAAAABsAAAAhAAAA/v8BAOj////y////3f8AAOf/AQAGAAEADAAAAAcA//8BAP//CQABAAMA//8BAP//BQAAAAAAAADo/wAA+/8AAAoAAAALAAAAFAAAACAAAQAGAAIA7f8BAPH/AADm/wMA3P8CAP7/AgASAP//CgD//wAAAAAIAP//BQD//wEAAAACAP7/BAAAAPz/AwD8////BAAAAAEA//8HAAAAHQAAAAgA/v/x//7/8f///+f/AQDg/////P///woAAAAMAP//AAABAAYA//8EAAAAAgAAAAUAAAACAAAAAwAAAAIAAAABAAAAAQABAAAAAgAcAP//DgD///T/AQDx/wAA9P8CAOH/AAD3/wAACQAAAAoAAQABAP//AwAAAAcAAAD+/wAAAgACAAEAAAD+////AwD+/wAAAAABAP//+v8BABEAAQATAAAA9f/+//L//f/z/wIA6f8AAPb/AQAFAP//DAAAAAAAAAAFAP//BQD//wEA//8DAAEAAQAAAP7///8AAAAA//8BAAIAAAD+/wAAEAABABYAAgD6/wEA8v8BAPX/AwDp/wAA8////wMA//8JAAEABAABAAEA//8FAAEA//8AAAMAAQACAP//AQAAAAEAAgAFAP//AQABAAAAAQAAAP//EQABAAAAAAD5/wEA+P8AAPr////6/wAA+/8BAAIA//8BAAAA//8CAAUA//8BAP7/AAABAAEAAgAAAAAAAwAAAAEA/v8DAAIAAAACAAQA//8TAAAA/P8BAPr////3//////8AAPz/AQD7/wEAAgD/////AAABAAEABAAAAP//////////AAAAAAAAAAADAAAAAwAAAAAA//8EAP///v/+/xAA//8HAAAA+/////j/AQD8////AAD///n///8AAAAA//8AAP////8DAP//AgAAAAAAAAACAAIAAAD+/wAAAQD//wAA/////wIAAgD9////CQACAAYA///9////+f8BAPr/AQAAAAIA/v///wAA//8AAAAAAAAAAAEAAAABAAAAAgAAAAEAAAAAAAEAAQABAAAAAgABAP//AAD//wEAAAD///////8BAAIAAQAAAAAA/v/+//////8BAAAAAQABAP//AAD///////8BAAAAAQABAP////8CAAEAAQD//wEA/v//////AQAAAAAAAAAAAAAAAAD9/wMA/////wAAAQD+/wEA/v/+//7/AQD//wMAAAAAAAAAAAABAAEA//////7/AAACAP3/AAD//wAAAQAAAP//AQD//wAAAAAAAAEA//8CAP//AAAAAAAA/v8AAAAA//8BAP//AAABAP//AAAAAP//AQD//wAAAQABAAAAAAABAAEA/v///wAAAAD//////////wAAAAAAAP//AAD////////8/wIAAAADAAEA/////wEA/v8BAP7/AgAAAAEAAgAAAP//AgD/////AQD//wEA//////7/AQD//wMAAAAAAAAA//8CAP//AQAAAP//AAACAAAAAAABAP//AQD+/wAA/////wAA/f///wAAAAAAAP7/AAAAAAAAAgD//wEAAQACAP//AAAAAAEAAQD//wAAAAAAAAAA//8BAAMA/v8AAP7/AQAAAAAAAQAAAAAA///+//7/AAAAAAAA//8BAP7/AQAAAP//AQABAAAAAQAAAP//AAD//wIA/v///wAAAQABAP//AAD//wEA//8BAP//AgAAAP///////wAAAQABAP//AwABAAAAAAAAAAAA/////wIAAwACAAAA/v8BAAAAAAAAAAAA//8AAP////8AAAAA/////wAA/////wEA/v8CAAEAAQD//wAAAAABAAAAAAD//wEAAQABAAAA//8CAAAAAAAAAP7/AAABAAAAAQABAAAAAgABAAAAAQD//wEAAwD+/wAA/v8AAAEAAAAAAAAAAAAAAAEAAAD//wMA/v///wAAAAACAAEAAAAAAP7///8DAAEAAQD//wEA/f8BAAEAAQD//wEAAQABAAMAAgAAAAEA//8AAP//BAAAAAIA/v//////AQABAAAAAAD//wEAAAACAAIAAQAAAAAAAgAAAAAAAAABAAIAAAABAAIAAQAAAP////8AAAAAAAD//wAAAQACAP//AAAAAAAAAQAAAAEA//8AAAAAAAD/////AQD//wAAAQD9////AQAAAAAA//8BAAAA///+/////v8BAAAAAQAAAAAAAAAAAAIA//8BAAAAAAACAP//AQD//wAAAAD/////AAD9/wAAAAACAAAAAgAAAAEAAQABAAEAAAAAAAEA//8AAAEAAQACAAAAAQAAAAEA//8BAAIAAAACAP//AAABAAAAAAAAAAAAAAD//wAAAQD/////AAAAAP////8AAAEAAAAAAP7///8BAAIAAQD//wEAAQAAAP//AgAAAAAAAAD//wAA//8CAP7/AQAAAP7/AAD+////AAAAAAAAAQABAAAA//8AAAEAAAABAP7/AAAAAP7/AAD+/wAAAQABAAEA/////////v8BAP///v///wIAAAAAAAAAAQAAAAIAAQAAAAAAAAABAAEAAAAAAAAAAAD//wEAAQD//wAAAQABAAAA/v/+/////////wAAAAD//wAAAAD/////AAAAAP7/AAD//wIA//8CAP//AQAAAP////8AAAAAAQABAP////8AAP//AQACAAAAAQAAAAAAAAAAAAAA//8BAAAAAAD+/wAA/v///wEAAAD+//7///8CAP7/AAABAP3/AwAAAAAAAAABAAIAAAABAAAAAQABAAIAAAAAAP//AAAAAAEAAAACAAEAAAACAAAAAAABAAAAAwAAAAAAAAD+/wAAAQD9//////8BAAAA/v8AAAAAAAAAAAAAAAD//wMA/v8BAAEAAQACAAAA/v8BAP//AwABAAIAAQABAP//AQAAAAEAAAAAAAEA//8AAAAAAAD/////AAABAAEAAAAAAP////8AAAAAAAAAAAAA/v8AAP//AQAAAP//AAABAAIAAQAAAAAAAgABAAAA/////wAAAQABAP//AQABAAEA/////wAAAAAAAAAAAAABAAEAAQAAAAAAAAAAAAAA//8AAP7/AQD9/wAAAgD//wEAAQABAAEA/v8AAAEA/////wAAAAAAAP//AAABAAAAAAAAAAAA//8CAP//AAABAAEAAQABAAAA//8BAAIAAgD//wAA/v8AAAEAAAD///7/AAAAAAEAAAABAAAAAQABAAAAAQACAAAA///+/wAAAQABAP7////+/wAA//8AAAAAAgAAAP//AQD9/wAAAAD//wAA//8AAAAAAQAAAAAAAQD//wAAAAAAAP//AQABAAAA/v8CAP//AAD///////8AAAAAAAACAAEA//8BAP7/AAAAAAEA//8BAAAAAQD//wAAAQD+/wAA/////wAAAAD//wAAAQABAAAA//8AAAEA/////wAA//8AAAAA/v/+/wEAAgABAP//AgD//wIA/////wAA//8AAAEAAQAAAAAAAQAAAAMAAAACAP//",showCount:!0},audio:{disabled:!0,defaultToggledOn:!1,language:"en-US",voiceNames:["Microsoft David - English (United States)","Alex (English - United States)"],rate:1,volume:1,icon:Pf,iconDisabled:Tf},chatHistory:{disabled:!1,maxEntries:30,storageKey:"rcb-history",storageType:"LOCAL_STORAGE",viewChatHistoryButtonText:"Load Chat History ⟳",chatHistoryLineBreakText:"----- Previous Chat History -----",autoLoad:!1},chatInput:{disabled:!1,allowNewline:!1,enabledPlaceholderText:"Type your message...",disabledPlaceholderText:"",showCharacterCount:!1,characterLimit:-1,botDelay:1e3,sendButtonIcon:kf,blockSpam:!0,sendOptionOutput:!0,sendCheckboxOutput:!0,buttons:[mt.VOICE_MESSAGE_BUTTON,mt.SEND_MESSAGE_BUTTON]},chatWindow:{showScrollbar:!1,showTypingIndicator:!0,autoJumpToBottom:!1,showMessagePrompt:!0,messagePromptText:"New Messages ↓",messagePromptOffset:30,defaultOpen:!1},sensitiveInput:{maskInTextArea:!0,maskInUserBubble:!0,asterisksCount:10,hideInUserBubble:!1},userBubble:{animate:!0,showAvatar:!1,avatar:"data:image/svg+xml,%3csvg%20width='140'%20height='140'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cy='60.044'%20cx='70'%20fill='%235c5c5c'%20r='29'/%3e%3cpath%20d='m16.36%20156.186-.01-30.5c-.005-16.844%2024.168-30.507%2053.991-30.516%2029.823-.009%2054.004%2013.64%2054.01%2030.484l.008%2030.5-108%20.032z'%20fill='%235c5c5c'/%3e%3c/svg%3e",simulateStream:!1,streamSpeed:30},botBubble:{animate:!0,showAvatar:!1,avatar:Ku,simulateStream:!1,streamSpeed:30},voice:{disabled:!0,defaultToggledOn:!1,language:"en-US",timeoutPeriod:1e4,autoSendDisabled:!1,autoSendPeriod:1e3,sendAsAudio:!1,icon:Ef,iconDisabled:Cf},footer:{text:z.jsxs("div",{style:{cursor:"pointer",display:"flex",flexDirection:"row",alignItems:"center",columnGap:3},onClick:()=>window.open("https://react-chatbotify.com"),children:[z.jsx("span",{children:"Powered By "},0),z.jsx("div",{style:{borderRadius:"50%",width:14,height:14,display:"flex",justifyContent:"center",alignItems:"center",background:"linear-gradient(to right, #42b0c5, #491d8d)"},children:z.jsx($u,{style:{width:"80%",height:"80%",fill:"#fff"}})},1),z.jsx("span",{style:{fontWeight:"bold"},children:" React ChatBotify"},2)]}),buttons:[mt.FILE_ATTACHMENT_BUTTON,mt.EMOJI_PICKER_BUTTON]},fileAttachment:{disabled:!1,multiple:!0,accept:".png",icon:Zu,iconDisabled:Zu,sendFileName:!0,showMediaDisplay:!1},emoji:{disabled:!1,icon:eA,iconDisabled:eA,list:["😀","😃","😄","😅","😊","😌","😇","🙃","🤣","😍","🥰","🥳","🎉","🎈","🚀","⭐️"]},toast:{maxCount:3,forbidOnMax:!1,dismissOnClick:!0},event:{rcbPreInjectMessage:!1,rcbPostInjectMessage:!1,rcbStartSimulateStreamMessage:!1,rcbStopSimulateStreamMessage:!1,rcbStartStreamMessage:!1,rcbChunkStreamMessage:!1,rcbStopStreamMessage:!1,rcbRemoveMessage:!1,rcbLoadChatHistory:!1,rcbToggleChatWindow:!1,rcbStartSpeakAudio:!1,rcbToggleAudio:!1,rcbToggleNotifications:!1,rcbToggleVoice:!1,rcbChangePath:!1,rcbShowToast:!1,rcbDismissToast:!1,rcbUserSubmitText:!1,rcbUserUploadFile:!1,rcbTextAreaChangeValue:!1,rcbPreLoadChatBot:!1,rcbPostLoadChatBot:!1,rcbPreProcessBlock:!1,rcbPostProcessBlock:!1},ariaLabel:{chatButton:"open chat",audioButton:"toggle audio",closeChatButton:"close chat",emojiButton:"emoji picker",fileAttachmentButton:"upload file",notificationButton:"toggle notifications",sendButton:"send message",voiceButton:"toggle voice",inputTextArea:"input text area"},device:{desktopEnabled:!0,mobileEnabled:!0,applyMobileOptimizations:!0}},nA=B.createContext({settings:{},setSyncedSettings:()=>null,syncedSettingsRef:{current:{}}}),Ne=()=>B.useContext(nA),Df=({children:e,settings:n=tA,setSyncedSettings:i,syncedSettingsRef:a})=>z.jsx(nA.Provider,{value:{settings:n,setSyncedSettings:i,syncedSettingsRef:a},children:e}),rA={tooltipStyle:{},notificationBadgeStyle:{},chatWindowStyle:{},headerStyle:{},bodyStyle:{},chatInputContainerStyle:{},chatInputAreaStyle:{},chatInputAreaFocusedStyle:{},chatInputAreaDisabledStyle:{},userBubbleStyle:{},botBubbleStyle:{},botOptionStyle:{},botOptionHoveredStyle:{},botCheckboxRowStyle:{},botCheckboxNextStyle:{},botCheckMarkStyle:{},botCheckMarkSelectedStyle:{},characterLimitStyle:{},characterLimitReachedStyle:{},chatHistoryLineBreakStyle:{},chatMessagePromptStyle:{},chatMessagePromptHoveredStyle:{},footerStyle:{},loadingSpinnerStyle:{},mediaDisplayContainerStyle:{},chatButtonStyle:{},chatButtonHoveredStyle:{},chatHistoryButtonStyle:{},chatHistoryButtonHoveredStyle:{},sendButtonStyle:{},sendButtonHoveredStyle:{},sendButtonDisabledStyle:{},audioButtonStyle:{},audioButtonDisabledStyle:{},closeChatButtonStyle:{},emojiButtonStyle:{},emojiButtonDisabledStyle:{},fileAttachmentButtonStyle:{},fileAttachmentButtonDisabledStyle:{},notificationButtonStyle:{},notificationButtonDisabledStyle:{},voiceButtonStyle:{},voiceButtonDisabledStyle:{},chatIconStyle:{},audioIconStyle:{},audioIconDisabledStyle:{},closeChatIconStyle:{},emojiIconStyle:{},emojiIconDisabledStyle:{},fileAttachmentIconStyle:{},fileAttachmentIconDisabledStyle:{},notificationIconStyle:{},notificationIconDisabledStyle:{},voiceIconStyle:{},voiceIconDisabledStyle:{},sendIconStyle:{},sendIconDisabledStyle:{},sendIconHoveredStyle:{},rcbTypingIndicatorContainerStyle:{},rcbTypingIndicatorDotStyle:{},toastPromptContainerStyle:{},toastPromptStyle:{},toastPromptHoveredStyle:{}},oA=B.createContext({styles:{},setSyncedStyles:()=>null,syncedStylesRef:{current:{}}}),rt=()=>B.useContext(oA),If=({children:e,styles:n=rA,setSyncedStyles:i,syncedStylesRef:a})=>z.jsx(oA.Provider,{value:{styles:n,setSyncedStyles:i,syncedStylesRef:a},children:e}),Bf=({buttons:e})=>{var n,i,a,o,u,f,A;const{settings:c}=Ne(),{styles:d}=rt(),h={backgroundImage:`linear-gradient(to right, ${(n=c.general)==null?void 0:n.secondaryColor},
106
+ ${(i=c.general)==null?void 0:i.primaryColor})`,...d.headerStyle};return z.jsxs("div",{style:h,className:"rcb-chat-header-container",children:[z.jsxs("div",{className:"rcb-chat-header",children:[((a=c.header)==null?void 0:a.showAvatar)&&z.jsx("div",{style:{backgroundImage:`url("${(o=c.header)==null?void 0:o.avatar}")`},className:"rcb-bot-avatar"}),B.isValidElement((u=c.header)==null?void 0:u.title)?(f=c.header)==null?void 0:f.title:z.jsx("div",{style:{margin:0,fontSize:20,fontWeight:"bold"},children:(A=c.header)==null?void 0:A.title})]}),z.jsx("div",{className:"rcb-chat-header",children:e==null?void 0:e.map((v,y)=>z.jsx(B.Fragment,{children:v},y))})]})},aA=B.createContext({}),St=()=>B.useContext(aA),Mf=({children:e,botIdRef:n,flowRef:i})=>{const a=B.useRef(null),o=B.useRef(""),u=B.useRef(null),f=B.useRef(new Map),A=B.useRef(null),c=B.useRef(""),d=B.useRef(!1),h=B.useRef(null),v=B.useRef(null),y=B.useRef(null);return z.jsx(aA.Provider,{value:{botIdRef:n,flowRef:i,inputRef:a,timeoutIdRef:u,streamMessageMap:f,chatBodyRef:A,paramsInputRef:c,keepVoiceOnRef:d,audioContextRef:h,audioBufferRef:v,gainNodeRef:y,prevInputRef:o},children:e})},bn=e=>{const[n,i]=B.useState(e),a=B.useRef(e);return[n,o=>{const u=typeof o=="function"?o(a.current):o;a.current=u,i(u)},a]},iA=B.createContext({}),Ct=()=>B.useContext(iA),Rf=({children:e,settings:n})=>{var i,a,o,u,f,A;const[c,d,h]=bn(!1),[v,y,k]=bn(((i=n==null?void 0:n.chatWindow)==null?void 0:i.defaultOpen)??!1),[C,R,E]=bn(((a=n==null?void 0:n.audio)==null?void 0:a.defaultToggledOn)??!1),[T,Q,M]=bn(((o=n==null?void 0:n.voice)==null?void 0:o.defaultToggledOn)??!1),[U,j,N]=bn(((u=n==null?void 0:n.notification)==null?void 0:u.defaultToggledOn)??!0),[W,ee]=B.useState(!1),[G,Y]=B.useState(!1),[Z,$,ae]=bn(!1),[ie,le,be]=bn(!0),[he,me,L]=bn(!1),[Be,F]=B.useState(!1),[ve,fe]=B.useState(!1),[ce,ge]=B.useState(0),[ye,De]=B.useState(0),[Fe,Re]=B.useState(!1),[Ue,Je]=B.useState(((f=window.visualViewport)==null?void 0:f.height)??window.innerHeight),[Dt,qe]=B.useState(((A=window.visualViewport)==null?void 0:A.width)??window.innerWidth);return z.jsx(iA.Provider,{value:{isBotTyping:c,setSyncedIsBotTyping:d,syncedIsBotTypingRef:h,isChatWindowOpen:v,setSyncedIsChatWindowOpen:y,syncedIsChatWindowOpenRef:k,audioToggledOn:C,setSyncedAudioToggledOn:R,syncedAudioToggledOnRef:E,voiceToggledOn:T,setSyncedVoiceToggledOn:Q,syncedVoiceToggledOnRef:M,notificationsToggledOn:U,setSyncedNotificationsToggledOn:j,syncedNotificationsToggledOnRef:N,isLoadingChatHistory:W,setIsLoadingChatHistory:ee,hasChatHistoryLoaded:G,setHasChatHistoryLoaded:Y,isScrolling:Z,setSyncedIsScrolling:$,syncedIsScrollingRef:ae,textAreaDisabled:ie,setSyncedTextAreaDisabled:le,syncedTextAreaDisabledRef:be,textAreaSensitiveMode:he,setSyncedTextAreaSensitiveMode:me,syncedTextAreaSensitiveModeRef:L,hasInteractedPage:Be,setHasInteractedPage:F,hasFlowStarted:ve,setHasFlowStarted:fe,unreadCount:ce,setUnreadCount:ge,inputLength:ye,setInputLength:De,blockAllowsAttachment:Fe,setBlockAllowsAttachment:Re,viewportHeight:Ue,setViewportHeight:Je,viewportWidth:Dt,setViewportWidth:qe},children:e})};var we=(e=>(e.START_SPEAK_AUDIO="rcb-start-speak-audio",e.TOGGLE_AUDIO="rcb-toggle-audio",e.TOGGLE_NOTIFICATIONS="rcb-toggle-notifications",e.TOGGLE_VOICE="rcb-toggle-voice",e.TOGGLE_CHAT_WINDOW="rcb-toggle-chat-window",e.PRE_INJECT_MESSAGE="rcb-pre-inject-message",e.POST_INJECT_MESSAGE="rcb-post-inject-message",e.START_SIMULATE_STREAM_MESSAGE="rcb-start-simulate-stream-message",e.STOP_SIMULATE_STREAM_MESSAGE="rcb-stop-simulate-stream-message",e.START_STREAM_MESSAGE="rcb-start-stream-message",e.CHUNK_STREAM_MESSAGE="rcb-chunk-stream-message",e.STOP_STREAM_MESSAGE="rcb-stop-stream-message",e.REMOVE_MESSAGE="rcb-remove-message",e.LOAD_CHAT_HISTORY="rcb-load-chat-history",e.CHANGE_PATH="rcb-change-path",e.SHOW_TOAST="rcb-show-toast",e.DISMISS_TOAST="rcb-dismiss-toast",e.USER_SUBMIT_TEXT="rcb-user-submit-text",e.USER_UPLOAD_FILE="rcb-user-upload-file",e.TEXT_AREA_CHANGE_VALUE="rcb-text-area-change-value",e.PRE_LOAD_CHATBOT="rcb-pre-load-chatbot",e.POST_LOAD_CHATBOT="rcb-post-load-chatbot",e.PRE_PROCESS_BLOCK="rcb-pre-process-block",e.POST_PROCESS_BLOCK="rcb-post-process-block",e))(we||{});const Of={[we.START_SPEAK_AUDIO]:!0,[we.TOGGLE_AUDIO]:!0,[we.TOGGLE_VOICE]:!0,[we.TOGGLE_NOTIFICATIONS]:!0,[we.TOGGLE_CHAT_WINDOW]:!0,[we.PRE_INJECT_MESSAGE]:!0,[we.POST_INJECT_MESSAGE]:!1,[we.PRE_LOAD_CHATBOT]:!0,[we.POST_LOAD_CHATBOT]:!1,[we.START_SIMULATE_STREAM_MESSAGE]:!0,[we.STOP_SIMULATE_STREAM_MESSAGE]:!1,[we.START_STREAM_MESSAGE]:!0,[we.CHUNK_STREAM_MESSAGE]:!0,[we.STOP_STREAM_MESSAGE]:!0,[we.REMOVE_MESSAGE]:!0,[we.LOAD_CHAT_HISTORY]:!0,[we.CHANGE_PATH]:!0,[we.SHOW_TOAST]:!0,[we.DISMISS_TOAST]:!0,[we.USER_SUBMIT_TEXT]:!0,[we.USER_UPLOAD_FILE]:!0,[we.TEXT_AREA_CHANGE_VALUE]:!0,[we.PRE_PROCESS_BLOCK]:!0,[we.POST_PROCESS_BLOCK]:!0},Gl=async(e,n,i)=>{const a=new CustomEvent(e,{detail:n,cancelable:Of[e]});return a.data=i,a.promises=[],window.dispatchEvent(a),await Promise.all(a.promises),a},sA=B.createContext({paths:[],setSyncedPaths:()=>{},syncedPathsRef:{current:[]}}),Ti=()=>B.useContext(sA),_f=({children:e})=>{const[n,i,a]=bn([]);return z.jsx(sA.Provider,{value:{paths:n,setSyncedPaths:i,syncedPathsRef:a},children:e})},Xn=()=>{const{botIdRef:e}=St(),{syncedPathsRef:n}=Ti(),i=B.useCallback(()=>n.current.length>0?n.current.at(-1)??null:null,[]),a=B.useCallback(()=>n.current.length>1?n.current.at(-2)??null:null,[]);return{dispatchRcbEvent:B.useCallback(async(o,u)=>{const f={botId:e.current,currPath:i(),prevPath:a()};return await Gl(o,f,u)},[e])}},wn=()=>{const{settings:e}=Ne(),{isChatWindowOpen:n,setSyncedIsChatWindowOpen:i,viewportHeight:a,setViewportHeight:o,viewportWidth:u,setViewportWidth:f,setUnreadCount:A,setSyncedIsBotTyping:c,setSyncedIsScrolling:d,syncedIsBotTypingRef:h,syncedIsChatWindowOpenRef:v}=Ct(),{chatBodyRef:y}=St(),{dispatchRcbEvent:k}=Xn(),C=B.useCallback(()=>{if(!y.current)return!1;const M=y.current.getBoundingClientRect(),U=window.innerHeight??document.documentElement.clientHeight,j=window.innerWidth??document.documentElement.clientWidth;return M.top>=0&&M.left>=0&&M.bottom<=U&&M.right<=j},[y]),R=B.useCallback(async M=>{var U;M!==v.current&&((U=e.event)!=null&&U.rcbToggleChatWindow&&(await k(we.TOGGLE_CHAT_WINDOW,{currState:v.current,newState:!v.current})).defaultPrevented||i(j=>(j||A(0),!j)))},[v]),E=B.useCallback(async M=>{M!==h.current&&c(U=>!U)},[h]),T=B.useCallback((M,U,j,N)=>(M/=N/2)<1?j/2*M*M+U:-j/2*(--M*(M-2)-1)+U,[]),Q=B.useCallback((M=0)=>{if(!y.current)return;const U=y.current.scrollHeight-y.current.clientHeight;if(M<=0)return y.current.scrollTop=U,void d(!1);const j=y.current.scrollTop,N=U-j;let W=0;const ee=()=>{if(!y.current)return;W+=20;const G=T(W,j,N,M);y.current.scrollTop=G,W<M?requestAnimationFrame(ee):d(!1)};ee()},[y]);return{isChatWindowOpen:n,setSyncedIsChatWindowOpen:i,toggleChatWindow:R,viewportHeight:a,setViewportHeight:o,viewportWidth:u,setViewportWidth:f,toggleIsBotTyping:E,scrollToBottom:Q,getIsChatBotVisible:C}},Lf=()=>{var e,n,i;const{settings:a}=Ne(),{styles:o}=rt(),{unreadCount:u,isScrolling:f}=Ct(),{chatBodyRef:A}=St(),{scrollToBottom:c}=wn(),[d,h]=B.useState(!1),v={color:(e=a.general)==null?void 0:e.primaryColor,borderColor:(n=a.general)==null?void 0:n.primaryColor,...o.chatMessagePromptHoveredStyle};return z.jsx("div",{className:"rcb-message-prompt-container "+(A.current&&((y=a.chatWindow)!=null&&y.showMessagePrompt)&&f&&u>0?"visible":"hidden"),children:z.jsx("div",{onMouseEnter:()=>{h(!0)},onMouseLeave:()=>{h(!1)},style:d?v:{...o.chatMessagePromptStyle},onMouseDown:k=>{k.preventDefault(),c(600)},className:"rcb-message-prompt-text",children:(i=a.chatWindow)==null?void 0:i.messagePromptText})});var y},lA=B.createContext({messages:[],setSyncedMessages:()=>{},syncedMessagesRef:{current:[]}}),Vl=()=>B.useContext(lA),Ff=({children:e})=>{const[n,i,a]=bn([]);return z.jsx(lA.Provider,{value:{messages:n,setSyncedMessages:i,syncedMessagesRef:a},children:e})},Qf=({message:e,isNewSender:n})=>{var i,a,o,u,f,A;const{settings:c}=Ne(),{styles:d}=rt(),h=typeof e.content=="string",v=e.content,y=e.contentWrapper?z.jsx(e.contentWrapper,{children:v}):v,k={backgroundColor:(i=c.general)==null?void 0:i.primaryColor,color:"#fff",maxWidth:(a=c.userBubble)!=null&&a.showAvatar?"65%":"70%",...d.userBubbleStyle},C=(o=c.userBubble)!=null&&o.animate?"rcb-user-message-entry":"",R=((u=c.userBubble)==null?void 0:u.showAvatar)&&n,E="rcb-user-message"+(!n&&(f=c.userBubble)!=null&&f.showAvatar?" rcb-user-message-offset":"");return z.jsxs("div",{className:"rcb-user-message-container",children:[h?z.jsx("div",{style:k,className:`${E} ${C}`,children:y}):z.jsx(z.Fragment,{children:y}),R&&z.jsx("div",{style:{backgroundImage:`url("${(A=c.userBubble)==null?void 0:A.avatar}")`},className:"rcb-message-user-avatar"})]})},Hf=({message:e,isNewSender:n})=>{var i,a,o,u,f,A;const{settings:c}=Ne(),{styles:d}=rt(),h=typeof e.content=="string",v=e.content,y=e.contentWrapper?z.jsx(e.contentWrapper,{children:v}):v,k={backgroundColor:(i=c.general)==null?void 0:i.secondaryColor,color:"#fff",maxWidth:(a=c.botBubble)!=null&&a.showAvatar?"65%":"70%",...d.botBubbleStyle},C=(o=c.botBubble)!=null&&o.animate?"rcb-bot-message-entry":"",R=((u=c.botBubble)==null?void 0:u.showAvatar)&&n,E="rcb-bot-message"+(!n&&(f=c.botBubble)!=null&&f.showAvatar?" rcb-bot-message-offset":"");return z.jsxs("div",{className:"rcb-bot-message-container",children:[R&&z.jsx("div",{style:{backgroundImage:`url("${(A=c.botBubble)==null?void 0:A.avatar}")`},className:"rcb-message-bot-avatar"}),h?z.jsx("div",{style:k,className:`${E} ${C}`,children:y}):z.jsx(z.Fragment,{children:y})]})},Nf=()=>{var e,n,i;const{settings:a}=Ne(),{styles:o}=rt(),u=(e=a.botBubble)!=null&&e.animate?"rcb-bot-message-entry":"";return z.jsxs("div",{className:"rcb-bot-message-container",children:[((n=a.botBubble)==null?void 0:n.showAvatar)&&z.jsx("div",{style:{backgroundImage:`url("${(i=a.botBubble)==null?void 0:i.avatar}")`},className:"rcb-message-bot-avatar"}),z.jsx("div",{onMouseDown:f=>{f.preventDefault()},className:`rcb-bot-message ${u}`,children:z.jsxs("div",{className:"rcb-typing-indicator",style:{...o==null?void 0:o.rcbTypingIndicatorContainerStyle},children:[z.jsx("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}}),z.jsx("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}}),z.jsx("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}})]})})]})},Uf=()=>{var e,n,i;const{settings:a}=Ne(),{styles:o}=rt(),{messages:u}=Vl(),{scrollToBottom:f}=wn(),{isBotTyping:A,syncedIsScrollingRef:c}=Ct(),{chatBodyRef:d}=St(),h={...o==null?void 0:o.bodyStyle,scrollbarWidth:(e=a.chatWindow)!=null&&e.showScrollbar?"auto":"none"};return B.useEffect(()=>{c.current||f()},[(n=d.current)==null?void 0:n.scrollHeight]),z.jsxs("div",{style:h,className:"rcb-chat-body-container",ref:d,children:[u.map((v,y)=>{const k=(C=>C===0||u[C].sender!==u[C-1].sender)(y);return v.sender.toUpperCase()==="USER"?z.jsx(Qf,{message:v,isNewSender:k},y):v.sender.toUpperCase()==="BOT"?z.jsx(Hf,{message:v,isNewSender:k},y):z.jsx("div",{children:v.content},y)}),A&&((i=a.chatWindow)==null?void 0:i.showTypingIndicator)&&z.jsx(Nf,{}),z.jsx(Lf,{})]})},zf=({checkboxes:e,checkedItems:n,path:i})=>{var a,o,u,f,A,c,d,h,v,y,k;const{settings:C}=Ne(),{styles:R}=rt(),{paths:E}=Ti(),{handleSubmitText:T}=xa(),[Q,M]=B.useState(new Set),[U,j]=B.useState(!1),N={cursor:U?`url("${(a=C.general)==null?void 0:a.actionDisabledIcon}"), auto`:"pointer",color:(o=C.general)==null?void 0:o.primaryColor,borderColor:(u=C.general)==null?void 0:u.primaryColor,...R.botCheckboxRowStyle},W={cursor:U||Q.size<e.min?`url("${(f=C.general)==null?void 0:f.actionDisabledIcon}"), auto`:"pointer",color:(A=C.general)==null?void 0:A.primaryColor,borderColor:(c=C.general)==null?void 0:c.primaryColor,...R.botCheckboxNextStyle},ee={cursor:U?`url("${(d=C.general)==null?void 0:d.actionDisabledIcon}"), auto`:"pointer",color:"transparent",...R.botCheckMarkStyle},G={cursor:U?`url("${(h=C.general)==null?void 0:h.actionDisabledIcon}"), auto`:"pointer",color:"#fff",borderColor:(v=C.general)==null?void 0:v.primaryColor,backgroundColor:(y=C.general)==null?void 0:y.primaryColor,...R.botCheckMarkSelectedStyle};return B.useEffect(()=>{E.length>0&&E[E.length-1]!==i&&j(!e.reusable)},[E]),z.jsxs("div",{className:"rcb-checkbox-container "+((k=C.botBubble)!=null&&k.showAvatar?"rcb-checkbox-offset":""),children:[e.items.map(Y=>z.jsx("div",{onMouseDown:Z=>{Z.preventDefault(),($=>{U||M(ae=>{const ie=new Set(ae);if(ie.has($))n.delete($),ie.delete($);else{if(Q.size==e.max)return ae;n.add($),ie.add($)}return ie})})(Y)},style:N,className:"rcb-checkbox-row-container",children:z.jsxs("div",{className:"rcb-checkbox-row",children:[z.jsx("div",{style:Q.has(Y)?G:ee,className:"rcb-checkbox-mark"}),z.jsx("div",{className:"rcb-checkbox-label",children:Y})]})},Y)),z.jsx("div",{style:W,className:"rcb-checkbox-next-button",onMouseDown:Y=>{var Z;if(Y.preventDefault(),U||Q.size<e.min)return;const $=Array.from(n).join(", ");let ae;j(!e.reusable),ae=e.sendOutput!=null?e.sendOutput:((Z=C.chatInput)==null?void 0:Z.sendCheckboxOutput)??!0,T($,ae)}})]})},jf=async(e,n)=>{const i=e.checkboxes;if(!i)return;let a;if(typeof i=="function"?(a=i(n),a instanceof Promise&&(a=await a)):a=i,Array.isArray(a)&&(a={items:a}),!("items"in a)||a.items.length==0)return;a.min==null&&(a.min=1),a.max==null&&(a.max=a.items.length),a.min>a.max&&(a.min=a.max),a.reusable==null&&(a.reusable=!1);const o=new Set,u=n.currPath,f=z.jsx(zf,{checkboxes:a,checkedItems:o,path:u});await n.injectMessage(f)},Wf=async(e,n)=>{const i=e.function;if(!i)return;const a=i(n);return a instanceof Promise?await a:a},Yf=async(e,n,i)=>{const a=e.message;if(!a)return;if(typeof a=="string")return void(a.trim()!==""&&(i?await n.simulateStreamMessage(a):await n.injectMessage(a)));let o=a(n);o instanceof Promise&&(o=await o),typeof o=="string"&&o.trim()!==""&&(i?await n.simulateStreamMessage(o):await n.injectMessage(o))},Gf=({options:e,path:n})=>{var i,a,o,u,f,A;const{settings:c}=Ne(),{styles:d}=rt(),{paths:h}=Ti(),{handleSubmitText:v}=xa(),[y,k]=B.useState([]),[C,R]=B.useState(!1),E={cursor:C?`url("${(i=c.general)==null?void 0:i.actionDisabledIcon}"), auto`:"pointer",color:(a=c.general)==null?void 0:a.primaryColor,borderColor:(o=c.general)==null?void 0:o.primaryColor,backgroundColor:"#fff",...d.botOptionStyle},T={color:"#fff",borderColor:(u=c.general)==null?void 0:u.primaryColor,backgroundColor:(f=c.general)==null?void 0:f.primaryColor,...d.botOptionHoveredStyle};return B.useEffect(()=>{h.length>0&&h[h.length-1]!==n&&R(!e.reusable)},[h]),z.jsx("div",{className:"rcb-options-container "+((A=c.botBubble)!=null&&A.showAvatar?"rcb-options-offset":""),children:e.items.map((Q,M)=>{const U=y[M]&&!C;return z.jsx("div",{className:"rcb-options",style:U?T:E,onMouseEnter:()=>(j=>{k(N=>{const W=[...N];return W[j]=!0,W})})(M),onMouseLeave:()=>(j=>{k(N=>{const W=[...N];return W[j]=!1,W})})(M),onMouseDown:j=>{var N;if(j.preventDefault(),C)return;let W;R(!e.reusable),W=e.sendOutput!=null?e.sendOutput:((N=c.chatInput)==null?void 0:N.sendOptionOutput)??!0,v(Q,W)},children:Q},Q)})})},Vf=async(e,n)=>{const i=e.options;if(!i)return;let a;if(typeof i=="function"?(a=i(n),a instanceof Promise&&(a=await a)):a=i,Array.isArray(a)&&(a={items:a}),!("items"in a)||a.items.length==0)return;a.reusable==null&&(a.reusable=!1);const o=n.currPath,u=z.jsx(Gf,{options:a,path:o});await n.injectMessage(u)},Xf=async(e,n)=>{const i=e.component;if(i){if(typeof i=="function"){let a=i(n);return a instanceof Promise&&(a=await a),a?void await n.injectMessage(a):void 0}await n.injectMessage(i)}},Jf=async(e,n,i,a)=>{const o=e.transition;let u;if(typeof o=="function"?(u=o(n),u instanceof Promise&&(u=await u)):u=o,typeof u=="number"&&(u={duration:u}),!u||u instanceof Promise||u.duration==null||typeof u.duration!="number")return;u.interruptable==null&&(u.interruptable=!1);const f=setTimeout(async()=>{const A=await a(e);A&&await uA(A,n)},u.duration);u.interruptable&&(i.current=f)},qf=async(e,n,i)=>{const a=e.chatDisabled;if(a==null)return;let o;typeof a=="function"?(o=a(n),o instanceof Promise&&(o=await o)):o=a,i(o)},cA=async(e,n,i)=>{const a=e.isSensitive;if(!a)return void i(!1);let o;typeof a=="function"?(o=a(n),o instanceof Promise&&(o=await o)):o=a,i(o)},uA=async(e,n)=>{if(!e)throw new Error("Block is not valid.");const i=Object.keys(e);for(const a of i)a==="function"&&await Wf(e,n);i.includes("path")&&await(async(a,o)=>{const u=a.path;if(!u)return!1;if(typeof u=="string")return await o.goToPath(u),!0;let f=u(o);if(f instanceof Promise&&(f=await f),!f)return!1;const A=f;return await o.goToPath(A),!0})(e,n)},Kf=()=>{var e;const{settings:n}=Ne(),{styles:i}=rt();return z.jsx("div",{className:"rcb-line-break-container",children:z.jsx("div",{style:{...i.chatHistoryLineBreakStyle},className:"rcb-line-break-text","data-testid":"chat-history-line-break-text",children:(e=n.chatHistory)==null?void 0:e.chatHistoryLineBreakText})})},$f=()=>{var e;const{settings:n}=Ne(),{styles:i}=rt(),a={borderTop:`4px solid ${(e=n.general)==null?void 0:e.primaryColor}`,...i.loadingSpinnerStyle};return z.jsx("div",{className:"rcb-spinner-container",children:z.jsx("div",{style:a,className:"rcb-spinner"})})},Os=()=>{try{if(typeof crypto<"u"&&typeof crypto.randomUUID=="function")return crypto.randomUUID();throw new Error("crypto.randomUUID not available")}catch(e){if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function")return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){const i=crypto.getRandomValues(new Uint8Array(1))[0]%16;return(n==="x"?i:3&i|8).toString(16)});throw console.error(e),new Error("crypto.getRandomValues is also not available")}},qr=(e,n)=>({id:Os(),content:e,sender:n,type:typeof e=="string"?"string":"object",timestamp:new Date().toUTCString(),tags:[]});let Kr,AA=!1,_s="rcb-history",Ls=30,dA=!1,Di=[];const Xl=async e=>{if(dA||!Kr)return;const n=[],i=AA?Di.length:0;for(let o=e.length-1;o>=i;o--){const u=e[o];if(u.sender.toUpperCase()!=="SYSTEM"&&(u.content!==""&&n.unshift(u),n.length===Ls))break}let a=n.map(ep);if(a.length<Ls){const o=Ls-a.length;a=[...Di.slice(-o),...a]}fA(a)},Jl=()=>Di,Zf=e=>{fA(e),Di=e},fA=e=>{Kr&&Kr.setItem(_s,JSON.stringify(e))},ql=e=>{var n,i,a,o,u;Kr=((i=(n=e.chatHistory)==null?void 0:n.storageType)==null?void 0:i.toUpperCase())==="SESSION_STORAGE"?sessionStorage:localStorage,_s=(a=e.chatHistory)==null?void 0:a.storageKey,Ls=(o=e.chatHistory)==null?void 0:o.maxEntries,dA=(u=e.chatHistory)==null?void 0:u.disabled,Di=(f=>{if(f!=null)try{return JSON.parse(f)}catch{return[]}return[]})(Kr.getItem(_s))},ep=e=>B.isValidElement(e.content)?structuredClone({id:e.id,content:Bo.renderToString(e.content),type:e.type,sender:e.sender.toUpperCase(),timestamp:e.timestamp,tags:e.tags}):e,pA=(e,n,i)=>{const a=new DOMParser().parseFromString(e,"text/html");return Array.from(a.body.childNodes).map((o,u)=>{var f;if(o.nodeType===Node.TEXT_NODE)return o.textContent;{const A=o.tagName.toLowerCase();let c=Array.from(o.attributes).reduce((d,h)=>{const v=h.name.toLowerCase();if(v==="style"){const y=h.value.split(";").filter(C=>C.trim()!==""),k={};y.forEach(C=>{const[R,E]=C.split(":").map(Q=>Q.trim()),T=R.replace(/-([a-z])/g,(Q,M)=>M.toUpperCase());k[T]=E}),d[v]=k}else A!=="audio"&&A!=="video"||v!=="controls"||h.value!==""?d[v]=h.value:d[v]="true";return d},{});if(Object.prototype.hasOwnProperty.call(c,"class")){const d=o.classList;c.className=d.toString(),delete c.class,(f=n.botBubble)!=null&&f.showAvatar&&(c=tp(d,c)),c=np(d,c,n,i),c=rp(d,c,n,i),c=op(d,c,n,i),c=ap(d,c,n,i)}if(["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"].includes(A))return B.createElement(A,{key:u,...c});{const d=pA(o.innerHTML,n,i);return B.createElement(A,{key:u,...c},...d)}}})},tp=(e,n)=>((e.contains("rcb-options-container")||e.contains("rcb-checkbox-container"))&&(n.className=`${e.toString()} rcb-options-offset`),n),np=(e,n,i,a)=>{var o,u,f,A,c;return e.contains("rcb-options")&&(n.style={...n.style,color:((o=a.botOptionStyle)==null?void 0:o.color)??((u=i.general)==null?void 0:u.primaryColor),borderColor:((f=a.botOptionStyle)==null?void 0:f.color)??((A=i.general)==null?void 0:A.primaryColor),cursor:`url("${(c=i.general)==null?void 0:c.actionDisabledIcon}"), auto`,...a.botOptionStyle}),n},rp=(e,n,i,a)=>{var o,u,f,A,c;return e.contains("rcb-checkbox-row-container")&&(n.style={...n.style,color:((o=a.botCheckboxRowStyle)==null?void 0:o.color)??((u=i.general)==null?void 0:u.primaryColor),borderColor:((f=a.botCheckboxRowStyle)==null?void 0:f.color)??((A=i.general)==null?void 0:A.primaryColor),cursor:`url("${(c=i.general)==null?void 0:c.actionDisabledIcon}"), auto`,...a.botCheckboxRowStyle}),n},op=(e,n,i,a)=>{var o,u,f,A,c;return e.contains("rcb-checkbox-next-button")&&(n.style={...n.style,color:((o=a.botCheckboxNextStyle)==null?void 0:o.color)??((u=i.general)==null?void 0:u.primaryColor),borderColor:((f=a.botCheckboxNextStyle)==null?void 0:f.color)??((A=i.general)==null?void 0:A.primaryColor),cursor:`url("${(c=i.general)==null?void 0:c.actionDisabledIcon}"), auto`,...a.botCheckboxNextStyle}),n},ap=(e,n,i,a)=>{var o,u;return(e.contains("rcb-media-display-image-container")||e.contains("rcb-media-display-video-container"))&&(n.style={...n.style,backgroundColor:(o=i.general)==null?void 0:o.primaryColor,maxWidth:(u=i.userBubble)!=null&&u.showAvatar?"65%":"70%",...a.mediaDisplayContainerStyle}),n},Kl=()=>{const{settings:e}=Ne(),{notificationsToggledOn:n,setSyncedNotificationsToggledOn:i,hasInteractedPage:a,unreadCount:o,setUnreadCount:u,syncedNotificationsToggledOnRef:f}=Ct(),{audioBufferRef:A,audioContextRef:c,gainNodeRef:d}=St(),{dispatchRcbEvent:h}=Xn(),v=B.useCallback(async()=>{var k,C;const R=(k=e.notification)==null?void 0:k.sound;c.current=new AudioContext;const E=c.current.createGain();let T;if(E.gain.value=((C=e.notification)==null?void 0:C.volume)??.2,d.current=E,R!=null&&R.startsWith("data:audio")){const Q=atob(R.split(",")[1]),M=new ArrayBuffer(Q.length),U=new Uint8Array(M);for(let j=0;j<Q.length;j++)U[j]=Q.charCodeAt(j);T=M}else T=await(await fetch(R)).arrayBuffer();A.current=await c.current.decodeAudioData(T)},[e.notification]),y=B.useCallback(()=>{var k;if((k=e.notification)!=null&&k.disabled||!f.current||!a||!c.current||!A.current)return;const C=c.current.createBufferSource();C.buffer=A.current,C.connect(d.current).connect(c.current.destination),C.start()},[e.notification,f,a,c,A,d]);return{unreadCount:o,setUnreadCount:u,notificationsToggledOn:n,toggleNotifications:B.useCallback(async k=>{var C;k!==f.current&&((C=e.event)!=null&&C.rcbToggleNotifications&&(await h(we.TOGGLE_NOTIFICATIONS,{currState:f.current,newState:!f.current})).defaultPrevented||i(R=>!R))},[f]),playNotificationSound:y,setUpNotifications:v}},ip=(e,n)=>{var i,a,o,u;((f,A,c,d,h)=>{if(!window.SpeechSynthesisUtterance)return void console.info("Speech Synthesis API is not supported in this environment.");const v=new window.SpeechSynthesisUtterance;v.text=f,v.lang=A,v.rate=d,v.volume=h;let y=!1;for(const k of c)if(window.speechSynthesis.getVoices().find(C=>{if(C.name===k)return v.voice=C,window.speechSynthesis.speak(v),void(y=!0)}),y)break;y||window.speechSynthesis.speak(v)})(n,(i=e.audio)==null?void 0:i.language,(a=e.audio)==null?void 0:a.voiceNames,(o=e.audio)==null?void 0:o.rate,(u=e.audio)==null?void 0:u.volume)},hA=()=>{const{settings:e}=Ne(),{audioToggledOn:n,setSyncedAudioToggledOn:i,syncedAudioToggledOnRef:a}=Ct(),{dispatchRcbEvent:o}=Xn(),u=B.useCallback(async A=>{var c;A!==a.current&&((c=e.event)!=null&&c.rcbToggleAudio&&(await o(we.TOGGLE_AUDIO,{currState:a.current,newState:!a.current})).defaultPrevented||i(d=>!d))},[a]),f=B.useCallback(async A=>{var c,d;if((c=e.audio)!=null&&c.disabled||!a.current)return;let h=A;if((d=e.event)!=null&&d.rcbStartSpeakAudio){const v=await o(we.START_SPEAK_AUDIO,{textToRead:h});if(v.defaultPrevented)return;h=v.data.textToRead}ip(e,h)},[e,a]);return{audioToggledOn:n,speakAudio:f,toggleAudio:u}},_o=()=>{var e,n;const{settings:i}=Ne(),{messages:a,setSyncedMessages:o,syncedMessagesRef:u}=Vl(),{setSyncedIsBotTyping:f,setUnreadCount:A,syncedIsScrollingRef:c,syncedIsChatWindowOpenRef:d}=Ct(),{streamMessageMap:h,chatBodyRef:v,paramsInputRef:y}=St(),{scrollToBottom:k,getIsChatBotVisible:C}=wn(),{dispatchRcbEvent:R}=Xn(),{speakAudio:E}=hA(),{playNotificationSound:T}=Kl(),Q=B.useCallback((G,Y=!1)=>{var Z,$;Xl(G);let ae=!0;const ie=G[G.length-1];if(!ie)return;const le=ie.sender.toUpperCase();le==="USER"&&(ae=!1),(Z=i.general)!=null&&Z.embedded&&C()&&(ae=!1),(d.current&&!c.current||Y)&&(ae=!1),ae&&T(),!Y&&(le!=="USER"&&($=i.chatWindow)!=null&&$.autoJumpToBottom||le==="USER"||!c.current)&&setTimeout(()=>k(),1)},[i,v,d,c,T,k,C]),M=B.useCallback(async(G,Y="BOT",Z=null)=>{var $,ae,ie,le,be;if(typeof G!="string")throw new Error("Content must be of type string to simulate stream.");Y=Y.toUpperCase();let he=qr(G,Y);if(($=i.event)!=null&&$.rcbStartSimulateStreamMessage){const ce=await R(we.START_SIMULATE_STREAM_MESSAGE,{message:he});if(ce.defaultPrevented)return null;Z=ce.data.simulateStreamChunker||Z,he=ce.data.message}f(!1);let me=30;me=Y==="BOT"?(ae=i.botBubble)==null?void 0:ae.streamSpeed:(ie=i.userBubble)==null?void 0:ie.streamSpeed;const L={...he,content:""};o(ce=>[...ce,L]),Q(u.current);let Be=he.content;Z&&(Be=Z(Be));let F=0;const ve=Be.length;he.sender.toUpperCase()==="BOT"&&(d.current||(le=i.general)!=null&&le.embedded)&&typeof he.content=="string"&&he.content.trim()!==""&&E(he.content);const fe=new Promise(ce=>{const ge=setInterval(()=>{if(F>=ve)return clearInterval(ge),void ce();o(ye=>{const De=[...ye];for(let Fe=De.length-1;Fe>=0;Fe--)if(De[Fe].id===L.id){const Re=Be[F];Re&&(L.content+=Re,De[Fe]=L),F++;break}return De})},me)});return(c.current||!d.current)&&A(ce=>ce+1),await fe,Xl(u.current),(be=i.event)!=null&&be.rcbStopSimulateStreamMessage&&await R(we.STOP_SIMULATE_STREAM_MESSAGE,{message:he}),Y==="USER"&&(y.current=G),he},[i,R,Q,u,y,f,A,d,E]),U=B.useCallback(async(G,Y="BOT")=>{var Z,$,ae;Y=Y.toUpperCase();let ie=qr(G,Y);if((Z=i.event)!=null&&Z.rcbPreInjectMessage){const le=await R(we.PRE_INJECT_MESSAGE,{message:ie});if(le.defaultPrevented)return null;ie=le.data.message}return ie.sender.toUpperCase()==="BOT"&&(d.current||($=i.general)!=null&&$.embedded)&&typeof ie.content=="string"&&ie.content.trim()!==""&&E(ie.content),(c.current||!d.current)&&A(le=>le+1),(ae=i.event)!=null&&ae.rcbPostInjectMessage&&await R(we.POST_INJECT_MESSAGE,{message:ie}),o(le=>[...le,ie]),Q(u.current),Y==="USER"&&typeof G=="string"&&(y.current=G),ie},[i,R,Q,y,u,d,E,A]),j=B.useCallback(async G=>{var Y;const Z=u.current.find($=>$.id===G);return!Z||(Y=i.event)!=null&&Y.rcbRemoveMessage&&(await R(we.REMOVE_MESSAGE,{message:Z})).defaultPrevented?null:(o($=>$.filter(ae=>ae.id!==G)),Q(u.current),A($=>Math.max($-1,0)),Z)},[R,(e=i.event)==null?void 0:e.rcbRemoveMessage,Q,u,A]),N=B.useCallback(async(G,Y="BOT")=>{var Z,$;if(Y=Y.toUpperCase(),!h.current.has(Y)){const ie=qr(G,Y);return(Z=i.event)!=null&&Z.rcbStartStreamMessage&&(await R(we.START_STREAM_MESSAGE,{message:ie})).defaultPrevented?null:(f(!1),o(le=>[...le,ie]),Q(u.current),h.current.set(Y,ie.id),(c.current||!d.current)&&A(le=>le+1),ie)}const ae={...qr(G,Y),id:h.current.get(Y)};return($=i.event)!=null&&$.rcbChunkStreamMessage&&(await R(we.CHUNK_STREAM_MESSAGE,{message:ae})).defaultPrevented?null:(o(ie=>ie.map(le=>le.id===ae.id?ae:le)),Q(u.current,!0),ae)},[R,i.event,Q,u,f,A,h]),W=B.useCallback(async(G="BOT")=>{var Y;if(G=G.toUpperCase(),!h.current.has(G))return!0;const Z=h.current.get(G);let $;for(let ae=0;ae<3;ae++){const ie=u.current.find(le=>le.id===Z);ie&&($=ie),await new Promise(le=>setTimeout(le,20))}return((Y=i.event)==null||!Y.rcbStopStreamMessage||!(await R(we.STOP_STREAM_MESSAGE,{message:$})).defaultPrevented)&&(h.current.delete(G),Xl(u.current),G==="USER"&&typeof($==null?void 0:$.content)=="string"&&(y.current=$.content),!0)},[R,(n=i.event)==null?void 0:n.rcbStopStreamMessage,h,y]),ee=B.useCallback(G=>{const Y=typeof G=="function"?G(u.current):G;o(Y),Q(Y)},[Q,u]);return{simulateStreamMessage:M,injectMessage:U,removeMessage:j,streamMessage:N,endStreamMessage:W,replaceMessages:ee,messages:a}};let $l,sr,Fs,$r=!1,lr=null;const Zl=()=>{if(!$l){const e=window.SpeechRecognition||window.webkitSpeechRecognition;$l=e!=null?new e:null}return $l},sp=(e,n,i,a,o,u)=>{var f,A,c;const d=Zl();if(!d)return;if(!$r)try{$r=!0,d.lang=(f=e.voice)==null?void 0:f.language,d.start()}catch{}const h=(A=e.voice)==null?void 0:A.timeoutPeriod,v=(c=e.voice)==null?void 0:c.autoSendPeriod;d.onresult=y=>{var k,C;clearTimeout(sr),sr=null,clearTimeout(Fs);const R=y.results[y.results.length-1][0].transcript;if(u.current){const E=(k=e.chatInput)==null?void 0:k.characterLimit,T=u.current.value+R;E!=null&&E>=0&&T.length>E?a(T.slice(0,E)):a(T),o(u.current.value.length)}h&&(sr=setTimeout(async()=>await tc(n,u),h)),(C=e.voice)!=null&&C.autoSendDisabled||(Fs=setTimeout(i,v))},d.onend=()=>{$r?(d.start(),!sr&&h&&(sr=setTimeout(async()=>await tc(n,u),h))):(clearTimeout(sr),sr=null,clearTimeout(Fs))},h&&(sr=setTimeout(async()=>await tc(n,u),h))},lp=(e,n)=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(i=>{if(lr=new MediaRecorder(i),!$r)try{$r=!0,lr.start()}catch{}lr.ondataavailable=a=>{n.current&&n.current.push(a.data)},lr.onstop=()=>{e(),i.getTracks().forEach(a=>a.stop())}}).catch(i=>{console.error("Unable to use microphone:",i)})},ec=()=>{const e=Zl();e&&($r=!1,e&&e.stop(),lr&&lr.state!=="inactive"&&(lr.stop(),lr=null),clearTimeout(sr),sr=null,clearTimeout(Fs))},tc=async(e,n)=>{var i;(i=n.current)!=null&&i.disabled||await e(),ec()},nc=()=>{const{settings:e}=Ne(),{voiceToggledOn:n,setSyncedVoiceToggledOn:i,syncedVoiceToggledOnRef:a}=Ct(),{dispatchRcbEvent:o}=Xn(),u=B.useCallback(async A=>{var c;A!==a.current&&((c=e.event)!=null&&c.rcbToggleVoice&&(await o(we.TOGGLE_VOICE,{currState:a.current,newState:!a.current})).defaultPrevented||i(d=>!d))},[a]),f=B.useCallback(A=>{((c,d)=>{var h,v,y;const k=Zl();(h=d.voice)!=null&&h.disabled||(v=d.chatInput)==null||!v.blockSpam||!k||(c&&!$r?($r=!0,(y=d.voice)!=null&&y.sendAsAudio?lr==null||lr.start():k.start()):c||ec())})(A,e)},[e]);return{voiceToggledOn:n,toggleVoice:u,syncVoice:f}},Lo=()=>{var e;const{settings:n}=Ne(),{inputLength:i,setInputLength:a,textAreaDisabled:o,setSyncedTextAreaDisabled:u,textAreaSensitiveMode:f,setSyncedTextAreaSensitiveMode:A,syncedTextAreaDisabledRef:c,syncedTextAreaSensitiveModeRef:d}=Ct(),{inputRef:h,chatBodyRef:v,prevInputRef:y}=St(),{dispatchRcbEvent:k}=Xn(),{getIsChatBotVisible:C}=wn(),R=B.useCallback(async N=>{var W,ee,G;if(c.current&&h.current)h.current.value="";else if(h.current&&y.current!==null){const Y=(W=n.chatInput)==null?void 0:W.characterLimit,Z=(ee=n.chatInput)!=null&&ee.allowNewline?N:N.replace(/\n/g," ");if(Y!=null&&Y>=0&&Z.length>Y?h.current.value=Z.slice(0,Y):h.current.value=Z,(G=n.event)!=null&&G.rcbTextAreaChangeValue&&(await k(we.TEXT_AREA_CHANGE_VALUE,{currValue:h.current.value,prevValue:y.current})).defaultPrevented)return void(h.current.value=y.current);y.current=h.current.value}},[c,h,y,n,k]),E=B.useCallback(N=>{var W;(W=h.current)!=null&&W.disabled||setTimeout(()=>{var ee,G,Y;(ee=n.general)!=null&&ee.embedded?C()&&((G=h.current)==null||G.focus()):N!=="start"&&((Y=h.current)==null||Y.focus())},100)},[h,(e=n.general)==null?void 0:e.embedded,v,C]),T=B.useCallback(()=>{h.current&&h.current.focus()},[]),Q=B.useCallback(()=>{h.current&&h.current.blur()},[]),M=B.useCallback(()=>h&&h.current?h.current.value:"",[]),U=B.useCallback(N=>{N!==c.current&&u(W=>!W)},[c]),j=B.useCallback(N=>{N!==d.current&&A(W=>!W)},[d]);return{textAreaDisabled:o,setSyncedTextAreaDisabled:u,textAreaSensitiveMode:f,setSyncedTextAreaSensitiveMode:A,inputLength:i,setInputLength:a,getTextAreaValue:M,setTextAreaValue:R,updateTextAreaFocus:E,focusTextArea:T,blurTextArea:Q,toggleTextAreaDisabled:U,toggleTextAreaSensitiveMode:j}},gA=B.createContext({toasts:[],setSyncedToasts:()=>{},syncedToastsRef:{current:[]}}),mA=()=>B.useContext(gA),cp=({children:e})=>{const[n,i,a]=bn([]);return z.jsx(gA.Provider,{value:{toasts:n,setSyncedToasts:i,syncedToastsRef:a},children:e})},wa=()=>{const{settings:e}=Ne(),{toasts:n,setSyncedToasts:i,syncedToastsRef:a}=mA(),{dispatchRcbEvent:o}=Xn(),u=B.useCallback(async(c,d)=>{var h,v,y,k;let C=null;if(a.current.length>=(((h=e.toast)==null?void 0:h.maxCount)??3)){if((v=e.toast)!=null&&v.forbidOnMax)return null;C=Os();let E={id:C,content:c,timeout:d};if((y=e.event)!=null&&y.rcbShowToast){const T=await o(we.SHOW_TOAST,{toast:E});if(T.defaultPrevented)return null;E=T.data.toast}return i(T=>[...T.slice(1),E]),C}C=Os();let R={id:C,content:c,timeout:d};if((k=e.event)!=null&&k.rcbShowToast){const E=await o(we.SHOW_TOAST,{toast:R});if(E.defaultPrevented)return null;R=E.data.toast}return i(E=>[...E,R]),C},[e,o]),f=B.useCallback(async c=>{var d;const h=a.current.find(v=>v.id===c);return!h||(d=e.event)!=null&&d.rcbDismissToast&&(await o(we.DISMISS_TOAST,{toast:h})).defaultPrevented?null:(i(v=>v.filter(y=>y.id!==c)),c)},[o]),A=B.useCallback(c=>{const d=typeof c=="function"?c(a.current):c;i(d)},[a]);return{showToast:u,dismissToast:f,toasts:n,replaceToasts:A}},Qs=()=>{var e,n,i,a,o;const{settings:u}=Ne(),{paths:f,setSyncedPaths:A,syncedPathsRef:c}=Ti(),{flowRef:d,streamMessageMap:h,paramsInputRef:v,keepVoiceOnRef:y,timeoutIdRef:k}=St(),{setSyncedIsBotTyping:C,setSyncedTextAreaDisabled:R,setSyncedTextAreaSensitiveMode:E,blockAllowsAttachment:T,setBlockAllowsAttachment:Q}=Ct(),{dispatchRcbEvent:M}=Xn(),{endStreamMessage:U,injectMessage:j,removeMessage:N,simulateStreamMessage:W,streamMessage:ee}=_o(),{showToast:G,dismissToast:Y}=wa(),{toggleChatWindow:Z}=wn(),{updateTextAreaFocus:$,setTextAreaValue:ae}=Lo(),{syncVoice:ie}=nc(),le=B.useCallback(async F=>{var ve;if((ve=u.event)!=null&&ve.rcbPostProcessBlock){const fe=await M(we.POST_PROCESS_BLOCK,{block:F});if(fe.defaultPrevented)return null;F=fe.data.block}return F},[(e=u.event)==null?void 0:e.rcbPostProcessBlock,M]),be=B.useCallback(async(F,ve)=>{var fe,ce,ge,ye;if(!F)return;let De=d.current[F];if(!De)return void C(!1);if((fe=u.event)!=null&&fe.rcbPreProcessBlock){const Re=await M(we.PRE_PROCESS_BLOCK,{block:De});if(Re.defaultPrevented)return;De=Re.data.block}C(!0),(ce=u.chatInput)!=null&&ce.blockSpam&&R(!0),E(!1);const Fe={prevPath:ve,currPath:F,goToPath:L,setTextAreaValue:ae,userInput:v.current,endStreamMessage:U,injectMessage:j,removeMessage:N,simulateStreamMessage:W,streamMessage:ee,toggleChatWindow:Z,showToast:G,dismissToast:Y};await(async(Re,Ue,Je,Dt,qe,ze,vt)=>{if(!Re)throw new Error("Block is not valid.");for(const It of Object.keys(Re))switch(It){case"message":await Yf(Re,Ue,Je);break;case"options":await Vf(Re,Ue);break;case"checkboxes":await jf(Re,Ue);break;case"component":await Xf(Re,Ue);break;case"chatDisabled":await qf(Re,Ue,qe);break;case"isSensitive":await cA(Re,Ue,ze);break;case"transition":await Jf(Re,Ue,Dt,vt)}})(De,Fe,((ge=u.botBubble)==null?void 0:ge.simulateStream)??!1,k,R,E,le),C(!1),"chatDisabled"in De||R((ye=u.chatInput)==null?void 0:ye.disabled),"isSensitive"in De||E(!1),Q(typeof De.file=="function"),$(F),ie(y.current&&!De.chatDisabled),F!==ve&&h.current.clear()},[d,$,ie,(n=u.botBubble)==null?void 0:n.simulateStream,(i=u.chatInput)==null?void 0:i.disabled,v,U,j,N,W,ee,Z,G,Y,y,h]),he=B.useCallback(()=>c.current.length>0?c.current.at(-1)??null:null,[]),me=B.useCallback(()=>c.current.length>1?c.current.at(-2)??null:null,[]),L=B.useCallback(async F=>{var ve;const fe=he(),ce=me();return((ve=u.event)==null||!ve.rcbChangePath||!(await M(we.CHANGE_PATH,{currPath:fe,prevPath:ce,nextPath:F})).defaultPrevented)&&(A(ge=>[...ge,F]),await be(F,fe),!0)},[(a=u.chatInput)==null?void 0:a.blockSpam,(o=u.event)==null?void 0:o.rcbChangePath,be,M]),Be=B.useCallback(F=>{const ve=typeof F=="function"?F(c.current):F;A(ve)},[c]);return{getCurrPath:he,getPrevPath:me,goToPath:L,blockAllowsAttachment:T,setBlockAllowsAttachment:Q,paths:f,replacePaths:Be,firePostProcessBlockEvent:le}},xa=()=>{var e,n,i,a;const{settings:o}=Ne(),{endStreamMessage:u,injectMessage:f,removeMessage:A,simulateStreamMessage:c,streamMessage:d}=_o(),{syncedPathsRef:h}=Ti(),{getCurrPath:v,getPrevPath:y,goToPath:k,firePostProcessBlockEvent:C}=Qs(),{setSyncedTextAreaSensitiveMode:R,setSyncedTextAreaDisabled:E,setSyncedIsBotTyping:T,setBlockAllowsAttachment:Q,setInputLength:M,syncedVoiceToggledOnRef:U,syncedTextAreaSensitiveModeRef:j}=Ct(),{flowRef:N,inputRef:W,keepVoiceOnRef:ee,paramsInputRef:G,timeoutIdRef:Y}=St(),{showToast:Z,dismissToast:$}=wa(),{dispatchRcbEvent:ae}=Xn(),{syncVoice:ie}=nc(),{setTextAreaValue:le}=Lo(),{toggleChatWindow:be}=wn(),he=B.useCallback(async L=>{var Be,F,ve,fe,ce,ge;const ye=v();if(ye&&N.current[ye]){if(j.current){if((Be=o==null?void 0:o.sensitiveInput)!=null&&Be.hideInUserBubble)return;if((F=o==null?void 0:o.sensitiveInput)!=null&&F.maskInUserBubble)return void((ve=o.userBubble)!=null&&ve.simulateStream?await c("*".repeat(((fe=o.sensitiveInput)==null?void 0:fe.asterisksCount)??10),"USER"):await f("*".repeat(((ce=o.sensitiveInput)==null?void 0:ce.asterisksCount)??10),"USER"))}(ge=o.userBubble)!=null&&ge.simulateStream?await c(L,"USER"):await f(L,"USER")}},[N,v,o,f,c,j]),me=B.useCallback(async(L,Be=!0)=>{var F,ve;if((L=L.trim())==="")return;Be&&await he(L),Y.current&&clearTimeout(Y.current),W.current&&(le(""),M(0));const fe=v();if(!fe)return;let ce=N.current[fe];const ge=await C(ce);ge&&((F=o.chatInput)!=null&&F.blockSpam&&E(!0),ee.current=U.current,ie(!1),setTimeout(()=>{T(!0)},400),R(!1),setTimeout(async()=>{var ye;const De={prevPath:y(),currPath:v(),goToPath:k,setTextAreaValue:le,userInput:G.current,injectMessage:f,simulateStreamMessage:c,streamMessage:d,removeMessage:A,endStreamMessage:u,toggleChatWindow:be,showToast:Z,dismissToast:$},Fe=h.current.length;await uA(ge,De),h.current.length===Fe&&(E("chatDisabled"in ce?!!ce.chatDisabled:!((ye=o.chatInput)==null||!ye.disabled)),cA(ce,De,R),Q(typeof ce.file=="function"),ie(ee.current),T(!1))},(ve=o.chatInput)==null?void 0:ve.botDelay))},[Y,(e=o.chatInput)==null?void 0:e.blockSpam,(n=o.chatInput)==null?void 0:n.botDelay,(i=o.chatInput)==null?void 0:i.disabled,ee,U,ie,he,y,v,k,f,c,d,A,u,be,Z,$,N]);return{handleSubmitText:B.useCallback(async(L,Be=!0)=>{var F,ve;L=L??((F=W.current)==null?void 0:F.value),!((ve=o.event)!=null&&ve.rcbUserSubmitText&&(await ae(we.USER_SUBMIT_TEXT,{inputText:L,sendInChat:Be})).defaultPrevented||!v())&&me(L,Be)},[ae,v,me,W,(a=o.event)==null?void 0:a.rcbUserSubmitText])}},Hs=()=>{var e;const{settings:n}=Ne();return B.useMemo(()=>{var i;if(typeof window>"u"||!window.navigator)return!1;if((i=n.device)==null||!i.applyMobileOptimizations)return!0;const a=navigator.userAgent,o=!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a),u=window.innerWidth>=768;return o&&u},[(e=n.device)==null?void 0:e.applyMobileOptimizations])},up=({buttons:e})=>{var n,i,a,o,u,f,A,c,d,h,v;const y=Hs(),{settings:k}=Ne(),{styles:C}=rt(),{textAreaDisabled:R,textAreaSensitiveMode:E,inputLength:T,hasFlowStarted:Q,setHasFlowStarted:M,setInputLength:U}=Ct(),{inputRef:j}=St(),[N,W]=B.useState(!1),[ee,G]=B.useState(!1),{handleSubmitText:Y}=xa(),{setTextAreaValue:Z}=Lo(),$={boxSizing:y?"content-box":"border-box",...C.chatInputAreaStyle},ae={outline:R?"":"none",boxShadow:R?"":`0 0 5px ${(n=k.general)==null?void 0:n.primaryColor}`,boxSizing:y?"content-box":"border-box",...C.chatInputAreaStyle,...C.chatInputAreaFocusedStyle},ie={cursor:`url("${(i=k.general)==null?void 0:i.actionDisabledIcon}"), auto`,caretColor:"transparent",boxSizing:y?"content-box":"border-box",...C.chatInputAreaStyle,...C.chatInputAreaDisabledStyle},le={color:"#989898",...C.characterLimitStyle},be={color:"#ff0000",...C.characterLimitReachedStyle},he=R?(a=k.chatInput)==null?void 0:a.disabledPlaceholderText:(o=k.chatInput)==null?void 0:o.enabledPlaceholderText,me=()=>{R||W(!0)},L=()=>{W(!1)},Be=()=>{G(!0)},F=()=>{G(!1)},ve=async ce=>{var ge;if(!ee&&ce.key==="Enter"){if(ce.shiftKey)return void((ge=k.chatInput)!=null&&ge.allowNewline||ce.preventDefault());ce.preventDefault(),await Y()}},fe=ce=>{j.current&&(Z(ce.target.value),U(j.current.value.length))};return z.jsxs("div",{"aria-label":((u=k.ariaLabel)==null?void 0:u.inputTextArea)??"input text area",role:"textbox",onMouseDown:ce=>{var ge;ce.stopPropagation(),!Q&&((ge=k.general)==null?void 0:ge.flowStartTrigger)==="ON_CHATBOT_INTERACT"&&M(!0)},style:{...C.chatInputContainerStyle},className:"rcb-chat-input",children:[E&&(f=k.sensitiveInput)!=null&&f.maskInTextArea?z.jsx("input",{ref:j,type:"password",className:"rcb-chat-input-textarea",style:R?ie:N?ae:$,placeholder:he,onChange:fe,onKeyDown:ve,onFocus:me,onBlur:L,onCompositionStart:Be,onCompositionEnd:F}):z.jsx("textarea",{ref:j,style:R?ie:N?ae:$,rows:1,className:"rcb-chat-input-textarea",placeholder:he,onChange:fe,onKeyDown:ve,onFocus:me,onBlur:L,onCompositionStart:Be,onCompositionEnd:F}),z.jsxs(z.Fragment,{children:[e==null?void 0:e.map((ce,ge)=>z.jsx(B.Fragment,{children:ce},ge)),((A=k.chatInput)==null?void 0:A.showCharacterCount)&&((c=k.chatInput)==null?void 0:c.characterLimit)!=null&&((d=k.chatInput)==null?void 0:d.characterLimit)>0&&z.jsxs("div",{className:"rcb-chat-input-char-counter",style:T>=((h=k.chatInput)==null?void 0:h.characterLimit)?be:le,children:[T,"/",(v=k.chatInput)==null?void 0:v.characterLimit]})]})]})},Ap=({buttons:e})=>{var n;const{settings:i}=Ne(),{styles:a}=rt();return z.jsxs("div",{"data-testid":"chatbot-footer-container",style:{...a.footerStyle},className:"rcb-chat-footer-container",children:[z.jsx("div",{className:"rcb-chat-footer",children:e==null?void 0:e.map((o,u)=>z.jsx(B.Fragment,{children:o},u))}),z.jsx("span",{children:(n=i.footer)==null?void 0:n.text})]})},dp=()=>{var e,n,i,a,o,u,f;const{settings:A}=Ne(),{styles:c}=rt(),{unreadCount:d}=Ct(),{isChatWindowOpen:h,toggleChatWindow:v}=wn(),[y,k]=B.useState(!1),C={backgroundImage:`linear-gradient(to right, ${(e=A.general)==null?void 0:e.secondaryColor},
107
+ ${(n=A.general)==null?void 0:n.primaryColor})`,...c.chatButtonStyle},R={transform:"scale(1.05)",...c.chatButtonStyle,...c.chatButtonHoveredStyle},E={backgroundImage:`url(${(i=A.chatButton)==null?void 0:i.icon})`,fill:"#fff",width:75,height:75,...c.chatIconStyle};return z.jsx(z.Fragment,{children:!((a=A.general)!=null&&a.embedded)&&z.jsxs("div",{"aria-label":((o=A.ariaLabel)==null?void 0:o.chatButton)??"open chat",role:"button",style:y?R:C,className:"rcb-toggle-button "+(h?"rcb-button-hide":"rcb-button-show"),onMouseEnter:()=>{k(!0)},onMouseLeave:()=>{k(!1)},onClick:()=>v(!0),children:[(()=>{var T;const Q=(T=A.chatButton)==null?void 0:T.icon;return Q&&typeof Q!="string"?Q&&z.jsx("span",{className:"rcb-toggle-icon",children:z.jsx(Q,{style:E})}):z.jsx("span",{className:"rcb-toggle-icon",style:E})})(),!((u=A.notification)!=null&&u.disabled)&&((f=A.notification)==null?void 0:f.showCount)&&z.jsx("span",{style:{...c.notificationBadgeStyle},className:"rcb-badge",children:d})]})})},fp=()=>{var e,n,i,a;const o=Hs(),{settings:u}=Ne(),{styles:f}=rt(),{chatBodyRef:A}=St(),{isChatWindowOpen:c,toggleChatWindow:d}=wn(),[h,v]=B.useState(!1),[y,k]=B.useState(!1),[C,R]=B.useState(0);B.useEffect(()=>{var Q,M,U;const j=(Q=u.tooltip)==null?void 0:Q.mode;if(j==="ALWAYS")if(o){let N;N=c?(((M=A.current)==null?void 0:M.offsetWidth)??375)-(typeof((U=f.chatButtonStyle)==null?void 0:U.width)=="number"?f.chatButtonStyle.width:75):0,R(N),v(!0)}else v(!c);else j==="NEVER"?v(!1):j==="START"?y?v(!1):(k(!0),v(!0)):j==="CLOSE"&&v(!c)},[c]);const E={transform:`translateX(-${C}px)`,right:(((e=f.chatButtonStyle)==null?void 0:e.width)??75)+40,bottom:30,backgroundColor:(n=u.general)==null?void 0:n.secondaryColor,color:"#fff",...f.tooltipStyle},T={borderColor:`transparent transparent transparent ${E.backgroundColor}`};return z.jsx(z.Fragment,{children:!((i=u.general)!=null&&i.embedded)&&z.jsxs("div",{"data-testid":"chat-tooltip",style:E,className:"rcb-chat-tooltip "+(h?"rcb-tooltip-show":"rcb-tooltip-hide"),onClick:()=>d(!0),children:[z.jsx("span",{children:(a=u.tooltip)==null?void 0:a.text}),z.jsx("span",{className:"rcb-chat-tooltip-tail",style:T})]})})},pp=({id:e,content:n,timeout:i})=>{var a,o;const{settings:u}=Ne(),{styles:f}=rt(),[A]=B.useState({toastPromptStyle:{...f.toastPromptStyle},toastPromptHoveredStyle:{...f.toastPromptHoveredStyle}}),{dismissToast:c}=wa(),[d,h]=B.useState(!1),v={color:(a=u.general)==null?void 0:a.primaryColor,borderColor:(o=u.general)==null?void 0:o.primaryColor,...A.toastPromptHoveredStyle};return B.useEffect(()=>{if(i){const y=setTimeout(()=>{c(e)},i);return()=>clearTimeout(y)}},[e,c,i]),typeof n=="string"?z.jsx("div",{onMouseEnter:()=>{h(!0)},onMouseLeave:()=>{h(!1)},style:d?v:A.toastPromptStyle,onMouseDown:async y=>{var k;(k=u.toast)!=null&&k.dismissOnClick&&(y.preventDefault(),await c(e))},className:"rcb-toast-prompt",children:n}):z.jsx(z.Fragment,{children:n})},hp=()=>{var e,n,i,a,o,u,f,A,c,d,h,v;const{styles:y}=rt(),{toasts:k}=mA(),C={bottom:`calc(${typeof((e=y.footerStyle)==null?void 0:e.height)=="number"?`${(n=y.footerStyle)==null?void 0:n.height}px`:((i=y.footerStyle)==null?void 0:i.height)??"50px"} + ${typeof((a=y.chatInputContainerStyle)==null?void 0:a.height)=="number"?`${(o=y.chatInputContainerStyle)==null?void 0:o.height}px`:((u=y.chatInputContainerStyle)==null?void 0:u.height)??"70px"} + 20px)`,width:300,minWidth:`calc(${typeof((f=y.chatWindowStyle)==null?void 0:f.width)=="number"?`${(A=y.chatWindowStyle)==null?void 0:A.width}px`:((c=y.chatWindowStyle)==null?void 0:c.width)??"375px"} / 2)`,maxWidth:`calc(${typeof((d=y.chatWindowStyle)==null?void 0:d.width)=="number"?`${(h=y.chatWindowStyle)==null?void 0:h.width}px`:((v=y.chatWindowStyle)==null?void 0:v.width)??"375px"} - 50px)`,...y.toastPromptContainerStyle};return z.jsx("div",{className:"rcb-toast-prompt-container",style:C,children:k.map(R=>z.jsx(pp,{id:R.id,content:R.content,timeout:R.timeout},R.id))})},vA=({file:e,fileType:n,fileUrl:i})=>{var a,o,u;const{settings:f}=Ne(),{styles:A}=rt(),c={backgroundColor:(a=f.general)==null?void 0:a.primaryColor,maxWidth:(o=f.userBubble)!=null&&o.showAvatar?"65%":"70%",...A.mediaDisplayContainerStyle};return z.jsx(z.Fragment,{children:i?z.jsxs(z.Fragment,{children:[n==="image"&&i&&z.jsx("div",{style:c,className:"rcb-media-display-image-container rcb-media-entry","data-testid":"media-display-image-container",children:z.jsx("img",{src:i,alt:"Image Display",className:"rcb-media-display-image"})}),n==="video"&&i&&z.jsx("div",{style:c,className:"rcb-media-display-video-container rcb-media-entry","data-testid":"media-display-video-container",children:z.jsxs("video",{controls:!0,className:"rcb-media-display-video",children:[z.jsx("source",{src:i,type:e.type}),"Your browser does not support the video tag."]})}),n==="audio"&&i&&z.jsxs("audio",{"data-testid":"media-display-audio-container",style:{maxWidth:(u=f.userBubble)!=null&&u.showAvatar?"65%":"70%"},controls:!0,className:"rcb-media-display-audio rcb-media-entry",children:[z.jsx("source",{src:i,type:e.type}),"Your browser does not support the audio tag."]})]}):z.jsx(z.Fragment,{})})},yA=async e=>{if(!e)return{fileType:null,fileUrl:null};const n=e.type.split("/")[0];if(!["image","video","audio"].includes(n))return{fileType:null,fileUrl:null};try{return{fileType:n,fileUrl:await new Promise((i,a)=>{const o=new FileReader;o.onload=()=>i(o.result),o.onerror=()=>a(new Error("File reading failed")),o.readAsDataURL(e)})}}catch(i){return console.error(i),{fileType:null,fileUrl:null}}},gp=()=>{var e,n,i,a,o,u;const{settings:f}=Ne(),{styles:A}=rt(),{injectMessage:c,simulateStreamMessage:d,streamMessage:h,removeMessage:v,endStreamMessage:y}=_o(),{getCurrPath:k,getPrevPath:C,goToPath:R,blockAllowsAttachment:E}=Qs(),{flowRef:T,inputRef:Q}=St(),M=T.current,{showToast:U,dismissToast:j}=wa(),{dispatchRcbEvent:N}=Xn(),{toggleChatWindow:W}=wn(),{setTextAreaValue:ee}=Lo(),{handleSubmitText:G}=xa(),Y={cursor:`url("${(e=f.general)==null?void 0:e.actionDisabledIcon}"), auto`,...A.fileAttachmentButtonStyle,...A.fileAttachmentButtonDisabledStyle},Z={backgroundImage:`url(${(n=f.fileAttachment)==null?void 0:n.icon})`,fill:"#a6a6a6",...A.fileAttachmentIconStyle},$={backgroundImage:`url(${(i=f.fileAttachment)==null?void 0:i.icon})`,fill:"#a6a6a6",...A.fileAttachmentIconStyle,...A.fileAttachmentIconDisabledStyle};return z.jsxs("label",{"aria-label":((a=f.ariaLabel)==null?void 0:a.fileAttachmentButton)??"upload file",role:"button",className:E?"rcb-attach-button-enabled":"rcb-attach-button-disabled",style:E?{...A.fileAttachmentButtonStyle}:Y,children:[z.jsx("input",{className:"rcb-attach-input",role:"file",type:"file",onChange:async ae=>{var ie,le,be,he;const me=ae.target.files;if(!me)return;const L=Array.from(me);if(ae.target.value="",(ie=f.event)!=null&&ie.rcbUserUploadFile&&(await N(we.USER_UPLOAD_FILE,{files:L})).defaultPrevented)return;const Be=k();if(!Be)return;const F=M[Be];if(!F)return;const ve=F.file;if(ve!=null){const fe=[];for(let ce=0;ce<L.length;ce++){if(fe.push(L[ce].name),(le=f.fileAttachment)==null||!le.showMediaDisplay)continue;const ge=await yA(L[ce]);!ge.fileType||!ge.fileUrl||await c(z.jsx(vA,{file:L[ce],fileType:ge.fileType,fileUrl:ge.fileUrl}),"USER")}await G("📄 "+fe.join(", "),(be=f.fileAttachment)==null?void 0:be.sendFileName),await ve({userInput:(he=Q.current)==null?void 0:he.value,prevPath:C(),currPath:k(),goToPath:R,setTextAreaValue:ee,injectMessage:c,simulateStreamMessage:d,streamMessage:h,removeMessage:v,endStreamMessage:y,toggleChatWindow:W,showToast:U,dismissToast:j,files:L})}},multiple:(o=f.fileAttachment)==null?void 0:o.multiple,accept:(u=f.fileAttachment)==null?void 0:u.accept,disabled:!E}),(()=>{var ae,ie;const le=E?(ae=f.fileAttachment)==null?void 0:ae.icon:(ie=f.fileAttachment)==null?void 0:ie.iconDisabled;return le&&typeof le!="string"?le&&z.jsx("span",{className:E?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",children:z.jsx(le,{style:E?Z:$})}):z.jsx("span",{className:E?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",style:E?Z:$})})()]})},mp=()=>{var e,n,i,a,o,u;const{settings:f}=Ne(),{styles:A}=rt(),{syncedTextAreaDisabledRef:c}=Ct(),{inputRef:d}=St(),{textAreaDisabled:h,setTextAreaValue:v}=Lo(),y=B.useRef(null),k=B.useRef(null),[C,R]=B.useState(!1),E={cursor:`url("${(e=f.general)==null?void 0:e.actionDisabledIcon}"), auto`,...A.emojiButtonStyle,...A.emojiButtonDisabledStyle},T={backgroundImage:`url(${(n=f.emoji)==null?void 0:n.icon})`,fill:"#a6a6a6",...A.emojiIconStyle},Q={backgroundImage:`url(${(i=f.emoji)==null?void 0:i.icon})`,fill:"#a6a6a6",...A.emojiIconStyle,...A.emojiIconDisabledStyle};return B.useEffect(()=>{const M=j=>{const N=j.composedPath();y.current&&!N.includes(y.current)&&k.current&&!N.includes(k.current)&&R(!1)},U=()=>{(()=>{if(y.current&&k.current){const j=k.current.getBoundingClientRect(),N=y.current.offsetHeight,W=j.top-N-8;y.current.style.left=`${j.left}px`,y.current.style.top=`${W}px`}})()};return document.addEventListener("mousedown",M),window.addEventListener("resize",U),()=>{document.removeEventListener("mousedown",M),window.removeEventListener("resize",U)}},[]),z.jsxs(z.Fragment,{children:[z.jsx("div",{"aria-label":((a=f.ariaLabel)==null?void 0:a.emojiButton)??"emoji picker",role:"button",ref:k,className:h?"rcb-emoji-button-disabled":"rcb-emoji-button-enabled",style:h?E:{...A.emojiButtonStyle},onMouseDown:M=>{M.preventDefault(),c.current?R(!1):R(U=>!U)},children:(()=>{var M,U;const j=h?(M=f.emoji)==null?void 0:M.iconDisabled:(U=f.emoji)==null?void 0:U.icon;return j&&typeof j!="string"?j&&z.jsx("span",{className:h?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled",children:z.jsx(j,{style:h?Q:T})}):z.jsx("span",{className:h?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled",style:h?Q:T})})()}),C&&z.jsx("div",{className:"rcb-emoji-button-popup",ref:y,children:(u=(o=f.emoji)==null?void 0:o.list)==null?void 0:u.map((M,U)=>z.jsx("span",{className:"rcb-emoji",onMouseDown:j=>((N,W)=>{N.preventDefault(),d.current&&(v(d.current.value+W),setTimeout(()=>{const ee=d.current;if(ee){ee.focus();const G=ee.value.length;ee.setSelectionRange(G,G)}},50)),R(!1)})(j,M),children:M},U))})]})},vp=()=>{var e,n,i;const{settings:a}=Ne(),{styles:o}=rt(),{audioToggledOn:u,toggleAudio:f}=hA(),A={backgroundImage:`url(${(e=a.audio)==null?void 0:e.icon})`,fill:"#fcec3d",...o.audioIconStyle},c={backgroundImage:`url(${(n=a.audio)==null?void 0:n.iconDisabled})`,fill:"#e8eaed",...o.audioIconStyle,...o.audioIconDisabledStyle};return z.jsx("div",{"aria-label":((i=a.ariaLabel)==null?void 0:i.audioButton)??"toggle audio",role:"button",onMouseDown:async d=>{d.preventDefault(),await f()},style:u?{...o.audioButtonStyle}:{...o.audioButtonStyle,...o.audioButtonDisabledStyle},children:(()=>{var d,h;const v=u?(d=a.audio)==null?void 0:d.icon:(h=a.audio)==null?void 0:h.iconDisabled;return v&&typeof v!="string"?v&&z.jsx("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",children:z.jsx(v,{style:u?A:c,"data-testid":"rcb-audio-icon-svg"})}):z.jsx("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",style:u?A:c})})()})},yp=()=>{var e,n;const{settings:i}=Ne(),{styles:a}=rt(),{toggleChatWindow:o}=wn(),u={backgroundImage:`url(${(e=i.header)==null?void 0:e.closeChatIcon})`,fill:"#e8eaed",stroke:"#e8eaed",...a.closeChatIconStyle};return z.jsx("div",{"aria-label":((n=i.ariaLabel)==null?void 0:n.closeChatButton)??"close chat",role:"button",onMouseDown:f=>{f.stopPropagation(),o(!1)},style:{...a.closeChatButtonStyle},children:(()=>{var f;const A=(f=i.header)==null?void 0:f.closeChatIcon;return A&&typeof A!="string"?A&&z.jsx("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",children:z.jsx(A,{style:u})}):z.jsx("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",style:u})})()})},bp=()=>{var e,n,i;const{settings:a}=Ne(),{styles:o}=rt(),{notificationsToggledOn:u,toggleNotifications:f}=(()=>{const{notificationsToggledOn:d,toggleNotifications:h,playNotificationSound:v}=Kl();return{notificationsToggledOn:d,toggleNotifications:h,playNotificationSound:v}})(),A={backgroundImage:`url(${(e=a.notification)==null?void 0:e.icon})`,fill:"#fcec3d",...o.notificationIconStyle},c={backgroundImage:`url(${(n=a.notification)==null?void 0:n.iconDisabled})`,fill:"#e8eaed",...o.notificationIconStyle,...o.notificationIconDisabledStyle};return z.jsx("div",{"aria-label":((i=a.ariaLabel)==null?void 0:i.notificationButton)??"toggle notifications",role:"button",onMouseDown:async d=>{d.preventDefault(),await f()},style:u?{...o.notificationButtonStyle}:{...o.notificationButtonStyle,...o.notificationButtonDisabledStyle},children:(()=>{var d,h;const v=u?(d=a.notification)==null?void 0:d.icon:(h=a.notification)==null?void 0:h.iconDisabled;return v&&typeof v!="string"?v&&z.jsx("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",children:z.jsx(v,{style:u?A:c,"data-testid":"rcb-notification-icon-svg"})}):z.jsx("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",style:u?A:c})})()})},wp=()=>{var e,n,i;const{settings:a}=Ne(),{styles:o}=rt(),{injectMessage:u}=_o(),{inputRef:f}=St(),{voiceToggledOn:A,toggleVoice:c}=nc(),{setInputLength:d,setTextAreaValue:h,textAreaDisabled:v}=Lo(),{handleSubmitText:y}=xa(),k=B.useRef([]),[C,R]=B.useState(!1);B.useEffect(()=>{var U;(U=a.voice)!=null&&U.sendAsAudio?(M(),k.current=[]):y()},[C]),B.useEffect(()=>{A?((U,j,N,W,ee,G,Y)=>{var Z;(Z=U.voice)!=null&&Z.sendAsAudio?lp(N,G):sp(U,j,N,W,ee,Y)})(a,c,Q,h,d,k,f):ec()},[A]);const E={backgroundImage:`url(${(e=a.voice)==null?void 0:e.icon})`,fill:"#9aa0a6",...o.voiceIconStyle},T={backgroundImage:`url(${(n=a.voice)==null?void 0:n.iconDisabled})`,fill:"#9aa0a6",...o.voiceIconStyle,...o.voiceIconDisabledStyle},Q=()=>{R(U=>!U)},M=async()=>{const U=new Blob(k.current,{type:"audio/wav"}),j=new File([U],"voice-input.wav",{type:"audio/wav"}),N=await yA(j);!N.fileType||!N.fileUrl||await u(z.jsx(vA,{file:j,fileType:N.fileType,fileUrl:N.fileUrl}),"USER")};return z.jsx("div",{"aria-label":((i=a.ariaLabel)==null?void 0:i.voiceButton)??"toggle voice",role:"button",onMouseDown:async U=>{U.preventDefault(),!v&&await c()},style:A&&!v?{...o.voiceButtonStyle}:{...o.voiceButtonStyle,...o.voiceButtonDisabledStyle},className:A&&!v?"rcb-voice-button-enabled":"rcb-voice-button-disabled",children:(()=>{var U,j;const N=A?(U=a.voice)==null?void 0:U.icon:(j=a.voice)==null?void 0:j.iconDisabled;return N&&typeof N!="string"?N&&z.jsx("span",{className:"rcb-voice-icon "+(A&&!v?"on":""),children:z.jsx(N,{style:A&&!v?E:T})}):z.jsx("span",{className:"rcb-voice-icon"+(A&&!v?"-on":""),"data-testid":"rcb-voice-icon",style:A&&!v?E:T})})()})},xp=()=>{var e,n,i,a,o,u,f,A;const{settings:c}=Ne(),{styles:d}=rt(),{textAreaDisabled:h}=Ct(),[v,y]=B.useState(!1),{handleSubmitText:k}=xa(),C={backgroundColor:(e=c.general)==null?void 0:e.primaryColor,...d.sendButtonStyle},R={cursor:`url("${(n=c.general)==null?void 0:n.actionDisabledIcon}"), auto`,backgroundColor:(i=c.general)==null?void 0:i.primaryColor,...d.sendButtonStyle,...d.sendButtonDisabledStyle},E={backgroundColor:(a=c.general)==null?void 0:a.secondaryColor,...d.sendButtonStyle,...d.sendButtonHoveredStyle},T={backgroundImage:`url(${(o=c.chatInput)==null?void 0:o.sendButtonIcon})`,fill:"#fff",...d.sendIconStyle},Q={backgroundImage:`url(${(u=c.chatInput)==null?void 0:u.sendButtonIcon})`,fill:"#fff",...d.sendIconStyle,...d.sendIconDisabledStyle},M={backgroundImage:`url(${(f=c.chatInput)==null?void 0:f.sendButtonIcon})`,fill:"#fff",...d.sendIconStyle,...d.sendIconHoveredStyle};return z.jsx("div",{"aria-label":((A=c.ariaLabel)==null?void 0:A.sendButton)??"send message",role:"button",onMouseEnter:()=>{y(!0)},onMouseLeave:()=>{y(!1)},onMouseDown:async U=>{U==null||U.preventDefault(),!h&&await k()},style:h?R:v?E:C,className:"rcb-send-button",children:(()=>{var U;const j=(U=c.chatInput)==null?void 0:U.sendButtonIcon;return j&&typeof j!="string"?j&&z.jsx("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",children:z.jsx(j,{style:h?Q:v?M:T})}):z.jsx("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",style:h?Q:v?M:T})})()})},Sp=(e,n)=>{var i,a,o,u,f,A,c,d,h;const v={[mt.AUDIO_BUTTON]:(i=e.audio)==null?void 0:i.disabled,[mt.CLOSE_CHAT_BUTTON]:(a=e.general)==null?void 0:a.embedded,[mt.EMOJI_PICKER_BUTTON]:(o=e.emoji)==null?void 0:o.disabled,[mt.FILE_ATTACHMENT_BUTTON]:(u=e.fileAttachment)==null?void 0:u.disabled,[mt.NOTIFICATION_BUTTON]:(f=e.notification)==null?void 0:f.disabled,[mt.SEND_MESSAGE_BUTTON]:!1,[mt.VOICE_MESSAGE_BUTTON]:(A=e.voice)==null?void 0:A.disabled},y={},k=C=>C?C.map(R=>{if(typeof R=="string"){if((E=>Object.values(mt).includes(E))(R)&&!v[R]){if(y[R])return y[R];const E=n[R];if(typeof E=="function"){const T=E();return y[R]=T,T}return null}return null}return R}).filter(R=>R!==null):[];return{header:k((c=e.header)==null?void 0:c.buttons),chatInput:k((d=e.chatInput)==null?void 0:d.buttons),footer:k((h=e.footer)==null?void 0:h.buttons)}},kp=()=>{const{settings:e}=Ne(),n=B.useMemo(()=>({[mt.CLOSE_CHAT_BUTTON]:()=>z.jsx(yp,{}),[mt.AUDIO_BUTTON]:()=>z.jsx(vp,{}),[mt.NOTIFICATION_BUTTON]:()=>z.jsx(bp,{}),[mt.EMOJI_PICKER_BUTTON]:()=>z.jsx(mp,{}),[mt.FILE_ATTACHMENT_BUTTON]:()=>z.jsx(gp,{}),[mt.SEND_MESSAGE_BUTTON]:()=>z.jsx(xp,{}),[mt.VOICE_MESSAGE_BUTTON]:()=>z.jsx(wp,{})}),[]),{header:i,chatInput:a,footer:o}=B.useMemo(()=>Sp(e,n),[e,n]);return{headerButtons:B.useMemo(()=>i,[i]),chatInputButtons:B.useMemo(()=>a,[a]),footerButtons:B.useMemo(()=>o,[o])}},rc=()=>{const{settings:e}=Ne(),{styles:n}=rt(),{setSyncedMessages:i,syncedMessagesRef:a}=Vl(),{isLoadingChatHistory:o,setIsLoadingChatHistory:u,hasChatHistoryLoaded:f,setHasChatHistoryLoaded:A}=Ct(),{chatBodyRef:c}=St(),{dispatchRcbEvent:d}=Xn(),h=B.useCallback(async()=>{var v,y;const k=Jl();if(!k||(v=e.event)!=null&&v.rcbLoadChatHistory&&(await d(we.LOAD_CHAT_HISTORY,{})).defaultPrevented)return;u(!0);const C=((y=c.current)==null?void 0:y.scrollHeight)??0;((R,E,T,Q,M,U,j,N,W)=>{var ee;if(AA=!0,T!=null)try{const G=qr(z.jsx($f,{}),"SYSTEM"),Y=M.current.slice(1);Q([G,...Y]);const Z=T.map($=>{if($.type==="object"){const ae=pA($.content,R,E);return{...$,content:ae}}return $});setTimeout(()=>{var $;const ae=M.current.slice(1);let ie=($=R.chatHistory)!=null&&$.autoLoad?qr(z.jsx(z.Fragment,{}),"SYSTEM"):qr(z.jsx(Kf,{}),"SYSTEM");Q([...Z,ie,...ae]),W(!0)},500),setTimeout(()=>{if(!U.current)return;const{scrollHeight:$}=U.current,ae=$-j;U.current.scrollTop+=ae,N(!1)},510)}catch{Kr.removeItem((ee=R.chatHistory)==null?void 0:ee.storageKey)}})(e,n,k,i,a,c,C,u,A)},[e,n,d,a,c,u,A]);return{isLoadingChatHistory:o,setIsLoadingChatHistory:u,hasChatHistoryLoaded:f,showChatHistory:h}},Ep=()=>{var e,n,i;const{settings:a}=Ne(),{styles:o}=rt(),{showChatHistory:u}=rc(),[f,A]=B.useState(!1),c={color:(e=a.general)==null?void 0:e.primaryColor,borderColor:(n=a.general)==null?void 0:n.primaryColor,...o.chatHistoryButtonStyle,...o.chatHistoryButtonHoveredStyle};return z.jsx("div",{className:"rcb-view-history-container",children:z.jsx("div",{onMouseEnter:()=>{A(!0)},onMouseLeave:()=>{A(!1)},style:f?c:{...o.chatHistoryButtonStyle},onMouseDown:d=>{d.preventDefault(),u()},className:"rcb-view-history-button",role:"button",tabIndex:0,children:z.jsx("p",{children:(i=a.chatHistory)==null?void 0:i.viewChatHistoryButtonText})})})},Cp=()=>{var e,n,i,a;const o=Hs(),{settings:u}=Ne(),{replaceMessages:f}=_o(),{isBotTyping:A,isChatWindowOpen:c,setUnreadCount:d,setSyncedIsChatWindowOpen:h,setSyncedTextAreaDisabled:v,setSyncedAudioToggledOn:y,setSyncedVoiceToggledOn:k,setSyncedIsScrolling:C,syncedIsScrollingRef:R,syncedIsChatWindowOpenRef:E}=Ct(),{chatBodyRef:T}=St(),{viewportHeight:Q,setViewportHeight:M,setViewportWidth:U,scrollToBottom:j}=wn(),{setUpNotifications:N}=Kl(),{handleFirstInteraction:W}=(()=>{var Z;const{settings:$}=Ne(),{hasInteractedPage:ae,setHasInteractedPage:ie,hasFlowStarted:le,setHasFlowStarted:be}=Ct(),he=B.useCallback(()=>{var me;if(ie(!0),!le&&((me=$.general)==null?void 0:me.flowStartTrigger)==="ON_PAGE_INTERACT"&&be(!0),!window.SpeechSynthesisUtterance)return void console.info("Speech Synthesis API is not supported in this environment.");const L=new window.SpeechSynthesisUtterance;L.text="",L.onend=()=>{window.removeEventListener("click",he),window.removeEventListener("keydown",he),window.removeEventListener("touchstart",he)},window.speechSynthesis.speak(L)},[le,(Z=$.general)==null?void 0:Z.flowStartTrigger]);return{hasInteractedPage:ae,handleFirstInteraction:he}})(),{showChatHistory:ee}=rc(),G=B.useRef(0),Y=B.useRef(!1);B.useEffect(()=>(window.addEventListener("click",W),window.addEventListener("keydown",W),window.addEventListener("touchstart",W),()=>{window.removeEventListener("click",W),window.removeEventListener("keydown",W),window.removeEventListener("touchstart",W)}),[]),B.useEffect(()=>{const Z=T.current;if(!Z)return;const $=()=>{Y.current||(Y.current=!0,requestAnimationFrame(()=>{var ae,ie;if(!Z)return;const{scrollTop:le,clientHeight:be,scrollHeight:he}=Z,me=le+be<he-(((ae=u.chatWindow)==null?void 0:ae.messagePromptOffset)??30);C(me),R.current=me,me||(le+be>=he-1&&(Z.scrollTop=he-be-1),(E.current||(ie=u.general)!=null&&ie.embedded)&&d(0)),Y.current=!1}))};return Z.addEventListener("wheel",$,{passive:!0}),Z.addEventListener("touchmove",$,{passive:!0}),()=>{Z.removeEventListener("wheel",$),Z.removeEventListener("touchmove",$)}},[]),B.useEffect(()=>{var Z,$,ae;v((Z=u.chatInput)==null?void 0:Z.disabled),h(($=u.chatWindow)==null?void 0:$.defaultOpen),y((ae=u.audio)==null?void 0:ae.defaultToggledOn),setTimeout(()=>{var ie;k((ie=u.voice)==null?void 0:ie.defaultToggledOn)},1)},[]),B.useEffect(()=>{var Z;(Z=u.notification)!=null&&Z.disabled||N()},[(e=u.notification)==null?void 0:e.disabled]),B.useEffect(()=>{!R.current&&T!=null&&T.current&&j()},[A]),B.useEffect(()=>{var Z,$;if((Z=u.chatHistory)!=null&&Z.disabled)Kr&&Kr.removeItem(_s);else if(ql(u),Jl().length>0){const ae=qr(z.jsx(Ep,{}),"SYSTEM");f([ae]),($=u.chatHistory)!=null&&$.autoLoad&&ee()}},[(n=u.chatHistory)==null?void 0:n.storageKey,(i=u.chatHistory)==null?void 0:i.maxEntries,(a=u.chatHistory)==null?void 0:a.disabled]),B.useEffect(()=>{var Z;o||(Z=u.general)!=null&&Z.embedded||!navigator.virtualKeyboard||(navigator.virtualKeyboard.overlaysContent=!0,navigator.virtualKeyboard.addEventListener("geometrychange",$=>{if(!$.target)return;const{x:ae,y:ie,width:le,height:be}=$.target.boundingRect;ae==0&&ie==0&&le==0&&be==0?(setTimeout(()=>{var he;M((he=window.visualViewport)==null?void 0:he.height)},101),setTimeout(()=>{var he,me;Q!=((he=window.visualViewport)==null?void 0:he.height)&&M((me=window.visualViewport)==null?void 0:me.height)},1001)):setTimeout(()=>{var he;M(((he=window.visualViewport)==null?void 0:he.height)-be)},101)}))},[o]),B.useEffect(()=>{var Z,$,ae,ie;if(o)return;c&&(M((Z=window.visualViewport)==null?void 0:Z.height),U(($=window.visualViewport)==null?void 0:$.width));const le=()=>window.scrollTo({top:0,left:0,behavior:"auto"}),be=()=>G.current=window.scrollY,he=()=>{var L,Be;M((L=window.visualViewport)==null?void 0:L.height),U((Be=window.visualViewport)==null?void 0:Be.width)},me=()=>{var L;window.removeEventListener("scroll",le),window.removeEventListener("scroll",be),(L=window.visualViewport)==null||L.removeEventListener("resize",he)};return c?(me(),document.body.style.position="fixed",window.addEventListener("scroll",le),(ae=window.visualViewport)==null||ae.addEventListener("resize",he)):(document.body.style.position="static",me(),window.scrollTo({top:G.current,left:0,behavior:"auto"}),window.addEventListener("scroll",be),(ie=window.visualViewport)==null||ie.removeEventListener("resize",he)),me},[c,o])},Pp="https://cdn.jsdelivr.net/gh/react-chatbotify/community-themes/themes",Tp="2592000",bA="RCB_THEME_CACHE_DATA",wA=async(e,n)=>{const{id:i,version:a,baseUrl:o=Pp,cacheDuration:u=Tp}=n,f=a||await(async(T,Q)=>{const M=`${Q}/${T}/meta.json`;try{const U=await fetch(M);return U.ok?(await U.json()).version:(console.error(`Failed to fetch meta.json from ${M}`),null)}catch(U){return console.error(`Failed to fetch meta.json from ${M}`,U),null}})(i,o);if(!f)return console.error(`Unable to find version for theme: ${i}`),{settings:{},inlineStyles:{},cssStylesText:""};const A=((T,Q,M)=>{const U=localStorage.getItem(`${bA}_${T}_${Q}`);if(!U)return null;try{const j=JSON.parse(U),N=new Date().getTime(),W=Math.floor(N/1e3);return j.cacheDate+M>=W?j:null}catch(j){return console.error(`Unable to fetch cache for ${T}`,j),null}})(i,f,u);if(A){const T=xA(e,A.cssStylesText);return{settings:A.settings,inlineStyles:A.inlineStyles,cssStylesText:T}}const c=`${o}/${i}/${f}/styles.css`,d=`${o}/${i}/${f}/settings.json`,h=`${o}/${i}/${f}/styles.json`;let v="";const y=await fetch(c);y.ok?v=await y.text():console.info(`Could not fetch styles.css from ${c}`);const k=await fetch(d);let C={};k.ok?C=await k.json():console.info(`Could not fetch settings.json from ${d}`);const R=await fetch(h);let E={};return R.ok?E=await R.json():console.info(`Could not fetch styles.json from ${h}`),((T,Q,M,U,j)=>{const N=new Date().getTime(),W={settings:M,inlineStyles:U,cssStylesText:j,cacheDate:Math.floor(N/1e3)};localStorage.setItem(`${bA}_${T}_${Q}`,JSON.stringify(W))})(i,f,C,E,v),{settings:C,inlineStyles:E,cssStylesText:xA(e,v)}},xA=(e,n)=>n.split(new RegExp("(?<=})")).map(i=>{const a=i.trim();return a.startsWith("@import")||a.startsWith("@keyframes")||a.startsWith("@media")?a:a?`#${e} ${a}`:""}).join(`
108
108
  `),Dp=async(e,n,i,a)=>{var o,u;let f=Ns(tA),A=Ns(rA),c="";if(a!=null)if(Array.isArray(a))for(const d of a){const h=await wA(e,d);f=cr(h.settings,f),A=cr(h.inlineStyles,A),c+=h.cssStylesText}else{const d=await wA(e,a);f=cr(d.settings,f),A=cr(d.inlineStyles,A),c+=d.cssStylesText}return n!=null&&(f=cr(n,f)),i!=null&&(A=cr(i,A)),((o=f.chatInput)==null?void 0:o.botDelay)!=null&&((u=f.chatInput)==null?void 0:u.botDelay)<500&&(f.chatInput.botDelay=500),{settings:f,inlineStyles:A,cssStylesText:c}},cr=(e,n)=>{const i=[{source:e,target:n}];for(;i.length;){const a=i.pop();if(a==null)continue;const{source:o,target:u}=a;for(const f of Object.keys(o)){const A=f;if(B.isValidElement(o[A]))u[A]=o[A];else if(typeof o[A]!="object"||o[A]===null||Array.isArray(o[A]))try{u[A]=o[A]}catch{}else(typeof u[A]!="object"||u[A]===null)&&(u[A]={}),i.push({source:o[A],target:u[A]})}}return n},Ns=e=>{if(e===null||typeof e!="object")return e;const n=Array.isArray(e)?[]:{},i=[{source:e,target:n}],a=new WeakMap;for(a.set(e,n);i.length;){const o=i.pop();if(o==null)continue;const{source:u,target:f}=o;for(const A in u)if(Object.prototype.hasOwnProperty.call(u,A)){const c=u[A];if(c&&typeof c=="object")if(a.has(c))f[A]=a.get(c);else{const d=Array.isArray(c)?[]:{};a.set(c,d),f[A]=d,i.push({source:c,target:d})}else f[A]=c}}return n},SA=()=>{const{settings:e,setSyncedSettings:n,syncedSettingsRef:i}=Ne(),a=B.useCallback(u=>{!u||Object.keys(u).length===0||n(Ns(cr(u,e)))},[e]),o=B.useCallback(u=>{const f=typeof u=="function"?u(i.current):u;n(f)},[i]);return{settings:e,replaceSettings:o,updateSettings:a}},kA=()=>{const{styles:e,setSyncedStyles:n,syncedStylesRef:i}=rt(),a=B.useCallback(u=>{!u||Object.keys(u).length===0||n(Ns(cr(u,e)))},[e]),o=B.useCallback(u=>{const f=typeof u=="function"?u(i.current):u;n(f)},[i]);return{styles:e,replaceStyles:o,updateStyles:a}},Ip=({plugins:e,slots:n})=>{var i,a;const o=Hs(),{settings:u}=Ne(),{styles:f}=rt(),{hasFlowStarted:A,setHasFlowStarted:c}=Ct(),{inputRef:d}=St(),{viewportHeight:h,viewportWidth:v,isChatWindowOpen:y}=wn(),{goToPath:k}=Qs(),{headerButtons:C,chatInputButtons:R,footerButtons:E}=kp();Cp(),(Q=>{const{updateSettings:M}=SA(),{updateStyles:U}=kA(),j=Q==null?void 0:Q.map(N=>N());B.useEffect(()=>{let N={},W={};j==null||j.forEach(ee=>{ee!=null&&ee.settings&&Object.keys(ee==null?void 0:ee.settings).length!==0&&(N=cr(ee.settings,N)),ee!=null&&ee.styles&&Object.keys(ee==null?void 0:ee.styles).length!==0&&(W=cr(ee.styles,W))}),M(N),U(W)},[])})(e),B.useEffect(()=>{var Q;(A||((Q=u.general)==null?void 0:Q.flowStartTrigger)==="ON_LOAD")&&k("start")},[A,(i=u.general)==null?void 0:i.flowStartTrigger]);const T=B.useMemo(()=>{var Q;const M="rcb-chatbot-global ";return(Q=u.general)!=null&&Q.embedded?M+"rcb-window-embedded":y?M+"rcb-window-open":M+"rcb-window-close"},[u,y]);return z.jsx(z.Fragment,{children:(()=>{var Q,M;return o&&((Q=u.device)==null?void 0:Q.desktopEnabled)||!o&&((M=u.device)==null?void 0:M.mobileEnabled)})()&&z.jsxs("div",{onMouseDown:Q=>{var M,U;!A&&((M=u.general)==null?void 0:M.flowStartTrigger)==="ON_CHATBOT_INTERACT"&&c(!0),o?(U=d.current)==null||U.blur():Q==null||Q.preventDefault()},className:T,children:[z.jsx(fp,{}),z.jsx(dp,{}),y&&!o&&!((a=u.general)!=null&&a.embedded)&&z.jsxs(z.Fragment,{children:[z.jsx("style",{children:`
109
109
  html {
110
110
  overflow: hidden !important;
111
111
  touch-action: none !important;
112
112
  scroll-behavior: auto !important;
113
113
  }
114
- `}),z.jsx("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"#fff",zIndex:9999}})]}),z.jsx("div",{style:(()=>{var Q,M;return o||(Q=u.general)!=null&&Q.embedded?(M=u.general)!=null&&M.embedded?{...f.chatWindowStyle}:{...f.chatWindowStyle,zIndex:1e4}:{...f.chatWindowStyle,borderRadius:"0px",left:"0px",right:"auto",top:"0px",bottom:"auto",width:`${v}px`,height:`${h}px`,zIndex:1e4}})(),className:"rcb-chat-window",children:(()=>{var Q,M,U;const j=(n==null?void 0:n.chatBotHeader)||Bf,N=(n==null?void 0:n.chatBotBody)||Uf,W=(n==null?void 0:n.chatBotInput)||up,ee=(n==null?void 0:n.chatBotFooter)||Ap;return z.jsxs(z.Fragment,{children:[((Q=u.general)==null?void 0:Q.showHeader)&&z.jsx(j,{buttons:C}),z.jsx(N,{}),z.jsx(hp,{}),((M=u.general)==null?void 0:M.showInputRow)&&z.jsx(W,{buttons:R}),((U=u.general)==null?void 0:U.showFooter)&&z.jsx(ee,{buttons:E})]})})()})]})})},EA=B.createContext(void 0),CA=()=>B.useContext(EA),PA=({children:e})=>{var n;const i=B.useRef(""),a=B.useRef({}),[o,u,f]=bn({}),[A,c,d]=bn({}),[h,v]=B.useState(!1);return B.useEffect(()=>{v(!0)},[]),h?z.jsx("div",{style:{fontFamily:(n=o.general)==null?void 0:n.fontFamily},children:z.jsx(EA.Provider,{value:{loadConfig:async(y,k,C,R,E,T)=>{i.current=y,a.current=k;const Q=await Dp(y,C,R,E);T.current&&(T.current.textContent=Q.cssStylesText),u(Q.settings),c(Q.inlineStyles)}},children:z.jsx(Df,{settings:o,setSyncedSettings:u,syncedSettingsRef:f,children:z.jsx(If,{styles:A,setSyncedStyles:c,syncedStylesRef:d,children:z.jsx(cp,{children:z.jsx(Mf,{botIdRef:i,flowRef:a,children:z.jsx(_f,{children:z.jsx(Rf,{settings:o,children:z.jsx(Ff,{children:e})})})})})})})})}):null},Bp=({id:e,flow:n,settings:i,styles:a,themes:o,plugins:u,setConfigLoaded:f,styleRootRef:A})=>{const c=B.useMemo(()=>e,[]),d=CA(),{flowRef:h}=St();return h&&h.current!==n&&(h.current=n),B.useEffect(()=>{(async()=>{var v,y;(v=i.event)!=null&&v.rcbPreLoadChatBot&&(await Gl(we.PRE_LOAD_CHATBOT,{botId:c,currPath:null,prevPath:null},{flow:n,settings:i,styles:a,themes:o,plugins:u})).defaultPrevented||(d!=null&&d.loadConfig&&(await d.loadConfig(c,n,i,a,o,A),f(!0)),(y=i.event)!=null&&y.rcbPostLoadChatBot&&Gl(we.POST_LOAD_CHATBOT,{botId:c,currPath:null,prevPath:null},{flow:n,settings:i,styles:a,themes:o,plugins:u}))})()},[o]),null},oc=["Quickstart","API Docs","Examples","Github","Discord"],Mp={start:{message:"Hello, I am Tan Jin 👋! Welcome to React ChatBotify, I'm excited that you are using our chatbot 😊!",transition:{duration:1e3},chatDisabled:!0,path:"show_options"},show_options:{message:"It looks like you have not set up a conversation flow yet. No worries! Here are a few helpful things you can check out to get started:",options:oc,path:"process_options"},prompt_again:{message:"Do you need any other help?",options:oc,path:"process_options"},unknown_input:{message:"Sorry, I do not understand your message 😢! If you require further assistance, you may click on the Github option and open an issue there or visit our discord.",options:oc,path:"process_options"},process_options:{transition:{duration:0},path:e=>{let n="";switch(e.userInput){case"Quickstart":n="https://react-chatbotify.com/docs/introduction/quickstart/";break;case"API Docs":n="https://react-chatbotify.com/docs/api/bot_options";break;case"Examples":n="https://react-chatbotify.com/docs/examples/basic_form";break;case"Github":n="https://github.com/react-chatbotify/react-chatbotify/";break;case"Discord":n="https://discord.gg/6R4DK4G5Zh";break;default:return"unknown_input"}return e.injectMessage("Sit tight! I'll send you right there!"),setTimeout(()=>{window.open(n)},1e3),"repeat"}},repeat:{transition:{duration:3e3},path:"prompt_again"}},Rp=({id:e,flow:n,settings:i,styles:a,themes:o,plugins:u,slots:f})=>{const A=B.useMemo(()=>e||"rcb-"+Os(),[]),c=n&&Object.keys(n).length!==0?n:Mp,d=i||{},h=a||{},v=u||[],[y,k]=B.useState(!1),C=CA(),R=B.useRef(null),[E,T]=B.useState(o||[]);B.useEffect(()=>{o&&T(o)},[o]);const Q=()=>z.jsxs(z.Fragment,{children:[z.jsx(Bp,{styleRootRef:R,id:A,flow:c,settings:d,styles:h,themes:E,plugins:v,setConfigLoaded:k}),y&&z.jsx(Ip,{plugins:u,slots:f})]});return z.jsxs(C==null?PA:z.Fragment,{children:[z.jsx("style",{ref:R}),z.jsx("div",{id:A,children:Q()})]})},Op=()=>{const{getBotId:e}=(()=>{const{botIdRef:n}=St();return{getBotId:B.useCallback(()=>n.current,[n])}})();return{getBotId:e}},Us=()=>{const{hasFlowStarted:e,restartFlow:n,getFlow:i}=(()=>{const{replaceMessages:a}=_o(),{replacePaths:o,goToPath:u}=Qs(),{replaceToasts:f}=wa(),{hasFlowStarted:A}=Ct(),{flowRef:c,timeoutIdRef:d}=St(),{settings:h}=Ne();return{hasFlowStarted:A,restartFlow:B.useCallback(async()=>{Kl(h),d.current&&clearTimeout(d.current),a([]),f([]),o([]),await u("start")},[d,h,a,f,o,Kl,u]),getFlow:B.useCallback(()=>(c==null?void 0:c.current)??{},[c])}})();return{hasFlowStarted:e,restartFlow:n,getFlow:i}},Ii=()=>{const{endStreamMessage:e,injectMessage:n,removeMessage:i,simulateStreamMessage:a,streamMessage:o,messages:u,replaceMessages:f}=_o();return{endStreamMessage:e,injectMessage:n,removeMessage:i,simulateStreamMessage:a,streamMessage:o,messages:u,replaceMessages:f}},Mn=(e,n)=>{const{getBotId:i}=Op();B.useEffect(()=>{const a=o=>{o.detail.botId===i()&&n(o)};return window.addEventListener(e,a),()=>{window.removeEventListener(e,a)}},[i,e,n])},TA=()=>{const{settings:e,replaceSettings:n,updateSettings:i}=SA();return{settings:e,replaceSettings:n,updateSettings:i}},DA=()=>{const{textAreaDisabled:e,toggleTextAreaDisabled:n,textAreaSensitiveMode:i,toggleTextAreaSensitiveMode:a,getTextAreaValue:o,setTextAreaValue:u,focusTextArea:f,blurTextArea:A}=Lo();return{textAreaDisabled:e,toggleTextAreaDisabled:n,textAreaSensitiveMode:i,toggleTextAreaSensitiveMode:a,getTextAreaValue:o,setTextAreaValue:u,focusTextArea:f,blurTextArea:A}},IA=()=>{const{showChatHistory:e,hasChatHistoryLoaded:n}=rc();return{showChatHistory:e,getHistoryMessages:Jl,setHistoryMessages:Zf,hasChatHistoryLoaded:n}},ac={a:{content:9,self:!1,type:105},address:{invalid:["h1","h2","h3","h4","h5","h6","address","article","aside","section","div","header","footer"],self:!1},audio:{children:["track","source"]},br:{type:9,void:!0},body:{content:127},button:{content:8,type:105},caption:{content:1,parent:["table"]},col:{parent:["colgroup"],void:!0},colgroup:{children:["col"],parent:["table"]},details:{children:["summary"],type:97},dd:{content:1,parent:["dl"]},dl:{children:["dt","dd"],type:1},dt:{content:1,invalid:["footer","header"],parent:["dl"]},figcaption:{content:1,parent:["figure"]},footer:{invalid:["footer","header"]},header:{invalid:["footer","header"]},hr:{type:1,void:!0},img:{void:!0},li:{content:1,parent:["ul","ol","menu"]},main:{self:!1},ol:{children:["li"],type:1},picture:{children:["source","img"],type:25},rb:{parent:["ruby","rtc"]},rp:{parent:["ruby","rtc"]},rt:{content:8,parent:["ruby","rtc"]},rtc:{content:8,parent:["ruby"]},ruby:{children:["rb","rp","rt","rtc"]},source:{parent:["audio","video","picture"],void:!0},summary:{content:8,parent:["details"]},table:{children:["caption","colgroup","thead","tbody","tfoot","tr"],type:1},tbody:{parent:["table"],children:["tr"]},td:{content:1,parent:["tr"]},tfoot:{parent:["table"],children:["tr"]},th:{content:1,parent:["tr"]},thead:{parent:["table"],children:["tr"]},tr:{parent:["table","tbody","thead","tfoot"],children:["th","td"]},track:{parent:["audio","video"],void:!0},ul:{children:["li"],type:1},video:{children:["track","source"]},wbr:{type:9,void:!0}};function Fo(e){return n=>{ac[n]={...e,...ac[n]}}}["address","main","div","figure","p","pre"].forEach(Fo({content:1,type:65})),["abbr","b","bdi","bdo","cite","code","data","dfn","em","i","kbd","mark","q","ruby","samp","strong","sub","sup","time","u","var"].forEach(Fo({content:8,type:73})),["p","pre"].forEach(Fo({content:8,type:65})),["s","small","span","del","ins"].forEach(Fo({content:8,type:9})),["article","aside","footer","header","nav","section","blockquote"].forEach(Fo({content:1,type:67})),["h1","h2","h3","h4","h5","h6"].forEach(Fo({content:8,type:69})),["audio","canvas","iframe","img","video"].forEach(Fo({type:89}));const ic=Object.freeze(ac),_p=["applet","base","body","command","embed","frame","frameset","head","html","link","meta","noscript","object","script","style","title"],Lp=Object.keys(ic).filter(e=>e!=="canvas"&&e!=="iframe"),BA=Object.freeze({alt:1,cite:1,class:1,colspan:3,controls:4,datetime:1,default:4,disabled:4,dir:1,height:1,href:1,id:1,kind:1,label:1,lang:1,loading:1,loop:4,media:1,muted:4,poster:1,rel:1,role:1,rowspan:3,scope:1,sizes:1,span:3,start:3,style:5,src:1,srclang:1,srcset:1,tabindex:1,target:1,title:1,type:1,width:1}),Fp=Object.freeze({class:"className",colspan:"colSpan",datetime:"dateTime",rowspan:"rowSpan",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex"});function zs(){return zs=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e},zs.apply(this,arguments)}function MA({attributes:e={},className:n,children:i=null,selfClose:a=!1,tagName:o}){const u=o;return a?B.createElement(u,zs({className:n},e)):B.createElement(u,zs({className:n},e),i)}class Qp{attribute(n,i){return i}node(n,i){return i}}function Hp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}/*!
114
+ `}),z.jsx("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"#fff",zIndex:9999}})]}),z.jsx("div",{style:(()=>{var Q,M;return o||(Q=u.general)!=null&&Q.embedded?(M=u.general)!=null&&M.embedded?{...f.chatWindowStyle}:{...f.chatWindowStyle,zIndex:1e4}:{...f.chatWindowStyle,borderRadius:"0px",left:"0px",right:"auto",top:"0px",bottom:"auto",width:`${v}px`,height:`${h}px`,zIndex:1e4}})(),className:"rcb-chat-window",children:(()=>{var Q,M,U;const j=(n==null?void 0:n.chatBotHeader)||Bf,N=(n==null?void 0:n.chatBotBody)||Uf,W=(n==null?void 0:n.chatBotInput)||up,ee=(n==null?void 0:n.chatBotFooter)||Ap;return z.jsxs(z.Fragment,{children:[((Q=u.general)==null?void 0:Q.showHeader)&&z.jsx(j,{buttons:C}),z.jsx(N,{}),z.jsx(hp,{}),((M=u.general)==null?void 0:M.showInputRow)&&z.jsx(W,{buttons:R}),((U=u.general)==null?void 0:U.showFooter)&&z.jsx(ee,{buttons:E})]})})()})]})})},EA=B.createContext(void 0),CA=()=>B.useContext(EA),PA=({children:e})=>{var n;const i=B.useRef(""),a=B.useRef({}),[o,u,f]=bn({}),[A,c,d]=bn({}),[h,v]=B.useState(!1);return B.useEffect(()=>{v(!0)},[]),h?z.jsx("div",{style:{fontFamily:(n=o.general)==null?void 0:n.fontFamily},children:z.jsx(EA.Provider,{value:{loadConfig:async(y,k,C,R,E,T)=>{i.current=y,a.current=k;const Q=await Dp(y,C,R,E);T.current&&(T.current.textContent=Q.cssStylesText),u(Q.settings),c(Q.inlineStyles)}},children:z.jsx(Df,{settings:o,setSyncedSettings:u,syncedSettingsRef:f,children:z.jsx(If,{styles:A,setSyncedStyles:c,syncedStylesRef:d,children:z.jsx(cp,{children:z.jsx(Mf,{botIdRef:i,flowRef:a,children:z.jsx(_f,{children:z.jsx(Rf,{settings:o,children:z.jsx(Ff,{children:e})})})})})})})})}):null},Bp=({id:e,flow:n,settings:i,styles:a,themes:o,plugins:u,setConfigLoaded:f,styleRootRef:A})=>{const c=B.useMemo(()=>e,[]),d=CA(),{flowRef:h}=St();return h&&h.current!==n&&(h.current=n),B.useEffect(()=>{(async()=>{var v,y;(v=i.event)!=null&&v.rcbPreLoadChatBot&&(await Gl(we.PRE_LOAD_CHATBOT,{botId:c,currPath:null,prevPath:null},{flow:n,settings:i,styles:a,themes:o,plugins:u})).defaultPrevented||(d!=null&&d.loadConfig&&(await d.loadConfig(c,n,i,a,o,A),f(!0)),(y=i.event)!=null&&y.rcbPostLoadChatBot&&Gl(we.POST_LOAD_CHATBOT,{botId:c,currPath:null,prevPath:null},{flow:n,settings:i,styles:a,themes:o,plugins:u}))})()},[o]),null},oc=["Quickstart","API Docs","Examples","Github","Discord"],Mp={start:{message:"Hello, I am Tan Jin 👋! Welcome to React ChatBotify, I'm excited that you are using our chatbot 😊!",transition:{duration:1e3},chatDisabled:!0,path:"show_options"},show_options:{message:"It looks like you have not set up a conversation flow yet. No worries! Here are a few helpful things you can check out to get started:",options:oc,path:"process_options"},prompt_again:{message:"Do you need any other help?",options:oc,path:"process_options"},unknown_input:{message:"Sorry, I do not understand your message 😢! If you require further assistance, you may click on the Github option and open an issue there or visit our discord.",options:oc,path:"process_options"},process_options:{transition:{duration:0},path:e=>{let n="";switch(e.userInput){case"Quickstart":n="https://react-chatbotify.com/docs/introduction/quickstart/";break;case"API Docs":n="https://react-chatbotify.com/docs/api/bot_options";break;case"Examples":n="https://react-chatbotify.com/docs/examples/basic_form";break;case"Github":n="https://github.com/react-chatbotify/react-chatbotify/";break;case"Discord":n="https://discord.gg/6R4DK4G5Zh";break;default:return"unknown_input"}return e.injectMessage("Sit tight! I'll send you right there!"),setTimeout(()=>{window.open(n)},1e3),"repeat"}},repeat:{transition:{duration:3e3},path:"prompt_again"}},Rp=({id:e,flow:n,settings:i,styles:a,themes:o,plugins:u,slots:f})=>{const A=B.useMemo(()=>e||"rcb-"+Os(),[]),c=n&&Object.keys(n).length!==0?n:Mp,d=i||{},h=a||{},v=u||[],[y,k]=B.useState(!1),C=CA(),R=B.useRef(null),[E,T]=B.useState(o||[]);B.useEffect(()=>{o&&T(o)},[o]);const Q=()=>z.jsxs(z.Fragment,{children:[z.jsx(Bp,{styleRootRef:R,id:A,flow:c,settings:d,styles:h,themes:E,plugins:v,setConfigLoaded:k}),y&&z.jsx(Ip,{plugins:u,slots:f})]});return z.jsxs(C==null?PA:z.Fragment,{children:[z.jsx("style",{ref:R}),z.jsx("div",{id:A,children:Q()})]})},Op=()=>{const{getBotId:e}=(()=>{const{botIdRef:n}=St();return{getBotId:B.useCallback(()=>n.current,[n])}})();return{getBotId:e}},Us=()=>{const{hasFlowStarted:e,restartFlow:n,getFlow:i}=(()=>{const{replaceMessages:a}=_o(),{replacePaths:o,goToPath:u}=Qs(),{replaceToasts:f}=wa(),{hasFlowStarted:A}=Ct(),{flowRef:c,timeoutIdRef:d}=St(),{settings:h}=Ne();return{hasFlowStarted:A,restartFlow:B.useCallback(async()=>{ql(h),d.current&&clearTimeout(d.current),a([]),f([]),o([]),await u("start")},[d,h,a,f,o,ql,u]),getFlow:B.useCallback(()=>(c==null?void 0:c.current)??{},[c])}})();return{hasFlowStarted:e,restartFlow:n,getFlow:i}},Ii=()=>{const{endStreamMessage:e,injectMessage:n,removeMessage:i,simulateStreamMessage:a,streamMessage:o,messages:u,replaceMessages:f}=_o();return{endStreamMessage:e,injectMessage:n,removeMessage:i,simulateStreamMessage:a,streamMessage:o,messages:u,replaceMessages:f}},Mn=(e,n)=>{const{getBotId:i}=Op();B.useEffect(()=>{const a=o=>{o.detail.botId===i()&&n(o)};return window.addEventListener(e,a),()=>{window.removeEventListener(e,a)}},[i,e,n])},TA=()=>{const{settings:e,replaceSettings:n,updateSettings:i}=SA();return{settings:e,replaceSettings:n,updateSettings:i}},DA=()=>{const{textAreaDisabled:e,toggleTextAreaDisabled:n,textAreaSensitiveMode:i,toggleTextAreaSensitiveMode:a,getTextAreaValue:o,setTextAreaValue:u,focusTextArea:f,blurTextArea:A}=Lo();return{textAreaDisabled:e,toggleTextAreaDisabled:n,textAreaSensitiveMode:i,toggleTextAreaSensitiveMode:a,getTextAreaValue:o,setTextAreaValue:u,focusTextArea:f,blurTextArea:A}},IA=()=>{const{showChatHistory:e,hasChatHistoryLoaded:n}=rc();return{showChatHistory:e,getHistoryMessages:Jl,setHistoryMessages:Zf,hasChatHistoryLoaded:n}},ac={a:{content:9,self:!1,type:105},address:{invalid:["h1","h2","h3","h4","h5","h6","address","article","aside","section","div","header","footer"],self:!1},audio:{children:["track","source"]},br:{type:9,void:!0},body:{content:127},button:{content:8,type:105},caption:{content:1,parent:["table"]},col:{parent:["colgroup"],void:!0},colgroup:{children:["col"],parent:["table"]},details:{children:["summary"],type:97},dd:{content:1,parent:["dl"]},dl:{children:["dt","dd"],type:1},dt:{content:1,invalid:["footer","header"],parent:["dl"]},figcaption:{content:1,parent:["figure"]},footer:{invalid:["footer","header"]},header:{invalid:["footer","header"]},hr:{type:1,void:!0},img:{void:!0},li:{content:1,parent:["ul","ol","menu"]},main:{self:!1},ol:{children:["li"],type:1},picture:{children:["source","img"],type:25},rb:{parent:["ruby","rtc"]},rp:{parent:["ruby","rtc"]},rt:{content:8,parent:["ruby","rtc"]},rtc:{content:8,parent:["ruby"]},ruby:{children:["rb","rp","rt","rtc"]},source:{parent:["audio","video","picture"],void:!0},summary:{content:8,parent:["details"]},table:{children:["caption","colgroup","thead","tbody","tfoot","tr"],type:1},tbody:{parent:["table"],children:["tr"]},td:{content:1,parent:["tr"]},tfoot:{parent:["table"],children:["tr"]},th:{content:1,parent:["tr"]},thead:{parent:["table"],children:["tr"]},tr:{parent:["table","tbody","thead","tfoot"],children:["th","td"]},track:{parent:["audio","video"],void:!0},ul:{children:["li"],type:1},video:{children:["track","source"]},wbr:{type:9,void:!0}};function Fo(e){return n=>{ac[n]={...e,...ac[n]}}}["address","main","div","figure","p","pre"].forEach(Fo({content:1,type:65})),["abbr","b","bdi","bdo","cite","code","data","dfn","em","i","kbd","mark","q","ruby","samp","strong","sub","sup","time","u","var"].forEach(Fo({content:8,type:73})),["p","pre"].forEach(Fo({content:8,type:65})),["s","small","span","del","ins"].forEach(Fo({content:8,type:9})),["article","aside","footer","header","nav","section","blockquote"].forEach(Fo({content:1,type:67})),["h1","h2","h3","h4","h5","h6"].forEach(Fo({content:8,type:69})),["audio","canvas","iframe","img","video"].forEach(Fo({type:89}));const ic=Object.freeze(ac),_p=["applet","base","body","command","embed","frame","frameset","head","html","link","meta","noscript","object","script","style","title"],Lp=Object.keys(ic).filter(e=>e!=="canvas"&&e!=="iframe"),BA=Object.freeze({alt:1,cite:1,class:1,colspan:3,controls:4,datetime:1,default:4,disabled:4,dir:1,height:1,href:1,id:1,kind:1,label:1,lang:1,loading:1,loop:4,media:1,muted:4,poster:1,rel:1,role:1,rowspan:3,scope:1,sizes:1,span:3,start:3,style:5,src:1,srclang:1,srcset:1,tabindex:1,target:1,title:1,type:1,width:1}),Fp=Object.freeze({class:"className",colspan:"colSpan",datetime:"dateTime",rowspan:"rowSpan",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex"});function zs(){return zs=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e},zs.apply(this,arguments)}function MA({attributes:e={},className:n,children:i=null,selfClose:a=!1,tagName:o}){const u=o;return a?B.createElement(u,zs({className:n},e)):B.createElement(u,zs({className:n},e),i)}class Qp{attribute(n,i){return i}node(n,i){return i}}function Hp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}/*!
115
115
  * escape-html
116
116
  * Copyright(c) 2012-2013 TJ Holowaychuk
117
117
  * Copyright(c) 2015 Andreas Lubbe
@@ -121,10 +121,10 @@ Error generating stack: `+s.message+`
121
121
  `);return a=a.replace(/\n{3,}/g,`
122
122
 
123
123
 
124
- `),a=a.replace(/\n/g,"<br/>"),a}createContainer(e){var n;const i=(typeof global<"u"&&global.INTERWEAVE_SSR_POLYFILL||Gp)();if(!i)return;const a=(n=this.props.containerTagName)!==null&&n!==void 0?n:"body",o=a==="body"||a==="fragment"?i.body:i.createElement(a);if(e.match(jp)){if(process.env.NODE_ENV!=="production")throw new Error("HTML documents as Interweave content are not supported.")}else o.innerHTML=this.convertLineBreaks(this.props.escapeHtml?Np(e):e);return o}extractAttributes(e){const{allowAttributes:n}=this.props,i={};let a=0;return e.nodeType===1&&e.attributes&&([...e.attributes].forEach(o=>{const{name:u,value:f}=o,A=u.toLowerCase(),c=BA[A]||BA[u];if(!this.isSafe(e)||!A.match(Wp)&&(!n&&(!c||c===2)||A.startsWith("on")||f.replace(/(\s|\0|&#x0([9AD]);)/,"").match(/(javascript|vbscript|livescript|xss):/i)))return;let d=A==="style"?this.extractStyleAttribute(e):f;c===4?d=!0:c===3?d=Number.parseFloat(String(d)):c!==5&&(d=String(d)),i[Fp[A]||A]=this.applyAttributeFilters(A,d),a+=1}),a!==0)?i:null}extractStyleAttribute(e){const n={};return Array.from(e.style).forEach(i=>{const a=e.style[i];(typeof a=="string"||typeof a=="number")&&(n[i.replace(/-([a-z])/g,(o,u)=>String(u).toUpperCase())]=a)}),n}getTagConfig(e){const n={children:[],content:0,invalid:[],parent:[],self:!0,tagName:"",type:0,void:!1};return ic[e]?{...n,...ic[e],tagName:e}:n}isSafe(e){if(typeof HTMLAnchorElement<"u"&&e instanceof HTMLAnchorElement){const n=e.getAttribute("href");if(n!=null&&n.startsWith("#"))return!0;const i=e.protocol.toLowerCase();return i===":"||i==="http:"||i==="https:"||i==="mailto:"||i==="tel:"}return!0}isTagAllowed(e){return!this.banned.has(e)&&!this.blocked.has(e)&&(this.props.allowElements||this.allowed.has(e))}parse(){return this.container?this.parseNode(this.container,this.getTagConfig(this.container.nodeName.toLowerCase())):[]}parseNode(e,n){const{noHtml:i,noHtmlExceptMatchers:a,allowElements:o,transform:u,transformOnlyAllowList:f}=this.props;let A=[],c="";return[...e.childNodes].forEach(d=>{if(d.nodeType===1){const v=d.nodeName.toLowerCase(),y=this.getTagConfig(v);c&&(A.push(c),c="");const k=this.applyNodeFilters(v,d);if(!k)return;let C;if(u&&(!f||this.isTagAllowed(v))){this.keyIndex+=1;const R=this.keyIndex;C=this.parseNode(k,y);const E=u(k,C,y);if(E===null)return;if(typeof E<"u")return void A.push(B.cloneElement(E,{key:R}));this.keyIndex=R-1}if(this.banned.has(v))return;if(i||a&&v!=="br"||!this.isTagAllowed(v)||!o&&!this.canRenderChild(n,y))A=[...A,...this.parseNode(k,y.tagName?y:n)];else{var h;this.keyIndex+=1;const R=this.extractAttributes(k),E={tagName:v};R&&(E.attributes=R),y.void&&(E.selfClose=y.void),A.push(B.createElement(MA,{...E,key:this.keyIndex},(h=C)!==null&&h!==void 0?h:this.parseNode(k,y)))}}else if(d.nodeType===3){const v=i&&!a?d.textContent:this.applyMatchers(d.textContent||"",n);Array.isArray(v)?A=[...A,...v]:c+=v}}),c&&A.push(c),A}replaceTokens(e,n){if(!e.includes("{{{"))return e;const i=[];let a=e,o=null;for(;o=a.match(Yp);){const[u,f]=o,A=o.index,c=u.includes("/");if(process.env.NODE_ENV!=="production"&&!n[f])throw new Error(`Token "${f}" found but no matching element to replace with.`);A>0&&(i.push(a.slice(0,A)),a=a.slice(A));const{children:d,matcher:h,props:v}=n[f];let y;if(c)y=u.length,i.push(h.createElement(d,v));else{const k=a.match(new RegExp(`{{{/${f}}}}`));if(process.env.NODE_ENV!=="production"&&!k)throw new Error(`Closing token missing for interpolated element "${f}".`);y=k.index+k[0].length,i.push(h.createElement(this.replaceTokens(a.slice(u.length,k.index),n),v))}a=a.slice(y)}return a.length>0&&i.push(a),i.length===0?"":i.length===1&&typeof i[0]=="string"?i[0]:i}};function Vp(e){var n;const{attributes:i,className:a,containerTagName:o,content:u,emptyContent:f,parsedContent:A,tagName:c,noWrap:d}=e,h=(n=o??c)!==null&&n!==void 0?n:"span",v=h==="fragment"||d;let y;if(A)y=A;else{const k=new _A(u??"",e).parse();k.length>0&&(y=k)}return y||(y=f),v?B.createElement(B.Fragment,null,y):B.createElement(MA,{attributes:i,className:a,tagName:h},y)}function Xp(e){const{attributes:n,className:i,content:a="",disableFilters:o=!1,disableMatchers:u=!1,emptyContent:f=null,filters:A=[],matchers:c=[],onAfterParse:d=null,onBeforeParse:h=null,tagName:v="span",noWrap:y=!1,...k}=e,C=u?[]:c,R=o?[]:A,E=h?[h]:[],T=d?[d]:[];C.forEach(j=>{j.onBeforeParse&&E.push(j.onBeforeParse.bind(j)),j.onAfterParse&&T.push(j.onAfterParse.bind(j))});const Q=E.reduce((j,N)=>{const W=N(j,e);if(process.env.NODE_ENV!=="production"&&typeof W!="string")throw new TypeError("Interweave `onBeforeParse` must return a valid HTML string.");return W},a??""),M=new _A(Q,k,C,R),U=T.reduce((j,N)=>{const W=N(j,e);if(process.env.NODE_ENV!=="production"&&!Array.isArray(W))throw new TypeError("Interweave `onAfterParse` must return an array of strings and React elements.");return W},M.parse());return B.createElement(Vp,{attributes:n,className:i,containerTagName:e.containerTagName,emptyContent:f,noWrap:y,parsedContent:U.length===0?void 0:U,tagName:v})}const Jp=({children:e})=>z.jsx("div",{style:{whiteSpace:"normal"},children:z.jsx(Xp,{content:typeof e=="string"?e:""})}),Kp={autoConfig:!0},LA=(e,n,i)=>{var a;if(!e.detail.currPath)return!1;const o=n[e.detail.currPath];return!!o&&(((a=o.renderHtml)==null?void 0:a.map(u=>u.toUpperCase()).includes(i))??!1)},qp=e=>{const n=[];let i="",a=!1;for(let o=0;o<e.length;o++){const u=e[o];u==="<"?a?(n.push(i),i=u):(a=!0,i=u):u===">"?(i+=u,n.push(i),i="",a=!1):a?i+=u:n.push(u)}return i!==""&&n.push(i),n},$p=e=>{const{getFlow:n}=Us(),{messages:i,replaceMessages:a}=Ii(),{settings:o}=TA(),{hasChatHistoryLoaded:u}=IA(),f={...e,...Kp},A=f.htmlComponent?f.htmlComponent:Jp;B.useEffect(()=>{var h,v;if(u){const y=[...i];for(let k=0;k<y.length&&k<(((h=o.chatHistory)==null?void 0:h.maxEntries)??30);k++){const C=y[k];(v=C.tags)!=null&&v.includes("rcb-html-renderer-plugin:parsed")&&(C.contentWrapper=A)}a(y)}},[u]);const c=async h=>{var v;const y=(v=h.data.message)==null?void 0:v.sender.toUpperCase();typeof h.data.message.content=="string"&&LA(h,n(),y)&&(h.type==="rcb-start-simulate-stream-message"&&(h.data.simulateStreamChunker=qp),h.data.message.contentWrapper=A,h.data.message.tags||(h.data.message.tags=[]),h.data.message.tags.push("rcb-html-renderer-plugin:parsed"))};Mn(we.PRE_INJECT_MESSAGE,c),Mn(we.CHUNK_STREAM_MESSAGE,c),Mn(we.START_STREAM_MESSAGE,c),Mn(we.START_SIMULATE_STREAM_MESSAGE,c),Mn(we.START_SPEAK_AUDIO,async h=>{LA(h,n(),"BOT")&&(h.data.textToRead=(v=>typeof window.DOMParser<"u"?new DOMParser().parseFromString(v,"text/html").body.textContent||"":v.replace(/<\/?[^>]+(>|$)/g,""))(h.data.textToRead))});const d={name:"@rcb-plugins/html-renderer"};return f!=null&&f.autoConfig&&(d.settings={event:{rcbPreInjectMessage:!0,rcbChunkStreamMessage:!0,rcbStartSimulateStreamMessage:!0,rcbStartStreamMessage:!0,rcbStartSpeakAudio:!0}}),d},Zp=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,eh=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,th={};function FA(e,n){return(th.jsx?eh:Zp).test(e)}const nh=/[ \t\n\f\r]/g;function QA(e){return e.replace(nh,"")===""}class Bi{constructor(n,i,a){this.property=n,this.normal=i,a&&(this.space=a)}}function HA(e,n){const i={},a={};let o=-1;for(;++o<e.length;)Object.assign(i,e[o].property),Object.assign(a,e[o].normal);return new Bi(i,a,n)}function sc(e){return e.toLowerCase()}Bi.prototype.property={},Bi.prototype.normal={},Bi.prototype.space=null;class Rn{constructor(n,i){this.property=n,this.attribute=i}}Rn.prototype.space=null,Rn.prototype.boolean=!1,Rn.prototype.booleanish=!1,Rn.prototype.overloadedBoolean=!1,Rn.prototype.number=!1,Rn.prototype.commaSeparated=!1,Rn.prototype.spaceSeparated=!1,Rn.prototype.commaOrSpaceSeparated=!1,Rn.prototype.mustUseProperty=!1,Rn.prototype.defined=!1;let rh=0;const He=Qo(),kt=Qo(),NA=Qo(),de=Qo(),it=Qo(),Sa=Qo(),xn=Qo();function Qo(){return 2**++rh}const lc=Object.freeze(Object.defineProperty({__proto__:null,boolean:He,booleanish:kt,commaOrSpaceSeparated:xn,commaSeparated:Sa,number:de,overloadedBoolean:NA,spaceSeparated:it},Symbol.toStringTag,{value:"Module"})),cc=Object.keys(lc);class uc extends Rn{constructor(n,i,a,o){let u=-1;if(super(n,i),UA(this,"space",o),typeof a=="number")for(;++u<cc.length;){const f=cc[u];UA(this,cc[u],(a&lc[f])===lc[f])}}}function UA(e,n,i){i&&(e[n]=i)}uc.prototype.defined=!0;const oh={}.hasOwnProperty;function ka(e){const n={},i={};let a;for(a in e.properties)if(oh.call(e.properties,a)){const o=e.properties[a],u=new uc(a,e.transform(e.attributes||{},a),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(u.mustUseProperty=!0),n[a]=u,i[sc(a)]=a,i[sc(u.attribute)]=a}return new Bi(n,i,e.space)}const zA=ka({space:"xlink",transform:(e,n)=>"xlink:"+n.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),jA=ka({space:"xml",transform:(e,n)=>"xml:"+n.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function WA(e,n){return n in e?e[n]:n}function YA(e,n){return WA(e,n.toLowerCase())}const GA=ka({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:YA,properties:{xmlns:null,xmlnsXLink:null}}),VA=ka({transform:(e,n)=>n==="role"?n:"aria-"+n.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:kt,ariaAutoComplete:null,ariaBusy:kt,ariaChecked:kt,ariaColCount:de,ariaColIndex:de,ariaColSpan:de,ariaControls:it,ariaCurrent:null,ariaDescribedBy:it,ariaDetails:null,ariaDisabled:kt,ariaDropEffect:it,ariaErrorMessage:null,ariaExpanded:kt,ariaFlowTo:it,ariaGrabbed:kt,ariaHasPopup:null,ariaHidden:kt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:it,ariaLevel:de,ariaLive:null,ariaModal:kt,ariaMultiLine:kt,ariaMultiSelectable:kt,ariaOrientation:null,ariaOwns:it,ariaPlaceholder:null,ariaPosInSet:de,ariaPressed:kt,ariaReadOnly:kt,ariaRelevant:null,ariaRequired:kt,ariaRoleDescription:it,ariaRowCount:de,ariaRowIndex:de,ariaRowSpan:de,ariaSelected:kt,ariaSetSize:de,ariaSort:null,ariaValueMax:de,ariaValueMin:de,ariaValueNow:de,ariaValueText:null,role:null}}),ah=ka({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:YA,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Sa,acceptCharset:it,accessKey:it,action:null,allow:null,allowFullScreen:He,allowPaymentRequest:He,allowUserMedia:He,alt:null,as:null,async:He,autoCapitalize:null,autoComplete:it,autoFocus:He,autoPlay:He,blocking:it,capture:null,charSet:null,checked:He,cite:null,className:it,cols:de,colSpan:null,content:null,contentEditable:kt,controls:He,controlsList:it,coords:de|Sa,crossOrigin:null,data:null,dateTime:null,decoding:null,default:He,defer:He,dir:null,dirName:null,disabled:He,download:NA,draggable:kt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:He,formTarget:null,headers:it,height:de,hidden:He,high:de,href:null,hrefLang:null,htmlFor:it,httpEquiv:it,id:null,imageSizes:null,imageSrcSet:null,inert:He,inputMode:null,integrity:null,is:null,isMap:He,itemId:null,itemProp:it,itemRef:it,itemScope:He,itemType:it,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:He,low:de,manifest:null,max:null,maxLength:de,media:null,method:null,min:null,minLength:de,multiple:He,muted:He,name:null,nonce:null,noModule:He,noValidate:He,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:He,optimum:de,pattern:null,ping:it,placeholder:null,playsInline:He,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:He,referrerPolicy:null,rel:it,required:He,reversed:He,rows:de,rowSpan:de,sandbox:it,scope:null,scoped:He,seamless:He,selected:He,shadowRootClonable:He,shadowRootDelegatesFocus:He,shadowRootMode:null,shape:null,size:de,sizes:null,slot:null,span:de,spellCheck:kt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:de,step:null,style:null,tabIndex:de,target:null,title:null,translate:null,type:null,typeMustMatch:He,useMap:null,value:kt,width:de,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:it,axis:null,background:null,bgColor:null,border:de,borderColor:null,bottomMargin:de,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:He,declare:He,event:null,face:null,frame:null,frameBorder:null,hSpace:de,leftMargin:de,link:null,longDesc:null,lowSrc:null,marginHeight:de,marginWidth:de,noResize:He,noHref:He,noShade:He,noWrap:He,object:null,profile:null,prompt:null,rev:null,rightMargin:de,rules:null,scheme:null,scrolling:kt,standby:null,summary:null,text:null,topMargin:de,valueType:null,version:null,vAlign:null,vLink:null,vSpace:de,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:He,disableRemotePlayback:He,prefix:null,property:null,results:de,security:null,unselectable:null}}),ih=ka({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:WA,properties:{about:xn,accentHeight:de,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:de,amplitude:de,arabicForm:null,ascent:de,attributeName:null,attributeType:null,azimuth:de,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:de,by:null,calcMode:null,capHeight:de,className:it,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:de,diffuseConstant:de,direction:null,display:null,dur:null,divisor:de,dominantBaseline:null,download:He,dx:null,dy:null,edgeMode:null,editable:null,elevation:de,enableBackground:null,end:null,event:null,exponent:de,externalResourcesRequired:null,fill:null,fillOpacity:de,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Sa,g2:Sa,glyphName:Sa,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:de,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:de,horizOriginX:de,horizOriginY:de,id:null,ideographic:de,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:de,k:de,k1:de,k2:de,k3:de,k4:de,kernelMatrix:xn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:de,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:de,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:de,overlineThickness:de,paintOrder:null,panose1:null,path:null,pathLength:de,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:it,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:de,pointsAtY:de,pointsAtZ:de,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:xn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:xn,rev:xn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:xn,requiredFeatures:xn,requiredFonts:xn,requiredFormats:xn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:de,specularExponent:de,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:de,strikethroughThickness:de,string:null,stroke:null,strokeDashArray:xn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:de,strokeOpacity:de,strokeWidth:null,style:null,surfaceScale:de,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:xn,tabIndex:de,tableValues:null,target:null,targetX:de,targetY:de,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:xn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:de,underlineThickness:de,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:de,values:null,vAlphabetic:de,vMathematical:de,vectorEffect:null,vHanging:de,vIdeographic:de,version:null,vertAdvY:de,vertOriginX:de,vertOriginY:de,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:de,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),sh=/^data[-\w.:]+$/i,XA=/-[a-z]/g,lh=/[A-Z]/g;function ch(e){return"-"+e.toLowerCase()}function uh(e){return e.charAt(1).toUpperCase()}const Ah={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},dh=HA([jA,zA,GA,VA,ah],"html"),Ac=HA([jA,zA,GA,VA,ih],"svg");function JA(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var dc,KA,qA,Ea={},fh=function(){if(qA)return Ea;qA=1;var e=Ea&&Ea.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.default=function(i,a){var o=null;if(!i||typeof i!="string")return o;var u=(0,n.default)(i),f=typeof a=="function";return u.forEach(function(A){if(A.type==="declaration"){var c=A.property,d=A.value;f?a(c,d,A):d&&((o=o||{})[c]=d)}}),o};var n=e(function(){if(KA)return dc;KA=1;var i=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a=/\n/g,o=/^\s*/,u=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,f=/^:\s*/,A=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,h="";function v(y){return y?y.replace(d,h):h}return dc=function(y,k){if(typeof y!="string")throw new TypeError("First argument must be a string");if(!y)return[];k=k||{};var C=1,R=1;function E(G){var Y=G.match(a);Y&&(C+=Y.length);var Z=G.lastIndexOf(`
125
- `);R=~Z?G.length-Z:R+G.length}function T(){var G={line:C,column:R};return function(Y){return Y.position=new Q(G),j(),Y}}function Q(G){this.start=G,this.end={line:C,column:R},this.source=k.source}function M(G){var Y=new Error(k.source+":"+C+":"+R+": "+G);if(Y.reason=G,Y.filename=k.source,Y.line=C,Y.column=R,Y.source=y,!k.silent)throw Y}function U(G){var Y=G.exec(y);if(Y){var Z=Y[0];return E(Z),y=y.slice(Z.length),Y}}function j(){U(o)}function N(G){var Y;for(G=G||[];Y=W();)Y!==!1&&G.push(Y);return G}function W(){var G=T();if(y.charAt(0)=="/"&&y.charAt(1)=="*"){for(var Y=2;h!=y.charAt(Y)&&(y.charAt(Y)!="*"||y.charAt(Y+1)!="/");)++Y;if(Y+=2,h===y.charAt(Y-1))return M("End of comment missing");var Z=y.slice(2,Y-2);return R+=2,E(Z),y=y.slice(Y),R+=2,G({type:"comment",comment:Z})}}function ee(){var G=T(),Y=U(u);if(Y){if(W(),!U(f))return M("property missing ':'");var Z=U(A),$=G({type:"declaration",property:v(Y[0].replace(i,h)),value:Z?v(Z[0].replace(i,h)):h});return U(c),$}}return Q.prototype.content=y,j(),function(){var G,Y=[];for(N(Y);G=ee();)G!==!1&&(Y.push(G),N(Y));return Y}()},dc}());return Ea}();const $A=JA(fh),ph=$A.default||$A,ZA=ed("end"),fc=ed("start");function ed(e){return function(n){const i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function Mi(e){return e&&typeof e=="object"?"position"in e||"type"in e?td(e.position):"start"in e||"end"in e?td(e):"line"in e||"column"in e?pc(e):"":""}function pc(e){return nd(e&&e.line)+":"+nd(e&&e.column)}function td(e){return pc(e&&e.start)+"-"+pc(e&&e.end)}function nd(e){return e&&typeof e=="number"?e:1}class Vt extends Error{constructor(n,i,a){super(),typeof i=="string"&&(a=i,i=void 0);let o="",u={},f=!1;if(i&&(u="line"in i&&"column"in i||"start"in i&&"end"in i?{place:i}:"type"in i?{ancestors:[i],place:i.position}:{...i}),typeof n=="string"?o=n:!u.cause&&n&&(f=!0,o=n.message,u.cause=n),!u.ruleId&&!u.source&&typeof a=="string"){const c=a.indexOf(":");c===-1?u.ruleId=a:(u.source=a.slice(0,c),u.ruleId=a.slice(c+1))}if(!u.place&&u.ancestors&&u.ancestors){const c=u.ancestors[u.ancestors.length-1];c&&(u.place=c.position)}const A=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=A?A.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=A?A.line:void 0,this.name=Mi(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=f&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual,this.expected,this.note,this.url}}Vt.prototype.file="",Vt.prototype.name="",Vt.prototype.reason="",Vt.prototype.message="",Vt.prototype.stack="",Vt.prototype.column=void 0,Vt.prototype.line=void 0,Vt.prototype.ancestors=void 0,Vt.prototype.cause=void 0,Vt.prototype.fatal=void 0,Vt.prototype.place=void 0,Vt.prototype.ruleId=void 0,Vt.prototype.source=void 0;const hc={}.hasOwnProperty,hh=new Map,gh=/[A-Z]/g,mh=/-([a-z])/g,vh=new Set(["table","tbody","thead","tfoot","tr"]),yh=new Set(["td","th"]),rd="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function bh(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=n.filePath||void 0;let a;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=function(f,A){return c;function c(d,h,v,y){const k=Array.isArray(v.children),C=fc(d);return A(h,v,y,k,{columnNumber:C?C.column-1:void 0,fileName:f,lineNumber:C?C.line:void 0},void 0)}}(i,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=function(f,A,c){return d;function d(h,v,y,k){const C=Array.isArray(y.children)?c:A;return k?C(v,y,k):C(v,y)}}(0,n.jsx,n.jsxs)}const o={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:a,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?Ac:dh,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},u=od(o,e,void 0);return u&&typeof u!="string"?u:o.create(e,o.Fragment,{children:u||void 0},void 0)}function od(e,n,i){return n.type==="element"?function(a,o,u){const f=a.schema;let A=f;o.tagName.toLowerCase()==="svg"&&f.space==="html"&&(A=Ac,a.schema=A),a.ancestors.push(o);const c=id(a,o.tagName,!1),d=function(v,y){const k={};let C,R;for(R in y.properties)if(R!=="children"&&hc.call(y.properties,R)){const E=wh(v,R,y.properties[R]);if(E){const[T,Q]=E;v.tableCellAlignToStyle&&T==="align"&&typeof Q=="string"&&yh.has(y.tagName)?C=Q:k[T]=Q}}return C&&((k.style||(k.style={}))[v.stylePropertyNameCase==="css"?"text-align":"textAlign"]=C),k}(a,o);let h=mc(a,o);return vh.has(o.tagName)&&(h=h.filter(function(v){return typeof v!="string"||!function(y){return typeof y=="object"?y.type==="text"&&QA(y.value):QA(y)}(v)})),ad(a,d,c,o),gc(d,h),a.ancestors.pop(),a.schema=f,a.create(o,c,d,u)}(e,n,i):n.type==="mdxFlowExpression"||n.type==="mdxTextExpression"?function(a,o){if(o.data&&o.data.estree&&a.evaluater){const u=o.data.estree.body[0];return u.type,a.evaluater.evaluateExpression(u.expression)}Ri(a,o.position)}(e,n):n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement"?function(a,o,u){const f=a.schema;let A=f;o.name==="svg"&&f.space==="html"&&(A=Ac,a.schema=A),a.ancestors.push(o);const c=o.name===null?a.Fragment:id(a,o.name,!0),d=function(v,y){const k={};for(const C of y.attributes)if(C.type==="mdxJsxExpressionAttribute")if(C.data&&C.data.estree&&v.evaluater){const R=C.data.estree.body[0];R.type;const E=R.expression;E.type;const T=E.properties[0];T.type,Object.assign(k,v.evaluater.evaluateExpression(T.argument))}else Ri(v,y.position);else{const R=C.name;let E;if(C.value&&typeof C.value=="object")if(C.value.data&&C.value.data.estree&&v.evaluater){const T=C.value.data.estree.body[0];T.type,E=v.evaluater.evaluateExpression(T.expression)}else Ri(v,y.position);else E=C.value===null||C.value;k[R]=E}return k}(a,o),h=mc(a,o);return ad(a,d,c,o),gc(d,h),a.ancestors.pop(),a.schema=f,a.create(o,c,d,u)}(e,n,i):n.type==="mdxjsEsm"?function(a,o){if(o.data&&o.data.estree&&a.evaluater)return a.evaluater.evaluateProgram(o.data.estree);Ri(a,o.position)}(e,n):n.type==="root"?function(a,o,u){const f={};return gc(f,mc(a,o)),a.create(o,a.Fragment,f,u)}(e,n,i):n.type==="text"?function(a,o){return o.value}(0,n):void 0}function ad(e,n,i,a){typeof i!="string"&&i!==e.Fragment&&e.passNode&&(n.node=a)}function gc(e,n){if(n.length>0){const i=n.length>1?n:n[0];i&&(e.children=i)}}function mc(e,n){const i=[];let a=-1;const o=e.passKeys?new Map:hh;for(;++a<n.children.length;){const u=n.children[a];let f;if(e.passKeys){const c=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(c){const d=o.get(c)||0;f=c+"-"+d,o.set(c,d+1)}}const A=od(e,u,f);A!==void 0&&i.push(A)}return i}function wh(e,n,i){const a=function(o,u){const f=sc(u);let A=u,c=Rn;if(f in o.normal)return o.property[o.normal[f]];if(f.length>4&&f.slice(0,4)==="data"&&sh.test(u)){if(u.charAt(4)==="-"){const d=u.slice(5).replace(XA,uh);A="data"+d.charAt(0).toUpperCase()+d.slice(1)}else{const d=u.slice(4);if(!XA.test(d)){let h=d.replace(lh,ch);h.charAt(0)!=="-"&&(h="-"+h),u="data"+h}}c=uc}return new c(A,u)}(e.schema,n);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=a.commaSeparated?function(o){const u={};return(o[o.length-1]===""?[...o,""]:o).join((u.padRight?" ":"")+","+(u.padLeft===!1?"":" ")).trim()}(i):function(o){return o.join(" ").trim()}(i)),a.property==="style"){let o=typeof i=="object"?i:function(u,f){const A={};try{ph(f,c)}catch(d){if(!u.ignoreInvalidStyle){const h=d,v=new Vt("Cannot parse `style` attribute",{ancestors:u.ancestors,cause:h,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw v.file=u.filePath||void 0,v.url=rd+"#cannot-parse-style-attribute",v}}return A;function c(d,h){let v=d;v.slice(0,2)!=="--"&&(v.slice(0,4)==="-ms-"&&(v="ms-"+v.slice(4)),v=v.replace(mh,Sh)),A[v]=h}}(e,String(i));return e.stylePropertyNameCase==="css"&&(o=function(u){const f={};let A;for(A in u)hc.call(u,A)&&(f[xh(A)]=u[A]);return f}(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&a.space?Ah[a.property]||a.property:a.attribute,i]}}function id(e,n,i){let a;if(i)if(n.includes(".")){const o=n.split(".");let u,f=-1;for(;++f<o.length;){const A=FA(o[f])?{type:"Identifier",name:o[f]}:{type:"Literal",value:o[f]};u=u?{type:"MemberExpression",object:u,property:A,computed:!(!f||A.type!=="Literal"),optional:!1}:A}a=u}else a=FA(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};else a={type:"Literal",value:n};if(a.type==="Literal"){const o=a.value;return hc.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(a);Ri(e)}function Ri(e,n){const i=new Vt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=rd+"#cannot-handle-mdx-estrees-without-createevaluater",i}function xh(e){let n=e.replace(gh,kh);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Sh(e,n){return n.toUpperCase()}function kh(e){return"-"+e.toLowerCase()}const vc={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},js={};function sd(e,n,i){if(function(a){return!(!a||typeof a!="object")}(e)){if("value"in e)return e.type!=="html"||i?e.value:"";if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ld(e.children,n,i)}return Array.isArray(e)?ld(e,n,i):""}function ld(e,n,i){const a=[];let o=-1;for(;++o<e.length;)a[o]=sd(e[o],n,i);return a.join("")}const cd=document.createElement("i");function yc(e){const n="&"+e+";";cd.innerHTML=n;const i=cd.textContent;return(i.charCodeAt(i.length-1)!==59||e==="semi")&&i!==n&&i}function ur(e,n,i,a){const o=e.length;let u,f=0;if(n=n<0?-n>o?0:o+n:n>o?o:n,i=i>0?i:0,a.length<1e4)u=Array.from(a),u.unshift(n,i),e.splice(...u);else for(i&&e.splice(n,i);f<a.length;)u=a.slice(f,f+1e4),u.unshift(n,0),e.splice(...u),f+=1e4,n+=1e4}function On(e,n){return e.length>0?(ur(e,e.length,0,n),e):n}const ud={}.hasOwnProperty;function Eh(e){const n={};let i=-1;for(;++i<e.length;)Ch(n,e[i]);return n}function Ch(e,n){let i;for(i in n){const a=(ud.call(e,i)?e[i]:void 0)||(e[i]={}),o=n[i];let u;if(o)for(u in o){ud.call(a,u)||(a[u]=[]);const f=o[u];Ph(a[u],Array.isArray(f)?f:f?[f]:[])}}}function Ph(e,n){let i=-1;const a=[];for(;++i<n.length;)(n[i].add==="after"?e:a).push(n[i]);ur(e,0,0,a)}function Ad(e,n){const i=Number.parseInt(e,n);return i<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||!(65535&~i)||(65535&i)==65534||i>1114111?"�":String.fromCodePoint(i)}function Ca(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ar=Zr(/[A-Za-z]/),Sn=Zr(/[\dA-Za-z]/),Th=Zr(/[#-'*+\--9=?A-Z^-~]/);function bc(e){return e!==null&&(e<32||e===127)}const wc=Zr(/\d/),Dh=Zr(/[\dA-Fa-f]/),Ih=Zr(/[!-/:-@[-`{-~]/);function Me(e){return e!==null&&e<-2}function ln(e){return e!==null&&(e<0||e===32)}function Xe(e){return e===-2||e===-1||e===32}const Bh=Zr(new RegExp("\\p{P}|\\p{S}","u")),Mh=Zr(/\s/);function Zr(e){return function(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Pa(e){const n=[];let i=-1,a=0,o=0;for(;++i<e.length;){const u=e.charCodeAt(i);let f="";if(u===37&&Sn(e.charCodeAt(i+1))&&Sn(e.charCodeAt(i+2)))o=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(f=String.fromCharCode(u));else if(u>55295&&u<57344){const A=e.charCodeAt(i+1);u<56320&&A>56319&&A<57344?(f=String.fromCharCode(u,A),o=1):f="�"}else f=String.fromCharCode(u);f&&(n.push(e.slice(a,i),encodeURIComponent(f)),a=i+o+1,f=""),o&&(i+=o,o=0)}return n.join("")+e.slice(a)}function st(e,n,i,a){const o=a?a-1:Number.POSITIVE_INFINITY;let u=0;return function(A){return Xe(A)?(e.enter(i),f(A)):n(A)};function f(A){return Xe(A)&&u++<o?(e.consume(A),f):(e.exit(i),n(A))}}const Rh={tokenize:function(e){const n=e.attempt(this.parser.constructs.contentInitial,function(u){return u===null?void e.consume(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),st(e,n,"linePrefix"))},function(u){return e.enter("paragraph"),a(u)});let i;return n;function a(u){const f=e.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=f),i=f,o(u)}function o(u){return u===null?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(u)):Me(u)?(e.consume(u),e.exit("chunkText"),a):(e.consume(u),o)}}},Oh={tokenize:function(e){const n=this,i=[];let a,o,u,f=0;return A;function A(M){if(f<i.length){const U=i[f];return n.containerState=U[1],e.attempt(U[0].continuation,c,d)(M)}return d(M)}function c(M){if(f++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,a&&Q();const U=n.events.length;let j,N=U;for(;N--;)if(n.events[N][0]==="exit"&&n.events[N][1].type==="chunkFlow"){j=n.events[N][1].end;break}T(f);let W=U;for(;W<n.events.length;)n.events[W][1].end={...j},W++;return ur(n.events,N+1,0,n.events.slice(U)),n.events.length=W,d(M)}return A(M)}function d(M){if(f===i.length){if(!a)return y(M);if(a.currentConstruct&&a.currentConstruct.concrete)return C(M);n.interrupt=!(!a.currentConstruct||a._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(dd,h,v)(M)}function h(M){return a&&Q(),T(f),y(M)}function v(M){return n.parser.lazy[n.now().line]=f!==i.length,u=n.now().offset,C(M)}function y(M){return n.containerState={},e.attempt(dd,k,C)(M)}function k(M){return f++,i.push([n.currentConstruct,n.containerState]),y(M)}function C(M){return M===null?(a&&Q(),T(0),void e.consume(M)):(a=a||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:o}),R(M))}function R(M){return M===null?(E(e.exit("chunkFlow"),!0),T(0),void e.consume(M)):Me(M)?(e.consume(M),E(e.exit("chunkFlow")),f=0,n.interrupt=void 0,A):(e.consume(M),R)}function E(M,U){const j=n.sliceStream(M);if(U&&j.push(null),M.previous=o,o&&(o.next=M),o=M,a.defineSkip(M.start),a.write(j),n.parser.lazy[M.start.line]){let N=a.events.length;for(;N--;)if(a.events[N][1].start.offset<u&&(!a.events[N][1].end||a.events[N][1].end.offset>u))return;const W=n.events.length;let ee,G,Y=W;for(;Y--;)if(n.events[Y][0]==="exit"&&n.events[Y][1].type==="chunkFlow"){if(ee){G=n.events[Y][1].end;break}ee=!0}for(T(f),N=W;N<n.events.length;)n.events[N][1].end={...G},N++;ur(n.events,Y+1,0,n.events.slice(W)),n.events.length=N}}function T(M){let U=i.length;for(;U-- >M;){const j=i[U];n.containerState=j[1],j[0].exit.call(n,e)}i.length=M}function Q(){a.write([null]),o=void 0,a=void 0,n.containerState._closeFlow=void 0}}},dd={tokenize:function(e,n,i){return st(e,e.attempt(this.parser.constructs.document,n,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function fd(e){return e===null||ln(e)||Mh(e)?1:Bh(e)?2:void 0}function xc(e,n,i){const a=[];let o=-1;for(;++o<e.length;){const u=e[o].resolveAll;u&&!a.includes(u)&&(n=u(n,i),a.push(u))}return n}const Sc={name:"attention",resolveAll:function(e,n){let i,a,o,u,f,A,c,d,h=-1;for(;++h<e.length;)if(e[h][0]==="enter"&&e[h][1].type==="attentionSequence"&&e[h][1]._close){for(i=h;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&n.sliceSerialize(e[i][1]).charCodeAt(0)===n.sliceSerialize(e[h][1]).charCodeAt(0)){if((e[i][1]._close||e[h][1]._open)&&(e[h][1].end.offset-e[h][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[h][1].end.offset-e[h][1].start.offset)%3))continue;A=e[i][1].end.offset-e[i][1].start.offset>1&&e[h][1].end.offset-e[h][1].start.offset>1?2:1;const v={...e[i][1].end},y={...e[h][1].start};pd(v,-A),pd(y,A),u={type:A>1?"strongSequence":"emphasisSequence",start:v,end:{...e[i][1].end}},f={type:A>1?"strongSequence":"emphasisSequence",start:{...e[h][1].start},end:y},o={type:A>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[h][1].start}},a={type:A>1?"strong":"emphasis",start:{...u.start},end:{...f.end}},e[i][1].end={...u.start},e[h][1].start={...f.end},c=[],e[i][1].end.offset-e[i][1].start.offset&&(c=On(c,[["enter",e[i][1],n],["exit",e[i][1],n]])),c=On(c,[["enter",a,n],["enter",u,n],["exit",u,n],["enter",o,n]]),c=On(c,xc(n.parser.constructs.insideSpan.null,e.slice(i+1,h),n)),c=On(c,[["exit",o,n],["enter",f,n],["exit",f,n],["exit",a,n]]),e[h][1].end.offset-e[h][1].start.offset?(d=2,c=On(c,[["enter",e[h][1],n],["exit",e[h][1],n]])):d=0,ur(e,i-1,h-i+3,c),h=i+c.length-d-2;break}}for(h=-1;++h<e.length;)e[h][1].type==="attentionSequence"&&(e[h][1].type="data");return e},tokenize:function(e,n){const i=this.parser.constructs.attentionMarkers.null,a=this.previous,o=fd(a);let u;return function(A){return u=A,e.enter("attentionSequence"),f(A)};function f(A){if(A===u)return e.consume(A),f;const c=e.exit("attentionSequence"),d=fd(A),h=!d||d===2&&o||i.includes(A),v=!o||o===2&&d||i.includes(a);return c._open=!!(u===42?h:h&&(o||!v)),c._close=!!(u===42?v:v&&(d||!h)),n(A)}}};function pd(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const _h={name:"autolink",tokenize:function(e,n,i){let a=0;return function(y){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(y){return Ar(y)?(e.consume(y),u):y===64?i(y):c(y)}function u(y){return y===43||y===45||y===46||Sn(y)?(a=1,f(y)):c(y)}function f(y){return y===58?(e.consume(y),a=0,A):(y===43||y===45||y===46||Sn(y))&&a++<32?(e.consume(y),f):(a=0,c(y))}function A(y){return y===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),n):y===null||y===32||y===60||bc(y)?i(y):(e.consume(y),A)}function c(y){return y===64?(e.consume(y),d):Th(y)?(e.consume(y),c):i(y)}function d(y){return Sn(y)?h(y):i(y)}function h(y){return y===46?(e.consume(y),a=0,d):y===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),n):v(y)}function v(y){if((y===45||Sn(y))&&a++<63){const k=y===45?v:h;return e.consume(y),k}return i(y)}}},Ws={partial:!0,tokenize:function(e,n,i){return function(o){return Xe(o)?st(e,a,"linePrefix")(o):a(o)};function a(o){return o===null||Me(o)?n(o):i(o)}}},hd={continuation:{tokenize:function(e,n,i){const a=this;return function(u){return Xe(u)?st(e,o,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):o(u)};function o(u){return e.attempt(hd,n,i)(u)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,n,i){const a=this;return function(u){if(u===62){const f=a.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),o}return i(u)};function o(u){return Xe(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(u))}}},gd={name:"characterEscape",tokenize:function(e,n,i){return function(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),a};function a(o){return Ih(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):i(o)}}},md={name:"characterReference",tokenize:function(e,n,i){const a=this;let o,u,f=0;return function(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),A};function A(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),o=31,u=Sn,d(h))}function c(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,u=Dh,d):(e.enter("characterReferenceValue"),o=7,u=wc,d(h))}function d(h){if(h===59&&f){const v=e.exit("characterReferenceValue");return u!==Sn||yc(a.sliceSerialize(v))?(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),n):i(h)}return u(h)&&f++<o?(e.consume(h),d):i(h)}}},vd={partial:!0,tokenize:function(e,n,i){const a=this;return function(u){return u===null?i(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o)};function o(u){return a.parser.lazy[a.now().line]?i(u):n(u)}}},yd={concrete:!0,name:"codeFenced",tokenize:function(e,n,i){const a=this,o={partial:!0,tokenize:function(M,U,j){let N=0;return W;function W($){return M.enter("lineEnding"),M.consume($),M.exit("lineEnding"),ee}function ee($){return M.enter("codeFencedFence"),Xe($)?st(M,G,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):G($)}function G($){return $===u?(M.enter("codeFencedFenceSequence"),Y($)):j($)}function Y($){return $===u?(N++,M.consume($),Y):N>=A?(M.exit("codeFencedFenceSequence"),Xe($)?st(M,Z,"whitespace")($):Z($)):j($)}function Z($){return $===null||Me($)?(M.exit("codeFencedFence"),U($)):j($)}}};let u,f=0,A=0;return function(M){return function(U){const j=a.events[a.events.length-1];return f=j&&j[1].type==="linePrefix"?j[2].sliceSerialize(j[1],!0).length:0,u=U,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(U)}(M)};function c(M){return M===u?(A++,e.consume(M),c):A<3?i(M):(e.exit("codeFencedFenceSequence"),Xe(M)?st(e,d,"whitespace")(M):d(M))}function d(M){return M===null||Me(M)?(e.exit("codeFencedFence"),a.interrupt?n(M):e.check(vd,k,Q)(M)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(M))}function h(M){return M===null||Me(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(M)):Xe(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),st(e,v,"whitespace")(M)):M===96&&M===u?i(M):(e.consume(M),h)}function v(M){return M===null||Me(M)?d(M):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(M))}function y(M){return M===null||Me(M)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(M)):M===96&&M===u?i(M):(e.consume(M),y)}function k(M){return e.attempt(o,Q,C)(M)}function C(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),R}function R(M){return f>0&&Xe(M)?st(e,E,"linePrefix",f+1)(M):E(M)}function E(M){return M===null||Me(M)?e.check(vd,k,Q)(M):(e.enter("codeFlowValue"),T(M))}function T(M){return M===null||Me(M)?(e.exit("codeFlowValue"),E(M)):(e.consume(M),T)}function Q(M){return e.exit("codeFenced"),n(M)}}},kc={name:"codeIndented",tokenize:function(e,n,i){const a=this;return function(c){return e.enter("codeIndented"),st(e,o,"linePrefix",5)(c)};function o(c){const d=a.events[a.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?u(c):i(c)}function u(c){return c===null?A(c):Me(c)?e.attempt(Lh,u,A)(c):(e.enter("codeFlowValue"),f(c))}function f(c){return c===null||Me(c)?(e.exit("codeFlowValue"),u(c)):(e.consume(c),f)}function A(c){return e.exit("codeIndented"),n(c)}}},Lh={partial:!0,tokenize:function(e,n,i){const a=this;return o;function o(f){return a.parser.lazy[a.now().line]?i(f):Me(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),o):st(e,u,"linePrefix",5)(f)}function u(f){const A=a.events[a.events.length-1];return A&&A[1].type==="linePrefix"&&A[2].sliceSerialize(A[1],!0).length>=4?n(f):Me(f)?o(f):i(f)}}},Fh={name:"codeText",previous:function(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"},resolve:function(e){let n,i,a=e.length-4,o=3;if(!(e[o][1].type!=="lineEnding"&&e[o][1].type!=="space"||e[a][1].type!=="lineEnding"&&e[a][1].type!=="space")){for(n=o;++n<a;)if(e[n][1].type==="codeTextData"){e[o][1].type="codeTextPadding",e[a][1].type="codeTextPadding",o+=2,a-=2;break}}for(n=o-1,a++;++n<=a;)i===void 0?n!==a&&e[n][1].type!=="lineEnding"&&(i=n):(n===a||e[n][1].type==="lineEnding")&&(e[i][1].type="codeTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),a-=n-i-2,n=i+2),i=void 0);return e},tokenize:function(e,n,i){let a,o,u=0;return function(h){return e.enter("codeText"),e.enter("codeTextSequence"),f(h)};function f(h){return h===96?(e.consume(h),u++,f):(e.exit("codeTextSequence"),A(h))}function A(h){return h===null?i(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),A):h===96?(o=e.enter("codeTextSequence"),a=0,d(h)):Me(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),A):(e.enter("codeTextData"),c(h))}function c(h){return h===null||h===32||h===96||Me(h)?(e.exit("codeTextData"),A(h)):(e.consume(h),c)}function d(h){return h===96?(e.consume(h),a++,d):a===u?(e.exit("codeTextSequence"),e.exit("codeText"),n(h)):(o.type="codeTextData",c(h))}}};class Qh{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,i){const a=i??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(n,a):n>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(n,i,a){const o=i||0;this.setCursor(Math.trunc(n));const u=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return a&&Oi(this.left,a),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Oi(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Oi(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const i=this.left.splice(n,Number.POSITIVE_INFINITY);Oi(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Oi(this.left,i.reverse())}}}function Oi(e,n){let i=0;if(n.length<1e4)e.push(...n);else for(;i<n.length;)e.push(...n.slice(i,i+1e4)),i+=1e4}function bd(e){const n={};let i,a,o,u,f,A,c,d=-1;const h=new Qh(e);for(;++d<h.length;){for(;d in n;)d=n[d];if(i=h.get(d),d&&i[1].type==="chunkFlow"&&h.get(d-1)[1].type==="listItemPrefix"&&(A=i[1]._tokenizer.events,o=0,o<A.length&&A[o][1].type==="lineEndingBlank"&&(o+=2),o<A.length&&A[o][1].type==="content"))for(;++o<A.length&&A[o][1].type!=="content";)A[o][1].type==="chunkText"&&(A[o][1]._isInFirstContentOfListItem=!0,o++);if(i[0]==="enter")i[1].contentType&&(Object.assign(n,Hh(h,d)),d=n[d],c=!0);else if(i[1]._container){for(o=d,a=void 0;o--;)if(u=h.get(o),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(a&&(h.get(a)[1].type="lineEndingBlank"),u[1].type="lineEnding",a=o);else if(u[1].type!=="linePrefix")break;a&&(i[1].end={...h.get(a)[1].start},f=h.slice(a,d),f.unshift(i),h.splice(a,d-a+1,f))}}return ur(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!c}function Hh(e,n){const i=e.get(n)[1],a=e.get(n)[2];let o=n-1;const u=[],f=i._tokenizer||a.parser[i.contentType](i.start),A=f.events,c=[],d={};let h,v,y=-1,k=i,C=0,R=0;const E=[R];for(;k;){for(;e.get(++o)[1]!==k;);u.push(o),k._tokenizer||(h=a.sliceStream(k),k.next||h.push(null),v&&f.defineSkip(k.start),k._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(h),k._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),v=k,k=k.next}for(k=i;++y<A.length;)A[y][0]==="exit"&&A[y-1][0]==="enter"&&A[y][1].type===A[y-1][1].type&&A[y][1].start.line!==A[y][1].end.line&&(R=y+1,E.push(R),k._tokenizer=void 0,k.previous=void 0,k=k.next);for(f.events=[],k?(k._tokenizer=void 0,k.previous=void 0):E.pop(),y=E.length;y--;){const T=A.slice(E[y],E[y+1]),Q=u.pop();c.push([Q,Q+T.length-1]),e.splice(Q,2,T)}for(c.reverse(),y=-1;++y<c.length;)d[C+c[y][0]]=C+c[y][1],C+=c[y][1]-c[y][0]-1;return d}const Nh={resolve:function(e){return bd(e),e},tokenize:function(e,n){let i;return function(f){return e.enter("content"),i=e.enter("chunkContent",{contentType:"content"}),a(f)};function a(f){return f===null?o(f):Me(f)?e.check(Uh,u,o)(f):(e.consume(f),a)}function o(f){return e.exit("chunkContent"),e.exit("content"),n(f)}function u(f){return e.consume(f),e.exit("chunkContent"),i.next=e.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,a}}},Uh={partial:!0,tokenize:function(e,n,i){const a=this;return function(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),st(e,o,"linePrefix")};function o(u){if(u===null||Me(u))return i(u);const f=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?n(u):e.interrupt(a.parser.constructs.flow,i,n)(u)}}};function wd(e,n,i,a,o,u,f,A,c){const d=c||Number.POSITIVE_INFINITY;let h=0;return function(E){return E===60?(e.enter(a),e.enter(o),e.enter(u),e.consume(E),e.exit(u),v):E===null||E===32||E===41||bc(E)?i(E):(e.enter(a),e.enter(f),e.enter(A),e.enter("chunkString",{contentType:"string"}),C(E))};function v(E){return E===62?(e.enter(u),e.consume(E),e.exit(u),e.exit(o),e.exit(a),n):(e.enter(A),e.enter("chunkString",{contentType:"string"}),y(E))}function y(E){return E===62?(e.exit("chunkString"),e.exit(A),v(E)):E===null||E===60||Me(E)?i(E):(e.consume(E),E===92?k:y)}function k(E){return E===60||E===62||E===92?(e.consume(E),y):y(E)}function C(E){return h||E!==null&&E!==41&&!ln(E)?h<d&&E===40?(e.consume(E),h++,C):E===41?(e.consume(E),h--,C):E===null||E===32||E===40||bc(E)?i(E):(e.consume(E),E===92?R:C):(e.exit("chunkString"),e.exit(A),e.exit(f),e.exit(a),n(E))}function R(E){return E===40||E===41||E===92?(e.consume(E),C):C(E)}}function xd(e,n,i,a,o,u){const f=this;let A,c=0;return function(y){return e.enter(a),e.enter(o),e.consume(y),e.exit(o),e.enter(u),d};function d(y){return c>999||y===null||y===91||y===93&&!A||y===94&&!c&&"_hiddenFootnoteSupport"in f.parser.constructs?i(y):y===93?(e.exit(u),e.enter(o),e.consume(y),e.exit(o),e.exit(a),n):Me(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===null||y===91||y===93||Me(y)||c++>999?(e.exit("chunkString"),d(y)):(e.consume(y),A||(A=!Xe(y)),y===92?v:h)}function v(y){return y===91||y===92||y===93?(e.consume(y),c++,h):h(y)}}function Sd(e,n,i,a,o,u){let f;return function(v){return v===34||v===39||v===40?(e.enter(a),e.enter(o),e.consume(v),e.exit(o),f=v===40?41:v,A):i(v)};function A(v){return v===f?(e.enter(o),e.consume(v),e.exit(o),e.exit(a),n):(e.enter(u),c(v))}function c(v){return v===f?(e.exit(u),A(f)):v===null?i(v):Me(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),st(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(v))}function d(v){return v===f||v===null||Me(v)?(e.exit("chunkString"),c(v)):(e.consume(v),v===92?h:d)}function h(v){return v===f||v===92?(e.consume(v),d):d(v)}}function _i(e,n){let i;return function a(o){return Me(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i=!0,a):Xe(o)?st(e,a,i?"linePrefix":"lineSuffix")(o):n(o)}}const zh={name:"definition",tokenize:function(e,n,i){const a=this;let o;return function(v){return e.enter("definition"),function(y){return xd.call(a,e,u,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}(v)};function u(v){return o=Ca(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),f):i(v)}function f(v){return ln(v)?_i(e,A)(v):A(v)}function A(v){return wd(e,c,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function c(v){return e.attempt(jh,d,d)(v)}function d(v){return Xe(v)?st(e,h,"whitespace")(v):h(v)}function h(v){return v===null||Me(v)?(e.exit("definition"),a.parser.defined.push(o),n(v)):i(v)}}},jh={partial:!0,tokenize:function(e,n,i){return function(f){return ln(f)?_i(e,a)(f):i(f)};function a(f){return Sd(e,o,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function o(f){return Xe(f)?st(e,u,"whitespace")(f):u(f)}function u(f){return f===null||Me(f)?n(f):i(f)}}},Wh={name:"hardBreakEscape",tokenize:function(e,n,i){return function(o){return e.enter("hardBreakEscape"),e.consume(o),a};function a(o){return Me(o)?(e.exit("hardBreakEscape"),n(o)):i(o)}}},Yh={name:"headingAtx",resolve:function(e,n){let i,a,o=e.length-2,u=3;return e[u][1].type==="whitespace"&&(u+=2),o-2>u&&e[o][1].type==="whitespace"&&(o-=2),e[o][1].type==="atxHeadingSequence"&&(u===o-1||o-4>u&&e[o-2][1].type==="whitespace")&&(o-=u+1===o?2:4),o>u&&(i={type:"atxHeadingText",start:e[u][1].start,end:e[o][1].end},a={type:"chunkText",start:e[u][1].start,end:e[o][1].end,contentType:"text"},ur(e,u,o-u+1,[["enter",i,n],["enter",a,n],["exit",a,n],["exit",i,n]])),e},tokenize:function(e,n,i){let a=0;return function(c){return e.enter("atxHeading"),function(d){return e.enter("atxHeadingSequence"),o(d)}(c)};function o(c){return c===35&&a++<6?(e.consume(c),o):c===null||ln(c)?(e.exit("atxHeadingSequence"),u(c)):i(c)}function u(c){return c===35?(e.enter("atxHeadingSequence"),f(c)):c===null||Me(c)?(e.exit("atxHeading"),n(c)):Xe(c)?st(e,u,"whitespace")(c):(e.enter("atxHeadingText"),A(c))}function f(c){return c===35?(e.consume(c),f):(e.exit("atxHeadingSequence"),u(c))}function A(c){return c===null||c===35||ln(c)?(e.exit("atxHeadingText"),u(c)):(e.consume(c),A)}}},Gh=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],kd=["pre","script","style","textarea"],Vh={concrete:!0,name:"htmlFlow",resolveTo:function(e){let n=e.length;for(;n--&&(e[n][0]!=="enter"||e[n][1].type!=="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e},tokenize:function(e,n,i){const a=this;let o,u,f,A,c;return function(F){return function(ve){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(ve),d}(F)};function d(F){return F===33?(e.consume(F),h):F===47?(e.consume(F),u=!0,k):F===63?(e.consume(F),o=3,a.interrupt?n:me):Ar(F)?(e.consume(F),f=String.fromCharCode(F),C):i(F)}function h(F){return F===45?(e.consume(F),o=2,v):F===91?(e.consume(F),o=5,A=0,y):Ar(F)?(e.consume(F),o=4,a.interrupt?n:me):i(F)}function v(F){return F===45?(e.consume(F),a.interrupt?n:me):i(F)}function y(F){return F==="CDATA[".charCodeAt(A++)?(e.consume(F),A===6?a.interrupt?n:Y:y):i(F)}function k(F){return Ar(F)?(e.consume(F),f=String.fromCharCode(F),C):i(F)}function C(F){if(F===null||F===47||F===62||ln(F)){const ve=F===47,fe=f.toLowerCase();return ve||u||!kd.includes(fe)?Gh.includes(f.toLowerCase())?(o=6,ve?(e.consume(F),R):a.interrupt?n(F):Y(F)):(o=7,a.interrupt&&!a.parser.lazy[a.now().line]?i(F):u?E(F):T(F)):(o=1,a.interrupt?n(F):Y(F))}return F===45||Sn(F)?(e.consume(F),f+=String.fromCharCode(F),C):i(F)}function R(F){return F===62?(e.consume(F),a.interrupt?n:Y):i(F)}function E(F){return Xe(F)?(e.consume(F),E):ee(F)}function T(F){return F===47?(e.consume(F),ee):F===58||F===95||Ar(F)?(e.consume(F),Q):Xe(F)?(e.consume(F),T):ee(F)}function Q(F){return F===45||F===46||F===58||F===95||Sn(F)?(e.consume(F),Q):M(F)}function M(F){return F===61?(e.consume(F),U):Xe(F)?(e.consume(F),M):T(F)}function U(F){return F===null||F===60||F===61||F===62||F===96?i(F):F===34||F===39?(e.consume(F),c=F,j):Xe(F)?(e.consume(F),U):N(F)}function j(F){return F===c?(e.consume(F),c=null,W):F===null||Me(F)?i(F):(e.consume(F),j)}function N(F){return F===null||F===34||F===39||F===47||F===60||F===61||F===62||F===96||ln(F)?M(F):(e.consume(F),N)}function W(F){return F===47||F===62||Xe(F)?T(F):i(F)}function ee(F){return F===62?(e.consume(F),G):i(F)}function G(F){return F===null||Me(F)?Y(F):Xe(F)?(e.consume(F),G):i(F)}function Y(F){return F===45&&o===2?(e.consume(F),ie):F===60&&o===1?(e.consume(F),le):F===62&&o===4?(e.consume(F),L):F===63&&o===3?(e.consume(F),me):F===93&&o===5?(e.consume(F),he):!Me(F)||o!==6&&o!==7?F===null||Me(F)?(e.exit("htmlFlowData"),Z(F)):(e.consume(F),Y):(e.exit("htmlFlowData"),e.check(Xh,Be,Z)(F))}function Z(F){return e.check(Jh,$,Be)(F)}function $(F){return e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),ae}function ae(F){return F===null||Me(F)?Z(F):(e.enter("htmlFlowData"),Y(F))}function ie(F){return F===45?(e.consume(F),me):Y(F)}function le(F){return F===47?(e.consume(F),f="",be):Y(F)}function be(F){if(F===62){const ve=f.toLowerCase();return kd.includes(ve)?(e.consume(F),L):Y(F)}return Ar(F)&&f.length<8?(e.consume(F),f+=String.fromCharCode(F),be):Y(F)}function he(F){return F===93?(e.consume(F),me):Y(F)}function me(F){return F===62?(e.consume(F),L):F===45&&o===2?(e.consume(F),me):Y(F)}function L(F){return F===null||Me(F)?(e.exit("htmlFlowData"),Be(F)):(e.consume(F),L)}function Be(F){return e.exit("htmlFlow"),n(F)}}},Xh={partial:!0,tokenize:function(e,n,i){return function(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Ws,n,i)}}},Jh={partial:!0,tokenize:function(e,n,i){const a=this;return function(u){return Me(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o):i(u)};function o(u){return a.parser.lazy[a.now().line]?i(u):n(u)}}},Kh={name:"htmlText",tokenize:function(e,n,i){const a=this;let o,u,f;return function(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),A};function A(L){return L===33?(e.consume(L),c):L===47?(e.consume(L),U):L===63?(e.consume(L),Q):Ar(L)?(e.consume(L),W):i(L)}function c(L){return L===45?(e.consume(L),d):L===91?(e.consume(L),u=0,k):Ar(L)?(e.consume(L),T):i(L)}function d(L){return L===45?(e.consume(L),y):i(L)}function h(L){return L===null?i(L):L===45?(e.consume(L),v):Me(L)?(f=h,be(L)):(e.consume(L),h)}function v(L){return L===45?(e.consume(L),y):h(L)}function y(L){return L===62?le(L):L===45?v(L):h(L)}function k(L){return L==="CDATA[".charCodeAt(u++)?(e.consume(L),u===6?C:k):i(L)}function C(L){return L===null?i(L):L===93?(e.consume(L),R):Me(L)?(f=C,be(L)):(e.consume(L),C)}function R(L){return L===93?(e.consume(L),E):C(L)}function E(L){return L===62?le(L):L===93?(e.consume(L),E):C(L)}function T(L){return L===null||L===62?le(L):Me(L)?(f=T,be(L)):(e.consume(L),T)}function Q(L){return L===null?i(L):L===63?(e.consume(L),M):Me(L)?(f=Q,be(L)):(e.consume(L),Q)}function M(L){return L===62?le(L):Q(L)}function U(L){return Ar(L)?(e.consume(L),j):i(L)}function j(L){return L===45||Sn(L)?(e.consume(L),j):N(L)}function N(L){return Me(L)?(f=N,be(L)):Xe(L)?(e.consume(L),N):le(L)}function W(L){return L===45||Sn(L)?(e.consume(L),W):L===47||L===62||ln(L)?ee(L):i(L)}function ee(L){return L===47?(e.consume(L),le):L===58||L===95||Ar(L)?(e.consume(L),G):Me(L)?(f=ee,be(L)):Xe(L)?(e.consume(L),ee):le(L)}function G(L){return L===45||L===46||L===58||L===95||Sn(L)?(e.consume(L),G):Y(L)}function Y(L){return L===61?(e.consume(L),Z):Me(L)?(f=Y,be(L)):Xe(L)?(e.consume(L),Y):ee(L)}function Z(L){return L===null||L===60||L===61||L===62||L===96?i(L):L===34||L===39?(e.consume(L),o=L,$):Me(L)?(f=Z,be(L)):Xe(L)?(e.consume(L),Z):(e.consume(L),ae)}function $(L){return L===o?(e.consume(L),o=void 0,ie):L===null?i(L):Me(L)?(f=$,be(L)):(e.consume(L),$)}function ae(L){return L===null||L===34||L===39||L===60||L===61||L===96?i(L):L===47||L===62||ln(L)?ee(L):(e.consume(L),ae)}function ie(L){return L===47||L===62||ln(L)?ee(L):i(L)}function le(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),n):i(L)}function be(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),he}function he(L){return Xe(L)?st(e,me,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):me(L)}function me(L){return e.enter("htmlTextData"),f(L)}}},Ec={name:"labelEnd",resolveAll:function(e){let n=-1;const i=[];for(;++n<e.length;){const a=e[n][1];if(i.push(e[n]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const o=a.type==="labelImage"?4:2;a.type="data",n+=o}}return e.length!==i.length&&ur(e,0,e.length,i),e},resolveTo:function(e,n){let i,a,o,u,f=e.length,A=0;for(;f--;)if(i=e[f][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[f][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[f][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=f,i.type!=="labelLink")){A=2;break}}else i.type==="labelEnd"&&(o=f);const c={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},d={type:"label",start:{...e[a][1].start},end:{...e[o][1].end}},h={type:"labelText",start:{...e[a+A+2][1].end},end:{...e[o-2][1].start}};return u=[["enter",c,n],["enter",d,n]],u=On(u,e.slice(a+1,a+A+3)),u=On(u,[["enter",h,n]]),u=On(u,xc(n.parser.constructs.insideSpan.null,e.slice(a+A+4,o-3),n)),u=On(u,[["exit",h,n],e[o-2],e[o-1],["exit",d,n]]),u=On(u,e.slice(o+1)),u=On(u,[["exit",c,n]]),ur(e,a,e.length,u),e},tokenize:function(e,n,i){const a=this;let o,u,f=a.events.length;for(;f--;)if((a.events[f][1].type==="labelImage"||a.events[f][1].type==="labelLink")&&!a.events[f][1]._balanced){o=a.events[f][1];break}return function(v){return o?o._inactive?h(v):(u=a.parser.defined.includes(Ca(a.sliceSerialize({start:o.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(v),e.exit("labelMarker"),e.exit("labelEnd"),A):i(v)};function A(v){return v===40?e.attempt(qh,d,u?d:h)(v):v===91?e.attempt($h,d,u?c:h)(v):u?d(v):h(v)}function c(v){return e.attempt(Zh,d,h)(v)}function d(v){return n(v)}function h(v){return o._balanced=!0,i(v)}}},qh={tokenize:function(e,n,i){return function(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),a};function a(h){return ln(h)?_i(e,o)(h):o(h)}function o(h){return h===41?d(h):wd(e,u,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function u(h){return ln(h)?_i(e,A)(h):d(h)}function f(h){return i(h)}function A(h){return h===34||h===39||h===40?Sd(e,c,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):d(h)}function c(h){return ln(h)?_i(e,d)(h):d(h)}function d(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),n):i(h)}}},$h={tokenize:function(e,n,i){const a=this;return function(f){return xd.call(a,e,o,u,"reference","referenceMarker","referenceString")(f)};function o(f){return a.parser.defined.includes(Ca(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?n(f):i(f)}function u(f){return i(f)}}},Zh={tokenize:function(e,n,i){return function(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),a};function a(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),n):i(o)}}},eg={name:"labelStartImage",resolveAll:Ec.resolveAll,tokenize:function(e,n,i){const a=this;return function(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),o};function o(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),u):i(f)}function u(f){return f===94&&"_hiddenFootnoteSupport"in a.parser.constructs?i(f):n(f)}}},tg={name:"labelStartLink",resolveAll:Ec.resolveAll,tokenize:function(e,n,i){const a=this;return function(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),o};function o(u){return u===94&&"_hiddenFootnoteSupport"in a.parser.constructs?i(u):n(u)}}},Cc={name:"lineEnding",tokenize:function(e,n){return function(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),st(e,n,"linePrefix")}}},Ys={name:"thematicBreak",tokenize:function(e,n,i){let a,o=0;return function(A){return e.enter("thematicBreak"),function(c){return a=c,u(c)}(A)};function u(A){return A===a?(e.enter("thematicBreakSequence"),f(A)):o>=3&&(A===null||Me(A))?(e.exit("thematicBreak"),n(A)):i(A)}function f(A){return A===a?(e.consume(A),o++,f):(e.exit("thematicBreakSequence"),Xe(A)?st(e,u,"whitespace")(A):u(A))}}},cn={continuation:{tokenize:function(e,n,i){const a=this;return a.containerState._closeFlow=void 0,e.check(Ws,function(u){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,st(e,n,"listItemIndent",a.containerState.size+1)(u)},function(u){return a.containerState.furtherBlankLines||!Xe(u)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,o(u)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(rg,n,o)(u))});function o(u){return a.containerState._closeFlow=!0,a.interrupt=void 0,st(e,e.attempt(cn,n,i),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,n,i){const a=this,o=a.events[a.events.length-1];let u=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,f=0;return function(y){const k=a.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(k==="listUnordered"?!a.containerState.marker||y===a.containerState.marker:wc(y)){if(a.containerState.type||(a.containerState.type=k,e.enter(k,{_container:!0})),k==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(Ys,i,c)(y):c(y);if(!a.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),A(y)}return i(y)};function A(y){return wc(y)&&++f<10?(e.consume(y),A):(!a.interrupt||f<2)&&(a.containerState.marker?y===a.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),c(y)):i(y)}function c(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||y,e.check(Ws,a.interrupt?i:d,e.attempt(ng,v,h))}function d(y){return a.containerState.initialBlankLine=!0,u++,v(y)}function h(y){return Xe(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),v):i(y)}function v(y){return a.containerState.size=u+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(y)}}},ng={partial:!0,tokenize:function(e,n,i){const a=this;return st(e,function(o){const u=a.events[a.events.length-1];return!Xe(o)&&u&&u[1].type==="listItemPrefixWhitespace"?n(o):i(o)},"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},rg={partial:!0,tokenize:function(e,n,i){const a=this;return st(e,function(o){const u=a.events[a.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===a.containerState.size?n(o):i(o)},"listItemIndent",a.containerState.size+1)}},Ed={name:"setextUnderline",resolveTo:function(e,n){let i,a,o,u=e.length;for(;u--;)if(e[u][0]==="enter"){if(e[u][1].type==="content"){i=u;break}e[u][1].type==="paragraph"&&(a=u)}else e[u][1].type==="content"&&e.splice(u,1),!o&&e[u][1].type==="definition"&&(o=u);const f={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",o?(e.splice(a,0,["enter",f,n]),e.splice(o+1,0,["exit",e[i][1],n]),e[i][1].end={...e[o][1].end}):e[i][1]=f,e.push(["exit",f,n]),e},tokenize:function(e,n,i){const a=this;let o;return function(A){let c,d=a.events.length;for(;d--;)if(a.events[d][1].type!=="lineEnding"&&a.events[d][1].type!=="linePrefix"&&a.events[d][1].type!=="content"){c=a.events[d][1].type==="paragraph";break}return a.parser.lazy[a.now().line]||!a.interrupt&&!c?i(A):(e.enter("setextHeadingLine"),o=A,function(h){return e.enter("setextHeadingLineSequence"),u(h)}(A))};function u(A){return A===o?(e.consume(A),u):(e.exit("setextHeadingLineSequence"),Xe(A)?st(e,f,"lineSuffix")(A):f(A))}function f(A){return A===null||Me(A)?(e.exit("setextHeadingLine"),n(A)):i(A)}}},og={tokenize:function(e){const n=this,i=e.attempt(Ws,function(o){return o===null?void e.consume(o):(e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),n.currentConstruct=void 0,i)},e.attempt(this.parser.constructs.flowInitial,a,st(e,e.attempt(this.parser.constructs.flow,a,e.attempt(Nh,a)),"linePrefix")));return i;function a(o){if(o!==null)return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n.currentConstruct=void 0,i;e.consume(o)}}},ag={resolveAll:Pd()},ig=Cd("string"),sg=Cd("text");function Cd(e){return{resolveAll:Pd(e==="text"?lg:void 0),tokenize:function(n){const i=this,a=this.parser.constructs[e],o=n.attempt(a,u,f);return u;function u(d){return c(d)?o(d):f(d)}function f(d){if(d!==null)return n.enter("data"),n.consume(d),A;n.consume(d)}function A(d){return c(d)?(n.exit("data"),o(d)):(n.consume(d),A)}function c(d){if(d===null)return!0;const h=a[d];let v=-1;if(h)for(;++v<h.length;){const y=h[v];if(!y.previous||y.previous.call(i,i.previous))return!0}return!1}}}}function Pd(e){return function(n,i){let a,o=-1;for(;++o<=n.length;)a===void 0?n[o]&&n[o][1].type==="data"&&(a=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==a+2&&(n[a][1].end=n[o-1][1].end,n.splice(a+2,o-a-2),o=a+2),a=void 0);return e?e(n,i):n}}function lg(e,n){let i=0;for(;++i<=e.length;)if((i===e.length||e[i][1].type==="lineEnding")&&e[i-1][1].type==="data"){const a=e[i-1][1],o=n.sliceStream(a);let u,f=o.length,A=-1,c=0;for(;f--;){const d=o[f];if(typeof d=="string"){for(A=d.length;d.charCodeAt(A-1)===32;)c++,A--;if(A)break;A=-1}else if(d===-2)u=!0,c++;else if(d!==-1){f++;break}}if(c){const d={type:i===e.length||u||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:f?A:a.start._bufferIndex+A,_index:a.start._index+f,line:a.end.line,column:a.end.column-c,offset:a.end.offset-c},end:{...a.end}};a.end={...d.start},a.start.offset===a.end.offset?Object.assign(a,d):(e.splice(i,0,["enter",d,n],["exit",d,n]),i+=2)}i++}return e}const cg={42:cn,43:cn,45:cn,48:cn,49:cn,50:cn,51:cn,52:cn,53:cn,54:cn,55:cn,56:cn,57:cn,62:hd},ug={91:zh},Ag={[-2]:kc,[-1]:kc,32:kc},dg={35:Yh,42:Ys,45:[Ed,Ys],60:Vh,61:Ed,95:Ys,96:yd,126:yd},fg={38:md,92:gd},pg={[-5]:Cc,[-4]:Cc,[-3]:Cc,33:eg,38:md,42:Sc,60:[_h,Kh],91:tg,92:[Wh,gd],93:Ec,95:Sc,96:Fh},hg={null:[Sc,ag]},gg=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:ug,disable:{null:[]},document:cg,flow:dg,flowInitial:Ag,insideSpan:hg,string:fg,text:pg},Symbol.toStringTag,{value:"Module"}));function mg(e,n,i){let a={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const o={},u=[];let f=[],A=[];const c={attempt:R(function(Q,M){E(Q,M.from)}),check:R(C),consume:function(Q){Me(Q)?(a.line++,a.column=1,a.offset+=Q===-3?2:1,T()):Q!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===f[a._index].length&&(a._bufferIndex=-1,a._index++)),d.previous=Q},enter:function(Q,M){const U=M||{};return U.type=Q,U.start=y(),d.events.push(["enter",U,d]),A.push(U),U},exit:function(Q){const M=A.pop();return M.end=y(),d.events.push(["exit",M,d]),M},interrupt:R(C,{interrupt:!0})},d={code:null,containerState:{},defineSkip:function(Q){o[Q.line]=Q.column,T()},events:[],now:y,parser:e,previous:null,sliceSerialize:function(Q,M){return function(U,j){let N=-1;const W=[];let ee;for(;++N<U.length;){const G=U[N];let Y;if(typeof G=="string")Y=G;else switch(G){case-5:Y="\r";break;case-4:Y=`
124
+ `),a=a.replace(/\n/g,"<br/>"),a}createContainer(e){var n;const i=(typeof global<"u"&&global.INTERWEAVE_SSR_POLYFILL||Gp)();if(!i)return;const a=(n=this.props.containerTagName)!==null&&n!==void 0?n:"body",o=a==="body"||a==="fragment"?i.body:i.createElement(a);if(e.match(jp)){if(process.env.NODE_ENV!=="production")throw new Error("HTML documents as Interweave content are not supported.")}else o.innerHTML=this.convertLineBreaks(this.props.escapeHtml?Np(e):e);return o}extractAttributes(e){const{allowAttributes:n}=this.props,i={};let a=0;return e.nodeType===1&&e.attributes&&([...e.attributes].forEach(o=>{const{name:u,value:f}=o,A=u.toLowerCase(),c=BA[A]||BA[u];if(!this.isSafe(e)||!A.match(Wp)&&(!n&&(!c||c===2)||A.startsWith("on")||f.replace(/(\s|\0|&#x0([9AD]);)/,"").match(/(javascript|vbscript|livescript|xss):/i)))return;let d=A==="style"?this.extractStyleAttribute(e):f;c===4?d=!0:c===3?d=Number.parseFloat(String(d)):c!==5&&(d=String(d)),i[Fp[A]||A]=this.applyAttributeFilters(A,d),a+=1}),a!==0)?i:null}extractStyleAttribute(e){const n={};return Array.from(e.style).forEach(i=>{const a=e.style[i];(typeof a=="string"||typeof a=="number")&&(n[i.replace(/-([a-z])/g,(o,u)=>String(u).toUpperCase())]=a)}),n}getTagConfig(e){const n={children:[],content:0,invalid:[],parent:[],self:!0,tagName:"",type:0,void:!1};return ic[e]?{...n,...ic[e],tagName:e}:n}isSafe(e){if(typeof HTMLAnchorElement<"u"&&e instanceof HTMLAnchorElement){const n=e.getAttribute("href");if(n!=null&&n.startsWith("#"))return!0;const i=e.protocol.toLowerCase();return i===":"||i==="http:"||i==="https:"||i==="mailto:"||i==="tel:"}return!0}isTagAllowed(e){return!this.banned.has(e)&&!this.blocked.has(e)&&(this.props.allowElements||this.allowed.has(e))}parse(){return this.container?this.parseNode(this.container,this.getTagConfig(this.container.nodeName.toLowerCase())):[]}parseNode(e,n){const{noHtml:i,noHtmlExceptMatchers:a,allowElements:o,transform:u,transformOnlyAllowList:f}=this.props;let A=[],c="";return[...e.childNodes].forEach(d=>{if(d.nodeType===1){const v=d.nodeName.toLowerCase(),y=this.getTagConfig(v);c&&(A.push(c),c="");const k=this.applyNodeFilters(v,d);if(!k)return;let C;if(u&&(!f||this.isTagAllowed(v))){this.keyIndex+=1;const R=this.keyIndex;C=this.parseNode(k,y);const E=u(k,C,y);if(E===null)return;if(typeof E<"u")return void A.push(B.cloneElement(E,{key:R}));this.keyIndex=R-1}if(this.banned.has(v))return;if(i||a&&v!=="br"||!this.isTagAllowed(v)||!o&&!this.canRenderChild(n,y))A=[...A,...this.parseNode(k,y.tagName?y:n)];else{var h;this.keyIndex+=1;const R=this.extractAttributes(k),E={tagName:v};R&&(E.attributes=R),y.void&&(E.selfClose=y.void),A.push(B.createElement(MA,{...E,key:this.keyIndex},(h=C)!==null&&h!==void 0?h:this.parseNode(k,y)))}}else if(d.nodeType===3){const v=i&&!a?d.textContent:this.applyMatchers(d.textContent||"",n);Array.isArray(v)?A=[...A,...v]:c+=v}}),c&&A.push(c),A}replaceTokens(e,n){if(!e.includes("{{{"))return e;const i=[];let a=e,o=null;for(;o=a.match(Yp);){const[u,f]=o,A=o.index,c=u.includes("/");if(process.env.NODE_ENV!=="production"&&!n[f])throw new Error(`Token "${f}" found but no matching element to replace with.`);A>0&&(i.push(a.slice(0,A)),a=a.slice(A));const{children:d,matcher:h,props:v}=n[f];let y;if(c)y=u.length,i.push(h.createElement(d,v));else{const k=a.match(new RegExp(`{{{/${f}}}}`));if(process.env.NODE_ENV!=="production"&&!k)throw new Error(`Closing token missing for interpolated element "${f}".`);y=k.index+k[0].length,i.push(h.createElement(this.replaceTokens(a.slice(u.length,k.index),n),v))}a=a.slice(y)}return a.length>0&&i.push(a),i.length===0?"":i.length===1&&typeof i[0]=="string"?i[0]:i}};function Vp(e){var n;const{attributes:i,className:a,containerTagName:o,content:u,emptyContent:f,parsedContent:A,tagName:c,noWrap:d}=e,h=(n=o??c)!==null&&n!==void 0?n:"span",v=h==="fragment"||d;let y;if(A)y=A;else{const k=new _A(u??"",e).parse();k.length>0&&(y=k)}return y||(y=f),v?B.createElement(B.Fragment,null,y):B.createElement(MA,{attributes:i,className:a,tagName:h},y)}function Xp(e){const{attributes:n,className:i,content:a="",disableFilters:o=!1,disableMatchers:u=!1,emptyContent:f=null,filters:A=[],matchers:c=[],onAfterParse:d=null,onBeforeParse:h=null,tagName:v="span",noWrap:y=!1,...k}=e,C=u?[]:c,R=o?[]:A,E=h?[h]:[],T=d?[d]:[];C.forEach(j=>{j.onBeforeParse&&E.push(j.onBeforeParse.bind(j)),j.onAfterParse&&T.push(j.onAfterParse.bind(j))});const Q=E.reduce((j,N)=>{const W=N(j,e);if(process.env.NODE_ENV!=="production"&&typeof W!="string")throw new TypeError("Interweave `onBeforeParse` must return a valid HTML string.");return W},a??""),M=new _A(Q,k,C,R),U=T.reduce((j,N)=>{const W=N(j,e);if(process.env.NODE_ENV!=="production"&&!Array.isArray(W))throw new TypeError("Interweave `onAfterParse` must return an array of strings and React elements.");return W},M.parse());return B.createElement(Vp,{attributes:n,className:i,containerTagName:e.containerTagName,emptyContent:f,noWrap:y,parsedContent:U.length===0?void 0:U,tagName:v})}const Jp=({children:e})=>z.jsx("div",{style:{whiteSpace:"normal"},children:z.jsx(Xp,{content:typeof e=="string"?e:""})}),qp={autoConfig:!0},LA=(e,n,i)=>{var a;if(!e.detail.currPath)return!1;const o=n[e.detail.currPath];return!!o&&(((a=o.renderHtml)==null?void 0:a.map(u=>u.toUpperCase()).includes(i))??!1)},Kp=e=>{const n=[];let i="",a=!1;for(let o=0;o<e.length;o++){const u=e[o];u==="<"?a?(n.push(i),i=u):(a=!0,i=u):u===">"?(i+=u,n.push(i),i="",a=!1):a?i+=u:n.push(u)}return i!==""&&n.push(i),n},$p=e=>{const{getFlow:n}=Us(),{messages:i,replaceMessages:a}=Ii(),{settings:o}=TA(),{hasChatHistoryLoaded:u}=IA(),f={...e,...qp},A=f.htmlComponent?f.htmlComponent:Jp;B.useEffect(()=>{var h,v;if(u){const y=[...i];for(let k=0;k<y.length&&k<(((h=o.chatHistory)==null?void 0:h.maxEntries)??30);k++){const C=y[k];(v=C.tags)!=null&&v.includes("rcb-html-renderer-plugin:parsed")&&(C.contentWrapper=A)}a(y)}},[u]);const c=async h=>{var v;const y=(v=h.data.message)==null?void 0:v.sender.toUpperCase();typeof h.data.message.content=="string"&&LA(h,n(),y)&&(h.type==="rcb-start-simulate-stream-message"&&(h.data.simulateStreamChunker=Kp),h.data.message.contentWrapper=A,h.data.message.tags||(h.data.message.tags=[]),h.data.message.tags.push("rcb-html-renderer-plugin:parsed"))};Mn(we.PRE_INJECT_MESSAGE,c),Mn(we.CHUNK_STREAM_MESSAGE,c),Mn(we.START_STREAM_MESSAGE,c),Mn(we.START_SIMULATE_STREAM_MESSAGE,c),Mn(we.START_SPEAK_AUDIO,async h=>{LA(h,n(),"BOT")&&(h.data.textToRead=(v=>typeof window.DOMParser<"u"?new DOMParser().parseFromString(v,"text/html").body.textContent||"":v.replace(/<\/?[^>]+(>|$)/g,""))(h.data.textToRead))});const d={name:"@rcb-plugins/html-renderer"};return f!=null&&f.autoConfig&&(d.settings={event:{rcbPreInjectMessage:!0,rcbChunkStreamMessage:!0,rcbStartSimulateStreamMessage:!0,rcbStartStreamMessage:!0,rcbStartSpeakAudio:!0}}),d},Zp=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,eh=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,th={};function FA(e,n){return(th.jsx?eh:Zp).test(e)}const nh=/[ \t\n\f\r]/g;function QA(e){return e.replace(nh,"")===""}class Bi{constructor(n,i,a){this.property=n,this.normal=i,a&&(this.space=a)}}function HA(e,n){const i={},a={};let o=-1;for(;++o<e.length;)Object.assign(i,e[o].property),Object.assign(a,e[o].normal);return new Bi(i,a,n)}function sc(e){return e.toLowerCase()}Bi.prototype.property={},Bi.prototype.normal={},Bi.prototype.space=null;class Rn{constructor(n,i){this.property=n,this.attribute=i}}Rn.prototype.space=null,Rn.prototype.boolean=!1,Rn.prototype.booleanish=!1,Rn.prototype.overloadedBoolean=!1,Rn.prototype.number=!1,Rn.prototype.commaSeparated=!1,Rn.prototype.spaceSeparated=!1,Rn.prototype.commaOrSpaceSeparated=!1,Rn.prototype.mustUseProperty=!1,Rn.prototype.defined=!1;let rh=0;const He=Qo(),kt=Qo(),NA=Qo(),de=Qo(),it=Qo(),Sa=Qo(),xn=Qo();function Qo(){return 2**++rh}const lc=Object.freeze(Object.defineProperty({__proto__:null,boolean:He,booleanish:kt,commaOrSpaceSeparated:xn,commaSeparated:Sa,number:de,overloadedBoolean:NA,spaceSeparated:it},Symbol.toStringTag,{value:"Module"})),cc=Object.keys(lc);class uc extends Rn{constructor(n,i,a,o){let u=-1;if(super(n,i),UA(this,"space",o),typeof a=="number")for(;++u<cc.length;){const f=cc[u];UA(this,cc[u],(a&lc[f])===lc[f])}}}function UA(e,n,i){i&&(e[n]=i)}uc.prototype.defined=!0;const oh={}.hasOwnProperty;function ka(e){const n={},i={};let a;for(a in e.properties)if(oh.call(e.properties,a)){const o=e.properties[a],u=new uc(a,e.transform(e.attributes||{},a),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(u.mustUseProperty=!0),n[a]=u,i[sc(a)]=a,i[sc(u.attribute)]=a}return new Bi(n,i,e.space)}const zA=ka({space:"xlink",transform:(e,n)=>"xlink:"+n.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),jA=ka({space:"xml",transform:(e,n)=>"xml:"+n.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function WA(e,n){return n in e?e[n]:n}function YA(e,n){return WA(e,n.toLowerCase())}const GA=ka({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:YA,properties:{xmlns:null,xmlnsXLink:null}}),VA=ka({transform:(e,n)=>n==="role"?n:"aria-"+n.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:kt,ariaAutoComplete:null,ariaBusy:kt,ariaChecked:kt,ariaColCount:de,ariaColIndex:de,ariaColSpan:de,ariaControls:it,ariaCurrent:null,ariaDescribedBy:it,ariaDetails:null,ariaDisabled:kt,ariaDropEffect:it,ariaErrorMessage:null,ariaExpanded:kt,ariaFlowTo:it,ariaGrabbed:kt,ariaHasPopup:null,ariaHidden:kt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:it,ariaLevel:de,ariaLive:null,ariaModal:kt,ariaMultiLine:kt,ariaMultiSelectable:kt,ariaOrientation:null,ariaOwns:it,ariaPlaceholder:null,ariaPosInSet:de,ariaPressed:kt,ariaReadOnly:kt,ariaRelevant:null,ariaRequired:kt,ariaRoleDescription:it,ariaRowCount:de,ariaRowIndex:de,ariaRowSpan:de,ariaSelected:kt,ariaSetSize:de,ariaSort:null,ariaValueMax:de,ariaValueMin:de,ariaValueNow:de,ariaValueText:null,role:null}}),ah=ka({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:YA,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Sa,acceptCharset:it,accessKey:it,action:null,allow:null,allowFullScreen:He,allowPaymentRequest:He,allowUserMedia:He,alt:null,as:null,async:He,autoCapitalize:null,autoComplete:it,autoFocus:He,autoPlay:He,blocking:it,capture:null,charSet:null,checked:He,cite:null,className:it,cols:de,colSpan:null,content:null,contentEditable:kt,controls:He,controlsList:it,coords:de|Sa,crossOrigin:null,data:null,dateTime:null,decoding:null,default:He,defer:He,dir:null,dirName:null,disabled:He,download:NA,draggable:kt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:He,formTarget:null,headers:it,height:de,hidden:He,high:de,href:null,hrefLang:null,htmlFor:it,httpEquiv:it,id:null,imageSizes:null,imageSrcSet:null,inert:He,inputMode:null,integrity:null,is:null,isMap:He,itemId:null,itemProp:it,itemRef:it,itemScope:He,itemType:it,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:He,low:de,manifest:null,max:null,maxLength:de,media:null,method:null,min:null,minLength:de,multiple:He,muted:He,name:null,nonce:null,noModule:He,noValidate:He,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:He,optimum:de,pattern:null,ping:it,placeholder:null,playsInline:He,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:He,referrerPolicy:null,rel:it,required:He,reversed:He,rows:de,rowSpan:de,sandbox:it,scope:null,scoped:He,seamless:He,selected:He,shadowRootClonable:He,shadowRootDelegatesFocus:He,shadowRootMode:null,shape:null,size:de,sizes:null,slot:null,span:de,spellCheck:kt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:de,step:null,style:null,tabIndex:de,target:null,title:null,translate:null,type:null,typeMustMatch:He,useMap:null,value:kt,width:de,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:it,axis:null,background:null,bgColor:null,border:de,borderColor:null,bottomMargin:de,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:He,declare:He,event:null,face:null,frame:null,frameBorder:null,hSpace:de,leftMargin:de,link:null,longDesc:null,lowSrc:null,marginHeight:de,marginWidth:de,noResize:He,noHref:He,noShade:He,noWrap:He,object:null,profile:null,prompt:null,rev:null,rightMargin:de,rules:null,scheme:null,scrolling:kt,standby:null,summary:null,text:null,topMargin:de,valueType:null,version:null,vAlign:null,vLink:null,vSpace:de,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:He,disableRemotePlayback:He,prefix:null,property:null,results:de,security:null,unselectable:null}}),ih=ka({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:WA,properties:{about:xn,accentHeight:de,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:de,amplitude:de,arabicForm:null,ascent:de,attributeName:null,attributeType:null,azimuth:de,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:de,by:null,calcMode:null,capHeight:de,className:it,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:de,diffuseConstant:de,direction:null,display:null,dur:null,divisor:de,dominantBaseline:null,download:He,dx:null,dy:null,edgeMode:null,editable:null,elevation:de,enableBackground:null,end:null,event:null,exponent:de,externalResourcesRequired:null,fill:null,fillOpacity:de,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Sa,g2:Sa,glyphName:Sa,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:de,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:de,horizOriginX:de,horizOriginY:de,id:null,ideographic:de,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:de,k:de,k1:de,k2:de,k3:de,k4:de,kernelMatrix:xn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:de,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:de,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:de,overlineThickness:de,paintOrder:null,panose1:null,path:null,pathLength:de,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:it,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:de,pointsAtY:de,pointsAtZ:de,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:xn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:xn,rev:xn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:xn,requiredFeatures:xn,requiredFonts:xn,requiredFormats:xn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:de,specularExponent:de,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:de,strikethroughThickness:de,string:null,stroke:null,strokeDashArray:xn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:de,strokeOpacity:de,strokeWidth:null,style:null,surfaceScale:de,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:xn,tabIndex:de,tableValues:null,target:null,targetX:de,targetY:de,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:xn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:de,underlineThickness:de,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:de,values:null,vAlphabetic:de,vMathematical:de,vectorEffect:null,vHanging:de,vIdeographic:de,version:null,vertAdvY:de,vertOriginX:de,vertOriginY:de,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:de,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),sh=/^data[-\w.:]+$/i,XA=/-[a-z]/g,lh=/[A-Z]/g;function ch(e){return"-"+e.toLowerCase()}function uh(e){return e.charAt(1).toUpperCase()}const Ah={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},dh=HA([jA,zA,GA,VA,ah],"html"),Ac=HA([jA,zA,GA,VA,ih],"svg");function JA(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var dc,qA,KA,Ea={},fh=function(){if(KA)return Ea;KA=1;var e=Ea&&Ea.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.default=function(i,a){var o=null;if(!i||typeof i!="string")return o;var u=(0,n.default)(i),f=typeof a=="function";return u.forEach(function(A){if(A.type==="declaration"){var c=A.property,d=A.value;f?a(c,d,A):d&&((o=o||{})[c]=d)}}),o};var n=e(function(){if(qA)return dc;qA=1;var i=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a=/\n/g,o=/^\s*/,u=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,f=/^:\s*/,A=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,h="";function v(y){return y?y.replace(d,h):h}return dc=function(y,k){if(typeof y!="string")throw new TypeError("First argument must be a string");if(!y)return[];k=k||{};var C=1,R=1;function E(G){var Y=G.match(a);Y&&(C+=Y.length);var Z=G.lastIndexOf(`
125
+ `);R=~Z?G.length-Z:R+G.length}function T(){var G={line:C,column:R};return function(Y){return Y.position=new Q(G),j(),Y}}function Q(G){this.start=G,this.end={line:C,column:R},this.source=k.source}function M(G){var Y=new Error(k.source+":"+C+":"+R+": "+G);if(Y.reason=G,Y.filename=k.source,Y.line=C,Y.column=R,Y.source=y,!k.silent)throw Y}function U(G){var Y=G.exec(y);if(Y){var Z=Y[0];return E(Z),y=y.slice(Z.length),Y}}function j(){U(o)}function N(G){var Y;for(G=G||[];Y=W();)Y!==!1&&G.push(Y);return G}function W(){var G=T();if(y.charAt(0)=="/"&&y.charAt(1)=="*"){for(var Y=2;h!=y.charAt(Y)&&(y.charAt(Y)!="*"||y.charAt(Y+1)!="/");)++Y;if(Y+=2,h===y.charAt(Y-1))return M("End of comment missing");var Z=y.slice(2,Y-2);return R+=2,E(Z),y=y.slice(Y),R+=2,G({type:"comment",comment:Z})}}function ee(){var G=T(),Y=U(u);if(Y){if(W(),!U(f))return M("property missing ':'");var Z=U(A),$=G({type:"declaration",property:v(Y[0].replace(i,h)),value:Z?v(Z[0].replace(i,h)):h});return U(c),$}}return Q.prototype.content=y,j(),function(){var G,Y=[];for(N(Y);G=ee();)G!==!1&&(Y.push(G),N(Y));return Y}()},dc}());return Ea}();const $A=JA(fh),ph=$A.default||$A,ZA=ed("end"),fc=ed("start");function ed(e){return function(n){const i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function Mi(e){return e&&typeof e=="object"?"position"in e||"type"in e?td(e.position):"start"in e||"end"in e?td(e):"line"in e||"column"in e?pc(e):"":""}function pc(e){return nd(e&&e.line)+":"+nd(e&&e.column)}function td(e){return pc(e&&e.start)+"-"+pc(e&&e.end)}function nd(e){return e&&typeof e=="number"?e:1}class Vt extends Error{constructor(n,i,a){super(),typeof i=="string"&&(a=i,i=void 0);let o="",u={},f=!1;if(i&&(u="line"in i&&"column"in i||"start"in i&&"end"in i?{place:i}:"type"in i?{ancestors:[i],place:i.position}:{...i}),typeof n=="string"?o=n:!u.cause&&n&&(f=!0,o=n.message,u.cause=n),!u.ruleId&&!u.source&&typeof a=="string"){const c=a.indexOf(":");c===-1?u.ruleId=a:(u.source=a.slice(0,c),u.ruleId=a.slice(c+1))}if(!u.place&&u.ancestors&&u.ancestors){const c=u.ancestors[u.ancestors.length-1];c&&(u.place=c.position)}const A=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=A?A.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=A?A.line:void 0,this.name=Mi(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=f&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual,this.expected,this.note,this.url}}Vt.prototype.file="",Vt.prototype.name="",Vt.prototype.reason="",Vt.prototype.message="",Vt.prototype.stack="",Vt.prototype.column=void 0,Vt.prototype.line=void 0,Vt.prototype.ancestors=void 0,Vt.prototype.cause=void 0,Vt.prototype.fatal=void 0,Vt.prototype.place=void 0,Vt.prototype.ruleId=void 0,Vt.prototype.source=void 0;const hc={}.hasOwnProperty,hh=new Map,gh=/[A-Z]/g,mh=/-([a-z])/g,vh=new Set(["table","tbody","thead","tfoot","tr"]),yh=new Set(["td","th"]),rd="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function bh(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=n.filePath||void 0;let a;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=function(f,A){return c;function c(d,h,v,y){const k=Array.isArray(v.children),C=fc(d);return A(h,v,y,k,{columnNumber:C?C.column-1:void 0,fileName:f,lineNumber:C?C.line:void 0},void 0)}}(i,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=function(f,A,c){return d;function d(h,v,y,k){const C=Array.isArray(y.children)?c:A;return k?C(v,y,k):C(v,y)}}(0,n.jsx,n.jsxs)}const o={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:a,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?Ac:dh,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},u=od(o,e,void 0);return u&&typeof u!="string"?u:o.create(e,o.Fragment,{children:u||void 0},void 0)}function od(e,n,i){return n.type==="element"?function(a,o,u){const f=a.schema;let A=f;o.tagName.toLowerCase()==="svg"&&f.space==="html"&&(A=Ac,a.schema=A),a.ancestors.push(o);const c=id(a,o.tagName,!1),d=function(v,y){const k={};let C,R;for(R in y.properties)if(R!=="children"&&hc.call(y.properties,R)){const E=wh(v,R,y.properties[R]);if(E){const[T,Q]=E;v.tableCellAlignToStyle&&T==="align"&&typeof Q=="string"&&yh.has(y.tagName)?C=Q:k[T]=Q}}return C&&((k.style||(k.style={}))[v.stylePropertyNameCase==="css"?"text-align":"textAlign"]=C),k}(a,o);let h=mc(a,o);return vh.has(o.tagName)&&(h=h.filter(function(v){return typeof v!="string"||!function(y){return typeof y=="object"?y.type==="text"&&QA(y.value):QA(y)}(v)})),ad(a,d,c,o),gc(d,h),a.ancestors.pop(),a.schema=f,a.create(o,c,d,u)}(e,n,i):n.type==="mdxFlowExpression"||n.type==="mdxTextExpression"?function(a,o){if(o.data&&o.data.estree&&a.evaluater){const u=o.data.estree.body[0];return u.type,a.evaluater.evaluateExpression(u.expression)}Ri(a,o.position)}(e,n):n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement"?function(a,o,u){const f=a.schema;let A=f;o.name==="svg"&&f.space==="html"&&(A=Ac,a.schema=A),a.ancestors.push(o);const c=o.name===null?a.Fragment:id(a,o.name,!0),d=function(v,y){const k={};for(const C of y.attributes)if(C.type==="mdxJsxExpressionAttribute")if(C.data&&C.data.estree&&v.evaluater){const R=C.data.estree.body[0];R.type;const E=R.expression;E.type;const T=E.properties[0];T.type,Object.assign(k,v.evaluater.evaluateExpression(T.argument))}else Ri(v,y.position);else{const R=C.name;let E;if(C.value&&typeof C.value=="object")if(C.value.data&&C.value.data.estree&&v.evaluater){const T=C.value.data.estree.body[0];T.type,E=v.evaluater.evaluateExpression(T.expression)}else Ri(v,y.position);else E=C.value===null||C.value;k[R]=E}return k}(a,o),h=mc(a,o);return ad(a,d,c,o),gc(d,h),a.ancestors.pop(),a.schema=f,a.create(o,c,d,u)}(e,n,i):n.type==="mdxjsEsm"?function(a,o){if(o.data&&o.data.estree&&a.evaluater)return a.evaluater.evaluateProgram(o.data.estree);Ri(a,o.position)}(e,n):n.type==="root"?function(a,o,u){const f={};return gc(f,mc(a,o)),a.create(o,a.Fragment,f,u)}(e,n,i):n.type==="text"?function(a,o){return o.value}(0,n):void 0}function ad(e,n,i,a){typeof i!="string"&&i!==e.Fragment&&e.passNode&&(n.node=a)}function gc(e,n){if(n.length>0){const i=n.length>1?n:n[0];i&&(e.children=i)}}function mc(e,n){const i=[];let a=-1;const o=e.passKeys?new Map:hh;for(;++a<n.children.length;){const u=n.children[a];let f;if(e.passKeys){const c=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(c){const d=o.get(c)||0;f=c+"-"+d,o.set(c,d+1)}}const A=od(e,u,f);A!==void 0&&i.push(A)}return i}function wh(e,n,i){const a=function(o,u){const f=sc(u);let A=u,c=Rn;if(f in o.normal)return o.property[o.normal[f]];if(f.length>4&&f.slice(0,4)==="data"&&sh.test(u)){if(u.charAt(4)==="-"){const d=u.slice(5).replace(XA,uh);A="data"+d.charAt(0).toUpperCase()+d.slice(1)}else{const d=u.slice(4);if(!XA.test(d)){let h=d.replace(lh,ch);h.charAt(0)!=="-"&&(h="-"+h),u="data"+h}}c=uc}return new c(A,u)}(e.schema,n);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=a.commaSeparated?function(o){const u={};return(o[o.length-1]===""?[...o,""]:o).join((u.padRight?" ":"")+","+(u.padLeft===!1?"":" ")).trim()}(i):function(o){return o.join(" ").trim()}(i)),a.property==="style"){let o=typeof i=="object"?i:function(u,f){const A={};try{ph(f,c)}catch(d){if(!u.ignoreInvalidStyle){const h=d,v=new Vt("Cannot parse `style` attribute",{ancestors:u.ancestors,cause:h,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw v.file=u.filePath||void 0,v.url=rd+"#cannot-parse-style-attribute",v}}return A;function c(d,h){let v=d;v.slice(0,2)!=="--"&&(v.slice(0,4)==="-ms-"&&(v="ms-"+v.slice(4)),v=v.replace(mh,Sh)),A[v]=h}}(e,String(i));return e.stylePropertyNameCase==="css"&&(o=function(u){const f={};let A;for(A in u)hc.call(u,A)&&(f[xh(A)]=u[A]);return f}(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&a.space?Ah[a.property]||a.property:a.attribute,i]}}function id(e,n,i){let a;if(i)if(n.includes(".")){const o=n.split(".");let u,f=-1;for(;++f<o.length;){const A=FA(o[f])?{type:"Identifier",name:o[f]}:{type:"Literal",value:o[f]};u=u?{type:"MemberExpression",object:u,property:A,computed:!(!f||A.type!=="Literal"),optional:!1}:A}a=u}else a=FA(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};else a={type:"Literal",value:n};if(a.type==="Literal"){const o=a.value;return hc.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(a);Ri(e)}function Ri(e,n){const i=new Vt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=rd+"#cannot-handle-mdx-estrees-without-createevaluater",i}function xh(e){let n=e.replace(gh,kh);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Sh(e,n){return n.toUpperCase()}function kh(e){return"-"+e.toLowerCase()}const vc={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},js={};function sd(e,n,i){if(function(a){return!(!a||typeof a!="object")}(e)){if("value"in e)return e.type!=="html"||i?e.value:"";if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ld(e.children,n,i)}return Array.isArray(e)?ld(e,n,i):""}function ld(e,n,i){const a=[];let o=-1;for(;++o<e.length;)a[o]=sd(e[o],n,i);return a.join("")}const cd=document.createElement("i");function yc(e){const n="&"+e+";";cd.innerHTML=n;const i=cd.textContent;return(i.charCodeAt(i.length-1)!==59||e==="semi")&&i!==n&&i}function ur(e,n,i,a){const o=e.length;let u,f=0;if(n=n<0?-n>o?0:o+n:n>o?o:n,i=i>0?i:0,a.length<1e4)u=Array.from(a),u.unshift(n,i),e.splice(...u);else for(i&&e.splice(n,i);f<a.length;)u=a.slice(f,f+1e4),u.unshift(n,0),e.splice(...u),f+=1e4,n+=1e4}function On(e,n){return e.length>0?(ur(e,e.length,0,n),e):n}const ud={}.hasOwnProperty;function Eh(e){const n={};let i=-1;for(;++i<e.length;)Ch(n,e[i]);return n}function Ch(e,n){let i;for(i in n){const a=(ud.call(e,i)?e[i]:void 0)||(e[i]={}),o=n[i];let u;if(o)for(u in o){ud.call(a,u)||(a[u]=[]);const f=o[u];Ph(a[u],Array.isArray(f)?f:f?[f]:[])}}}function Ph(e,n){let i=-1;const a=[];for(;++i<n.length;)(n[i].add==="after"?e:a).push(n[i]);ur(e,0,0,a)}function Ad(e,n){const i=Number.parseInt(e,n);return i<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||!(65535&~i)||(65535&i)==65534||i>1114111?"�":String.fromCodePoint(i)}function Ca(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ar=Zr(/[A-Za-z]/),Sn=Zr(/[\dA-Za-z]/),Th=Zr(/[#-'*+\--9=?A-Z^-~]/);function bc(e){return e!==null&&(e<32||e===127)}const wc=Zr(/\d/),Dh=Zr(/[\dA-Fa-f]/),Ih=Zr(/[!-/:-@[-`{-~]/);function Me(e){return e!==null&&e<-2}function ln(e){return e!==null&&(e<0||e===32)}function Xe(e){return e===-2||e===-1||e===32}const Bh=Zr(new RegExp("\\p{P}|\\p{S}","u")),Mh=Zr(/\s/);function Zr(e){return function(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Pa(e){const n=[];let i=-1,a=0,o=0;for(;++i<e.length;){const u=e.charCodeAt(i);let f="";if(u===37&&Sn(e.charCodeAt(i+1))&&Sn(e.charCodeAt(i+2)))o=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(f=String.fromCharCode(u));else if(u>55295&&u<57344){const A=e.charCodeAt(i+1);u<56320&&A>56319&&A<57344?(f=String.fromCharCode(u,A),o=1):f="�"}else f=String.fromCharCode(u);f&&(n.push(e.slice(a,i),encodeURIComponent(f)),a=i+o+1,f=""),o&&(i+=o,o=0)}return n.join("")+e.slice(a)}function st(e,n,i,a){const o=a?a-1:Number.POSITIVE_INFINITY;let u=0;return function(A){return Xe(A)?(e.enter(i),f(A)):n(A)};function f(A){return Xe(A)&&u++<o?(e.consume(A),f):(e.exit(i),n(A))}}const Rh={tokenize:function(e){const n=e.attempt(this.parser.constructs.contentInitial,function(u){return u===null?void e.consume(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),st(e,n,"linePrefix"))},function(u){return e.enter("paragraph"),a(u)});let i;return n;function a(u){const f=e.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=f),i=f,o(u)}function o(u){return u===null?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(u)):Me(u)?(e.consume(u),e.exit("chunkText"),a):(e.consume(u),o)}}},Oh={tokenize:function(e){const n=this,i=[];let a,o,u,f=0;return A;function A(M){if(f<i.length){const U=i[f];return n.containerState=U[1],e.attempt(U[0].continuation,c,d)(M)}return d(M)}function c(M){if(f++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,a&&Q();const U=n.events.length;let j,N=U;for(;N--;)if(n.events[N][0]==="exit"&&n.events[N][1].type==="chunkFlow"){j=n.events[N][1].end;break}T(f);let W=U;for(;W<n.events.length;)n.events[W][1].end={...j},W++;return ur(n.events,N+1,0,n.events.slice(U)),n.events.length=W,d(M)}return A(M)}function d(M){if(f===i.length){if(!a)return y(M);if(a.currentConstruct&&a.currentConstruct.concrete)return C(M);n.interrupt=!(!a.currentConstruct||a._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(dd,h,v)(M)}function h(M){return a&&Q(),T(f),y(M)}function v(M){return n.parser.lazy[n.now().line]=f!==i.length,u=n.now().offset,C(M)}function y(M){return n.containerState={},e.attempt(dd,k,C)(M)}function k(M){return f++,i.push([n.currentConstruct,n.containerState]),y(M)}function C(M){return M===null?(a&&Q(),T(0),void e.consume(M)):(a=a||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:o}),R(M))}function R(M){return M===null?(E(e.exit("chunkFlow"),!0),T(0),void e.consume(M)):Me(M)?(e.consume(M),E(e.exit("chunkFlow")),f=0,n.interrupt=void 0,A):(e.consume(M),R)}function E(M,U){const j=n.sliceStream(M);if(U&&j.push(null),M.previous=o,o&&(o.next=M),o=M,a.defineSkip(M.start),a.write(j),n.parser.lazy[M.start.line]){let N=a.events.length;for(;N--;)if(a.events[N][1].start.offset<u&&(!a.events[N][1].end||a.events[N][1].end.offset>u))return;const W=n.events.length;let ee,G,Y=W;for(;Y--;)if(n.events[Y][0]==="exit"&&n.events[Y][1].type==="chunkFlow"){if(ee){G=n.events[Y][1].end;break}ee=!0}for(T(f),N=W;N<n.events.length;)n.events[N][1].end={...G},N++;ur(n.events,Y+1,0,n.events.slice(W)),n.events.length=N}}function T(M){let U=i.length;for(;U-- >M;){const j=i[U];n.containerState=j[1],j[0].exit.call(n,e)}i.length=M}function Q(){a.write([null]),o=void 0,a=void 0,n.containerState._closeFlow=void 0}}},dd={tokenize:function(e,n,i){return st(e,e.attempt(this.parser.constructs.document,n,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function fd(e){return e===null||ln(e)||Mh(e)?1:Bh(e)?2:void 0}function xc(e,n,i){const a=[];let o=-1;for(;++o<e.length;){const u=e[o].resolveAll;u&&!a.includes(u)&&(n=u(n,i),a.push(u))}return n}const Sc={name:"attention",resolveAll:function(e,n){let i,a,o,u,f,A,c,d,h=-1;for(;++h<e.length;)if(e[h][0]==="enter"&&e[h][1].type==="attentionSequence"&&e[h][1]._close){for(i=h;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&n.sliceSerialize(e[i][1]).charCodeAt(0)===n.sliceSerialize(e[h][1]).charCodeAt(0)){if((e[i][1]._close||e[h][1]._open)&&(e[h][1].end.offset-e[h][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[h][1].end.offset-e[h][1].start.offset)%3))continue;A=e[i][1].end.offset-e[i][1].start.offset>1&&e[h][1].end.offset-e[h][1].start.offset>1?2:1;const v={...e[i][1].end},y={...e[h][1].start};pd(v,-A),pd(y,A),u={type:A>1?"strongSequence":"emphasisSequence",start:v,end:{...e[i][1].end}},f={type:A>1?"strongSequence":"emphasisSequence",start:{...e[h][1].start},end:y},o={type:A>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[h][1].start}},a={type:A>1?"strong":"emphasis",start:{...u.start},end:{...f.end}},e[i][1].end={...u.start},e[h][1].start={...f.end},c=[],e[i][1].end.offset-e[i][1].start.offset&&(c=On(c,[["enter",e[i][1],n],["exit",e[i][1],n]])),c=On(c,[["enter",a,n],["enter",u,n],["exit",u,n],["enter",o,n]]),c=On(c,xc(n.parser.constructs.insideSpan.null,e.slice(i+1,h),n)),c=On(c,[["exit",o,n],["enter",f,n],["exit",f,n],["exit",a,n]]),e[h][1].end.offset-e[h][1].start.offset?(d=2,c=On(c,[["enter",e[h][1],n],["exit",e[h][1],n]])):d=0,ur(e,i-1,h-i+3,c),h=i+c.length-d-2;break}}for(h=-1;++h<e.length;)e[h][1].type==="attentionSequence"&&(e[h][1].type="data");return e},tokenize:function(e,n){const i=this.parser.constructs.attentionMarkers.null,a=this.previous,o=fd(a);let u;return function(A){return u=A,e.enter("attentionSequence"),f(A)};function f(A){if(A===u)return e.consume(A),f;const c=e.exit("attentionSequence"),d=fd(A),h=!d||d===2&&o||i.includes(A),v=!o||o===2&&d||i.includes(a);return c._open=!!(u===42?h:h&&(o||!v)),c._close=!!(u===42?v:v&&(d||!h)),n(A)}}};function pd(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const _h={name:"autolink",tokenize:function(e,n,i){let a=0;return function(y){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(y){return Ar(y)?(e.consume(y),u):y===64?i(y):c(y)}function u(y){return y===43||y===45||y===46||Sn(y)?(a=1,f(y)):c(y)}function f(y){return y===58?(e.consume(y),a=0,A):(y===43||y===45||y===46||Sn(y))&&a++<32?(e.consume(y),f):(a=0,c(y))}function A(y){return y===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),n):y===null||y===32||y===60||bc(y)?i(y):(e.consume(y),A)}function c(y){return y===64?(e.consume(y),d):Th(y)?(e.consume(y),c):i(y)}function d(y){return Sn(y)?h(y):i(y)}function h(y){return y===46?(e.consume(y),a=0,d):y===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),n):v(y)}function v(y){if((y===45||Sn(y))&&a++<63){const k=y===45?v:h;return e.consume(y),k}return i(y)}}},Ws={partial:!0,tokenize:function(e,n,i){return function(o){return Xe(o)?st(e,a,"linePrefix")(o):a(o)};function a(o){return o===null||Me(o)?n(o):i(o)}}},hd={continuation:{tokenize:function(e,n,i){const a=this;return function(u){return Xe(u)?st(e,o,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):o(u)};function o(u){return e.attempt(hd,n,i)(u)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,n,i){const a=this;return function(u){if(u===62){const f=a.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),o}return i(u)};function o(u){return Xe(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(u))}}},gd={name:"characterEscape",tokenize:function(e,n,i){return function(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),a};function a(o){return Ih(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):i(o)}}},md={name:"characterReference",tokenize:function(e,n,i){const a=this;let o,u,f=0;return function(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),A};function A(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),o=31,u=Sn,d(h))}function c(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,u=Dh,d):(e.enter("characterReferenceValue"),o=7,u=wc,d(h))}function d(h){if(h===59&&f){const v=e.exit("characterReferenceValue");return u!==Sn||yc(a.sliceSerialize(v))?(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),n):i(h)}return u(h)&&f++<o?(e.consume(h),d):i(h)}}},vd={partial:!0,tokenize:function(e,n,i){const a=this;return function(u){return u===null?i(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o)};function o(u){return a.parser.lazy[a.now().line]?i(u):n(u)}}},yd={concrete:!0,name:"codeFenced",tokenize:function(e,n,i){const a=this,o={partial:!0,tokenize:function(M,U,j){let N=0;return W;function W($){return M.enter("lineEnding"),M.consume($),M.exit("lineEnding"),ee}function ee($){return M.enter("codeFencedFence"),Xe($)?st(M,G,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):G($)}function G($){return $===u?(M.enter("codeFencedFenceSequence"),Y($)):j($)}function Y($){return $===u?(N++,M.consume($),Y):N>=A?(M.exit("codeFencedFenceSequence"),Xe($)?st(M,Z,"whitespace")($):Z($)):j($)}function Z($){return $===null||Me($)?(M.exit("codeFencedFence"),U($)):j($)}}};let u,f=0,A=0;return function(M){return function(U){const j=a.events[a.events.length-1];return f=j&&j[1].type==="linePrefix"?j[2].sliceSerialize(j[1],!0).length:0,u=U,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(U)}(M)};function c(M){return M===u?(A++,e.consume(M),c):A<3?i(M):(e.exit("codeFencedFenceSequence"),Xe(M)?st(e,d,"whitespace")(M):d(M))}function d(M){return M===null||Me(M)?(e.exit("codeFencedFence"),a.interrupt?n(M):e.check(vd,k,Q)(M)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(M))}function h(M){return M===null||Me(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(M)):Xe(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),st(e,v,"whitespace")(M)):M===96&&M===u?i(M):(e.consume(M),h)}function v(M){return M===null||Me(M)?d(M):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(M))}function y(M){return M===null||Me(M)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(M)):M===96&&M===u?i(M):(e.consume(M),y)}function k(M){return e.attempt(o,Q,C)(M)}function C(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),R}function R(M){return f>0&&Xe(M)?st(e,E,"linePrefix",f+1)(M):E(M)}function E(M){return M===null||Me(M)?e.check(vd,k,Q)(M):(e.enter("codeFlowValue"),T(M))}function T(M){return M===null||Me(M)?(e.exit("codeFlowValue"),E(M)):(e.consume(M),T)}function Q(M){return e.exit("codeFenced"),n(M)}}},kc={name:"codeIndented",tokenize:function(e,n,i){const a=this;return function(c){return e.enter("codeIndented"),st(e,o,"linePrefix",5)(c)};function o(c){const d=a.events[a.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?u(c):i(c)}function u(c){return c===null?A(c):Me(c)?e.attempt(Lh,u,A)(c):(e.enter("codeFlowValue"),f(c))}function f(c){return c===null||Me(c)?(e.exit("codeFlowValue"),u(c)):(e.consume(c),f)}function A(c){return e.exit("codeIndented"),n(c)}}},Lh={partial:!0,tokenize:function(e,n,i){const a=this;return o;function o(f){return a.parser.lazy[a.now().line]?i(f):Me(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),o):st(e,u,"linePrefix",5)(f)}function u(f){const A=a.events[a.events.length-1];return A&&A[1].type==="linePrefix"&&A[2].sliceSerialize(A[1],!0).length>=4?n(f):Me(f)?o(f):i(f)}}},Fh={name:"codeText",previous:function(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"},resolve:function(e){let n,i,a=e.length-4,o=3;if(!(e[o][1].type!=="lineEnding"&&e[o][1].type!=="space"||e[a][1].type!=="lineEnding"&&e[a][1].type!=="space")){for(n=o;++n<a;)if(e[n][1].type==="codeTextData"){e[o][1].type="codeTextPadding",e[a][1].type="codeTextPadding",o+=2,a-=2;break}}for(n=o-1,a++;++n<=a;)i===void 0?n!==a&&e[n][1].type!=="lineEnding"&&(i=n):(n===a||e[n][1].type==="lineEnding")&&(e[i][1].type="codeTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),a-=n-i-2,n=i+2),i=void 0);return e},tokenize:function(e,n,i){let a,o,u=0;return function(h){return e.enter("codeText"),e.enter("codeTextSequence"),f(h)};function f(h){return h===96?(e.consume(h),u++,f):(e.exit("codeTextSequence"),A(h))}function A(h){return h===null?i(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),A):h===96?(o=e.enter("codeTextSequence"),a=0,d(h)):Me(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),A):(e.enter("codeTextData"),c(h))}function c(h){return h===null||h===32||h===96||Me(h)?(e.exit("codeTextData"),A(h)):(e.consume(h),c)}function d(h){return h===96?(e.consume(h),a++,d):a===u?(e.exit("codeTextSequence"),e.exit("codeText"),n(h)):(o.type="codeTextData",c(h))}}};class Qh{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,i){const a=i??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(n,a):n>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(n,i,a){const o=i||0;this.setCursor(Math.trunc(n));const u=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return a&&Oi(this.left,a),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Oi(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Oi(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const i=this.left.splice(n,Number.POSITIVE_INFINITY);Oi(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Oi(this.left,i.reverse())}}}function Oi(e,n){let i=0;if(n.length<1e4)e.push(...n);else for(;i<n.length;)e.push(...n.slice(i,i+1e4)),i+=1e4}function bd(e){const n={};let i,a,o,u,f,A,c,d=-1;const h=new Qh(e);for(;++d<h.length;){for(;d in n;)d=n[d];if(i=h.get(d),d&&i[1].type==="chunkFlow"&&h.get(d-1)[1].type==="listItemPrefix"&&(A=i[1]._tokenizer.events,o=0,o<A.length&&A[o][1].type==="lineEndingBlank"&&(o+=2),o<A.length&&A[o][1].type==="content"))for(;++o<A.length&&A[o][1].type!=="content";)A[o][1].type==="chunkText"&&(A[o][1]._isInFirstContentOfListItem=!0,o++);if(i[0]==="enter")i[1].contentType&&(Object.assign(n,Hh(h,d)),d=n[d],c=!0);else if(i[1]._container){for(o=d,a=void 0;o--;)if(u=h.get(o),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(a&&(h.get(a)[1].type="lineEndingBlank"),u[1].type="lineEnding",a=o);else if(u[1].type!=="linePrefix")break;a&&(i[1].end={...h.get(a)[1].start},f=h.slice(a,d),f.unshift(i),h.splice(a,d-a+1,f))}}return ur(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!c}function Hh(e,n){const i=e.get(n)[1],a=e.get(n)[2];let o=n-1;const u=[],f=i._tokenizer||a.parser[i.contentType](i.start),A=f.events,c=[],d={};let h,v,y=-1,k=i,C=0,R=0;const E=[R];for(;k;){for(;e.get(++o)[1]!==k;);u.push(o),k._tokenizer||(h=a.sliceStream(k),k.next||h.push(null),v&&f.defineSkip(k.start),k._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(h),k._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),v=k,k=k.next}for(k=i;++y<A.length;)A[y][0]==="exit"&&A[y-1][0]==="enter"&&A[y][1].type===A[y-1][1].type&&A[y][1].start.line!==A[y][1].end.line&&(R=y+1,E.push(R),k._tokenizer=void 0,k.previous=void 0,k=k.next);for(f.events=[],k?(k._tokenizer=void 0,k.previous=void 0):E.pop(),y=E.length;y--;){const T=A.slice(E[y],E[y+1]),Q=u.pop();c.push([Q,Q+T.length-1]),e.splice(Q,2,T)}for(c.reverse(),y=-1;++y<c.length;)d[C+c[y][0]]=C+c[y][1],C+=c[y][1]-c[y][0]-1;return d}const Nh={resolve:function(e){return bd(e),e},tokenize:function(e,n){let i;return function(f){return e.enter("content"),i=e.enter("chunkContent",{contentType:"content"}),a(f)};function a(f){return f===null?o(f):Me(f)?e.check(Uh,u,o)(f):(e.consume(f),a)}function o(f){return e.exit("chunkContent"),e.exit("content"),n(f)}function u(f){return e.consume(f),e.exit("chunkContent"),i.next=e.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,a}}},Uh={partial:!0,tokenize:function(e,n,i){const a=this;return function(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),st(e,o,"linePrefix")};function o(u){if(u===null||Me(u))return i(u);const f=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?n(u):e.interrupt(a.parser.constructs.flow,i,n)(u)}}};function wd(e,n,i,a,o,u,f,A,c){const d=c||Number.POSITIVE_INFINITY;let h=0;return function(E){return E===60?(e.enter(a),e.enter(o),e.enter(u),e.consume(E),e.exit(u),v):E===null||E===32||E===41||bc(E)?i(E):(e.enter(a),e.enter(f),e.enter(A),e.enter("chunkString",{contentType:"string"}),C(E))};function v(E){return E===62?(e.enter(u),e.consume(E),e.exit(u),e.exit(o),e.exit(a),n):(e.enter(A),e.enter("chunkString",{contentType:"string"}),y(E))}function y(E){return E===62?(e.exit("chunkString"),e.exit(A),v(E)):E===null||E===60||Me(E)?i(E):(e.consume(E),E===92?k:y)}function k(E){return E===60||E===62||E===92?(e.consume(E),y):y(E)}function C(E){return h||E!==null&&E!==41&&!ln(E)?h<d&&E===40?(e.consume(E),h++,C):E===41?(e.consume(E),h--,C):E===null||E===32||E===40||bc(E)?i(E):(e.consume(E),E===92?R:C):(e.exit("chunkString"),e.exit(A),e.exit(f),e.exit(a),n(E))}function R(E){return E===40||E===41||E===92?(e.consume(E),C):C(E)}}function xd(e,n,i,a,o,u){const f=this;let A,c=0;return function(y){return e.enter(a),e.enter(o),e.consume(y),e.exit(o),e.enter(u),d};function d(y){return c>999||y===null||y===91||y===93&&!A||y===94&&!c&&"_hiddenFootnoteSupport"in f.parser.constructs?i(y):y===93?(e.exit(u),e.enter(o),e.consume(y),e.exit(o),e.exit(a),n):Me(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===null||y===91||y===93||Me(y)||c++>999?(e.exit("chunkString"),d(y)):(e.consume(y),A||(A=!Xe(y)),y===92?v:h)}function v(y){return y===91||y===92||y===93?(e.consume(y),c++,h):h(y)}}function Sd(e,n,i,a,o,u){let f;return function(v){return v===34||v===39||v===40?(e.enter(a),e.enter(o),e.consume(v),e.exit(o),f=v===40?41:v,A):i(v)};function A(v){return v===f?(e.enter(o),e.consume(v),e.exit(o),e.exit(a),n):(e.enter(u),c(v))}function c(v){return v===f?(e.exit(u),A(f)):v===null?i(v):Me(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),st(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(v))}function d(v){return v===f||v===null||Me(v)?(e.exit("chunkString"),c(v)):(e.consume(v),v===92?h:d)}function h(v){return v===f||v===92?(e.consume(v),d):d(v)}}function _i(e,n){let i;return function a(o){return Me(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i=!0,a):Xe(o)?st(e,a,i?"linePrefix":"lineSuffix")(o):n(o)}}const zh={name:"definition",tokenize:function(e,n,i){const a=this;let o;return function(v){return e.enter("definition"),function(y){return xd.call(a,e,u,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}(v)};function u(v){return o=Ca(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),f):i(v)}function f(v){return ln(v)?_i(e,A)(v):A(v)}function A(v){return wd(e,c,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function c(v){return e.attempt(jh,d,d)(v)}function d(v){return Xe(v)?st(e,h,"whitespace")(v):h(v)}function h(v){return v===null||Me(v)?(e.exit("definition"),a.parser.defined.push(o),n(v)):i(v)}}},jh={partial:!0,tokenize:function(e,n,i){return function(f){return ln(f)?_i(e,a)(f):i(f)};function a(f){return Sd(e,o,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function o(f){return Xe(f)?st(e,u,"whitespace")(f):u(f)}function u(f){return f===null||Me(f)?n(f):i(f)}}},Wh={name:"hardBreakEscape",tokenize:function(e,n,i){return function(o){return e.enter("hardBreakEscape"),e.consume(o),a};function a(o){return Me(o)?(e.exit("hardBreakEscape"),n(o)):i(o)}}},Yh={name:"headingAtx",resolve:function(e,n){let i,a,o=e.length-2,u=3;return e[u][1].type==="whitespace"&&(u+=2),o-2>u&&e[o][1].type==="whitespace"&&(o-=2),e[o][1].type==="atxHeadingSequence"&&(u===o-1||o-4>u&&e[o-2][1].type==="whitespace")&&(o-=u+1===o?2:4),o>u&&(i={type:"atxHeadingText",start:e[u][1].start,end:e[o][1].end},a={type:"chunkText",start:e[u][1].start,end:e[o][1].end,contentType:"text"},ur(e,u,o-u+1,[["enter",i,n],["enter",a,n],["exit",a,n],["exit",i,n]])),e},tokenize:function(e,n,i){let a=0;return function(c){return e.enter("atxHeading"),function(d){return e.enter("atxHeadingSequence"),o(d)}(c)};function o(c){return c===35&&a++<6?(e.consume(c),o):c===null||ln(c)?(e.exit("atxHeadingSequence"),u(c)):i(c)}function u(c){return c===35?(e.enter("atxHeadingSequence"),f(c)):c===null||Me(c)?(e.exit("atxHeading"),n(c)):Xe(c)?st(e,u,"whitespace")(c):(e.enter("atxHeadingText"),A(c))}function f(c){return c===35?(e.consume(c),f):(e.exit("atxHeadingSequence"),u(c))}function A(c){return c===null||c===35||ln(c)?(e.exit("atxHeadingText"),u(c)):(e.consume(c),A)}}},Gh=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],kd=["pre","script","style","textarea"],Vh={concrete:!0,name:"htmlFlow",resolveTo:function(e){let n=e.length;for(;n--&&(e[n][0]!=="enter"||e[n][1].type!=="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e},tokenize:function(e,n,i){const a=this;let o,u,f,A,c;return function(F){return function(ve){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(ve),d}(F)};function d(F){return F===33?(e.consume(F),h):F===47?(e.consume(F),u=!0,k):F===63?(e.consume(F),o=3,a.interrupt?n:me):Ar(F)?(e.consume(F),f=String.fromCharCode(F),C):i(F)}function h(F){return F===45?(e.consume(F),o=2,v):F===91?(e.consume(F),o=5,A=0,y):Ar(F)?(e.consume(F),o=4,a.interrupt?n:me):i(F)}function v(F){return F===45?(e.consume(F),a.interrupt?n:me):i(F)}function y(F){return F==="CDATA[".charCodeAt(A++)?(e.consume(F),A===6?a.interrupt?n:Y:y):i(F)}function k(F){return Ar(F)?(e.consume(F),f=String.fromCharCode(F),C):i(F)}function C(F){if(F===null||F===47||F===62||ln(F)){const ve=F===47,fe=f.toLowerCase();return ve||u||!kd.includes(fe)?Gh.includes(f.toLowerCase())?(o=6,ve?(e.consume(F),R):a.interrupt?n(F):Y(F)):(o=7,a.interrupt&&!a.parser.lazy[a.now().line]?i(F):u?E(F):T(F)):(o=1,a.interrupt?n(F):Y(F))}return F===45||Sn(F)?(e.consume(F),f+=String.fromCharCode(F),C):i(F)}function R(F){return F===62?(e.consume(F),a.interrupt?n:Y):i(F)}function E(F){return Xe(F)?(e.consume(F),E):ee(F)}function T(F){return F===47?(e.consume(F),ee):F===58||F===95||Ar(F)?(e.consume(F),Q):Xe(F)?(e.consume(F),T):ee(F)}function Q(F){return F===45||F===46||F===58||F===95||Sn(F)?(e.consume(F),Q):M(F)}function M(F){return F===61?(e.consume(F),U):Xe(F)?(e.consume(F),M):T(F)}function U(F){return F===null||F===60||F===61||F===62||F===96?i(F):F===34||F===39?(e.consume(F),c=F,j):Xe(F)?(e.consume(F),U):N(F)}function j(F){return F===c?(e.consume(F),c=null,W):F===null||Me(F)?i(F):(e.consume(F),j)}function N(F){return F===null||F===34||F===39||F===47||F===60||F===61||F===62||F===96||ln(F)?M(F):(e.consume(F),N)}function W(F){return F===47||F===62||Xe(F)?T(F):i(F)}function ee(F){return F===62?(e.consume(F),G):i(F)}function G(F){return F===null||Me(F)?Y(F):Xe(F)?(e.consume(F),G):i(F)}function Y(F){return F===45&&o===2?(e.consume(F),ie):F===60&&o===1?(e.consume(F),le):F===62&&o===4?(e.consume(F),L):F===63&&o===3?(e.consume(F),me):F===93&&o===5?(e.consume(F),he):!Me(F)||o!==6&&o!==7?F===null||Me(F)?(e.exit("htmlFlowData"),Z(F)):(e.consume(F),Y):(e.exit("htmlFlowData"),e.check(Xh,Be,Z)(F))}function Z(F){return e.check(Jh,$,Be)(F)}function $(F){return e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),ae}function ae(F){return F===null||Me(F)?Z(F):(e.enter("htmlFlowData"),Y(F))}function ie(F){return F===45?(e.consume(F),me):Y(F)}function le(F){return F===47?(e.consume(F),f="",be):Y(F)}function be(F){if(F===62){const ve=f.toLowerCase();return kd.includes(ve)?(e.consume(F),L):Y(F)}return Ar(F)&&f.length<8?(e.consume(F),f+=String.fromCharCode(F),be):Y(F)}function he(F){return F===93?(e.consume(F),me):Y(F)}function me(F){return F===62?(e.consume(F),L):F===45&&o===2?(e.consume(F),me):Y(F)}function L(F){return F===null||Me(F)?(e.exit("htmlFlowData"),Be(F)):(e.consume(F),L)}function Be(F){return e.exit("htmlFlow"),n(F)}}},Xh={partial:!0,tokenize:function(e,n,i){return function(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Ws,n,i)}}},Jh={partial:!0,tokenize:function(e,n,i){const a=this;return function(u){return Me(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o):i(u)};function o(u){return a.parser.lazy[a.now().line]?i(u):n(u)}}},qh={name:"htmlText",tokenize:function(e,n,i){const a=this;let o,u,f;return function(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),A};function A(L){return L===33?(e.consume(L),c):L===47?(e.consume(L),U):L===63?(e.consume(L),Q):Ar(L)?(e.consume(L),W):i(L)}function c(L){return L===45?(e.consume(L),d):L===91?(e.consume(L),u=0,k):Ar(L)?(e.consume(L),T):i(L)}function d(L){return L===45?(e.consume(L),y):i(L)}function h(L){return L===null?i(L):L===45?(e.consume(L),v):Me(L)?(f=h,be(L)):(e.consume(L),h)}function v(L){return L===45?(e.consume(L),y):h(L)}function y(L){return L===62?le(L):L===45?v(L):h(L)}function k(L){return L==="CDATA[".charCodeAt(u++)?(e.consume(L),u===6?C:k):i(L)}function C(L){return L===null?i(L):L===93?(e.consume(L),R):Me(L)?(f=C,be(L)):(e.consume(L),C)}function R(L){return L===93?(e.consume(L),E):C(L)}function E(L){return L===62?le(L):L===93?(e.consume(L),E):C(L)}function T(L){return L===null||L===62?le(L):Me(L)?(f=T,be(L)):(e.consume(L),T)}function Q(L){return L===null?i(L):L===63?(e.consume(L),M):Me(L)?(f=Q,be(L)):(e.consume(L),Q)}function M(L){return L===62?le(L):Q(L)}function U(L){return Ar(L)?(e.consume(L),j):i(L)}function j(L){return L===45||Sn(L)?(e.consume(L),j):N(L)}function N(L){return Me(L)?(f=N,be(L)):Xe(L)?(e.consume(L),N):le(L)}function W(L){return L===45||Sn(L)?(e.consume(L),W):L===47||L===62||ln(L)?ee(L):i(L)}function ee(L){return L===47?(e.consume(L),le):L===58||L===95||Ar(L)?(e.consume(L),G):Me(L)?(f=ee,be(L)):Xe(L)?(e.consume(L),ee):le(L)}function G(L){return L===45||L===46||L===58||L===95||Sn(L)?(e.consume(L),G):Y(L)}function Y(L){return L===61?(e.consume(L),Z):Me(L)?(f=Y,be(L)):Xe(L)?(e.consume(L),Y):ee(L)}function Z(L){return L===null||L===60||L===61||L===62||L===96?i(L):L===34||L===39?(e.consume(L),o=L,$):Me(L)?(f=Z,be(L)):Xe(L)?(e.consume(L),Z):(e.consume(L),ae)}function $(L){return L===o?(e.consume(L),o=void 0,ie):L===null?i(L):Me(L)?(f=$,be(L)):(e.consume(L),$)}function ae(L){return L===null||L===34||L===39||L===60||L===61||L===96?i(L):L===47||L===62||ln(L)?ee(L):(e.consume(L),ae)}function ie(L){return L===47||L===62||ln(L)?ee(L):i(L)}function le(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),n):i(L)}function be(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),he}function he(L){return Xe(L)?st(e,me,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):me(L)}function me(L){return e.enter("htmlTextData"),f(L)}}},Ec={name:"labelEnd",resolveAll:function(e){let n=-1;const i=[];for(;++n<e.length;){const a=e[n][1];if(i.push(e[n]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const o=a.type==="labelImage"?4:2;a.type="data",n+=o}}return e.length!==i.length&&ur(e,0,e.length,i),e},resolveTo:function(e,n){let i,a,o,u,f=e.length,A=0;for(;f--;)if(i=e[f][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[f][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[f][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=f,i.type!=="labelLink")){A=2;break}}else i.type==="labelEnd"&&(o=f);const c={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},d={type:"label",start:{...e[a][1].start},end:{...e[o][1].end}},h={type:"labelText",start:{...e[a+A+2][1].end},end:{...e[o-2][1].start}};return u=[["enter",c,n],["enter",d,n]],u=On(u,e.slice(a+1,a+A+3)),u=On(u,[["enter",h,n]]),u=On(u,xc(n.parser.constructs.insideSpan.null,e.slice(a+A+4,o-3),n)),u=On(u,[["exit",h,n],e[o-2],e[o-1],["exit",d,n]]),u=On(u,e.slice(o+1)),u=On(u,[["exit",c,n]]),ur(e,a,e.length,u),e},tokenize:function(e,n,i){const a=this;let o,u,f=a.events.length;for(;f--;)if((a.events[f][1].type==="labelImage"||a.events[f][1].type==="labelLink")&&!a.events[f][1]._balanced){o=a.events[f][1];break}return function(v){return o?o._inactive?h(v):(u=a.parser.defined.includes(Ca(a.sliceSerialize({start:o.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(v),e.exit("labelMarker"),e.exit("labelEnd"),A):i(v)};function A(v){return v===40?e.attempt(Kh,d,u?d:h)(v):v===91?e.attempt($h,d,u?c:h)(v):u?d(v):h(v)}function c(v){return e.attempt(Zh,d,h)(v)}function d(v){return n(v)}function h(v){return o._balanced=!0,i(v)}}},Kh={tokenize:function(e,n,i){return function(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),a};function a(h){return ln(h)?_i(e,o)(h):o(h)}function o(h){return h===41?d(h):wd(e,u,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function u(h){return ln(h)?_i(e,A)(h):d(h)}function f(h){return i(h)}function A(h){return h===34||h===39||h===40?Sd(e,c,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):d(h)}function c(h){return ln(h)?_i(e,d)(h):d(h)}function d(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),n):i(h)}}},$h={tokenize:function(e,n,i){const a=this;return function(f){return xd.call(a,e,o,u,"reference","referenceMarker","referenceString")(f)};function o(f){return a.parser.defined.includes(Ca(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?n(f):i(f)}function u(f){return i(f)}}},Zh={tokenize:function(e,n,i){return function(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),a};function a(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),n):i(o)}}},eg={name:"labelStartImage",resolveAll:Ec.resolveAll,tokenize:function(e,n,i){const a=this;return function(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),o};function o(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),u):i(f)}function u(f){return f===94&&"_hiddenFootnoteSupport"in a.parser.constructs?i(f):n(f)}}},tg={name:"labelStartLink",resolveAll:Ec.resolveAll,tokenize:function(e,n,i){const a=this;return function(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),o};function o(u){return u===94&&"_hiddenFootnoteSupport"in a.parser.constructs?i(u):n(u)}}},Cc={name:"lineEnding",tokenize:function(e,n){return function(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),st(e,n,"linePrefix")}}},Ys={name:"thematicBreak",tokenize:function(e,n,i){let a,o=0;return function(A){return e.enter("thematicBreak"),function(c){return a=c,u(c)}(A)};function u(A){return A===a?(e.enter("thematicBreakSequence"),f(A)):o>=3&&(A===null||Me(A))?(e.exit("thematicBreak"),n(A)):i(A)}function f(A){return A===a?(e.consume(A),o++,f):(e.exit("thematicBreakSequence"),Xe(A)?st(e,u,"whitespace")(A):u(A))}}},cn={continuation:{tokenize:function(e,n,i){const a=this;return a.containerState._closeFlow=void 0,e.check(Ws,function(u){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,st(e,n,"listItemIndent",a.containerState.size+1)(u)},function(u){return a.containerState.furtherBlankLines||!Xe(u)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,o(u)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(rg,n,o)(u))});function o(u){return a.containerState._closeFlow=!0,a.interrupt=void 0,st(e,e.attempt(cn,n,i),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,n,i){const a=this,o=a.events[a.events.length-1];let u=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,f=0;return function(y){const k=a.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(k==="listUnordered"?!a.containerState.marker||y===a.containerState.marker:wc(y)){if(a.containerState.type||(a.containerState.type=k,e.enter(k,{_container:!0})),k==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(Ys,i,c)(y):c(y);if(!a.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),A(y)}return i(y)};function A(y){return wc(y)&&++f<10?(e.consume(y),A):(!a.interrupt||f<2)&&(a.containerState.marker?y===a.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),c(y)):i(y)}function c(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||y,e.check(Ws,a.interrupt?i:d,e.attempt(ng,v,h))}function d(y){return a.containerState.initialBlankLine=!0,u++,v(y)}function h(y){return Xe(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),v):i(y)}function v(y){return a.containerState.size=u+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(y)}}},ng={partial:!0,tokenize:function(e,n,i){const a=this;return st(e,function(o){const u=a.events[a.events.length-1];return!Xe(o)&&u&&u[1].type==="listItemPrefixWhitespace"?n(o):i(o)},"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},rg={partial:!0,tokenize:function(e,n,i){const a=this;return st(e,function(o){const u=a.events[a.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===a.containerState.size?n(o):i(o)},"listItemIndent",a.containerState.size+1)}},Ed={name:"setextUnderline",resolveTo:function(e,n){let i,a,o,u=e.length;for(;u--;)if(e[u][0]==="enter"){if(e[u][1].type==="content"){i=u;break}e[u][1].type==="paragraph"&&(a=u)}else e[u][1].type==="content"&&e.splice(u,1),!o&&e[u][1].type==="definition"&&(o=u);const f={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",o?(e.splice(a,0,["enter",f,n]),e.splice(o+1,0,["exit",e[i][1],n]),e[i][1].end={...e[o][1].end}):e[i][1]=f,e.push(["exit",f,n]),e},tokenize:function(e,n,i){const a=this;let o;return function(A){let c,d=a.events.length;for(;d--;)if(a.events[d][1].type!=="lineEnding"&&a.events[d][1].type!=="linePrefix"&&a.events[d][1].type!=="content"){c=a.events[d][1].type==="paragraph";break}return a.parser.lazy[a.now().line]||!a.interrupt&&!c?i(A):(e.enter("setextHeadingLine"),o=A,function(h){return e.enter("setextHeadingLineSequence"),u(h)}(A))};function u(A){return A===o?(e.consume(A),u):(e.exit("setextHeadingLineSequence"),Xe(A)?st(e,f,"lineSuffix")(A):f(A))}function f(A){return A===null||Me(A)?(e.exit("setextHeadingLine"),n(A)):i(A)}}},og={tokenize:function(e){const n=this,i=e.attempt(Ws,function(o){return o===null?void e.consume(o):(e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),n.currentConstruct=void 0,i)},e.attempt(this.parser.constructs.flowInitial,a,st(e,e.attempt(this.parser.constructs.flow,a,e.attempt(Nh,a)),"linePrefix")));return i;function a(o){if(o!==null)return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n.currentConstruct=void 0,i;e.consume(o)}}},ag={resolveAll:Pd()},ig=Cd("string"),sg=Cd("text");function Cd(e){return{resolveAll:Pd(e==="text"?lg:void 0),tokenize:function(n){const i=this,a=this.parser.constructs[e],o=n.attempt(a,u,f);return u;function u(d){return c(d)?o(d):f(d)}function f(d){if(d!==null)return n.enter("data"),n.consume(d),A;n.consume(d)}function A(d){return c(d)?(n.exit("data"),o(d)):(n.consume(d),A)}function c(d){if(d===null)return!0;const h=a[d];let v=-1;if(h)for(;++v<h.length;){const y=h[v];if(!y.previous||y.previous.call(i,i.previous))return!0}return!1}}}}function Pd(e){return function(n,i){let a,o=-1;for(;++o<=n.length;)a===void 0?n[o]&&n[o][1].type==="data"&&(a=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==a+2&&(n[a][1].end=n[o-1][1].end,n.splice(a+2,o-a-2),o=a+2),a=void 0);return e?e(n,i):n}}function lg(e,n){let i=0;for(;++i<=e.length;)if((i===e.length||e[i][1].type==="lineEnding")&&e[i-1][1].type==="data"){const a=e[i-1][1],o=n.sliceStream(a);let u,f=o.length,A=-1,c=0;for(;f--;){const d=o[f];if(typeof d=="string"){for(A=d.length;d.charCodeAt(A-1)===32;)c++,A--;if(A)break;A=-1}else if(d===-2)u=!0,c++;else if(d!==-1){f++;break}}if(c){const d={type:i===e.length||u||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:f?A:a.start._bufferIndex+A,_index:a.start._index+f,line:a.end.line,column:a.end.column-c,offset:a.end.offset-c},end:{...a.end}};a.end={...d.start},a.start.offset===a.end.offset?Object.assign(a,d):(e.splice(i,0,["enter",d,n],["exit",d,n]),i+=2)}i++}return e}const cg={42:cn,43:cn,45:cn,48:cn,49:cn,50:cn,51:cn,52:cn,53:cn,54:cn,55:cn,56:cn,57:cn,62:hd},ug={91:zh},Ag={[-2]:kc,[-1]:kc,32:kc},dg={35:Yh,42:Ys,45:[Ed,Ys],60:Vh,61:Ed,95:Ys,96:yd,126:yd},fg={38:md,92:gd},pg={[-5]:Cc,[-4]:Cc,[-3]:Cc,33:eg,38:md,42:Sc,60:[_h,qh],91:tg,92:[Wh,gd],93:Ec,95:Sc,96:Fh},hg={null:[Sc,ag]},gg=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:ug,disable:{null:[]},document:cg,flow:dg,flowInitial:Ag,insideSpan:hg,string:fg,text:pg},Symbol.toStringTag,{value:"Module"}));function mg(e,n,i){let a={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const o={},u=[];let f=[],A=[];const c={attempt:R(function(Q,M){E(Q,M.from)}),check:R(C),consume:function(Q){Me(Q)?(a.line++,a.column=1,a.offset+=Q===-3?2:1,T()):Q!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===f[a._index].length&&(a._bufferIndex=-1,a._index++)),d.previous=Q},enter:function(Q,M){const U=M||{};return U.type=Q,U.start=y(),d.events.push(["enter",U,d]),A.push(U),U},exit:function(Q){const M=A.pop();return M.end=y(),d.events.push(["exit",M,d]),M},interrupt:R(C,{interrupt:!0})},d={code:null,containerState:{},defineSkip:function(Q){o[Q.line]=Q.column,T()},events:[],now:y,parser:e,previous:null,sliceSerialize:function(Q,M){return function(U,j){let N=-1;const W=[];let ee;for(;++N<U.length;){const G=U[N];let Y;if(typeof G=="string")Y=G;else switch(G){case-5:Y="\r";break;case-4:Y=`
126
126
  `;break;case-3:Y=`\r
127
- `;break;case-2:Y=j?" ":" ";break;case-1:if(!j&&ee)continue;Y=" ";break;default:Y=String.fromCharCode(G)}ee=G===-2,W.push(Y)}return W.join("")}(v(Q),M)},sliceStream:v,write:function(Q){return f=On(f,Q),function(){let M;for(;a._index<f.length;){const U=f[a._index];if(typeof U=="string")for(M=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===M&&a._bufferIndex<U.length;)k(U.charCodeAt(a._bufferIndex));else k(U)}}(),f[f.length-1]!==null?[]:(E(n,0),d.events=xc(u,d.events,d),d.events)}};let h=n.tokenize.call(d,c);return n.resolveAll&&u.push(n),d;function v(Q){return function(M,U){const j=U.start._index,N=U.start._bufferIndex,W=U.end._index,ee=U.end._bufferIndex;let G;if(j===W)G=[M[j].slice(N,ee)];else{if(G=M.slice(j,W),N>-1){const Y=G[0];typeof Y=="string"?G[0]=Y.slice(N):G.shift()}ee>0&&G.push(M[W].slice(0,ee))}return G}(f,Q)}function y(){const{_bufferIndex:Q,_index:M,line:U,column:j,offset:N}=a;return{_bufferIndex:Q,_index:M,line:U,column:j,offset:N}}function k(Q){h=h(Q)}function C(Q,M){M.restore()}function R(Q,M){return function(U,j,N){let W,ee,G,Y;return Array.isArray(U)?Z(U):"tokenize"in U?Z([U]):function(le){return be;function be(he){const me=he!==null&&le[he],L=he!==null&&le.null;return Z([...Array.isArray(me)?me:me?[me]:[],...Array.isArray(L)?L:L?[L]:[]])(he)}}(U);function Z(le){return W=le,ee=0,le.length===0?N:$(le[ee])}function $(le){return function(be){return Y=function(){const he=y(),me=d.previous,L=d.currentConstruct,Be=d.events.length,F=Array.from(A);return{from:Be,restore:ve};function ve(){a=he,d.previous=me,d.currentConstruct=L,d.events.length=Be,A=F,T()}}(),G=le,le.partial||(d.currentConstruct=le),le.name&&d.parser.constructs.disable.null.includes(le.name)?ie():le.tokenize.call(M?Object.assign(Object.create(d),M):d,c,ae,ie)(be)}}function ae(le){return Q(G,Y),j}function ie(le){return Y.restore(),++ee<W.length?$(W[ee]):N}}}function E(Q,M){Q.resolveAll&&!u.includes(Q)&&u.push(Q),Q.resolve&&ur(d.events,M,d.events.length-M,Q.resolve(d.events.slice(M),d)),Q.resolveTo&&(d.events=Q.resolveTo(d.events,d))}function T(){a.line in o&&a.column<2&&(a.column=o[a.line],a.offset+=o[a.line]-1)}}const Td=/[\0\t\n\r]/g,vg=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function yg(e,n,i){if(n)return n;if(i.charCodeAt(0)===35){const a=i.charCodeAt(1),o=a===120||a===88;return Ad(i.slice(o?2:1),o?16:10)}return yc(i)||e}const Dd={}.hasOwnProperty;function bg(e,n,i){return typeof n!="string"&&(i=n,n=void 0),function(a){const o={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(Et),autolinkProtocol:$,autolinkEmail:$,atxHeading:c(lt),blockQuote:c(Ke),characterEscape:$,characterReference:$,codeFenced:c(ze),codeFencedFenceInfo:d,codeFencedFenceMeta:d,codeIndented:c(ze,d),codeText:c(vt,d),codeTextData:$,data:$,codeFlowValue:$,definition:c(It),definitionDestinationString:d,definitionLabelString:d,definitionTitleString:d,emphasis:c(Ht),hardBreakEscape:c(qe),hardBreakTrailing:c(qe),htmlFlow:c(dt,d),htmlFlowData:$,htmlText:c(dt,d),htmlTextData:$,image:c(Pt),label:d,link:c(Et),listItem:c(Ze),listItemValue:R,listOrdered:c(ut,C),listUnordered:c(ut),paragraph:c(kn),reference:ye,referenceString:d,resourceDestinationString:d,resourceTitleString:d,setextHeading:c(lt),strong:c(Nt),thematicBreak:c(et)},exit:{atxHeading:v(),atxHeadingSequence:ee,autolink:v(),autolinkEmail:Dt,autolinkProtocol:Je,blockQuote:v(),characterEscapeValue:ae,characterReferenceMarkerHexadecimal:Fe,characterReferenceMarkerNumeric:Fe,characterReferenceValue:Re,characterReference:Ue,codeFenced:v(M),codeFencedFence:Q,codeFencedFenceInfo:E,codeFencedFenceMeta:T,codeFlowValue:ae,codeIndented:v(U),codeText:v(me),codeTextData:ae,data:ae,definition:v(),definitionDestinationString:W,definitionLabelString:j,definitionTitleString:N,emphasis:v(),hardBreakEscape:v(le),hardBreakTrailing:v(le),htmlFlow:v(be),htmlFlowData:ae,htmlText:v(he),htmlTextData:ae,image:v(Be),label:ve,labelText:F,lineEnding:ie,link:v(L),listItem:v(),listOrdered:v(),listUnordered:v(),paragraph:v(),referenceString:De,resourceDestinationString:fe,resourceTitleString:ce,resource:ge,setextHeading:v(Z),setextHeadingLineSequence:Y,setextHeadingText:G,strong:v(),thematicBreak:v()}};Id(o,(a||{}).mdastExtensions||[]);const u={};return f;function f(ne){let xe={type:"root",children:[]};const Se={stack:[xe],tokenStack:[],config:o,enter:h,exit:y,buffer:d,resume:k,data:u},_e=[];let Oe=-1;for(;++Oe<ne.length;)(ne[Oe][1].type==="listOrdered"||ne[Oe][1].type==="listUnordered")&&(ne[Oe][0]==="enter"?_e.push(Oe):Oe=A(ne,_e.pop(),Oe));for(Oe=-1;++Oe<ne.length;){const tt=o[ne[Oe][0]];Dd.call(tt,ne[Oe][1].type)&&tt[ne[Oe][1].type].call(Object.assign({sliceSerialize:ne[Oe][2].sliceSerialize},Se),ne[Oe][1])}if(Se.tokenStack.length>0){const tt=Se.tokenStack[Se.tokenStack.length-1];(tt[1]||Bd).call(Se,void 0,tt[0])}for(xe.position={start:eo(ne.length>0?ne[0][1].start:{line:1,column:1,offset:0}),end:eo(ne.length>0?ne[ne.length-2][1].end:{line:1,column:1,offset:0})},Oe=-1;++Oe<o.transforms.length;)xe=o.transforms[Oe](xe)||xe;return xe}function A(ne,xe,Se){let _e,Oe,tt,ft,pt=xe-1,qt=-1,Jn=!1;for(;++pt<=Se;){const Ve=ne[pt];switch(Ve[1].type){case"listUnordered":case"listOrdered":case"blockQuote":Ve[0]==="enter"?qt++:qt--,ft=void 0;break;case"lineEndingBlank":Ve[0]==="enter"&&(_e&&!ft&&!qt&&!tt&&(tt=pt),ft=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ft=void 0}if(!qt&&Ve[0]==="enter"&&Ve[1].type==="listItemPrefix"||qt===-1&&Ve[0]==="exit"&&(Ve[1].type==="listUnordered"||Ve[1].type==="listOrdered")){if(_e){let wt=pt;for(Oe=void 0;wt--;){const yt=ne[wt];if(yt[1].type==="lineEnding"||yt[1].type==="lineEndingBlank"){if(yt[0]==="exit")continue;Oe&&(ne[Oe][1].type="lineEndingBlank",Jn=!0),yt[1].type="lineEnding",Oe=wt}else if(yt[1].type!=="linePrefix"&&yt[1].type!=="blockQuotePrefix"&&yt[1].type!=="blockQuotePrefixWhitespace"&&yt[1].type!=="blockQuoteMarker"&&yt[1].type!=="listItemIndent")break}tt&&(!Oe||tt<Oe)&&(_e._spread=!0),_e.end=Object.assign({},Oe?ne[Oe][1].start:Ve[1].end),ne.splice(Oe||pt,0,["exit",_e,Ve[2]]),pt++,Se++}if(Ve[1].type==="listItemPrefix"){const wt={type:"listItem",_spread:!1,start:Object.assign({},Ve[1].start),end:void 0};_e=wt,ne.splice(pt,0,["enter",wt,Ve[2]]),pt++,Se++,tt=void 0,ft=!0}}}return ne[xe][1]._spread=Jn,Se}function c(ne,xe){return Se;function Se(_e){h.call(this,ne(_e),_e),xe&&xe.call(this,_e)}}function d(){this.stack.push({type:"fragment",children:[]})}function h(ne,xe,Se){this.stack[this.stack.length-1].children.push(ne),this.stack.push(ne),this.tokenStack.push([xe,Se||void 0]),ne.position={start:eo(xe.start),end:void 0}}function v(ne){return xe;function xe(Se){ne&&ne.call(this,Se),y.call(this,Se)}}function y(ne,xe){const Se=this.stack.pop(),_e=this.tokenStack.pop();if(!_e)throw new Error("Cannot close `"+ne.type+"` ("+Mi({start:ne.start,end:ne.end})+"): it’s not open");_e[0].type!==ne.type&&(xe?xe.call(this,ne,_e[0]):(_e[1]||Bd).call(this,ne,_e[0])),Se.position.end=eo(ne.end)}function k(){return function(ne){return sd(ne,typeof js.includeImageAlt!="boolean"||js.includeImageAlt,typeof js.includeHtml!="boolean"||js.includeHtml)}(this.stack.pop())}function C(){this.data.expectingFirstListItemValue=!0}function R(ne){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(ne),10),this.data.expectingFirstListItemValue=void 0)}function E(){const ne=this.resume();this.stack[this.stack.length-1].lang=ne}function T(){const ne=this.resume();this.stack[this.stack.length-1].meta=ne}function Q(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function M(){const ne=this.resume();this.stack[this.stack.length-1].value=ne.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function U(){const ne=this.resume();this.stack[this.stack.length-1].value=ne.replace(/(\r?\n|\r)$/g,"")}function j(ne){const xe=this.resume(),Se=this.stack[this.stack.length-1];Se.label=xe,Se.identifier=Ca(this.sliceSerialize(ne)).toLowerCase()}function N(){const ne=this.resume();this.stack[this.stack.length-1].title=ne}function W(){const ne=this.resume();this.stack[this.stack.length-1].url=ne}function ee(ne){const xe=this.stack[this.stack.length-1];if(!xe.depth){const Se=this.sliceSerialize(ne).length;xe.depth=Se}}function G(){this.data.setextHeadingSlurpLineEnding=!0}function Y(ne){this.stack[this.stack.length-1].depth=this.sliceSerialize(ne).codePointAt(0)===61?1:2}function Z(){this.data.setextHeadingSlurpLineEnding=void 0}function $(ne){const xe=this.stack[this.stack.length-1].children;let Se=xe[xe.length-1];(!Se||Se.type!=="text")&&(Se=Kt(),Se.position={start:eo(ne.start),end:void 0},xe.push(Se)),this.stack.push(Se)}function ae(ne){const xe=this.stack.pop();xe.value+=this.sliceSerialize(ne),xe.position.end=eo(ne.end)}function ie(ne){const xe=this.stack[this.stack.length-1];if(this.data.atHardBreak)return xe.children[xe.children.length-1].position.end=eo(ne.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&o.canContainEols.includes(xe.type)&&($.call(this,ne),ae.call(this,ne))}function le(){this.data.atHardBreak=!0}function be(){const ne=this.resume();this.stack[this.stack.length-1].value=ne}function he(){const ne=this.resume();this.stack[this.stack.length-1].value=ne}function me(){const ne=this.resume();this.stack[this.stack.length-1].value=ne}function L(){const ne=this.stack[this.stack.length-1];if(this.data.inReference){const xe=this.data.referenceType||"shortcut";ne.type+="Reference",ne.referenceType=xe,delete ne.url,delete ne.title}else delete ne.identifier,delete ne.label;this.data.referenceType=void 0}function Be(){const ne=this.stack[this.stack.length-1];if(this.data.inReference){const xe=this.data.referenceType||"shortcut";ne.type+="Reference",ne.referenceType=xe,delete ne.url,delete ne.title}else delete ne.identifier,delete ne.label;this.data.referenceType=void 0}function F(ne){const xe=this.sliceSerialize(ne),Se=this.stack[this.stack.length-2];Se.label=function(_e){return _e.replace(vg,yg)}(xe),Se.identifier=Ca(xe).toLowerCase()}function ve(){const ne=this.stack[this.stack.length-1],xe=this.resume(),Se=this.stack[this.stack.length-1];if(this.data.inReference=!0,Se.type==="link"){const _e=ne.children;Se.children=_e}else Se.alt=xe}function fe(){const ne=this.resume();this.stack[this.stack.length-1].url=ne}function ce(){const ne=this.resume();this.stack[this.stack.length-1].title=ne}function ge(){this.data.inReference=void 0}function ye(){this.data.referenceType="collapsed"}function De(ne){const xe=this.resume(),Se=this.stack[this.stack.length-1];Se.label=xe,Se.identifier=Ca(this.sliceSerialize(ne)).toLowerCase(),this.data.referenceType="full"}function Fe(ne){this.data.characterReferenceType=ne.type}function Re(ne){const xe=this.sliceSerialize(ne),Se=this.data.characterReferenceType;let _e;Se?(_e=Ad(xe,Se==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):_e=yc(xe),this.stack[this.stack.length-1].value+=_e}function Ue(ne){this.stack.pop().position.end=eo(ne.end)}function Je(ne){ae.call(this,ne),this.stack[this.stack.length-1].url=this.sliceSerialize(ne)}function Dt(ne){ae.call(this,ne),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(ne)}function Ke(){return{type:"blockquote",children:[]}}function ze(){return{type:"code",lang:null,meta:null,value:""}}function vt(){return{type:"inlineCode",value:""}}function It(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ht(){return{type:"emphasis",children:[]}}function lt(){return{type:"heading",depth:0,children:[]}}function qe(){return{type:"break"}}function dt(){return{type:"html",value:""}}function Pt(){return{type:"image",title:null,url:"",alt:null}}function Et(){return{type:"link",title:null,url:"",children:[]}}function ut(ne){return{type:"list",ordered:ne.type==="listOrdered",start:null,spread:ne._spread,children:[]}}function Ze(ne){return{type:"listItem",spread:ne._spread,checked:null,children:[]}}function kn(){return{type:"paragraph",children:[]}}function Nt(){return{type:"strong",children:[]}}function Kt(){return{type:"text",value:""}}function et(){return{type:"thematicBreak"}}}(i)(function(a){for(;!bd(a););return a}(function(a){const o={constructs:Eh([gg,...(a||{}).extensions||[]]),content:u(Rh),defined:[],document:u(Oh),flow:u(og),lazy:{},string:u(ig),text:u(sg)};return o;function u(f){return function(A){return mg(o,f,A)}}}(i).document().write(function(){let a,o=1,u="",f=!0;return function(A,c,d){const h=[];let v,y,k,C,R;for(A=u+(typeof A=="string"?A.toString():new TextDecoder(c||void 0).decode(A)),k=0,u="",f&&(A.charCodeAt(0)===65279&&k++,f=void 0);k<A.length;){if(Td.lastIndex=k,v=Td.exec(A),C=v&&v.index!==void 0?v.index:A.length,R=A.charCodeAt(C),!v){u=A.slice(k);break}if(R===10&&k===C&&a)h.push(-3),a=void 0;else switch(a&&(h.push(-5),a=void 0),k<C&&(h.push(A.slice(k,C)),o+=C-k),R){case 0:h.push(65533),o++;break;case 9:for(y=4*Math.ceil(o/4),h.push(-2);o++<y;)h.push(-1);break;case 10:h.push(-4),o=1;break;default:a=!0,o=1}k=C+1}return d&&(a&&h.push(-5),u&&h.push(u),h.push(null)),h}}()(e,n,!0))))}function eo(e){return{line:e.line,column:e.column,offset:e.offset}}function Id(e,n){let i=-1;for(;++i<n.length;){const a=n[i];Array.isArray(a)?Id(e,a):wg(e,a)}}function wg(e,n){let i;for(i in n)if(Dd.call(n,i))switch(i){case"canContainEols":{const a=n[i];a&&e[i].push(...a);break}case"transforms":{const a=n[i];a&&e[i].push(...a);break}case"enter":case"exit":{const a=n[i];a&&Object.assign(e[i],a);break}}}function Bd(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Mi({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Mi({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Mi({start:n.start,end:n.end})+") is still open")}function xg(e){const n=this;n.parser=function(i){return bg(i,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Md(e,n){const i=n.referenceType;let a="]";if(i==="collapsed"?a+="[]":i==="full"&&(a+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+a}];const o=e.all(n),u=o[0];u&&u.type==="text"?u.value="["+u.value:o.unshift({type:"text",value:"["});const f=o[o.length-1];return f&&f.type==="text"?f.value+=a:o.push({type:"text",value:a}),o}function Rd(e){return e.spread??e.children.length>1}function Sg(e){const n=String(e),i=/\r?\n|\r/g;let a=i.exec(n),o=0;const u=[];for(;a;)u.push(Od(n.slice(o,a.index),o>0,!0),a[0]),o=a.index+a[0].length,a=i.exec(n);return u.push(Od(n.slice(o),o>0,!1)),u.join("")}function Od(e,n,i){let a=0,o=e.length;if(n){let u=e.codePointAt(a);for(;u===9||u===32;)a++,u=e.codePointAt(a)}if(i){let u=e.codePointAt(o-1);for(;u===9||u===32;)o--,u=e.codePointAt(o-1)}return o>a?e.slice(a,o):""}const kg={blockquote:function(e,n){const i={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,i),e.applyData(n,i)},break:function(e,n){const i={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,i),[e.applyData(n,i),{type:"text",value:`
127
+ `;break;case-2:Y=j?" ":" ";break;case-1:if(!j&&ee)continue;Y=" ";break;default:Y=String.fromCharCode(G)}ee=G===-2,W.push(Y)}return W.join("")}(v(Q),M)},sliceStream:v,write:function(Q){return f=On(f,Q),function(){let M;for(;a._index<f.length;){const U=f[a._index];if(typeof U=="string")for(M=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===M&&a._bufferIndex<U.length;)k(U.charCodeAt(a._bufferIndex));else k(U)}}(),f[f.length-1]!==null?[]:(E(n,0),d.events=xc(u,d.events,d),d.events)}};let h=n.tokenize.call(d,c);return n.resolveAll&&u.push(n),d;function v(Q){return function(M,U){const j=U.start._index,N=U.start._bufferIndex,W=U.end._index,ee=U.end._bufferIndex;let G;if(j===W)G=[M[j].slice(N,ee)];else{if(G=M.slice(j,W),N>-1){const Y=G[0];typeof Y=="string"?G[0]=Y.slice(N):G.shift()}ee>0&&G.push(M[W].slice(0,ee))}return G}(f,Q)}function y(){const{_bufferIndex:Q,_index:M,line:U,column:j,offset:N}=a;return{_bufferIndex:Q,_index:M,line:U,column:j,offset:N}}function k(Q){h=h(Q)}function C(Q,M){M.restore()}function R(Q,M){return function(U,j,N){let W,ee,G,Y;return Array.isArray(U)?Z(U):"tokenize"in U?Z([U]):function(le){return be;function be(he){const me=he!==null&&le[he],L=he!==null&&le.null;return Z([...Array.isArray(me)?me:me?[me]:[],...Array.isArray(L)?L:L?[L]:[]])(he)}}(U);function Z(le){return W=le,ee=0,le.length===0?N:$(le[ee])}function $(le){return function(be){return Y=function(){const he=y(),me=d.previous,L=d.currentConstruct,Be=d.events.length,F=Array.from(A);return{from:Be,restore:ve};function ve(){a=he,d.previous=me,d.currentConstruct=L,d.events.length=Be,A=F,T()}}(),G=le,le.partial||(d.currentConstruct=le),le.name&&d.parser.constructs.disable.null.includes(le.name)?ie():le.tokenize.call(M?Object.assign(Object.create(d),M):d,c,ae,ie)(be)}}function ae(le){return Q(G,Y),j}function ie(le){return Y.restore(),++ee<W.length?$(W[ee]):N}}}function E(Q,M){Q.resolveAll&&!u.includes(Q)&&u.push(Q),Q.resolve&&ur(d.events,M,d.events.length-M,Q.resolve(d.events.slice(M),d)),Q.resolveTo&&(d.events=Q.resolveTo(d.events,d))}function T(){a.line in o&&a.column<2&&(a.column=o[a.line],a.offset+=o[a.line]-1)}}const Td=/[\0\t\n\r]/g,vg=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function yg(e,n,i){if(n)return n;if(i.charCodeAt(0)===35){const a=i.charCodeAt(1),o=a===120||a===88;return Ad(i.slice(o?2:1),o?16:10)}return yc(i)||e}const Dd={}.hasOwnProperty;function bg(e,n,i){return typeof n!="string"&&(i=n,n=void 0),function(a){const o={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(Et),autolinkProtocol:$,autolinkEmail:$,atxHeading:c(lt),blockQuote:c(qe),characterEscape:$,characterReference:$,codeFenced:c(ze),codeFencedFenceInfo:d,codeFencedFenceMeta:d,codeIndented:c(ze,d),codeText:c(vt,d),codeTextData:$,data:$,codeFlowValue:$,definition:c(It),definitionDestinationString:d,definitionLabelString:d,definitionTitleString:d,emphasis:c(Ht),hardBreakEscape:c(Ke),hardBreakTrailing:c(Ke),htmlFlow:c(dt,d),htmlFlowData:$,htmlText:c(dt,d),htmlTextData:$,image:c(Pt),label:d,link:c(Et),listItem:c(Ze),listItemValue:R,listOrdered:c(ut,C),listUnordered:c(ut),paragraph:c(kn),reference:ye,referenceString:d,resourceDestinationString:d,resourceTitleString:d,setextHeading:c(lt),strong:c(Nt),thematicBreak:c(et)},exit:{atxHeading:v(),atxHeadingSequence:ee,autolink:v(),autolinkEmail:Dt,autolinkProtocol:Je,blockQuote:v(),characterEscapeValue:ae,characterReferenceMarkerHexadecimal:Fe,characterReferenceMarkerNumeric:Fe,characterReferenceValue:Re,characterReference:Ue,codeFenced:v(M),codeFencedFence:Q,codeFencedFenceInfo:E,codeFencedFenceMeta:T,codeFlowValue:ae,codeIndented:v(U),codeText:v(me),codeTextData:ae,data:ae,definition:v(),definitionDestinationString:W,definitionLabelString:j,definitionTitleString:N,emphasis:v(),hardBreakEscape:v(le),hardBreakTrailing:v(le),htmlFlow:v(be),htmlFlowData:ae,htmlText:v(he),htmlTextData:ae,image:v(Be),label:ve,labelText:F,lineEnding:ie,link:v(L),listItem:v(),listOrdered:v(),listUnordered:v(),paragraph:v(),referenceString:De,resourceDestinationString:fe,resourceTitleString:ce,resource:ge,setextHeading:v(Z),setextHeadingLineSequence:Y,setextHeadingText:G,strong:v(),thematicBreak:v()}};Id(o,(a||{}).mdastExtensions||[]);const u={};return f;function f(ne){let xe={type:"root",children:[]};const Se={stack:[xe],tokenStack:[],config:o,enter:h,exit:y,buffer:d,resume:k,data:u},_e=[];let Oe=-1;for(;++Oe<ne.length;)(ne[Oe][1].type==="listOrdered"||ne[Oe][1].type==="listUnordered")&&(ne[Oe][0]==="enter"?_e.push(Oe):Oe=A(ne,_e.pop(),Oe));for(Oe=-1;++Oe<ne.length;){const tt=o[ne[Oe][0]];Dd.call(tt,ne[Oe][1].type)&&tt[ne[Oe][1].type].call(Object.assign({sliceSerialize:ne[Oe][2].sliceSerialize},Se),ne[Oe][1])}if(Se.tokenStack.length>0){const tt=Se.tokenStack[Se.tokenStack.length-1];(tt[1]||Bd).call(Se,void 0,tt[0])}for(xe.position={start:eo(ne.length>0?ne[0][1].start:{line:1,column:1,offset:0}),end:eo(ne.length>0?ne[ne.length-2][1].end:{line:1,column:1,offset:0})},Oe=-1;++Oe<o.transforms.length;)xe=o.transforms[Oe](xe)||xe;return xe}function A(ne,xe,Se){let _e,Oe,tt,ft,pt=xe-1,Kt=-1,Jn=!1;for(;++pt<=Se;){const Ve=ne[pt];switch(Ve[1].type){case"listUnordered":case"listOrdered":case"blockQuote":Ve[0]==="enter"?Kt++:Kt--,ft=void 0;break;case"lineEndingBlank":Ve[0]==="enter"&&(_e&&!ft&&!Kt&&!tt&&(tt=pt),ft=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ft=void 0}if(!Kt&&Ve[0]==="enter"&&Ve[1].type==="listItemPrefix"||Kt===-1&&Ve[0]==="exit"&&(Ve[1].type==="listUnordered"||Ve[1].type==="listOrdered")){if(_e){let wt=pt;for(Oe=void 0;wt--;){const yt=ne[wt];if(yt[1].type==="lineEnding"||yt[1].type==="lineEndingBlank"){if(yt[0]==="exit")continue;Oe&&(ne[Oe][1].type="lineEndingBlank",Jn=!0),yt[1].type="lineEnding",Oe=wt}else if(yt[1].type!=="linePrefix"&&yt[1].type!=="blockQuotePrefix"&&yt[1].type!=="blockQuotePrefixWhitespace"&&yt[1].type!=="blockQuoteMarker"&&yt[1].type!=="listItemIndent")break}tt&&(!Oe||tt<Oe)&&(_e._spread=!0),_e.end=Object.assign({},Oe?ne[Oe][1].start:Ve[1].end),ne.splice(Oe||pt,0,["exit",_e,Ve[2]]),pt++,Se++}if(Ve[1].type==="listItemPrefix"){const wt={type:"listItem",_spread:!1,start:Object.assign({},Ve[1].start),end:void 0};_e=wt,ne.splice(pt,0,["enter",wt,Ve[2]]),pt++,Se++,tt=void 0,ft=!0}}}return ne[xe][1]._spread=Jn,Se}function c(ne,xe){return Se;function Se(_e){h.call(this,ne(_e),_e),xe&&xe.call(this,_e)}}function d(){this.stack.push({type:"fragment",children:[]})}function h(ne,xe,Se){this.stack[this.stack.length-1].children.push(ne),this.stack.push(ne),this.tokenStack.push([xe,Se||void 0]),ne.position={start:eo(xe.start),end:void 0}}function v(ne){return xe;function xe(Se){ne&&ne.call(this,Se),y.call(this,Se)}}function y(ne,xe){const Se=this.stack.pop(),_e=this.tokenStack.pop();if(!_e)throw new Error("Cannot close `"+ne.type+"` ("+Mi({start:ne.start,end:ne.end})+"): it’s not open");_e[0].type!==ne.type&&(xe?xe.call(this,ne,_e[0]):(_e[1]||Bd).call(this,ne,_e[0])),Se.position.end=eo(ne.end)}function k(){return function(ne){return sd(ne,typeof js.includeImageAlt!="boolean"||js.includeImageAlt,typeof js.includeHtml!="boolean"||js.includeHtml)}(this.stack.pop())}function C(){this.data.expectingFirstListItemValue=!0}function R(ne){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(ne),10),this.data.expectingFirstListItemValue=void 0)}function E(){const ne=this.resume();this.stack[this.stack.length-1].lang=ne}function T(){const ne=this.resume();this.stack[this.stack.length-1].meta=ne}function Q(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function M(){const ne=this.resume();this.stack[this.stack.length-1].value=ne.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function U(){const ne=this.resume();this.stack[this.stack.length-1].value=ne.replace(/(\r?\n|\r)$/g,"")}function j(ne){const xe=this.resume(),Se=this.stack[this.stack.length-1];Se.label=xe,Se.identifier=Ca(this.sliceSerialize(ne)).toLowerCase()}function N(){const ne=this.resume();this.stack[this.stack.length-1].title=ne}function W(){const ne=this.resume();this.stack[this.stack.length-1].url=ne}function ee(ne){const xe=this.stack[this.stack.length-1];if(!xe.depth){const Se=this.sliceSerialize(ne).length;xe.depth=Se}}function G(){this.data.setextHeadingSlurpLineEnding=!0}function Y(ne){this.stack[this.stack.length-1].depth=this.sliceSerialize(ne).codePointAt(0)===61?1:2}function Z(){this.data.setextHeadingSlurpLineEnding=void 0}function $(ne){const xe=this.stack[this.stack.length-1].children;let Se=xe[xe.length-1];(!Se||Se.type!=="text")&&(Se=qt(),Se.position={start:eo(ne.start),end:void 0},xe.push(Se)),this.stack.push(Se)}function ae(ne){const xe=this.stack.pop();xe.value+=this.sliceSerialize(ne),xe.position.end=eo(ne.end)}function ie(ne){const xe=this.stack[this.stack.length-1];if(this.data.atHardBreak)return xe.children[xe.children.length-1].position.end=eo(ne.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&o.canContainEols.includes(xe.type)&&($.call(this,ne),ae.call(this,ne))}function le(){this.data.atHardBreak=!0}function be(){const ne=this.resume();this.stack[this.stack.length-1].value=ne}function he(){const ne=this.resume();this.stack[this.stack.length-1].value=ne}function me(){const ne=this.resume();this.stack[this.stack.length-1].value=ne}function L(){const ne=this.stack[this.stack.length-1];if(this.data.inReference){const xe=this.data.referenceType||"shortcut";ne.type+="Reference",ne.referenceType=xe,delete ne.url,delete ne.title}else delete ne.identifier,delete ne.label;this.data.referenceType=void 0}function Be(){const ne=this.stack[this.stack.length-1];if(this.data.inReference){const xe=this.data.referenceType||"shortcut";ne.type+="Reference",ne.referenceType=xe,delete ne.url,delete ne.title}else delete ne.identifier,delete ne.label;this.data.referenceType=void 0}function F(ne){const xe=this.sliceSerialize(ne),Se=this.stack[this.stack.length-2];Se.label=function(_e){return _e.replace(vg,yg)}(xe),Se.identifier=Ca(xe).toLowerCase()}function ve(){const ne=this.stack[this.stack.length-1],xe=this.resume(),Se=this.stack[this.stack.length-1];if(this.data.inReference=!0,Se.type==="link"){const _e=ne.children;Se.children=_e}else Se.alt=xe}function fe(){const ne=this.resume();this.stack[this.stack.length-1].url=ne}function ce(){const ne=this.resume();this.stack[this.stack.length-1].title=ne}function ge(){this.data.inReference=void 0}function ye(){this.data.referenceType="collapsed"}function De(ne){const xe=this.resume(),Se=this.stack[this.stack.length-1];Se.label=xe,Se.identifier=Ca(this.sliceSerialize(ne)).toLowerCase(),this.data.referenceType="full"}function Fe(ne){this.data.characterReferenceType=ne.type}function Re(ne){const xe=this.sliceSerialize(ne),Se=this.data.characterReferenceType;let _e;Se?(_e=Ad(xe,Se==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):_e=yc(xe),this.stack[this.stack.length-1].value+=_e}function Ue(ne){this.stack.pop().position.end=eo(ne.end)}function Je(ne){ae.call(this,ne),this.stack[this.stack.length-1].url=this.sliceSerialize(ne)}function Dt(ne){ae.call(this,ne),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(ne)}function qe(){return{type:"blockquote",children:[]}}function ze(){return{type:"code",lang:null,meta:null,value:""}}function vt(){return{type:"inlineCode",value:""}}function It(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ht(){return{type:"emphasis",children:[]}}function lt(){return{type:"heading",depth:0,children:[]}}function Ke(){return{type:"break"}}function dt(){return{type:"html",value:""}}function Pt(){return{type:"image",title:null,url:"",alt:null}}function Et(){return{type:"link",title:null,url:"",children:[]}}function ut(ne){return{type:"list",ordered:ne.type==="listOrdered",start:null,spread:ne._spread,children:[]}}function Ze(ne){return{type:"listItem",spread:ne._spread,checked:null,children:[]}}function kn(){return{type:"paragraph",children:[]}}function Nt(){return{type:"strong",children:[]}}function qt(){return{type:"text",value:""}}function et(){return{type:"thematicBreak"}}}(i)(function(a){for(;!bd(a););return a}(function(a){const o={constructs:Eh([gg,...(a||{}).extensions||[]]),content:u(Rh),defined:[],document:u(Oh),flow:u(og),lazy:{},string:u(ig),text:u(sg)};return o;function u(f){return function(A){return mg(o,f,A)}}}(i).document().write(function(){let a,o=1,u="",f=!0;return function(A,c,d){const h=[];let v,y,k,C,R;for(A=u+(typeof A=="string"?A.toString():new TextDecoder(c||void 0).decode(A)),k=0,u="",f&&(A.charCodeAt(0)===65279&&k++,f=void 0);k<A.length;){if(Td.lastIndex=k,v=Td.exec(A),C=v&&v.index!==void 0?v.index:A.length,R=A.charCodeAt(C),!v){u=A.slice(k);break}if(R===10&&k===C&&a)h.push(-3),a=void 0;else switch(a&&(h.push(-5),a=void 0),k<C&&(h.push(A.slice(k,C)),o+=C-k),R){case 0:h.push(65533),o++;break;case 9:for(y=4*Math.ceil(o/4),h.push(-2);o++<y;)h.push(-1);break;case 10:h.push(-4),o=1;break;default:a=!0,o=1}k=C+1}return d&&(a&&h.push(-5),u&&h.push(u),h.push(null)),h}}()(e,n,!0))))}function eo(e){return{line:e.line,column:e.column,offset:e.offset}}function Id(e,n){let i=-1;for(;++i<n.length;){const a=n[i];Array.isArray(a)?Id(e,a):wg(e,a)}}function wg(e,n){let i;for(i in n)if(Dd.call(n,i))switch(i){case"canContainEols":{const a=n[i];a&&e[i].push(...a);break}case"transforms":{const a=n[i];a&&e[i].push(...a);break}case"enter":case"exit":{const a=n[i];a&&Object.assign(e[i],a);break}}}function Bd(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Mi({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Mi({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Mi({start:n.start,end:n.end})+") is still open")}function xg(e){const n=this;n.parser=function(i){return bg(i,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Md(e,n){const i=n.referenceType;let a="]";if(i==="collapsed"?a+="[]":i==="full"&&(a+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+a}];const o=e.all(n),u=o[0];u&&u.type==="text"?u.value="["+u.value:o.unshift({type:"text",value:"["});const f=o[o.length-1];return f&&f.type==="text"?f.value+=a:o.push({type:"text",value:a}),o}function Rd(e){return e.spread??e.children.length>1}function Sg(e){const n=String(e),i=/\r?\n|\r/g;let a=i.exec(n),o=0;const u=[];for(;a;)u.push(Od(n.slice(o,a.index),o>0,!0),a[0]),o=a.index+a[0].length,a=i.exec(n);return u.push(Od(n.slice(o),o>0,!1)),u.join("")}function Od(e,n,i){let a=0,o=e.length;if(n){let u=e.codePointAt(a);for(;u===9||u===32;)a++,u=e.codePointAt(a)}if(i){let u=e.codePointAt(o-1);for(;u===9||u===32;)o--,u=e.codePointAt(o-1)}return o>a?e.slice(a,o):""}const kg={blockquote:function(e,n){const i={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,i),e.applyData(n,i)},break:function(e,n){const i={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,i),[e.applyData(n,i),{type:"text",value:`
128
128
  `}]},code:function(e,n){const i=n.value?n.value+`
129
129
  `:"",a={};n.lang&&(a.className=["language-"+n.lang]);let o={type:"element",tagName:"code",properties:a,children:[{type:"text",value:i}]};return n.meta&&(o.data={meta:n.meta}),e.patch(n,o),o=e.applyData(n,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(n,o),o},delete:function(e,n){const i={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)},emphasis:function(e,n){const i={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)},footnoteReference:function(e,n){const i=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(n.identifier).toUpperCase(),o=Pa(a.toLowerCase()),u=e.footnoteOrder.indexOf(a);let f,A=e.footnoteCounts.get(a);A===void 0?(A=0,e.footnoteOrder.push(a),f=e.footnoteOrder.length):f=u+1,A+=1,e.footnoteCounts.set(a,A);const c={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+o,id:i+"fnref-"+o+(A>1?"-"+A:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(f)}]};e.patch(n,c);const d={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(n,d),e.applyData(n,d)},heading:function(e,n){const i={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)},html:function(e,n){if(e.options.allowDangerousHtml){const i={type:"raw",value:n.value};return e.patch(n,i),e.applyData(n,i)}},imageReference:function(e,n){const i=String(n.identifier).toUpperCase(),a=e.definitionById.get(i);if(!a)return Md(e,n);const o={src:Pa(a.url||""),alt:n.alt};a.title!==null&&a.title!==void 0&&(o.title=a.title);const u={type:"element",tagName:"img",properties:o,children:[]};return e.patch(n,u),e.applyData(n,u)},image:function(e,n){const i={src:Pa(n.url)};n.alt!==null&&n.alt!==void 0&&(i.alt=n.alt),n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,a),e.applyData(n,a)},inlineCode:function(e,n){const i={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,i);const a={type:"element",tagName:"code",properties:{},children:[i]};return e.patch(n,a),e.applyData(n,a)},linkReference:function(e,n){const i=String(n.identifier).toUpperCase(),a=e.definitionById.get(i);if(!a)return Md(e,n);const o={href:Pa(a.url||"")};a.title!==null&&a.title!==void 0&&(o.title=a.title);const u={type:"element",tagName:"a",properties:o,children:e.all(n)};return e.patch(n,u),e.applyData(n,u)},link:function(e,n){const i={href:Pa(n.url)};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,a),e.applyData(n,a)},listItem:function(e,n,i){const a=e.all(n),o=i?function(h){let v=!1;if(h.type==="list"){v=h.spread||!1;const y=h.children;let k=-1;for(;!v&&++k<y.length;)v=Rd(y[k])}return v}(i):Rd(n),u={},f=[];if(typeof n.checked=="boolean"){const h=a[0];let v;h&&h.type==="element"&&h.tagName==="p"?v=h:(v={type:"element",tagName:"p",properties:{},children:[]},a.unshift(v)),v.children.length>0&&v.children.unshift({type:"text",value:" "}),v.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let A=-1;for(;++A<a.length;){const h=a[A];(o||A!==0||h.type!=="element"||h.tagName!=="p")&&f.push({type:"text",value:`
130
130
  `}),h.type!=="element"||h.tagName!=="p"||o?f.push(h):f.push(...h.children)}const c=a[a.length-1];c&&(o||c.type!=="element"||c.tagName!=="p")&&f.push({type:"text",value:`
@@ -134,18 +134,18 @@ Error generating stack: `+s.message+`
134
134
  `}),i}function zd(e){let n=0,i=e.charCodeAt(n);for(;i===9||i===32;)n++,i=e.charCodeAt(n);return e.slice(n)}function jd(e,n){const i=Rg(e,n),a=i.one(e,void 0),o=function(f){const A=typeof f.options.clobberPrefix=="string"?f.options.clobberPrefix:"user-content-",c=f.options.footnoteBackContent||Pg,d=f.options.footnoteBackLabel||Tg,h=f.options.footnoteLabel||"Footnotes",v=f.options.footnoteLabelTagName||"h2",y=f.options.footnoteLabelProperties||{className:["sr-only"]},k=[];let C=-1;for(;++C<f.footnoteOrder.length;){const R=f.footnoteById.get(f.footnoteOrder[C]);if(!R)continue;const E=f.all(R),T=String(R.identifier).toUpperCase(),Q=Pa(T.toLowerCase());let M=0;const U=[],j=f.footnoteCounts.get(T);for(;j!==void 0&&++M<=j;){U.length>0&&U.push({type:"text",value:" "});let ee=typeof c=="string"?c:c(C,M);typeof ee=="string"&&(ee={type:"text",value:ee}),U.push({type:"element",tagName:"a",properties:{href:"#"+A+"fnref-"+Q+(M>1?"-"+M:""),dataFootnoteBackref:"",ariaLabel:typeof d=="string"?d:d(C,M),className:["data-footnote-backref"]},children:Array.isArray(ee)?ee:[ee]})}const N=E[E.length-1];if(N&&N.type==="element"&&N.tagName==="p"){const ee=N.children[N.children.length-1];ee&&ee.type==="text"?ee.value+=" ":N.children.push({type:"text",value:" "}),N.children.push(...U)}else E.push(...U);const W={type:"element",tagName:"li",properties:{id:A+"fn-"+Q},children:f.wrap(E,!0)};f.patch(R,W),k.push(W)}if(k.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:v,properties:{...Xs(y),id:"footnote-label"},children:[{type:"text",value:h}]},{type:"text",value:`
135
135
  `},{type:"element",tagName:"ol",properties:{},children:f.wrap(k,!0)},{type:"text",value:`
136
136
  `}]}}(i),u=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return o&&u.children.push({type:"text",value:`
137
- `},o),u}function Qg(e,n){return e&&"run"in e?async function(i,a){const o=jd(i,{file:a,...n});await e.run(o,a)}:function(i,a){return jd(i,{file:a,...e||n})}}function Wd(e){if(e)throw e}var Tc,Yd,Hg=function(){if(Yd)return Tc;Yd=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(c){return typeof Array.isArray=="function"?Array.isArray(c):n.call(c)==="[object Array]"},u=function(c){if(!c||n.call(c)!=="[object Object]")return!1;var d,h=e.call(c,"constructor"),v=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!h&&!v)return!1;for(d in c);return typeof d>"u"||e.call(c,d)},f=function(c,d){i&&d.name==="__proto__"?i(c,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):c[d.name]=d.newValue},A=function(c,d){if(d==="__proto__"){if(!e.call(c,d))return;if(a)return a(c,d).value}return c[d]};return Tc=function c(){var d,h,v,y,k,C,R=arguments[0],E=1,T=arguments.length,Q=!1;for(typeof R=="boolean"&&(Q=R,R=arguments[1]||{},E=2),(R==null||typeof R!="object"&&typeof R!="function")&&(R={});E<T;++E)if((d=arguments[E])!=null)for(h in d)v=A(R,h),R!==(y=A(d,h))&&(Q&&y&&(u(y)||(k=o(y)))?(k?(k=!1,C=v&&o(v)?v:[]):C=v&&u(v)?v:{},f(R,{name:h,newValue:c(Q,C,y)})):typeof y<"u"&&f(R,{name:h,newValue:y}));return R},Tc}();const Dc=JA(Hg);function Ic(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return!(n!==null&&n!==Object.prototype&&Object.getPrototypeOf(n)!==null||Symbol.toStringTag in e||Symbol.iterator in e)}function Ng(){const e=[],n={run:function(...i){let a=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);(function u(f,...A){const c=e[++a];let d=-1;if(f)o(f);else{for(;++d<i.length;)(A[d]===null||A[d]===void 0)&&(A[d]=i[d]);i=A,c?function(h,v){let y;return k;function k(...E){const T=h.length>E.length;let Q;T&&E.push(C);try{Q=h.apply(this,E)}catch(M){if(T&&y)throw M;return C(M)}T||(Q&&Q.then&&typeof Q.then=="function"?Q.then(R,C):Q instanceof Error?C(Q):R(Q))}function C(E,...T){y||(y=!0,v(E,...T))}function R(E){C(null,E)}}(c,u)(...A):o(null,...A)}})(null,...i)},use:function(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}};return n}const dr={basename:function(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Fi(e);let i,a=0,o=-1,u=e.length;if(n===void 0||n.length===0||n.length>e.length){for(;u--;)if(e.codePointAt(u)===47){if(i){a=u+1;break}}else o<0&&(i=!0,o=u+1);return o<0?"":e.slice(a,o)}if(n===e)return"";let f=-1,A=n.length-1;for(;u--;)if(e.codePointAt(u)===47){if(i){a=u+1;break}}else f<0&&(i=!0,f=u+1),A>-1&&(e.codePointAt(u)===n.codePointAt(A--)?A<0&&(o=u):(A=-1,o=f));return a===o?o=f:o<0&&(o=e.length),e.slice(a,o)},dirname:function(e){if(Fi(e),e.length===0)return".";let n,i=-1,a=e.length;for(;--a;)if(e.codePointAt(a)===47){if(n){i=a;break}}else n||(n=!0);return i<0?e.codePointAt(0)===47?"/":".":i===1&&e.codePointAt(0)===47?"//":e.slice(0,i)},extname:function(e){Fi(e);let n,i=e.length,a=-1,o=0,u=-1,f=0;for(;i--;){const A=e.codePointAt(i);if(A!==47)a<0&&(n=!0,a=i+1),A===46?u<0?u=i:f!==1&&(f=1):u>-1&&(f=-1);else if(n){o=i+1;break}}return u<0||a<0||f===0||f===1&&u===a-1&&u===o+1?"":e.slice(u,a)},join:function(...e){let n,i=-1;for(;++i<e.length;)Fi(e[i]),e[i]&&(n=n===void 0?e[i]:n+"/"+e[i]);return n===void 0?".":function(a){Fi(a);const o=a.codePointAt(0)===47;let u=function(f,A){let c,d,h="",v=0,y=-1,k=0,C=-1;for(;++C<=f.length;){if(C<f.length)c=f.codePointAt(C);else{if(c===47)break;c=47}if(c===47){if(y!==C-1&&k!==1)if(y!==C-1&&k===2){if(h.length<2||v!==2||h.codePointAt(h.length-1)!==46||h.codePointAt(h.length-2)!==46){if(h.length>2){if(d=h.lastIndexOf("/"),d!==h.length-1){d<0?(h="",v=0):(h=h.slice(0,d),v=h.length-1-h.lastIndexOf("/")),y=C,k=0;continue}}else if(h.length>0){h="",v=0,y=C,k=0;continue}}A&&(h=h.length>0?h+"/..":"..",v=2)}else h.length>0?h+="/"+f.slice(y+1,C):h=f.slice(y+1,C),v=C-y-1;y=C,k=0}else c===46&&k>-1?k++:k=-1}return h}(a,!o);return u.length===0&&!o&&(u="."),u.length>0&&a.codePointAt(a.length-1)===47&&(u+="/"),o?"/"+u:u}(n)},sep:"/"};function Fi(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Ug={cwd:function(){return"/"}};function Bc(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function zg(e){if(typeof e=="string")e=new URL(e);else if(!Bc(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return function(n){if(n.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const i=n.pathname;let a=-1;for(;++a<i.length;)if(i.codePointAt(a)===37&&i.codePointAt(a+1)===50){const o=i.codePointAt(a+2);if(o===70||o===102){const u=new TypeError("File URL path must not include encoded / characters");throw u.code="ERR_INVALID_FILE_URL_PATH",u}}return decodeURIComponent(i)}(e)}const Mc=["history","path","basename","stem","extname","dirname"];class Gd{constructor(n){let i;var a;i=n?Bc(n)?{path:n}:typeof n=="string"||(a=n)&&typeof a=="object"&&"byteLength"in a&&"byteOffset"in a?{value:n}:n:{},this.cwd="cwd"in i?"":Ug.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o,u=-1;for(;++u<Mc.length;){const f=Mc[u];f in i&&i[f]!==void 0&&i[f]!==null&&(this[f]=f==="history"?[...i[f]]:i[f])}for(o in i)Mc.includes(o)||(this[o]=i[o])}get basename(){return typeof this.path=="string"?dr.basename(this.path):void 0}set basename(n){Oc(n,"basename"),Rc(n,"basename"),this.path=dr.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?dr.dirname(this.path):void 0}set dirname(n){Vd(this.basename,"dirname"),this.path=dr.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?dr.extname(this.path):void 0}set extname(n){if(Rc(n,"extname"),Vd(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=dr.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Bc(n)&&(n=zg(n)),Oc(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?dr.basename(this.path,this.extname):void 0}set stem(n){Oc(n,"stem"),Rc(n,"stem"),this.path=dr.join(this.dirname||"",n+(this.extname||""))}fail(n,i,a){const o=this.message(n,i,a);throw o.fatal=!0,o}info(n,i,a){const o=this.message(n,i,a);return o.fatal=void 0,o}message(n,i,a){const o=new Vt(n,i,a);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function Rc(e,n){if(e&&e.includes(dr.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+dr.sep+"`")}function Oc(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function Vd(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}const jg=function(e){const n=this.constructor.prototype,i=n[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,n),a},Wg={}.hasOwnProperty;class _c extends jg{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Ng()}copy(){const n=new _c;let i=-1;for(;++i<this.attachers.length;){const a=this.attachers[i];n.use(...a)}return n.data(Dc(!0,{},this.namespace)),n}data(n,i){return typeof n=="string"?arguments.length===2?(Qc("data",this.frozen),this.namespace[n]=i,this):Wg.call(this.namespace,n)&&this.namespace[n]||void 0:n?(Qc("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[i,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const o=i.call(n,...a);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const i=Ks(n),a=this.parser||this.Parser;return Lc("parse",a),a(String(i),i)}process(n,i){const a=this;return this.freeze(),Lc("process",this.parser||this.Parser),Fc("process",this.compiler||this.Compiler),i?o(void 0,i):new Promise(o);function o(u,f){const A=Ks(n),c=a.parse(A);function d(h,v){h||!v?f(h):u?u(v):i(void 0,v)}a.run(c,A,function(h,v,y){if(h||!v||!y)return d(h);const k=v,C=a.stringify(k,y);var R;typeof(R=C)=="string"||function(E){return!!(E&&typeof E=="object"&&"byteLength"in E&&"byteOffset"in E)}(R)?y.value=C:y.result=C,d(h,y)})}}processSync(n){let i,a=!1;return this.freeze(),Lc("processSync",this.parser||this.Parser),Fc("processSync",this.compiler||this.Compiler),this.process(n,function(o,u){a=!0,Wd(o),i=u}),Jd("processSync","process",a),i}run(n,i,a){Xd(n),this.freeze();const o=this.transformers;return!a&&typeof i=="function"&&(a=i,i=void 0),a?u(void 0,a):new Promise(u);function u(f,A){const c=Ks(i);o.run(n,c,function(d,h,v){const y=h||n;d?A(d):f?f(y):a(void 0,y,v)})}}runSync(n,i){let a,o=!1;return this.run(n,i,function(u,f){Wd(u),a=f,o=!0}),Jd("runSync","run",o),a}stringify(n,i){this.freeze();const a=Ks(i),o=this.compiler||this.Compiler;return Fc("stringify",o),Xd(n),o(n,a)}use(n,...i){const a=this.attachers,o=this.namespace;if(Qc("use",this.frozen),n!=null)if(typeof n=="function")c(n,i);else{if(typeof n!="object")throw new TypeError("Expected usable value, not `"+n+"`");Array.isArray(n)?A(n):f(n)}return this;function u(d){if(typeof d=="function")c(d,[]);else{if(typeof d!="object")throw new TypeError("Expected usable value, not `"+d+"`");if(Array.isArray(d)){const[h,...v]=d;c(h,v)}else f(d)}}function f(d){if(!("plugins"in d)&&!("settings"in d))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");A(d.plugins),d.settings&&(o.settings=Dc(!0,o.settings,d.settings))}function A(d){let h=-1;if(d!=null){if(!Array.isArray(d))throw new TypeError("Expected a list of plugins, not `"+d+"`");for(;++h<d.length;)u(d[h])}}function c(d,h){let v=-1,y=-1;for(;++v<a.length;)if(a[v][0]===d){y=v;break}if(y===-1)a.push([d,...h]);else if(h.length>0){let[k,...C]=h;const R=a[y][1];Ic(R)&&Ic(k)&&(k=Dc(!0,R,k)),a[y]=[d,k,...C]}}}}const Yg=new _c().freeze();function Lc(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Fc(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Qc(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Xd(e){if(!Ic(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Jd(e,n,i){if(!i)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Ks(e){return function(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}(e)?e:new Gd(e)}const Kd=[],qd={allowDangerousHtml:!0},Gg=/^(https?|ircs?|mailto|xmpp)$/i,Vg=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Xg(e){const n=e.allowedElements,i=e.allowElement,a=e.children||"",o=e.className,u=e.components,f=e.disallowedElements,A=e.rehypePlugins||Kd,c=e.remarkPlugins||Kd,d=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...qd}:qd,h=e.skipHtml,v=e.unwrapDisallowed,y=e.urlTransform||Jg,k=Yg().use(xg).use(c).use(Qg,d).use(A),C=new Gd;typeof a=="string"&&(C.value=a);for(const T of Vg)Object.hasOwn(e,T.from)&&(T.from,T.to&&T.to,T.id);const R=k.parse(C);let E=k.runSync(R,C);return o&&(E={type:"element",tagName:"div",properties:{className:o},children:E.type==="root"?E.children:[E]}),Ud(E,function(T,Q,M){if(T.type==="raw"&&M&&typeof Q=="number")return h?M.children.splice(Q,1):M.children[Q]={type:"text",value:T.value},Q;if(T.type==="element"){let U;for(U in vc)if(Object.hasOwn(vc,U)&&Object.hasOwn(T.properties,U)){const j=T.properties[U],N=vc[U];(N===null||N.includes(T.tagName))&&(T.properties[U]=y(String(j||""),U,T))}}if(T.type==="element"){let U=n?!n.includes(T.tagName):!!f&&f.includes(T.tagName);if(!U&&i&&typeof Q=="number"&&(U=!i(T,Q,M)),U&&M&&typeof Q=="number")return v&&T.children?M.children.splice(Q,1,...T.children):M.children.splice(Q,1),Q}}),bh(E,{Fragment:z.Fragment,components:u,ignoreInvalidStyle:!0,jsx:z.jsx,jsxs:z.jsxs,passKeys:!0,passNode:!0})}function Jg(e){const n=e.indexOf(":"),i=e.indexOf("?"),a=e.indexOf("#"),o=e.indexOf("/");return n===-1||o!==-1&&n>o||i!==-1&&n>i||a!==-1&&n>a||Gg.test(e.slice(0,n))?e:""}const Kg=({children:e})=>z.jsx("div",{style:{whiteSpace:"normal"},children:z.jsx(Xg,{components:{p:({...n})=>z.jsx("p",{style:{margin:0,marginBottom:"0.5em",lineHeight:1.4,textAlign:"left"},children:n.children}),ul:({...n})=>z.jsx("ul",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:n.children}),ol:({...n})=>z.jsx("ol",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:n.children}),li:({...n})=>z.jsx("li",{style:{marginBottom:"1px",lineHeight:1.4},children:n.children}),code:({inline:n,children:i})=>n?z.jsx("code",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"2px 4px",borderRadius:"4px",fontFamily:"inherit",fontSize:"0.95em"},children:i}):z.jsx("pre",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"8px",borderRadius:"4px",overflowX:"auto",margin:"0.5em 0",whiteSpace:"pre-wrap"},children:z.jsx("code",{children:i})}),blockquote:({...n})=>z.jsx("blockquote",{style:{margin:0,paddingLeft:"10px",borderLeft:"2px solid #ccc",color:"#666",fontStyle:"italic"},children:n.children})},children:typeof e=="string"?e:""})}),qg={autoConfig:!0},$g=e=>()=>(n=>{const{getFlow:i}=Us(),{messages:a,replaceMessages:o}=Ii(),{settings:u}=TA(),{hasChatHistoryLoaded:f}=IA(),A={...n,...qg},c=A.markdownComponent?A.markdownComponent:Kg;B.useEffect(()=>{var v,y;if(f){const k=[...a];for(let C=0;C<k.length&&C<(((v=u.chatHistory)==null?void 0:v.maxEntries)??30);C++){const R=k[C];(y=R.tags)!=null&&y.includes("rcb-markdown-renderer-plugin:parsed")&&(R.contentWrapper=c)}o(k)}},[f]);const d=async v=>{var y;const k=(y=v.data.message)==null?void 0:y.sender.toUpperCase();((C,R,E)=>{var T;if(typeof C.data.message.content!="string"||!C.detail.currPath)return!1;const Q=R[C.detail.currPath];return!!Q&&(((T=Q.renderMarkdown)==null?void 0:T.map(M=>M.toUpperCase()).includes(E))??!1)})(v,i(),k)&&(v.data.message.contentWrapper=c,v.data.message.tags||(v.data.message.tags=[]),v.data.message.tags.push("rcb-markdown-renderer-plugin:parsed"))};Mn(we.PRE_INJECT_MESSAGE,d),Mn(we.CHUNK_STREAM_MESSAGE,d),Mn(we.START_STREAM_MESSAGE,d),Mn(we.START_SIMULATE_STREAM_MESSAGE,d);const h={name:"@rcb-plugins/markdown-renderer"};return A!=null&&A.autoConfig&&(h.settings={event:{rcbPreInjectMessage:!0,rcbChunkStreamMessage:!0,rcbStartSimulateStreamMessage:!0,rcbStartStreamMessage:!0}}),h})(e),qs={autoConfig:!0,promptBaseColors:{info:"#007bff",warning:"#ffc107",error:"#dc3545",success:"#28a745"},promptHoveredColors:{info:"#0056b3",warning:"#d39e00",error:"#c82333",success:"#218838"},textAreaHighlightColors:{info:"#007bff",warning:"#ffc107",error:"#dc3545",success:"#28a745"}},$d=(e,n,i="validateTextInput")=>{var a;if((a=e.detail)==null||!a.currPath)return;const o=n[e.detail.currPath];if(!o)return;const u=o[i];return typeof u=="function"?u:void 0},Zg=e=>{const{showToast:n}=(()=>{const{showToast:v,dismissToast:y,toasts:k,replaceToasts:C}=wa();return{showToast:v,dismissToast:y,toasts:k,replaceToasts:C}})(),{getFlow:i}=Us(),{styles:a,updateStyles:o,replaceStyles:u}=(()=>{const{styles:v,replaceStyles:y,updateStyles:k}=kA();return{styles:v,replaceStyles:y,updateStyles:k}})(),f=(v=>({...qs,...v,promptBaseColors:{...qs.promptBaseColors},promptHoveredColors:{...qs.promptHoveredColors},textAreaHighlightColors:{...qs.textAreaHighlightColors}}))(e),[A,c]=B.useState(0),d=B.useRef({});Mn(we.USER_SUBMIT_TEXT,v=>{const y=v,k=$d(y,i(),"validateTextInput");if(!k)return;const C=k(y.data.inputText);if(C!=null&&C.success||v.preventDefault(),!C.promptContent)return;A===0&&(d.current=structuredClone(a));const R=((E,T)=>{const Q=E.promptType??"info";let M={};return T.advancedStyles&&(M=T.advancedStyles[Q]),T.promptBaseColors&&(M.toastPromptStyle={color:T.promptBaseColors[Q],borderColor:T.promptBaseColors[Q]}),T.promptHoveredColors&&(M.toastPromptHoveredStyle={color:T.promptHoveredColors[Q],borderColor:T.promptHoveredColors[Q]}),T.textAreaHighlightColors&&(E.highlightTextArea??!0)&&(M.chatInputAreaStyle={boxShadow:`${T.textAreaHighlightColors[Q]} 0px 0px 5px`}),M})(C,f);o(R),n(C.promptContent,C.promptDuration??3e3),c(E=>E+1)}),Mn(we.USER_UPLOAD_FILE,v=>{var y,k;const C=v,R=(k=(y=C.data)==null?void 0:y.files)==null?void 0:k[0];if(!R)return console.error("No file uploaded."),void v.preventDefault();const E=$d(C,i(),"validateFileInput");if(!E)return void console.error("Validator not found for file input.");const T=E(R);if(!T.success)return console.error("Validation failed:",T),T.promptContent&&n(T.promptContent,T.promptDuration??3e3),void v.preventDefault();console.log("Validation successful:",T)}),Mn(we.DISMISS_TOAST,()=>{c(v=>v-1)}),B.useEffect(()=>{A===0&&setTimeout(()=>{u(d.current)})},[A,u]);const h={name:"@rcb-plugins/input-validator"};return f.autoConfig&&(h.settings={event:{rcbUserSubmitText:!0,rcbUserUploadFile:!0,rcbDismissToast:!0}}),h},Zd=B.forwardRef((e,n)=>{let{embedded:i,currentOpen:a,enabled:o,onSetEnabled:u}=e;const f=Ii(),A=(()=>{const{isChatWindowOpen:h,toggleChatWindow:v,toggleIsBotTyping:y,scrollToBottom:k,getIsChatBotVisible:C}=wn();return{isChatWindowOpen:h,toggleChatWindow:v,toggleIsBotTyping:y,scrollToBottom:k,getIsChatBotVisible:C}})(),c=B.useRef(null),d=B.useRef(!1);return B.useEffect(()=>{!i&&A&&A.toggleChatWindow&&(c.current===a||d.current||(setTimeout(()=>{A&&A.toggleChatWindow&&A.toggleChatWindow(a)},0),c.current=a),d.current=!1)},[a,i,A]),B.useEffect(()=>{const h=()=>{d.current=!0};return window.addEventListener("rcb-toggle-chat-window",h),()=>window.removeEventListener("rcb-toggle-chat-window",h)}),B.useImperativeHandle(n,()=>({addMessage:h=>{f&&f.injectMessage&&f.injectMessage(h)},openChat:()=>{!i&&A&&A.toggleChatWindow&&A.toggleChatWindow(!0)},closeChat:()=>{!i&&A&&A.toggleChatWindow&&A.toggleChatWindow(!1)},toggleChat:()=>{!i&&A&&A.toggleChatWindow&&A.toggleChatWindow()},setBotEnabled:h=>{u&&u(h)}}),[f,A,i,u]),null});Zd.displayName="BotController";const ef=e=>{let{loginUrl:n,className:i="",style:a,isHeaderButton:o=!1}=e;const u=o?{display:"inline-block",padding:"6px 12px",backgroundColor:"transparent",border:"1px solid #ccc",color:"white",textDecoration:"none",borderRadius:"4px",fontWeight:"normal",textAlign:"center",margin:"8px",fontSize:"12px",opacity:.8,transition:"all 0.2s ease"}:{display:"inline-block",padding:"10px 20px",backgroundColor:"white",border:"1px solid var(--primaryColor, #107180)",color:"var(--primaryColor, #107180)",textDecoration:"none",borderRadius:"4px",fontWeight:"bold",textAlign:"center",margin:"18px",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.2)"};return B.createElement(B.Fragment,null,o&&B.createElement("style",null,`
137
+ `},o),u}function Qg(e,n){return e&&"run"in e?async function(i,a){const o=jd(i,{file:a,...n});await e.run(o,a)}:function(i,a){return jd(i,{file:a,...e||n})}}function Wd(e){if(e)throw e}var Tc,Yd,Hg=function(){if(Yd)return Tc;Yd=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(c){return typeof Array.isArray=="function"?Array.isArray(c):n.call(c)==="[object Array]"},u=function(c){if(!c||n.call(c)!=="[object Object]")return!1;var d,h=e.call(c,"constructor"),v=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!h&&!v)return!1;for(d in c);return typeof d>"u"||e.call(c,d)},f=function(c,d){i&&d.name==="__proto__"?i(c,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):c[d.name]=d.newValue},A=function(c,d){if(d==="__proto__"){if(!e.call(c,d))return;if(a)return a(c,d).value}return c[d]};return Tc=function c(){var d,h,v,y,k,C,R=arguments[0],E=1,T=arguments.length,Q=!1;for(typeof R=="boolean"&&(Q=R,R=arguments[1]||{},E=2),(R==null||typeof R!="object"&&typeof R!="function")&&(R={});E<T;++E)if((d=arguments[E])!=null)for(h in d)v=A(R,h),R!==(y=A(d,h))&&(Q&&y&&(u(y)||(k=o(y)))?(k?(k=!1,C=v&&o(v)?v:[]):C=v&&u(v)?v:{},f(R,{name:h,newValue:c(Q,C,y)})):typeof y<"u"&&f(R,{name:h,newValue:y}));return R},Tc}();const Dc=JA(Hg);function Ic(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return!(n!==null&&n!==Object.prototype&&Object.getPrototypeOf(n)!==null||Symbol.toStringTag in e||Symbol.iterator in e)}function Ng(){const e=[],n={run:function(...i){let a=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);(function u(f,...A){const c=e[++a];let d=-1;if(f)o(f);else{for(;++d<i.length;)(A[d]===null||A[d]===void 0)&&(A[d]=i[d]);i=A,c?function(h,v){let y;return k;function k(...E){const T=h.length>E.length;let Q;T&&E.push(C);try{Q=h.apply(this,E)}catch(M){if(T&&y)throw M;return C(M)}T||(Q&&Q.then&&typeof Q.then=="function"?Q.then(R,C):Q instanceof Error?C(Q):R(Q))}function C(E,...T){y||(y=!0,v(E,...T))}function R(E){C(null,E)}}(c,u)(...A):o(null,...A)}})(null,...i)},use:function(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}};return n}const dr={basename:function(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Fi(e);let i,a=0,o=-1,u=e.length;if(n===void 0||n.length===0||n.length>e.length){for(;u--;)if(e.codePointAt(u)===47){if(i){a=u+1;break}}else o<0&&(i=!0,o=u+1);return o<0?"":e.slice(a,o)}if(n===e)return"";let f=-1,A=n.length-1;for(;u--;)if(e.codePointAt(u)===47){if(i){a=u+1;break}}else f<0&&(i=!0,f=u+1),A>-1&&(e.codePointAt(u)===n.codePointAt(A--)?A<0&&(o=u):(A=-1,o=f));return a===o?o=f:o<0&&(o=e.length),e.slice(a,o)},dirname:function(e){if(Fi(e),e.length===0)return".";let n,i=-1,a=e.length;for(;--a;)if(e.codePointAt(a)===47){if(n){i=a;break}}else n||(n=!0);return i<0?e.codePointAt(0)===47?"/":".":i===1&&e.codePointAt(0)===47?"//":e.slice(0,i)},extname:function(e){Fi(e);let n,i=e.length,a=-1,o=0,u=-1,f=0;for(;i--;){const A=e.codePointAt(i);if(A!==47)a<0&&(n=!0,a=i+1),A===46?u<0?u=i:f!==1&&(f=1):u>-1&&(f=-1);else if(n){o=i+1;break}}return u<0||a<0||f===0||f===1&&u===a-1&&u===o+1?"":e.slice(u,a)},join:function(...e){let n,i=-1;for(;++i<e.length;)Fi(e[i]),e[i]&&(n=n===void 0?e[i]:n+"/"+e[i]);return n===void 0?".":function(a){Fi(a);const o=a.codePointAt(0)===47;let u=function(f,A){let c,d,h="",v=0,y=-1,k=0,C=-1;for(;++C<=f.length;){if(C<f.length)c=f.codePointAt(C);else{if(c===47)break;c=47}if(c===47){if(y!==C-1&&k!==1)if(y!==C-1&&k===2){if(h.length<2||v!==2||h.codePointAt(h.length-1)!==46||h.codePointAt(h.length-2)!==46){if(h.length>2){if(d=h.lastIndexOf("/"),d!==h.length-1){d<0?(h="",v=0):(h=h.slice(0,d),v=h.length-1-h.lastIndexOf("/")),y=C,k=0;continue}}else if(h.length>0){h="",v=0,y=C,k=0;continue}}A&&(h=h.length>0?h+"/..":"..",v=2)}else h.length>0?h+="/"+f.slice(y+1,C):h=f.slice(y+1,C),v=C-y-1;y=C,k=0}else c===46&&k>-1?k++:k=-1}return h}(a,!o);return u.length===0&&!o&&(u="."),u.length>0&&a.codePointAt(a.length-1)===47&&(u+="/"),o?"/"+u:u}(n)},sep:"/"};function Fi(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Ug={cwd:function(){return"/"}};function Bc(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function zg(e){if(typeof e=="string")e=new URL(e);else if(!Bc(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return function(n){if(n.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const i=n.pathname;let a=-1;for(;++a<i.length;)if(i.codePointAt(a)===37&&i.codePointAt(a+1)===50){const o=i.codePointAt(a+2);if(o===70||o===102){const u=new TypeError("File URL path must not include encoded / characters");throw u.code="ERR_INVALID_FILE_URL_PATH",u}}return decodeURIComponent(i)}(e)}const Mc=["history","path","basename","stem","extname","dirname"];class Gd{constructor(n){let i;var a;i=n?Bc(n)?{path:n}:typeof n=="string"||(a=n)&&typeof a=="object"&&"byteLength"in a&&"byteOffset"in a?{value:n}:n:{},this.cwd="cwd"in i?"":Ug.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o,u=-1;for(;++u<Mc.length;){const f=Mc[u];f in i&&i[f]!==void 0&&i[f]!==null&&(this[f]=f==="history"?[...i[f]]:i[f])}for(o in i)Mc.includes(o)||(this[o]=i[o])}get basename(){return typeof this.path=="string"?dr.basename(this.path):void 0}set basename(n){Oc(n,"basename"),Rc(n,"basename"),this.path=dr.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?dr.dirname(this.path):void 0}set dirname(n){Vd(this.basename,"dirname"),this.path=dr.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?dr.extname(this.path):void 0}set extname(n){if(Rc(n,"extname"),Vd(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=dr.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Bc(n)&&(n=zg(n)),Oc(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?dr.basename(this.path,this.extname):void 0}set stem(n){Oc(n,"stem"),Rc(n,"stem"),this.path=dr.join(this.dirname||"",n+(this.extname||""))}fail(n,i,a){const o=this.message(n,i,a);throw o.fatal=!0,o}info(n,i,a){const o=this.message(n,i,a);return o.fatal=void 0,o}message(n,i,a){const o=new Vt(n,i,a);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function Rc(e,n){if(e&&e.includes(dr.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+dr.sep+"`")}function Oc(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function Vd(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}const jg=function(e){const n=this.constructor.prototype,i=n[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,n),a},Wg={}.hasOwnProperty;class _c extends jg{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Ng()}copy(){const n=new _c;let i=-1;for(;++i<this.attachers.length;){const a=this.attachers[i];n.use(...a)}return n.data(Dc(!0,{},this.namespace)),n}data(n,i){return typeof n=="string"?arguments.length===2?(Qc("data",this.frozen),this.namespace[n]=i,this):Wg.call(this.namespace,n)&&this.namespace[n]||void 0:n?(Qc("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[i,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const o=i.call(n,...a);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const i=qs(n),a=this.parser||this.Parser;return Lc("parse",a),a(String(i),i)}process(n,i){const a=this;return this.freeze(),Lc("process",this.parser||this.Parser),Fc("process",this.compiler||this.Compiler),i?o(void 0,i):new Promise(o);function o(u,f){const A=qs(n),c=a.parse(A);function d(h,v){h||!v?f(h):u?u(v):i(void 0,v)}a.run(c,A,function(h,v,y){if(h||!v||!y)return d(h);const k=v,C=a.stringify(k,y);var R;typeof(R=C)=="string"||function(E){return!!(E&&typeof E=="object"&&"byteLength"in E&&"byteOffset"in E)}(R)?y.value=C:y.result=C,d(h,y)})}}processSync(n){let i,a=!1;return this.freeze(),Lc("processSync",this.parser||this.Parser),Fc("processSync",this.compiler||this.Compiler),this.process(n,function(o,u){a=!0,Wd(o),i=u}),Jd("processSync","process",a),i}run(n,i,a){Xd(n),this.freeze();const o=this.transformers;return!a&&typeof i=="function"&&(a=i,i=void 0),a?u(void 0,a):new Promise(u);function u(f,A){const c=qs(i);o.run(n,c,function(d,h,v){const y=h||n;d?A(d):f?f(y):a(void 0,y,v)})}}runSync(n,i){let a,o=!1;return this.run(n,i,function(u,f){Wd(u),a=f,o=!0}),Jd("runSync","run",o),a}stringify(n,i){this.freeze();const a=qs(i),o=this.compiler||this.Compiler;return Fc("stringify",o),Xd(n),o(n,a)}use(n,...i){const a=this.attachers,o=this.namespace;if(Qc("use",this.frozen),n!=null)if(typeof n=="function")c(n,i);else{if(typeof n!="object")throw new TypeError("Expected usable value, not `"+n+"`");Array.isArray(n)?A(n):f(n)}return this;function u(d){if(typeof d=="function")c(d,[]);else{if(typeof d!="object")throw new TypeError("Expected usable value, not `"+d+"`");if(Array.isArray(d)){const[h,...v]=d;c(h,v)}else f(d)}}function f(d){if(!("plugins"in d)&&!("settings"in d))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");A(d.plugins),d.settings&&(o.settings=Dc(!0,o.settings,d.settings))}function A(d){let h=-1;if(d!=null){if(!Array.isArray(d))throw new TypeError("Expected a list of plugins, not `"+d+"`");for(;++h<d.length;)u(d[h])}}function c(d,h){let v=-1,y=-1;for(;++v<a.length;)if(a[v][0]===d){y=v;break}if(y===-1)a.push([d,...h]);else if(h.length>0){let[k,...C]=h;const R=a[y][1];Ic(R)&&Ic(k)&&(k=Dc(!0,R,k)),a[y]=[d,k,...C]}}}}const Yg=new _c().freeze();function Lc(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Fc(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Qc(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Xd(e){if(!Ic(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Jd(e,n,i){if(!i)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function qs(e){return function(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}(e)?e:new Gd(e)}const qd=[],Kd={allowDangerousHtml:!0},Gg=/^(https?|ircs?|mailto|xmpp)$/i,Vg=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Xg(e){const n=e.allowedElements,i=e.allowElement,a=e.children||"",o=e.className,u=e.components,f=e.disallowedElements,A=e.rehypePlugins||qd,c=e.remarkPlugins||qd,d=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Kd}:Kd,h=e.skipHtml,v=e.unwrapDisallowed,y=e.urlTransform||Jg,k=Yg().use(xg).use(c).use(Qg,d).use(A),C=new Gd;typeof a=="string"&&(C.value=a);for(const T of Vg)Object.hasOwn(e,T.from)&&(T.from,T.to&&T.to,T.id);const R=k.parse(C);let E=k.runSync(R,C);return o&&(E={type:"element",tagName:"div",properties:{className:o},children:E.type==="root"?E.children:[E]}),Ud(E,function(T,Q,M){if(T.type==="raw"&&M&&typeof Q=="number")return h?M.children.splice(Q,1):M.children[Q]={type:"text",value:T.value},Q;if(T.type==="element"){let U;for(U in vc)if(Object.hasOwn(vc,U)&&Object.hasOwn(T.properties,U)){const j=T.properties[U],N=vc[U];(N===null||N.includes(T.tagName))&&(T.properties[U]=y(String(j||""),U,T))}}if(T.type==="element"){let U=n?!n.includes(T.tagName):!!f&&f.includes(T.tagName);if(!U&&i&&typeof Q=="number"&&(U=!i(T,Q,M)),U&&M&&typeof Q=="number")return v&&T.children?M.children.splice(Q,1,...T.children):M.children.splice(Q,1),Q}}),bh(E,{Fragment:z.Fragment,components:u,ignoreInvalidStyle:!0,jsx:z.jsx,jsxs:z.jsxs,passKeys:!0,passNode:!0})}function Jg(e){const n=e.indexOf(":"),i=e.indexOf("?"),a=e.indexOf("#"),o=e.indexOf("/");return n===-1||o!==-1&&n>o||i!==-1&&n>i||a!==-1&&n>a||Gg.test(e.slice(0,n))?e:""}const qg=({children:e})=>z.jsx("div",{style:{whiteSpace:"normal"},children:z.jsx(Xg,{components:{p:({...n})=>z.jsx("p",{style:{margin:0,marginBottom:"0.5em",lineHeight:1.4,textAlign:"left"},children:n.children}),ul:({...n})=>z.jsx("ul",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:n.children}),ol:({...n})=>z.jsx("ol",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:n.children}),li:({...n})=>z.jsx("li",{style:{marginBottom:"1px",lineHeight:1.4},children:n.children}),code:({inline:n,children:i})=>n?z.jsx("code",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"2px 4px",borderRadius:"4px",fontFamily:"inherit",fontSize:"0.95em"},children:i}):z.jsx("pre",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"8px",borderRadius:"4px",overflowX:"auto",margin:"0.5em 0",whiteSpace:"pre-wrap"},children:z.jsx("code",{children:i})}),blockquote:({...n})=>z.jsx("blockquote",{style:{margin:0,paddingLeft:"10px",borderLeft:"2px solid #ccc",color:"#666",fontStyle:"italic"},children:n.children})},children:typeof e=="string"?e:""})}),Kg={autoConfig:!0},$g=e=>()=>(n=>{const{getFlow:i}=Us(),{messages:a,replaceMessages:o}=Ii(),{settings:u}=TA(),{hasChatHistoryLoaded:f}=IA(),A={...n,...Kg},c=A.markdownComponent?A.markdownComponent:qg;B.useEffect(()=>{var v,y;if(f){const k=[...a];for(let C=0;C<k.length&&C<(((v=u.chatHistory)==null?void 0:v.maxEntries)??30);C++){const R=k[C];(y=R.tags)!=null&&y.includes("rcb-markdown-renderer-plugin:parsed")&&(R.contentWrapper=c)}o(k)}},[f]);const d=async v=>{var y;const k=(y=v.data.message)==null?void 0:y.sender.toUpperCase();((C,R,E)=>{var T;if(typeof C.data.message.content!="string"||!C.detail.currPath)return!1;const Q=R[C.detail.currPath];return!!Q&&(((T=Q.renderMarkdown)==null?void 0:T.map(M=>M.toUpperCase()).includes(E))??!1)})(v,i(),k)&&(v.data.message.contentWrapper=c,v.data.message.tags||(v.data.message.tags=[]),v.data.message.tags.push("rcb-markdown-renderer-plugin:parsed"))};Mn(we.PRE_INJECT_MESSAGE,d),Mn(we.CHUNK_STREAM_MESSAGE,d),Mn(we.START_STREAM_MESSAGE,d),Mn(we.START_SIMULATE_STREAM_MESSAGE,d);const h={name:"@rcb-plugins/markdown-renderer"};return A!=null&&A.autoConfig&&(h.settings={event:{rcbPreInjectMessage:!0,rcbChunkStreamMessage:!0,rcbStartSimulateStreamMessage:!0,rcbStartStreamMessage:!0}}),h})(e),Ks={autoConfig:!0,promptBaseColors:{info:"#007bff",warning:"#ffc107",error:"#dc3545",success:"#28a745"},promptHoveredColors:{info:"#0056b3",warning:"#d39e00",error:"#c82333",success:"#218838"},textAreaHighlightColors:{info:"#007bff",warning:"#ffc107",error:"#dc3545",success:"#28a745"}},$d=(e,n,i="validateTextInput")=>{var a;if((a=e.detail)==null||!a.currPath)return;const o=n[e.detail.currPath];if(!o)return;const u=o[i];return typeof u=="function"?u:void 0},Zg=e=>{const{showToast:n}=(()=>{const{showToast:v,dismissToast:y,toasts:k,replaceToasts:C}=wa();return{showToast:v,dismissToast:y,toasts:k,replaceToasts:C}})(),{getFlow:i}=Us(),{styles:a,updateStyles:o,replaceStyles:u}=(()=>{const{styles:v,replaceStyles:y,updateStyles:k}=kA();return{styles:v,replaceStyles:y,updateStyles:k}})(),f=(v=>({...Ks,...v,promptBaseColors:{...Ks.promptBaseColors},promptHoveredColors:{...Ks.promptHoveredColors},textAreaHighlightColors:{...Ks.textAreaHighlightColors}}))(e),[A,c]=B.useState(0),d=B.useRef({});Mn(we.USER_SUBMIT_TEXT,v=>{const y=v,k=$d(y,i(),"validateTextInput");if(!k)return;const C=k(y.data.inputText);if(C!=null&&C.success||v.preventDefault(),!C.promptContent)return;A===0&&(d.current=structuredClone(a));const R=((E,T)=>{const Q=E.promptType??"info";let M={};return T.advancedStyles&&(M=T.advancedStyles[Q]),T.promptBaseColors&&(M.toastPromptStyle={color:T.promptBaseColors[Q],borderColor:T.promptBaseColors[Q]}),T.promptHoveredColors&&(M.toastPromptHoveredStyle={color:T.promptHoveredColors[Q],borderColor:T.promptHoveredColors[Q]}),T.textAreaHighlightColors&&(E.highlightTextArea??!0)&&(M.chatInputAreaStyle={boxShadow:`${T.textAreaHighlightColors[Q]} 0px 0px 5px`}),M})(C,f);o(R),n(C.promptContent,C.promptDuration??3e3),c(E=>E+1)}),Mn(we.USER_UPLOAD_FILE,v=>{var y,k;const C=v,R=(k=(y=C.data)==null?void 0:y.files)==null?void 0:k[0];if(!R)return console.error("No file uploaded."),void v.preventDefault();const E=$d(C,i(),"validateFileInput");if(!E)return void console.error("Validator not found for file input.");const T=E(R);if(!T.success)return console.error("Validation failed:",T),T.promptContent&&n(T.promptContent,T.promptDuration??3e3),void v.preventDefault();console.log("Validation successful:",T)}),Mn(we.DISMISS_TOAST,()=>{c(v=>v-1)}),B.useEffect(()=>{A===0&&setTimeout(()=>{u(d.current)})},[A,u]);const h={name:"@rcb-plugins/input-validator"};return f.autoConfig&&(h.settings={event:{rcbUserSubmitText:!0,rcbUserUploadFile:!0,rcbDismissToast:!0}}),h},Zd=B.forwardRef((e,n)=>{let{embedded:i,currentOpen:a,enabled:o,onSetEnabled:u}=e;const f=Ii(),A=(()=>{const{isChatWindowOpen:h,toggleChatWindow:v,toggleIsBotTyping:y,scrollToBottom:k,getIsChatBotVisible:C}=wn();return{isChatWindowOpen:h,toggleChatWindow:v,toggleIsBotTyping:y,scrollToBottom:k,getIsChatBotVisible:C}})(),c=B.useRef(null),d=B.useRef(!1);return B.useEffect(()=>{!i&&A&&A.toggleChatWindow&&(c.current===a||d.current||(setTimeout(()=>{A&&A.toggleChatWindow&&A.toggleChatWindow(a)},0),c.current=a),d.current=!1)},[a,i,A]),B.useEffect(()=>{const h=()=>{d.current=!0};return window.addEventListener("rcb-toggle-chat-window",h),()=>window.removeEventListener("rcb-toggle-chat-window",h)}),B.useImperativeHandle(n,()=>({addMessage:h=>{f&&f.injectMessage&&f.injectMessage(h)},openChat:()=>{!i&&A&&A.toggleChatWindow&&A.toggleChatWindow(!0)},closeChat:()=>{!i&&A&&A.toggleChatWindow&&A.toggleChatWindow(!1)},toggleChat:()=>{!i&&A&&A.toggleChatWindow&&A.toggleChatWindow()},setBotEnabled:h=>{u&&u(h)}}),[f,A,i,u]),null});Zd.displayName="BotController";const ef=e=>{let{loginUrl:n,className:i="",style:a,isHeaderButton:o=!1}=e;const u=o?{display:"inline-block",padding:"6px 12px",backgroundColor:"transparent",border:"1px solid #ccc",color:"white",textDecoration:"none",borderRadius:"4px",fontWeight:"normal",textAlign:"center",margin:"8px",fontSize:"12px",opacity:.8,transition:"all 0.2s ease"}:{display:"inline-block",padding:"10px 20px",backgroundColor:"white",border:"1px solid var(--primaryColor, #107180)",color:"var(--primaryColor, #107180)",textDecoration:"none",borderRadius:"4px",fontWeight:"bold",textAlign:"center",margin:"18px",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.2)"};return B.createElement(B.Fragment,null,o&&B.createElement("style",null,`
138
138
  .rcb-chat-header-container .qa-bot-header-login-button:hover {
139
139
  background-color: #0000001a !important;
140
140
  opacity: 1 !important;
141
141
  }
142
- `),B.createElement("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"qa-bot-login-button ".concat(o?"qa-bot-header-login-button":""," ").concat(i),style:Object.assign(Object.assign({},u),a)},"Log In"))},em=()=>B.createElement("div",{className:"user-login-icon",style:{alignItems:"center",justifyContent:"center",width:"30px",height:"30px",borderRadius:"50%",backgroundColor:"var(--primaryColor, #1a5b6e)",marginRight:"5px",display:"flex"},role:"img","aria-label":"User logged in",title:"User logged in"},B.createElement("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},B.createElement("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),B.createElement("circle",{cx:"12",cy:"7",r:"4"}))),Lt=[];for(let e=0;e<256;++e)Lt.push((e+256).toString(16).slice(1));let Hc;const tm=new Uint8Array(16);var tf={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function nf(e,n,i){var o;if(tf.randomUUID&&!e)return tf.randomUUID();const a=(e=e||{}).random??((o=e.rng)==null?void 0:o.call(e))??function(){if(!Hc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Hc=crypto.getRandomValues.bind(crypto)}return Hc(tm)}();if(a.length<16)throw new Error("Random bytes length must be >= 16");return a[6]=15&a[6]|64,a[8]=63&a[8]|128,function(u,f=0){return(Lt[u[f+0]]+Lt[u[f+1]]+Lt[u[f+2]]+Lt[u[f+3]]+"-"+Lt[u[f+4]]+Lt[u[f+5]]+"-"+Lt[u[f+6]]+Lt[u[f+7]]+"-"+Lt[u[f+8]]+Lt[u[f+9]]+"-"+Lt[u[f+10]]+Lt[u[f+11]]+Lt[u[f+12]]+Lt[u[f+13]]+Lt[u[f+14]]+Lt[u[f+15]]).toLowerCase()}(a)}function $s(){return typeof localStorage<"u"&&localStorage.getItem("QA_BOT_DEBUG")==="true"}const nm="background: #1a5b6e; color: white; padding: 2px 6px; border-radius: 3px;",rm="background: #7c3aed; color: white; padding: 2px 6px; border-radius: 3px;",om="background: #059669; color: white; padding: 2px 6px; border-radius: 3px;",am="background: #f59e0b; color: #000; padding: 2px 6px; border-radius: 3px 0 0 3px; font-weight: bold;",im="background: #fbbf24; color: #000; padding: 2px 6px; border-radius: 0 3px 3px 0;",sm=()=>{$s()&&console.log("%c QA Bot Core %c v".concat("0.2.19"," "),am,im)},Zs=function(e){if($s()){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];console.log("%c[Session]%c ".concat(e),nm,"",...i)}},fr=function(e){if($s()){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];console.log("%c[History]%c ".concat(e),rm,"",...i)}},lm=(e,n)=>{$s()&&console.log("%c[Message]%c ".concat(e),om,"",n)},cm=function(){console.warn(...arguments)},Ho=function(){console.error(...arguments)},rf="qa_bot_session_messages",of=()=>"qa_bot_session_".concat(nf()),Qi=()=>{try{const e=localStorage.getItem(rf);return e?JSON.parse(e):{}}catch{return{}}},um=(e,n,i,a,o)=>{const u=Qi();if(!u[e]&&(u[e]={messages:[],startedAt:new Date().toISOString(),preview:""},fr("NEW session created",{sessionId:e.slice(-12)})),u[e].messages.some(d=>d.id===n))return void fr("DUPLICATE message skipped",{sessionId:e.slice(-12),messageId:n.slice(-8),sender:a});const f={id:n,content:i,sender:a,type:o,timestamp:Date.now()};u[e].messages.push(f),fr("MESSAGE added",{sessionId:e.slice(-12),messageId:n.slice(-8),sender:a,totalInSession:u[e].messages.length});const A=u[e].messages,c=A.find(d=>{var h;return d.sender.toLowerCase()==="bot"&&((h=d.content)===null||h===void 0?void 0:h.trim())&&d.content.length>=100});if(c){const d=c.content;u[e].preview=d.slice(0,50)+(d.length>50?"...":"")}else{const d=A.find(h=>{var v;return h.sender.toLowerCase()==="user"&&((v=h.content)===null||v===void 0?void 0:v.trim())});if(d&&!u[e].preview){const h=d.content;u[e].preview=h.slice(0,50)+(h.length>50?"...":"")}}(d=>{var h;const v=()=>Object.values(d).reduce((y,k)=>y+k.messages.length,0);for(;v()>100&&Object.keys(d).length>1;){const y=(h=Object.entries(d).sort((k,C)=>{let[,R]=k,[,E]=C;return new Date(R.startedAt).getTime()-new Date(E.startedAt).getTime()})[0])===null||h===void 0?void 0:h[0];if(!y)break;delete d[y]}localStorage.setItem(rf,JSON.stringify(d))})(u),fr("STORAGE state",{ourSessions:Object.keys(u).length,ourTotalMessages:Object.values(u).reduce((d,h)=>d+h.messages.length,0)})},af=e=>{var n,i;return(i=(n=Qi()[e])===null||n===void 0?void 0:n.messages.length)!==null&&i!==void 0?i:0},Am=e=>{const n=Qi()[e];return n!=null&&n.startedAt?Date.now()-new Date(n.startedAt).getTime():0},sf=B.createContext(void 0),dm=e=>{let{children:n,getSessionId:i,setSessionId:a,resetSession:o,clearResettingFlag:u}=e;return B.createElement(sf.Provider,{value:{getSessionId:i,setSessionId:a,resetSession:o,clearResettingFlag:u}},n)},Nc=()=>{const e=B.useContext(sf);if(!e)throw new Error("useSession must be used within a SessionProvider");return e},fm=()=>{const[e,n]=B.useState(!1),[i,a]=B.useState([]),[o,u]=B.useState(null),[f,A]=B.useState(0),c=B.useRef(null),d=B.useRef(null),{replaceMessages:h}=Ii(),{toggleTextAreaDisabled:v}=DA(),{setSessionId:y,getSessionId:k}=Nc();B.useEffect(()=>{var R,E;const T=M=>{c.current&&!c.current.contains(M.target)&&d.current&&!d.current.contains(M.target)&&n(!1)},Q=(E=(R=c.current)===null||R===void 0?void 0:R.getRootNode())!==null&&E!==void 0?E:document;return e&&Q.addEventListener("mousedown",T),()=>{Q.removeEventListener("mousedown",T)}},[e]);const C=R=>{var E;const T=k();if(fr("RESTORE requested",{targetSession:R.slice(-12),currentSession:T==null?void 0:T.slice(-12)}),R===T)return fr("RESTORE skipped - already on this session"),void n(!1);const Q=(j=>{var N;return((N=Qi()[j])===null||N===void 0?void 0:N.messages)||[]})(R).filter(j=>{var N;return(N=j.content)===null||N===void 0?void 0:N.trim()});fr("Stored messages from our localStorage",{count:Q.length,ids:Q.map(j=>j.id.slice(-8))});const M=Q.map(j=>({id:j.id,content:j.content,sender:j.sender.toUpperCase(),type:j.type||"string",timestamp:new Date(j.timestamp).toISOString()}));var U;y(R),fr("Session ID updated",{newSession:R.slice(-12)}),h(M),fr("replaceMessages called",{count:M.length}),U=(E=d.current)===null||E===void 0?void 0:E.getRootNode(),setTimeout(()=>{const j=(U||document).querySelector(".rcb-chat-body-container");j&&j.querySelectorAll(".rcb-bot-message").forEach(N=>{var W;let ee=N.innerHTML,G=!1;ee.includes("](")&&(ee=ee.replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>'),G=!0),ee.includes("&lt;a href=")&&(ee=ee.replace(/&lt;a\s+href=["']([^"']+)["'][^&]*&gt;([^&]+)&lt;\/a&gt;/gi,'<a href="$1" target="_blank" rel="noopener noreferrer">$2</a>'),G=!0),(ee.includes("&lt;a ")||!((W=N.textContent)===null||W===void 0)&&W.includes("<a href="))&&(N.textContent||"").includes("<a href=")&&(ee=ee.replace(/&lt;a\s+href="([^"]+)"[^&]*&gt;([^&]+)&lt;\/a&gt;/gi,'<a href="$1" target="_blank" rel="noopener noreferrer">$2</a>'),G=!0),G&&(N.innerHTML=ee)})},50),v(!1),fr("Chat input enabled after restore"),n(!1)};return B.createElement("div",{style:{position:"relative"}},B.createElement("button",{ref:d,className:"history-button",onClick:()=>{if(!e&&(a((()=>{const R=Qi();return Object.entries(R).map(E=>{let[T,Q]=E;return Object.assign({sessionId:T},Q)}).sort((E,T)=>new Date(T.startedAt).getTime()-new Date(E.startedAt).getTime())})()),d.current)){const R=d.current.closest(".rcb-chat-window");if(R){const E=R.getBoundingClientRect(),T=d.current.getBoundingClientRect();u(E.width+3),A(E.right-T.right-18+4)}}n(!e)},style:{alignItems:"center",justifyContent:"center",width:"30px",height:"30px",borderRadius:"50%",backgroundColor:"var(--primaryColor, #1a5b6e)",marginRight:"18px",display:"flex",border:"none",cursor:"pointer",padding:0},"aria-label":"View chat history",title:"View chat history","aria-expanded":e,"aria-haspopup":"menu"},B.createElement("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},B.createElement("circle",{cx:"12",cy:"12",r:"10"}),B.createElement("polyline",{points:"12 6 12 12 16 14"}))),e&&B.createElement("div",{ref:c,role:"menu",style:{position:"absolute",right:f?"-".concat(f,"px"):"-18px",top:"100%",marginTop:"8px",width:o?"".concat(o,"px"):"550px",backgroundColor:"white",borderRadius:0,borderBottom:"3px solid var(--primaryColor, #1a5b6e)",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.1)",maxHeight:"250px",overflowY:"auto",zIndex:1e3}},i.length===0?B.createElement("div",{style:{padding:"12px 16px",color:"#666",fontSize:"14px",textAlign:"center"}},"No chat history"):i.map(R=>B.createElement("button",{key:R.sessionId,role:"menuitem",onClick:()=>C(R.sessionId),style:{width:"100%",padding:"10px 14px",border:"none",backgroundColor:"transparent",cursor:"pointer",textAlign:"left",display:"flex",flexDirection:"column",gap:"2px",borderBottom:"1px solid #eee"},onMouseEnter:E=>{E.currentTarget.style.backgroundColor="#f5f5f5"},onMouseLeave:E=>{E.currentTarget.style.backgroundColor="transparent"}},B.createElement("span",{style:{fontSize:"14px",color:"#333",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},R.preview||"New conversation"),B.createElement("span",{style:{fontSize:"12px",color:"#888"}},(E=>{const T=new Date(E),Q=new Date().getTime()-T.getTime(),M=Math.floor(Q/864e5);return M===0?T.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):M===1?"Yesterday":M<7?T.toLocaleDateString([],{weekday:"short"}):T.toLocaleDateString([],{month:"short",day:"numeric"})})(R.startedAt))))))};function Uc(){return Uc=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var a in i)({}).hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e},Uc.apply(null,arguments)}const lf=({width:e=24,height:n=24,color:i="currentColor",children:a,...o})=>B.createElement("svg",Uc({xmlns:"http://www.w3.org/2000/svg",width:e,height:n,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},o),a),pm=e=>B.createElement(lf,e,B.createElement("path",{d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})),cf=B.createContext(null),hm=e=>{let{trackEvent:n,children:i}=e;const a=B.useRef(n);return a.current=n,B.createElement(cf.Provider,{value:{trackEvent:o=>a.current(o)}},i)},gm=()=>{const{restartFlow:e}=Us(),{setTextAreaValue:n}=DA(),{messages:i}=Ii(),{getSessionId:a,resetSession:o,clearResettingFlag:u}=Nc(),{trackEvent:f}=B.useContext(cf)||{trackEvent:()=>{}};return B.createElement("button",{onClick:async()=>{const A=a(),c=A?af(A):0;f({type:"chatbot_new_chat",previousMessageCount:c}),o(),await n(""),await e(),setTimeout(()=>{u()},100)},tabIndex:0,"aria-label":"New chat conversation",style:{backgroundColor:"var(--primaryColor, #107180)",border:"none",color:"#ffffff",fontSize:"14px",cursor:"pointer",padding:"8px 12px",borderRadius:"4px",transition:"all 0.2s ease",display:"flex",alignItems:"center",gap:"6px",fontWeight:"500"},onMouseEnter:A=>{A.target.style.backgroundColor="var(--secondaryColor, #0d5f6b)"},onMouseLeave:A=>{A.target.style.backgroundColor="var(--primaryColor, #107180)"}},B.createElement(pm,{width:16,height:16}),"New Chat")};function zc(e){if(typeof e=="string")return e;if(typeof e=="number")return String(e);if(!e)return"";if(Array.isArray(e))return e.map(zc).join("");if(typeof e=="object"&&e!==null&&"props"in e){const n=e.props;if(n&&"children"in n)return zc(n.children)}return""}const mm=()=>{const{getSessionId:e}=Nc(),n=B.useCallback(i=>{var a;const o=(a=i.data)===null||a===void 0?void 0:a.message;if(!(o!=null&&o.id))return;const u=o.sender,f=o.type||"string";let A;if(A=typeof o.content=="string"?o.content:zc(o.content),lm("TRACKED",{id:o.id,sender:u,content:A.substring(0,50)+(A.length>50?"...":"")}),A.includes("rcb-options-container")||!A.trim())return;const c=e();um(c,o.id,A,u,f)},[e]);return B.useEffect(()=>(window.addEventListener("rcb-pre-inject-message",n),()=>{window.removeEventListener("rcb-pre-inject-message",n)}),[n]),null},vm=()=>(B.useEffect(()=>{const e=f=>{if(!["ArrowDown","ArrowUp","ArrowLeft","ArrowRight","Enter"," ","Home","End"].includes(f.key))return;const A=document.activeElement;if(A&&(A.tagName==="INPUT"||A.tagName==="TEXTAREA"||A.contentEditable==="true"||A.classList.contains("rcb-chat-input-textarea")))return;const c=document.querySelector(".rcb-chat-window");if(!c)return;const d=Array.from(c.querySelectorAll(".rcb-message-container, .rcb-bot-message-container, .rcb-user-message-container")).filter(y=>y.offsetParent!==null);if(d.length>0){const y=d[d.length-1].querySelector(".rcb-checkbox-container");if(y&&y.offsetParent!==null){const k=Array.from(y.querySelectorAll(".rcb-checkbox-row-container")),C=y.querySelector(".rcb-checkbox-next-button");if(k.length>0){const R=[...k];return C&&R.push(C),void((E,T)=>{E.preventDefault();let Q=-1;for(let U=0;U<T.length;U++)if(T[U]===document.activeElement||T[U].contains(document.activeElement)){Q=U;break}Q===-1&&(Q=0);let M=Q;switch(E.key){case"ArrowDown":case"ArrowRight":M=Q<T.length-1?Q+1:0;break;case"ArrowUp":case"ArrowLeft":M=Q>0?Q-1:T.length-1;break;case"Home":M=0;break;case"End":M=T.length-1;break;case"Enter":case" ":{const U=T[Q],j=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});return void U.dispatchEvent(j)}default:return}T[M].focus(),T[M].setAttribute("tabindex","0"),T[M].classList.add("keyboard-focused"),T.forEach((U,j)=>{j!==M&&(U.setAttribute("tabindex","-1"),U.classList.remove("keyboard-focused"))})})(f,R)}}}let h=[];if(d.length>0){const y=d[d.length-1],k=Array.from(y.querySelectorAll(".rcb-options-container")).filter(C=>C.offsetParent!==null);if(k.length>0){const C=k[k.length-1];h=Array.from(C.querySelectorAll(".rcb-options"))}}if(h.length===0)return;const v=h.findIndex(y=>y===document.activeElement);switch(f.key){case"ArrowDown":case"ArrowRight":{let y;f.preventDefault(),y=v<h.length-1?v+1:0,h[y].setAttribute("tabindex","0"),h.forEach((k,C)=>{C!==y&&(k.setAttribute("tabindex","-1"),k.classList.remove("keyboard-focused"))}),h[y].classList.add("keyboard-focused"),h[y].focus();break}case"ArrowUp":case"ArrowLeft":{let y;f.preventDefault(),y=v>0?v-1:h.length-1,h[y].setAttribute("tabindex","0"),h.forEach((k,C)=>{C!==y&&(k.setAttribute("tabindex","-1"),k.classList.remove("keyboard-focused"))}),h[y].classList.add("keyboard-focused"),h[y].focus();break}case"Enter":case" ":if(f.preventDefault(),document.activeElement&&h.includes(document.activeElement)){const y=document.activeElement;if(y.classList.contains("rcb-checkbox-row-container")||y.closest(".rcb-checkbox-row-container")){const k=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});y.dispatchEvent(k);const C=y.querySelector(".rcb-checkbox-label"),R=C?C.textContent:y.textContent||"checkbox",E=y.querySelector(".rcb-checkbox-mark"),T=E&&E.style.backgroundColor?"checked":"unchecked";n(`${R} ${T}`)}else{const k=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});y.dispatchEvent(k);const C=y.textContent||y.innerText;n(`Selected: ${C}`)}}break;case"Home":f.preventDefault(),h.length>0&&(h[0].setAttribute("tabindex","0"),h.forEach((y,k)=>{k!==0&&(y.setAttribute("tabindex","-1"),y.classList.remove("keyboard-focused"))}),h[0].classList.add("keyboard-focused"),h[0].focus());break;case"End":if(f.preventDefault(),h.length>0){const y=h.length-1;h[y].setAttribute("tabindex","0"),h.forEach((k,C)=>{C!==y&&(k.setAttribute("tabindex","-1"),k.classList.remove("keyboard-focused"))}),h[y].classList.add("keyboard-focused"),h[y].focus()}}},n=f=>{const A=document.createElement("div");A.setAttribute("aria-live","assertive"),A.setAttribute("aria-atomic","true"),A.className="sr-only",A.textContent=f,document.body.appendChild(A),setTimeout(()=>{document.body.contains(A)&&document.body.removeChild(A)},1e3)},i=(f=null)=>{let A=f;if(A||(A=document.querySelector(".rcb-chat-window"),A||(A=document.querySelector('[class*="rcb-chat"]')),A||(A=document.querySelector(".qa-bot"))),!A)return;const c=A.closest(".embedded-qa-bot")!==null,d=Array.from(A.querySelectorAll(".rcb-message-container, .rcb-bot-message-container, .rcb-user-message-container")).filter(k=>k.offsetParent!==null);if(d.length===0)return;const h=d[d.length-1],v=Array.from(h.querySelectorAll(".rcb-options-container")).filter(k=>k.offsetParent!==null);let y=[];if(v.length>0){const k=v[v.length-1];y=Array.from(k.querySelectorAll(".rcb-options"))}if(y.length===0){let k=h.querySelector(".rcb-checkbox-container");if(!k&&A&&(k=A.querySelector(".rcb-checkbox-container")),k&&k.offsetParent!==null){const C=Array.from(k.querySelectorAll(".rcb-checkbox-row-container")).filter(R=>R.offsetParent!==null&&R.style.display!=="none");if(C.length>0){const R=k.querySelector(".rcb-checkbox-next-button"),E=[...C];if(R&&R.offsetParent!==null&&E.push(R),E.forEach((T,Q)=>{T.setAttribute("tabindex",Q===0?"0":"-1"),Q===0?T.classList.add("keyboard-focused"):T.classList.remove("keyboard-focused")}),C.length>1){k.querySelectorAll(".keyboard-nav-hint").forEach(Q=>Q.remove());const T=document.createElement("div");T.className="keyboard-nav-hint",T.textContent="Use arrow keys ↕ to navigate, Enter to select/deselect, or click any option",T.style.cssText="font-size: 12px !important; color: #666 !important; margin-bottom: 8px !important; font-style: italic !important; display: block !important;",k.insertBefore(T,k.firstChild)}return void setTimeout(()=>{E[0]&&E[0].offsetParent!==null&&!c&&E[0].focus()},150)}}}if(y.length>0){if(y.forEach((k,C)=>{const R=C===0?"0":"-1";k.setAttribute("tabindex",R),k.setAttribute("role","option"),k.setAttribute("aria-posinset",C+1),k.setAttribute("aria-setsize",y.length),C===0?k.classList.add("keyboard-focused"):k.classList.remove("keyboard-focused")}),y.length>1){const k=v.length>0?v[v.length-1]:null;if(k){k.querySelectorAll(".keyboard-nav-hint").forEach(R=>R.remove());const C=document.createElement("div");C.className="keyboard-nav-hint",C.textContent="Use arrow keys ↕ to navigate, Enter to select, or click any option",C.style.cssText="font-size: 12px !important; color: #666 !important; margin-bottom: 8px !important; font-style: italic !important; display: block !important;",k.insertBefore(C,k.firstChild)}}else{const k=v.length>0?v[v.length-1]:null;k&&k.querySelectorAll(".keyboard-nav-hint").forEach(C=>C.remove())}setTimeout(()=>{y[0]&&y[0].offsetParent!==null&&!c&&(y[0].focus(),y.length>1&&n(`${y.length} options available. Use arrow keys to navigate.`))},200)}},a=f=>{const A=f.querySelectorAll(".rcb-options");A.forEach((c,d)=>{c.hasAttribute("role")||(c.setAttribute("role","button"),c.setAttribute("tabindex",d===0?"0":"-1"),c.setAttribute("aria-posinset",d+1),c.setAttribute("aria-setsize",A.length))}),f.querySelectorAll(".rcb-checkbox-row-container").forEach((c,d)=>{c.hasAttribute("role")||(c.setAttribute("role","checkbox"),c.setAttribute("tabindex",d===0?"0":"-1"))})},o=new MutationObserver(f=>{f.forEach(A=>{var c,d;if(A.type==="childList"){const h=Array.from(A.addedNodes),v=h.some(k=>{var C,R,E,T;return k.nodeType===Node.ELEMENT_NODE&&(((C=k.classList)==null?void 0:C.contains("rcb-options-container"))||((R=k.classList)==null?void 0:R.contains("rcb-options"))||((E=k.querySelector)==null?void 0:E.call(k,".rcb-options-container"))||((T=k.querySelector)==null?void 0:T.call(k,".rcb-options")))}),y=h.some(k=>{var C,R;return k.nodeType===Node.ELEMENT_NODE&&(((C=k.classList)==null?void 0:C.contains("rcb-checkbox-container"))||((R=k.querySelector)==null?void 0:R.call(k,".rcb-checkbox-container")))});if(v||y){let k=A.target;for(;k&&!((c=k.classList)!=null&&c.contains("qa-bot"))&&!((d=k.classList)!=null&&d.contains("rcb-chat-window"));)k=k.parentElement;const C=k||document;a(C),C.querySelectorAll(".rcb-options[tabindex], .rcb-checkbox-row-container[tabindex], .rcb-checkbox-next-button[tabindex]").forEach(R=>{R.setAttribute("tabindex","-1"),R.classList.remove("keyboard-focused")}),setTimeout(()=>i(k),100)}}})});o.observe(document.body,{childList:!0,subtree:!0}),document.addEventListener("keydown",e),a(document),i();const u=setInterval(()=>{document.querySelectorAll(".qa-bot").forEach(f=>{const A=f.querySelectorAll(".rcb-options-container .rcb-options").length>0,c=f.querySelectorAll(".rcb-checkbox-row-container").length>0;if(A){a(f);const d=f.querySelectorAll(".rcb-options[tabindex]").length;f.querySelectorAll(".rcb-options").length>d&&i(f)}if(c){a(f);const d=f.querySelectorAll(".rcb-checkbox-row-container[tabindex]").length;f.querySelectorAll(".rcb-checkbox-row-container").length>d&&i(f)}})},1e3);return()=>{document.removeEventListener("keydown",e),o.disconnect(),clearInterval(u)}},[]),null),ym="#1a5b6e",bm="#107180",wm="Arial, sans-serif",uf="Q&A Bot",xm="/chat-icon.svg",Sm="Type your question here...",km="Select an option to continue",Em=!1,Cm="Ask me a question!",Af="/login",Pm={general:{showHeader:!0,showFooter:!0},tooltip:{mode:"CLOSE"},chatInput:{disabled:!1,characterLimit:1e3,showCharacterCount:!1,allowNewline:!0,blockSpam:!1},chatWindow:{defaultOpen:!1,showScrollbar:!1},botBubble:{simulateStream:!0,streamSpeed:10,showAvatar:!1},userBubble:{showAvatar:!1},notification:{disabled:!0,showCount:!1},audio:{disabled:!0},emoji:{disabled:!0},fileAttachment:{disabled:!0}},jc=B.forwardRef((e,n)=>{var i,a;const{apiKey:o,qaEndpoint:u,ratingEndpoint:f,welcomeMessage:A,open:c,onOpenChange:d,isLoggedIn:h,allowAnonAccess:v=!1,actingUser:y,primaryColor:k,secondaryColor:C,botName:R,logo:E,placeholder:T,errorMessage:Q,embedded:M,footerText:U,footerLink:j,tooltipText:N,loginUrl:W,customFlow:ee,onAnalyticsEvent:G}=e,Y=B.useRef("bot_".concat(Math.random().toString(36).substr(2,9)));B.useEffect(()=>{sm()},[]);const Z=B.useRef(null);Z.current===null&&(Z.current=of(),Zs("CREATED",Z.current));const $=B.useRef(!1),ae=B.useRef({getSessionId:()=>Z.current,isResetting:()=>$.current}),[ie,le]=B.useState(h);B.useEffect(()=>{le(h)},[h]);const be=M!==void 0?M:Em,he=B.useCallback(fe=>{var ce;G&&G(Object.assign(Object.assign({},fe),{timestamp:Date.now(),sessionId:(ce=Z.current)!==null&&ce!==void 0?ce:void 0,pageUrl:typeof window<"u"?window.location.href:void 0,isEmbedded:be}))},[G,be]),me=B.useMemo(()=>{const fe=Object.assign({},Pm);fe.general=Object.assign(Object.assign({},fe.general),{primaryColor:k||ym,secondaryColor:C||bm,fontFamily:wm,embedded:be});const ce=ie===!1?[B.createElement(ef,{key:"login-button",loginUrl:W||Af,isHeaderButton:!0})]:[B.createElement(fm,{key:"history-button"}),B.createElement(em,{key:"user-icon"})];fe.header={title:B.createElement("span",{style:{fontSize:14,fontWeight:500}},R||uf),showAvatar:!0,avatar:E||xm,buttons:[...ce,mt.CLOSE_CHAT_BUTTON]},fe.chatInput=Object.assign(Object.assign({},fe.chatInput),{disabled:!1,enabledPlaceholderText:T||Sm,disabledPlaceholderText:Q||km}),fe.tooltip=Object.assign(Object.assign({},fe.tooltip),{text:N||Cm});const ge=U?j?B.createElement("a",{href:j,target:"_blank",rel:"noopener noreferrer",key:"footer-link"},U):B.createElement("span",{key:"footer-text"},U):null;return fe.footer={text:ge,buttons:[B.createElement(gm,{key:"new-chat-button"})]},fe.event={rcbPreInjectMessage:!0,rcbPostInjectMessage:!0,rcbUserSubmitText:!0,rcbChangePath:!0,rcbToggleChatWindow:!0},fe},[k,C,R,E,T,Q,be,N,ie,W,U,j]),L=B.useRef(null),Be=function(fe){let ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return B.useMemo(()=>{const ge=(ye,De)=>{if(fe.current){const Fe=getComputedStyle(fe.current).getPropertyValue(ye);if(Fe&&Fe.trim()!=="")return Fe.trim();if(fe.current.parentElement){const Re=getComputedStyle(fe.current.parentElement).getPropertyValue(ye);if(Re&&Re.trim()!=="")return Re.trim()}}return De};return{primaryColor:ge("--primaryColor",ce.primaryColor),secondaryColor:ge("--secondaryColor",ce.secondaryColor),fontFamily:ge("--fontFamily",ce.fontFamily)}},[fe,ce])}(L,me.general);((fe,ce)=>{B.useEffect(()=>{ce.current&&(fe?ce.current.classList.add("bot-logged-in"):ce.current.classList.remove("bot-logged-in"))},[fe,ce])})(ie!==!1,L),(fe=>{let{settings:ce,themeColors:ge}=fe;B.useEffect(()=>{ge&&(Object.entries(ge).forEach(ye=>{let[De,Fe]=ye;Fe&&document.documentElement.style.setProperty("--".concat(De),Fe)}),ge.primaryColor&&document.documentElement.style.setProperty("--rcb-header-background",ge.primaryColor),ge.secondaryColor&&document.documentElement.style.setProperty("--rcb-header-background-hover",ge.secondaryColor))},[ge]),B.useEffect(()=>{var ye,De,Fe;!((ye=ce.header)===null||ye===void 0)&&ye.title&&typeof ce.header.title=="string"&&(ce.header.title=B.createElement("div",{key:"header-title"},B.createElement("h1",{className:"sr-only"},ce.header.title),B.createElement("span",{"aria-hidden":"true"},ce.header.title))),!((De=ce.general)===null||De===void 0)&&De.embedded&&ce.chatWindow&&(ce.chatWindow.defaultOpen=!0),ce.device={desktopEnabled:!0,mobileEnabled:!0,applyMobileOptimizations:!1},ce.chatHistory={disabled:!0},ce.chatButton=Object.assign(Object.assign({},ce.chatButton),{icon:(Fe=ce.header)===null||Fe===void 0?void 0:Fe.avatar}),ce.event={rcbToggleChatWindow:!0}},[ce])})({settings:me,themeColors:Be});const F=B.useMemo(()=>{const fe=(ge=>{let{endpoint:ye,ratingEndpoint:De,apiKey:Fe,sessionId:Re,isResetting:Ue=()=>!1,isLoggedIn:Je,allowAnonAccess:Dt=!1,loginUrl:Ke="/login",trackEvent:ze}=ge;if(Je===!1&&!Dt)return ze==null||ze({type:"chatbot_login_prompt_shown"}),{qa_loop:{message:"To ask questions, please log in first.",component:B.createElement(ef,{loginUrl:Ke}),chatDisabled:!0,path:"qa_loop"}};let vt=null,It=!1;if(!ye)throw new Error("Q&A endpoint is required");return{qa_loop:{message:async Ht=>{const{userInput:lt}=Ht;if(Ue&&Ue()||!lt||lt.trim()==="")return null;if(lt==="👍 Helpful"||lt==="👎 Not helpful"){if(De&&vt)try{const qe=lt==="👍 Helpful",dt={"Content-Type":"application/json"};Fe&&(dt["X-API-KEY"]=Fe);const Pt=Re();Pt&&(dt["X-Session-ID"]=Pt,dt["X-Query-ID"]=vt),await fetch(De,{method:"POST",headers:dt,credentials:"include",body:JSON.stringify({sessionId:Pt,queryId:vt,rating:qe?1:0})}),ze==null||ze({type:"chatbot_rating_sent",queryId:vt,rating:qe?"helpful":"not_helpful"})}catch(qe){Ho("Error sending feedback:",qe)}return"Thanks for the feedback! Feel free to ask another question."}try{const qe=nf();vt=qe,ze==null||ze({type:"chatbot_question_sent",queryId:qe,questionLength:lt.length});const dt={"Content-Type":"application/json"};Fe&&(dt["X-API-KEY"]=Fe);const Pt=Re();Pt&&(dt["X-Session-ID"]=Pt,dt["X-Query-ID"]=qe);const Et={query:lt,session_id:Pt,question_id:qe};Zs("SENT to API",{session_id:Pt,question_id:qe});const ut=Date.now(),Ze=await fetch(ye,{method:"POST",headers:dt,credentials:"include",body:JSON.stringify(Et)}),kn=Date.now()-ut;if(!Ze.ok)throw new Error("API returned ".concat(Ze.status));const Nt=await Ze.json(),Kt=Nt.response||Nt.answer||Nt.text||Nt.message;if(!Kt)throw new Error("Invalid response format from API");const et=(Se=>{if(!Se||typeof Se!="string")return Se;let _e=Se.replace(/\[(https?:\/\/[^\s]+?)\]/gi,"[$1]($1)");return _e=_e.replace(new RegExp(`(?<!\\]\\(|href=["']|\\[)https?:\\/\\/[^\\s[\\]()]+`,"gi"),Oe=>{let tt=Oe,ft="";const pt=tt.match(/([.,;:!?]+)$/);return pt&&(ft=pt[1],tt=tt.slice(0,-ft.length)),"[".concat(tt,"](").concat(tt,")").concat(ft)}),_e})(Kt),ne=function(Se){const{confidence:_e,tools_used:Oe,metadata:tt}=Se;if(!(_e||Oe&&Oe.length!==0))return"";const ft=[];return _e&&ft.push("• Confidence: ".concat(_e)),Oe&&Oe.length>0&&ft.push("• Tools used: ".concat(Oe.join(", "))),tt!=null&&tt.agent&&ft.push("• Agent: ".concat(tt.agent)),`---
142
+ `),B.createElement("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"qa-bot-login-button ".concat(o?"qa-bot-header-login-button":""," ").concat(i),style:Object.assign(Object.assign({},u),a)},"Log In"))},em=()=>B.createElement("div",{className:"user-login-icon",style:{alignItems:"center",justifyContent:"center",width:"30px",height:"30px",borderRadius:"50%",backgroundColor:"var(--primaryColor, #1a5b6e)",marginRight:"5px",display:"flex"},role:"img","aria-label":"User logged in",title:"User logged in"},B.createElement("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},B.createElement("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),B.createElement("circle",{cx:"12",cy:"7",r:"4"}))),Lt=[];for(let e=0;e<256;++e)Lt.push((e+256).toString(16).slice(1));let Hc;const tm=new Uint8Array(16);var tf={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function nf(e,n,i){var o;if(tf.randomUUID&&!e)return tf.randomUUID();const a=(e=e||{}).random??((o=e.rng)==null?void 0:o.call(e))??function(){if(!Hc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Hc=crypto.getRandomValues.bind(crypto)}return Hc(tm)}();if(a.length<16)throw new Error("Random bytes length must be >= 16");return a[6]=15&a[6]|64,a[8]=63&a[8]|128,function(u,f=0){return(Lt[u[f+0]]+Lt[u[f+1]]+Lt[u[f+2]]+Lt[u[f+3]]+"-"+Lt[u[f+4]]+Lt[u[f+5]]+"-"+Lt[u[f+6]]+Lt[u[f+7]]+"-"+Lt[u[f+8]]+Lt[u[f+9]]+"-"+Lt[u[f+10]]+Lt[u[f+11]]+Lt[u[f+12]]+Lt[u[f+13]]+Lt[u[f+14]]+Lt[u[f+15]]).toLowerCase()}(a)}function $s(){return typeof localStorage<"u"&&localStorage.getItem("QA_BOT_DEBUG")==="true"}const nm="background: #1a5b6e; color: white; padding: 2px 6px; border-radius: 3px;",rm="background: #7c3aed; color: white; padding: 2px 6px; border-radius: 3px;",om="background: #059669; color: white; padding: 2px 6px; border-radius: 3px;",am="background: #f59e0b; color: #000; padding: 2px 6px; border-radius: 3px 0 0 3px; font-weight: bold;",im="background: #fbbf24; color: #000; padding: 2px 6px; border-radius: 0 3px 3px 0;",sm=()=>{$s()&&console.log("%c QA Bot Core %c v".concat("0.2.19"," "),am,im)},Zs=function(e){if($s()){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];console.log("%c[Session]%c ".concat(e),nm,"",...i)}},fr=function(e){if($s()){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];console.log("%c[History]%c ".concat(e),rm,"",...i)}},lm=(e,n)=>{$s()&&console.log("%c[Message]%c ".concat(e),om,"",n)},cm=function(){console.warn(...arguments)},Ho=function(){console.error(...arguments)},rf="qa_bot_session_messages",of=()=>"qa_bot_session_".concat(nf()),Qi=()=>{try{const e=localStorage.getItem(rf);return e?JSON.parse(e):{}}catch{return{}}},um=(e,n,i,a,o)=>{const u=Qi();if(!u[e]&&(u[e]={messages:[],startedAt:new Date().toISOString(),preview:""},fr("NEW session created",{sessionId:e.slice(-12)})),u[e].messages.some(d=>d.id===n))return void fr("DUPLICATE message skipped",{sessionId:e.slice(-12),messageId:n.slice(-8),sender:a});const f={id:n,content:i,sender:a,type:o,timestamp:Date.now()};u[e].messages.push(f),fr("MESSAGE added",{sessionId:e.slice(-12),messageId:n.slice(-8),sender:a,totalInSession:u[e].messages.length});const A=u[e].messages,c=A.find(d=>{var h;return d.sender.toLowerCase()==="bot"&&((h=d.content)===null||h===void 0?void 0:h.trim())&&d.content.length>=100});if(c){const d=c.content;u[e].preview=d.slice(0,50)+(d.length>50?"...":"")}else{const d=A.find(h=>{var v;return h.sender.toLowerCase()==="user"&&((v=h.content)===null||v===void 0?void 0:v.trim())});if(d&&!u[e].preview){const h=d.content;u[e].preview=h.slice(0,50)+(h.length>50?"...":"")}}(d=>{var h;const v=()=>Object.values(d).reduce((y,k)=>y+k.messages.length,0);for(;v()>100&&Object.keys(d).length>1;){const y=(h=Object.entries(d).sort((k,C)=>{let[,R]=k,[,E]=C;return new Date(R.startedAt).getTime()-new Date(E.startedAt).getTime()})[0])===null||h===void 0?void 0:h[0];if(!y)break;delete d[y]}localStorage.setItem(rf,JSON.stringify(d))})(u),fr("STORAGE state",{ourSessions:Object.keys(u).length,ourTotalMessages:Object.values(u).reduce((d,h)=>d+h.messages.length,0)})},af=e=>{var n,i;return(i=(n=Qi()[e])===null||n===void 0?void 0:n.messages.length)!==null&&i!==void 0?i:0},Am=e=>{const n=Qi()[e];return n!=null&&n.startedAt?Date.now()-new Date(n.startedAt).getTime():0},sf=B.createContext(void 0),dm=e=>{let{children:n,getSessionId:i,setSessionId:a,resetSession:o,clearResettingFlag:u}=e;return B.createElement(sf.Provider,{value:{getSessionId:i,setSessionId:a,resetSession:o,clearResettingFlag:u}},n)},Nc=()=>{const e=B.useContext(sf);if(!e)throw new Error("useSession must be used within a SessionProvider");return e},fm=()=>{const[e,n]=B.useState(!1),[i,a]=B.useState([]),[o,u]=B.useState(null),[f,A]=B.useState(0),c=B.useRef(null),d=B.useRef(null),{replaceMessages:h}=Ii(),{toggleTextAreaDisabled:v}=DA(),{setSessionId:y,getSessionId:k}=Nc();B.useEffect(()=>{var R,E;const T=M=>{c.current&&!c.current.contains(M.target)&&d.current&&!d.current.contains(M.target)&&n(!1)},Q=(E=(R=c.current)===null||R===void 0?void 0:R.getRootNode())!==null&&E!==void 0?E:document;return e&&Q.addEventListener("mousedown",T),()=>{Q.removeEventListener("mousedown",T)}},[e]);const C=R=>{var E;const T=k();if(fr("RESTORE requested",{targetSession:R.slice(-12),currentSession:T==null?void 0:T.slice(-12)}),R===T)return fr("RESTORE skipped - already on this session"),void n(!1);const Q=(j=>{var N;return((N=Qi()[j])===null||N===void 0?void 0:N.messages)||[]})(R).filter(j=>{var N;return(N=j.content)===null||N===void 0?void 0:N.trim()});fr("Stored messages from our localStorage",{count:Q.length,ids:Q.map(j=>j.id.slice(-8))});const M=Q.map(j=>({id:j.id,content:j.content,sender:j.sender.toUpperCase(),type:j.type||"string",timestamp:new Date(j.timestamp).toISOString()}));var U;y(R),fr("Session ID updated",{newSession:R.slice(-12)}),h(M),fr("replaceMessages called",{count:M.length}),U=(E=d.current)===null||E===void 0?void 0:E.getRootNode(),setTimeout(()=>{const j=(U||document).querySelector(".rcb-chat-body-container");j&&j.querySelectorAll(".rcb-bot-message").forEach(N=>{var W;let ee=N.innerHTML,G=!1;ee.includes("](")&&(ee=ee.replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>'),G=!0),ee.includes("&lt;a href=")&&(ee=ee.replace(/&lt;a\s+href=["']([^"']+)["'][^&]*&gt;([^&]+)&lt;\/a&gt;/gi,'<a href="$1" target="_blank" rel="noopener noreferrer">$2</a>'),G=!0),(ee.includes("&lt;a ")||!((W=N.textContent)===null||W===void 0)&&W.includes("<a href="))&&(N.textContent||"").includes("<a href=")&&(ee=ee.replace(/&lt;a\s+href="([^"]+)"[^&]*&gt;([^&]+)&lt;\/a&gt;/gi,'<a href="$1" target="_blank" rel="noopener noreferrer">$2</a>'),G=!0),G&&(N.innerHTML=ee)})},50),v(!1),fr("Chat input enabled after restore"),n(!1)};return B.createElement("div",{style:{position:"relative"}},B.createElement("button",{ref:d,className:"history-button",onClick:()=>{if(!e&&(a((()=>{const R=Qi();return Object.entries(R).map(E=>{let[T,Q]=E;return Object.assign({sessionId:T},Q)}).sort((E,T)=>new Date(T.startedAt).getTime()-new Date(E.startedAt).getTime())})()),d.current)){const R=d.current.closest(".rcb-chat-window");if(R){const E=R.getBoundingClientRect(),T=d.current.getBoundingClientRect();u(E.width+3),A(E.right-T.right-18+4)}}n(!e)},style:{alignItems:"center",justifyContent:"center",width:"30px",height:"30px",borderRadius:"50%",backgroundColor:"var(--primaryColor, #1a5b6e)",marginRight:"18px",display:"flex",border:"none",cursor:"pointer",padding:0},"aria-label":"View chat history",title:"View chat history","aria-expanded":e,"aria-haspopup":"menu"},B.createElement("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},B.createElement("circle",{cx:"12",cy:"12",r:"10"}),B.createElement("polyline",{points:"12 6 12 12 16 14"}))),e&&B.createElement("div",{ref:c,role:"menu",style:{position:"absolute",right:f?"-".concat(f,"px"):"-18px",top:"100%",marginTop:"8px",width:o?"".concat(o,"px"):"550px",backgroundColor:"white",borderRadius:0,borderBottom:"3px solid var(--primaryColor, #1a5b6e)",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.1)",maxHeight:"250px",overflowY:"auto",zIndex:1e3}},i.length===0?B.createElement("div",{style:{padding:"12px 16px",color:"#666",fontSize:"14px",textAlign:"center"}},"No chat history"):i.map(R=>B.createElement("button",{key:R.sessionId,role:"menuitem",onClick:()=>C(R.sessionId),style:{width:"100%",padding:"10px 14px",border:"none",backgroundColor:"transparent",cursor:"pointer",textAlign:"left",display:"flex",flexDirection:"column",gap:"2px",borderBottom:"1px solid #eee"},onMouseEnter:E=>{E.currentTarget.style.backgroundColor="#f5f5f5"},onMouseLeave:E=>{E.currentTarget.style.backgroundColor="transparent"}},B.createElement("span",{style:{fontSize:"14px",color:"#333",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},R.preview||"New conversation"),B.createElement("span",{style:{fontSize:"12px",color:"#888"}},(E=>{const T=new Date(E),Q=new Date().getTime()-T.getTime(),M=Math.floor(Q/864e5);return M===0?T.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):M===1?"Yesterday":M<7?T.toLocaleDateString([],{weekday:"short"}):T.toLocaleDateString([],{month:"short",day:"numeric"})})(R.startedAt))))))};function Uc(){return Uc=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var a in i)({}).hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e},Uc.apply(null,arguments)}const lf=({width:e=24,height:n=24,color:i="currentColor",children:a,...o})=>B.createElement("svg",Uc({xmlns:"http://www.w3.org/2000/svg",width:e,height:n,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},o),a),pm=e=>B.createElement(lf,e,B.createElement("path",{d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})),cf=B.createContext(null),hm=e=>{let{trackEvent:n,children:i}=e;const a=B.useRef(n);return a.current=n,B.createElement(cf.Provider,{value:{trackEvent:o=>a.current(o)}},i)},gm=()=>{const{restartFlow:e}=Us(),{setTextAreaValue:n}=DA(),{messages:i}=Ii(),{getSessionId:a,resetSession:o,clearResettingFlag:u}=Nc(),{trackEvent:f}=B.useContext(cf)||{trackEvent:()=>{}};return B.createElement("button",{onClick:async()=>{const A=a(),c=A?af(A):0;f({type:"chatbot_new_chat",previousMessageCount:c}),o(),await n(""),await e(),setTimeout(()=>{u()},100)},tabIndex:0,"aria-label":"New chat conversation",style:{backgroundColor:"var(--primaryColor, #107180)",border:"none",color:"#ffffff",fontSize:"14px",cursor:"pointer",padding:"8px 12px",borderRadius:"4px",transition:"all 0.2s ease",display:"flex",alignItems:"center",gap:"6px",fontWeight:"500"},onMouseEnter:A=>{A.target.style.backgroundColor="var(--secondaryColor, #0d5f6b)"},onMouseLeave:A=>{A.target.style.backgroundColor="var(--primaryColor, #107180)"}},B.createElement(pm,{width:16,height:16}),"New Chat")};function zc(e){if(typeof e=="string")return e;if(typeof e=="number")return String(e);if(!e)return"";if(Array.isArray(e))return e.map(zc).join("");if(typeof e=="object"&&e!==null&&"props"in e){const n=e.props;if(n&&"children"in n)return zc(n.children)}return""}const mm=()=>{const{getSessionId:e}=Nc(),n=B.useCallback(i=>{var a;const o=(a=i.data)===null||a===void 0?void 0:a.message;if(!(o!=null&&o.id))return;const u=o.sender,f=o.type||"string";let A;if(A=typeof o.content=="string"?o.content:zc(o.content),lm("TRACKED",{id:o.id,sender:u,content:A.substring(0,50)+(A.length>50?"...":"")}),A.includes("rcb-options-container")||!A.trim())return;const c=e();um(c,o.id,A,u,f)},[e]);return B.useEffect(()=>(window.addEventListener("rcb-pre-inject-message",n),()=>{window.removeEventListener("rcb-pre-inject-message",n)}),[n]),null},vm=()=>(B.useEffect(()=>{const e=f=>{if(!["ArrowDown","ArrowUp","ArrowLeft","ArrowRight","Enter"," ","Home","End"].includes(f.key))return;const A=document.activeElement;if(A&&(A.tagName==="INPUT"||A.tagName==="TEXTAREA"||A.contentEditable==="true"||A.classList.contains("rcb-chat-input-textarea")))return;const c=document.querySelector(".rcb-chat-window");if(!c)return;const d=Array.from(c.querySelectorAll(".rcb-message-container, .rcb-bot-message-container, .rcb-user-message-container")).filter(y=>y.offsetParent!==null);if(d.length>0){const y=d[d.length-1].querySelector(".rcb-checkbox-container");if(y&&y.offsetParent!==null){const k=Array.from(y.querySelectorAll(".rcb-checkbox-row-container")),C=y.querySelector(".rcb-checkbox-next-button");if(k.length>0){const R=[...k];return C&&R.push(C),void((E,T)=>{E.preventDefault();let Q=-1;for(let U=0;U<T.length;U++)if(T[U]===document.activeElement||T[U].contains(document.activeElement)){Q=U;break}Q===-1&&(Q=0);let M=Q;switch(E.key){case"ArrowDown":case"ArrowRight":M=Q<T.length-1?Q+1:0;break;case"ArrowUp":case"ArrowLeft":M=Q>0?Q-1:T.length-1;break;case"Home":M=0;break;case"End":M=T.length-1;break;case"Enter":case" ":{const U=T[Q],j=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});return void U.dispatchEvent(j)}default:return}T[M].focus(),T[M].setAttribute("tabindex","0"),T[M].classList.add("keyboard-focused"),T.forEach((U,j)=>{j!==M&&(U.setAttribute("tabindex","-1"),U.classList.remove("keyboard-focused"))})})(f,R)}}}let h=[];if(d.length>0){const y=d[d.length-1],k=Array.from(y.querySelectorAll(".rcb-options-container")).filter(C=>C.offsetParent!==null);if(k.length>0){const C=k[k.length-1];h=Array.from(C.querySelectorAll(".rcb-options"))}}if(h.length===0)return;const v=h.findIndex(y=>y===document.activeElement);switch(f.key){case"ArrowDown":case"ArrowRight":{let y;f.preventDefault(),y=v<h.length-1?v+1:0,h[y].setAttribute("tabindex","0"),h.forEach((k,C)=>{C!==y&&(k.setAttribute("tabindex","-1"),k.classList.remove("keyboard-focused"))}),h[y].classList.add("keyboard-focused"),h[y].focus();break}case"ArrowUp":case"ArrowLeft":{let y;f.preventDefault(),y=v>0?v-1:h.length-1,h[y].setAttribute("tabindex","0"),h.forEach((k,C)=>{C!==y&&(k.setAttribute("tabindex","-1"),k.classList.remove("keyboard-focused"))}),h[y].classList.add("keyboard-focused"),h[y].focus();break}case"Enter":case" ":if(f.preventDefault(),document.activeElement&&h.includes(document.activeElement)){const y=document.activeElement;if(y.classList.contains("rcb-checkbox-row-container")||y.closest(".rcb-checkbox-row-container")){const k=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});y.dispatchEvent(k);const C=y.querySelector(".rcb-checkbox-label"),R=C?C.textContent:y.textContent||"checkbox",E=y.querySelector(".rcb-checkbox-mark"),T=E&&E.style.backgroundColor?"checked":"unchecked";n(`${R} ${T}`)}else{const k=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});y.dispatchEvent(k);const C=y.textContent||y.innerText;n(`Selected: ${C}`)}}break;case"Home":f.preventDefault(),h.length>0&&(h[0].setAttribute("tabindex","0"),h.forEach((y,k)=>{k!==0&&(y.setAttribute("tabindex","-1"),y.classList.remove("keyboard-focused"))}),h[0].classList.add("keyboard-focused"),h[0].focus());break;case"End":if(f.preventDefault(),h.length>0){const y=h.length-1;h[y].setAttribute("tabindex","0"),h.forEach((k,C)=>{C!==y&&(k.setAttribute("tabindex","-1"),k.classList.remove("keyboard-focused"))}),h[y].classList.add("keyboard-focused"),h[y].focus()}}},n=f=>{const A=document.createElement("div");A.setAttribute("aria-live","assertive"),A.setAttribute("aria-atomic","true"),A.className="sr-only",A.textContent=f,document.body.appendChild(A),setTimeout(()=>{document.body.contains(A)&&document.body.removeChild(A)},1e3)},i=(f=null)=>{let A=f;if(A||(A=document.querySelector(".rcb-chat-window"),A||(A=document.querySelector('[class*="rcb-chat"]')),A||(A=document.querySelector(".qa-bot"))),!A)return;const c=A.closest(".embedded-qa-bot")!==null,d=Array.from(A.querySelectorAll(".rcb-message-container, .rcb-bot-message-container, .rcb-user-message-container")).filter(k=>k.offsetParent!==null);if(d.length===0)return;const h=d[d.length-1],v=Array.from(h.querySelectorAll(".rcb-options-container")).filter(k=>k.offsetParent!==null);let y=[];if(v.length>0){const k=v[v.length-1];y=Array.from(k.querySelectorAll(".rcb-options"))}if(y.length===0){let k=h.querySelector(".rcb-checkbox-container");if(!k&&A&&(k=A.querySelector(".rcb-checkbox-container")),k&&k.offsetParent!==null){const C=Array.from(k.querySelectorAll(".rcb-checkbox-row-container")).filter(R=>R.offsetParent!==null&&R.style.display!=="none");if(C.length>0){const R=k.querySelector(".rcb-checkbox-next-button"),E=[...C];if(R&&R.offsetParent!==null&&E.push(R),E.forEach((T,Q)=>{T.setAttribute("tabindex",Q===0?"0":"-1"),Q===0?T.classList.add("keyboard-focused"):T.classList.remove("keyboard-focused")}),C.length>1){k.querySelectorAll(".keyboard-nav-hint").forEach(Q=>Q.remove());const T=document.createElement("div");T.className="keyboard-nav-hint",T.textContent="Use arrow keys ↕ to navigate, Enter to select/deselect, or click any option",T.style.cssText="font-size: 12px !important; color: #666 !important; margin-bottom: 8px !important; font-style: italic !important; display: block !important;",k.insertBefore(T,k.firstChild)}return void setTimeout(()=>{E[0]&&E[0].offsetParent!==null&&!c&&E[0].focus()},150)}}}if(y.length>0){if(y.forEach((k,C)=>{const R=C===0?"0":"-1";k.setAttribute("tabindex",R),k.setAttribute("role","option"),k.setAttribute("aria-posinset",C+1),k.setAttribute("aria-setsize",y.length),C===0?k.classList.add("keyboard-focused"):k.classList.remove("keyboard-focused")}),y.length>1){const k=v.length>0?v[v.length-1]:null;if(k){k.querySelectorAll(".keyboard-nav-hint").forEach(R=>R.remove());const C=document.createElement("div");C.className="keyboard-nav-hint",C.textContent="Use arrow keys ↕ to navigate, Enter to select, or click any option",C.style.cssText="font-size: 12px !important; color: #666 !important; margin-bottom: 8px !important; font-style: italic !important; display: block !important;",k.insertBefore(C,k.firstChild)}}else{const k=v.length>0?v[v.length-1]:null;k&&k.querySelectorAll(".keyboard-nav-hint").forEach(C=>C.remove())}setTimeout(()=>{y[0]&&y[0].offsetParent!==null&&!c&&(y[0].focus(),y.length>1&&n(`${y.length} options available. Use arrow keys to navigate.`))},200)}},a=f=>{const A=f.querySelectorAll(".rcb-options");A.forEach((c,d)=>{c.hasAttribute("role")||(c.setAttribute("role","button"),c.setAttribute("tabindex",d===0?"0":"-1"),c.setAttribute("aria-posinset",d+1),c.setAttribute("aria-setsize",A.length))}),f.querySelectorAll(".rcb-checkbox-row-container").forEach((c,d)=>{c.hasAttribute("role")||(c.setAttribute("role","checkbox"),c.setAttribute("tabindex",d===0?"0":"-1"))})},o=new MutationObserver(f=>{f.forEach(A=>{var c,d;if(A.type==="childList"){const h=Array.from(A.addedNodes),v=h.some(k=>{var C,R,E,T;return k.nodeType===Node.ELEMENT_NODE&&(((C=k.classList)==null?void 0:C.contains("rcb-options-container"))||((R=k.classList)==null?void 0:R.contains("rcb-options"))||((E=k.querySelector)==null?void 0:E.call(k,".rcb-options-container"))||((T=k.querySelector)==null?void 0:T.call(k,".rcb-options")))}),y=h.some(k=>{var C,R;return k.nodeType===Node.ELEMENT_NODE&&(((C=k.classList)==null?void 0:C.contains("rcb-checkbox-container"))||((R=k.querySelector)==null?void 0:R.call(k,".rcb-checkbox-container")))});if(v||y){let k=A.target;for(;k&&!((c=k.classList)!=null&&c.contains("qa-bot"))&&!((d=k.classList)!=null&&d.contains("rcb-chat-window"));)k=k.parentElement;const C=k||document;a(C),C.querySelectorAll(".rcb-options[tabindex], .rcb-checkbox-row-container[tabindex], .rcb-checkbox-next-button[tabindex]").forEach(R=>{R.setAttribute("tabindex","-1"),R.classList.remove("keyboard-focused")}),setTimeout(()=>i(k),100)}}})});o.observe(document.body,{childList:!0,subtree:!0}),document.addEventListener("keydown",e),a(document),i();const u=setInterval(()=>{document.querySelectorAll(".qa-bot").forEach(f=>{const A=f.querySelectorAll(".rcb-options-container .rcb-options").length>0,c=f.querySelectorAll(".rcb-checkbox-row-container").length>0;if(A){a(f);const d=f.querySelectorAll(".rcb-options[tabindex]").length;f.querySelectorAll(".rcb-options").length>d&&i(f)}if(c){a(f);const d=f.querySelectorAll(".rcb-checkbox-row-container[tabindex]").length;f.querySelectorAll(".rcb-checkbox-row-container").length>d&&i(f)}})},1e3);return()=>{document.removeEventListener("keydown",e),o.disconnect(),clearInterval(u)}},[]),null),ym="#1a5b6e",bm="#107180",wm="Arial, sans-serif",uf="Q&A Bot",xm="/chat-icon.svg",Sm="Type your question here...",km="Select an option to continue",Em=!1,Cm="Ask me a question!",Af="/login",Pm={general:{showHeader:!0,showFooter:!0},tooltip:{mode:"CLOSE"},chatInput:{disabled:!1,characterLimit:1e3,showCharacterCount:!1,allowNewline:!0,blockSpam:!1},chatWindow:{defaultOpen:!1,showScrollbar:!1},botBubble:{simulateStream:!0,streamSpeed:10,showAvatar:!1},userBubble:{showAvatar:!1},notification:{disabled:!0,showCount:!1},audio:{disabled:!0},emoji:{disabled:!0},fileAttachment:{disabled:!0}},jc=B.forwardRef((e,n)=>{var i,a;const{apiKey:o,qaEndpoint:u,ratingEndpoint:f,welcomeMessage:A,open:c,onOpenChange:d,isLoggedIn:h,allowAnonAccess:v=!1,actingUser:y,primaryColor:k,secondaryColor:C,botName:R,logo:E,placeholder:T,errorMessage:Q,embedded:M,footerText:U,footerLink:j,tooltipText:N,loginUrl:W,customFlow:ee,onAnalyticsEvent:G}=e,Y=B.useRef("bot_".concat(Math.random().toString(36).substr(2,9)));B.useEffect(()=>{sm()},[]);const Z=B.useRef(null);Z.current===null&&(Z.current=of(),Zs("CREATED",Z.current));const $=B.useRef(!1),ae=B.useRef({getSessionId:()=>Z.current,isResetting:()=>$.current}),[ie,le]=B.useState(h);B.useEffect(()=>{le(h)},[h]);const be=M!==void 0?M:Em,he=B.useCallback(fe=>{var ce;G&&G(Object.assign(Object.assign({},fe),{timestamp:Date.now(),sessionId:(ce=Z.current)!==null&&ce!==void 0?ce:void 0,pageUrl:typeof window<"u"?window.location.href:void 0,isEmbedded:be}))},[G,be]),me=B.useMemo(()=>{const fe=Object.assign({},Pm);fe.general=Object.assign(Object.assign({},fe.general),{primaryColor:k||ym,secondaryColor:C||bm,fontFamily:wm,embedded:be});const ce=ie===!1?[B.createElement(ef,{key:"login-button",loginUrl:W||Af,isHeaderButton:!0})]:[B.createElement(fm,{key:"history-button"}),B.createElement(em,{key:"user-icon"})];fe.header={title:B.createElement("span",{style:{fontSize:14,fontWeight:500}},R||uf),showAvatar:!0,avatar:E||xm,buttons:[...ce,mt.CLOSE_CHAT_BUTTON]},fe.chatInput=Object.assign(Object.assign({},fe.chatInput),{disabled:!1,enabledPlaceholderText:T||Sm,disabledPlaceholderText:Q||km}),fe.tooltip=Object.assign(Object.assign({},fe.tooltip),{text:N||Cm});const ge=U?j?B.createElement("a",{href:j,target:"_blank",rel:"noopener noreferrer",key:"footer-link"},U):B.createElement("span",{key:"footer-text"},U):null;return fe.footer={text:ge,buttons:[B.createElement(gm,{key:"new-chat-button"})]},fe.event={rcbPreInjectMessage:!0,rcbPostInjectMessage:!0,rcbUserSubmitText:!0,rcbChangePath:!0,rcbToggleChatWindow:!0},fe},[k,C,R,E,T,Q,be,N,ie,W,U,j]),L=B.useRef(null),Be=function(fe){let ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return B.useMemo(()=>{const ge=(ye,De)=>{if(fe.current){const Fe=getComputedStyle(fe.current).getPropertyValue(ye);if(Fe&&Fe.trim()!=="")return Fe.trim();if(fe.current.parentElement){const Re=getComputedStyle(fe.current.parentElement).getPropertyValue(ye);if(Re&&Re.trim()!=="")return Re.trim()}}return De};return{primaryColor:ge("--primaryColor",ce.primaryColor),secondaryColor:ge("--secondaryColor",ce.secondaryColor),fontFamily:ge("--fontFamily",ce.fontFamily)}},[fe,ce])}(L,me.general);((fe,ce)=>{B.useEffect(()=>{ce.current&&(fe?ce.current.classList.add("bot-logged-in"):ce.current.classList.remove("bot-logged-in"))},[fe,ce])})(ie!==!1,L),(fe=>{let{settings:ce,themeColors:ge}=fe;B.useEffect(()=>{ge&&(Object.entries(ge).forEach(ye=>{let[De,Fe]=ye;Fe&&document.documentElement.style.setProperty("--".concat(De),Fe)}),ge.primaryColor&&document.documentElement.style.setProperty("--rcb-header-background",ge.primaryColor),ge.secondaryColor&&document.documentElement.style.setProperty("--rcb-header-background-hover",ge.secondaryColor))},[ge]),B.useEffect(()=>{var ye,De,Fe;!((ye=ce.header)===null||ye===void 0)&&ye.title&&typeof ce.header.title=="string"&&(ce.header.title=B.createElement("div",{key:"header-title"},B.createElement("h1",{className:"sr-only"},ce.header.title),B.createElement("span",{"aria-hidden":"true"},ce.header.title))),!((De=ce.general)===null||De===void 0)&&De.embedded&&ce.chatWindow&&(ce.chatWindow.defaultOpen=!0),ce.device={desktopEnabled:!0,mobileEnabled:!0,applyMobileOptimizations:!1},ce.chatHistory={disabled:!0},ce.chatButton=Object.assign(Object.assign({},ce.chatButton),{icon:(Fe=ce.header)===null||Fe===void 0?void 0:Fe.avatar}),ce.event={rcbToggleChatWindow:!0}},[ce])})({settings:me,themeColors:Be});const F=B.useMemo(()=>{const fe=(ge=>{let{endpoint:ye,ratingEndpoint:De,apiKey:Fe,sessionId:Re,isResetting:Ue=()=>!1,isLoggedIn:Je,allowAnonAccess:Dt=!1,loginUrl:qe="/login",trackEvent:ze}=ge;if(Je===!1&&!Dt)return ze==null||ze({type:"chatbot_login_prompt_shown"}),{qa_loop:{message:"To ask questions, please log in first.",component:B.createElement(ef,{loginUrl:qe}),chatDisabled:!0,path:"qa_loop"}};let vt=null,It=!1;if(!ye)throw new Error("Q&A endpoint is required");return{qa_loop:{message:async Ht=>{const{userInput:lt}=Ht;if(Ue&&Ue()||!lt||lt.trim()==="")return null;if(lt==="👍 Helpful"||lt==="👎 Not helpful"){if(De&&vt)try{const Ke=lt==="👍 Helpful",dt={"Content-Type":"application/json"};Fe&&(dt["X-API-KEY"]=Fe);const Pt=Re();Pt&&(dt["X-Session-ID"]=Pt,dt["X-Query-ID"]=vt),await fetch(De,{method:"POST",headers:dt,credentials:"include",body:JSON.stringify({sessionId:Pt,queryId:vt,rating:Ke?1:0})}),ze==null||ze({type:"chatbot_rating_sent",queryId:vt,rating:Ke?"helpful":"not_helpful"})}catch(Ke){Ho("Error sending feedback:",Ke)}return"Thanks for the feedback! Feel free to ask another question."}try{const Ke=nf();vt=Ke,ze==null||ze({type:"chatbot_question_sent",queryId:Ke,questionLength:lt.length});const dt={"Content-Type":"application/json"};Fe&&(dt["X-API-KEY"]=Fe);const Pt=Re();Pt&&(dt["X-Session-ID"]=Pt,dt["X-Query-ID"]=Ke);const Et={query:lt,session_id:Pt,question_id:Ke};Zs("SENT to API",{session_id:Pt,question_id:Ke});const ut=Date.now(),Ze=await fetch(ye,{method:"POST",headers:dt,credentials:"include",body:JSON.stringify(Et)}),kn=Date.now()-ut;if(!Ze.ok)throw new Error("API returned ".concat(Ze.status));const Nt=await Ze.json(),qt=Nt.response||Nt.answer||Nt.text||Nt.message;if(!qt)throw new Error("Invalid response format from API");const et=(Se=>{if(!Se||typeof Se!="string")return Se;let _e=Se.replace(/\[(https?:\/\/[^\s]+?)\]/gi,"[$1]($1)");return _e=_e.replace(new RegExp(`(?<!\\]\\(|href=["']|\\[)https?:\\/\\/[^\\s[\\]()]+`,"gi"),Oe=>{let tt=Oe,ft="";const pt=tt.match(/([.,;:!?]+)$/);return pt&&(ft=pt[1],tt=tt.slice(0,-ft.length)),"[".concat(tt,"](").concat(tt,")").concat(ft)}),_e})(qt),ne=function(Se){const{confidence:_e,tools_used:Oe,metadata:tt}=Se;if(!(_e||Oe&&Oe.length!==0))return"";const ft=[];return _e&&ft.push("• Confidence: ".concat(_e)),Oe&&Oe.length>0&&ft.push("• Tools used: ".concat(Oe.join(", "))),tt!=null&&tt.agent&&ft.push("• Agent: ".concat(tt.agent)),`---
143
143
  `.concat(ft.join(`
144
144
  `))}(Nt),xe=ne?"".concat(et,`
145
145
 
146
- `).concat(ne):et;return await Ht.injectMessage(xe),ze==null||ze({type:"chatbot_answer_received",queryId:qe,responseTimeMs:kn,success:!0,responseLength:Kt.length,hasMetadata:!!ne}),It=!0,setTimeout(async()=>{await Ht.injectMessage("Feel free to ask another question.")},100),null}catch(qe){return Ho("Error in Q&A flow:",qe),ze==null||ze({type:"chatbot_answer_error",queryId:vt??void 0,errorType:qe instanceof Error?qe.message:"unknown"}),"I apologize, but I'm having trouble processing your question. Please try again later."}},options:Ht=>Ue&&Ue()||Ht.userInput==="👍 Helpful"||Ht.userInput==="👎 Not helpful"?[]:De&&It?["👍 Helpful","👎 Not helpful"]:[],renderMarkdown:["BOT"],chatDisabled:!1,path:"qa_loop"}}})({endpoint:u,ratingEndpoint:f,apiKey:o,sessionId:ae.current.getSessionId,isResetting:ae.current.isResetting,isLoggedIn:ie,allowAnonAccess:v,loginUrl:W||Af,trackEvent:he});return Object.assign(Object.assign({start:{message:A,renderMarkdown:["BOT"],transition:{duration:0},path:"qa_loop"}},fe),ee||{})},[o,u,f,A,ie,v,W,ee,y,he]),ve=B.useMemo(()=>{return[()=>$p(ce),$g(),()=>Zg(fe)];var fe,ce},[]);return B.useEffect(()=>{const fe=()=>{const ge=document.querySelector(".rcb-chat-window");if(!ge)return;const ye=ge.querySelector(".rcb-send-button");ye&&(ye.hasAttribute("tabindex")||ye.setAttribute("tabindex","0"),ye.hasAttribute("data-keyboard-enabled")||(ye.setAttribute("data-keyboard-enabled","true"),ye.addEventListener("keydown",De=>{if(De.key==="Enter"||De.key===" "){De.preventDefault();const Fe=ye&&Object.keys(ye).find(Ue=>Ue.startsWith("__reactProps"));if(Fe){const Ue=ye[Fe],Je=Ue==null?void 0:Ue.onMouseDown;if(Je&&typeof Je=="function")return void Je(De)}const Re=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});ye.dispatchEvent(Re)}})))},ce=setInterval(fe,1e3);return fe(),()=>clearInterval(ce)},[]),vm(),B.useEffect(()=>{if(!be){const fe=ce=>{const ge=ce.data.newState;d==null||d(ge);const ye=Z.current;he(ge?{type:"chatbot_open"}:{type:"chatbot_close",messageCount:ye?af(ye):0,durationMs:ye?Am(ye):0})};return window.addEventListener("rcb-toggle-chat-window",fe),()=>{window.removeEventListener("rcb-toggle-chat-window",fe)}}},[be,d,he]),B.createElement("div",{className:"qa-bot ".concat(!((i=me.general)===null||i===void 0)&&i.embedded?"embedded-qa-bot":""),ref:L,role:"region","aria-label":R||uf},B.createElement(dm,{getSessionId:()=>Z.current,setSessionId:fe=>{const ce=Z.current;Z.current=fe,Zs("RESTORED","".concat(ce==null?void 0:ce.slice(-12)," -> ").concat(fe.slice(-12)))},resetSession:()=>{const fe=Z.current;$.current=!0,Z.current=of(),Zs("RESET","".concat(fe==null?void 0:fe.slice(-12)," -> ").concat(Z.current.slice(-12)))},clearResettingFlag:()=>{$.current=!1}},B.createElement(hm,{trackEvent:he},B.createElement(PA,null,B.createElement("div",null,B.createElement(mm,null),B.createElement(Zd,{ref:n,embedded:((a=me.general)===null||a===void 0?void 0:a.embedded)||!1,currentOpen:c||!1,enabled:ie!==!1,onSetEnabled:fe=>le(!!fe&&void 0)}),B.createElement(Rp,{key:"chatbot-".concat(Y.current,"-").concat(ie),settings:me,flow:F,plugins:ve}),B.createElement("div",{role:"status","aria-live":"polite","aria-label":"Bot response updates",className:"sr-only",id:"bot-live-region"}),B.createElement("div",{id:"chat-input-help",className:"sr-only"},"Type your message and press Enter to send. Use arrow keys to navigate through response options."))))))});jc.displayName="QABot",Ku('.rcb-chat-window{height:800px!important;max-height:80vh!important;max-width:100%;width:550px!important}.rcb-chat-window .rcb-chat-header{align-items:center;display:flex;flex-direction:row;font-weight:700}.rcb-chat-window a{color:#000;font-weight:700;text-decoration:underline}.rcb-chat-window a:hover{color:var(--primaryColor,#107180)}.rcb-chat-window .rcb-bot-message a,.rcb-chat-window .rcb-bot-message a:link,.rcb-chat-window .rcb-bot-message a:visited{color:#fff!important;text-decoration:underline!important}.rcb-chat-window .rcb-bot-message a:hover{opacity:.85;text-decoration:underline!important}.rcb-chat-window .rcb-chat-input-textarea{overflow-y:auto}.rcb-chat-window .rcb-chat-footer-container{font-size:10px}.qa-bot .history-button,.qa-bot .user-login-icon{display:none!important}.qa-bot.bot-logged-in .history-button,.qa-bot.bot-logged-in .user-login-icon{display:flex!important;transform:scale(1.3) translateY(-2px)}.qa-bot.bot-logged-in .history-button:hover{opacity:.8}.qa-bot.bot-logged-in .history-button:focus{outline:2px solid #fff;outline-offset:2px}.embedded-qa-bot .rcb-chat-window{max-width:100%;width:100%!important}.qa-bot.hidden{display:none}.embedded-qa-bot .rcb-bot-message,.embedded-qa-bot .rcb-user-message{max-width:90%!important;word-break:break-word}.embedded-qa-bot .rcb-chat-input-textarea{width:100%!important}.qa-bot-container{max-width:100%;width:100%}@keyframes phone-ring{0%{transform:translateX(0) translateY(0) rotate(0deg)}2%{transform:translateX(0) translateY(-8px) rotate(-2deg)}4%{transform:translateX(0) translateY(-6px) rotate(2deg)}6%{transform:translateX(0) translateY(-8px) rotate(-1deg)}8%{transform:translateX(0) translateY(-6px) rotate(1deg)}10%{transform:translateX(0) translateY(-8px) rotate(-2deg)}12%{transform:translateX(0) translateY(-6px) rotate(2deg)}20%{transform:translateX(0) translateY(0) rotate(0deg)}30%{transform:translateX(0) translateY(0) rotate(0deg)}40%{transform:translateX(0) translateY(0) rotate(0deg)}49%{transform:translateX(0) translateY(0) rotate(0deg)}50%{transform:translateX(0) translateY(-8px) rotate(-2deg)}52%{transform:translateX(0) translateY(-6px) rotate(2deg)}54%{transform:translateX(0) translateY(-8px) rotate(-1deg)}56%{transform:translateX(0) translateY(-6px) rotate(1deg)}58%{transform:translateX(0) translateY(-8px) rotate(-2deg)}60%{transform:translateX(0) translateY(-6px) rotate(2deg)}70%{transform:translateX(0) translateY(0) rotate(0deg)}to{transform:translateX(0) translateY(0) rotate(0deg)}}@media (max-width:768px){.rcb-chat-window{max-height:calc(100vh - 100px)!important;max-width:calc(100vw - 40px)!important;width:550px!important}.embedded-chat-container.open{height:400px}.embedded-chat-closed{font-size:14px;height:40px}.embedded-chat-open-btn{font-size:12px;padding:3px 10px}.rcb-bot-message,.rcb-user-message{max-width:85%!important}.rcb-chat-input-textarea{font-size:16px!important;min-height:44px!important}.rcb-chat-header{padding:12px 16px!important}}@media (max-width:480px){.rcb-chat-window{bottom:10px!important;left:10px!important;max-height:calc(100vh - 80px)!important;max-width:calc(100vw - 20px)!important;right:10px!important;width:calc(100vw - 20px)!important}.embedded-chat-container.open{height:350px}.rcb-bot-message,.rcb-user-message{margin-bottom:8px!important;max-width:90%!important}.rcb-chat-header{font-size:14px!important;padding:8px 12px!important}.rcb-chat-button{bottom:20px!important;height:50px!important;right:20px!important;width:50px!important}.rcb-chat-footer-container{font-size:9px!important;padding:8px 12px!important}}@media (max-width:360px){.rcb-chat-window{left:5px!important;max-width:calc(100vw - 10px)!important;right:5px!important;width:calc(100vw - 10px)!important}.rcb-chat-header{font-size:13px!important;padding:6px 8px!important}}.rcb-checkbox-container{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin-left:16px!important;max-width:100%!important;padding-top:12px!important}.rcb-checkbox-row-container{align-items:center!important;background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--primaryColor,#107180)!important;cursor:pointer!important;display:flex!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;margin:0!important;max-height:auto!important;min-height:auto!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-checkbox-row-container:hover{background-color:#e8f4f8!important;border-color:var(--primaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.rcb-checkbox-row-container[data-checked=true]{background-color:var(--primaryColor,#107180)!important;border-color:var(--primaryColor,#107180)!important;color:#fff!important}.rcb-checkbox-row{margin-left:0!important}.rcb-checkbox-mark{height:14px!important;margin-right:6px!important;width:14px!important}.rcb-checkbox-label{font-size:13px!important;margin:0!important;white-space:nowrap!important}.rcb-checkbox-next-button{align-items:center!important;background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--secondaryColor,#107180)!important;cursor:pointer!important;display:flex!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;justify-content:center!important;line-height:24px!important;margin:0!important;max-height:auto!important;min-height:auto!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-checkbox-next-button:hover{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.sr-only{clip:rect(0,0,0,0)!important;border:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}.rcb-chat-input-send-button:focus,.rcb-chat-input-textarea:focus{outline:2px solid var(--primaryColor,#107180)!important;outline-offset:2px!important}.rcb-user-message{word-wrap:break-word!important;overflow:hidden!important;word-break:break-word!important}:focus-visible{outline:2px solid var(--primaryColor,#107180)!important;outline-offset:2px!important}.rcb-options-container{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:8px!important;margin:16px!important;padding:0!important}.rcb-options{background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--secondaryColor,#107180)!important;cursor:pointer!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;outline:none!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-options:hover{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.rcb-checkbox-next-button.keyboard-focused,.rcb-checkbox-next-button:focus,.rcb-checkbox-next-button:focus-visible,.rcb-checkbox-row-container.keyboard-focused,.rcb-checkbox-row-container:focus,.rcb-checkbox-row-container:focus-visible,.rcb-options.keyboard-focused,.rcb-options:focus,.rcb-options:focus-visible{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;outline:none!important}.rcb-options:active{background-color:var(--secondaryColor,#107180)!important;border-color:var(--secondaryColor,#107180)!important;color:#fff!important;transform:translateY(0)!important}.keyboard-nav-hint{color:#666!important;font-size:12px!important;font-style:italic!important;margin-bottom:8px!important}@media (prefers-reduced-motion:reduce){.keyboard-nav-hint{display:none!important}}.rcb-options-container [role=button][tabindex="0"],.rcb-options-container button[tabindex="0"]{position:relative!important}.rcb-options-container [role=button][tabindex="0"]:after,.rcb-options-container button[tabindex="0"]:after{color:var(--secondaryColor,#107180)!important;content:"←"!important;font-size:16px!important;opacity:0!important;position:absolute!important;right:12px!important;top:50%!important;transform:translateY(-50%)!important;transition:opacity .2s ease!important}.rcb-options-container [role=button][tabindex="0"]:focus:after,.rcb-options-container button[tabindex="0"]:focus:after{opacity:1!important}.rcb-chat-input-send-button{cursor:pointer!important;opacity:1!important;pointer-events:auto!important;visibility:visible!important}.rcb-chat-input-send-button:not([tabindex]){-webkit-user-select:none;-moz-user-select:none;user-select:none}.rcb-chat-input-container [onclick],.rcb-chat-input-container [role=button],.rcb-chat-input-container div[style*=cursor],.rcb-chat-input-container svg:last-child,.rcb-chat-input-container>div:last-child{tabindex:0!important;cursor:pointer!important}.rcb-chat-footer{margin-top:4px!important;padding-top:0!important}.rcb-chat-footer-container{align-items:center!important;display:flex!important;margin-top:4px!important;padding-top:4px!important}.rcb-chat-footer-container button{order:1!important}.rcb-chat-footer-container a[href*=qa-bot-core]{tab-index:0!important;order:2!important}.rcb-chat-footer-container a[href*=feedback]{tab-index:0!important;order:3!important}@media (prefers-contrast:high){.rcb-chat-window a{background-color:#fff!important;border:1px solid #000!important;color:#000!important}}@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.rcb-chat-input-textarea{user-select:text!important}.rcb-chat-body-container,.rcb-chat-input-textarea,.rcb-chat-window{touch-action:pan-y!important}.embedded-qa-bot,.rcb-chat-window{-webkit-overflow-scrolling:touch!important}.embedded-qa-bot .rcb-chat-input-textarea{touch-action:pan-y!important;user-select:text!important}.embedded-qa-bot .rcb-chat-body-container,.embedded-qa-bot .rcb-chat-window{touch-action:pan-y!important}.rcb-chat-header-container{background:var(--primaryColor,#1a5b6e)!important;background:linear-gradient(135deg,var(--primaryColor,#1a5b6e) 0,var(--secondaryColor,#107180) 100%)!important}.rcb-toggle-button{align-items:center!important;background:var(--primaryColor,#1a5b6e)!important;display:flex!important;justify-content:center!important}.rcb-toggle-button svg{stroke:#fff!important;color:#fff!important}.rcb-toggle-button *,.rcb-toggle-button img,.rcb-toggle-button svg,.rcb-toggle-button>*{box-sizing:border-box!important;height:50px!important;left:0!important;margin:0 auto!important;max-height:50px!important;max-width:50px!important;min-height:50px!important;min-width:50px!important;padding:2px!important;position:relative!important;top:0!important;width:50px!important}.rcb-send-button{background-color:var(--primaryColor,#1a5b6e)!important}',{insertAt:"top"});const Tm=()=>{const[e,n]=B.useState(!1),i=()=>typeof navigator<"u"&&navigator.mediaDevices!==void 0&&typeof navigator.mediaDevices.getDisplayMedia=="function";return{captureScreenshot:async()=>{if(!i())throw new Error("Screen capture is not available in this environment");try{n(!0);const a=await navigator.mediaDevices.getDisplayMedia({video:{displaySurface:"browser",cursor:"always",width:{ideal:1920},height:{ideal:1080}},audio:!1}),o=document.createElement("video");o.srcObject=a,await new Promise(h=>{o.onloadedmetadata=()=>{o.play(),h()}});const u=document.createElement("canvas");u.width=o.videoWidth,u.height=o.videoHeight;const f=u.getContext("2d");if(!f)throw new Error("Could not get canvas context");f.drawImage(o,0,0,u.width,u.height);const A=await new Promise(h=>u.toBlob(h,"image/png"));if(!A)throw new Error("Could not create image blob");const c=new Date().toISOString().replace(/[:.]/g,"-"),d=new File([A],"screenshot-".concat(c,".png"),{type:"image/png"});return a.getTracks().forEach(h=>h.stop()),n(!1),d}catch(a){throw Ho("Error capturing screenshot:",a),n(!1),a}},isCapturing:e,isScreenCaptureAvailable:i()}},Dm=e=>B.createElement(lf,e,B.createElement("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),B.createElement("polyline",{points:"17 8 12 3 7 8"}),B.createElement("line",{x1:"12",y1:"3",x2:"12",y2:"15"})),Im=e=>new Promise((n,i)=>{const a=new FileReader;a.onload=()=>{if(typeof a.result!="string")return void i(new Error("Failed to read file ".concat(e.name)));const o=a.result.split(",")[1];n({fileName:e.name,contentType:e.type,size:e.size,fileData:o})},a.onerror=()=>i(new Error("Failed to read file ".concat(e.name))),a.readAsDataURL(e)}),Bm=e=>Promise.all(e.map(Im)),Mm=e=>e<1024?"".concat(e," B"):e<1048576?"".concat((e/1024).toFixed(1)," KB"):"".concat((e/1048576).toFixed(1)," MB"),el=e=>{let{onFileUpload:n,maxSizeMB:i=10,acceptedTypes:a="image/*,application/pdf,text/*,.doc,.docx",enableScreenshot:o=!1,className:u}=e;const[f,A]=B.useState(!1),[c,d]=B.useState([]),[h,v]=B.useState(null),y=B.useRef(null),{captureScreenshot:k,isCapturing:C,isScreenCaptureAvailable:R}=Tm(),E=N=>{const W=document.createElement("div");W.setAttribute("aria-live","assertive"),W.setAttribute("aria-atomic","true"),W.className="sr-only",W.textContent=N,document.body.appendChild(W),setTimeout(()=>document.body.removeChild(W),1e3)},T=N=>{if(!N||N.length===0)return void cm("FileUploadComponent: No valid files provided to handleFiles");let W;try{W=Array.from(N)}catch(Z){return Ho("FileUploadComponent: Error converting files to array:",Z),void E("Error processing selected files. Please try again.")}const ee=[...c,...W];d(ee);const G=W.length,Y=W.map(Z=>Z.name).join(", ");E("".concat(G," file").concat(G>1?"s":""," selected: ").concat(Y)),setTimeout(()=>{const Z=document.querySelector(".rcb-chat-content");Z&&(Z.scrollTop=Z.scrollHeight)},100),n&&n(ee)},Q=N=>{N.preventDefault(),N.stopPropagation(),N.type==="dragenter"||N.type==="dragover"?A(!0):N.type==="dragleave"&&A(!1)},M=()=>{try{y.current&&y.current.click()}catch(N){Ho("FileUploadComponent: Error in handleButtonClick:",N),E("Error opening file selection dialog. Please try again.")}},U=()=>{v(null)},j=o&&R;return B.createElement("div",{className:"file-upload-container ".concat(u||""),style:{padding:"16px",margin:"8px 0"}},j&&B.createElement("div",{style:{display:"flex",justifyContent:"center",marginBottom:"10px"}},B.createElement("button",{onClick:N=>{N.preventDefault(),(async()=>{try{const W=await k();T([W]),E("Screenshot captured successfully")}catch{E("Error capturing screenshot. Please try again.")}})()},disabled:C,"aria-describedby":"screenshot-help","aria-label":C?"Taking screenshot, please wait":"Take a screenshot to attach",style:{display:"flex",alignItems:"center",gap:"8px",backgroundColor:"#107180",color:"white",border:"none",borderRadius:"5px",padding:"8px 12px",cursor:C?"not-allowed":"pointer",fontSize:"14px",fontWeight:"500",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"}},B.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},B.createElement("path",{d:"M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"}),B.createElement("circle",{cx:"12",cy:"13",r:"4"})),C?"Taking screenshot...":"Take screenshot..."),B.createElement("span",{id:"screenshot-help",className:"sr-only"},"Captures the current screen and adds it as an attachment")),B.createElement("div",{className:"file-upload-dropzone ".concat(f?"active":""),onDragEnter:Q,onDragLeave:Q,onDragOver:Q,onDrop:N=>{var W;N.preventDefault(),N.stopPropagation(),A(!1);try{!((W=N.dataTransfer)===null||W===void 0)&&W.files&&N.dataTransfer.files.length>0&&T(N.dataTransfer.files)}catch(ee){Ho("FileUploadComponent: Error in handleDrop:",ee),E("Error processing dropped files. Please try again.")}},role:"button",tabIndex:0,"aria-label":"File upload area. Click to select files or drag and drop files here.","aria-describedby":"upload-instructions",onKeyDown:N=>{N.key!=="Enter"&&N.key!==" "||(N.preventDefault(),M())},style:{padding:"20px",border:"2px dashed #ccc",borderRadius:"8px",backgroundColor:f?"#f0f8ff":"#fafafa",transition:"all 0.3s ease"}},B.createElement("input",{ref:y,type:"file",className:"file-input",onChange:N=>{var W;try{!((W=N.target)===null||W===void 0)&&W.files&&N.target.files.length>0&&T(N.target.files)}catch(ee){Ho("FileUploadComponent: Error in handleFileSelect:",ee),E("Error processing selected files. Please try again.")}},multiple:!0,style:{display:"none"},"aria-label":"Select files to upload",accept:a}),B.createElement("div",{className:"upload-content",onClick:M,style:{cursor:"pointer",flexDirection:"column",alignItems:"center",display:"flex",textAlign:"center",padding:"12px"}},B.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px"}},B.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"10px"}},B.createElement(Dm,null),B.createElement("p",{style:{margin:0,fontWeight:"bold"}},"Upload Files")),B.createElement("p",{id:"upload-instructions",style:{margin:0,fontSize:"14px",color:"#666"}},"Drag and drop files here or click to select. (Max ",i,"MB each)")),c.length>0&&B.createElement("div",{className:"selected-files",style:{display:"flex",flexWrap:"wrap",gap:"8px",marginTop:"12px",alignItems:"center"}},B.createElement("span",{style:{fontWeight:400,color:"#888",fontSize:"13px",marginRight:"8px",alignSelf:"center"}},"Selected files:"),c.map((N,W)=>B.createElement("span",{key:W,style:{background:"#fff",color:"#107180",borderRadius:"5px",padding:"4px 12px",fontSize:"14px",marginRight:"4px",marginBottom:"4px",border:"1px solid #ccc",display:"flex",alignItems:"center",gap:"6px",cursor:"pointer"},onClick:ee=>{ee.stopPropagation(),(G=>{v(G)})(N)}},B.createElement("span",{onClick:ee=>{ee.stopPropagation(),(G=>{const Y=c.filter((Z,$)=>$!==G);d(Y),n&&n(Y)})(W)},style:{cursor:"pointer",color:"#888",fontWeight:"bold",fontSize:"15px",marginRight:"4px",userSelect:"none",lineHeight:1},title:"Remove file","aria-label":"Remove ".concat(N.name)},"×"),N.name," (",Mm(N.size),")"))))),(()=>{if(!h)return null;const N=h.type.startsWith("image/"),W=h.type.startsWith("text/"),ee=h.type==="application/pdf";return B.createElement("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.7)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3},onClick:U},B.createElement("div",{style:{backgroundColor:"white",padding:"20px",borderRadius:"8px",maxWidth:"90%",maxHeight:"90%",overflow:"auto",position:"relative"},onClick:G=>G.stopPropagation()},B.createElement("button",{onClick:U,style:{position:"absolute",top:"10px",right:"10px",background:"none",border:"none",fontSize:"24px",cursor:"pointer",color:"#666"}},"×"),B.createElement("h3",{style:{marginTop:0,marginBottom:"16px"}},h.name),N&&B.createElement("img",{src:URL.createObjectURL(h),alt:h.name,style:{maxWidth:"100%",maxHeight:"70vh"}}),W&&B.createElement("pre",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word",maxHeight:"70vh",overflow:"auto",padding:"16px",backgroundColor:"#f5f5f5",borderRadius:"4px"}},URL.createObjectURL(h)),ee&&B.createElement("iframe",{src:URL.createObjectURL(h),style:{width:"100%",height:"70vh",border:"none"},title:h.name}),!N&&!W&&!ee&&B.createElement("div",{style:{padding:"20px",textAlign:"center"}},"Preview not available for this file type")))})())};function Rm(e,n){if(!n||Object.keys(n).length===0)return e;const i={};for(const[a,o]of Object.entries(e)){let u=Object.assign({},o);if(u.chatDisabled===void 0){const f=!(!u.options&&!u.checkboxes);u.chatDisabled=f}i[a]=u}return i}function tl(e){return async n=>{const i=await e(n);await n.injectMessage(i)}}const Om=B.forwardRef((e,n)=>{const[i,a]=B.useState(e.defaultOpen||!1),o=B.useRef(null);return B.useImperativeHandle(n,()=>({addMessage:u=>{var f;(f=o.current)===null||f===void 0||f.addMessage(u)},setBotEnabled:u=>{var f;(f=o.current)===null||f===void 0||f.setBotEnabled(u)},openChat:()=>{var u;a(!0),(u=o.current)===null||u===void 0||u.openChat()},closeChat:()=>{var u;a(!1),(u=o.current)===null||u===void 0||u.closeChat()},toggleChat:()=>{var u;a(f=>!f),(u=o.current)===null||u===void 0||u.toggleChat()}}),[]),B.createElement(jc,{ref:o,apiKey:e.apiKey,qaEndpoint:e.qaEndpoint,ratingEndpoint:e.ratingEndpoint,welcomeMessage:e.welcomeMessage,primaryColor:e.primaryColor,secondaryColor:e.secondaryColor,botName:e.botName,logo:e.logo,placeholder:e.placeholder,errorMessage:e.errorMessage,embedded:e.embedded,isLoggedIn:e.isLoggedIn,allowAnonAccess:e.allowAnonAccess,open:i,onOpenChange:a,footerText:e.footerText,footerLink:e.footerLink,tooltipText:e.tooltipText,onAnalyticsEvent:e.onAnalyticsEvent})});Om.displayName="ProgrammaticQABot";const to={QA_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/chat/api/",RATING_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/chat/rating/",METRICS_API_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/xdmod/chat/api/",METRICS_RATING_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/xdmod/chat/rating/",METRICS_QUESTIONS_URL:"https://metrics.access-ci.org/qa_bot_faq",NETLIFY_BASE_URL:"https://access-jsm-api.netlify.app",DEFAULT_API_KEY:"demo-key"},Ir={BOT_NAME:"ACCESS Q&A",LOGO:"https://support.access-ci.org/themes/contrib/asp-theme/images/icons/ACCESS-arrrow.svg",WELCOME_MESSAGE:`Hello! What can I help you with?
146
+ `).concat(ne):et;return await Ht.injectMessage(xe),ze==null||ze({type:"chatbot_answer_received",queryId:Ke,responseTimeMs:kn,success:!0,responseLength:qt.length,hasMetadata:!!ne}),It=!0,setTimeout(async()=>{await Ht.injectMessage("Feel free to ask another question.")},100),null}catch(Ke){return Ho("Error in Q&A flow:",Ke),ze==null||ze({type:"chatbot_answer_error",queryId:vt??void 0,errorType:Ke instanceof Error?Ke.message:"unknown"}),"I apologize, but I'm having trouble processing your question. Please try again later."}},options:Ht=>Ue&&Ue()||Ht.userInput==="👍 Helpful"||Ht.userInput==="👎 Not helpful"?[]:De&&It?["👍 Helpful","👎 Not helpful"]:[],renderMarkdown:["BOT"],chatDisabled:!1,path:"qa_loop"}}})({endpoint:u,ratingEndpoint:f,apiKey:o,sessionId:ae.current.getSessionId,isResetting:ae.current.isResetting,isLoggedIn:ie,allowAnonAccess:v,loginUrl:W||Af,trackEvent:he});return Object.assign(Object.assign({start:{message:A,renderMarkdown:["BOT"],transition:{duration:0},path:"qa_loop"}},fe),ee||{})},[o,u,f,A,ie,v,W,ee,y,he]),ve=B.useMemo(()=>{return[()=>$p(ce),$g(),()=>Zg(fe)];var fe,ce},[]);return B.useEffect(()=>{const fe=()=>{const ge=document.querySelector(".rcb-chat-window");if(!ge)return;const ye=ge.querySelector(".rcb-send-button");ye&&(ye.hasAttribute("tabindex")||ye.setAttribute("tabindex","0"),ye.hasAttribute("data-keyboard-enabled")||(ye.setAttribute("data-keyboard-enabled","true"),ye.addEventListener("keydown",De=>{if(De.key==="Enter"||De.key===" "){De.preventDefault();const Fe=ye&&Object.keys(ye).find(Ue=>Ue.startsWith("__reactProps"));if(Fe){const Ue=ye[Fe],Je=Ue==null?void 0:Ue.onMouseDown;if(Je&&typeof Je=="function")return void Je(De)}const Re=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});ye.dispatchEvent(Re)}})))},ce=setInterval(fe,1e3);return fe(),()=>clearInterval(ce)},[]),vm(),B.useEffect(()=>{if(!be){const fe=ce=>{const ge=ce.data.newState;d==null||d(ge);const ye=Z.current;he(ge?{type:"chatbot_open"}:{type:"chatbot_close",messageCount:ye?af(ye):0,durationMs:ye?Am(ye):0})};return window.addEventListener("rcb-toggle-chat-window",fe),()=>{window.removeEventListener("rcb-toggle-chat-window",fe)}}},[be,d,he]),B.createElement("div",{className:"qa-bot ".concat(!((i=me.general)===null||i===void 0)&&i.embedded?"embedded-qa-bot":""),ref:L,role:"region","aria-label":R||uf},B.createElement(dm,{getSessionId:()=>Z.current,setSessionId:fe=>{const ce=Z.current;Z.current=fe,Zs("RESTORED","".concat(ce==null?void 0:ce.slice(-12)," -> ").concat(fe.slice(-12)))},resetSession:()=>{const fe=Z.current;$.current=!0,Z.current=of(),Zs("RESET","".concat(fe==null?void 0:fe.slice(-12)," -> ").concat(Z.current.slice(-12)))},clearResettingFlag:()=>{$.current=!1}},B.createElement(hm,{trackEvent:he},B.createElement(PA,null,B.createElement("div",null,B.createElement(mm,null),B.createElement(Zd,{ref:n,embedded:((a=me.general)===null||a===void 0?void 0:a.embedded)||!1,currentOpen:c||!1,enabled:ie!==!1,onSetEnabled:fe=>le(!!fe&&void 0)}),B.createElement(Rp,{key:"chatbot-".concat(Y.current,"-").concat(ie),settings:me,flow:F,plugins:ve}),B.createElement("div",{role:"status","aria-live":"polite","aria-label":"Bot response updates",className:"sr-only",id:"bot-live-region"}),B.createElement("div",{id:"chat-input-help",className:"sr-only"},"Type your message and press Enter to send. Use arrow keys to navigate through response options."))))))});jc.displayName="QABot",qu('.rcb-chat-window{height:800px!important;max-height:80vh!important;max-width:100%;width:550px!important}.rcb-chat-window .rcb-chat-header{align-items:center;display:flex;flex-direction:row;font-weight:700}.rcb-chat-window a{color:#000;font-weight:700;text-decoration:underline}.rcb-chat-window a:hover{color:var(--primaryColor,#107180)}.rcb-chat-window .rcb-bot-message a,.rcb-chat-window .rcb-bot-message a:link,.rcb-chat-window .rcb-bot-message a:visited{color:#fff!important;text-decoration:underline!important}.rcb-chat-window .rcb-bot-message a:hover{opacity:.85;text-decoration:underline!important}.rcb-chat-window .rcb-chat-input-textarea{overflow-y:auto}.rcb-chat-window .rcb-chat-footer-container{font-size:10px}.qa-bot .history-button,.qa-bot .user-login-icon{display:none!important}.qa-bot.bot-logged-in .history-button,.qa-bot.bot-logged-in .user-login-icon{display:flex!important;transform:scale(1.3) translateY(-2px)}.qa-bot.bot-logged-in .history-button:hover{opacity:.8}.qa-bot.bot-logged-in .history-button:focus{outline:2px solid #fff;outline-offset:2px}.embedded-qa-bot .rcb-chat-window{max-width:100%;width:100%!important}.qa-bot.hidden{display:none}.embedded-qa-bot .rcb-bot-message,.embedded-qa-bot .rcb-user-message{max-width:90%!important;word-break:break-word}.embedded-qa-bot .rcb-chat-input-textarea{width:100%!important}.qa-bot-container{max-width:100%;width:100%}@keyframes phone-ring{0%{transform:translateX(0) translateY(0) rotate(0deg)}2%{transform:translateX(0) translateY(-8px) rotate(-2deg)}4%{transform:translateX(0) translateY(-6px) rotate(2deg)}6%{transform:translateX(0) translateY(-8px) rotate(-1deg)}8%{transform:translateX(0) translateY(-6px) rotate(1deg)}10%{transform:translateX(0) translateY(-8px) rotate(-2deg)}12%{transform:translateX(0) translateY(-6px) rotate(2deg)}20%{transform:translateX(0) translateY(0) rotate(0deg)}30%{transform:translateX(0) translateY(0) rotate(0deg)}40%{transform:translateX(0) translateY(0) rotate(0deg)}49%{transform:translateX(0) translateY(0) rotate(0deg)}50%{transform:translateX(0) translateY(-8px) rotate(-2deg)}52%{transform:translateX(0) translateY(-6px) rotate(2deg)}54%{transform:translateX(0) translateY(-8px) rotate(-1deg)}56%{transform:translateX(0) translateY(-6px) rotate(1deg)}58%{transform:translateX(0) translateY(-8px) rotate(-2deg)}60%{transform:translateX(0) translateY(-6px) rotate(2deg)}70%{transform:translateX(0) translateY(0) rotate(0deg)}to{transform:translateX(0) translateY(0) rotate(0deg)}}@media (max-width:768px){.rcb-chat-window{max-height:calc(100vh - 100px)!important;max-width:calc(100vw - 40px)!important;width:550px!important}.embedded-chat-container.open{height:400px}.embedded-chat-closed{font-size:14px;height:40px}.embedded-chat-open-btn{font-size:12px;padding:3px 10px}.rcb-bot-message,.rcb-user-message{max-width:85%!important}.rcb-chat-input-textarea{font-size:16px!important;min-height:44px!important}.rcb-chat-header{padding:12px 16px!important}}@media (max-width:480px){.rcb-chat-window{bottom:10px!important;left:10px!important;max-height:calc(100vh - 80px)!important;max-width:calc(100vw - 20px)!important;right:10px!important;width:calc(100vw - 20px)!important}.embedded-chat-container.open{height:350px}.rcb-bot-message,.rcb-user-message{margin-bottom:8px!important;max-width:90%!important}.rcb-chat-header{font-size:14px!important;padding:8px 12px!important}.rcb-chat-button{bottom:20px!important;height:50px!important;right:20px!important;width:50px!important}.rcb-chat-footer-container{font-size:9px!important;padding:8px 12px!important}}@media (max-width:360px){.rcb-chat-window{left:5px!important;max-width:calc(100vw - 10px)!important;right:5px!important;width:calc(100vw - 10px)!important}.rcb-chat-header{font-size:13px!important;padding:6px 8px!important}}.rcb-checkbox-container{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin-left:16px!important;max-width:100%!important;padding-top:12px!important}.rcb-checkbox-row-container{align-items:center!important;background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--primaryColor,#107180)!important;cursor:pointer!important;display:flex!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;margin:0!important;max-height:auto!important;min-height:auto!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-checkbox-row-container:hover{background-color:#e8f4f8!important;border-color:var(--primaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.rcb-checkbox-row-container[data-checked=true]{background-color:var(--primaryColor,#107180)!important;border-color:var(--primaryColor,#107180)!important;color:#fff!important}.rcb-checkbox-row{margin-left:0!important}.rcb-checkbox-mark{height:14px!important;margin-right:6px!important;width:14px!important}.rcb-checkbox-label{font-size:13px!important;margin:0!important;white-space:nowrap!important}.rcb-checkbox-next-button{align-items:center!important;background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--secondaryColor,#107180)!important;cursor:pointer!important;display:flex!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;justify-content:center!important;line-height:24px!important;margin:0!important;max-height:auto!important;min-height:auto!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-checkbox-next-button:hover{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.sr-only{clip:rect(0,0,0,0)!important;border:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}.rcb-chat-input-send-button:focus,.rcb-chat-input-textarea:focus{outline:2px solid var(--primaryColor,#107180)!important;outline-offset:2px!important}.rcb-user-message{word-wrap:break-word!important;overflow:hidden!important;word-break:break-word!important}:focus-visible{outline:2px solid var(--primaryColor,#107180)!important;outline-offset:2px!important}.rcb-options-container{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:8px!important;margin:16px!important;padding:0!important}.rcb-options{background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--secondaryColor,#107180)!important;cursor:pointer!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;outline:none!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-options:hover{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.rcb-checkbox-next-button.keyboard-focused,.rcb-checkbox-next-button:focus,.rcb-checkbox-next-button:focus-visible,.rcb-checkbox-row-container.keyboard-focused,.rcb-checkbox-row-container:focus,.rcb-checkbox-row-container:focus-visible,.rcb-options.keyboard-focused,.rcb-options:focus,.rcb-options:focus-visible{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;outline:none!important}.rcb-options:active{background-color:var(--secondaryColor,#107180)!important;border-color:var(--secondaryColor,#107180)!important;color:#fff!important;transform:translateY(0)!important}.keyboard-nav-hint{color:#666!important;font-size:12px!important;font-style:italic!important;margin-bottom:8px!important}@media (prefers-reduced-motion:reduce){.keyboard-nav-hint{display:none!important}}.rcb-options-container [role=button][tabindex="0"],.rcb-options-container button[tabindex="0"]{position:relative!important}.rcb-options-container [role=button][tabindex="0"]:after,.rcb-options-container button[tabindex="0"]:after{color:var(--secondaryColor,#107180)!important;content:"←"!important;font-size:16px!important;opacity:0!important;position:absolute!important;right:12px!important;top:50%!important;transform:translateY(-50%)!important;transition:opacity .2s ease!important}.rcb-options-container [role=button][tabindex="0"]:focus:after,.rcb-options-container button[tabindex="0"]:focus:after{opacity:1!important}.rcb-chat-input-send-button{cursor:pointer!important;opacity:1!important;pointer-events:auto!important;visibility:visible!important}.rcb-chat-input-send-button:not([tabindex]){-webkit-user-select:none;-moz-user-select:none;user-select:none}.rcb-chat-input-container [onclick],.rcb-chat-input-container [role=button],.rcb-chat-input-container div[style*=cursor],.rcb-chat-input-container svg:last-child,.rcb-chat-input-container>div:last-child{tabindex:0!important;cursor:pointer!important}.rcb-chat-footer{margin-top:4px!important;padding-top:0!important}.rcb-chat-footer-container{align-items:center!important;display:flex!important;margin-top:4px!important;padding-top:4px!important}.rcb-chat-footer-container button{order:1!important}.rcb-chat-footer-container a[href*=qa-bot-core]{tab-index:0!important;order:2!important}.rcb-chat-footer-container a[href*=feedback]{tab-index:0!important;order:3!important}@media (prefers-contrast:high){.rcb-chat-window a{background-color:#fff!important;border:1px solid #000!important;color:#000!important}}@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.rcb-chat-input-textarea{user-select:text!important}.rcb-chat-body-container,.rcb-chat-input-textarea,.rcb-chat-window{touch-action:pan-y!important}.embedded-qa-bot,.rcb-chat-window{-webkit-overflow-scrolling:touch!important}.embedded-qa-bot .rcb-chat-input-textarea{touch-action:pan-y!important;user-select:text!important}.embedded-qa-bot .rcb-chat-body-container,.embedded-qa-bot .rcb-chat-window{touch-action:pan-y!important}.rcb-chat-header-container{background:var(--primaryColor,#1a5b6e)!important;background:linear-gradient(135deg,var(--primaryColor,#1a5b6e) 0,var(--secondaryColor,#107180) 100%)!important}.rcb-toggle-button{align-items:center!important;background:var(--primaryColor,#1a5b6e)!important;display:flex!important;justify-content:center!important}.rcb-toggle-button svg{stroke:#fff!important;color:#fff!important}.rcb-toggle-button *,.rcb-toggle-button img,.rcb-toggle-button svg,.rcb-toggle-button>*{box-sizing:border-box!important;height:50px!important;left:0!important;margin:0 auto!important;max-height:50px!important;max-width:50px!important;min-height:50px!important;min-width:50px!important;padding:2px!important;position:relative!important;top:0!important;width:50px!important}.rcb-send-button{background-color:var(--primaryColor,#1a5b6e)!important}',{insertAt:"top"});const Tm=()=>{const[e,n]=B.useState(!1),i=()=>typeof navigator<"u"&&navigator.mediaDevices!==void 0&&typeof navigator.mediaDevices.getDisplayMedia=="function";return{captureScreenshot:async()=>{if(!i())throw new Error("Screen capture is not available in this environment");try{n(!0);const a=await navigator.mediaDevices.getDisplayMedia({video:{displaySurface:"browser",cursor:"always",width:{ideal:1920},height:{ideal:1080}},audio:!1}),o=document.createElement("video");o.srcObject=a,await new Promise(h=>{o.onloadedmetadata=()=>{o.play(),h()}});const u=document.createElement("canvas");u.width=o.videoWidth,u.height=o.videoHeight;const f=u.getContext("2d");if(!f)throw new Error("Could not get canvas context");f.drawImage(o,0,0,u.width,u.height);const A=await new Promise(h=>u.toBlob(h,"image/png"));if(!A)throw new Error("Could not create image blob");const c=new Date().toISOString().replace(/[:.]/g,"-"),d=new File([A],"screenshot-".concat(c,".png"),{type:"image/png"});return a.getTracks().forEach(h=>h.stop()),n(!1),d}catch(a){throw Ho("Error capturing screenshot:",a),n(!1),a}},isCapturing:e,isScreenCaptureAvailable:i()}},Dm=e=>B.createElement(lf,e,B.createElement("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),B.createElement("polyline",{points:"17 8 12 3 7 8"}),B.createElement("line",{x1:"12",y1:"3",x2:"12",y2:"15"})),Im=e=>new Promise((n,i)=>{const a=new FileReader;a.onload=()=>{if(typeof a.result!="string")return void i(new Error("Failed to read file ".concat(e.name)));const o=a.result.split(",")[1];n({fileName:e.name,contentType:e.type,size:e.size,fileData:o})},a.onerror=()=>i(new Error("Failed to read file ".concat(e.name))),a.readAsDataURL(e)}),Bm=e=>Promise.all(e.map(Im)),Mm=e=>e<1024?"".concat(e," B"):e<1048576?"".concat((e/1024).toFixed(1)," KB"):"".concat((e/1048576).toFixed(1)," MB"),el=e=>{let{onFileUpload:n,maxSizeMB:i=10,acceptedTypes:a="image/*,application/pdf,text/*,.doc,.docx",enableScreenshot:o=!1,className:u}=e;const[f,A]=B.useState(!1),[c,d]=B.useState([]),[h,v]=B.useState(null),y=B.useRef(null),{captureScreenshot:k,isCapturing:C,isScreenCaptureAvailable:R}=Tm(),E=N=>{const W=document.createElement("div");W.setAttribute("aria-live","assertive"),W.setAttribute("aria-atomic","true"),W.className="sr-only",W.textContent=N,document.body.appendChild(W),setTimeout(()=>document.body.removeChild(W),1e3)},T=N=>{if(!N||N.length===0)return void cm("FileUploadComponent: No valid files provided to handleFiles");let W;try{W=Array.from(N)}catch(Z){return Ho("FileUploadComponent: Error converting files to array:",Z),void E("Error processing selected files. Please try again.")}const ee=[...c,...W];d(ee);const G=W.length,Y=W.map(Z=>Z.name).join(", ");E("".concat(G," file").concat(G>1?"s":""," selected: ").concat(Y)),setTimeout(()=>{const Z=document.querySelector(".rcb-chat-content");Z&&(Z.scrollTop=Z.scrollHeight)},100),n&&n(ee)},Q=N=>{N.preventDefault(),N.stopPropagation(),N.type==="dragenter"||N.type==="dragover"?A(!0):N.type==="dragleave"&&A(!1)},M=()=>{try{y.current&&y.current.click()}catch(N){Ho("FileUploadComponent: Error in handleButtonClick:",N),E("Error opening file selection dialog. Please try again.")}},U=()=>{v(null)},j=o&&R;return B.createElement("div",{className:"file-upload-container ".concat(u||""),style:{padding:"16px",margin:"8px 0"}},j&&B.createElement("div",{style:{display:"flex",justifyContent:"center",marginBottom:"10px"}},B.createElement("button",{onClick:N=>{N.preventDefault(),(async()=>{try{const W=await k();T([W]),E("Screenshot captured successfully")}catch{E("Error capturing screenshot. Please try again.")}})()},disabled:C,"aria-describedby":"screenshot-help","aria-label":C?"Taking screenshot, please wait":"Take a screenshot to attach",style:{display:"flex",alignItems:"center",gap:"8px",backgroundColor:"#107180",color:"white",border:"none",borderRadius:"5px",padding:"8px 12px",cursor:C?"not-allowed":"pointer",fontSize:"14px",fontWeight:"500",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"}},B.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},B.createElement("path",{d:"M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"}),B.createElement("circle",{cx:"12",cy:"13",r:"4"})),C?"Taking screenshot...":"Take screenshot..."),B.createElement("span",{id:"screenshot-help",className:"sr-only"},"Captures the current screen and adds it as an attachment")),B.createElement("div",{className:"file-upload-dropzone ".concat(f?"active":""),onDragEnter:Q,onDragLeave:Q,onDragOver:Q,onDrop:N=>{var W;N.preventDefault(),N.stopPropagation(),A(!1);try{!((W=N.dataTransfer)===null||W===void 0)&&W.files&&N.dataTransfer.files.length>0&&T(N.dataTransfer.files)}catch(ee){Ho("FileUploadComponent: Error in handleDrop:",ee),E("Error processing dropped files. Please try again.")}},role:"button",tabIndex:0,"aria-label":"File upload area. Click to select files or drag and drop files here.","aria-describedby":"upload-instructions",onKeyDown:N=>{N.key!=="Enter"&&N.key!==" "||(N.preventDefault(),M())},style:{padding:"20px",border:"2px dashed #ccc",borderRadius:"8px",backgroundColor:f?"#f0f8ff":"#fafafa",transition:"all 0.3s ease"}},B.createElement("input",{ref:y,type:"file",className:"file-input",onChange:N=>{var W;try{!((W=N.target)===null||W===void 0)&&W.files&&N.target.files.length>0&&T(N.target.files)}catch(ee){Ho("FileUploadComponent: Error in handleFileSelect:",ee),E("Error processing selected files. Please try again.")}},multiple:!0,style:{display:"none"},"aria-label":"Select files to upload",accept:a}),B.createElement("div",{className:"upload-content",onClick:M,style:{cursor:"pointer",flexDirection:"column",alignItems:"center",display:"flex",textAlign:"center",padding:"12px"}},B.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px"}},B.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"10px"}},B.createElement(Dm,null),B.createElement("p",{style:{margin:0,fontWeight:"bold"}},"Upload Files")),B.createElement("p",{id:"upload-instructions",style:{margin:0,fontSize:"14px",color:"#666"}},"Drag and drop files here or click to select. (Max ",i,"MB each)")),c.length>0&&B.createElement("div",{className:"selected-files",style:{display:"flex",flexWrap:"wrap",gap:"8px",marginTop:"12px",alignItems:"center"}},B.createElement("span",{style:{fontWeight:400,color:"#888",fontSize:"13px",marginRight:"8px",alignSelf:"center"}},"Selected files:"),c.map((N,W)=>B.createElement("span",{key:W,style:{background:"#fff",color:"#107180",borderRadius:"5px",padding:"4px 12px",fontSize:"14px",marginRight:"4px",marginBottom:"4px",border:"1px solid #ccc",display:"flex",alignItems:"center",gap:"6px",cursor:"pointer"},onClick:ee=>{ee.stopPropagation(),(G=>{v(G)})(N)}},B.createElement("span",{onClick:ee=>{ee.stopPropagation(),(G=>{const Y=c.filter((Z,$)=>$!==G);d(Y),n&&n(Y)})(W)},style:{cursor:"pointer",color:"#888",fontWeight:"bold",fontSize:"15px",marginRight:"4px",userSelect:"none",lineHeight:1},title:"Remove file","aria-label":"Remove ".concat(N.name)},"×"),N.name," (",Mm(N.size),")"))))),(()=>{if(!h)return null;const N=h.type.startsWith("image/"),W=h.type.startsWith("text/"),ee=h.type==="application/pdf";return B.createElement("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.7)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3},onClick:U},B.createElement("div",{style:{backgroundColor:"white",padding:"20px",borderRadius:"8px",maxWidth:"90%",maxHeight:"90%",overflow:"auto",position:"relative"},onClick:G=>G.stopPropagation()},B.createElement("button",{onClick:U,style:{position:"absolute",top:"10px",right:"10px",background:"none",border:"none",fontSize:"24px",cursor:"pointer",color:"#666"}},"×"),B.createElement("h3",{style:{marginTop:0,marginBottom:"16px"}},h.name),N&&B.createElement("img",{src:URL.createObjectURL(h),alt:h.name,style:{maxWidth:"100%",maxHeight:"70vh"}}),W&&B.createElement("pre",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word",maxHeight:"70vh",overflow:"auto",padding:"16px",backgroundColor:"#f5f5f5",borderRadius:"4px"}},URL.createObjectURL(h)),ee&&B.createElement("iframe",{src:URL.createObjectURL(h),style:{width:"100%",height:"70vh",border:"none"},title:h.name}),!N&&!W&&!ee&&B.createElement("div",{style:{padding:"20px",textAlign:"center"}},"Preview not available for this file type")))})())};function Rm(e,n){if(!n||Object.keys(n).length===0)return e;const i={};for(const[a,o]of Object.entries(e)){let u=Object.assign({},o);if(u.chatDisabled===void 0){const f=!(!u.options&&!u.checkboxes);u.chatDisabled=f}i[a]=u}return i}function tl(e){return async n=>{const i=await e(n);await n.injectMessage(i)}}const Om=B.forwardRef((e,n)=>{const[i,a]=B.useState(e.defaultOpen||!1),o=B.useRef(null);return B.useImperativeHandle(n,()=>({addMessage:u=>{var f;(f=o.current)===null||f===void 0||f.addMessage(u)},setBotEnabled:u=>{var f;(f=o.current)===null||f===void 0||f.setBotEnabled(u)},openChat:()=>{var u;a(!0),(u=o.current)===null||u===void 0||u.openChat()},closeChat:()=>{var u;a(!1),(u=o.current)===null||u===void 0||u.closeChat()},toggleChat:()=>{var u;a(f=>!f),(u=o.current)===null||u===void 0||u.toggleChat()}}),[]),B.createElement(jc,{ref:o,apiKey:e.apiKey,qaEndpoint:e.qaEndpoint,ratingEndpoint:e.ratingEndpoint,welcomeMessage:e.welcomeMessage,primaryColor:e.primaryColor,secondaryColor:e.secondaryColor,botName:e.botName,logo:e.logo,placeholder:e.placeholder,errorMessage:e.errorMessage,embedded:e.embedded,isLoggedIn:e.isLoggedIn,allowAnonAccess:e.allowAnonAccess,open:i,onOpenChange:a,footerText:e.footerText,footerLink:e.footerLink,tooltipText:e.tooltipText,onAnalyticsEvent:e.onAnalyticsEvent})});Om.displayName="ProgrammaticQABot";const to={QA_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/chat/api/",RATING_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/chat/rating/",METRICS_API_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/xdmod/chat/api/",METRICS_RATING_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/xdmod/chat/rating/",METRICS_QUESTIONS_URL:"https://metrics.access-ci.org/qa_bot_faq",NETLIFY_BASE_URL:"https://access-jsm-api.netlify.app",DEFAULT_API_KEY:"demo-key"},Ir={BOT_NAME:"ACCESS Q&A",LOGO:"https://support.access-ci.org/themes/contrib/asp-theme/images/icons/ACCESS-arrrow.svg",WELCOME_MESSAGE:"Hello! What can I help you with?",WELCOME_MESSAGE_LOGGED_OUT:"To ask questions, please log in.",LOGIN_URL:"/login",PRIMARY_COLOR:"#1a5b6e",SECONDARY_COLOR:"#107180",TOOLTIP:"Ask me about ACCESS! 😊"},df={SESSION_ID:"access-qa-bot-session-id"};function _m({welcome:e,setTicketForm:n,isLoggedIn:i,trackEvent:a}){return{start:{message:e,options:["Ask a question about ACCESS","Open a Help Ticket","Usage and performance of ACCESS resources (XDMoD)","Report a security issue"],path:o=>(a({type:"chatbot_menu_selected",selection:o.userInput}),o.userInput==="Ask a question about ACCESS"?i?"go_ahead_and_ask":"qa_loop":o.userInput==="Open a Help Ticket"?(n({}),"help_ticket"):o.userInput==="Usage and performance of ACCESS resources (XDMoD)"?"metrics_intro":o.userInput==="Report a security issue"?(n({}),a({type:"chatbot_security_started"}),"security_incident"):"start")},go_ahead_and_ask:{message:`Go ahead and ask your question! I'll do my best to help.
147
147
 
148
- *This assistant is powered by AI. Responses may not always be accurate. Do not share passwords or secrets.* [Privacy Notice](https://support.access-ci.org/tools/access-qa-tool/privacy)`,WELCOME_MESSAGE_LOGGED_OUT:"To ask questions, please log in.",LOGIN_URL:"/login",PRIMARY_COLOR:"#1a5b6e",SECONDARY_COLOR:"#107180",TOOLTIP:"Ask me about ACCESS! 😊"},df={SESSION_ID:"access-qa-bot-session-id"};function _m({welcome:e,setTicketForm:n,isLoggedIn:i,trackEvent:a}){return{start:{message:e,options:["Ask a question about ACCESS","Open a Help Ticket","Usage and performance of ACCESS resources (XDMoD)","Report a security issue"],path:o=>(a({type:"chatbot_menu_selected",selection:o.userInput}),o.userInput==="Ask a question about ACCESS"?i?"go_ahead_and_ask":"qa_loop":o.userInput==="Open a Help Ticket"?(n({}),"help_ticket"):o.userInput==="Usage and performance of ACCESS resources (XDMoD)"?"metrics_intro":o.userInput==="Report a security issue"?(n({}),a({type:"chatbot_security_started"}),"security_incident"):"start")},go_ahead_and_ask:{message:"Go ahead and ask your question! I'll do my best to help.",path:"qa_loop"}}}let Wc=null;function Lm(e){Wc=e}function Ie(){return Wc?Wc.ticketForm||{}:(console.warn("Form context not available, returning empty form"),{})}function Ft(e={}){const n=Ie();return{...n,email:e.email||n.email,name:e.name||n.name,accessId:e.accessId||n.accessId}}function Yc(e){return e&&e.length>0?`
148
+ *This assistant is powered by AI. Responses may not always be accurate. Do not share passwords or secrets.* [Privacy Notice](https://support.access-ci.org/tools/access-qa-tool/privacy)`,path:"qa_loop"}}}let Wc=null;function Lm(e){Wc=e}function Ie(){return Wc?Wc.ticketForm||{}:(console.warn("Form context not available, returning empty form"),{})}function Ft(e={}){const n=Ie();return{...n,email:e.email||n.email,name:e.name||n.name,accessId:e.accessId||n.accessId}}function Yc(e){return e&&e.length>0?`
149
149
  Attachments: ${e.length} file(s) attached`:""}const Da={SUPPORT:17,LOGIN_ACCESS:30,LOGIN_PROVIDER:31,SECURITY:26};async function Fm(e,n="support",i=[]){const o={support:Da.SUPPORT,general_help:Da.SUPPORT,loginAccess:Da.LOGIN_ACCESS,loginProvider:Da.LOGIN_PROVIDER,security:Da.SECURITY}[n]||Da.SUPPORT,f={serviceDeskId:n==="security"?3:2,requestTypeId:o,requestFieldValues:{...e}};return i.length>0&&(f.attachments=await Bm(i)),f}async function Qm(e,n){var o,u;const a=`${to.NETLIFY_BASE_URL}/api/v1/${n}`;try{const f=await fetch(a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!f.ok){let c="";try{const d=await f.text();try{const h=JSON.parse(d);c=h.message||h.error||d}catch{c=d}}catch{c=`HTTP ${f.status} ${f.statusText}`}return f.status===403?c="The ticket service is temporarily unavailable. Please try again later or contact support directly.":f.status===404?c="Ticket service not found. Please try again later.":f.status===500?c="Server error. Please try again later.":f.status===401&&(c="Authentication error with the ticket service. Please contact support."),{success:!1,status:f.status,error:c}}const A=await f.json();return{success:!0,ticketKey:(o=A.data)==null?void 0:o.ticketKey,ticketUrl:(u=A.data)==null?void 0:u.ticketUrl}}catch(f){return{success:!1,error:f instanceof Error?f.message:"Unknown error"}}}async function nl(e,n,i=[]){try{const a=await Fm(e,n,i);return await Qm(a,n==="security"?"security-incidents":"tickets")}catch(a){return{success:!1,error:a instanceof Error?a.message:"Unknown error"}}}function Gc(e,n="ticket"){return e?e.success?e.ticketUrl&&e.ticketKey?`Your ${n} has been submitted successfully.
150
150
 
151
151
  Ticket: <a href="${e.ticketUrl}" target="_blank">${e.ticketKey}</a>
@@ -225,7 +225,9 @@ Email: ${h.email||"Not provided"}
225
225
  ACCESS ID: ${y}
226
226
  Description: ${h.description||"Not provided"}${v}
227
227
 
228
- Would you like to submit this security incident report?`},options:["Submit Security Report","Back to Main Menu"],function:async c=>{if(c.userInput==="Submit Security Report"){const d=Ie(),h=No(i),v={...d,name:h.name||d.name,email:h.email||d.email,accessId:o||h.accessId||d.accessId},y={summary:v.summary||"",priority:v.priority||"",description:v.description||"",name:v.name||"",email:v.email||"",accessId:v.accessId||""};await f(y,d.uploadedFiles||[],v.priority)}},path:c=>c.userInput==="Submit Security Report"?"security_success":"start"},security_success:{message:tl(()=>Gm(u)),options:["Back to Main Menu"],renderHtml:["BOT"],path:"start"}}}const Qt=[];for(let e=0;e<256;++e)Qt.push((e+256).toString(16).slice(1));function Xm(e,n=0){return(Qt[e[n+0]]+Qt[e[n+1]]+Qt[e[n+2]]+Qt[e[n+3]]+"-"+Qt[e[n+4]]+Qt[e[n+5]]+"-"+Qt[e[n+6]]+Qt[e[n+7]]+"-"+Qt[e[n+8]]+Qt[e[n+9]]+"-"+Qt[e[n+10]]+Qt[e[n+11]]+Qt[e[n+12]]+Qt[e[n+13]]+Qt[e[n+14]]+Qt[e[n+15]]).toLowerCase()}let Vc;const Jm=new Uint8Array(16);function Km(){if(!Vc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Vc=crypto.getRandomValues.bind(crypto)}return Vc(Jm)}const ff={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Xc(e,n,i){var o;if(ff.randomUUID&&!e)return ff.randomUUID();e=e||{};const a=e.random??((o=e.rng)==null?void 0:o.call(e))??Km();if(a.length<16)throw new Error("Random bytes length must be >= 16");return a[6]=a[6]&15|64,a[8]=a[8]&63|128,Xm(a)}function rv(e){return e}function qm({sessionId:e,apiKey:n,trackEvent:i}){let a=null;return{metrics_intro:{message:`Please type your question about usage and performance metrics (XDMoD) below. You can see some <a target="_blank" href="${to.METRICS_QUESTIONS_URL}">examples here</a>.`,renderHtml:["BOT"],path:"metrics_loop"},metrics_loop:{message:async o=>{const{userInput:u}=o;if(u==="👍 Helpful"||u==="👎 Not helpful"){if(n&&e&&a){const A={"Content-Type":"application/json","X-Origin":"metrics","X-API-KEY":n,"X-Session-ID":e,"X-Query-ID":a,"X-Feedback":u==="👍 Helpful"?"1":"0"};try{await fetch(to.METRICS_RATING_ENDPOINT,{method:"POST",headers:A})}catch(c){console.error("Error sending metrics feedback:",c)}}return"Thanks for the feedback! Ask another question about usage and performance metrics (XDMoD) or start a new chat."}else try{const f=Xc();a=f,i({type:"chatbot_metrics_question_sent",queryId:f});const A={"Content-Type":"application/json","X-Origin":"metrics","X-API-KEY":n,"X-Session-ID":e,"X-Query-ID":f},h=(await(await fetch(to.METRICS_API_ENDPOINT,{method:"POST",headers:A,body:JSON.stringify({query:u})})).json()).response,v=h;return await o.injectMessage(v),setTimeout(async()=>{await o.injectMessage("Ask another question about usage and performance metrics (XDMoD) or start a new chat.")},100),null}catch(f){return console.error("Error in metrics flow:",f),"I'm sorry, there was an error processing your question. Please try again."}},renderMarkdown:["BOT"],options:o=>o.userInput==="👍 Helpful"||o.userInput==="👎 Not helpful"?[]:["👍 Helpful","👎 Not helpful"],chatDisabled:!1,path:"metrics_loop"}}}function $m(){if(typeof window>"u")return Xc();let e=localStorage.getItem(df.SESSION_ID);return e||(e=Xc(),localStorage.setItem(df.SESSION_ID,e)),e}const pf="access-qa-bot-shadow-overrides",Zm=`
228
+ Would you like to submit this security incident report?`},options:["Submit Security Report","Back to Main Menu"],function:async c=>{if(c.userInput==="Submit Security Report"){const d=Ie(),h=No(i),v={...d,name:h.name||d.name,email:h.email||d.email,accessId:o||h.accessId||d.accessId},y={summary:v.summary||"",priority:v.priority||"",description:v.description||"",name:v.name||"",email:v.email||"",accessId:v.accessId||""};await f(y,d.uploadedFiles||[],v.priority)}},path:c=>c.userInput==="Submit Security Report"?"security_success":"start"},security_success:{message:tl(()=>Gm(u)),options:["Back to Main Menu"],renderHtml:["BOT"],path:"start"}}}const Qt=[];for(let e=0;e<256;++e)Qt.push((e+256).toString(16).slice(1));function Xm(e,n=0){return(Qt[e[n+0]]+Qt[e[n+1]]+Qt[e[n+2]]+Qt[e[n+3]]+"-"+Qt[e[n+4]]+Qt[e[n+5]]+"-"+Qt[e[n+6]]+Qt[e[n+7]]+"-"+Qt[e[n+8]]+Qt[e[n+9]]+"-"+Qt[e[n+10]]+Qt[e[n+11]]+Qt[e[n+12]]+Qt[e[n+13]]+Qt[e[n+14]]+Qt[e[n+15]]).toLowerCase()}let Vc;const Jm=new Uint8Array(16);function qm(){if(!Vc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Vc=crypto.getRandomValues.bind(crypto)}return Vc(Jm)}const ff={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Xc(e,n,i){var o;if(ff.randomUUID&&!e)return ff.randomUUID();e=e||{};const a=e.random??((o=e.rng)==null?void 0:o.call(e))??qm();if(a.length<16)throw new Error("Random bytes length must be >= 16");return a[6]=a[6]&15|64,a[8]=a[8]&63|128,Xm(a)}function rv(e){return e}function Km({sessionId:e,apiKey:n,trackEvent:i}){let a=null;return{metrics_intro:{message:`Please type your question about usage and performance metrics (XDMoD) below. You can see some <a target="_blank" href="${to.METRICS_QUESTIONS_URL}">examples here</a>.
229
+
230
+ <em>This assistant is powered by AI. Responses may not always be accurate. Do not share passwords or secrets.</em> <a href="https://support.access-ci.org/tools/access-qa-tool/privacy">Privacy Notice</a>`,renderHtml:["BOT"],path:"metrics_loop"},metrics_loop:{message:async o=>{const{userInput:u}=o;if(u==="👍 Helpful"||u==="👎 Not helpful"){if(n&&e&&a){const A={"Content-Type":"application/json","X-Origin":"metrics","X-API-KEY":n,"X-Session-ID":e,"X-Query-ID":a,"X-Feedback":u==="👍 Helpful"?"1":"0"};try{await fetch(to.METRICS_RATING_ENDPOINT,{method:"POST",headers:A})}catch(c){console.error("Error sending metrics feedback:",c)}}return"Thanks for the feedback! Ask another question about usage and performance metrics (XDMoD) or start a new chat."}else try{const f=Xc();a=f,i({type:"chatbot_metrics_question_sent",queryId:f});const A={"Content-Type":"application/json","X-Origin":"metrics","X-API-KEY":n,"X-Session-ID":e,"X-Query-ID":f},h=(await(await fetch(to.METRICS_API_ENDPOINT,{method:"POST",headers:A,body:JSON.stringify({query:u})})).json()).response,v=h;return await o.injectMessage(v),setTimeout(async()=>{await o.injectMessage("Ask another question about usage and performance metrics (XDMoD) or start a new chat.")},100),null}catch(f){return console.error("Error in metrics flow:",f),"I'm sorry, there was an error processing your question. Please try again."}},renderMarkdown:["BOT"],options:o=>o.userInput==="👍 Helpful"||o.userInput==="👎 Not helpful"?[]:["👍 Helpful","👎 Not helpful"],chatDisabled:!1,path:"metrics_loop"}}}function $m(){if(typeof window>"u")return Xc();let e=localStorage.getItem(df.SESSION_ID);return e||(e=Xc(),localStorage.setItem(df.SESSION_ID,e)),e}const pf="access-qa-bot-shadow-overrides",Zm=`
229
231
  .rcb-checkbox-container {
230
232
  display: flex !important;
231
233
  flex-wrap: wrap !important;
@@ -350,5 +352,5 @@ Would you like to submit this security incident report?`},options:["Submit Secur
350
352
  color: white !important;
351
353
  transform: translateY(0) !important;
352
354
  }
353
- `;function ev(e){if(!e)return;const n=e.getRootNode();if(!(n instanceof ShadowRoot)||n.getElementById(pf))return;const i=document.createElement("style");i.id=pf,i.textContent=Zm,n.appendChild(i)}const Jc=B.forwardRef((e,n)=>{const{apiKey:i=to.DEFAULT_API_KEY,isLoggedIn:a=!1,loginUrl:o=Ir.LOGIN_URL,userEmail:u,userName:f,accessId:A,actingUser:c,ringEffect:d,defaultOpen:h,onClose:v,open:y,onOpenChange:k,embedded:C=!1,welcome:R,qaEndpoint:E,ratingEndpoint:T,onAnalyticsEvent:Q}=e,M=B.useRef(null),U=B.useRef(null),[j,N]=B.useState({}),W=B.useMemo(()=>({email:u,name:f,accessId:A}),[u,f,A]);B.useEffect(()=>{ev(U.current)},[]),B.useEffect(()=>{Lm({ticketForm:j,setTicketForm:N})},[j]),B.useImperativeHandle(n,()=>({addMessage:ae=>{var ie,le;(le=(ie=M.current)==null?void 0:ie.addMessage)==null||le.call(ie,ae)}}));const ee=R||(a?Ir.WELCOME_MESSAGE:Ir.WELCOME_MESSAGE_LOGGED_OUT),G=B.useMemo(()=>$m(),[]),Y=B.useCallback(ae=>{Q&&Q({...ae,type:ae.type,timestamp:ae.timestamp??Date.now(),sessionId:ae.sessionId??G})},[Q,G]),Z=B.useCallback(ae=>{Q&&Q({...ae,type:ae.type,timestamp:typeof ae.timestamp=="number"?ae.timestamp:Date.now(),sessionId:typeof ae.sessionId=="string"?ae.sessionId:G})},[Q,G]),$=B.useMemo(()=>{const ae=_m({welcome:ee,setTicketForm:N,isLoggedIn:a,trackEvent:Y}),ie=Ym({ticketForm:j,setTicketForm:N,userInfo:W,trackEvent:Y}),le=Vm({ticketForm:j,setTicketForm:N,userInfo:W,trackEvent:Y}),be=qm({sessionId:G,apiKey:i,trackEvent:Y}),he={...ae,...ie,...le,...be};return Rm(he,{disableOnOptions:!0})},[ee,j,W,G,i,a,Y]);return z.jsx("div",{ref:U,children:z.jsx(jc,{ref:M,isLoggedIn:a,actingUser:c,onAnalyticsEvent:Z,apiKey:i,qaEndpoint:E||to.QA_ENDPOINT,ratingEndpoint:T||to.RATING_ENDPOINT,botName:Ir.BOT_NAME,logo:Ir.LOGO,primaryColor:Ir.PRIMARY_COLOR,secondaryColor:Ir.SECONDARY_COLOR,welcomeMessage:ee,tooltipText:Ir.TOOLTIP,loginUrl:o,open:y,onOpenChange:k,embedded:C,footerText:"AI-powered · Privacy Notice",footerLink:"https://support.access-ci.org/tools/access-qa-tool/privacy",customFlow:$})})});Jc.displayName="AccessQABot",Bn.API_CONFIG=to,Bn.AccessQABot=Jc,Bn.BOT_CONFIG=Ir,Bn.QABot=Jc,Object.defineProperty(Bn,Symbol.toStringTag,{value:"Module"})});
355
+ `;function ev(e){if(!e)return;const n=e.getRootNode();if(!(n instanceof ShadowRoot)||n.getElementById(pf))return;const i=document.createElement("style");i.id=pf,i.textContent=Zm,n.appendChild(i)}const Jc=B.forwardRef((e,n)=>{const{apiKey:i=to.DEFAULT_API_KEY,isLoggedIn:a=!1,loginUrl:o=Ir.LOGIN_URL,userEmail:u,userName:f,accessId:A,actingUser:c,ringEffect:d,defaultOpen:h,onClose:v,open:y,onOpenChange:k,embedded:C=!1,welcome:R,qaEndpoint:E,ratingEndpoint:T,onAnalyticsEvent:Q}=e,M=B.useRef(null),U=B.useRef(null),[j,N]=B.useState({}),W=B.useMemo(()=>({email:u,name:f,accessId:A}),[u,f,A]);B.useEffect(()=>{ev(U.current)},[]),B.useEffect(()=>{Lm({ticketForm:j,setTicketForm:N})},[j]),B.useImperativeHandle(n,()=>({addMessage:ae=>{var ie,le;(le=(ie=M.current)==null?void 0:ie.addMessage)==null||le.call(ie,ae)}}));const ee=R||(a?Ir.WELCOME_MESSAGE:Ir.WELCOME_MESSAGE_LOGGED_OUT),G=B.useMemo(()=>$m(),[]),Y=B.useCallback(ae=>{Q&&Q({...ae,type:ae.type,timestamp:ae.timestamp??Date.now(),sessionId:ae.sessionId??G})},[Q,G]),Z=B.useCallback(ae=>{Q&&Q({...ae,type:ae.type,timestamp:typeof ae.timestamp=="number"?ae.timestamp:Date.now(),sessionId:typeof ae.sessionId=="string"?ae.sessionId:G})},[Q,G]),$=B.useMemo(()=>{const ae=_m({welcome:ee,setTicketForm:N,isLoggedIn:a,trackEvent:Y}),ie=Ym({ticketForm:j,setTicketForm:N,userInfo:W,trackEvent:Y}),le=Vm({ticketForm:j,setTicketForm:N,userInfo:W,trackEvent:Y}),be=Km({sessionId:G,apiKey:i,trackEvent:Y}),he={...ae,...ie,...le,...be};return Rm(he,{disableOnOptions:!0})},[ee,j,W,G,i,a,Y]);return z.jsx("div",{ref:U,children:z.jsx(jc,{ref:M,isLoggedIn:a,actingUser:c,onAnalyticsEvent:Z,apiKey:i,qaEndpoint:E||to.QA_ENDPOINT,ratingEndpoint:T||to.RATING_ENDPOINT,botName:Ir.BOT_NAME,logo:Ir.LOGO,primaryColor:Ir.PRIMARY_COLOR,secondaryColor:Ir.SECONDARY_COLOR,welcomeMessage:ee,tooltipText:Ir.TOOLTIP,loginUrl:o,open:y,onOpenChange:k,embedded:C,footerText:"AI-powered · Privacy Notice",footerLink:"https://support.access-ci.org/tools/access-qa-tool/privacy",customFlow:$})})});Jc.displayName="AccessQABot",Bn.API_CONFIG=to,Bn.AccessQABot=Jc,Bn.BOT_CONFIG=Ir,Bn.QABot=Jc,Object.defineProperty(Bn,Symbol.toStringTag,{value:"Module"})});
354
356
  //# sourceMappingURL=access-qa-bot.umd.cjs.map