@kapaai/support-form-deflector 0.9.19 → 0.9.20

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.
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see kapa-support-form-deflector.bundle.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.KapaDeflector=t():e.KapaDeflector=t()}(self,(()=>(()=>{var e,t,n={710:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},i=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!a)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,f=arguments[0],d=1,p=arguments.length,g=!1;for("boolean"==typeof f&&(g=f,f=arguments[1]||{},d=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});d<p;++d)if(null!=(t=arguments[d]))for(n in t)r=s(f,n),f!==(o=s(t,n))&&(g&&o&&(i(o)||(u=a(o)))?(u?(u=!1,c=r&&a(r)?r:[]):c=r&&i(r)?r:{},l(f,{name:n,newValue:e(g,c,o)})):void 0!==o&&l(f,{name:n,newValue:o}));return f}},985:(e,t,n)=>{"use strict";var r=n(524),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return r.isMemo(e)?i:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=i;var u=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,g=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(g){var o=p(n);o&&o!==g&&e(t,o,r)}var i=c(n);f&&(i=i.concat(f(n)));for(var l=s(t),h=s(n),m=0;m<i.length;++m){var y=i[m];if(!(a[y]||r&&r[y]||h&&h[y]||l&&l[y])){var b=d(n,y);try{u(t,y,b)}catch(e){}}}}return t}},703:e=>{e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},907:e=>{var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l,s=[],u=!1,c=-1;function f(){u&&l&&(u=!1,l.length?s=l.concat(s):c=-1,s.length&&d())}function d(){if(!u){var e=i(f);u=!0;for(var t=s.length;t;){for(l=s,s=[];++c<t;)l&&l[c].run();c=-1,t=s.length}l=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function g(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new p(e,t)),1!==s.length||u||i(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=g,r.addListener=g,r.once=g,r.off=g,r.removeListener=g,r.removeAllListeners=g,r.emit=g,r.prependListener=g,r.prependOnceListener=g,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},999:(e,t,n)=>{"use strict";var r=n(848);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},67:(e,t,n)=>{e.exports=n(999)()},848:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},400:(e,t,n)=>{"use strict";var r=n(41),o=n(967);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,l={};function s(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(l[e]=t,e=0;e<t.length;e++)i.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=Object.prototype.hasOwnProperty,d=/^[: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]*$/,p={},g={};function h(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new h(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new h(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new h(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new h(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new h(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new h(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new h(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new h(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new h(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function v(e,t,n,r){var o=m.hasOwnProperty(t)?m[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!f.call(g,e)||!f.call(p,e)&&(d.test(e)?g[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);m[t]=new h(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);m[t]=new h(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);m[t]=new h(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new h(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new h("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new h(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=Symbol.for("react.element"),x=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),C=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),R=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var N=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var L=Symbol.iterator;function _(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=L&&e[L]||e["@@iterator"])?e:null}var j,I=Object.assign;function z(e){if(void 0===j)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);j=t&&t[1]||""}return"\n"+j+e}var B=!1;function M(e,t){if(!e||B)return"";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,l=a.length-1;1<=i&&0<=l&&o[i]!==a[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==a[l]){if(1!==i||1!==l)do{if(i--,0>--l||o[i]!==a[l]){var s="\n"+o[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=i&&0<=l);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?z(e):""}function $(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return M(e.type,!1);case 11:return M(e.type.render,!1);case 1:return M(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case E:return"Fragment";case x:return"Portal";case F:return"Profiler";case S:return"StrictMode";case P:return"Suspense";case T:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case A:return(e._context.displayName||"Context")+".Provider";case O:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case D:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return H(e(t))}catch(e){}}return null}function U(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function V(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=V(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=V(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Y(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var n=t.checked;return I({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function K(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function Z(e,t){K(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return I({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(te(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function ae(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function se(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,fe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={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},ge=["Webkit","ms","Moz","O"];function he(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=he(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){ge.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ye=I({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,Ee=null,Se=null;function Fe(e){if(e=wo(e)){if("function"!=typeof xe)throw Error(a(280));var t=e.stateNode;t&&(t=xo(t),xe(e.stateNode,e.type,t))}}function Ae(e){Ee?Se?Se.push(e):Se=[e]:Ee=e}function Ce(){if(Ee){var e=Ee,t=Se;if(Se=Ee=null,Fe(e),t)for(e=0;e<t.length;e++)Fe(t[e])}}function Oe(e,t){return e(t)}function Pe(){}var Te=!1;function De(e,t,n){if(Te)return e(t,n);Te=!0;try{return Oe(e,t,n)}finally{Te=!1,(null!==Ee||null!==Se)&&(Pe(),Ce())}}function Re(e,t){var n=e.stateNode;if(null===n)return null;var r=xo(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var Ne=!1;if(c)try{var Le={};Object.defineProperty(Le,"passive",{get:function(){Ne=!0}}),window.addEventListener("test",Le,Le),window.removeEventListener("test",Le,Le)}catch(ce){Ne=!1}function _e(e,t,n,r,o,a,i,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var je=!1,Ie=null,ze=!1,Be=null,Me={onError:function(e){je=!0,Ie=e}};function $e(e,t,n,r,o,a,i,l,s){je=!1,Ie=null,_e.apply(Me,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ue(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function We(e){if(He(e)!==e)throw Error(a(188))}function Ve(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return We(o),e;if(i===r)return We(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e))?qe(e):null}function qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=qe(e);if(null!==t)return t;e=e.sibling}return null}var Ge=o.unstable_scheduleCallback,Ye=o.unstable_cancelCallback,Qe=o.unstable_shouldYield,Xe=o.unstable_requestPaint,Ke=o.unstable_now,Ze=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,at=null,it=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(lt(e)/st|0)|0},lt=Math.log,st=Math.LN2,ut=64,ct=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var l=i&~o;0!==l?r=ft(l):0!=(a&=i)&&(r=ft(a))}else 0!=(i=n&~o)?r=ft(i):0!==a&&(r=ft(a));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&4194240&a))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-it(t)),r|=e[n],t&=~o;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function gt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function ht(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var vt=0;function wt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var kt,xt,Et,St,Ft,At=!1,Ct=[],Ot=null,Pt=null,Tt=null,Dt=new Map,Rt=new Map,Nt=[],Lt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function _t(e,t){switch(e){case"focusin":case"focusout":Ot=null;break;case"dragenter":case"dragleave":Pt=null;break;case"mouseover":case"mouseout":Tt=null;break;case"pointerover":case"pointerout":Dt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function jt(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&null!==(t=wo(t))&&xt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function It(e){var t=vo(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ue(n)))return e.blockedOn=t,void Ft(e.priority,(function(){Et(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function zt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&xt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Bt(e,t,n){zt(e)&&n.delete(t)}function Mt(){At=!1,null!==Ot&&zt(Ot)&&(Ot=null),null!==Pt&&zt(Pt)&&(Pt=null),null!==Tt&&zt(Tt)&&(Tt=null),Dt.forEach(Bt),Rt.forEach(Bt)}function $t(e,t){e.blockedOn===t&&(e.blockedOn=null,At||(At=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Mt)))}function Ht(e){function t(t){return $t(t,e)}if(0<Ct.length){$t(Ct[0],e);for(var n=1;n<Ct.length;n++){var r=Ct[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Ot&&$t(Ot,e),null!==Pt&&$t(Pt,e),null!==Tt&&$t(Tt,e),Dt.forEach(t),Rt.forEach(t),n=0;n<Nt.length;n++)(r=Nt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Nt.length&&null===(n=Nt[0]).blockedOn;)It(n),null===n.blockedOn&&Nt.shift()}var Ut=w.ReactCurrentBatchConfig,Wt=!0;function Vt(e,t,n,r){var o=vt,a=Ut.transition;Ut.transition=null;try{vt=1,Gt(e,t,n,r)}finally{vt=o,Ut.transition=a}}function qt(e,t,n,r){var o=vt,a=Ut.transition;Ut.transition=null;try{vt=4,Gt(e,t,n,r)}finally{vt=o,Ut.transition=a}}function Gt(e,t,n,r){if(Wt){var o=Qt(e,t,n,r);if(null===o)Wr(e,t,r,Yt,n),_t(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Ot=jt(Ot,e,t,n,r,o),!0;case"dragenter":return Pt=jt(Pt,e,t,n,r,o),!0;case"mouseover":return Tt=jt(Tt,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Dt.set(a,jt(Dt.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,Rt.set(a,jt(Rt.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(_t(e,r),4&t&&-1<Lt.indexOf(e)){for(;null!==o;){var a=wo(o);if(null!==a&&kt(a),null===(a=Qt(e,t,n,r))&&Wr(e,t,r,Yt,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else Wr(e,t,r,null,n)}}var Yt=null;function Qt(e,t,n,r){if(Yt=null,null!==(e=vo(e=ke(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ue(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Kt=null,Zt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Zt,r=n.length,o="value"in Kt?Kt.value:Kt.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return Jt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return I(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,sn,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),fn=I({},un,{view:0,detail:0}),dn=on(fn),pn=I({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sn&&(sn&&"mousemove"===e.type?(an=e.screenX-sn.screenX,ln=e.screenY-sn.screenY):ln=an=0,sn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),gn=on(pn),hn=on(I({},pn,{dataTransfer:0})),mn=on(I({},fn,{relatedTarget:0})),yn=on(I({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=I({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vn=on(bn),wn=on(I({},un,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function Fn(){return Sn}var An=I({},fn,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Cn=on(An),On=on(I({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=on(I({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fn})),Tn=on(I({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Dn=I({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Rn=on(Dn),Nn=[9,13,27,32],Ln=c&&"CompositionEvent"in window,_n=null;c&&"documentMode"in document&&(_n=document.documentMode);var jn=c&&"TextEvent"in window&&!_n,In=c&&(!Ln||_n&&8<_n&&11>=_n),zn=String.fromCharCode(32),Bn=!1;function Mn(e,t){switch(e){case"keyup":return-1!==Nn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $n(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1,Un={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Un[e.type]:"textarea"===t}function Vn(e,t,n,r){Ae(r),0<(t=qr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,Gn=null;function Yn(e){zr(e,0)}function Qn(e){if(G(ko(e)))return e}function Xn(e,t){if("change"===e)return t}var Kn=!1;if(c){var Zn;if(c){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Zn=Jn}else Zn=!1;Kn=Zn&&(!document.documentMode||9<document.documentMode)}function tr(){qn&&(qn.detachEvent("onpropertychange",nr),Gn=qn=null)}function nr(e){if("value"===e.propertyName&&Qn(Gn)){var t=[];Vn(t,Gn,e,ke(e)),De(Yn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Gn=n,(qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(Gn)}function ar(e,t){if("click"===e)return Qn(t)}function ir(e,t){if("input"===e||"change"===e)return Qn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function sr(e,t){if(lr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!f.call(t,o)||!lr(e[o],t[o]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function gr(e){var t=dr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=cr(n,a);var i=cr(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var hr=c&&"documentMode"in document&&11>=document.documentMode,mr=null,yr=null,br=null,vr=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vr||null==mr||mr!==Y(r)||(r="selectionStart"in(r=mr)&&pr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&sr(br,r)||(br=r,0<(r=qr(yr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function kr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:kr("Animation","AnimationEnd"),animationiteration:kr("Animation","AnimationIteration"),animationstart:kr("Animation","AnimationStart"),transitionend:kr("Transition","TransitionEnd")},Er={},Sr={};function Fr(e){if(Er[e])return Er[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return Er[e]=n[t];return e}c&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var Ar=Fr("animationend"),Cr=Fr("animationiteration"),Or=Fr("animationstart"),Pr=Fr("transitionend"),Tr=new Map,Dr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Rr(e,t){Tr.set(e,t),s(t,[e])}for(var Nr=0;Nr<Dr.length;Nr++){var Lr=Dr[Nr];Rr(Lr.toLowerCase(),"on"+(Lr[0].toUpperCase()+Lr.slice(1)))}Rr(Ar,"onAnimationEnd"),Rr(Cr,"onAnimationIteration"),Rr(Or,"onAnimationStart"),Rr("dblclick","onDoubleClick"),Rr("focusin","onFocus"),Rr("focusout","onBlur"),Rr(Pr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _r="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),jr=new Set("cancel close invalid load scroll toggle".split(" ").concat(_r));function Ir(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,l,s,u){if($e.apply(this,arguments),je){if(!je)throw Error(a(198));var c=Ie;je=!1,Ie=null,ze||(ze=!0,Be=c)}}(r,t,void 0,e),e.currentTarget=null}function zr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==a&&o.isPropagationStopped())break e;Ir(o,l,u),a=s}else for(i=0;i<r.length;i++){if(s=(l=r[i]).instance,u=l.currentTarget,l=l.listener,s!==a&&o.isPropagationStopped())break e;Ir(o,l,u),a=s}}}if(ze)throw e=Be,ze=!1,Be=null,e}function Br(e,t){var n=t[mo];void 0===n&&(n=t[mo]=new Set);var r=e+"__bubble";n.has(r)||(Ur(t,e,2,!1),n.add(r))}function Mr(e,t,n){var r=0;t&&(r|=4),Ur(n,e,r,t)}var $r="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[$r]){e[$r]=!0,i.forEach((function(t){"selectionchange"!==t&&(jr.has(t)||Mr(t,!1,e),Mr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[$r]||(t[$r]=!0,Mr("selectionchange",!1,t))}}function Ur(e,t,n,r){switch(Xt(t)){case 1:var o=Vt;break;case 4:o=qt;break;default:o=Gt}n=o.bind(null,t,n,e),o=void 0,!Ne||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Wr(e,t,n,r,o){var a=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var s=i.tag;if((3===s||4===s)&&((s=i.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;i=i.return}for(;null!==l;){if(null===(i=vo(l)))return;if(5===(s=i.tag)||6===s){r=a=i;continue e}l=l.parentNode}}r=r.return}De((function(){var r=a,o=ke(n),i=[];e:{var l=Tr.get(e);if(void 0!==l){var s=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":s=Cn;break;case"focusin":u="focus",s=mn;break;case"focusout":u="blur",s=mn;break;case"beforeblur":case"afterblur":s=mn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=gn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=hn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Pn;break;case Ar:case Cr:case Or:s=yn;break;case Pr:s=Tn;break;case"scroll":s=dn;break;case"wheel":s=Rn;break;case"copy":case"cut":case"paste":s=vn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=On}var c=!!(4&t),f=!c&&"scroll"===e,d=c?null!==l?l+"Capture":null:l;c=[];for(var p,g=r;null!==g;){var h=(p=g).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==d&&null!=(h=Re(g,d))&&c.push(Vr(g,h,p))),f)break;g=g.return}0<c.length&&(l=new s(l,u,null,n,o),i.push({event:l,listeners:c}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===we||!(u=n.relatedTarget||n.fromElement)||!vo(u)&&!u[ho])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?vo(u):null)&&(u!==(f=He(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=gn,h="onMouseLeave",d="onMouseEnter",g="mouse","pointerout"!==e&&"pointerover"!==e||(c=On,h="onPointerLeave",d="onPointerEnter",g="pointer"),f=null==s?l:ko(s),p=null==u?l:ko(u),(l=new c(h,g+"leave",s,n,o)).target=f,l.relatedTarget=p,h=null,vo(o)===r&&((c=new c(d,g+"enter",u,n,o)).target=p,c.relatedTarget=f,h=c),f=h,s&&u)e:{for(d=u,g=0,p=c=s;p;p=Gr(p))g++;for(p=0,h=d;h;h=Gr(h))p++;for(;0<g-p;)c=Gr(c),g--;for(;0<p-g;)d=Gr(d),p--;for(;g--;){if(c===d||null!==d&&c===d.alternate)break e;c=Gr(c),d=Gr(d)}c=null}else c=null;null!==s&&Yr(i,l,s,c,!1),null!==u&&null!==f&&Yr(i,f,u,c,!0)}if("select"===(s=(l=r?ko(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var m=Xn;else if(Wn(l))if(Kn)m=ir;else{m=or;var y=rr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(m=ar);switch(m&&(m=m(e,r))?Vn(i,m,n,o):(y&&y(e,l,r),"focusout"===e&&(y=l._wrapperState)&&y.controlled&&"number"===l.type&&ee(l,"number",l.value)),y=r?ko(r):window,e){case"focusin":(Wn(y)||"true"===y.contentEditable)&&(mr=y,yr=r,br=null);break;case"focusout":br=yr=mr=null;break;case"mousedown":vr=!0;break;case"contextmenu":case"mouseup":case"dragend":vr=!1,wr(i,n,o);break;case"selectionchange":if(hr)break;case"keydown":case"keyup":wr(i,n,o)}var b;if(Ln)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else Hn?Mn(e,n)&&(v="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(v="onCompositionStart");v&&(In&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==v?"onCompositionEnd"===v&&Hn&&(b=en()):(Zt="value"in(Kt=o)?Kt.value:Kt.textContent,Hn=!0)),0<(y=qr(r,v)).length&&(v=new wn(v,e,null,n,o),i.push({event:v,listeners:y}),(b||null!==(b=$n(n)))&&(v.data=b))),(b=jn?function(e,t){switch(e){case"compositionend":return $n(t);case"keypress":return 32!==t.which?null:(Bn=!0,zn);case"textInput":return(e=t.data)===zn&&Bn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Ln&&Mn(e,t)?(e=en(),Jt=Zt=Kt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return In&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=qr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=b)}zr(i,t)}))}function Vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Re(e,n))&&r.unshift(Vr(e,a,o)),null!=(a=Re(e,t))&&r.push(Vr(e,a,o))),e=e.return}return r}function Gr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yr(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,o?null!=(s=Re(n,a))&&i.unshift(Vr(n,s,l)):o||null!=(s=Re(n,a))&&i.push(Vr(n,s,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Qr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Kr(e){return("string"==typeof e?e:""+e).replace(Qr,"\n").replace(Xr,"")}function Zr(e,t,n){if(t=Kr(t),Kr(e)!==t&&n)throw Error(a(425))}function Jr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,ao="function"==typeof Promise?Promise:void 0,io="function"==typeof queueMicrotask?queueMicrotask:void 0!==ao?function(e){return ao.resolve(null).then(e).catch(lo)}:ro;function lo(e){setTimeout((function(){throw e}))}function so(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Ht(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,go="__reactProps$"+fo,ho="__reactContainer$"+fo,mo="__reactEvents$"+fo,yo="__reactListeners$"+fo,bo="__reactHandles$"+fo;function vo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ho]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[po])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[po]||e[ho])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ko(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function xo(e){return e[go]||null}var Eo=[],So=-1;function Fo(e){return{current:e}}function Ao(e){0>So||(e.current=Eo[So],Eo[So]=null,So--)}function Co(e,t){So++,Eo[So]=e.current,e.current=t}var Oo={},Po=Fo(Oo),To=Fo(!1),Do=Oo;function Ro(e,t){var n=e.type.contextTypes;if(!n)return Oo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function No(e){return null!=e.childContextTypes}function Lo(){Ao(To),Ao(Po)}function _o(e,t,n){if(Po.current!==Oo)throw Error(a(168));Co(Po,t),Co(To,n)}function jo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(a(108,U(e)||"Unknown",o));return I({},n,r)}function Io(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Oo,Do=Po.current,Co(Po,e),Co(To,To.current),!0}function zo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=jo(e,t,Do),r.__reactInternalMemoizedMergedChildContext=e,Ao(To),Ao(Po),Co(Po,e)):Ao(To),Co(To,n)}var Bo=null,Mo=!1,$o=!1;function Ho(e){null===Bo?Bo=[e]:Bo.push(e)}function Uo(){if(!$o&&null!==Bo){$o=!0;var e=0,t=vt;try{var n=Bo;for(vt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Bo=null,Mo=!1}catch(t){throw null!==Bo&&(Bo=Bo.slice(e+1)),Ge(Je,Uo),t}finally{vt=t,$o=!1}}return null}var Wo=[],Vo=0,qo=null,Go=0,Yo=[],Qo=0,Xo=null,Ko=1,Zo="";function Jo(e,t){Wo[Vo++]=Go,Wo[Vo++]=qo,qo=e,Go=t}function ea(e,t,n){Yo[Qo++]=Ko,Yo[Qo++]=Zo,Yo[Qo++]=Xo,Xo=e;var r=Ko;e=Zo;var o=32-it(r)-1;r&=~(1<<o),n+=1;var a=32-it(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Ko=1<<32-it(t)+o|n<<o|r,Zo=a+e}else Ko=1<<a|n<<o|r,Zo=e}function ta(e){null!==e.return&&(Jo(e,1),ea(e,1,0))}function na(e){for(;e===qo;)qo=Wo[--Vo],Wo[Vo]=null,Go=Wo[--Vo],Wo[Vo]=null;for(;e===Xo;)Xo=Yo[--Qo],Yo[Qo]=null,Zo=Yo[--Qo],Yo[Qo]=null,Ko=Yo[--Qo],Yo[Qo]=null}var ra=null,oa=null,aa=!1,ia=null;function la(e,t){var n=Du(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function sa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ra=e,oa=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ra=e,oa=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Xo?{id:Ko,overflow:Zo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Du(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ra=e,oa=null,!0);default:return!1}}function ua(e){return!(!(1&e.mode)||128&e.flags)}function ca(e){if(aa){var t=oa;if(t){var n=t;if(!sa(e,t)){if(ua(e))throw Error(a(418));t=uo(n.nextSibling);var r=ra;t&&sa(e,t)?la(r,n):(e.flags=-4097&e.flags|2,aa=!1,ra=e)}}else{if(ua(e))throw Error(a(418));e.flags=-4097&e.flags|2,aa=!1,ra=e}}}function fa(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ra=e}function da(e){if(e!==ra)return!1;if(!aa)return fa(e),aa=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oa)){if(ua(e))throw pa(),Error(a(418));for(;t;)la(e,t),t=uo(t.nextSibling)}if(fa(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oa=uo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oa=null}}else oa=ra?uo(e.stateNode.nextSibling):null;return!0}function pa(){for(var e=oa;e;)e=uo(e.nextSibling)}function ga(){oa=ra=null,aa=!1}function ha(e){null===ia?ia=[e]:ia.push(e)}var ma=w.ReactCurrentBatchConfig;function ya(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function ba(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function va(e){return(0,e._init)(e._payload)}function wa(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Nu(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Iu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var a=n.type;return a===E?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===R&&va(a)===t.type)?((r=o(t,n.props)).ref=ya(e,t,n),r.return=e,r):((r=Lu(n.type,n.key,n.props,null,e.mode,r)).ref=ya(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zu(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=_u(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Iu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case k:return(n=Lu(t.type,t.key,t.props,null,e.mode,n)).ref=ya(e,null,t),n.return=e,n;case x:return(t=zu(t,e.mode,n)).return=e,t;case R:return d(e,(0,t._init)(t._payload),n)}if(te(t)||_(t))return(t=_u(t,e.mode,n,null)).return=e,t;ba(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===o?u(e,t,n,r):null;case x:return n.key===o?c(e,t,n,r):null;case R:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||_(n))return null!==o?null:f(e,t,n,r,null);ba(e,n)}return null}function g(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case k:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case R:return g(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||_(r))return f(t,e=e.get(n)||null,r,o,null);ba(t,r)}return null}function h(o,a,l,s){for(var u=null,c=null,f=a,h=a=0,m=null;null!==f&&h<l.length;h++){f.index>h?(m=f,f=null):m=f.sibling;var y=p(o,f,l[h],s);if(null===y){null===f&&(f=m);break}e&&f&&null===y.alternate&&t(o,f),a=i(y,a,h),null===c?u=y:c.sibling=y,c=y,f=m}if(h===l.length)return n(o,f),aa&&Jo(o,h),u;if(null===f){for(;h<l.length;h++)null!==(f=d(o,l[h],s))&&(a=i(f,a,h),null===c?u=f:c.sibling=f,c=f);return aa&&Jo(o,h),u}for(f=r(o,f);h<l.length;h++)null!==(m=g(f,o,h,l[h],s))&&(e&&null!==m.alternate&&f.delete(null===m.key?h:m.key),a=i(m,a,h),null===c?u=m:c.sibling=m,c=m);return e&&f.forEach((function(e){return t(o,e)})),aa&&Jo(o,h),u}function m(o,l,s,u){var c=_(s);if("function"!=typeof c)throw Error(a(150));if(null==(s=c.call(s)))throw Error(a(151));for(var f=c=null,h=l,m=l=0,y=null,b=s.next();null!==h&&!b.done;m++,b=s.next()){h.index>m?(y=h,h=null):y=h.sibling;var v=p(o,h,b.value,u);if(null===v){null===h&&(h=y);break}e&&h&&null===v.alternate&&t(o,h),l=i(v,l,m),null===f?c=v:f.sibling=v,f=v,h=y}if(b.done)return n(o,h),aa&&Jo(o,m),c;if(null===h){for(;!b.done;m++,b=s.next())null!==(b=d(o,b.value,u))&&(l=i(b,l,m),null===f?c=b:f.sibling=b,f=b);return aa&&Jo(o,m),c}for(h=r(o,h);!b.done;m++,b=s.next())null!==(b=g(h,o,m,b.value,u))&&(e&&null!==b.alternate&&h.delete(null===b.key?m:b.key),l=i(b,l,m),null===f?c=b:f.sibling=b,f=b);return e&&h.forEach((function(e){return t(o,e)})),aa&&Jo(o,m),c}return function e(r,a,i,s){if("object"==typeof i&&null!==i&&i.type===E&&null===i.key&&(i=i.props.children),"object"==typeof i&&null!==i){switch(i.$$typeof){case k:e:{for(var u=i.key,c=a;null!==c;){if(c.key===u){if((u=i.type)===E){if(7===c.tag){n(r,c.sibling),(a=o(c,i.props.children)).return=r,r=a;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===R&&va(u)===c.type){n(r,c.sibling),(a=o(c,i.props)).ref=ya(r,c,i),a.return=r,r=a;break e}n(r,c);break}t(r,c),c=c.sibling}i.type===E?((a=_u(i.props.children,r.mode,s,i.key)).return=r,r=a):((s=Lu(i.type,i.key,i.props,null,r.mode,s)).ref=ya(r,a,i),s.return=r,r=s)}return l(r);case x:e:{for(c=i.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===i.containerInfo&&a.stateNode.implementation===i.implementation){n(r,a.sibling),(a=o(a,i.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=zu(i,r.mode,s)).return=r,r=a}return l(r);case R:return e(r,a,(c=i._init)(i._payload),s)}if(te(i))return h(r,a,i,s);if(_(i))return m(r,a,i,s);ba(r,i)}return"string"==typeof i&&""!==i||"number"==typeof i?(i=""+i,null!==a&&6===a.tag?(n(r,a.sibling),(a=o(a,i)).return=r,r=a):(n(r,a),(a=Iu(i,r.mode,s)).return=r,r=a),l(r)):n(r,a)}}var ka=wa(!0),xa=wa(!1),Ea=Fo(null),Sa=null,Fa=null,Aa=null;function Ca(){Aa=Fa=Sa=null}function Oa(e){var t=Ea.current;Ao(Ea),e._currentValue=t}function Pa(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ta(e,t){Sa=e,Aa=Fa=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(vl=!0),e.firstContext=null)}function Da(e){var t=e._currentValue;if(Aa!==e)if(e={context:e,memoizedValue:t,next:null},null===Fa){if(null===Sa)throw Error(a(308));Fa=e,Sa.dependencies={lanes:0,firstContext:e}}else Fa=Fa.next=e;return t}var Ra=null;function Na(e){null===Ra?Ra=[e]:Ra.push(e)}function La(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Na(t)):(n.next=o.next,o.next=n),t.interleaved=n,_a(e,r)}function _a(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var ja=!1;function Ia(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function za(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ba(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ma(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Os){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,_a(e,n)}return null===(o=r.interleaved)?(t.next=t,Na(r)):(t.next=o.next,o.next=t),r.interleaved=t,_a(e,n)}function $a(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Ha(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ua(e,t,n,r){var o=e.updateQueue;ja=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,u=s.next;s.next=null,null===i?a=u:i.next=u,i=s;var c=e.alternate;null!==c&&(l=(c=c.updateQueue).lastBaseUpdate)!==i&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s)}if(null!==a){var f=o.baseState;for(i=0,c=u=s=null,l=a;;){var d=l.lane,p=l.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var g=e,h=l;switch(d=t,p=n,h.tag){case 1:if("function"==typeof(g=h.payload)){f=g.call(p,f,d);break e}f=g;break e;case 3:g.flags=-65537&g.flags|128;case 0:if(null==(d="function"==typeof(g=h.payload)?g.call(p,f,d):g))break e;f=I({},f,d);break e;case 2:ja=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(d=o.effects)?o.effects=[l]:d.push(l))}else p={eventTime:p,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(u=c=p,s=f):c=c.next=p,i|=d;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(d=l).next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}if(null===c&&(s=f),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);js|=i,e.lanes=i,e.memoizedState=f}}function Wa(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(a(191,o));o.call(r)}}}var Va={},qa=Fo(Va),Ga=Fo(Va),Ya=Fo(Va);function Qa(e){if(e===Va)throw Error(a(174));return e}function Xa(e,t){switch(Co(Ya,t),Co(Ga,e),Co(qa,Va),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:se(null,"");break;default:t=se(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ao(qa),Co(qa,t)}function Ka(){Ao(qa),Ao(Ga),Ao(Ya)}function Za(e){Qa(Ya.current);var t=Qa(qa.current),n=se(t,e.type);t!==n&&(Co(Ga,e),Co(qa,n))}function Ja(e){Ga.current===e&&(Ao(qa),Ao(Ga))}var ei=Fo(0);function ti(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ni=[];function ri(){for(var e=0;e<ni.length;e++)ni[e]._workInProgressVersionPrimary=null;ni.length=0}var oi=w.ReactCurrentDispatcher,ai=w.ReactCurrentBatchConfig,ii=0,li=null,si=null,ui=null,ci=!1,fi=!1,di=0,pi=0;function gi(){throw Error(a(321))}function hi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function mi(e,t,n,r,o,i){if(ii=i,li=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oi.current=null===e||null===e.memoizedState?Ji:el,e=n(r,o),fi){i=0;do{if(fi=!1,di=0,25<=i)throw Error(a(301));i+=1,ui=si=null,t.updateQueue=null,oi.current=tl,e=n(r,o)}while(fi)}if(oi.current=Zi,t=null!==si&&null!==si.next,ii=0,ui=si=li=null,ci=!1,t)throw Error(a(300));return e}function yi(){var e=0!==di;return di=0,e}function bi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ui?li.memoizedState=ui=e:ui=ui.next=e,ui}function vi(){if(null===si){var e=li.alternate;e=null!==e?e.memoizedState:null}else e=si.next;var t=null===ui?li.memoizedState:ui.next;if(null!==t)ui=t,si=e;else{if(null===e)throw Error(a(310));e={memoizedState:(si=e).memoizedState,baseState:si.baseState,baseQueue:si.baseQueue,queue:si.queue,next:null},null===ui?li.memoizedState=ui=e:ui=ui.next=e}return ui}function wi(e,t){return"function"==typeof t?t(e):t}function ki(e){var t=vi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=si,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var s=l=null,u=null,c=i;do{var f=c.lane;if((ii&f)===f)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(s=u=d,l=r):u=u.next=d,li.lanes|=f,js|=f}c=c.next}while(null!==c&&c!==i);null===u?l=r:u.next=s,lr(r,t.memoizedState)||(vl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,li.lanes|=i,js|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function xi(e){var t=vi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{i=e(i,l.action),l=l.next}while(l!==o);lr(i,t.memoizedState)||(vl=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Ei(){}function Si(e,t){var n=li,r=vi(),o=t(),i=!lr(r.memoizedState,o);if(i&&(r.memoizedState=o,vl=!0),r=r.queue,ji(Ci.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==ui&&1&ui.memoizedState.tag){if(n.flags|=2048,Di(9,Ai.bind(null,n,r,o,t),void 0,null),null===Ps)throw Error(a(349));30&ii||Fi(n,t,o)}return o}function Fi(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=li.updateQueue)?(t={lastEffect:null,stores:null},li.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ai(e,t,n,r){t.value=n,t.getSnapshot=r,Oi(t)&&Pi(e)}function Ci(e,t,n){return n((function(){Oi(t)&&Pi(e)}))}function Oi(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(e){return!0}}function Pi(e){var t=_a(e,1);null!==t&&nu(t,e,1,-1)}function Ti(e){var t=bi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wi,lastRenderedState:e},t.queue=e,e=e.dispatch=Yi.bind(null,li,e),[t.memoizedState,e]}function Di(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=li.updateQueue)?(t={lastEffect:null,stores:null},li.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ri(){return vi().memoizedState}function Ni(e,t,n,r){var o=bi();li.flags|=e,o.memoizedState=Di(1|t,n,void 0,void 0===r?null:r)}function Li(e,t,n,r){var o=vi();r=void 0===r?null:r;var a=void 0;if(null!==si){var i=si.memoizedState;if(a=i.destroy,null!==r&&hi(r,i.deps))return void(o.memoizedState=Di(t,n,a,r))}li.flags|=e,o.memoizedState=Di(1|t,n,a,r)}function _i(e,t){return Ni(8390656,8,e,t)}function ji(e,t){return Li(2048,8,e,t)}function Ii(e,t){return Li(4,2,e,t)}function zi(e,t){return Li(4,4,e,t)}function Bi(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Mi(e,t,n){return n=null!=n?n.concat([e]):null,Li(4,4,Bi.bind(null,t,e),n)}function $i(){}function Hi(e,t){var n=vi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&hi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ui(e,t){var n=vi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&hi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Wi(e,t,n){return 21&ii?(lr(n,t)||(n=ht(),li.lanes|=n,js|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,vl=!0),e.memoizedState=n)}function Vi(e,t){var n=vt;vt=0!==n&&4>n?n:4,e(!0);var r=ai.transition;ai.transition={};try{e(!1),t()}finally{vt=n,ai.transition=r}}function qi(){return vi().memoizedState}function Gi(e,t,n){var r=tu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Qi(e)?Xi(t,n):null!==(n=La(e,t,n,r))&&(nu(n,e,r,eu()),Ki(n,t,r))}function Yi(e,t,n){var r=tu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Qi(e))Xi(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,lr(l,i)){var s=t.interleaved;return null===s?(o.next=o,Na(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=La(e,t,o,r))&&(nu(n,e,r,o=eu()),Ki(n,t,r))}}function Qi(e){var t=e.alternate;return e===li||null!==t&&t===li}function Xi(e,t){fi=ci=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ki(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var Zi={readContext:Da,useCallback:gi,useContext:gi,useEffect:gi,useImperativeHandle:gi,useInsertionEffect:gi,useLayoutEffect:gi,useMemo:gi,useReducer:gi,useRef:gi,useState:gi,useDebugValue:gi,useDeferredValue:gi,useTransition:gi,useMutableSource:gi,useSyncExternalStore:gi,useId:gi,unstable_isNewReconciler:!1},Ji={readContext:Da,useCallback:function(e,t){return bi().memoizedState=[e,void 0===t?null:t],e},useContext:Da,useEffect:_i,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ni(4194308,4,Bi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ni(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ni(4,2,e,t)},useMemo:function(e,t){var n=bi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=bi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Gi.bind(null,li,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},bi().memoizedState=e},useState:Ti,useDebugValue:$i,useDeferredValue:function(e){return bi().memoizedState=e},useTransition:function(){var e=Ti(!1),t=e[0];return e=Vi.bind(null,e[1]),bi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=li,o=bi();if(aa){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===Ps)throw Error(a(349));30&ii||Fi(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,_i(Ci.bind(null,r,i,e),[e]),r.flags|=2048,Di(9,Ai.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=bi(),t=Ps.identifierPrefix;if(aa){var n=Zo;t=":"+t+"R"+(n=(Ko&~(1<<32-it(Ko)-1)).toString(32)+n),0<(n=di++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pi++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},el={readContext:Da,useCallback:Hi,useContext:Da,useEffect:ji,useImperativeHandle:Mi,useInsertionEffect:Ii,useLayoutEffect:zi,useMemo:Ui,useReducer:ki,useRef:Ri,useState:function(){return ki(wi)},useDebugValue:$i,useDeferredValue:function(e){return Wi(vi(),si.memoizedState,e)},useTransition:function(){return[ki(wi)[0],vi().memoizedState]},useMutableSource:Ei,useSyncExternalStore:Si,useId:qi,unstable_isNewReconciler:!1},tl={readContext:Da,useCallback:Hi,useContext:Da,useEffect:ji,useImperativeHandle:Mi,useInsertionEffect:Ii,useLayoutEffect:zi,useMemo:Ui,useReducer:xi,useRef:Ri,useState:function(){return xi(wi)},useDebugValue:$i,useDeferredValue:function(e){var t=vi();return null===si?t.memoizedState=e:Wi(t,si.memoizedState,e)},useTransition:function(){return[xi(wi)[0],vi().memoizedState]},useMutableSource:Ei,useSyncExternalStore:Si,useId:qi,unstable_isNewReconciler:!1};function nl(e,t){if(e&&e.defaultProps){for(var n in t=I({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rl(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:I({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ol={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),a=Ba(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=Ma(e,a,o))&&(nu(t,e,o,r),$a(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),a=Ba(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=Ma(e,a,o))&&(nu(t,e,o,r),$a(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),r=tu(e),o=Ba(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Ma(e,o,r))&&(nu(t,e,r,n),$a(t,e,r))}};function al(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!(t.prototype&&t.prototype.isPureReactComponent&&sr(n,r)&&sr(o,a))}function il(e,t,n){var r=!1,o=Oo,a=t.contextType;return"object"==typeof a&&null!==a?a=Da(a):(o=No(t)?Do:Po.current,a=(r=null!=(r=t.contextTypes))?Ro(e,o):Oo),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ol,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function ll(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ol.enqueueReplaceState(t,t.state,null)}function sl(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Ia(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=Da(a):(a=No(t)?Do:Po.current,o.context=Ro(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(rl(e,t,a,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ol.enqueueReplaceState(o,o.state,null),Ua(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function ul(e,t){try{var n="",r=t;do{n+=$(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function cl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fl(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var dl="function"==typeof WeakMap?WeakMap:Map;function pl(e,t,n){(n=Ba(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ws||(Ws=!0,Vs=r),fl(0,t)},n}function gl(e,t,n){(n=Ba(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){fl(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){fl(0,t),"function"!=typeof r&&(null===qs?qs=new Set([this]):qs.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function hl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new dl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Fu.bind(null,e,t,n),t.then(e,e))}function ml(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function yl(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ba(-1,1)).tag=2,Ma(n,t,1))),n.lanes|=1),e)}var bl=w.ReactCurrentOwner,vl=!1;function wl(e,t,n,r){t.child=null===e?xa(t,null,n,r):ka(t,e.child,n,r)}function kl(e,t,n,r,o){n=n.render;var a=t.ref;return Ta(t,o),r=mi(e,t,n,r,a,o),n=yi(),null===e||vl?(aa&&n&&ta(t),t.flags|=1,wl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wl(e,t,o))}function xl(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||Ru(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Lu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,El(e,t,a,r,o))}if(a=e.child,!(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(i,r)&&e.ref===t.ref)return Wl(e,t,o)}return t.flags|=1,(e=Nu(a,r)).ref=t.ref,e.return=t,t.child=e}function El(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(sr(a,r)&&e.ref===t.ref){if(vl=!1,t.pendingProps=r=a,!(e.lanes&o))return t.lanes=e.lanes,Wl(e,t,o);131072&e.flags&&(vl=!0)}}return Al(e,t,n,r,o)}function Sl(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Co(Ns,Rs),Rs|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Co(Ns,Rs),Rs|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Co(Ns,Rs),Rs|=n;else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Co(Ns,Rs),Rs|=r;return wl(e,t,o,n),t.child}function Fl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Al(e,t,n,r,o){var a=No(n)?Do:Po.current;return a=Ro(t,a),Ta(t,o),n=mi(e,t,n,r,a,o),r=yi(),null===e||vl?(aa&&r&&ta(t),t.flags|=1,wl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wl(e,t,o))}function Cl(e,t,n,r,o){if(No(n)){var a=!0;Io(t)}else a=!1;if(Ta(t,o),null===t.stateNode)Ul(e,t),il(t,n,r),sl(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var s=i.context,u=n.contextType;u="object"==typeof u&&null!==u?Da(u):Ro(t,u=No(n)?Do:Po.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;f||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==r||s!==u)&&ll(t,i,r,u),ja=!1;var d=t.memoizedState;i.state=d,Ua(t,r,i,o),s=t.memoizedState,l!==r||d!==s||To.current||ja?("function"==typeof c&&(rl(t,n,c,r),s=t.memoizedState),(l=ja||al(t,n,l,r,d,s,u))?(f||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=u,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,za(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:nl(t.type,l),i.props=u,f=t.pendingProps,d=i.context,s="object"==typeof(s=n.contextType)&&null!==s?Da(s):Ro(t,s=No(n)?Do:Po.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==f||d!==s)&&ll(t,i,r,s),ja=!1,d=t.memoizedState,i.state=d,Ua(t,r,i,o);var g=t.memoizedState;l!==f||d!==g||To.current||ja?("function"==typeof p&&(rl(t,n,p,r),g=t.memoizedState),(u=ja||al(t,n,u,r,d,g,s)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,g,s),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,g,s)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),i.props=r,i.state=g,i.context=s,r=u):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Ol(e,t,n,r,a,o)}function Ol(e,t,n,r,o,a){Fl(e,t);var i=!!(128&t.flags);if(!r&&!i)return o&&zo(t,n,!1),Wl(e,t,a);r=t.stateNode,bl.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=ka(t,e.child,null,a),t.child=ka(t,null,l,a)):wl(e,t,l,a),t.memoizedState=r.state,o&&zo(t,n,!0),t.child}function Pl(e){var t=e.stateNode;t.pendingContext?_o(0,t.pendingContext,t.pendingContext!==t.context):t.context&&_o(0,t.context,!1),Xa(e,t.containerInfo)}function Tl(e,t,n,r,o){return ga(),ha(o),t.flags|=256,wl(e,t,n,r),t.child}var Dl,Rl,Nl,Ll,_l={dehydrated:null,treeContext:null,retryLane:0};function jl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Il(e,t,n){var r,o=t.pendingProps,i=ei.current,l=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&!!(2&i)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Co(ei,1&i),null===e)return ca(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=o.children,e=o.fallback,l?(o=t.mode,l=t.child,s={mode:"hidden",children:s},1&o||null===l?l=ju(s,o,0,null):(l.childLanes=0,l.pendingProps=s),e=_u(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=jl(n),t.memoizedState=_l,e):zl(t,s));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,l){if(n)return 256&t.flags?(t.flags&=-257,Bl(e,t,l,r=cl(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=ju({mode:"visible",children:r.children},o,0,null),(i=_u(i,o,l,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,1&t.mode&&ka(t,e.child,null,l),t.child.memoizedState=jl(l),t.memoizedState=_l,i);if(!(1&t.mode))return Bl(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,Bl(e,t,l,r=cl(i=Error(a(419)),r,void 0))}if(s=!!(l&e.childLanes),vl||s){if(null!==(r=Ps)){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=o&(r.suspendedLanes|l)?0:o)&&o!==i.retryLane&&(i.retryLane=o,_a(e,o),nu(r,e,o,-1))}return hu(),Bl(e,t,l,r=cl(Error(a(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Cu.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,oa=uo(o.nextSibling),ra=t,aa=!0,ia=null,null!==e&&(Yo[Qo++]=Ko,Yo[Qo++]=Zo,Yo[Qo++]=Xo,Ko=e.id,Zo=e.overflow,Xo=t),(t=zl(t,r.children)).flags|=4096,t)}(e,t,s,o,r,i,n);if(l){l=o.fallback,s=t.mode,r=(i=e.child).sibling;var u={mode:"hidden",children:o.children};return 1&s||t.child===i?(o=Nu(i,u)).subtreeFlags=14680064&i.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null),null!==r?l=Nu(r,l):(l=_u(l,s,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,s=null===(s=e.child.memoizedState)?jl(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=_l,o}return e=(l=e.child).sibling,o=Nu(l,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function zl(e,t){return(t=ju({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bl(e,t,n,r){return null!==r&&ha(r),ka(t,e.child,null,n),(e=zl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ml(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Pa(e.return,t,n)}function $l(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function Hl(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(wl(e,t,r.children,n),2&(r=ei.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ml(e,n,t);else if(19===e.tag)Ml(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Co(ei,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ti(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),$l(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ti(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}$l(t,!0,n,null,a);break;case"together":$l(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ul(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Wl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),js|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Nu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Nu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Vl(e,t){if(!aa)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ql(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Gl(e,t,n){var r=t.pendingProps;switch(na(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ql(t),null;case 1:case 17:return No(t.type)&&Lo(),ql(t),null;case 3:return r=t.stateNode,Ka(),Ao(To),Ao(Po),ri(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(da(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ia&&(iu(ia),ia=null))),Rl(e,t),ql(t),null;case 5:Ja(t);var o=Qa(Ya.current);if(n=t.type,null!==e&&null!=t.stateNode)Nl(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return ql(t),null}if(e=Qa(qa.current),da(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[po]=t,r[go]=i,e=!!(1&t.mode),n){case"dialog":Br("cancel",r),Br("close",r);break;case"iframe":case"object":case"embed":Br("load",r);break;case"video":case"audio":for(o=0;o<_r.length;o++)Br(_r[o],r);break;case"source":Br("error",r);break;case"img":case"image":case"link":Br("error",r),Br("load",r);break;case"details":Br("toggle",r);break;case"input":X(r,i),Br("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Br("invalid",r);break;case"textarea":oe(r,i),Br("invalid",r)}for(var s in be(n,i),o=null,i)if(i.hasOwnProperty(s)){var u=i[s];"children"===s?"string"==typeof u?r.textContent!==u&&(!0!==i.suppressHydrationWarning&&Zr(r.textContent,u,e),o=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==i.suppressHydrationWarning&&Zr(r.textContent,u,e),o=["children",""+u]):l.hasOwnProperty(s)&&null!=u&&"onScroll"===s&&Br("scroll",r)}switch(n){case"input":q(r),J(r,i,!0);break;case"textarea":q(r),ie(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=Jr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{s=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[po]=t,e[go]=r,Dl(e,t,!1,!1),t.stateNode=e;e:{switch(s=ve(n,r),n){case"dialog":Br("cancel",e),Br("close",e),o=r;break;case"iframe":case"object":case"embed":Br("load",e),o=r;break;case"video":case"audio":for(o=0;o<_r.length;o++)Br(_r[o],e);o=r;break;case"source":Br("error",e),o=r;break;case"img":case"image":case"link":Br("error",e),Br("load",e),o=r;break;case"details":Br("toggle",e),o=r;break;case"input":X(e,r),o=Q(e,r),Br("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=I({},r,{value:void 0}),Br("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Br("invalid",e)}for(i in be(n,o),u=o)if(u.hasOwnProperty(i)){var c=u[i];"style"===i?me(e,c):"dangerouslySetInnerHTML"===i?null!=(c=c?c.__html:void 0)&&fe(e,c):"children"===i?"string"==typeof c?("textarea"!==n||""!==c)&&de(e,c):"number"==typeof c&&de(e,""+c):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(l.hasOwnProperty(i)?null!=c&&"onScroll"===i&&Br("scroll",e):null!=c&&v(e,i,c,s))}switch(n){case"input":q(e),J(e,r,!1);break;case"textarea":q(e),ie(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?ne(e,!!r.multiple,i,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return ql(t),null;case 6:if(e&&null!=t.stateNode)Ll(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));if(n=Qa(Ya.current),Qa(qa.current),da(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(i=r.nodeValue!==n)&&null!==(e=ra))switch(e.tag){case 3:Zr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zr(r.nodeValue,n,!!(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return ql(t),null;case 13:if(Ao(ei),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(aa&&null!==oa&&1&t.mode&&!(128&t.flags))pa(),ga(),t.flags|=98560,i=!1;else if(i=da(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(a(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(a(317));i[po]=t}else ga(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ql(t),i=!1}else null!==ia&&(iu(ia),ia=null),i=!0;if(!i)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ei.current?0===Ls&&(Ls=3):hu())),null!==t.updateQueue&&(t.flags|=4),ql(t),null);case 4:return Ka(),Rl(e,t),null===e&&Hr(t.stateNode.containerInfo),ql(t),null;case 10:return Oa(t.type._context),ql(t),null;case 19:if(Ao(ei),null===(i=t.memoizedState))return ql(t),null;if(r=!!(128&t.flags),null===(s=i.rendering))if(r)Vl(i,!1);else{if(0!==Ls||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(s=ti(e))){for(t.flags|=128,Vl(i,!1),null!==(r=s.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(s=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Co(ei,1&ei.current|2),t.child}e=e.sibling}null!==i.tail&&Ke()>Hs&&(t.flags|=128,r=!0,Vl(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ti(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Vl(i,!0),null===i.tail&&"hidden"===i.tailMode&&!s.alternate&&!aa)return ql(t),null}else 2*Ke()-i.renderingStartTime>Hs&&1073741824!==n&&(t.flags|=128,r=!0,Vl(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=i.last)?n.sibling=s:t.child=s,i.last=s)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ke(),t.sibling=null,n=ei.current,Co(ei,r?1&n|2:1&n),t):(ql(t),null);case 22:case 23:return fu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Rs)&&(ql(t),6&t.subtreeFlags&&(t.flags|=8192)):ql(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Yl(e,t){switch(na(t),t.tag){case 1:return No(t.type)&&Lo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ka(),Ao(To),Ao(Po),ri(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ja(t),null;case 13:if(Ao(ei),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));ga()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ao(ei),null;case 4:return Ka(),null;case 10:return Oa(t.type._context),null;case 22:case 23:return fu(),null;default:return null}}Dl=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Rl=function(){},Nl=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Qa(qa.current);var a,i=null;switch(n){case"input":o=Q(e,o),r=Q(e,r),i=[];break;case"select":o=I({},o,{value:void 0}),r=I({},r,{value:void 0}),i=[];break;case"textarea":o=re(e,o),r=re(e,r),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(c in be(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var s=o[c];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(l.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var u=r[c];if(s=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&u!==s&&(null!=u||null!=s))if("style"===c)if(s){for(a in s)!s.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&s[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(i||(i=[]),i.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,s=s?s.__html:void 0,null!=u&&s!==u&&(i=i||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(i=i||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(l.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Br("scroll",e),i||s===u||(i=[])):(i=i||[]).push(c,u))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},Ll=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ql=!1,Xl=!1,Kl="function"==typeof WeakSet?WeakSet:Set,Zl=null;function Jl(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Su(e,t,n)}else n.current=null}function es(e,t,n){try{n()}catch(n){Su(e,t,n)}}var ts=!1;function ns(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&es(t,n,a)}o=o.next}while(o!==r)}}function rs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function os(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function as(e){var t=e.alternate;null!==t&&(e.alternate=null,as(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[po],delete t[go],delete t[mo],delete t[yo],delete t[bo]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function is(e){return 5===e.tag||3===e.tag||4===e.tag}function ls(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||is(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ss(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(ss(e,t,n),e=e.sibling;null!==e;)ss(e,t,n),e=e.sibling}function us(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(us(e,t,n),e=e.sibling;null!==e;)us(e,t,n),e=e.sibling}var cs=null,fs=!1;function ds(e,t,n){for(n=n.child;null!==n;)ps(e,t,n),n=n.sibling}function ps(e,t,n){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Xl||Jl(n,t);case 6:var r=cs,o=fs;cs=null,ds(e,t,n),fs=o,null!==(cs=r)&&(fs?(e=cs,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cs.removeChild(n.stateNode));break;case 18:null!==cs&&(fs?(e=cs,n=n.stateNode,8===e.nodeType?so(e.parentNode,n):1===e.nodeType&&so(e,n),Ht(e)):so(cs,n.stateNode));break;case 4:r=cs,o=fs,cs=n.stateNode.containerInfo,fs=!0,ds(e,t,n),cs=r,fs=o;break;case 0:case 11:case 14:case 15:if(!Xl&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(2&a||4&a)&&es(n,t,i),o=o.next}while(o!==r)}ds(e,t,n);break;case 1:if(!Xl&&(Jl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Su(n,t,e)}ds(e,t,n);break;case 21:ds(e,t,n);break;case 22:1&n.mode?(Xl=(r=Xl)||null!==n.memoizedState,ds(e,t,n),Xl=r):ds(e,t,n);break;default:ds(e,t,n)}}function gs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Kl),t.forEach((function(t){var r=Ou.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function hs(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:cs=s.stateNode,fs=!1;break e;case 3:case 4:cs=s.stateNode.containerInfo,fs=!0;break e}s=s.return}if(null===cs)throw Error(a(160));ps(i,l,o),cs=null,fs=!1;var u=o.alternate;null!==u&&(u.return=null),o.return=null}catch(e){Su(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ms(t,e),t=t.sibling}function ms(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(hs(t,e),ys(e),4&r){try{ns(3,e,e.return),rs(3,e)}catch(t){Su(e,e.return,t)}try{ns(5,e,e.return)}catch(t){Su(e,e.return,t)}}break;case 1:hs(t,e),ys(e),512&r&&null!==n&&Jl(n,n.return);break;case 5:if(hs(t,e),ys(e),512&r&&null!==n&&Jl(n,n.return),32&e.flags){var o=e.stateNode;try{de(o,"")}catch(t){Su(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,l=null!==n?n.memoizedProps:i,s=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===s&&"radio"===i.type&&null!=i.name&&K(o,i),ve(s,l);var c=ve(s,i);for(l=0;l<u.length;l+=2){var f=u[l],d=u[l+1];"style"===f?me(o,d):"dangerouslySetInnerHTML"===f?fe(o,d):"children"===f?de(o,d):v(o,f,d,c)}switch(s){case"input":Z(o,i);break;case"textarea":ae(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var g=i.value;null!=g?ne(o,!!i.multiple,g,!1):p!==!!i.multiple&&(null!=i.defaultValue?ne(o,!!i.multiple,i.defaultValue,!0):ne(o,!!i.multiple,i.multiple?[]:"",!1))}o[go]=i}catch(t){Su(e,e.return,t)}}break;case 6:if(hs(t,e),ys(e),4&r){if(null===e.stateNode)throw Error(a(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){Su(e,e.return,t)}}break;case 3:if(hs(t,e),ys(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(t){Su(e,e.return,t)}break;case 4:default:hs(t,e),ys(e);break;case 13:hs(t,e),ys(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||($s=Ke())),4&r&&gs(e);break;case 22:if(f=null!==n&&null!==n.memoizedState,1&e.mode?(Xl=(c=Xl)||f,hs(t,e),Xl=c):hs(t,e),ys(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!f&&1&e.mode)for(Zl=e,f=e.child;null!==f;){for(d=Zl=f;null!==Zl;){switch(g=(p=Zl).child,p.tag){case 0:case 11:case 14:case 15:ns(4,p,p.return);break;case 1:Jl(p,p.return);var h=p.stateNode;if("function"==typeof h.componentWillUnmount){r=p,n=p.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){Su(r,n,e)}}break;case 5:Jl(p,p.return);break;case 22:if(null!==p.memoizedState){ks(d);continue}}null!==g?(g.return=p,Zl=g):ks(d)}f=f.sibling}e:for(f=null,d=e;;){if(5===d.tag){if(null===f){f=d;try{o=d.stateNode,c?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(s=d.stateNode,l=null!=(u=d.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,s.style.display=he("display",l))}catch(t){Su(e,e.return,t)}}}else if(6===d.tag){if(null===f)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){Su(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:hs(t,e),ys(e),4&r&&gs(e);case 21:}}function ys(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(is(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(de(o,""),r.flags&=-33),us(e,ls(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;ss(e,ls(e),i);break;default:throw Error(a(161))}}catch(t){Su(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bs(e,t,n){Zl=e,vs(e,t,n)}function vs(e,t,n){for(var r=!!(1&e.mode);null!==Zl;){var o=Zl,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||Ql;if(!i){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Xl;l=Ql;var u=Xl;if(Ql=i,(Xl=s)&&!u)for(Zl=o;null!==Zl;)s=(i=Zl).child,22===i.tag&&null!==i.memoizedState?xs(o):null!==s?(s.return=i,Zl=s):xs(o);for(;null!==a;)Zl=a,vs(a,t,n),a=a.sibling;Zl=o,Ql=l,Xl=u}ws(e)}else 8772&o.subtreeFlags&&null!==a?(a.return=o,Zl=a):ws(e)}}function ws(e){for(;null!==Zl;){var t=Zl;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Xl||rs(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Xl)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:nl(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Wa(t,i,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Wa(t,l,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&Ht(d)}}}break;default:throw Error(a(163))}Xl||512&t.flags&&os(t)}catch(e){Su(t,t.return,e)}}if(t===e){Zl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zl=n;break}Zl=t.return}}function ks(e){for(;null!==Zl;){var t=Zl;if(t===e){Zl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zl=n;break}Zl=t.return}}function xs(e){for(;null!==Zl;){var t=Zl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rs(4,t)}catch(e){Su(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Su(t,o,e)}}var a=t.return;try{os(t)}catch(e){Su(t,a,e)}break;case 5:var i=t.return;try{os(t)}catch(e){Su(t,i,e)}}}catch(e){Su(t,t.return,e)}if(t===e){Zl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Zl=l;break}Zl=t.return}}var Es,Ss=Math.ceil,Fs=w.ReactCurrentDispatcher,As=w.ReactCurrentOwner,Cs=w.ReactCurrentBatchConfig,Os=0,Ps=null,Ts=null,Ds=0,Rs=0,Ns=Fo(0),Ls=0,_s=null,js=0,Is=0,zs=0,Bs=null,Ms=null,$s=0,Hs=1/0,Us=null,Ws=!1,Vs=null,qs=null,Gs=!1,Ys=null,Qs=0,Xs=0,Ks=null,Zs=-1,Js=0;function eu(){return 6&Os?Ke():-1!==Zs?Zs:Zs=Ke()}function tu(e){return 1&e.mode?2&Os&&0!==Ds?Ds&-Ds:null!==ma.transition?(0===Js&&(Js=ht()),Js):0!==(e=vt)?e:e=void 0===(e=window.event)?16:Xt(e.type):1}function nu(e,t,n,r){if(50<Xs)throw Xs=0,Ks=null,Error(a(185));yt(e,n,r),2&Os&&e===Ps||(e===Ps&&(!(2&Os)&&(Is|=n),4===Ls&&lu(e,Ds)),ru(e,r),1===n&&0===Os&&!(1&t.mode)&&(Hs=Ke()+500,Mo&&Uo()))}function ru(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-it(a),l=1<<i,s=o[i];-1===s?l&n&&!(l&r)||(o[i]=pt(l,t)):s<=t&&(e.expiredLanes|=l),a&=~l}}(e,t);var r=dt(e,e===Ps?Ds:0);if(0===r)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){Mo=!0,Ho(e)}(su.bind(null,e)):Ho(su.bind(null,e)),io((function(){!(6&Os)&&Uo()})),n=null;else{switch(wt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Pu(n,ou.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ou(e,t){if(Zs=-1,Js=0,6&Os)throw Error(a(327));var n=e.callbackNode;if(xu()&&e.callbackNode!==n)return null;var r=dt(e,e===Ps?Ds:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=mu(e,r);else{t=r;var o=Os;Os|=2;var i=gu();for(Ps===e&&Ds===t||(Us=null,Hs=Ke()+500,du(e,t));;)try{bu();break}catch(t){pu(e,t)}Ca(),Fs.current=i,Os=o,null!==Ts?t=0:(Ps=null,Ds=0,t=Ls)}if(0!==t){if(2===t&&0!==(o=gt(e))&&(r=o,t=au(e,o)),1===t)throw n=_s,du(e,0),lu(e,r),ru(e,Ke()),n;if(6===t)lu(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!lr(a(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=mu(e,r),2===t&&(i=gt(e),0!==i&&(r=i,t=au(e,i))),1!==t)))throw n=_s,du(e,0),lu(e,r),ru(e,Ke()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:ku(e,Ms,Us);break;case 3:if(lu(e,r),(130023424&r)===r&&10<(t=$s+500-Ke())){if(0!==dt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){eu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(ku.bind(null,e,Ms,Us),t);break}ku(e,Ms,Us);break;case 4:if(lu(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-it(r);i=1<<l,(l=t[l])>o&&(o=l),r&=~i}if(r=o,10<(r=(120>(r=Ke()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ss(r/1960))-r)){e.timeoutHandle=ro(ku.bind(null,e,Ms,Us),r);break}ku(e,Ms,Us);break;default:throw Error(a(329))}}}return ru(e,Ke()),e.callbackNode===n?ou.bind(null,e):null}function au(e,t){var n=Bs;return e.current.memoizedState.isDehydrated&&(du(e,t).flags|=256),2!==(e=mu(e,t))&&(t=Ms,Ms=n,null!==t&&iu(t)),e}function iu(e){null===Ms?Ms=e:Ms.push.apply(Ms,e)}function lu(e,t){for(t&=~zs,t&=~Is,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function su(e){if(6&Os)throw Error(a(327));xu();var t=dt(e,0);if(!(1&t))return ru(e,Ke()),null;var n=mu(e,t);if(0!==e.tag&&2===n){var r=gt(e);0!==r&&(t=r,n=au(e,r))}if(1===n)throw n=_s,du(e,0),lu(e,t),ru(e,Ke()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ku(e,Ms,Us),ru(e,Ke()),null}function uu(e,t){var n=Os;Os|=1;try{return e(t)}finally{0===(Os=n)&&(Hs=Ke()+500,Mo&&Uo())}}function cu(e){null!==Ys&&0===Ys.tag&&!(6&Os)&&xu();var t=Os;Os|=1;var n=Cs.transition,r=vt;try{if(Cs.transition=null,vt=1,e)return e()}finally{vt=r,Cs.transition=n,!(6&(Os=t))&&Uo()}}function fu(){Rs=Ns.current,Ao(Ns)}function du(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Ts)for(n=Ts.return;null!==n;){var r=n;switch(na(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Lo();break;case 3:Ka(),Ao(To),Ao(Po),ri();break;case 5:Ja(r);break;case 4:Ka();break;case 13:case 19:Ao(ei);break;case 10:Oa(r.type._context);break;case 22:case 23:fu()}n=n.return}if(Ps=e,Ts=e=Nu(e.current,null),Ds=Rs=t,Ls=0,_s=null,zs=Is=js=0,Ms=Bs=null,null!==Ra){for(t=0;t<Ra.length;t++)if(null!==(r=(n=Ra[t]).interleaved)){n.interleaved=null;var o=r.next,a=n.pending;if(null!==a){var i=a.next;a.next=o,r.next=i}n.pending=r}Ra=null}return e}function pu(e,t){for(;;){var n=Ts;try{if(Ca(),oi.current=Zi,ci){for(var r=li.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ci=!1}if(ii=0,ui=si=li=null,fi=!1,di=0,As.current=null,null===n||null===n.return){Ls=1,_s=t,Ts=null;break}e:{var i=e,l=n.return,s=n,u=t;if(t=Ds,s.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,f=s,d=f.tag;if(!(1&f.mode||0!==d&&11!==d&&15!==d)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var g=ml(l);if(null!==g){g.flags&=-257,yl(g,l,s,0,t),1&g.mode&&hl(i,c,t),u=c;var h=(t=g).updateQueue;if(null===h){var m=new Set;m.add(u),t.updateQueue=m}else h.add(u);break e}if(!(1&t)){hl(i,c,t),hu();break e}u=Error(a(426))}else if(aa&&1&s.mode){var y=ml(l);if(null!==y){!(65536&y.flags)&&(y.flags|=256),yl(y,l,s,0,t),ha(ul(u,s));break e}}i=u=ul(u,s),4!==Ls&&(Ls=2),null===Bs?Bs=[i]:Bs.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Ha(i,pl(0,u,t));break e;case 1:s=u;var b=i.type,v=i.stateNode;if(!(128&i.flags||"function"!=typeof b.getDerivedStateFromError&&(null===v||"function"!=typeof v.componentDidCatch||null!==qs&&qs.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t,Ha(i,gl(i,s,t));break e}}i=i.return}while(null!==i)}wu(n)}catch(e){t=e,Ts===n&&null!==n&&(Ts=n=n.return);continue}break}}function gu(){var e=Fs.current;return Fs.current=Zi,null===e?Zi:e}function hu(){0!==Ls&&3!==Ls&&2!==Ls||(Ls=4),null===Ps||!(268435455&js)&&!(268435455&Is)||lu(Ps,Ds)}function mu(e,t){var n=Os;Os|=2;var r=gu();for(Ps===e&&Ds===t||(Us=null,du(e,t));;)try{yu();break}catch(t){pu(e,t)}if(Ca(),Os=n,Fs.current=r,null!==Ts)throw Error(a(261));return Ps=null,Ds=0,Ls}function yu(){for(;null!==Ts;)vu(Ts)}function bu(){for(;null!==Ts&&!Qe();)vu(Ts)}function vu(e){var t=Es(e.alternate,e,Rs);e.memoizedProps=e.pendingProps,null===t?wu(e):Ts=t,As.current=null}function wu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Yl(n,t)))return n.flags&=32767,void(Ts=n);if(null===e)return Ls=6,void(Ts=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Gl(n,t,Rs)))return void(Ts=n);if(null!==(t=t.sibling))return void(Ts=t);Ts=t=e}while(null!==t);0===Ls&&(Ls=5)}function ku(e,t,n){var r=vt,o=Cs.transition;try{Cs.transition=null,vt=1,function(e,t,n,r){do{xu()}while(null!==Ys);if(6&Os)throw Error(a(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-it(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,i),e===Ps&&(Ts=Ps=null,Ds=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Gs||(Gs=!0,Pu(tt,(function(){return xu(),null}))),i=!!(15990&n.flags),15990&n.subtreeFlags||i){i=Cs.transition,Cs.transition=null;var l=vt;vt=1;var s=Os;Os|=4,As.current=null,function(e,t){if(eo=Wt,pr(e=dr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var l=0,s=-1,u=-1,c=0,f=0,d=e,p=null;t:for(;;){for(var g;d!==n||0!==o&&3!==d.nodeType||(s=l+o),d!==i||0!==r&&3!==d.nodeType||(u=l+r),3===d.nodeType&&(l+=d.nodeValue.length),null!==(g=d.firstChild);)p=d,d=g;for(;;){if(d===e)break t;if(p===n&&++c===o&&(s=l),p===i&&++f===r&&(u=l),null!==(g=d.nextSibling))break;p=(d=p).parentNode}d=g}n=-1===s||-1===u?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Wt=!1,Zl=t;null!==Zl;)if(e=(t=Zl).child,1028&t.subtreeFlags&&null!==e)e.return=t,Zl=e;else for(;null!==Zl;){t=Zl;try{var h=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var m=h.memoizedProps,y=h.memoizedState,b=t.stateNode,v=b.getSnapshotBeforeUpdate(t.elementType===t.type?m:nl(t.type,m),y);b.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(a(163))}}catch(e){Su(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Zl=e;break}Zl=t.return}h=ts,ts=!1}(e,n),ms(n,e),gr(to),Wt=!!eo,to=eo=null,e.current=n,bs(n,e,o),Xe(),Os=s,vt=l,Cs.transition=i}else e.current=n;if(Gs&&(Gs=!1,Ys=e,Qs=o),0===(i=e.pendingLanes)&&(qs=null),function(e){if(at&&"function"==typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),ru(e,Ke()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Ws)throw Ws=!1,e=Vs,Vs=null,e;!!(1&Qs)&&0!==e.tag&&xu(),1&(i=e.pendingLanes)?e===Ks?Xs++:(Xs=0,Ks=e):Xs=0,Uo()}(e,t,n,r)}finally{Cs.transition=o,vt=r}return null}function xu(){if(null!==Ys){var e=wt(Qs),t=Cs.transition,n=vt;try{if(Cs.transition=null,vt=16>e?16:e,null===Ys)var r=!1;else{if(e=Ys,Ys=null,Qs=0,6&Os)throw Error(a(331));var o=Os;for(Os|=4,Zl=e.current;null!==Zl;){var i=Zl,l=i.child;if(16&Zl.flags){var s=i.deletions;if(null!==s){for(var u=0;u<s.length;u++){var c=s[u];for(Zl=c;null!==Zl;){var f=Zl;switch(f.tag){case 0:case 11:case 15:ns(8,f,i)}var d=f.child;if(null!==d)d.return=f,Zl=d;else for(;null!==Zl;){var p=(f=Zl).sibling,g=f.return;if(as(f),f===c){Zl=null;break}if(null!==p){p.return=g,Zl=p;break}Zl=g}}}var h=i.alternate;if(null!==h){var m=h.child;if(null!==m){h.child=null;do{var y=m.sibling;m.sibling=null,m=y}while(null!==m)}}Zl=i}}if(2064&i.subtreeFlags&&null!==l)l.return=i,Zl=l;else e:for(;null!==Zl;){if(2048&(i=Zl).flags)switch(i.tag){case 0:case 11:case 15:ns(9,i,i.return)}var b=i.sibling;if(null!==b){b.return=i.return,Zl=b;break e}Zl=i.return}}var v=e.current;for(Zl=v;null!==Zl;){var w=(l=Zl).child;if(2064&l.subtreeFlags&&null!==w)w.return=l,Zl=w;else e:for(l=v;null!==Zl;){if(2048&(s=Zl).flags)try{switch(s.tag){case 0:case 11:case 15:rs(9,s)}}catch(e){Su(s,s.return,e)}if(s===l){Zl=null;break e}var k=s.sibling;if(null!==k){k.return=s.return,Zl=k;break e}Zl=s.return}}if(Os=o,Uo(),at&&"function"==typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{vt=n,Cs.transition=t}}return!1}function Eu(e,t,n){e=Ma(e,t=pl(0,t=ul(n,t),1),1),t=eu(),null!==e&&(yt(e,1,t),ru(e,t))}function Su(e,t,n){if(3===e.tag)Eu(e,e,n);else for(;null!==t;){if(3===t.tag){Eu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===qs||!qs.has(r))){t=Ma(t,e=gl(t,e=ul(n,e),1),1),e=eu(),null!==t&&(yt(t,1,e),ru(t,e));break}}t=t.return}}function Fu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,Ps===e&&(Ds&n)===n&&(4===Ls||3===Ls&&(130023424&Ds)===Ds&&500>Ke()-$s?du(e,0):zs|=n),ru(e,t)}function Au(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=eu();null!==(e=_a(e,t))&&(yt(e,t,n),ru(e,n))}function Cu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Au(e,n)}function Ou(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),Au(e,n)}function Pu(e,t){return Ge(e,t)}function Tu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Du(e,t,n,r){return new Tu(e,t,n,r)}function Ru(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Nu(e,t){var n=e.alternate;return null===n?((n=Du(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Lu(e,t,n,r,o,i){var l=2;if(r=e,"function"==typeof e)Ru(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case E:return _u(n.children,o,i,t);case S:l=8,o|=8;break;case F:return(e=Du(12,n,t,2|o)).elementType=F,e.lanes=i,e;case P:return(e=Du(13,n,t,o)).elementType=P,e.lanes=i,e;case T:return(e=Du(19,n,t,o)).elementType=T,e.lanes=i,e;case N:return ju(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case A:l=10;break e;case C:l=9;break e;case O:l=11;break e;case D:l=14;break e;case R:l=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Du(l,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function _u(e,t,n,r){return(e=Du(7,e,r,t)).lanes=n,e}function ju(e,t,n,r){return(e=Du(22,e,r,t)).elementType=N,e.lanes=n,e.stateNode={isHidden:!1},e}function Iu(e,t,n){return(e=Du(6,e,null,t)).lanes=n,e}function zu(e,t,n){return(t=Du(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bu(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Mu(e,t,n,r,o,a,i,l,s){return e=new Bu(e,t,n,l,s),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Du(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ia(a),e}function $u(e){if(!e)return Oo;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(No(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(No(n))return jo(e,n,t)}return t}function Hu(e,t,n,r,o,a,i,l,s){return(e=Mu(n,r,!0,e,0,a,0,l,s)).context=$u(null),n=e.current,(a=Ba(r=eu(),o=tu(n))).callback=null!=t?t:null,Ma(n,a,o),e.current.lanes=o,yt(e,o,r),ru(e,r),e}function Uu(e,t,n,r){var o=t.current,a=eu(),i=tu(o);return n=$u(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ba(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ma(o,t,i))&&(nu(e,o,i,a),$a(e,o,i)),i}function Wu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Vu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qu(e,t){Vu(e,t),(e=e.alternate)&&Vu(e,t)}Es=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||To.current)vl=!0;else{if(!(e.lanes&n||128&t.flags))return vl=!1,function(e,t,n){switch(t.tag){case 3:Pl(t),ga();break;case 5:Za(t);break;case 1:No(t.type)&&Io(t);break;case 4:Xa(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Co(Ea,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Co(ei,1&ei.current),t.flags|=128,null):n&t.child.childLanes?Il(e,t,n):(Co(ei,1&ei.current),null!==(e=Wl(e,t,n))?e.sibling:null);Co(ei,1&ei.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Hl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Co(ei,ei.current),r)break;return null;case 22:case 23:return t.lanes=0,Sl(e,t,n)}return Wl(e,t,n)}(e,t,n);vl=!!(131072&e.flags)}else vl=!1,aa&&1048576&t.flags&&ea(t,Go,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ul(e,t),e=t.pendingProps;var o=Ro(t,Po.current);Ta(t,n),o=mi(null,t,r,e,o,n);var i=yi();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,No(r)?(i=!0,Io(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ia(t),o.updater=ol,t.stateNode=o,o._reactInternals=t,sl(t,r,e,n),t=Ol(null,t,r,!0,i,n)):(t.tag=0,aa&&i&&ta(t),wl(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ul(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Ru(e)?1:0;if(null!=e){if((e=e.$$typeof)===O)return 11;if(e===D)return 14}return 2}(r),e=nl(r,e),o){case 0:t=Al(null,t,r,e,n);break e;case 1:t=Cl(null,t,r,e,n);break e;case 11:t=kl(null,t,r,e,n);break e;case 14:t=xl(null,t,r,nl(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Al(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 1:return r=t.type,o=t.pendingProps,Cl(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 3:e:{if(Pl(t),null===e)throw Error(a(387));r=t.pendingProps,o=(i=t.memoizedState).element,za(e,t),Ua(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Tl(e,t,r,n,o=ul(Error(a(423)),t));break e}if(r!==o){t=Tl(e,t,r,n,o=ul(Error(a(424)),t));break e}for(oa=uo(t.stateNode.containerInfo.firstChild),ra=t,aa=!0,ia=null,n=xa(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ga(),r===o){t=Wl(e,t,n);break e}wl(e,t,r,n)}t=t.child}return t;case 5:return Za(t),null===e&&ca(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,l=o.children,no(r,o)?l=null:null!==i&&no(r,i)&&(t.flags|=32),Fl(e,t),wl(e,t,l,n),t.child;case 6:return null===e&&ca(t),null;case 13:return Il(e,t,n);case 4:return Xa(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ka(t,null,r,n):wl(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,kl(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 7:return wl(e,t,t.pendingProps,n),t.child;case 8:case 12:return wl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,Co(Ea,r._currentValue),r._currentValue=l,null!==i)if(lr(i.value,l)){if(i.children===o.children&&!To.current){t=Wl(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var s=i.dependencies;if(null!==s){l=i.child;for(var u=s.firstContext;null!==u;){if(u.context===r){if(1===i.tag){(u=Ba(-1,n&-n)).tag=2;var c=i.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?u.next=u:(u.next=f.next,f.next=u),c.pending=u}}i.lanes|=n,null!==(u=i.alternate)&&(u.lanes|=n),Pa(i.return,n,t),s.lanes|=n;break}u=u.next}}else if(10===i.tag)l=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(l=i.return))throw Error(a(341));l.lanes|=n,null!==(s=l.alternate)&&(s.lanes|=n),Pa(l,n,t),l=i.sibling}else l=i.child;if(null!==l)l.return=i;else for(l=i;null!==l;){if(l===t){l=null;break}if(null!==(i=l.sibling)){i.return=l.return,l=i;break}l=l.return}i=l}wl(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ta(t,n),r=r(o=Da(o)),t.flags|=1,wl(e,t,r,n),t.child;case 14:return o=nl(r=t.type,t.pendingProps),xl(e,t,r,o=nl(r.type,o),n);case 15:return El(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nl(r,o),Ul(e,t),t.tag=1,No(r)?(e=!0,Io(t)):e=!1,Ta(t,n),il(t,r,o),sl(t,r,o,n),Ol(null,t,r,!0,e,n);case 19:return Hl(e,t,n);case 22:return Sl(e,t,n)}throw Error(a(156,t.tag))};var Gu="function"==typeof reportError?reportError:function(e){console.error(e)};function Yu(e){this._internalRoot=e}function Qu(e){this._internalRoot=e}function Xu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ku(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zu(){}function Ju(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if("function"==typeof o){var l=o;o=function(){var e=Wu(i);l.call(e)}}Uu(t,i,e,o)}else i=function(e,t,n,r,o){if(o){if("function"==typeof r){var a=r;r=function(){var e=Wu(i);a.call(e)}}var i=Hu(t,r,e,0,null,!1,0,"",Zu);return e._reactRootContainer=i,e[ho]=i.current,Hr(8===e.nodeType?e.parentNode:e),cu(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Wu(s);l.call(e)}}var s=Mu(e,0,!1,null,0,!1,0,"",Zu);return e._reactRootContainer=s,e[ho]=s.current,Hr(8===e.nodeType?e.parentNode:e),cu((function(){Uu(t,s,n,r)})),s}(n,t,e,o,r);return Wu(i)}Qu.prototype.render=Yu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Uu(e,t,null,null)},Qu.prototype.unmount=Yu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu((function(){Uu(null,e,null,null)})),t[ho]=null}},Qu.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nt.length&&0!==t&&t<Nt[n].priority;n++);Nt.splice(n,0,e),0===n&&It(e)}},kt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(bt(t,1|n),ru(t,Ke()),!(6&Os)&&(Hs=Ke()+500,Uo()))}break;case 13:cu((function(){var t=_a(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}})),qu(e,1)}},xt=function(e){if(13===e.tag){var t=_a(e,134217728);null!==t&&nu(t,e,134217728,eu()),qu(e,134217728)}},Et=function(e){if(13===e.tag){var t=tu(e),n=_a(e,t);null!==n&&nu(n,e,t,eu()),qu(e,t)}},St=function(){return vt},Ft=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}},xe=function(e,t,n){switch(t){case"input":if(Z(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=xo(r);if(!o)throw Error(a(90));G(r),Z(r,o)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Oe=uu,Pe=cu;var ec={usingClientEntryPoint:!1,Events:[wo,ko,xo,Ae,Ce,uu]},tc={findFiberByHostInstance:vo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ve(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{ot=rc.inject(nc),at=rc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xu(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Xu(e))throw Error(a(299));var n=!1,r="",o=Gu;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Mu(e,1,!1,null,0,n,0,r,o),e[ho]=t.current,Hr(8===e.nodeType?e.parentNode:e),new Yu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return null===(e=Ve(t))?null:e.stateNode},t.flushSync=function(e){return cu(e)},t.hydrate=function(e,t,n){if(!Ku(t))throw Error(a(200));return Ju(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Xu(e))throw Error(a(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",l=Gu;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Hu(t,null,e,1,null!=n?n:null,o,0,i,l),e[ho]=t.current,Hr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Qu(t)},t.render=function(e,t,n){if(!Ku(t))throw Error(a(200));return Ju(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ku(e))throw Error(a(40));return!!e._reactRootContainer&&(cu((function(){Ju(null,null,e,!1,(function(){e._reactRootContainer=null,e[ho]=null}))})),!0)},t.unstable_batchedUpdates=uu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ku(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return Ju(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},873:(e,t,n)=>{"use strict";var r=n(144);t.H=r.createRoot,r.hydrateRoot},144:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(400)},320:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,g=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case a:case l:case i:case p:return e;default:switch(e=e&&e.$$typeof){case u:case d:case m:case h:case s:return e;default:return t}}case o:return t}}}function x(e){return k(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=s,t.Element=r,t.ForwardRef=d,t.Fragment=a,t.Lazy=m,t.Memo=h,t.Portal=o,t.Profiler=l,t.StrictMode=i,t.Suspense=p,t.isAsyncMode=function(e){return x(e)||k(e)===c},t.isConcurrentMode=x,t.isContextConsumer=function(e){return k(e)===u},t.isContextProvider=function(e){return k(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return k(e)===d},t.isFragment=function(e){return k(e)===a},t.isLazy=function(e){return k(e)===m},t.isMemo=function(e){return k(e)===h},t.isPortal=function(e){return k(e)===o},t.isProfiler=function(e){return k(e)===l},t.isStrictMode=function(e){return k(e)===i},t.isSuspense=function(e){return k(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===l||e===i||e===p||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===s||e.$$typeof===u||e.$$typeof===d||e.$$typeof===b||e.$$typeof===v||e.$$typeof===w||e.$$typeof===y)},t.typeOf=k},524:(e,t,n)=>{"use strict";e.exports=n(320)},340:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,s=/^\s+|\s+$/g,u="";function c(e){return e?e.replace(s,u):u}e.exports=function(e,s){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];s=s||{};var f=1,d=1;function p(e){var t=e.match(n);t&&(f+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function g(){var e={line:f,column:d};return function(t){return t.position=new h(e),v(),t}}function h(e){this.start=e,this.end={line:f,column:d},this.source=s.source}h.prototype.content=e;var m=[];function y(t){var n=new Error(s.source+":"+f+":"+d+": "+t);if(n.reason=t,n.filename=s.source,n.line=f,n.column=d,n.source=e,!s.silent)throw n;m.push(n)}function b(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function v(){b(r)}function w(e){var t;for(e=e||[];t=k();)!1!==t&&e.push(t);return e}function k(){var t=g();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;u!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,u===e.charAt(n-1))return y("End of comment missing");var r=e.slice(2,n-2);return d+=2,p(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}function x(){var e=g(),n=b(o);if(n){if(k(),!b(a))return y("property missing ':'");var r=b(i),s=e({type:"declaration",property:c(n[0].replace(t,u)),value:r?c(r[0].replace(t,u)):u});return b(l),s}}return v(),function(){var e,t=[];for(w(t);e=x();)!1!==e&&(t.push(e),w(t));return t}()}},871:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case a:case l:case i:case d:case p:return e;default:switch(e=e&&e.$$typeof){case c:case u:case f:case h:case g:case s:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.ContextConsumer=u,t.ContextProvider=s,t.Element=r,t.ForwardRef=f,t.Fragment=a,t.Lazy=h,t.Memo=g,t.Portal=o,t.Profiler=l,t.StrictMode=i,t.Suspense=d,t.SuspenseList=p,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return y(e)===u},t.isContextProvider=function(e){return y(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return y(e)===f},t.isFragment=function(e){return y(e)===a},t.isLazy=function(e){return y(e)===h},t.isMemo=function(e){return y(e)===g},t.isPortal=function(e){return y(e)===o},t.isProfiler=function(e){return y(e)===l},t.isStrictMode=function(e){return y(e)===i},t.isSuspense=function(e){return y(e)===d},t.isSuspenseList=function(e){return y(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===l||e===i||e===d||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===s||e.$$typeof===u||e.$$typeof===f||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=y},819:(e,t,n)=>{"use strict";e.exports=n(871)},532:(e,t,n)=>{var r=n(340);function o(e,t){var n,o=null;if(!e||"string"!=typeof e)return o;for(var a,i,l=r(e),s="function"==typeof t,u=0,c=l.length;u<c;u++)a=(n=l[u]).property,i=n.value,s?t(a,i,n):i&&(o||(o={}),o[a]=i);return o}e.exports=o,e.exports.default=o},335:(e,t,n)=>{"use strict";var r=n(41),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,a={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)i.call(t,r)&&!s.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:c,props:a,_owner:l.current}}t.Fragment=a,t.jsx=u,t.jsxs=u},304:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator,g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,m={};function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||g}function b(){}function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=y.prototype;var w=v.prototype=new b;w.constructor=v,h(w,y.prototype),w.isPureReactComponent=!0;var k=Array.isArray,x=Object.prototype.hasOwnProperty,E={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function F(e,t,r){var o,a={},i=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(i=""+t.key),t)x.call(t,o)&&!S.hasOwnProperty(o)&&(a[o]=t[o]);var s=arguments.length-2;if(1===s)a.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];a.children=u}if(e&&e.defaultProps)for(o in s=e.defaultProps)void 0===a[o]&&(a[o]=s[o]);return{$$typeof:n,type:e,key:i,ref:l,props:a,_owner:E.current}}function A(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var C=/\/+/g;function O(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function P(e,t,o,a,i){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case n:case r:s=!0}}if(s)return i=i(s=e),e=""===a?"."+O(s,0):a,k(i)?(o="",null!=e&&(o=e.replace(C,"$&/")+"/"),P(i,t,o,"",(function(e){return e}))):null!=i&&(A(i)&&(i=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,o+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(C,"$&/")+"/")+e)),t.push(i)),1;if(s=0,a=""===a?".":a+":",k(e))for(var u=0;u<e.length;u++){var c=a+O(l=e[u],u);s+=P(l,t,o,c,i)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(l=e.next()).done;)s+=P(l=l.value,t,o,c=a+O(l,u++),i);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function T(e,t,n){if(null==e)return e;var r=[],o=0;return P(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function D(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R={current:null},N={transition:null},L={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:N,ReactCurrentOwner:E};function _(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:T,forEach:function(e,t,n){T(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!A(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=o,t.Profiler=i,t.PureComponent=v,t.StrictMode=a,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,t.act=_,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=h({},e.props),a=e.key,i=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,l=E.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)x.call(t,u)&&!S.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==s?s[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){s=Array(u);for(var c=0;c<u;c++)s[c]=arguments[c+2];o.children=s}return{$$typeof:n,type:e.type,key:a,ref:i,props:o,_owner:l}},t.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=F,t.createFactory=function(e){var t=F.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=A,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:D}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=N.transition;N.transition={};try{e()}finally{N.transition=t}},t.unstable_act=_,t.useCallback=function(e,t){return R.current.useCallback(e,t)},t.useContext=function(e){return R.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return R.current.useDeferredValue(e)},t.useEffect=function(e,t){return R.current.useEffect(e,t)},t.useId=function(){return R.current.useId()},t.useImperativeHandle=function(e,t,n){return R.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return R.current.useMemo(e,t)},t.useReducer=function(e,t,n){return R.current.useReducer(e,t,n)},t.useRef=function(e){return R.current.useRef(e)},t.useState=function(e){return R.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return R.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return R.current.useTransition()},t.version="18.3.1"},41:(e,t,n)=>{"use strict";e.exports=n(304)},85:(e,t,n)=>{"use strict";e.exports=n(335)},568:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<a(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,i=o>>>1;r<i;){var l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(0>a(s,n))u<o&&0>a(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(u<o&&0>a(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}var u=[],c=[],f=1,d=null,p=3,g=!1,h=!1,m=!1,y="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function k(e){if(m=!1,w(e),!h)if(null!==r(u))h=!0,N(x);else{var t=r(c);null!==t&&L(k,t.startTime-e)}}function x(e,n){h=!1,m&&(m=!1,b(A),A=-1),g=!0;var a=p;try{for(w(n),d=r(u);null!==d&&(!(d.expirationTime>n)||e&&!P());){var i=d.callback;if("function"==typeof i){d.callback=null,p=d.priorityLevel;var l=i(d.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?d.callback=l:d===r(u)&&o(u),w(n)}else o(u);d=r(u)}if(null!==d)var s=!0;else{var f=r(c);null!==f&&L(k,f.startTime-n),s=!1}return s}finally{d=null,p=a,g=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,S=!1,F=null,A=-1,C=5,O=-1;function P(){return!(t.unstable_now()-O<C)}function T(){if(null!==F){var e=t.unstable_now();O=e;var n=!0;try{n=F(!0,e)}finally{n?E():(S=!1,F=null)}}else S=!1}if("function"==typeof v)E=function(){v(T)};else if("undefined"!=typeof MessageChannel){var D=new MessageChannel,R=D.port2;D.port1.onmessage=T,E=function(){R.postMessage(null)}}else E=function(){y(T,0)};function N(e){F=e,S||(S=!0,E())}function L(e,n){A=y((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){h||g||(h=!0,N(x))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,a){var i=t.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?i+a:i,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:f++,callback:o,priorityLevel:e,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>i?(e.sortIndex=a,n(c,e),null===r(u)&&e===r(c)&&(m?(b(A),A=-1):m=!0,L(k,a-i))):(e.sortIndex=l,n(u,e),h||g||(h=!0,N(x))),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},967:(e,t,n)=>{"use strict";e.exports=n(568)}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={exports:{}};return n[e](a,a.exports,o),a.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var a=Object.create(null);o.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var l=2&r&&n;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((e=>i[e]=()=>n[e]));return i.default=()=>n,o.d(a,i),a},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";o.r(a),o.d(a,{matchesDeflectorScript:()=>hF});var e={};o.r(e),o.d(e,{attentionMarkers:()=>hc,contentInitial:()=>uc,disable:()=>mc,document:()=>sc,flow:()=>fc,flowInitial:()=>cc,insideSpan:()=>gc,string:()=>dc,text:()=>pc});var t={};o.r(t),o.d(t,{boolean:()=>pf,booleanish:()=>gf,commaOrSpaceSeparated:()=>vf,commaSeparated:()=>bf,number:()=>mf,overloadedBoolean:()=>hf,spaceSeparated:()=>yf});var n=o(85);var r=o(41),i=o.t(r,2),l=Object.defineProperty,s=Object.defineProperties,u=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,p=(e,t,n)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,g=(e,t)=>{for(var n in t||(t={}))f.call(t,n)&&p(e,n,t[n]);if(c)for(var n of c(t))d.call(t,n)&&p(e,n,t[n]);return e},h=(e,t)=>s(e,u(t)),m=(e,t,n)=>(p(e,"symbol"!=typeof t?t+"":t,n),n),y=(e,t,n)=>new Promise(((r,o)=>{var a=e=>{try{l(n.next(e))}catch(e){o(e)}},i=e=>{try{l(n.throw(e))}catch(e){o(e)}},l=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,i);l((n=n.apply(e,t)).next())}));var b=class e{constructor(e){m(this,"_parent"),m(this,"breadcrumbs",[]),m(this,"context",{}),m(this,"extra",{}),m(this,"tags",{}),m(this,"request"),m(this,"user"),this._parent=e}get parent(){return this._parent}child(){return new e(this)}setRequest(e){return this.request=e,this}removeRequest(){return this.request=void 0,this}addBreadcrumb(e){return typeof e.timestamp>"u"&&(e.timestamp=(new Date).toISOString()),this.breadcrumbs.push(e),this}setExtra(e,t){return this.extra[e]=t,this}removeExtra(e){return delete this.extra[e],this}setContext(e,t){return typeof t.type>"u"&&(t.type=e),this.context[e]=t,this}removeContext(e){return delete this.context[e],this}setTags(e){return this.tags=g(g({},this.tags),e),this}setTag(e,t){return this.tags[e]=t,this}removeTag(e){return delete this.tags[e],this}setUser(e){return this.user=e,this}removeUser(){return this.user=void 0,this}toBody(){let e=[],t=this;for(;t;)e.push(t),t=t.parent;return e.reverse().reduce(((e,t)=>{var n;return e.breadcrumbs=[...null!=(n=e.breadcrumbs)?n:[],...t.breadcrumbs],e.extra=g(g({},e.extra),t.extra),e.contexts=g(g({},e.contexts),t.context),e.tags=g(g({},e.tags),t.tags),t.user&&(e.user=t.user),t.request&&(e.request=t.request),e}),{breadcrumbs:[],extra:{},contexts:{},tags:{},request:void 0,user:void 0})}clear(){this.breadcrumbs=[],this.context={},this.tags={},this.user=void 0}},v=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,w="?",k="An unknown error occurred";function x(e){return(e+256).toString(16).substring(1)}function E(){let e=function(e){for(let t=0;t<e.length;t++)e[t]=Math.floor(256*Math.random());return e}(new Array(16));return e[6]=15&e[6]|64,e[8]=63&e[8]|128,x(e[0])+x(e[1])+x(e[2])+x(e[3])+"-"+x(e[4])+x(e[5])+"-"+x(e[6])+x(e[7])+"-"+x(e[8])+x(e[9])+"-"+x(e[10])+x(e[11])+x(e[12])+x(e[13])+x(e[14])+x(e[15])}var S=[[/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,"chrome"],[/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,"winjs"],[/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,"gecko"]];function F(e){let t=function(e){var t,n,r,o;if(!e.stack)return null;let a=[],i=null!=(r=null==(n=(t=e.stack).split)?void 0:n.call(t,"\n"))?r:[];for(let t=0;t<i.length;++t){let n=null,r=null,l=null;for(let[e,n]of S)if(r=e.exec(i[t]),r){l=n;break}if(r&&l){if("chrome"===l)n={filename:null!=(o=r[2])&&o.startsWith("address at ")?r[2].substring(11):r[2],function:r[1]||w,lineno:r[3]?+r[3]:null,colno:r[4]?+r[4]:null};else if("winjs"===l)n={filename:r[2],function:r[1]||w,lineno:+r[3],colno:r[4]?+r[4]:null};else{if("gecko"!==l)continue;0===t&&!r[5]&&void 0!==e.columnNumber&&a.length>0&&(a[0].column=e.columnNumber+1),n={filename:r[3],function:r[1]||w,lineno:r[4]?+r[4]:null,colno:r[5]?+r[5]:null}}!n.function&&n.lineno&&(n.function=w),a.push(n)}}return a.length?a.reverse():null}(e);return{type:e.name,value:e.message,stacktrace:{frames:null!=t?t:[]}}}function A(e){if(e instanceof Error)return e;if("string"==typeof e)return new Error(e);if("object"==typeof e&&null!==e&&!Array.isArray(e)){let t=e,{message:n}=t,r=((e,t)=>{var n={};for(var r in e)f.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&c)for(var r of c(e))t.indexOf(r)<0&&d.call(e,r)&&(n[r]=e[r]);return n})(t,["message"]),o=new Error("string"==typeof n?n:k);return Object.assign(o,r)}let t=new Error(k);return Object.assign(t,{cause:e})}var C;C=class{constructor(e){var t,n,r,o,a;m(this,"apiURL"),m(this,"dsn"),m(this,"environment"),m(this,"release"),m(this,"sampleRate"),m(this,"debug"),m(this,"_scope"),m(this,"shouldBuffer",!1),m(this,"bufferlimit",20),m(this,"buffer",[]),this.environment=e.environment,this.release=e.release,this.sampleRate=null!=(t=e.sampleRate)?t:1,this.debug=null!=(n=e.debug)&&n,this._scope=null!=(r=e.scope)?r:new b,this.apiURL=function(e){let t=v.exec(e),n=t?t.slice(1):[];if(6!==n.length)throw new Error("Invalid DSN");let r=n[5].split("/"),o=r.slice(0,-1).join("/");return n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(o?"/"+o:"")+"/api/"+r.pop()+"/envelope/?sentry_version=7&sentry_key="+n[1]+(n[2]?"&sentry_secret="+n[2]:"")}(e.dsn),this.dsn=e.dsn,this.shouldBuffer=null!=(o=e.buffer)&&o,this.bufferlimit=null!=(a=e.bufferLimit)?a:20}static init(e){C._instance||(C._instance=new C(e))}static get instance(){if(!C._instance)throw new Error("Sentry has not been initialized");return C._instance}log(...e){this.debug&&console.log(...e)}get scope(){return this._scope}static get scope(){return C.instance.scope}withScope(e){e(this._scope.child())}static withScope(e){C.instance.withScope(e)}captureException(e,t){this.captureEvent({type:"exception",level:"error",error:A(e),scope:null!=t?t:this._scope})}static captureException(e,t){C.instance.captureException(e,t)}captureMessage(e,t="info",n){this.captureEvent({type:"message",level:t,message:e,scope:null!=n?n:this._scope})}static captureMessage(e,t="info",n){C.instance.captureMessage(e,t,n)}captureEvent(e){if(Math.random()>=this.sampleRate)this.log("Dropped event due to sample rate");else if(this.shouldBuffer){if(this.buffer.length>=this.bufferlimit)return;this.buffer.push(e)}else this.sendEvent(e)}sendEvent(e,t=5e3){return y(this,null,(function*(){try{this.log("Sending sentry event",e);let n=function(e,t,n){var r,o;let a=g({event_id:E().replaceAll("-",""),platform:"javascript",sdk:{name:"@hcaptcha/sentry",version:"0.0.4"},environment:t,release:n,timestamp:Date.now()/1e3},e.scope.toBody());if("exception"===e.type){a.message=null!=(o=null==(r=e.error)?void 0:r.message)?o:"Unknown error",a.fingerprint=[a.message];let t=[],n=e.error;for(let e=0;e<5&&n&&(t.push(F(n)),n.cause&&n.cause instanceof Error);e++)n=n.cause;a.exception={values:t.reverse()}}return"message"===e.type&&(a.message=e.message,a.level=e.level),a}(e,this.environment,this.release),r={event_id:n.event_id,dsn:this.dsn},o={type:"event"},a=JSON.stringify(r)+"\n"+JSON.stringify(o)+"\n"+JSON.stringify(n),i=yield function(e,t,n){return y(this,null,(function*(){var r,o;try{if(typeof fetch<"u"&&typeof AbortSignal<"u"){let r;if(n){let e=new AbortController;r=e.signal,setTimeout((()=>e.abort()),n)}let o=yield fetch(e,h(g({},t),{signal:r})),a=yield o.text();return{status:o.status,body:a}}return yield new Promise(((r,o)=>{var a,i;let l=new XMLHttpRequest;if(l.open(null!=(a=null==t?void 0:t.method)?a:"GET",e),l.onload=()=>r({status:l.status,body:l.responseText}),l.onerror=()=>o(new Error("XHR Network Error")),null==t?void 0:t.headers)for(let[e,n]of Object.entries(t.headers))l.setRequestHeader(e,n);if(n){let e=setTimeout((()=>{l.abort(),o(new Error("Request timed out"))}),n);l.onloadend=()=>{clearTimeout(e)}}l.send(null==(i=null==t?void 0:t.body)?void 0:i.toString())}))}catch(e){return{status:0,body:null!=(o=null==(r=null==e?void 0:e.toString)?void 0:r.call(e))?o:"Unknown error"}}}))}(this.apiURL,{method:"POST",headers:{"Content-Type":"application/x-sentry-envelope"},body:a},t);this.log("Sentry response",i.status),200!==i.status&&(console.log(i.body),console.error("Failed to send event to Sentry",i))}catch(e){console.error("Failed to send event",e)}}))}flush(e=5e3){return y(this,null,(function*(){try{this.log("Flushing sentry events",this.buffer.length);let t=this.buffer.splice(0,this.buffer.length).map((t=>this.sendEvent(t,e)));yield Promise.all(t),this.log("Flushed all events")}catch(e){console.error("Failed to flush events",e)}}))}static flush(e=5e3){return C.instance.flush(e)}static reset(){C._instance=void 0}},m(C,"_instance");r.Component;var O=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),P=Math.abs,T=String.fromCharCode,D=Object.assign;function R(e){return e.trim()}function N(e,t,n){return e.replace(t,n)}function L(e,t){return e.indexOf(t)}function _(e,t){return 0|e.charCodeAt(t)}function j(e,t,n){return e.slice(t,n)}function I(e){return e.length}function z(e){return e.length}function B(e,t){return t.push(e),e}var M=1,$=1,H=0,U=0,W=0,V="";function q(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:M,column:$,length:i,return:""}}function G(e,t){return D(q("",null,null,"",null,null,0),e,{length:-e.length},t)}function Y(){return W=U>0?_(V,--U):0,$--,10===W&&($=1,M--),W}function Q(){return W=U<H?_(V,U++):0,$++,10===W&&($=1,M++),W}function X(){return _(V,U)}function K(){return U}function Z(e,t){return j(V,e,t)}function J(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ee(e){return M=$=1,H=I(V=e),U=0,[]}function te(e){return V="",e}function ne(e){return R(Z(U-1,ae(91===e?e+2:40===e?e+1:e)))}function re(e){for(;(W=X())&&W<33;)Q();return J(e)>2||J(W)>3?"":" "}function oe(e,t){for(;--t&&Q()&&!(W<48||W>102||W>57&&W<65||W>70&&W<97););return Z(e,K()+(t<6&&32==X()&&32==Q()))}function ae(e){for(;Q();)switch(W){case e:return U;case 34:case 39:34!==e&&39!==e&&ae(W);break;case 40:41===e&&ae(e);break;case 92:Q()}return U}function ie(e,t){for(;Q()&&e+W!==57&&(e+W!==84||47!==X()););return"/*"+Z(t,U-1)+"*"+T(47===e?e:Q())}function le(e){for(;!J(X());)Q();return Z(e,U)}var se="-ms-",ue="-moz-",ce="-webkit-",fe="comm",de="rule",pe="decl",ge="@keyframes";function he(e,t){for(var n="",r=z(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function me(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case pe:return e.return=e.return||e.value;case fe:return"";case ge:return e.return=e.value+"{"+he(e.children,r)+"}";case de:e.value=e.props.join(",")}return I(n=he(e.children,r))?e.return=e.value+"{"+n+"}":""}function ye(e){return te(be("",null,null,null,[""],e=ee(e),0,[0],e))}function be(e,t,n,r,o,a,i,l,s){for(var u=0,c=0,f=i,d=0,p=0,g=0,h=1,m=1,y=1,b=0,v="",w=o,k=a,x=r,E=v;m;)switch(g=b,b=Q()){case 40:if(108!=g&&58==_(E,f-1)){-1!=L(E+=N(ne(b),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:E+=ne(b);break;case 9:case 10:case 13:case 32:E+=re(g);break;case 92:E+=oe(K()-1,7);continue;case 47:switch(X()){case 42:case 47:B(we(ie(Q(),K()),t,n),s);break;default:E+="/"}break;case 123*h:l[u++]=I(E)*y;case 125*h:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+c:-1==y&&(E=N(E,/\f/g,"")),p>0&&I(E)-f&&B(p>32?ke(E+";",r,n,f-1):ke(N(E," ","")+";",r,n,f-2),s);break;case 59:E+=";";default:if(B(x=ve(E,t,n,u,c,o,l,v,w=[],k=[],f),a),123===b)if(0===c)be(E,t,x,x,w,a,f,l,k);else switch(99===d&&110===_(E,3)?100:d){case 100:case 108:case 109:case 115:be(e,x,x,r&&B(ve(e,x,x,0,0,o,l,v,o,w=[],f),k),o,k,f,l,r?w:k);break;default:be(E,x,x,x,[""],k,0,l,k)}}u=c=p=0,h=y=1,v=E="",f=i;break;case 58:f=1+I(E),p=g;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==Y())continue;switch(E+=T(b),b*h){case 38:y=c>0?1:(E+="\f",-1);break;case 44:l[u++]=(I(E)-1)*y,y=1;break;case 64:45===X()&&(E+=ne(Q())),d=X(),c=f=I(v=E+=le(K())),b++;break;case 45:45===g&&2==I(E)&&(h=0)}}return a}function ve(e,t,n,r,o,a,i,l,s,u,c){for(var f=o-1,d=0===o?a:[""],p=z(d),g=0,h=0,m=0;g<r;++g)for(var y=0,b=j(e,f+1,f=P(h=i[g])),v=e;y<p;++y)(v=R(h>0?d[y]+" "+b:N(b,/&\f/g,d[y])))&&(s[m++]=v);return q(e,t,n,0===o?de:l,s,u,c)}function we(e,t,n){return q(e,t,n,fe,T(W),j(e,2,-2),0)}function ke(e,t,n,r){return q(e,t,n,pe,j(e,0,r),j(e,r+1,-1),r)}var xe=function(e,t,n){for(var r=0,o=0;r=o,o=X(),38===r&&12===o&&(t[n]=1),!J(o);)Q();return Z(e,U)},Ee=new WeakMap,Se=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Ee.get(n))&&!r){Ee.set(e,!0);for(var o=[],a=function(e,t){return te(function(e,t){var n=-1,r=44;do{switch(J(r)){case 0:38===r&&12===X()&&(t[n]=1),e[n]+=xe(U-1,t,n);break;case 2:e[n]+=ne(r);break;case 4:if(44===r){e[++n]=58===X()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=T(r)}}while(r=Q());return e}(ee(e),t))}(t,o),i=n.props,l=0,s=0;l<a.length;l++)for(var u=0;u<i.length;u++,s++)e.props[s]=o[l]?a[l].replace(/&\f/g,i[u]):i[u]+" "+a[l]}}},Fe=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Ae(e,t){switch(function(e,t){return 45^_(e,0)?(((t<<2^_(e,0))<<2^_(e,1))<<2^_(e,2))<<2^_(e,3):0}(e,t)){case 5103:return ce+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ce+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ce+e+ue+e+se+e+e;case 6828:case 4268:return ce+e+se+e+e;case 6165:return ce+e+se+"flex-"+e+e;case 5187:return ce+e+N(e,/(\w+).+(:[^]+)/,ce+"box-$1$2"+se+"flex-$1$2")+e;case 5443:return ce+e+se+"flex-item-"+N(e,/flex-|-self/,"")+e;case 4675:return ce+e+se+"flex-line-pack"+N(e,/align-content|flex-|-self/,"")+e;case 5548:return ce+e+se+N(e,"shrink","negative")+e;case 5292:return ce+e+se+N(e,"basis","preferred-size")+e;case 6060:return ce+"box-"+N(e,"-grow","")+ce+e+se+N(e,"grow","positive")+e;case 4554:return ce+N(e,/([^-])(transform)/g,"$1"+ce+"$2")+e;case 6187:return N(N(N(e,/(zoom-|grab)/,ce+"$1"),/(image-set)/,ce+"$1"),e,"")+e;case 5495:case 3959:return N(e,/(image-set\([^]*)/,ce+"$1$`$1");case 4968:return N(N(e,/(.+:)(flex-)?(.*)/,ce+"box-pack:$3"+se+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ce+e+e;case 4095:case 3583:case 4068:case 2532:return N(e,/(.+)-inline(.+)/,ce+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(I(e)-1-t>6)switch(_(e,t+1)){case 109:if(45!==_(e,t+4))break;case 102:return N(e,/(.+:)(.+)-([^]+)/,"$1"+ce+"$2-$3$1"+ue+(108==_(e,t+3)?"$3":"$2-$3"))+e;case 115:return~L(e,"stretch")?Ae(N(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==_(e,t+1))break;case 6444:switch(_(e,I(e)-3-(~L(e,"!important")&&10))){case 107:return N(e,":",":"+ce)+e;case 101:return N(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ce+(45===_(e,14)?"inline-":"")+"box$3$1"+ce+"$2$3$1"+se+"$2box$3")+e}break;case 5936:switch(_(e,t+11)){case 114:return ce+e+se+N(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ce+e+se+N(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ce+e+se+N(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ce+e+se+e+e}return e}var Ce=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case pe:e.return=Ae(e.value,e.length);break;case ge:return he([G(e,{value:N(e.value,"@","@"+ce)})],r);case de:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return he([G(e,{props:[N(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return he([G(e,{props:[N(t,/:(plac\w+)/,":"+ce+"input-$1")]}),G(e,{props:[N(t,/:(plac\w+)/,":-moz-$1")]}),G(e,{props:[N(t,/:(plac\w+)/,se+"input-$1")]})],r)}return""}))}}],Oe=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,a=e.stylisPlugins||Ce,i={},l=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;l.push(e)}));var s,u,c,f,d=[me,(f=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&f(e)})],p=(u=[Se,Fe].concat(a,d),c=z(u),function(e,t,n,r){for(var o="",a=0;a<c;a++)o+=u[a](e,t,n,r)||"";return o});o=function(e,t,n,r){s=n,function(e){he(ye(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(g.inserted[t.name]=!0)};var g={key:t,sheet:new O({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return g.sheet.hydrate(l),g};function Pe(){return Pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pe.apply(null,arguments)}var Te=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}};function De(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var Re=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Ne=function(e,t,n){Re(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}},Le={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function _e(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var je=/[A-Z]|^ms/g,Ie=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ze=function(e){return 45===e.charCodeAt(1)},Be=function(e){return null!=e&&"boolean"!=typeof e},Me=_e((function(e){return ze(e)?e:e.replace(je,"-$&").toLowerCase()})),$e=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ie,(function(e,t,n){return Ue={name:t,styles:n,next:Ue},t}))}return 1===Le[e]||ze(e)||"number"!=typeof t||0===t?t:t+"px"};function He(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Ue={name:o.name,styles:o.styles,next:Ue},o.name;var a=n;if(void 0!==a.styles){var i=a.next;if(void 0!==i)for(;void 0!==i;)Ue={name:i.name,styles:i.styles,next:Ue},i=i.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=He(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i){var l=i;null!=t&&void 0!==t[l]?r+=a+"{"+t[l]+"}":Be(l)&&(r+=Me(a)+":"+$e(a,l)+";")}else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=He(e,t,i);switch(a){case"animation":case"animationName":r+=Me(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var u=0;u<i.length;u++)Be(i[u])&&(r+=Me(a)+":"+$e(a,i[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var l=Ue,s=n(e);return Ue=l,He(e,t,s)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var Ue,We=/label:\s*([^\s;{]+)\s*(;|$)/g;function Ve(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Ue=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=He(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=He(n,t,e[i]),r&&(o+=a[i]);We.lastIndex=0;for(var l,s="";null!==(l=We.exec(o));)s+="-"+l[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s;return{name:u,styles:o,next:Ue}}var qe,Ge,Ye=!!i.useInsertionEffect&&i.useInsertionEffect,Qe=Ye||function(e){return e()},Xe=Ye||r.useLayoutEffect,Ke=r.createContext("undefined"!=typeof HTMLElement?Oe({key:"css"}):null),Ze=(Ke.Provider,function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(Ke);return e(t,o,n)}))}),Je=r.createContext({}),et=Te((function(e){return Te((function(t){return function(e,t){return"function"==typeof t?t(e):Pe({},e,t)}(e,t)}))})),tt=function(e){var t=r.useContext(Je);return e.theme!==t&&(t=et(t)(e.theme)),r.createElement(Je.Provider,{value:t},e.children)},nt={}.hasOwnProperty,rt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ot=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Re(t,n,r),Qe((function(){return Ne(t,n,r)})),null},at=Ze((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var a=e[rt],i=[o],l="";"string"==typeof e.className?l=De(t.registered,i,e.className):null!=e.className&&(l=e.className+" ");var s=Ve(i,void 0,r.useContext(Je));l+=t.key+"-"+s.name;var u={};for(var c in e)nt.call(e,c)&&"css"!==c&&c!==rt&&(u[c]=e[c]);return u.className=l,n&&(u.ref=n),r.createElement(r.Fragment,null,r.createElement(ot,{cache:t,serialized:s,isStringTag:"string"==typeof a}),r.createElement(a,u))})),it=(o(985),function(e,t){var n=arguments;if(null==t||!nt.call(t,"css"))return r.createElement.apply(void 0,n);var o=n.length,a=new Array(o);a[0]=at,a[1]=function(e,t){var n={};for(var r in t)nt.call(t,r)&&(n[r]=t[r]);return n[rt]=e,n}(e,t);for(var i=2;i<o;i++)a[i]=n[i];return r.createElement.apply(null,a)});qe=it||(it={}),Ge||(Ge=qe.JSX||(qe.JSX={}));var lt=Ze((function(e,t){var n=Ve([e.styles],void 0,r.useContext(Je)),o=r.useRef();return Xe((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,i=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==i&&(a=!0,i.setAttribute("data-emotion",e),r.hydrate([i])),o.current=[r,a],function(){r.flush()}}),[t]),Xe((function(){var e=o.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Ne(t,n.next,!0),r.tags.length){var a=r.tags[r.tags.length-1].nextElementSibling;r.before=a,r.flush()}t.insert("",n,r,!1)}}),[t,n.name]),null}));function st(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ve(t)}function ut(){var e=st.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}const ct={dark:["#C1C2C5","#A6A7AB","#909296","#5c5f66","#373A40","#2C2E33","#25262b","#1A1B1E","#141517","#101113"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]};var ft=Object.defineProperty,dt=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,ht=(e,t,n)=>t in e?ft(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mt=(e,t)=>{for(var n in t||(t={}))pt.call(t,n)&&ht(e,n,t[n]);if(dt)for(var n of dt(t))gt.call(t,n)&&ht(e,n,t[n]);return e};function yt(e){return t=>"number"==typeof e.primaryShade?e.primaryShade:e.primaryShade[t||e.colorScheme]}function bt(e){const t=yt(e);return(n,r,o=!0,a=!0)=>{if("string"==typeof n&&n.includes(".")){const[t,o]=n.split("."),i=parseInt(o,10);if(t in e.colors&&i>=0&&i<10)return e.colors[t]["number"!=typeof r||a?i:r]}const i="number"==typeof r?r:t();return n in e.colors?e.colors[n][i]:o?e.colors[e.primaryColor][i]:n}}function vt(e){let t="";for(let n=1;n<e.length-1;n+=1)t+=`${e[n]} ${n/(e.length-1)*100}%, `;return`${e[0]} 0%, ${t}${e[e.length-1]} 100%`}function wt(e){const t=bt(e),n=yt(e);return r=>{const o={from:(null==r?void 0:r.from)||e.defaultGradient.from,to:(null==r?void 0:r.to)||e.defaultGradient.to,deg:(null==r?void 0:r.deg)||e.defaultGradient.deg};return`linear-gradient(${o.deg}deg, ${t(o.from,n(),!1)} 0%, ${t(o.to,n(),!1)} 100%)`}}function kt(e){return t=>{if("number"==typeof t)return`${t/16}${e}`;if("string"==typeof t){const n=t.replace("px","");if(!Number.isNaN(Number(n)))return`${Number(n)/16}${e}`}return t}}const xt=kt("rem"),Et=kt("em");function St({size:e,sizes:t,units:n}){return e in t?t[e]:"number"==typeof e?"em"===n?Et(e):xt(e):e||t.md}function Ft(e){return"number"==typeof e?e:"string"==typeof e&&e.includes("rem")?16*Number(e.replace("rem","")):"string"==typeof e&&e.includes("em")?16*Number(e.replace("em","")):Number(e)}function At(e){return/^#?([0-9A-F]{3}){1,2}$/i.test(e)?function(e){let t=e.replace("#","");if(3===t.length){const e=t.split("");t=[e[0],e[0],e[1],e[1],e[2],e[2]].join("")}const n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:255&n,a:1}}(e):e.startsWith("rgb")?function(e){const[t,n,r,o]=e.replace(/[^0-9,.]/g,"").split(",").map(Number);return{r:t,g:n,b:r,a:o||1}}(e):{r:0,g:0,b:0,a:1}}function Ct(e,t){if("string"!=typeof e||t>1||t<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var(--"))return e;const{r:n,g:r,b:o}=At(e);return`rgba(${n}, ${r}, ${o}, ${t})`}const Ot={fontStyles:function(e){return()=>({fontFamily:e.fontFamily||"sans-serif"})},themeColor:bt,focusStyles:function(e){return t=>({WebkitTapHighlightColor:"transparent",[t||"&:focus"]:mt({},"always"===e.focusRing||"auto"===e.focusRing?e.focusRingStyles.styles(e):e.focusRingStyles.resetStyles(e)),[t?t.replace(":focus",":focus:not(:focus-visible)"):"&:focus:not(:focus-visible)"]:mt({},"auto"===e.focusRing||"never"===e.focusRing?e.focusRingStyles.resetStyles(e):null)})},linearGradient:function(e,...t){return`linear-gradient(${e}deg, ${vt(t)})`},radialGradient:function(...e){return`radial-gradient(circle, ${vt(e)})`},smallerThan:function(e){return t=>`@media (max-width: ${Et(Ft(St({size:t,sizes:e.breakpoints}))-1)})`},largerThan:function(e){return t=>`@media (min-width: ${Et(Ft(St({size:t,sizes:e.breakpoints})))})`},rgba:Ct,cover:function(e=0){return{position:"absolute",top:xt(e),right:xt(e),left:xt(e),bottom:xt(e)}},darken:function(e,t){if("string"==typeof e&&e.startsWith("var(--"))return e;const{r:n,g:r,b:o,a}=At(e),i=1-t,l=e=>Math.round(e*i);return`rgba(${l(n)}, ${l(r)}, ${l(o)}, ${a})`},lighten:function(e,t){if("string"==typeof e&&e.startsWith("var(--"))return e;const{r:n,g:r,b:o,a}=At(e),i=e=>Math.round(e+(255-e)*t);return`rgba(${i(n)}, ${i(r)}, ${i(o)}, ${a})`},radius:function(e){return t=>{if("number"==typeof t)return xt(t);const n="number"==typeof e.defaultRadius?e.defaultRadius:e.radius[e.defaultRadius]||e.defaultRadius;return e.radius[t]||t||n}},variant:function(e){const t=bt(e),n=yt(e),r=wt(e);return({variant:o,color:a,gradient:i,primaryFallback:l})=>{const s=function(e,t){if("string"==typeof e&&e.includes(".")){const[n,r]=e.split("."),o=parseInt(r,10);if(n in t.colors&&o>=0&&o<10)return{isSplittedColor:!0,key:n,shade:o}}return{isSplittedColor:!1}}(a,e);switch(o){case"light":return{border:"transparent",background:Ct(t(a,"dark"===e.colorScheme?8:0,l,!1),"dark"===e.colorScheme?.2:1),color:"dark"===a?"dark"===e.colorScheme?e.colors.dark[0]:e.colors.dark[9]:t(a,"dark"===e.colorScheme?2:n("light")),hover:Ct(t(a,"dark"===e.colorScheme?7:1,l,!1),"dark"===e.colorScheme?.25:.65)};case"subtle":return{border:"transparent",background:"transparent",color:"dark"===a?"dark"===e.colorScheme?e.colors.dark[0]:e.colors.dark[9]:t(a,"dark"===e.colorScheme?2:n("light")),hover:Ct(t(a,"dark"===e.colorScheme?8:0,l,!1),"dark"===e.colorScheme?.2:1)};case"outline":return{border:t(a,"dark"===e.colorScheme?5:n("light")),background:"transparent",color:t(a,"dark"===e.colorScheme?5:n("light")),hover:"dark"===e.colorScheme?Ct(t(a,5,l,!1),.05):Ct(t(a,0,l,!1),.35)};case"default":return{border:"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[4],background:"dark"===e.colorScheme?e.colors.dark[6]:e.white,color:"dark"===e.colorScheme?e.white:e.black,hover:"dark"===e.colorScheme?e.colors.dark[5]:e.colors.gray[0]};case"white":return{border:"transparent",background:e.white,color:t(a,n()),hover:null};case"transparent":return{border:"transparent",color:"dark"===a?"dark"===e.colorScheme?e.colors.dark[0]:e.colors.dark[9]:t(a,"dark"===e.colorScheme?2:n("light")),background:"transparent",hover:null};case"gradient":return{background:r(i),color:e.white,border:"transparent",hover:null};default:{const r=n(),o=s.isSplittedColor?s.shade:r,i=s.isSplittedColor?s.key:a;return{border:"transparent",background:t(i,o,l),color:e.white,hover:t(i,9===o?8:o+1)}}}}},primaryShade:yt,hover:function(e){return{"@media (hover: hover)":{"&:hover":e},"@media (hover: none)":{"&:active":e}}},gradient:wt,primaryColor:function(e){return t=>{const n=yt(e)(t);return e.colors[e.primaryColor][n]}},placeholderStyles:function(e){return()=>({userSelect:"none",color:"dark"===e.colorScheme?e.colors.dark[3]:e.colors.gray[5]})},dimmed:function(e){return()=>"dark"===e.colorScheme?e.colors.dark[2]:e.colors.gray[6]}};var Pt=Object.defineProperty,Tt=Object.defineProperties,Dt=Object.getOwnPropertyDescriptors,Rt=Object.getOwnPropertySymbols,Nt=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable,_t=(e,t,n)=>t in e?Pt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function jt(e){return((e,t)=>Tt(e,Dt(t)))(((e,t)=>{for(var n in t||(t={}))Nt.call(t,n)&&_t(e,n,t[n]);if(Rt)for(var n of Rt(t))Lt.call(t,n)&&_t(e,n,t[n]);return e})({},e),{fn:{fontStyles:Ot.fontStyles(e),themeColor:Ot.themeColor(e),focusStyles:Ot.focusStyles(e),largerThan:Ot.largerThan(e),smallerThan:Ot.smallerThan(e),radialGradient:Ot.radialGradient,linearGradient:Ot.linearGradient,gradient:Ot.gradient(e),rgba:Ot.rgba,cover:Ot.cover,lighten:Ot.lighten,darken:Ot.darken,primaryShade:Ot.primaryShade(e),radius:Ot.radius(e),variant:Ot.variant(e),hover:Ot.hover,primaryColor:Ot.primaryColor(e),placeholderStyles:Ot.placeholderStyles(e),dimmed:Ot.dimmed(e)}})}Object.keys(ct);const It=jt({dir:"ltr",primaryShade:{light:6,dark:8},focusRing:"auto",loader:"oval",colorScheme:"light",white:"#fff",black:"#000",defaultRadius:"sm",transitionTimingFunction:"ease",colors:ct,lineHeight:1.55,fontFamily:"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",primaryColor:"blue",respectReducedMotion:!0,cursorType:"default",defaultGradient:{from:"indigo",to:"cyan",deg:45},shadows:{xs:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.1)",sm:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 0.625rem 0.9375rem -0.3125rem, rgba(0, 0, 0, 0.04) 0 0.4375rem 0.4375rem -0.3125rem",md:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 1.25rem 1.5625rem -0.3125rem, rgba(0, 0, 0, 0.04) 0 0.625rem 0.625rem -0.3125rem",lg:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 1.75rem 1.4375rem -0.4375rem, rgba(0, 0, 0, 0.04) 0 0.75rem 0.75rem -0.4375rem",xl:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 2.25rem 1.75rem -0.4375rem, rgba(0, 0, 0, 0.04) 0 1.0625rem 1.0625rem -0.4375rem"},fontSizes:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem"},radius:{xs:"0.125rem",sm:"0.25rem",md:"0.5rem",lg:"1rem",xl:"2rem"},spacing:{xs:"0.625rem",sm:"0.75rem",md:"1rem",lg:"1.25rem",xl:"1.5rem"},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},headings:{fontFamily:"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",fontWeight:700,sizes:{h1:{fontSize:"2.125rem",lineHeight:1.3,fontWeight:void 0},h2:{fontSize:"1.625rem",lineHeight:1.35,fontWeight:void 0},h3:{fontSize:"1.375rem",lineHeight:1.4,fontWeight:void 0},h4:{fontSize:"1.125rem",lineHeight:1.45,fontWeight:void 0},h5:{fontSize:"1rem",lineHeight:1.5,fontWeight:void 0},h6:{fontSize:"0.875rem",lineHeight:1.5,fontWeight:void 0}}},other:{},components:{},activeStyles:{transform:"translateY(0.0625rem)"},datesLocale:"en",globalStyles:void 0,focusRingStyles:{styles:e=>({outlineOffset:"0.125rem",outline:`0.125rem solid ${e.colors[e.primaryColor]["dark"===e.colorScheme?7:5]}`}),resetStyles:()=>({outline:"none"}),inputStyles:e=>({outline:"none",borderColor:e.colors[e.primaryColor]["object"==typeof e.primaryShade?e.primaryShade[e.colorScheme]:e.primaryShade]})}});var zt=Object.defineProperty,Bt=Object.defineProperties,Mt=Object.getOwnPropertyDescriptors,$t=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable,Wt=(e,t,n)=>t in e?zt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Vt=(e,t)=>{for(var n in t||(t={}))Ht.call(t,n)&&Wt(e,n,t[n]);if($t)for(var n of $t(t))Ut.call(t,n)&&Wt(e,n,t[n]);return e},qt=(e,t)=>Bt(e,Mt(t));function Gt({theme:e}){return r.createElement(lt,{styles:{"*, *::before, *::after":{boxSizing:"border-box"},html:{colorScheme:"dark"===e.colorScheme?"dark":"light"},body:qt(Vt({},e.fn.fontStyles()),{backgroundColor:"dark"===e.colorScheme?e.colors.dark[7]:e.white,color:"dark"===e.colorScheme?e.colors.dark[0]:e.black,lineHeight:e.lineHeight,fontSize:e.fontSizes.md,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"})}})}function Yt(e,t,n,r=xt){Object.keys(t).forEach((o=>{e[`--mantine-${n}-${o}`]=r(t[o])}))}function Qt({theme:e}){const t={"--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-transition-timing-function":e.transitionTimingFunction,"--mantine-line-height":`${e.lineHeight}`,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":`${e.headings.fontWeight}`};Yt(t,e.shadows,"shadow"),Yt(t,e.fontSizes,"font-size"),Yt(t,e.radius,"radius"),Yt(t,e.spacing,"spacing"),Yt(t,e.breakpoints,"breakpoints",Et),Object.keys(e.colors).forEach((n=>{e.colors[n].forEach(((e,r)=>{t[`--mantine-color-${n}-${r}`]=e}))}));const n=e.headings.sizes;return Object.keys(n).forEach((e=>{t[`--mantine-${e}-font-size`]=n[e].fontSize,t[`--mantine-${e}-line-height`]=`${n[e].lineHeight}`})),r.createElement(lt,{styles:{":root":t}})}var Xt=Object.defineProperty,Kt=Object.defineProperties,Zt=Object.getOwnPropertyDescriptors,Jt=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,tn=Object.prototype.propertyIsEnumerable,nn=(e,t,n)=>t in e?Xt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rn=(e,t)=>{for(var n in t||(t={}))en.call(t,n)&&nn(e,n,t[n]);if(Jt)for(var n of Jt(t))tn.call(t,n)&&nn(e,n,t[n]);return e},on=(e,t)=>Kt(e,Zt(t));function an(e){return Object.keys(e).reduce(((t,n)=>(void 0!==e[n]&&(t[n]=e[n]),t)),{})}const ln={html:{fontFamily:"sans-serif",lineHeight:"1.15",textSizeAdjust:"100%"},body:{margin:0},"article, aside, footer, header, nav, section, figcaption, figure, main":{display:"block"},h1:{fontSize:"2em"},hr:{boxSizing:"content-box",height:0,overflow:"visible"},pre:{fontFamily:"monospace, monospace",fontSize:"1em"},a:{background:"transparent",textDecorationSkip:"objects"},"a:active, a:hover":{outlineWidth:0},"abbr[title]":{borderBottom:"none",textDecoration:"underline"},"b, strong":{fontWeight:"bolder"},"code, kbp, samp":{fontFamily:"monospace, monospace",fontSize:"1em"},dfn:{fontStyle:"italic"},mark:{backgroundColor:"#ff0",color:"#000"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sup:{top:"-0.5em"},sub:{bottom:"-0.25em"},"audio, video":{display:"inline-block"},"audio:not([controls])":{display:"none",height:0},img:{borderStyle:"none",verticalAlign:"middle"},"svg:not(:root)":{overflow:"hidden"},"button, input, optgroup, select, textarea":{fontFamily:"sans-serif",fontSize:"100%",lineHeight:"1.15",margin:0},"button, input":{overflow:"visible"},"button, select":{textTransform:"none"},"button, [type=reset], [type=submit]":{WebkitAppearance:"button"},"button::-moz-focus-inner, [type=button]::-moz-focus-inner, [type=reset]::-moz-focus-inner, [type=submit]::-moz-focus-inner":{borderStyle:"none",padding:0},"button:-moz-focusring, [type=button]:-moz-focusring, [type=reset]:-moz-focusring, [type=submit]:-moz-focusring":{outline:`${xt(1)} dotted ButtonText`},legend:{boxSizing:"border-box",color:"inherit",display:"table",maxWidth:"100%",padding:0,whiteSpace:"normal"},progress:{display:"inline-block",verticalAlign:"baseline"},textarea:{overflow:"auto"},"[type=checkbox], [type=radio]":{boxSizing:"border-box",padding:0},"[type=number]::-webkit-inner-spin-button, [type=number]::-webkit-outer-spin-button":{height:"auto"},"[type=search]":{appearance:"none"},"[type=search]::-webkit-search-cancel-button, [type=search]::-webkit-search-decoration":{appearance:"none"},"::-webkit-file-upload-button":{appearance:"button",font:"inherit"},"details, menu":{display:"block"},summary:{display:"list-item"},canvas:{display:"inline-block"},template:{display:"none"}};function sn(){return r.createElement(lt,{styles:ln})}var un=Object.defineProperty,cn=Object.getOwnPropertySymbols,fn=Object.prototype.hasOwnProperty,dn=Object.prototype.propertyIsEnumerable,pn=(e,t,n)=>t in e?un(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gn=(e,t)=>{for(var n in t||(t={}))fn.call(t,n)&&pn(e,n,t[n]);if(cn)for(var n of cn(t))dn.call(t,n)&&pn(e,n,t[n]);return e};const hn=(0,r.createContext)({theme:It});function mn(){var e;return(null==(e=(0,r.useContext)(hn))?void 0:e.theme)||It}function yn(){var e;return null==(e=(0,r.useContext)(hn))?void 0:e.emotionCache}function bn(e,t,n){var r;const o=mn(),a=null==(r=o.components[e])?void 0:r.defaultProps,i="function"==typeof a?a(o):a;return gn(gn(gn({},t),i),an(n))}function vn({theme:e,emotionCache:t,withNormalizeCSS:n=!1,withGlobalStyles:o=!1,withCSSVariables:a=!1,inherit:i=!1,children:l}){const s=(0,r.useContext)(hn),u=(c=It,f=i?gn(gn({},s.theme),e):e,jt(function(e,t){var n;if(!t)return e;const r=Object.keys(e).reduce(((n,r)=>{if("headings"===r&&t.headings){const r=t.headings.sizes?Object.keys(e.headings.sizes).reduce(((n,r)=>(n[r]=rn(rn({},e.headings.sizes[r]),t.headings.sizes[r]),n)),{}):e.headings.sizes;return on(rn({},n),{headings:on(rn(rn({},e.headings),t.headings),{sizes:r})})}if("breakpoints"===r&&t.breakpoints){const r=rn(rn({},e.breakpoints),t.breakpoints);return on(rn({},n),{breakpoints:Object.fromEntries(Object.entries(r).sort(((e,t)=>Ft(e[1])-Ft(t[1]))))})}return n[r]="object"==typeof t[r]?rn(rn({},e[r]),t[r]):"number"==typeof t[r]||"boolean"==typeof t[r]||"function"==typeof t[r]?t[r]:t[r]||e[r],n}),{});if((null==t?void 0:t.fontFamily)&&!(null==(n=null==t?void 0:t.headings)?void 0:n.fontFamily)&&(r.headings.fontFamily=t.fontFamily),!(r.primaryColor in r.colors))throw new Error("MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color");return r}(c,f)));var c,f;return r.createElement(tt,{theme:u},r.createElement(hn.Provider,{value:{theme:u,emotionCache:t}},n&&r.createElement(sn,null),o&&r.createElement(Gt,{theme:u}),a&&r.createElement(Qt,{theme:u}),"function"==typeof u.globalStyles&&r.createElement(lt,{styles:u.globalStyles(u)}),l))}function wn(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=wn(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function kn(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=wn(e))&&(r&&(r+=" "),r+=t);return r}vn.displayName="@mantine/core/MantineProvider";const xn=Oe({key:"mantine",prepend:!0});var En=Object.defineProperty,Sn=Object.getOwnPropertySymbols,Fn=Object.prototype.hasOwnProperty,An=Object.prototype.propertyIsEnumerable,Cn=(e,t,n)=>t in e?En(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const On="ref";const{cssFactory:Pn}={cssFactory:function(e){const{cache:t}=e,n=(...e)=>{const{ref:n,args:r}=function(e){let t;if(1!==e.length)return{args:e,ref:t};const[n]=e;if(!(n instanceof Object))return{args:e,ref:t};if(!(On in n))return{args:e,ref:t};t=n[On];const r=((e,t)=>{for(var n in t||(t={}))Fn.call(t,n)&&Cn(e,n,t[n]);if(Sn)for(var n of Sn(t))An.call(t,n)&&Cn(e,n,t[n]);return e})({},n);return delete r[On],{args:[r],ref:t}}(e),o=Ve(r,t.registered);return Ne(t,o,!1),`${t.key}-${o.name}${void 0===n?"":` ${n}`}`};return{css:n,cx:(...e)=>function(e,t,n){const r=[],o=De(e,r,n);return r.length<2?n:o+t(r)}(t.registered,n,kn(e))}}};function Tn(){const e=yn()||xn;return function(t,n){const o=(0,r.useRef)();return(!o.current||n.length!==o.current.prevDeps.length||o.current.prevDeps.map(((e,t)=>e===n[t])).indexOf(!1)>=0)&&(o.current={v:Pn({cache:e}),prevDeps:[...n]}),o.current.v}(0,[e])}function Dn({cx:e,classes:t,context:n,classNames:r,name:o,cache:a}){const i=n.reduce(((e,t)=>(Object.keys(t.classNames).forEach((n=>{"string"!=typeof e[n]?e[n]=`${t.classNames[n]}`:e[n]=`${e[n]} ${t.classNames[n]}`})),e)),{});return Object.keys(t).reduce(((n,l)=>(n[l]=e(t[l],i[l],null!=r&&r[l],Array.isArray(o)?o.filter(Boolean).map((e=>`${(null==a?void 0:a.key)||"mantine"}-${e}-${l}`)).join(" "):o?`${(null==a?void 0:a.key)||"mantine"}-${o}-${l}`:null),n)),{})}var Rn=Object.defineProperty,Nn=Object.getOwnPropertySymbols,Ln=Object.prototype.hasOwnProperty,_n=Object.prototype.propertyIsEnumerable,jn=(e,t,n)=>t in e?Rn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,In=(e,t)=>{for(var n in t||(t={}))Ln.call(t,n)&&jn(e,n,t[n]);if(Nn)for(var n of Nn(t))_n.call(t,n)&&jn(e,n,t[n]);return e};function zn(e,t){return t&&Object.keys(t).forEach((n=>{e[n]?e[n]=In(In({},e[n]),t[n]):e[n]=In({},t[n])})),e}function Bn(e,t,n,r){const o=e=>"function"==typeof e?e(t,n||{},r):e||{};return Array.isArray(e)?e.map((e=>o(e.styles))).reduce(((e,t)=>zn(e,t)),{}):o(e)}function Mn(e){const t="function"==typeof e?e:()=>e;return function(e,n){const r=mn(),o=function(e){const t=mn(),n=e=>{var n,r,o,a;return{styles:(null==(n=t.components[e])?void 0:n.styles)||{},classNames:(null==(r=t.components[e])?void 0:r.classNames)||{},variants:null==(o=t.components[e])?void 0:o.variants,sizes:null==(a=t.components[e])?void 0:a.sizes}};return Array.isArray(e)?e.map(n):[n(e)]}(null==n?void 0:n.name),a=yn(),i={variant:null==n?void 0:n.variant,size:null==n?void 0:n.size},{css:l,cx:s}=Tn(),u=t(r,e,i),c=Bn(null==n?void 0:n.styles,r,e,i),f=Bn(o,r,e,i),d=function({ctx:e,theme:t,params:n,variant:r,size:o}){return e.reduce(((e,a)=>(a.variants&&r in a.variants&&zn(e,a.variants[r](t,n,{variant:r,size:o})),a.sizes&&o in a.sizes&&zn(e,a.sizes[o](t,n,{variant:r,size:o})),e)),{})}({ctx:o,theme:r,params:e,variant:null==n?void 0:n.variant,size:null==n?void 0:n.size}),p=Object.fromEntries(Object.keys(u).map((e=>[e,s({[l(u[e])]:!(null==n?void 0:n.unstyled)},l(d[e]),l(f[e]),l(c[e]))])));return{classes:Dn({cx:s,classes:p,context:o,classNames:null==n?void 0:n.classNames,name:null==n?void 0:n.name,cache:a}),cx:s,theme:r}}}var $n=Object.defineProperty,Hn=Object.defineProperties,Un=Object.getOwnPropertyDescriptors,Wn=Object.getOwnPropertySymbols,Vn=Object.prototype.hasOwnProperty,qn=Object.prototype.propertyIsEnumerable,Gn=(e,t,n)=>t in e?$n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Yn=(e,t)=>{for(var n in t||(t={}))Vn.call(t,n)&&Gn(e,n,t[n]);if(Wn)for(var n of Wn(t))qn.call(t,n)&&Gn(e,n,t[n]);return e},Qn=(e,t)=>Hn(e,Un(t));function Xn(e,t,n){return void 0!==e?e in n.headings.sizes?n.headings.sizes[e].fontSize:xt(e):n.headings.sizes[t].fontSize}function Kn(e,t,n){return void 0!==e&&e in n.headings.sizes?n.headings.sizes[e].lineHeight:n.headings.sizes[t].lineHeight}const Zn=Mn(((e,{element:t,weight:n,inline:r},{size:o})=>({root:Qn(Yn({},e.fn.fontStyles()),{fontFamily:e.headings.fontFamily,fontWeight:n||e.headings.sizes[t].fontWeight||e.headings.fontWeight,fontSize:Xn(o,t,e),lineHeight:r?1:Kn(o,t,e),margin:0})})));var Jn=Object.defineProperty,er=Object.defineProperties,tr=Object.getOwnPropertyDescriptors,nr=Object.getOwnPropertySymbols,rr=Object.prototype.hasOwnProperty,or=Object.prototype.propertyIsEnumerable,ar=(e,t,n)=>t in e?Jn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ir=(e,t)=>{for(var n in t||(t={}))rr.call(t,n)&&ar(e,n,t[n]);if(nr)for(var n of nr(t))or.call(t,n)&&ar(e,n,t[n]);return e},lr=(e,t)=>er(e,tr(t));function sr({underline:e,strikethrough:t}){const n=[];return e&&n.push("underline"),t&&n.push("line-through"),n.length>0?n.join(" "):"none"}function ur({theme:e,color:t}){return"dimmed"===t?e.fn.dimmed():"string"==typeof t&&(t in e.colors||t.split(".")[0]in e.colors)?e.fn.variant({variant:"filled",color:t}).background:t||"inherit"}function cr(e){return"number"==typeof e?{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical"}:null}function fr({theme:e,truncate:t}){return"start"===t?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",direction:"ltr"===e.dir?"rtl":"ltr",textAlign:"ltr"===e.dir?"right":"left"}:t?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:null}var dr=Mn(((e,{color:t,lineClamp:n,truncate:r,inline:o,inherit:a,underline:i,gradient:l,weight:s,transform:u,align:c,strikethrough:f,italic:d},{size:p})=>{const g=e.fn.variant({variant:"gradient",gradient:l});return{root:lr(ir(ir(ir(ir({},e.fn.fontStyles()),e.fn.focusStyles()),cr(n)),fr({theme:e,truncate:r})),{color:ur({color:t,theme:e}),fontFamily:a?"inherit":e.fontFamily,fontSize:a||void 0===p?"inherit":St({size:p,sizes:e.fontSizes}),lineHeight:a?"inherit":o?1:e.lineHeight,textDecoration:sr({underline:i,strikethrough:f}),WebkitTapHighlightColor:"transparent",fontWeight:a?"inherit":s,textTransform:u,textAlign:c,fontStyle:d?"italic":void 0}),gradient:{backgroundImage:g.background,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}}));const pr=dr;var gr=Object.getOwnPropertySymbols,hr=Object.prototype.hasOwnProperty,mr=Object.prototype.propertyIsEnumerable;const yr=["-xs","-sm","-md","-lg","-xl"],br={identity:function(e){return e},color:function(e,t){return"dimmed"===e?"dark"===t.colorScheme?t.colors.dark[2]:t.colors.gray[6]:t.fn.variant({variant:"filled",color:e,primaryFallback:!1}).background},size:function(e){return xt(e)},fontSize:function(e,t){return St({size:e,sizes:t.fontSizes})},spacing:function(e,t){return yr.includes(e)?`calc(${St({size:e.replace("-",""),sizes:t.spacing})} * -1)`:St({size:e,sizes:t.spacing})}},vr={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},mx:{type:"spacing",property:["marginRight","marginLeft"]},my:{type:"spacing",property:["marginTop","marginBottom"]},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},px:{type:"spacing",property:["paddingRight","paddingLeft"]},py:{type:"spacing",property:["paddingTop","paddingBottom"]},bg:{type:"color",property:"background"},c:{type:"color",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"identity",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"identity",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"identity",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"}};var wr=Object.defineProperty,kr=Object.getOwnPropertySymbols,xr=Object.prototype.hasOwnProperty,Er=Object.prototype.propertyIsEnumerable,Sr=(e,t,n)=>t in e?wr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Fr=(e,t)=>{for(var n in t||(t={}))xr.call(t,n)&&Sr(e,n,t[n]);if(kr)for(var n of kr(t))Er.call(t,n)&&Sr(e,n,t[n]);return e};function Ar(e,t,n=vr){return Object.keys(n).reduce(((r,o)=>(o in e&&void 0!==e[o]&&r.push(function({value:e,theme:t,getValue:n,property:r}){if(null==e)return;if("object"==typeof e){const o=function(e,t){const n=Object.keys(e).filter((e=>"base"!==e)).sort(((e,n)=>Ft(St({size:e,sizes:t.breakpoints}))-Ft(St({size:n,sizes:t.breakpoints}))));return"base"in e?["base",...n]:n}(e,t).reduce(((o,a)=>{if("base"===a&&void 0!==e.base){const a=n(e.base,t);return Array.isArray(r)?(r.forEach((e=>{o[e]=a})),o):(o[r]=a,o)}const i=n(e[a],t);return Array.isArray(r)?(o[t.fn.largerThan(a)]={},r.forEach((e=>{o[t.fn.largerThan(a)][e]=i})),o):(o[t.fn.largerThan(a)]={[r]:i},o)}),{});return o}const o=n(e,t);return Array.isArray(r)?r.reduce(((e,t)=>(e[t]=o,e)),{}):{[r]:o}}({value:e[o],getValue:br[n[o].type],property:n[o].property,theme:t})),r)),[]).reduce(((e,t)=>(Object.keys(t).forEach((n=>{"object"==typeof t[n]&&null!==t[n]?e[n]=n in e?Fr(Fr({},e[n]),t[n]):t[n]:e[n]=t[n]})),e)),{})}function Cr(e,t){return"function"==typeof e?e(t):e}function Or(e,t,n){const r=mn(),{css:o,cx:a}=Tn();return Array.isArray(e)?a(n,o(Ar(t,r)),e.map((e=>o(Cr(e,r))))):a(n,o(Cr(e,r)),o(Ar(t,r)))}var Pr=Object.defineProperty,Tr=Object.getOwnPropertySymbols,Dr=Object.prototype.hasOwnProperty,Rr=Object.prototype.propertyIsEnumerable,Nr=(e,t,n)=>t in e?Pr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const Lr=(0,r.forwardRef)(((e,t)=>{var n=e,{className:o,component:a,style:i,sx:l}=n,s=((e,t)=>{var n={};for(var r in e)Dr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Tr)for(var r of Tr(e))t.indexOf(r)<0&&Rr.call(e,r)&&(n[r]=e[r]);return n})(n,["className","component","style","sx"]);const{systemStyles:u,rest:c}=function(e){const t=e,{m:n,mx:r,my:o,mt:a,mb:i,ml:l,mr:s,p:u,px:c,py:f,pt:d,pb:p,pl:g,pr:h,bg:m,c:y,opacity:b,ff:v,fz:w,fw:k,lts:x,ta:E,lh:S,fs:F,tt:A,td:C,w:O,miw:P,maw:T,h:D,mih:R,mah:N,bgsz:L,bgp:_,bgr:j,bga:I,pos:z,top:B,left:M,bottom:$,right:H,inset:U,display:W}=t,V=((e,t)=>{var n={};for(var r in e)hr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&gr)for(var r of gr(e))t.indexOf(r)<0&&mr.call(e,r)&&(n[r]=e[r]);return n})(t,["m","mx","my","mt","mb","ml","mr","p","px","py","pt","pb","pl","pr","bg","c","opacity","ff","fz","fw","lts","ta","lh","fs","tt","td","w","miw","maw","h","mih","mah","bgsz","bgp","bgr","bga","pos","top","left","bottom","right","inset","display"]);return{systemStyles:an({m:n,mx:r,my:o,mt:a,mb:i,ml:l,mr:s,p:u,px:c,py:f,pt:d,pb:p,pl:g,pr:h,bg:m,c:y,opacity:b,ff:v,fz:w,fw:k,lts:x,ta:E,lh:S,fs:F,tt:A,td:C,w:O,miw:P,maw:T,h:D,mih:R,mah:N,bgsz:L,bgp:_,bgr:j,bga:I,pos:z,top:B,left:M,bottom:$,right:H,inset:U,display:W}),rest:V}}(s),f=a||"div";return r.createElement(f,((e,t)=>{for(var n in t||(t={}))Dr.call(t,n)&&Nr(e,n,t[n]);if(Tr)for(var n of Tr(t))Rr.call(t,n)&&Nr(e,n,t[n]);return e})({ref:t,className:Or(l,u,o),style:i},c))}));Lr.displayName="@mantine/core/Box";const _r=Lr;var jr=Object.defineProperty,Ir=Object.getOwnPropertySymbols,zr=Object.prototype.hasOwnProperty,Br=Object.prototype.propertyIsEnumerable,Mr=(e,t,n)=>t in e?jr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const $r={variant:"text"},Hr=(0,r.forwardRef)(((e,t)=>{const n=bn("Text",$r,e),{className:o,size:a,weight:i,transform:l,color:s,align:u,variant:c,lineClamp:f,truncate:d,gradient:p,inline:g,inherit:h,underline:m,strikethrough:y,italic:b,classNames:v,styles:w,unstyled:k,span:x,__staticSelector:E}=n,S=((e,t)=>{var n={};for(var r in e)zr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Ir)for(var r of Ir(e))t.indexOf(r)<0&&Br.call(e,r)&&(n[r]=e[r]);return n})(n,["className","size","weight","transform","color","align","variant","lineClamp","truncate","gradient","inline","inherit","underline","strikethrough","italic","classNames","styles","unstyled","span","__staticSelector"]),{classes:F,cx:A}=pr({color:s,lineClamp:f,truncate:d,inline:g,inherit:h,underline:m,strikethrough:y,italic:b,weight:i,transform:l,align:u,gradient:p},{unstyled:k,name:E||"Text",variant:c,size:a});return r.createElement(_r,((e,t)=>{for(var n in t||(t={}))zr.call(t,n)&&Mr(e,n,t[n]);if(Ir)for(var n of Ir(t))Br.call(t,n)&&Mr(e,n,t[n]);return e})({ref:t,className:A(F.root,{[F.gradient]:"gradient"===c},o),component:x?"span":"div"},S))}));Hr.displayName="@mantine/core/Text";const Ur=Hr;var Wr=Object.defineProperty,Vr=Object.getOwnPropertySymbols,qr=Object.prototype.hasOwnProperty,Gr=Object.prototype.propertyIsEnumerable,Yr=(e,t,n)=>t in e?Wr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const Qr={order:1},Xr=(0,r.forwardRef)(((e,t)=>{const n=bn("Title",Qr,e),{className:o,order:a,children:i,unstyled:l,size:s,weight:u,inline:c,variant:f}=n,d=((e,t)=>{var n={};for(var r in e)qr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Vr)for(var r of Vr(e))t.indexOf(r)<0&&Gr.call(e,r)&&(n[r]=e[r]);return n})(n,["className","order","children","unstyled","size","weight","inline","variant"]),{classes:p,cx:g}=Zn({element:`h${a}`,weight:u,inline:c},{name:"Title",unstyled:l,variant:f,size:s});return[1,2,3,4,5,6].includes(a)?r.createElement(Ur,((e,t)=>{for(var n in t||(t={}))qr.call(t,n)&&Yr(e,n,t[n]);if(Vr)for(var n of Vr(t))Gr.call(t,n)&&Yr(e,n,t[n]);return e})({variant:f,component:`h${a}`,ref:t,className:g(p.root,o)},d),i):null}));Xr.displayName="@mantine/core/Title";var Kr=Object.defineProperty,Zr=Object.defineProperties,Jr=Object.getOwnPropertyDescriptors,eo=Object.getOwnPropertySymbols,to=Object.prototype.hasOwnProperty,no=Object.prototype.propertyIsEnumerable,ro=(e,t,n)=>t in e?Kr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,oo=(e,t)=>{for(var n in t||(t={}))to.call(t,n)&&ro(e,n,t[n]);if(eo)for(var n of eo(t))no.call(t,n)&&ro(e,n,t[n]);return e},ao=(e,t)=>Zr(e,Jr(t));const io=Mn(((e,{color:t})=>{const n=t||("dark"===e.colorScheme?"dark":"gray"),r=e.fn.variant({color:n,variant:"light"});return{root:ao(oo({},e.fn.fontStyles()),{lineHeight:e.lineHeight,padding:`${xt(2)} calc(${e.spacing.xs} / 2)`,borderRadius:e.radius.sm,color:"dark"===e.colorScheme?"dark"===n?e.colors.dark[0]:e.white:e.colors.dark[7],backgroundColor:"dark"===e.colorScheme&&"dark"===n?e.colors.dark[5]:r.background,fontFamily:e.fontFamilyMonospace,fontSize:e.fontSizes.xs}),block:{padding:e.spacing.xs,margin:0,overflowX:"auto"}}}));var lo=Object.defineProperty,so=Object.getOwnPropertySymbols,uo=Object.prototype.hasOwnProperty,co=Object.prototype.propertyIsEnumerable,fo=(e,t,n)=>t in e?lo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,po=(e,t)=>{for(var n in t||(t={}))uo.call(t,n)&&fo(e,n,t[n]);if(so)for(var n of so(t))co.call(t,n)&&fo(e,n,t[n]);return e};const go={},ho=(0,r.forwardRef)(((e,t)=>{const n=bn("Code",go,e),{className:o,children:a,block:i,color:l,unstyled:s,variant:u}=n,c=((e,t)=>{var n={};for(var r in e)uo.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&so)for(var r of so(e))t.indexOf(r)<0&&co.call(e,r)&&(n[r]=e[r]);return n})(n,["className","children","block","color","unstyled","variant"]),{classes:f,cx:d}=io({color:l},{name:"Code",unstyled:s,variant:u});return i?r.createElement(_r,po({component:"pre",dir:"ltr",className:d(f.root,f.block,o),ref:t},c),a):r.createElement(_r,po({component:"code",className:d(f.root,o),ref:t,dir:"ltr"},c),a)}));function mo(e){const t=(0,r.createContext)(null);return[({children:e,value:n})=>r.createElement(t.Provider,{value:n},e),()=>{const n=(0,r.useContext)(t);if(null===n)throw new Error(e);return n}]}ho.displayName="@mantine/core/Code";const[yo,bo]=mo("List component was not found in tree");function vo(e){return`___ref-${e||""}`}const wo=Mn(((e,{spacing:t,center:n})=>({itemWrapper:{ref:vo("itemWrapper"),display:"inline-flex",flexDirection:"column",whiteSpace:"normal"},item:{whiteSpace:"nowrap",lineHeight:n?1:e.lineHeight,"&:not(:first-of-type)":{marginTop:St({size:t,sizes:e.spacing})},"&[data-with-icon]":{listStyle:"none",[`& .${vo("itemWrapper")}`]:{display:"inline-flex",alignItems:n?"center":"flex-start",flexDirection:"row"}}},itemIcon:{display:"inline-block",verticalAlign:"middle",marginRight:e.spacing.sm}})));var ko=Object.defineProperty,xo=Object.getOwnPropertySymbols,Eo=Object.prototype.hasOwnProperty,So=Object.prototype.propertyIsEnumerable,Fo=(e,t,n)=>t in e?ko(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const Ao={},Co=(0,r.forwardRef)(((e,t)=>{const n=bn("ListItem",Ao,e),{className:o,children:a,icon:i}=n,l=((e,t)=>{var n={};for(var r in e)Eo.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&xo)for(var r of xo(e))t.indexOf(r)<0&&So.call(e,r)&&(n[r]=e[r]);return n})(n,["className","children","icon"]),{icon:s,spacing:u,center:c,listStyleType:f,size:d,withPadding:p,classNames:g,styles:h,unstyled:m,variant:y}=bo(),b=i||s,{classes:v,cx:w}=wo({withPadding:p,listStyleType:f,center:c,spacing:u},{classNames:g,styles:h,unstyled:m,name:"List",variant:y,size:d});return r.createElement(_r,((e,t)=>{for(var n in t||(t={}))Eo.call(t,n)&&Fo(e,n,t[n]);if(xo)for(var n of xo(t))So.call(t,n)&&Fo(e,n,t[n]);return e})({component:"li",className:w(v.item,o),"data-with-icon":!!b||void 0,ref:t},l),r.createElement("div",{className:v.itemWrapper},b&&r.createElement("span",{className:v.itemIcon},b),r.createElement("span",null,a)))}));Co.displayName="@mantine/core/ListItem";var Oo=Object.defineProperty,Po=Object.defineProperties,To=Object.getOwnPropertyDescriptors,Do=Object.getOwnPropertySymbols,Ro=Object.prototype.hasOwnProperty,No=Object.prototype.propertyIsEnumerable,Lo=(e,t,n)=>t in e?Oo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_o=(e,t)=>{for(var n in t||(t={}))Ro.call(t,n)&&Lo(e,n,t[n]);if(Do)for(var n of Do(t))No.call(t,n)&&Lo(e,n,t[n]);return e},jo=(e,t)=>Po(e,To(t));const Io=Mn(((e,{withPadding:t,listStyleType:n},{size:r})=>({root:jo(_o({},e.fn.fontStyles()),{listStyleType:n,color:"dark"===e.colorScheme?e.colors.dark[0]:e.black,fontSize:St({size:r,sizes:e.fontSizes}),lineHeight:e.lineHeight,margin:0,paddingLeft:t?e.spacing.xl:0,listStylePosition:"inside"})})));var zo=Object.defineProperty,Bo=Object.getOwnPropertySymbols,Mo=Object.prototype.hasOwnProperty,$o=Object.prototype.propertyIsEnumerable,Ho=(e,t,n)=>t in e?zo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const Uo={type:"unordered",size:"md",spacing:0},Wo=(0,r.forwardRef)(((e,t)=>{const n=bn("List",Uo,e),{children:o,type:a,size:i,listStyleType:l,withPadding:s,center:u,spacing:c,icon:f,className:d,styles:p,classNames:g,unstyled:h,variant:m}=n,y=((e,t)=>{var n={};for(var r in e)Mo.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Bo)for(var r of Bo(e))t.indexOf(r)<0&&$o.call(e,r)&&(n[r]=e[r]);return n})(n,["children","type","size","listStyleType","withPadding","center","spacing","icon","className","styles","classNames","unstyled","variant"]),{classes:b,cx:v}=Io({withPadding:s,listStyleType:l,center:u,spacing:c},{classNames:g,styles:p,name:"List",unstyled:h,size:i,variant:m});return r.createElement(yo,{value:{spacing:c,center:u,icon:f,listStyleType:l,size:i,withPadding:s,classNames:g,styles:p,unstyled:h,variant:m}},r.createElement(_r,((e,t)=>{for(var n in t||(t={}))Mo.call(t,n)&&Ho(e,n,t[n]);if(Bo)for(var n of Bo(t))$o.call(t,n)&&Ho(e,n,t[n]);return e})({component:"unordered"===a?"ul":"ol",className:v(b.root,d),ref:t},y),o))}));Wo.Item=Co,Wo.displayName="@mantine/core/List";const Vo="undefined"!=typeof document?r.useLayoutEffect:r.useEffect,qo=r["useId".toString()]||(()=>{});function Go(){return`mantine-${Math.random().toString(36).slice(2,11)}`}function Yo(e){const t=function(){const e=qo();return e?`mantine-${e.replace(/:/g,"")}`:""}(),[n,o]=(0,r.useState)(t);return Vo((()=>{o(Go())}),[]),"string"==typeof e?e:"undefined"==typeof window?t:n}var Qo=Object.defineProperty,Xo=Object.defineProperties,Ko=Object.getOwnPropertyDescriptors,Zo=Object.getOwnPropertySymbols,Jo=Object.prototype.hasOwnProperty,ea=Object.prototype.propertyIsEnumerable,ta=(e,t,n)=>t in e?Qo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,na=(e,t)=>{for(var n in t||(t={}))Jo.call(t,n)&&ta(e,n,t[n]);if(Zo)for(var n of Zo(t))ea.call(t,n)&&ta(e,n,t[n]);return e},ra=(e,t)=>Xo(e,Ko(t));function oa({variant:e,color:t,theme:n}){if("filled"===e)return{backgroundColor:n.fn.variant({variant:"filled",color:t}).background,color:n.white};if("outline"===e){const e=n.fn.variant({variant:"outline",color:t});return{color:e.color,borderColor:e.border,backgroundColor:"dark"===n.colorScheme?n.colors.dark[6]:n.white}}if("light"===e){const e=n.fn.variant({variant:"light",color:t});return{backgroundColor:e.background,color:e.color}}return null}const aa=Mn(((e,{radius:t,color:n},{variant:r})=>({root:na(ra(na({},e.fn.fontStyles()),{position:"relative",overflow:"hidden",paddingTop:e.spacing.sm,paddingBottom:e.spacing.sm,paddingLeft:e.spacing.md,paddingRight:e.spacing.sm,borderRadius:e.fn.radius(t),border:`${xt(1)} solid transparent`}),oa({variant:r,color:n,theme:e})),wrapper:{display:"flex"},body:{flex:1},title:{boxSizing:"border-box",margin:0,marginBottom:e.spacing.xs,display:"flex",alignItems:"center",justifyContent:"space-between",lineHeight:e.lineHeight,fontSize:e.fontSizes.sm,fontWeight:700,"&[data-with-close-button]":{paddingRight:e.spacing.md}},label:{display:"block",overflow:"hidden",textOverflow:"ellipsis"},icon:{lineHeight:1,width:xt(20),height:xt(20),display:"flex",alignItems:"center",justifyContent:"flex-start",marginRight:e.spacing.md,marginTop:1},message:ra(na({},e.fn.fontStyles()),{lineHeight:e.lineHeight,textOverflow:"ellipsis",overflow:"hidden",fontSize:e.fontSizes.sm,color:"filled"===r?e.white:"dark"===e.colorScheme?"light"===r?e.white:e.colors.dark[0]:e.black}),closeButton:{width:xt(10),height:xt(10),color:"filled"===r?e.white:"dark"===e.colorScheme?"light"===r?e.white:e.colors.dark[0]:e.black}})));var ia=Object.defineProperty,la=Object.defineProperties,sa=Object.getOwnPropertyDescriptors,ua=Object.getOwnPropertySymbols,ca=Object.prototype.hasOwnProperty,fa=Object.prototype.propertyIsEnumerable,da=(e,t,n)=>t in e?ia(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pa=(e,t)=>{for(var n in t||(t={}))ca.call(t,n)&&da(e,n,t[n]);if(ua)for(var n of ua(t))fa.call(t,n)&&da(e,n,t[n]);return e},ga=(e,t)=>la(e,sa(t));const ha=["subtle","filled","outline","light","default","transparent","gradient"],ma={xs:xt(18),sm:xt(22),md:xt(28),lg:xt(34),xl:xt(44)};function ya({variant:e,theme:t,color:n,gradient:r}){const o=t.fn.variant({color:n,variant:e,gradient:r});return"gradient"===e?{border:0,backgroundImage:o.background,color:o.color,"&:hover":t.fn.hover({backgroundSize:"200%"})}:ha.includes(e)?pa({border:`${xt(1)} solid ${o.border}`,backgroundColor:o.background,color:o.color},t.fn.hover({backgroundColor:o.hover})):null}var ba=Mn(((e,{radius:t,color:n,gradient:r},{variant:o,size:a})=>({root:ga(pa({position:"relative",borderRadius:e.fn.radius(t),padding:0,lineHeight:1,display:"flex",alignItems:"center",justifyContent:"center",height:St({size:a,sizes:ma}),minHeight:St({size:a,sizes:ma}),width:St({size:a,sizes:ma}),minWidth:St({size:a,sizes:ma})},ya({variant:o,theme:e,color:n,gradient:r})),{"&:active":e.activeStyles,"& [data-action-icon-loader]":{maxWidth:"70%"},"&:disabled, &[data-disabled]":{color:e.colors.gray["dark"===e.colorScheme?6:4],cursor:"not-allowed",backgroundColor:"transparent"===o?void 0:e.fn.themeColor("gray","dark"===e.colorScheme?8:1),borderColor:"transparent"===o?void 0:e.fn.themeColor("gray","dark"===e.colorScheme?8:1),backgroundImage:"none",pointerEvents:"none","&:active":{transform:"none"}},"&[data-loading]":{pointerEvents:"none","&::before":ga(pa({content:'""'},e.fn.cover(xt(-1))),{backgroundColor:"dark"===e.colorScheme?e.fn.rgba(e.colors.dark[7],.5):"rgba(255, 255, 255, .5)",borderRadius:e.fn.radius(t),cursor:"not-allowed"})}})})));const va=ba;var wa=Object.defineProperty,ka=Object.getOwnPropertySymbols,xa=Object.prototype.hasOwnProperty,Ea=Object.prototype.propertyIsEnumerable,Sa=(e,t,n)=>t in e?wa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Fa=(e,t)=>{for(var n in t||(t={}))xa.call(t,n)&&Sa(e,n,t[n]);if(ka)for(var n of ka(t))Ea.call(t,n)&&Sa(e,n,t[n]);return e},Aa=(e,t)=>{var n={};for(var r in e)xa.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ka)for(var r of ka(e))t.indexOf(r)<0&&Ea.call(e,r)&&(n[r]=e[r]);return n},Ca=Object.defineProperty,Oa=Object.getOwnPropertySymbols,Pa=Object.prototype.hasOwnProperty,Ta=Object.prototype.propertyIsEnumerable,Da=(e,t,n)=>t in e?Ca(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ra=(e,t)=>{for(var n in t||(t={}))Pa.call(t,n)&&Da(e,n,t[n]);if(Oa)for(var n of Oa(t))Ta.call(t,n)&&Da(e,n,t[n]);return e},Na=(e,t)=>{var n={};for(var r in e)Pa.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Oa)for(var r of Oa(e))t.indexOf(r)<0&&Ta.call(e,r)&&(n[r]=e[r]);return n},La=Object.defineProperty,_a=Object.getOwnPropertySymbols,ja=Object.prototype.hasOwnProperty,Ia=Object.prototype.propertyIsEnumerable,za=(e,t,n)=>t in e?La(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ba=(e,t)=>{for(var n in t||(t={}))ja.call(t,n)&&za(e,n,t[n]);if(_a)for(var n of _a(t))Ia.call(t,n)&&za(e,n,t[n]);return e},Ma=(e,t)=>{var n={};for(var r in e)ja.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&_a)for(var r of _a(e))t.indexOf(r)<0&&Ia.call(e,r)&&(n[r]=e[r]);return n},$a=Object.defineProperty,Ha=Object.getOwnPropertySymbols,Ua=Object.prototype.hasOwnProperty,Wa=Object.prototype.propertyIsEnumerable,Va=(e,t,n)=>t in e?$a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const qa={bars:function(e){var t=e,{size:n,color:o}=t;const a=Aa(t,["size","color"]),{style:i}=a,l=Aa(a,["style"]);return r.createElement("svg",Fa({viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg",fill:o,style:Fa({width:n},i)},l),r.createElement("rect",{y:"10",width:"15",height:"120",rx:"6"},r.createElement("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),r.createElement("rect",{x:"30",y:"10",width:"15",height:"120",rx:"6"},r.createElement("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),r.createElement("rect",{x:"60",width:"15",height:"140",rx:"6"},r.createElement("animate",{attributeName:"height",begin:"0s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"y",begin:"0s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),r.createElement("rect",{x:"90",y:"10",width:"15",height:"120",rx:"6"},r.createElement("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),r.createElement("rect",{x:"120",y:"10",width:"15",height:"120",rx:"6"},r.createElement("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})))},oval:function(e){var t=e,{size:n,color:o}=t;const a=Na(t,["size","color"]),{style:i}=a,l=Na(a,["style"]);return r.createElement("svg",Ra({viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:o,style:Ra({width:n,height:n},i)},l),r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("g",{transform:"translate(2.5 2.5)",strokeWidth:"5"},r.createElement("circle",{strokeOpacity:".5",cx:"16",cy:"16",r:"16"}),r.createElement("path",{d:"M32 16c0-9.94-8.06-16-16-16"},r.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 16 16",to:"360 16 16",dur:"1s",repeatCount:"indefinite"})))))},dots:function(e){var t=e,{size:n,color:o}=t;const a=Ma(t,["size","color"]),{style:i}=a,l=Ma(a,["style"]);return r.createElement("svg",Ba({viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:o,style:Ba({width:n},i)},l),r.createElement("circle",{cx:"15",cy:"15",r:"15"},r.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),r.createElement("circle",{cx:"60",cy:"15",r:"9",fillOpacity:"0.3"},r.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"fill-opacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),r.createElement("circle",{cx:"105",cy:"15",r:"15"},r.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})))}},Ga={xs:xt(18),sm:xt(22),md:xt(36),lg:xt(44),xl:xt(58)},Ya={size:"md"};function Qa(e){const t=bn("Loader",Ya,e),{size:n,color:o,variant:a}=t,i=((e,t)=>{var n={};for(var r in e)Ua.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Ha)for(var r of Ha(e))t.indexOf(r)<0&&Wa.call(e,r)&&(n[r]=e[r]);return n})(t,["size","color","variant"]),l=mn(),s=a in qa?a:l.loader;return r.createElement(_r,((e,t)=>{for(var n in t||(t={}))Ua.call(t,n)&&Va(e,n,t[n]);if(Ha)for(var n of Ha(t))Wa.call(t,n)&&Va(e,n,t[n]);return e})({role:"presentation",component:qa[s]||qa.bars,size:St({size:n,sizes:Ga}),color:l.fn.variant({variant:"filled",primaryFallback:!1,color:o||l.primaryColor}).background},i))}Qa.displayName="@mantine/core/Loader";var Xa=Object.defineProperty,Ka=Object.defineProperties,Za=Object.getOwnPropertyDescriptors,Ja=Object.getOwnPropertySymbols,ei=Object.prototype.hasOwnProperty,ti=Object.prototype.propertyIsEnumerable,ni=(e,t,n)=>t in e?Xa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ri=(e,t)=>{for(var n in t||(t={}))ei.call(t,n)&&ni(e,n,t[n]);if(Ja)for(var n of Ja(t))ti.call(t,n)&&ni(e,n,t[n]);return e},oi=(e,t)=>Ka(e,Za(t));const ai=Mn((e=>({root:oi(ri(ri({},e.fn.focusStyles()),e.fn.fontStyles()),{cursor:"pointer",border:0,padding:0,appearance:"none",fontSize:e.fontSizes.md,backgroundColor:"transparent",textAlign:"left",color:"dark"===e.colorScheme?e.colors.dark[0]:e.black,textDecoration:"none",boxSizing:"border-box"})})));var ii=Object.defineProperty,li=Object.getOwnPropertySymbols,si=Object.prototype.hasOwnProperty,ui=Object.prototype.propertyIsEnumerable,ci=(e,t,n)=>t in e?ii(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const fi=(0,r.forwardRef)(((e,t)=>{const n=bn("UnstyledButton",{},e),{className:o,component:a="button",unstyled:i,variant:l}=n,s=((e,t)=>{var n={};for(var r in e)si.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&li)for(var r of li(e))t.indexOf(r)<0&&ui.call(e,r)&&(n[r]=e[r]);return n})(n,["className","component","unstyled","variant"]),{classes:u,cx:c}=ai(null,{name:"UnstyledButton",unstyled:i,variant:l});return r.createElement(_r,((e,t)=>{for(var n in t||(t={}))si.call(t,n)&&ci(e,n,t[n]);if(li)for(var n of li(t))ui.call(t,n)&&ci(e,n,t[n]);return e})({component:a,ref:t,className:c(u.root,o),type:"button"===a?"button":void 0},s))}));fi.displayName="@mantine/core/UnstyledButton";const di=fi;var pi=Object.defineProperty,gi=Object.getOwnPropertySymbols,hi=Object.prototype.hasOwnProperty,mi=Object.prototype.propertyIsEnumerable,yi=(e,t,n)=>t in e?pi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bi=(e,t)=>{for(var n in t||(t={}))hi.call(t,n)&&yi(e,n,t[n]);if(gi)for(var n of gi(t))mi.call(t,n)&&yi(e,n,t[n]);return e};const vi={color:"gray",size:"md",variant:"subtle"},wi=(0,r.forwardRef)(((e,t)=>{const n=bn("ActionIcon",vi,e),{className:o,color:a,children:i,radius:l,size:s,variant:u,gradient:c,disabled:f,loaderProps:d,loading:p,unstyled:g,__staticSelector:h}=n,m=((e,t)=>{var n={};for(var r in e)hi.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&gi)for(var r of gi(e))t.indexOf(r)<0&&mi.call(e,r)&&(n[r]=e[r]);return n})(n,["className","color","children","radius","size","variant","gradient","disabled","loaderProps","loading","unstyled","__staticSelector"]),{classes:y,cx:b,theme:v}=va({radius:l,color:a,gradient:c},{name:["ActionIcon",h],unstyled:g,size:s,variant:u}),w=r.createElement(Qa,bi({color:v.fn.variant({color:a,variant:u}).color,size:"100%","data-action-icon-loader":!0},d));return r.createElement(di,bi({className:b(y.root,o),ref:t,disabled:f,"data-disabled":f||void 0,"data-loading":p||void 0,unstyled:g},m),p?w:i)}));wi.displayName="@mantine/core/ActionIcon";const ki=wi;var xi=Object.defineProperty,Ei=Object.getOwnPropertySymbols,Si=Object.prototype.hasOwnProperty,Fi=Object.prototype.propertyIsEnumerable,Ai=(e,t,n)=>t in e?xi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ci=(e,t)=>{for(var n in t||(t={}))Si.call(t,n)&&Ai(e,n,t[n]);if(Ei)for(var n of Ei(t))Fi.call(t,n)&&Ai(e,n,t[n]);return e};function Oi(e){const t=e,{width:n,height:o,style:a}=t,i=((e,t)=>{var n={};for(var r in e)Si.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Ei)for(var r of Ei(e))t.indexOf(r)<0&&Fi.call(e,r)&&(n[r]=e[r]);return n})(t,["width","height","style"]);return r.createElement("svg",Ci({viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Ci({width:n,height:o},a)},i),r.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}Oi.displayName="@mantine/core/CloseIcon";var Pi=Object.defineProperty,Ti=Object.getOwnPropertySymbols,Di=Object.prototype.hasOwnProperty,Ri=Object.prototype.propertyIsEnumerable,Ni=(e,t,n)=>t in e?Pi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const Li={xs:xt(12),sm:xt(16),md:xt(20),lg:xt(28),xl:xt(34)},_i={size:"sm"},ji=(0,r.forwardRef)(((e,t)=>{const n=bn("CloseButton",_i,e),{iconSize:o,size:a,children:i}=n,l=((e,t)=>{var n={};for(var r in e)Di.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Ti)for(var r of Ti(e))t.indexOf(r)<0&&Ri.call(e,r)&&(n[r]=e[r]);return n})(n,["iconSize","size","children"]),s=xt(o||Li[a]);return r.createElement(ki,((e,t)=>{for(var n in t||(t={}))Di.call(t,n)&&Ni(e,n,t[n]);if(Ti)for(var n of Ti(t))Ri.call(t,n)&&Ni(e,n,t[n]);return e})({ref:t,__staticSelector:"CloseButton",size:a},l),i||r.createElement(Oi,{width:s,height:s}))}));ji.displayName="@mantine/core/CloseButton";const Ii=ji;var zi=Object.defineProperty,Bi=Object.getOwnPropertySymbols,Mi=Object.prototype.hasOwnProperty,$i=Object.prototype.propertyIsEnumerable,Hi=(e,t,n)=>t in e?zi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const Ui={variant:"light"},Wi=(0,r.forwardRef)(((e,t)=>{const n=bn("Alert",Ui,e),{id:o,className:a,title:i,variant:l,children:s,color:u,classNames:c,icon:f,styles:d,onClose:p,radius:g,withCloseButton:h,closeButtonLabel:m,unstyled:y}=n,b=((e,t)=>{var n={};for(var r in e)Mi.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Bi)for(var r of Bi(e))t.indexOf(r)<0&&$i.call(e,r)&&(n[r]=e[r]);return n})(n,["id","className","title","variant","children","color","classNames","icon","styles","onClose","radius","withCloseButton","closeButtonLabel","unstyled"]),{classes:v,cx:w}=aa({color:u,radius:g},{classNames:c,styles:d,unstyled:y,variant:l,name:"Alert"}),k=Yo(o),x=i&&`${k}-title`,E=`${k}-body`;return r.createElement(_r,((e,t)=>{for(var n in t||(t={}))Mi.call(t,n)&&Hi(e,n,t[n]);if(Bi)for(var n of Bi(t))$i.call(t,n)&&Hi(e,n,t[n]);return e})({id:k,role:"alert","aria-labelledby":x,"aria-describedby":E,className:w(v.root,v[l],a),ref:t},b),r.createElement("div",{className:v.wrapper},f&&r.createElement("div",{className:v.icon},f),r.createElement("div",{className:v.body},i&&r.createElement("div",{className:v.title,"data-with-close-button":h||void 0},r.createElement("span",{id:x,className:v.label},i)),r.createElement("div",{id:E,className:v.message},s)),h&&r.createElement(Ii,{className:v.closeButton,onClick:p,variant:"transparent",size:16,iconSize:16,"aria-label":m})))}));Wi.displayName="@mantine/core/Alert";var Vi=Object.defineProperty,qi=Object.getOwnPropertySymbols,Gi=Object.prototype.hasOwnProperty,Yi=Object.prototype.propertyIsEnumerable,Qi=(e,t,n)=>t in e?Vi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xi=(e,t)=>{for(var n in t||(t={}))Gi.call(t,n)&&Qi(e,n,t[n]);if(qi)for(var n of qi(t))Yi.call(t,n)&&Qi(e,n,t[n]);return e};function Ki({theme:e,color:t}){return"dimmed"===t?e.fn.dimmed():e.fn.themeColor(t||e.primaryColor,"dark"===e.colorScheme?4:7,!1,!0)}const Zi=Mn(((e,{color:t,underline:n})=>({root:Xi({backgroundColor:"transparent",cursor:"pointer",padding:0,border:0,color:Ki({theme:e,color:t})},e.fn.hover({textDecoration:n?"underline":"none"}))})));var Ji=Object.defineProperty,el=Object.getOwnPropertySymbols,tl=Object.prototype.hasOwnProperty,nl=Object.prototype.propertyIsEnumerable,rl=(e,t,n)=>t in e?Ji(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ol=(e,t)=>{for(var n in t||(t={}))tl.call(t,n)&&rl(e,n,t[n]);if(el)for(var n of el(t))nl.call(t,n)&&rl(e,n,t[n]);return e};const al={underline:!0},il=(0,r.forwardRef)(((e,t)=>{const n=bn("Anchor",al,e),{component:o,className:a,unstyled:i,variant:l,size:s,color:u,underline:c}=n,f=((e,t)=>{var n={};for(var r in e)tl.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&el)for(var r of el(e))t.indexOf(r)<0&&nl.call(e,r)&&(n[r]=e[r]);return n})(n,["component","className","unstyled","variant","size","color","underline"]),{classes:d,cx:p}=Zi({color:u,underline:c},{name:"Anchor",unstyled:i,variant:l,size:s}),g="button"===o?{type:"button"}:null;return r.createElement(Ur,ol(ol({component:o||"a",ref:t,className:p(d.root,a),size:s},g),f))}));il.displayName="@mantine/core/Anchor";const ll=il;function sl(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=sl(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const ul=function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=sl(e))&&(r&&(r+=" "),r+=t);return r};var cl,fl,dl,pl,gl,hl=Object.create,ml=Object.defineProperty,yl=Object.defineProperties,bl=Object.getOwnPropertyDescriptor,vl=Object.getOwnPropertyDescriptors,wl=Object.getOwnPropertyNames,kl=Object.getOwnPropertySymbols,xl=Object.getPrototypeOf,El=Object.prototype.hasOwnProperty,Sl=Object.prototype.propertyIsEnumerable,Fl=(e,t,n)=>t in e?ml(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Al=(e,t)=>{for(var n in t||(t={}))El.call(t,n)&&Fl(e,n,t[n]);if(kl)for(var n of kl(t))Sl.call(t,n)&&Fl(e,n,t[n]);return e},Cl=(e,t)=>yl(e,vl(t)),Ol=(e,t)=>{var n={};for(var r in e)El.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&kl)for(var r of kl(e))t.indexOf(r)<0&&Sl.call(e,r)&&(n[r]=e[r]);return n},Pl=(cl={"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var n=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var o,a;switch(n=n||{},r.util.type(t)){case"Object":if(a=r.util.objId(t),n[a])return n[a];for(var i in o={},n[a]=o,t)t.hasOwnProperty(i)&&(o[i]=e(t[i],n));return o;case"Array":return a=r.util.objId(t),n[a]?n[a]:(o=[],n[a]=o,t.forEach((function(t,r){o[r]=e(t,n)})),o);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var o in t)n[o]=t[o];return n},insertBefore:function(e,t,n,o){var a=(o=o||r.languages)[e],i={};for(var l in a)if(a.hasOwnProperty(l)){if(l==t)for(var s in n)n.hasOwnProperty(s)&&(i[s]=n[s]);n.hasOwnProperty(l)||(i[l]=a[l])}var u=o[e];return o[e]=i,r.languages.DFS(r.languages,(function(t,n){n===u&&t!=e&&(this[t]=i)})),i},DFS:function e(t,n,o,a){a=a||{};var i=r.util.objId;for(var l in t)if(t.hasOwnProperty(l)){n.call(t,l,t[l],o||l);var s=t[l],u=r.util.type(s);"Object"!==u||a[i(s)]?"Array"!==u||a[i(s)]||(a[i(s)]=!0,e(s,n,l,a)):(a[i(s)]=!0,e(s,n,null,a))}}},plugins:{},highlight:function(e,t,n){var a={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",a),!a.grammar)throw new Error('The language "'+a.language+'" has no grammar.');return a.tokens=r.tokenize(a.code,a.grammar),r.hooks.run("after-tokenize",a),o.stringify(r.util.encode(a.tokens),a.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new l;return s(o,o.head,e),i(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,a=0;o=n[a++];)o(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var a=o[1].length;o.index+=a,o[0]=o[0].slice(a)}return o}function i(e,t,n,l,c,f){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var g=0;g<p.length;++g){if(f&&f.cause==d+","+g)return;var h=p[g],m=h.inside,y=!!h.lookbehind,b=!!h.greedy,v=h.alias;if(b&&!h.pattern.global){var w=h.pattern.toString().match(/[imsuy]*$/)[0];h.pattern=RegExp(h.pattern.source,w+"g")}for(var k=h.pattern||h,x=l.next,E=c;x!==t.tail&&!(f&&E>=f.reach);E+=x.value.length,x=x.next){var S=x.value;if(t.length>e.length)return;if(!(S instanceof o)){var F,A=1;if(b){if(!(F=a(k,E,e,y))||F.index>=e.length)break;var C=F.index,O=F.index+F[0].length,P=E;for(P+=x.value.length;C>=P;)P+=(x=x.next).value.length;if(E=P-=x.value.length,x.value instanceof o)continue;for(var T=x;T!==t.tail&&(P<O||"string"==typeof T.value);T=T.next)A++,P+=T.value.length;A--,S=e.slice(E,P),F.index-=E}else if(!(F=a(k,0,S,y)))continue;C=F.index;var D=F[0],R=S.slice(0,C),N=S.slice(C+D.length),L=E+S.length;f&&L>f.reach&&(f.reach=L);var _=x.prev;if(R&&(_=s(t,_,R),E+=R.length),u(t,_,A),x=s(t,_,new o(d,m?r.tokenize(D,m):D,v,D)),N&&s(t,x,N),A>1){var j={cause:d+","+g,reach:L};i(e,t,n,x.prev,E,j),f&&j.reach>f.reach&&(f.reach=j.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function s(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function u(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}return o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var o="";return t.forEach((function(t){o+=e(t,n)})),o}var a={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},i=t.alias;i&&(Array.isArray(i)?Array.prototype.push.apply(a.classes,i):a.classes.push(i)),r.hooks.run("wrap",a);var l="";for(var s in a.attributes)l+=" "+s+'="'+(a.attributes[s]||"").replace(/"/g,"&quot;")+'"';return"<"+a.tag+' class="'+a.classes.join(" ")+'"'+l+">"+a.content+"</"+a.tag+">"},r}();t.exports=n,n.default=n}},function(){return fl||(0,cl[wl(cl)[0]])((fl={exports:{}}).exports,fl),fl.exports}),Tl=((e,t,n)=>(n=null!=e?hl(xl(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of wl(t))El.call(e,n)||undefined===n||ml(e,n,{get:()=>t[n],enumerable:!(r=bl(t,n))||r.enumerable});return e})(e&&e.__esModule?n:ml(n,"default",{value:e,enumerable:!0}),e)))(Pl());Tl.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Tl.languages.markup.tag.inside["attr-value"].inside.entity=Tl.languages.markup.entity,Tl.languages.markup.doctype.inside["internal-subset"].inside=Tl.languages.markup,Tl.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(Tl.languages.markup.tag,"addInlined",{value:function(e,t){var n;(((n={})["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Tl.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,n={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}})["language-"+t]={pattern:/[\s\S]+/,inside:Tl.languages[t]},t={})[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:n},Tl.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(Tl.languages.markup.tag,"addAttribute",{value:function(e,t){Tl.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Tl.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Tl.languages.html=Tl.languages.markup,Tl.languages.mathml=Tl.languages.markup,Tl.languages.svg=Tl.languages.markup,Tl.languages.xml=Tl.languages.extend("markup",{}),Tl.languages.ssml=Tl.languages.xml,Tl.languages.atom=Tl.languages.xml,Tl.languages.rss=Tl.languages.xml,function(e){var t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,r="(?:[^\\\\-]|"+n.source+")",o=(r=RegExp(r+"-"+r),{pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"});e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:r,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":t,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":o}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":o}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}(Tl),Tl.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Tl.languages.javascript=Tl.languages.extend("clike",{"class-name":[Tl.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Tl.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Tl.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Tl.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Tl.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Tl.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Tl.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Tl.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Tl.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Tl.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Tl.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Tl.languages.markup&&(Tl.languages.markup.tag.addInlined("script","javascript"),Tl.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Tl.languages.js=Tl.languages.javascript,Tl.languages.actionscript=Tl.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),Tl.languages.actionscript["class-name"].alias="function",delete Tl.languages.actionscript.parameter,delete Tl.languages.actionscript["literal-property"],Tl.languages.markup&&Tl.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:Tl.languages.markup}}),pl=/#(?!\{).+/,gl={pattern:/#\{[^}]+\}/,alias:"variable"},(dl=Tl).languages.coffeescript=dl.languages.extend("javascript",{comment:pl,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:gl}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),dl.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:pl,interpolation:gl}}}),dl.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:dl.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:gl}}]}),dl.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete dl.languages.coffeescript["template-string"],dl.languages.coffee=dl.languages.coffeescript,function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(t,n){(t="string"==typeof t?[t]:t).forEach((function(t){var r=function(e){e.inside||(e.inside={}),e.inside.rest=n},o="doc-comment";if(a=e.languages[t]){var a,i=a[o];if((i=i||(a=e.languages.insertBefore(t,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[o])instanceof RegExp&&(i=a[o]={pattern:i}),Array.isArray(i))for(var l=0,s=i.length;l<s;l++)i[l]instanceof RegExp&&(i[l]={pattern:i[l]}),r(i[l]);else r(i)}}))}}),t.addSupport(["java","javascript","php"],t)}(Tl),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,(t=e.languages.markup)&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(Tl),function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+t.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[t,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),t={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},{pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0});e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:n})}(Tl),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),a=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+o+"|"+a+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(a),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(Tl),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),a=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,i=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+a+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+a+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+a+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o,a=t[n];"code"!==a.type?e(a.content):(o=a.content[1],a=a.content[3],o&&a&&"code-language"===o.type&&"code-block"===a.type&&"string"==typeof o.content&&(o=o.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),o="language-"+(o=(/[a-z][\w-]*/i.exec(o)||[""])[0].toLowerCase()),a.alias?"string"==typeof a.alias?a.alias=[a.alias,o]:a.alias.push(o):a.alias=[o]))}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var a=t.classes[r];if(a=/language-(.+)/.exec(a)){n=a[1];break}}var u,c=e.languages[n];c?t.content=e.highlight(t.content.replace(i,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),s(n)):l[t]||e})),c,n):n&&"none"!==n&&e.plugins.autoloader&&(u="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random()),t.attributes.id=u,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(u);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})))}})),RegExp(e.languages.markup.tag.pattern.source,"gi")),l={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Tl),Tl.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:Tl.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},Tl.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var o=[];if(f(["definition-mutation","punctuation"])&&"("===c(1).content){n+=2;var a=d(/^\($/,/^\)$/);if(-1===a)continue;for(;n<a;n++){var i=c(0);"variable"===i.type&&(p(i,"variable-input"),o.push(i.content))}n=a+1}if(f(["punctuation","property-query"])&&"{"===c(0).content&&(n++,p(c(0),"property-mutation"),0<o.length)){var l=d(/^\{$/,/^\}$/);if(-1!==l)for(var s=n;s<l;s++){var u=t[s];"variable"===u.type&&0<=o.indexOf(u.content)&&p(u,"variable-input")}}}}function c(e){return t[n+e]}function f(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=c(n+t);if(!r||r.type!==e[n])return}return 1}function d(e,r){for(var o=1,a=n;a<t.length;a++){var i=t[a],l=i.content;if("punctuation"===i.type&&"string"==typeof l)if(e.test(l))o++;else if(r.test(l)&&0==--o)return a}return-1}function p(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),Tl.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,o=r.inside["interpolation-punctuation"],a=r.pattern.source;function i(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function l(t,n,r){return t={code:t,grammar:n,language:r},e.hooks.run("before-tokenize",t),t.tokens=e.tokenize(t.code,t.grammar),e.hooks.run("after-tokenize",t),t.tokens}function s(t,n,i){var s=e.tokenize(t,{interpolation:{pattern:RegExp(a),lookbehind:!0}}),u=0,c={},f=(s=l(s.map((function(e){if("string"==typeof e)return e;var n,r;for(e=e.content;-1!==t.indexOf((r=u++,n="___"+i.toUpperCase()+"_"+r+"___")););return c[n]=e,n})).join(""),n,i),Object.keys(c));return u=0,function t(n){for(var a=0;a<n.length;a++){if(u>=f.length)return;var i,s,d,p,g,h,m,y=n[a];"string"==typeof y||"string"==typeof y.content?(i=f[u],-1!==(m=(h="string"==typeof y?y:y.content).indexOf(i))&&(++u,s=h.substring(0,m),g=c[i],d=void 0,(p={})["interpolation-punctuation"]=o,3===(p=e.tokenize(g,p)).length&&((d=[1,1]).push.apply(d,l(p[1],e.languages.javascript,"javascript")),p.splice.apply(p,d)),d=new e.Token("interpolation",p,r.alias,g),p=h.substring(m+i.length),g=[],s&&g.push(s),g.push(d),p&&(t(h=[p]),g.push.apply(g,h)),"string"==typeof y?(n.splice.apply(n,[a,1].concat(g)),a+=g.length-1):y.content=g)):(m=y.content,Array.isArray(m)?t(m):t([m]))}}(s),new e.Token(i,s,"language-"+i,t)}e.languages.javascript["template-string"]=[i("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),i("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),i("svg",/\bsvg/.source),i("markdown",/\b(?:markdown|md)/.source),i("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),i("sql",/\bsql/.source),t].filter(Boolean);var u={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function c(e){return"string"==typeof e?e:Array.isArray(e)?e.map(c).join(""):c(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in u&&function t(n){for(var r=0,o=n.length;r<o;r++){var a,i,l,u=n[r];"string"!=typeof u&&(a=u.content,Array.isArray(a)?"template-string"===u.type?(u=a[1],3===a.length&&"string"!=typeof u&&"embedded-code"===u.type&&(i=c(u),u=u.alias,u=Array.isArray(u)?u[0]:u,l=e.languages[u])&&(a[1]=s(i,l,u))):t(a):"string"!=typeof a&&t([a]))}}(t.tokens)}))}(Tl),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Tl),function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,(function(){return n}))),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(Tl),function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(Tl),Tl.languages.n4js=Tl.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),Tl.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),Tl.languages.n4jsd=Tl.languages.n4js,function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var o=n[r],a=e.languages.javascript[o];o=(a="RegExp"===e.util.type(a)?e.languages.javascript[o]={pattern:a}:a).inside||{},(a.inside=o)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(Tl),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function a(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}function i(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],a=!1;"string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?0<n.length&&n[n.length-1].tagName===l(o.content[0].content[1])&&n.pop():"/>"!==o.content[o.content.length-1].content&&n.push({tagName:l(o.content[0].content[1]),openedBraces:0}):0<n.length&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:0<n.length&&0<n[n.length-1].openedBraces&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:a=!0),(a||"string"==typeof o)&&0<n.length&&0===n[n.length-1].openedBraces&&(a=l(o),r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(a+=l(t[r+1]),t.splice(r+1,1)),0<r&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(a=l(t[r-1])+a,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",a,null,a)),o.content&&"string"!=typeof o.content&&i(o.content)}}o=a(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=a(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:a(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:a(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var l=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(l).join(""):""};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||i(e.tokens)}))}(Tl),function(e){var t=e.util.clone(e.languages.typescript);(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],t=e.languages.tsx.tag).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0}(Tl),Tl.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Tl.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Tl.languages.swift})),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(Tl),Tl.languages.c=Tl.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Tl.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Tl.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Tl.languages.c.string],char:Tl.languages.c.char,comment:Tl.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Tl.languages.c}}}}),Tl.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Tl.languages.c.boolean,Tl.languages.objectivec=Tl.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Tl.languages.objectivec["class-name"],Tl.languages.objc=Tl.languages.objectivec,Tl.languages.reason=Tl.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),Tl.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete Tl.languages.reason.function,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(Tl),Tl.languages.go=Tl.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Tl.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Tl.languages.go["class-name"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Tl),Tl.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Tl.languages.python["string-interpolation"].inside.interpolation.inside.rest=Tl.languages.python,Tl.languages.py=Tl.languages.python,Tl.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Tl.languages.webmanifest=Tl.languages.json,((e,t)=>{for(var n in t)ml(e,n,{get:t[n],enumerable:!0})})({},{dracula:()=>Dl,duotoneDark:()=>Rl,duotoneLight:()=>Nl,github:()=>Ll,gruvboxMaterialDark:()=>Kl,gruvboxMaterialLight:()=>Zl,jettwaveDark:()=>Gl,jettwaveLight:()=>Yl,nightOwl:()=>_l,nightOwlLight:()=>jl,oceanicNext:()=>Bl,okaidia:()=>Ml,oneDark:()=>Ql,oneLight:()=>Xl,palenight:()=>$l,shadesOfPurple:()=>Hl,synthwave84:()=>Ul,ultramin:()=>Wl,vsDark:()=>Vl,vsLight:()=>ql});var Dl={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},Rl={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},Nl={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},Ll={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},_l={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},jl={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},Il="#c5a5c5",zl="#8dc891",Bl={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:Il}},{types:["attr-value"],style:{color:zl}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:zl}},{types:["punctuation"],style:{color:zl}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:Il}},{types:["atrule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},Ml={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},$l={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},Hl={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},Ul={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},Wl={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},Vl={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},ql={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},Gl={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Yl={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Ql={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},Xl={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},Kl={plain:{color:"#ebdbb2",backgroundColor:"#292828"},styles:[{types:["imports","class-name","maybe-class-name","constant","doctype","builtin","function"],style:{color:"#d8a657"}},{types:["property-access"],style:{color:"#7daea3"}},{types:["tag"],style:{color:"#e78a4e"}},{types:["attr-name","char","url","regex"],style:{color:"#a9b665"}},{types:["attr-value","string"],style:{color:"#89b482"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#ea6962"}},{types:["entity","number","symbol"],style:{color:"#d3869b"}}]},Zl={plain:{color:"#654735",backgroundColor:"#f9f5d7"},styles:[{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#af2528"}},{types:["imports","class-name","maybe-class-name","constant","doctype","builtin"],style:{color:"#b4730e"}},{types:["string","attr-value"],style:{color:"#477a5b"}},{types:["property-access"],style:{color:"#266b79"}},{types:["function","attr-name","char","url"],style:{color:"#72761e"}},{types:["tag"],style:{color:"#b94c07"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["entity","number","symbol"],style:{color:"#924f79"}}]},Jl=/\r\n|\r|\n/,es=e=>{0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},ts=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},ns=e=>{const t=[[]],n=[e],r=[0],o=[e.length];let a=0,i=0,l=[];const s=[l];for(;i>-1;){for(;(a=r[i]++)<o[i];){let e,u=t[i];const c=n[i][a];if("string"==typeof c?(u=i>0?u:["plain"],e=c):(u=ts(u,c.type),c.alias&&(u=ts(u,c.alias)),e=c.content),"string"!=typeof e){i++,t.push(u),n.push(e),r.push(0),o.push(e.length);continue}const f=e.split(Jl),d=f.length;l.push({types:u,content:f[0]});for(let e=1;e<d;e++)es(l),s.push(l=[]),l.push({types:u,content:f[e]})}i--,t.pop(),n.pop(),r.pop(),o.pop()}return es(l),s},rs=({children:e,language:t,code:n,theme:o,prism:a})=>{const i=t.toLowerCase(),l=((e,t)=>{const{plain:n}=e,r=e.styles.reduce(((e,n)=>{const{languages:r,style:o}=n;return r&&!r.includes(t)||n.types.forEach((t=>{const n=Al(Al({},e[t]),o);e[t]=n})),e}),{});return r.root=n,r.plain=Cl(Al({},n),{backgroundColor:void 0}),r})(o,i),s=(e=>(0,r.useCallback)((t=>{var n=t,{className:r,style:o,line:a}=n,i=Ol(n,["className","style","line"]);const l=Cl(Al({},i),{className:ul("token-line",r)});return"object"==typeof e&&"plain"in e&&(l.style=e.plain),"object"==typeof o&&(l.style=Al(Al({},l.style||{}),o)),l}),[e]))(l),u=(e=>{const t=(0,r.useCallback)((({types:t,empty:n})=>{if(null!=e)return 1===t.length&&"plain"===t[0]?null!=n?{display:"inline-block"}:void 0:1===t.length&&null!=n?e[t[0]]:Object.assign(null!=n?{display:"inline-block"}:{},...t.map((t=>e[t])))}),[e]);return(0,r.useCallback)((e=>{var n=e,{token:r,className:o,style:a}=n,i=Ol(n,["token","className","style"]);const l=Cl(Al({},i),{className:ul("token",...r.types,o),children:r.content,style:t(r)});return null!=a&&(l.style=Al(Al({},l.style||{}),a)),l}),[t])})(l),c=(({prism:e,code:t,grammar:n,language:o})=>(0,r.useMemo)((()=>{if(null==n)return ns([t]);const r={code:t,grammar:n,language:o,tokens:[]};return e.hooks.run("before-tokenize",r),r.tokens=e.tokenize(t,n),e.hooks.run("after-tokenize",r),ns(r.tokens)}),[t,n,o,e]))({prism:a,language:i,code:n,grammar:a.languages[i]});return e({tokens:c,className:`prism-code language-${i}`,style:null!=l?l.root:{},getLineProps:s,getTokenProps:u})},os=e=>(0,r.createElement)(rs,Cl(Al({},e),{prism:e.prism||Tl,theme:e.theme||Vl,code:e.code,language:e.language})),as=o(703);function is(e){return e&&"object"==typeof e?"position"in e||"type"in e?ss(e.position):"start"in e||"end"in e?ss(e):"line"in e||"column"in e?ls(e):"":""}function ls(e){return us(e&&e.line)+":"+us(e&&e.column)}function ss(e){return ls(e&&e.start)+"-"+ls(e&&e.end)}function us(e){return e&&"number"==typeof e?e:1}class cs extends Error{constructor(e,t,n){const r=[null,null];let o={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof t&&(n=t,t=void 0),"string"==typeof n){const e=n.indexOf(":");-1===e?r[1]=n:(r[0]=n.slice(0,e),r[1]=n.slice(e+1))}t&&("type"in t||"position"in t?t.position&&(o=t.position):"start"in t||"end"in t?o=t:("line"in t||"column"in t)&&(o.start=t)),this.name=is(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="","object"==typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=o.start.line,this.column=o.start.column,this.position=o,this.source=r[0],this.ruleId=r[1],this.file,this.actual,this.expected,this.url,this.note}}cs.prototype.file="",cs.prototype.name="",cs.prototype.reason="",cs.prototype.message="",cs.prototype.stack="",cs.prototype.fatal=null,cs.prototype.column=null,cs.prototype.line=null,cs.prototype.source=null,cs.prototype.ruleId=null,cs.prototype.position=null;const fs=function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');ms(e);let n,r=0,o=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.charCodeAt(a)){if(n){r=a+1;break}}else o<0&&(n=!0,o=a+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let i=-1,l=t.length-1;for(;a--;)if(47===e.charCodeAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1),l>-1&&(e.charCodeAt(a)===t.charCodeAt(l--)?l<0&&(o=a):(l=-1,o=i));return r===o?o=i:o<0&&(o=e.length),e.slice(r,o)},ds=function(e){if(ms(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.charCodeAt(0)?"/":".":1===n&&47===e.charCodeAt(0)?"//":e.slice(0,n)},ps=function(e){ms(e);let t,n=e.length,r=-1,o=0,a=-1,i=0;for(;n--;){const l=e.charCodeAt(n);if(47!==l)r<0&&(t=!0,r=n+1),46===l?a<0?a=n:1!==i&&(i=1):a>-1&&(i=-1);else if(t){o=n+1;break}}return a<0||r<0||0===i||1===i&&a===r-1&&a===o+1?"":e.slice(a,r)},gs=function(...e){let t,n=-1;for(;++n<e.length;)ms(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){ms(e);const t=47===e.charCodeAt(0);let n=function(e,t){let n,r,o="",a=0,i=-1,l=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.charCodeAt(s);else{if(47===n)break;n=47}if(47===n){if(i===s-1||1===l);else if(i!==s-1&&2===l){if(o.length<2||2!==a||46!==o.charCodeAt(o.length-1)||46!==o.charCodeAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",a=0):(o=o.slice(0,r),a=o.length-1-o.lastIndexOf("/")),i=s,l=0;continue}}else if(o.length>0){o="",a=0,i=s,l=0;continue}t&&(o=o.length>0?o+"/..":"..",a=2)}else o.length>0?o+="/"+e.slice(i+1,s):o=e.slice(i+1,s),a=s-i-1;i=s,l=0}else 46===n&&l>-1?l++:l=-1}return o}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.charCodeAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},hs="/";function ms(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const ys=function(){return"/"};function bs(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}const vs=["history","path","basename","stem","extname","dirname"];class ws{constructor(e){let t;t=e?"string"==typeof e||function(e){return as(e)}(e)?{value:e}:bs(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=ys(),this.value,this.stored,this.result,this.map;let n,r=-1;for(;++r<vs.length;){const e=vs[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)vs.includes(n)||(this[n]=t[n])}get path(){return this.history[this.history.length-1]}set path(e){bs(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!bs(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.charCodeAt(n)&&50===t.charCodeAt(n+1)){const e=t.charCodeAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),xs(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"==typeof this.path?ds(this.path):void 0}set dirname(e){Es(this.basename,"dirname"),this.path=gs(e||"",this.basename)}get basename(){return"string"==typeof this.path?fs(this.path):void 0}set basename(e){xs(e,"basename"),ks(e,"basename"),this.path=gs(this.dirname||"",e)}get extname(){return"string"==typeof this.path?ps(this.path):void 0}set extname(e){if(ks(e,"extname"),Es(this.dirname,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=gs(this.dirname,this.stem+(e||""))}get stem(){return"string"==typeof this.path?fs(this.path,this.extname):void 0}set stem(e){xs(e,"stem"),ks(e,"stem"),this.path=gs(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e||void 0)}message(e,t,n){const r=new cs(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=null,r}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}}function ks(e,t){if(e&&e.includes(hs))throw new Error("`"+t+"` cannot be a path: did not expect `"+hs+"`")}function xs(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Es(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Ss(e){if(e)throw e}var Fs=o(710);function As(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}const Cs=function e(){const t=function(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(a,...i){const l=e[++n];let s=-1;if(a)r(a);else{for(;++s<t.length;)null!==i[s]&&void 0!==i[s]||(i[s]=t[s]);t=i,l?function(e,t){let n;return function(...t){const a=e.length>t.length;let i;a&&t.push(r);try{i=e.apply(this,t)}catch(e){if(a&&n)throw e;return r(e)}a||(i&&i.then&&"function"==typeof i.then?i.then(o,r):i instanceof Error?r(i):o(i))};function r(e,...r){n||(n=!0,t(e,...r))}function o(e){r(null,e)}}(l,o)(...i):r(null,...i)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}(),n=[];let r,o={},a=-1;return i.data=function(e,t){return"string"==typeof e?2===arguments.length?(Rs("data",r),o[e]=t,i):Os.call(o,e)&&o[e]||null:e?(Rs("data",r),o=e,i):o},i.Parser=void 0,i.Compiler=void 0,i.freeze=function(){if(r)return i;for(;++a<n.length;){const[e,...r]=n[a];if(!1===r[0])continue;!0===r[0]&&(r[0]=void 0);const o=e.call(i,...r);"function"==typeof o&&t.use(o)}return r=!0,a=Number.POSITIVE_INFINITY,i},i.attachers=n,i.use=function(e,...t){let a;if(Rs("use",r),null==e);else if("function"==typeof e)c(e,...t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?u(e):s(e)}return a&&(o.settings=Object.assign(o.settings||{},a)),i;function l(e){if("function"==typeof e)c(e);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;c(t,...n)}else s(e)}}function s(e){u(e.plugins),e.settings&&(a=Object.assign(a||{},e.settings))}function u(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)l(e[t])}}function c(e,t){let r,o=-1;for(;++o<n.length;)if(n[o][0]===e){r=n[o];break}r?(As(r[1])&&As(t)&&(t=Fs(!0,r[1],t)),r[1]=t):n.push([...arguments])}},i.parse=function(e){i.freeze();const t=_s(e),n=i.Parser;return Ts("parse",n),Ps(n,"parse")?new n(String(t),t).parse():n(String(t),t)},i.stringify=function(e,t){i.freeze();const n=_s(t),r=i.Compiler;return Ds("stringify",r),Ns(e),Ps(r,"compile")?new r(e,n).compile():r(e,n)},i.run=function(e,n,r){if(Ns(e),i.freeze(),r||"function"!=typeof n||(r=n,n=void 0),!r)return new Promise(o);function o(o,a){t.run(e,_s(n),(function(t,n,i){n=n||e,t?a(t):o?o(n):r(null,n,i)}))}o(null,r)},i.runSync=function(e,t){let n,r;return i.run(e,t,(function(e,t){Ss(e),n=t,r=!0})),Ls("runSync","run",r),n},i.process=function(e,t){if(i.freeze(),Ts("process",i.Parser),Ds("process",i.Compiler),!t)return new Promise(n);function n(n,r){const o=_s(e);function a(e,o){e||!o?r(e):n?n(o):t(null,o)}i.run(i.parse(o),o,((e,t,n)=>{if(!e&&t&&n){const o=i.stringify(t,n);null==o||("string"==typeof(r=o)||as(r)?n.value=o:n.result=o),a(e,n)}else a(e);var r}))}n(null,t)},i.processSync=function(e){let t;i.freeze(),Ts("processSync",i.Parser),Ds("processSync",i.Compiler);const n=_s(e);return i.process(n,(function(e){t=!0,Ss(e)})),Ls("processSync","process",t),n},i;function i(){const t=e();let r=-1;for(;++r<n.length;)t.use(...n[r]);return t.data(Fs(!0,{},o)),t}}().freeze(),Os={}.hasOwnProperty;function Ps(e,t){return"function"==typeof e&&e.prototype&&(function(e){let t;for(t in e)if(Os.call(e,t))return!0;return!1}(e.prototype)||t in e.prototype)}function Ts(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Parser`")}function Ds(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Compiler`")}function Rs(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ns(e){if(!As(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Ls(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function _s(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new ws(e)}const js={};function Is(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return zs(e.children,t,n)}return Array.isArray(e)?zs(e,t,n):""}function zs(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=Is(e[o],t,n);return r.join("")}function Bs(e,t,n,r){const o=e.length;let a,i=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);i<r.length;)a=r.slice(i,i+1e4),a.unshift(t,0),e.splice(...a),i+=1e4,t+=1e4}function Ms(e,t){return e.length>0?(Bs(e,e.length,0,t),e):t}const $s={}.hasOwnProperty;function Hs(e,t){let n;for(n in t){const r=($s.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){$s.call(r,a)||(r[a]=[]);const e=o[a];Us(r[a],Array.isArray(e)?e:e?[e]:[])}}}function Us(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Bs(e,0,0,r)}const Ws=nu(/[A-Za-z]/),Vs=nu(/[\dA-Za-z]/),qs=nu(/[#-'*+\--9=?A-Z^-~]/);function Gs(e){return null!==e&&(e<32||127===e)}const Ys=nu(/\d/),Qs=nu(/[\dA-Fa-f]/),Xs=nu(/[!-/:-@[-`{-~]/);function Ks(e){return null!==e&&e<-2}function Zs(e){return null!==e&&(e<0||32===e)}function Js(e){return-2===e||-1===e||32===e}const eu=nu(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),tu=nu(/\s/);function nu(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}function ru(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let a=0;return function(r){return Js(r)?(e.enter(n),i(r)):t(r)};function i(r){return Js(r)&&a++<o?(e.consume(r),i):(e.exit(n),t(r))}}const ou={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ru(e,t,"linePrefix");e.consume(n)}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):Ks(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}},au={tokenize:function(e){const t=this,n=[];let r,o,a,i=0;return l;function l(r){if(i<n.length){const o=n[i];return t.containerState=o[1],e.attempt(o[0].continuation,s,u)(r)}return u(r)}function s(e){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&b();const n=t.events.length;let o,a=n;for(;a--;)if("exit"===t.events[a][0]&&"chunkFlow"===t.events[a][1].type){o=t.events[a][1].end;break}y(i);let l=n;for(;l<t.events.length;)t.events[l][1].end=Object.assign({},o),l++;return Bs(t.events,a+1,0,t.events.slice(n)),t.events.length=l,u(e)}return l(e)}function u(o){if(i===n.length){if(!r)return d(o);if(r.currentConstruct&&r.currentConstruct.concrete)return g(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(iu,c,f)(o)}function c(e){return r&&b(),y(i),d(e)}function f(e){return t.parser.lazy[t.now().line]=i!==n.length,a=t.now().offset,g(e)}function d(n){return t.containerState={},e.attempt(iu,p,g)(n)}function p(e){return i++,n.push([t.currentConstruct,t.containerState]),d(e)}function g(n){return null===n?(r&&b(),y(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:r}),h(n))}function h(n){return null===n?(m(e.exit("chunkFlow"),!0),y(0),void e.consume(n)):Ks(n)?(e.consume(n),m(e.exit("chunkFlow")),i=0,t.interrupt=void 0,l):(e.consume(n),h)}function m(e,n){const l=t.sliceStream(e);if(n&&l.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(l),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<a&&(!r.events[e][1].end||r.events[e][1].end.offset>a))return;const n=t.events.length;let o,l,s=n;for(;s--;)if("exit"===t.events[s][0]&&"chunkFlow"===t.events[s][1].type){if(o){l=t.events[s][1].end;break}o=!0}for(y(i),e=n;e<t.events.length;)t.events[e][1].end=Object.assign({},l),e++;Bs(t.events,s+1,0,t.events.slice(n)),t.events.length=e}}function y(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function b(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},iu={tokenize:function(e,t,n){return ru(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},lu={tokenize:function(e,t,n){return function(t){return Js(t)?ru(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||Ks(e)?t(e):n(e)}},partial:!0};function su(e){const t={};let n,r,o,a,i,l,s,u=-1;for(;++u<e.length;){for(;u in t;)u=t[u];if(n=e[u],u&&"chunkFlow"===n[1].type&&"listItemPrefix"===e[u-1][1].type&&(l=n[1]._tokenizer.events,o=0,o<l.length&&"lineEndingBlank"===l[o][1].type&&(o+=2),o<l.length&&"content"===l[o][1].type))for(;++o<l.length&&"content"!==l[o][1].type;)"chunkText"===l[o][1].type&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,uu(e,u)),u=t[u],s=!0);else if(n[1]._container){for(o=u,r=void 0;o--&&(a=e[o],"lineEnding"===a[1].type||"lineEndingBlank"===a[1].type);)"enter"===a[0]&&(r&&(e[r][1].type="lineEndingBlank"),a[1].type="lineEnding",r=o);r&&(n[1].end=Object.assign({},e[r][1].start),i=e.slice(r,u),i.unshift(n),Bs(e,r,u-r+1,i))}}return!s}function uu(e,t){const n=e[t][1],r=e[t][2];let o=t-1;const a=[],i=n._tokenizer||r.parser[n.contentType](n.start),l=i.events,s=[],u={};let c,f,d=-1,p=n,g=0,h=0;const m=[h];for(;p;){for(;e[++o][1]!==p;);a.push(o),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),f&&i.defineSkip(p.start),p._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(c),p._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=n;++d<l.length;)"exit"===l[d][0]&&"enter"===l[d-1][0]&&l[d][1].type===l[d-1][1].type&&l[d][1].start.line!==l[d][1].end.line&&(h=d+1,m.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(i.events=[],p?(p._tokenizer=void 0,p.previous=void 0):m.pop(),d=m.length;d--;){const t=l.slice(m[d],m[d+1]),n=a.pop();s.unshift([n,n+t.length-1]),Bs(e,n,2,t)}for(d=-1;++d<s.length;)u[g+s[d][0]]=g+s[d][1],g+=s[d][1]-s[d][0]-1;return u}const cu={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):Ks(t)?e.check(fu,a,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function a(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return su(e),e}},fu={tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ru(e,o,"linePrefix")};function o(o){if(null===o||Ks(o))return n(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}},partial:!0},du={tokenize:function(e){const t=this,n=e.attempt(lu,(function(r){if(null!==r)return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n;e.consume(r)}),e.attempt(this.parser.constructs.flowInitial,r,ru(e,e.attempt(this.parser.constructs.flow,r,e.attempt(cu,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}},pu={resolveAll:yu()},gu=mu("string"),hu=mu("text");function mu(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,a,i);return a;function a(e){return s(e)?o(e):i(e)}function i(e){if(null!==e)return t.enter("data"),t.consume(e),l;t.consume(e)}function l(e){return s(e)?(t.exit("data"),o(e)):(t.consume(e),l)}function s(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},resolveAll:yu("text"===e?bu:void 0)}}function yu(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function bu(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let a,i=o.length,l=-1,s=0;for(;i--;){const e=o[i];if("string"==typeof e){for(l=e.length;32===e.charCodeAt(l-1);)s++,l--;if(l)break;l=-1}else if(-2===e)a=!0,s++;else if(-1!==e){i++;break}}if(s){const o={type:n===e.length||a||s<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-s,offset:r.end.offset-s,_index:r.start._index+i,_bufferIndex:i?l:r.start._bufferIndex+l},end:Object.assign({},r.end)};r.end=Object.assign({},o.start),r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}function vu(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const a=e[o].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}function wu(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const o={},a=[];let i=[],l=[],s=!0;const u={consume:function(e){Ks(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,v()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===i[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e,s=!0},enter:function(e,t){const n=t||{};return n.type=e,n.start=g(),c.events.push(["enter",n,c]),l.push(n),n},exit:function(e){const t=l.pop();return t.end=g(),c.events.push(["exit",t,c]),t},attempt:y((function(e,t){b(e,t.from)})),check:y(m),interrupt:y(m,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:p,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const a=e[n];let i;if("string"==typeof a)i=a;else switch(a){case-5:i="\r";break;case-4:i="\n";break;case-3:i="\r\n";break;case-2:i=t?" ":"\t";break;case-1:if(!t&&o)continue;i=" ";break;default:i=String.fromCharCode(a)}o=-2===a,r.push(i)}return r.join("")}(p(e),t)},now:g,defineSkip:function(e){o[e.line]=e.column,v()},write:function(e){return i=Ms(i,e),function(){let e;for(;r._index<i.length;){const t=i[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)h(t.charCodeAt(r._bufferIndex));else h(t)}}(),null!==i[i.length-1]?[]:(b(t,0),c.events=vu(a,c.events,c),c.events)}};let f,d=t.tokenize.call(c,u);return t.resolveAll&&a.push(t),c;function p(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex;let i;if(n===o)i=[e[n].slice(r,a)];else{if(i=e.slice(n,o),r>-1){const e=i[0];"string"==typeof e?i[0]=e.slice(r):i.shift()}a>0&&i.push(e[o].slice(0,a))}return i}(i,e)}function g(){const{line:e,column:t,offset:n,_index:o,_bufferIndex:a}=r;return{line:e,column:t,offset:n,_index:o,_bufferIndex:a}}function h(e){s=void 0,f=e,d=d(e)}function m(e,t){t.restore()}function y(e,t){return function(n,o,a){let i,f,d,p;return Array.isArray(n)?h(n):"tokenize"in n?h([n]):function(e){return function(t){const n=null!==t&&e[t],r=null!==t&&e.null;return h([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function h(e){return i=e,f=0,0===e.length?a:m(e[f])}function m(e){return function(n){return p=function(){const e=g(),t=c.previous,n=c.currentConstruct,o=c.events.length,a=Array.from(l);return{restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=o,l=a,v()},from:o}}(),d=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name)?b():e.tokenize.call(t?Object.assign(Object.create(c),t):c,u,y,b)(n)}}function y(t){return s=!0,e(d,p),o}function b(e){return s=!0,p.restore(),++f<i.length?m(i[f]):a}}}function b(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&Bs(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function v(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const ku={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,a(e)}(t)};function a(a){return a===r?(e.enter("thematicBreakSequence"),i(a)):o>=3&&(null===a||Ks(a))?(e.exit("thematicBreak"),t(a)):n(a)}function i(t){return t===r?(e.consume(t),o++,i):(e.exit("thematicBreakSequence"),Js(t)?ru(e,a,"whitespace")(t):a(t))}}},xu={name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let a=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,i=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:Ys(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(ku,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(t)}return n(t)};function l(t){return Ys(t)&&++i<10?(e.consume(t),l):(!r.interrupt||i<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),s(t)):n(t)}function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(lu,r.interrupt?n:u,e.attempt(Eu,f,c))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function c(t){return Js(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(lu,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ru(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){return r.containerState.furtherBlankLines||!Js(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Su,t,o)(n))}));function o(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,ru(e,e.attempt(xu,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)}},Eu={tokenize:function(e,t,n){const r=this;return ru(e,(function(e){const o=r.events[r.events.length-1];return!Js(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},Su={tokenize:function(e,t,n){const r=this;return ru(e,(function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0},Fu={name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return Js(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){const r=this;return function(t){return Js(t)?ru(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):o(t)};function o(r){return e.attempt(Fu,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function Au(e,t,n,r,o,a,i,l,s){const u=s||Number.POSITIVE_INFINITY;let c=0;return function(t){return 60===t?(e.enter(r),e.enter(o),e.enter(a),e.consume(t),e.exit(a),f):null===t||32===t||41===t||Gs(t)?n(t):(e.enter(r),e.enter(i),e.enter(l),e.enter("chunkString",{contentType:"string"}),g(t))};function f(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),e.exit(o),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(l),f(t)):null===t||60===t||Ks(t)?n(t):(e.consume(t),92===t?p:d)}function p(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function g(o){return c||null!==o&&41!==o&&!Zs(o)?c<u&&40===o?(e.consume(o),c++,g):41===o?(e.consume(o),c--,g):null===o||32===o||40===o||Gs(o)?n(o):(e.consume(o),92===o?h:g):(e.exit("chunkString"),e.exit(l),e.exit(i),e.exit(r),t(o))}function h(t){return 40===t||41===t||92===t?(e.consume(t),g):g(t)}}function Cu(e,t,n,r,o,a){const i=this;let l,s=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(a),u};function u(f){return s>999||null===f||91===f||93===f&&!l||94===f&&!s&&"_hiddenFootnoteSupport"in i.parser.constructs?n(f):93===f?(e.exit(a),e.enter(o),e.consume(f),e.exit(o),e.exit(r),t):Ks(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(t){return null===t||91===t||93===t||Ks(t)||s++>999?(e.exit("chunkString"),u(t)):(e.consume(t),l||(l=!Js(t)),92===t?f:c)}function f(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function Ou(e,t,n,r,o,a){let i;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(o),e.consume(t),e.exit(o),i=40===t?41:t,l):n(t)};function l(n){return n===i?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(a),s(n))}function s(t){return t===i?(e.exit(a),l(i)):null===t?n(t):Ks(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ru(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===i||null===t||Ks(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?c:u)}function c(t){return t===i||92===t?(e.consume(t),u):u(t)}}function Pu(e,t){let n;return function r(o){return Ks(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):Js(o)?ru(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}function Tu(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Du={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return Cu.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function a(t){return o=Tu(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i):n(t)}function i(t){return Zs(t)?Pu(e,l)(t):l(t)}function l(t){return Au(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(Ru,u,u)(t)}function u(t){return Js(t)?ru(e,c,"whitespace")(t):c(t)}function c(a){return null===a||Ks(a)?(e.exit("definition"),r.parser.defined.push(o),t(a)):n(a)}}},Ru={tokenize:function(e,t,n){return function(t){return Zs(t)?Pu(e,r)(t):n(t)};function r(t){return Ou(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return Js(t)?ru(e,a,"whitespace")(t):a(t)}function a(e){return null===e||Ks(e)?t(e):n(e)}},partial:!0},Nu={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),ru(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?a(e):n(e)}function a(t){return null===t?l(t):Ks(t)?e.attempt(Lu,a,l)(t):(e.enter("codeFlowValue"),i(t))}function i(t){return null===t||Ks(t)?(e.exit("codeFlowValue"),a(t)):(e.consume(t),i)}function l(n){return e.exit("codeIndented"),t(n)}}},Lu={tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):Ks(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):ru(e,a,"linePrefix",5)(t)}function a(e){const a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):Ks(e)?o(e):n(e)}},partial:!0},_u={name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||Zs(t)?(e.exit("atxHeadingSequence"),a(t)):n(t)}function a(n){return 35===n?(e.enter("atxHeadingSequence"),i(n)):null===n||Ks(n)?(e.exit("atxHeading"),t(n)):Js(n)?ru(e,a,"whitespace")(n):(e.enter("atxHeadingText"),l(n))}function i(t){return 35===t?(e.consume(t),i):(e.exit("atxHeadingSequence"),a(t))}function l(t){return null===t||35===t||Zs(t)?(e.exit("atxHeadingText"),a(t)):(e.consume(t),l)}},resolve:function(e,t){let n,r,o=e.length-2,a=3;return"whitespace"===e[a][1].type&&(a+=2),o-2>a&&"whitespace"===e[o][1].type&&(o-=2),"atxHeadingSequence"===e[o][1].type&&(a===o-1||o-4>a&&"whitespace"===e[o-2][1].type)&&(o-=a+1===o?2:4),o>a&&(n={type:"atxHeadingText",start:e[a][1].start,end:e[o][1].end},r={type:"chunkText",start:e[a][1].start,end:e[o][1].end,contentType:"text"},Bs(e,a,o-a+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}},ju={name:"setextUnderline",tokenize:function(e,t,n){const r=this;let o;return function(t){let i,l=r.events.length;for(;l--;)if("lineEnding"!==r.events[l][1].type&&"linePrefix"!==r.events[l][1].type&&"content"!==r.events[l][1].type){i="paragraph"===r.events[l][1].type;break}return r.parser.lazy[r.now().line]||!r.interrupt&&!i?n(t):(e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),a(t)}(t))};function a(t){return t===o?(e.consume(t),a):(e.exit("setextHeadingLineSequence"),Js(t)?ru(e,i,"lineSuffix")(t):i(t))}function i(r){return null===r||Ks(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,o,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){n=a;break}"paragraph"===e[a][1].type&&(r=a)}else"content"===e[a][1].type&&e.splice(a,1),o||"definition"!==e[a][1].type||(o=a);const i={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",i,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[o][1].end)):e[n][1]=i,e.push(["exit",i,t]),e}},Iu=["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"],zu=["pre","script","style","textarea"],Bu={name:"htmlFlow",tokenize:function(e,t,n){const r=this;let o,a,i,l,s;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u}(t)};function u(l){return 33===l?(e.consume(l),c):47===l?(e.consume(l),a=!0,p):63===l?(e.consume(l),o=3,r.interrupt?t:L):Ws(l)?(e.consume(l),i=String.fromCharCode(l),g):n(l)}function c(a){return 45===a?(e.consume(a),o=2,f):91===a?(e.consume(a),o=5,l=0,d):Ws(a)?(e.consume(a),o=4,r.interrupt?t:L):n(a)}function f(o){return 45===o?(e.consume(o),r.interrupt?t:L):n(o)}function d(o){return o==="CDATA[".charCodeAt(l++)?(e.consume(o),6===l?r.interrupt?t:A:d):n(o)}function p(t){return Ws(t)?(e.consume(t),i=String.fromCharCode(t),g):n(t)}function g(l){if(null===l||47===l||62===l||Zs(l)){const s=47===l,u=i.toLowerCase();return s||a||!zu.includes(u)?Iu.includes(i.toLowerCase())?(o=6,s?(e.consume(l),h):r.interrupt?t(l):A(l)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(l):a?m(l):y(l)):(o=1,r.interrupt?t(l):A(l))}return 45===l||Vs(l)?(e.consume(l),i+=String.fromCharCode(l),g):n(l)}function h(o){return 62===o?(e.consume(o),r.interrupt?t:A):n(o)}function m(t){return Js(t)?(e.consume(t),m):S(t)}function y(t){return 47===t?(e.consume(t),S):58===t||95===t||Ws(t)?(e.consume(t),b):Js(t)?(e.consume(t),y):S(t)}function b(t){return 45===t||46===t||58===t||95===t||Vs(t)?(e.consume(t),b):v(t)}function v(t){return 61===t?(e.consume(t),w):Js(t)?(e.consume(t),v):y(t)}function w(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,k):Js(t)?(e.consume(t),w):x(t)}function k(t){return t===s?(e.consume(t),s=null,E):null===t||Ks(t)?n(t):(e.consume(t),k)}function x(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||Zs(t)?v(t):(e.consume(t),x)}function E(e){return 47===e||62===e||Js(e)?y(e):n(e)}function S(t){return 62===t?(e.consume(t),F):n(t)}function F(t){return null===t||Ks(t)?A(t):Js(t)?(e.consume(t),F):n(t)}function A(t){return 45===t&&2===o?(e.consume(t),T):60===t&&1===o?(e.consume(t),D):62===t&&4===o?(e.consume(t),_):63===t&&3===o?(e.consume(t),L):93===t&&5===o?(e.consume(t),N):!Ks(t)||6!==o&&7!==o?null===t||Ks(t)?(e.exit("htmlFlowData"),C(t)):(e.consume(t),A):(e.exit("htmlFlowData"),e.check(Mu,j,C)(t))}function C(t){return e.check($u,O,j)(t)}function O(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),P}function P(t){return null===t||Ks(t)?C(t):(e.enter("htmlFlowData"),A(t))}function T(t){return 45===t?(e.consume(t),L):A(t)}function D(t){return 47===t?(e.consume(t),i="",R):A(t)}function R(t){if(62===t){const n=i.toLowerCase();return zu.includes(n)?(e.consume(t),_):A(t)}return Ws(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),R):A(t)}function N(t){return 93===t?(e.consume(t),L):A(t)}function L(t){return 62===t?(e.consume(t),_):45===t&&2===o?(e.consume(t),L):A(t)}function _(t){return null===t||Ks(t)?(e.exit("htmlFlowData"),j(t)):(e.consume(t),_)}function j(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},concrete:!0},Mu={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(lu,t,n)}},partial:!0},$u={tokenize:function(e,t,n){const r=this;return function(t){return Ks(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},Hu={tokenize:function(e,t,n){const r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},Uu={name:"codeFenced",tokenize:function(e,t,n){const r=this,o={tokenize:function(e,t,n){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(t){return e.enter("codeFencedFence"),Js(t)?ru(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===a?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===a?(o++,e.consume(t),u):o>=l?(e.exit("codeFencedFenceSequence"),Js(t)?ru(e,c,"whitespace")(t):c(t)):n(t)}function c(r){return null===r||Ks(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0};let a,i=0,l=0;return function(t){return function(t){const n=r.events[r.events.length-1];return i=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,a=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(t)}(t)};function s(t){return t===a?(l++,e.consume(t),s):l<3?n(t):(e.exit("codeFencedFenceSequence"),Js(t)?ru(e,u,"whitespace")(t):u(t))}function u(n){return null===n||Ks(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(Hu,p,b)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),c(n))}function c(t){return null===t||Ks(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(t)):Js(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ru(e,f,"whitespace")(t)):96===t&&t===a?n(t):(e.consume(t),c)}function f(t){return null===t||Ks(t)?u(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return null===t||Ks(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(t)):96===t&&t===a?n(t):(e.consume(t),d)}function p(t){return e.attempt(o,b,g)(t)}function g(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h}function h(t){return i>0&&Js(t)?ru(e,m,"linePrefix",i+1)(t):m(t)}function m(t){return null===t||Ks(t)?e.check(Hu,p,b)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||Ks(t)?(e.exit("codeFlowValue"),m(t)):(e.consume(t),y)}function b(n){return e.exit("codeFenced"),t(n)}},concrete:!0},Wu=document.createElement("i");function Vu(e){const t="&"+e+";";Wu.innerHTML=t;const n=Wu.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}const qu={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,a,i=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),l};function l(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,a=Vs,u(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=Qs,u):(e.enter("characterReferenceValue"),o=7,a=Ys,u(t))}function u(l){if(59===l&&i){const o=e.exit("characterReferenceValue");return a!==Vs||Vu(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(l)}return a(l)&&i++<o?(e.consume(l),u):n(l)}}},Gu={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return Xs(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},Yu={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ru(e,t,"linePrefix")}}},Qu={name:"labelEnd",tokenize:function(e,t,n){const r=this;let o,a,i=r.events.length;for(;i--;)if(("labelImage"===r.events[i][1].type||"labelLink"===r.events[i][1].type)&&!r.events[i][1]._balanced){o=r.events[i][1];break}return function(t){return o?o._inactive?c(t):(a=r.parser.defined.includes(Tu(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),l):n(t)};function l(t){return 40===t?e.attempt(Xu,u,a?u:c)(t):91===t?e.attempt(Ku,u,a?s:c)(t):a?u(t):c(t)}function s(t){return e.attempt(Zu,u,c)(t)}function u(e){return t(e)}function c(e){return o._balanced=!0,n(e)}},resolveTo:function(e,t){let n,r,o,a,i=e.length,l=0;for(;i--;)if(n=e[i][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[i][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[i][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=i,"labelLink"!==n.type)){l=2;break}}else"labelEnd"===n.type&&(o=i);const s={type:"labelLink"===e[r][1].type?"link":"image",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)},u={type:"label",start:Object.assign({},e[r][1].start),end:Object.assign({},e[o][1].end)},c={type:"labelText",start:Object.assign({},e[r+l+2][1].end),end:Object.assign({},e[o-2][1].start)};return a=[["enter",s,t],["enter",u,t]],a=Ms(a,e.slice(r+1,r+l+3)),a=Ms(a,[["enter",c,t]]),a=Ms(a,vu(t.parser.constructs.insideSpan.null,e.slice(r+l+4,o-3),t)),a=Ms(a,[["exit",c,t],e[o-2],e[o-1],["exit",u,t]]),a=Ms(a,e.slice(o+1)),a=Ms(a,[["exit",s,t]]),Bs(e,r,e.length,a),e},resolveAll:function(e){let t=-1;for(;++t<e.length;){const n=e[t][1];"labelImage"!==n.type&&"labelLink"!==n.type&&"labelEnd"!==n.type||(e.splice(t+1,"labelImage"===n.type?4:2),n.type="data",t++)}return e}},Xu={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return Zs(t)?Pu(e,o)(t):o(t)}function o(t){return 41===t?u(t):Au(e,a,i,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function a(t){return Zs(t)?Pu(e,l)(t):u(t)}function i(e){return n(e)}function l(t){return 34===t||39===t||40===t?Ou(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function s(t){return Zs(t)?Pu(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},Ku={tokenize:function(e,t,n){const r=this;return function(t){return Cu.call(r,e,o,a,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(Tu(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function a(e){return n(e)}}},Zu={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},Ju={name:"labelStartImage",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),a):n(t)}function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:Qu.resolveAll};function ec(e){return null===e||Zs(e)||tu(e)?1:eu(e)?2:void 0}const tc={name:"attention",tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=ec(r);let a;return function(t){return a=t,e.enter("attentionSequence"),i(t)};function i(l){if(l===a)return e.consume(l),i;const s=e.exit("attentionSequence"),u=ec(l),c=!u||2===u&&o||n.includes(l),f=!o||2===o&&u||n.includes(r);return s._open=Boolean(42===a?c:c&&(o||!f)),s._close=Boolean(42===a?f:f&&(u||!c)),t(l)}},resolveAll:function(e,t){let n,r,o,a,i,l,s,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close)for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;const f=Object.assign({},e[n][1].end),d=Object.assign({},e[c][1].start);nc(f,-l),nc(d,l),a={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[n][1].end)},i={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[c][1].start),end:d},o={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[c][1].start)},r={type:l>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},i.end)},e[n][1].end=Object.assign({},a.start),e[c][1].start=Object.assign({},i.end),s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=Ms(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=Ms(s,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",o,t]]),s=Ms(s,vu(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),s=Ms(s,[["exit",o,t],["enter",i,t],["exit",i,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,s=Ms(s,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,Bs(e,n-1,c-n+3,s),c=n+s.length-u-2;break}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e}};function nc(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const rc={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return Ws(t)?(e.consume(t),a):s(t)}function a(e){return 43===e||45===e||46===e||Vs(e)?(r=1,i(e)):s(e)}function i(t){return 58===t?(e.consume(t),r=0,l):(43===t||45===t||46===t||Vs(t))&&r++<32?(e.consume(t),i):(r=0,s(t))}function l(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||Gs(r)?n(r):(e.consume(r),l)}function s(t){return 64===t?(e.consume(t),u):qs(t)?(e.consume(t),s):n(t)}function u(e){return Vs(e)?c(e):n(e)}function c(n){return 46===n?(e.consume(n),r=0,u):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):f(n)}function f(t){if((45===t||Vs(t))&&r++<63){const n=45===t?f:c;return e.consume(t),n}return n(t)}}},oc={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,a,i;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),l};function l(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),w):63===t?(e.consume(t),b):Ws(t)?(e.consume(t),E):n(t)}function s(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),a=0,p):Ws(t)?(e.consume(t),y):n(t)}function u(t){return 45===t?(e.consume(t),d):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),f):Ks(t)?(i=c,R(t)):(e.consume(t),c)}function f(t){return 45===t?(e.consume(t),d):c(t)}function d(e){return 62===e?D(e):45===e?f(e):c(e)}function p(t){return t==="CDATA[".charCodeAt(a++)?(e.consume(t),6===a?g:p):n(t)}function g(t){return null===t?n(t):93===t?(e.consume(t),h):Ks(t)?(i=g,R(t)):(e.consume(t),g)}function h(t){return 93===t?(e.consume(t),m):g(t)}function m(t){return 62===t?D(t):93===t?(e.consume(t),m):g(t)}function y(t){return null===t||62===t?D(t):Ks(t)?(i=y,R(t)):(e.consume(t),y)}function b(t){return null===t?n(t):63===t?(e.consume(t),v):Ks(t)?(i=b,R(t)):(e.consume(t),b)}function v(e){return 62===e?D(e):b(e)}function w(t){return Ws(t)?(e.consume(t),k):n(t)}function k(t){return 45===t||Vs(t)?(e.consume(t),k):x(t)}function x(t){return Ks(t)?(i=x,R(t)):Js(t)?(e.consume(t),x):D(t)}function E(t){return 45===t||Vs(t)?(e.consume(t),E):47===t||62===t||Zs(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),D):58===t||95===t||Ws(t)?(e.consume(t),F):Ks(t)?(i=S,R(t)):Js(t)?(e.consume(t),S):D(t)}function F(t){return 45===t||46===t||58===t||95===t||Vs(t)?(e.consume(t),F):A(t)}function A(t){return 61===t?(e.consume(t),C):Ks(t)?(i=A,R(t)):Js(t)?(e.consume(t),A):S(t)}function C(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,O):Ks(t)?(i=C,R(t)):Js(t)?(e.consume(t),C):(e.consume(t),P)}function O(t){return t===o?(e.consume(t),o=void 0,T):null===t?n(t):Ks(t)?(i=O,R(t)):(e.consume(t),O)}function P(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||Zs(t)?S(t):(e.consume(t),P)}function T(e){return 47===e||62===e||Zs(e)?S(e):n(e)}function D(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function R(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return Js(t)?ru(e,L,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):L(t)}function L(t){return e.enter("htmlTextData"),i(t)}}},ac={name:"labelStartLink",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:Qu.resolveAll},ic={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return Ks(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},lc={name:"codeText",tokenize:function(e,t,n){let r,o,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),i(t)};function i(t){return 96===t?(e.consume(t),a++,i):(e.exit("codeTextSequence"),l(t))}function l(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),l):96===t?(o=e.enter("codeTextSequence"),r=0,u(t)):Ks(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):(e.enter("codeTextData"),s(t))}function s(t){return null===t||32===t||96===t||Ks(t)?(e.exit("codeTextData"),l(t)):(e.consume(t),s)}function u(n){return 96===n?(e.consume(n),r++,u):r===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",s(n))}},resolve:function(e){let t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}for(t=o-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}},sc={42:xu,43:xu,45:xu,48:xu,49:xu,50:xu,51:xu,52:xu,53:xu,54:xu,55:xu,56:xu,57:xu,62:Fu},uc={91:Du},cc={[-2]:Nu,[-1]:Nu,32:Nu},fc={35:_u,42:ku,45:[ju,ku],60:Bu,61:ju,95:ku,96:Uu,126:Uu},dc={38:qu,92:Gu},pc={[-5]:Yu,[-4]:Yu,[-3]:Yu,33:Ju,38:qu,42:tc,60:[rc,oc],91:ac,92:[ic,Gu],93:Qu,95:tc,96:lc},gc={null:[tc,pu]},hc={null:[42,95]},mc={null:[]};const yc=/[\0\t\n\r]/g;function bc(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCharCode(n)}const vc=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function wc(e){return e.replace(vc,kc)}function kc(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return bc(n.slice(t?2:1),t?16:10)}return Vu(n)||e}const xc={}.hasOwnProperty,Ec=function(t,n,r){return"string"!=typeof n&&(r=n,n=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(w),autolinkProtocol:d,autolinkEmail:d,atxHeading:i(y),blockQuote:i((function(){return{type:"blockquote",children:[]}})),characterEscape:d,characterReference:d,codeFenced:i(m),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:i(m,l),codeText:i((function(){return{type:"inlineCode",value:""}}),l),codeTextData:d,data:d,codeFlowValue:d,definition:i((function(){return{type:"definition",identifier:"",label:null,title:null,url:""}})),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:i((function(){return{type:"emphasis",children:[]}})),hardBreakEscape:i(b),hardBreakTrailing:i(b),htmlFlow:i(v,l),htmlFlowData:d,htmlText:i(v,l),htmlTextData:d,image:i((function(){return{type:"image",title:null,url:"",alt:null}})),label:l,link:i(w),listItem:i((function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}})),listItemValue:function(e){a("expectingFirstListItemValue")&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),o("expectingFirstListItemValue"))},listOrdered:i(k,(function(){o("expectingFirstListItemValue",!0)})),listUnordered:i(k),paragraph:i((function(){return{type:"paragraph",children:[]}})),reference:function(){o("referenceType","collapsed")},referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:i(y),strong:i((function(){return{type:"strong",children:[]}})),thematicBreak:i((function(){return{type:"thematicBreak"}}))},exit:{atxHeading:u(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}},autolink:u(),autolinkEmail:function(e){p.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){p.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:u(),characterEscapeValue:p,characterReferenceMarkerHexadecimal:h,characterReferenceMarkerNumeric:h,characterReferenceValue:function(e){const t=this.sliceSerialize(e),n=a("characterReferenceType");let r;n?(r=bc(t,"characterReferenceMarkerNumeric"===n?10:16),o("characterReferenceType")):r=Vu(t);const i=this.stack.pop();i.value+=r,i.position.end=Sc(e.end)},codeFenced:u((function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")})),codeFencedFence:function(){a("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:p,codeIndented:u((function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")})),codeText:u((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),codeTextData:p,data:p,definition:u(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Tu(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:u(),hardBreakEscape:u(g),hardBreakTrailing:u(g),htmlFlow:u((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),htmlFlowData:p,htmlText:u((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),htmlTextData:p,image:u((function(){const e=this.stack[this.stack.length-1];if(a("inReference")){const t=a("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;o("referenceType")})),label:function(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(o("inReference",!0),"link"===n.type){const t=e.children;n.children=t}else n.alt=t},labelText:function(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=wc(t),n.identifier=Tu(t).toLowerCase()},lineEnding:function(e){const n=this.stack[this.stack.length-1];if(a("atHardBreak"))return n.children[n.children.length-1].position.end=Sc(e.end),void o("atHardBreak");!a("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(n.type)&&(d.call(this,e),p.call(this,e))},link:u((function(){const e=this.stack[this.stack.length-1];if(a("inReference")){const t=a("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;o("referenceType")})),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Tu(this.sliceSerialize(e)).toLowerCase(),o("referenceType","full")},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){o("inReference")},setextHeading:u((function(){o("setextHeadingSlurpLineEnding")})),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2},setextHeadingText:function(){o("setextHeadingSlurpLineEnding",!0)},strong:u(),thematicBreak:u()}};Fc(t,(e||{}).mdastExtensions||[]);const n={};return function(e){let n={type:"root",children:[]};const i={stack:[n],tokenStack:[],config:t,enter:s,exit:c,buffer:l,resume:f,setData:o,getData:a},u=[];let d=-1;for(;++d<e.length;)"listOrdered"!==e[d][1].type&&"listUnordered"!==e[d][1].type||("enter"===e[d][0]?u.push(d):d=r(e,u.pop(),d));for(d=-1;++d<e.length;){const n=t[e[d][0]];xc.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},i),e[d][1])}if(i.tokenStack.length>0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||Cc).call(i,void 0,e[0])}for(n.position={start:Sc(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Sc(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)n=t.transforms[d](n)||n;return n};function r(e,t,n){let r,o,a,i,l=t-1,s=-1,u=!1;for(;++l<=n;){const t=e[l];if("listUnordered"===t[1].type||"listOrdered"===t[1].type||"blockQuote"===t[1].type?("enter"===t[0]?s++:s--,i=void 0):"lineEndingBlank"===t[1].type?"enter"===t[0]&&(!r||i||s||a||(a=l),i=void 0):"linePrefix"===t[1].type||"listItemValue"===t[1].type||"listItemMarker"===t[1].type||"listItemPrefix"===t[1].type||"listItemPrefixWhitespace"===t[1].type||(i=void 0),!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let i=l;for(o=void 0;i--;){const t=e[i];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",o=i}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}a&&(!o||a<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||l,0,["exit",r,t[2]]),l++,n++}"listItemPrefix"===t[1].type&&(r={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0},e.splice(l,0,["enter",r,t[2]]),l++,n++,a=void 0,i=!0)}}return e[t][1]._spread=u,n}function o(e,t){n[e]=t}function a(e){return n[e]}function i(e,t){return function(n){s.call(this,e(n),n),t&&t.call(this,n)}}function l(){this.stack.push({type:"fragment",children:[]})}function s(e,t,n){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:Sc(t.start)},e}function u(e){return function(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+is({start:e.start,end:e.end})+"): it’s not open");return r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Cc).call(this,e,r[0])),n.position.end=Sc(e.end),n}function f(){return function(e){return Is(e,"boolean"!=typeof js.includeImageAlt||js.includeImageAlt,"boolean"!=typeof js.includeHtml||js.includeHtml)}(this.stack.pop())}function d(e){const t=this.stack[this.stack.length-1];let n=t.children[t.children.length-1];n&&"text"===n.type||(n={type:"text",value:""},n.position={start:Sc(e.start)},t.children.push(n)),this.stack.push(n)}function p(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Sc(e.end)}function g(){o("atHardBreak",!0)}function h(e){o("characterReferenceType",e.type)}function m(){return{type:"code",lang:null,meta:null,value:""}}function y(){return{type:"heading",depth:void 0,children:[]}}function b(){return{type:"break"}}function v(){return{type:"html",value:""}}function w(){return{type:"link",title:null,url:"",children:[]}}function k(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(r)(function(e){for(;!su(e););return e}(function(t){const n=function(e){const t={};let n=-1;for(;++n<e.length;)Hs(t,e[n]);return t}([e,...(t||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:o(ou),document:o(au),flow:o(du),string:o(gu),text:o(hu)};return r;function o(e){return function(t){return wu(r,e,t)}}}(r).document().write(function(){let e,t=1,n="",r=!0;return function(o,a,i){const l=[];let s,u,c,f,d;for(o=n+o.toString(a),c=0,n="",r&&(65279===o.charCodeAt(0)&&c++,r=void 0);c<o.length;){if(yc.lastIndex=c,s=yc.exec(o),f=s&&void 0!==s.index?s.index:o.length,d=o.charCodeAt(f),!s){n=o.slice(c);break}if(10===d&&c===f&&e)l.push(-3),e=void 0;else switch(e&&(l.push(-5),e=void 0),c<f&&(l.push(o.slice(c,f)),t+=f-c),d){case 0:l.push(65533),t++;break;case 9:for(u=4*Math.ceil(t/4),l.push(-2);t++<u;)l.push(-1);break;case 10:l.push(-4),t=1;break;default:e=!0,t=1}c=f+1}return i&&(e&&l.push(-5),n&&l.push(n),l.push(null)),l}}()(t,n,!0))))};function Sc(e){return{line:e.line,column:e.column,offset:e.offset}}function Fc(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Fc(e,r):Ac(e,r)}}function Ac(e,t){let n;for(n in t)if(xc.call(t,n))if("canContainEols"===n){const r=t[n];r&&e[n].push(...r)}else if("transforms"===n){const r=t[n];r&&e[n].push(...r)}else if("enter"===n||"exit"===n){const r=t[n];r&&Object.assign(e[n],r)}}function Cc(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+is({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+is({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+is({start:t.start,end:t.end})+") is still open")}function Oc(e){Object.assign(this,{Parser:t=>{const n=this.data("settings");return Ec(t,Object.assign({},n,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}Tc(/[A-Za-z]/);const Pc=Tc(/[\dA-Za-z]/);function Tc(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}function Dc(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const a=e.charCodeAt(n);let i="";if(37===a&&Pc(e.charCodeAt(n+1))&&Pc(e.charCodeAt(n+2)))o=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(i=String.fromCharCode(a));else if(a>55295&&a<57344){const t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(i=String.fromCharCode(a,t),o=1):i="�"}else i=String.fromCharCode(a);i&&(t.push(e.slice(r,n),encodeURIComponent(i)),r=n+o+1,i=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}Tc(/[#-'*+\--9=?A-Z^-~]/),Tc(/\d/),Tc(/[\dA-Fa-f]/),Tc(/[!-/:-@[-`{-~]/),Tc(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),Tc(/\s/);const Rc=function(e){if(null==e)return Lc;if("string"==typeof e)return t=e,Nc((function(e){return e&&e.type===t}));var t;if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Rc(e[n]);return Nc((function(...e){let n=-1;for(;++n<t.length;)if(t[n].call(this,...e))return!0;return!1}))}(e):function(e){return Nc((function(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0}))}(e);if("function"==typeof e)return Nc(e);throw new Error("Expected function, string, or object as test")};function Nc(e){return function(t,...n){return Boolean(t&&"object"==typeof t&&"type"in t&&Boolean(e.call(this,t,...n)))}}function Lc(){return!0}const _c=!1,jc=zc("start"),Ic=zc("end");function zc(e){return function(t){const n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:n.offset>-1?n.offset:null}}}const Bc=!1,Mc={}.hasOwnProperty;function $c(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null),function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null);const o=Rc(t),a=r?-1:1;!function e(i,l,s){const u=i&&"object"==typeof i?i:{};if("string"==typeof u.type){const e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(c,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return c;function c(){let u,c,f,d=[];if((!t||o(i,l,s[s.length-1]||null))&&(d=function(e){return Array.isArray(e)?e:"number"==typeof e?[!0,e]:[e]}(n(i,s)),d[0]===Bc))return d;if(i.children&&"skip"!==d[0])for(c=(r?i.children.length:-1)+a,f=s.concat(i);c>-1&&c<i.children.length;){if(u=e(i.children[c],c,f)(),u[0]===Bc)return u;c="number"==typeof u[1]?u[1]:c+a}return d}}(e,void 0,[])()}(e,t,(function(e,t){const r=t[t.length-1];return n(e,r?r.children.indexOf(e):null,r)}),r)}(e,"definition",(e=>{const n=Hc(e.identifier);n&&!Mc.call(t,n)&&(t[n]=e)})),function(e){const n=Hc(e);return n&&Mc.call(t,n)?t[n]:null}}function Hc(e){return String(e||"").toUpperCase()}function Uc(e,t){const n=String(t.identifier).toUpperCase(),r=Dc(n.toLowerCase()),o=e.footnoteOrder.indexOf(n);let a;-1===o?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,a=e.footnoteOrder.length):(e.footnoteCounts[n]++,a=o+1);const i=e.footnoteCounts[n],l={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(i>1?"-"+i:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const s={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,s),e.applyData(t,s)}function Wc(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return{type:"text",value:"!["+t.alt+r};const o=e.all(t),a=o[0];a&&"text"===a.type?a.value="["+a.value:o.unshift({type:"text",value:"["});const i=o[o.length-1];return i&&"text"===i.type?i.value+=r:o.push({type:"text",value:r}),o}function Vc(e){const t=e.spread;return null==t?e.children.length>1:t}function qc(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const a=[];for(;r;)a.push(Gc(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return a.push(Gc(t.slice(o),o>0,!1)),a.join("")}function Gc(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const Yc={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,o={};r&&(o.className=["language-"+r]);let a={type:"element",tagName:"code",properties:o,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:Uc,footnote:function(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const o=String(r);return n[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:t.children}],position:t.position},Uc(e,{type:"footnoteReference",identifier:o,position:t.position})},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null},imageReference:function(e,t){const n=e.definition(t.identifier);if(!n)return Wc(e,t);const r={src:Dc(n.url||""),alt:t.alt};null!==n.title&&void 0!==n.title&&(r.title=n.title);const o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const n={src:Dc(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=e.definition(t.identifier);if(!n)return Wc(e,t);const r={href:Dc(n.url||"")};null!==n.title&&void 0!==n.title&&(r.title=n.title);const o={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const n={href:Dc(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Vc(n[r])}return t}(n):Vc(t),a={},i=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const e=r[l];(o||0!==l||"element"!==e.type||"p"!==e.tagName)&&i.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?i.push(e):i.push(...e.children)}const s=r[r.length-1];s&&(o||"element"!==s.type||"p"!==s.tagName)&&i.push({type:"text",value:"\n"});const u={type:"element",tagName:"li",properties:a,children:i};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=jc(t.children[1]),i=Ic(t.children[t.children.length-1]);a.line&&i.line&&(r.position={start:a,end:i}),o.push(r)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,a),e.applyData(t,a)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",a=n&&"table"===n.type?n.align:void 0,i=a?a.length:t.children.length;let l=-1;const s=[];for(;++l<i;){const n=t.children[l],r={},i=a?a[l]:void 0;i&&(r.align=i);let u={type:"element",tagName:o,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(t,u)),s.push(u)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){const n={type:"text",value:qc(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:Qc,yaml:Qc,definition:Qc,footnoteDefinition:Qc};function Qc(){return null}const Xc={}.hasOwnProperty;function Kc(e,t){const n=t||{},r=n.allowDangerousHtml||!1,o={};return i.dangerous=r,i.clobberPrefix=void 0===n.clobberPrefix||null===n.clobberPrefix?"user-content-":n.clobberPrefix,i.footnoteLabel=n.footnoteLabel||"Footnotes",i.footnoteLabelTagName=n.footnoteLabelTagName||"h2",i.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},i.footnoteBackLabel=n.footnoteBackLabel||"Back to content",i.unknownHandler=n.unknownHandler,i.passThrough=n.passThrough,i.handlers={...Yc,...n.handlers},i.definition=$c(e),i.footnoteById=o,i.footnoteOrder=[],i.footnoteCounts={},i.patch=Zc,i.applyData=Jc,i.one=function(e,t){return ef(i,e,t)},i.all=function(e){return tf(i,e)},i.wrap=nf,i.augment=a,function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null),function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null);const o=Rc(t),a=r?-1:1;!function e(i,l,s){const u=i&&"object"==typeof i?i:{};if("string"==typeof u.type){const e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(c,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return c;function c(){let u,c,f,d=[];if((!t||o(i,l,s[s.length-1]||null))&&(d=function(e){return Array.isArray(e)?e:"number"==typeof e?[!0,e]:[e]}(n(i,s)),d[0]===_c))return d;if(i.children&&"skip"!==d[0])for(c=(r?i.children.length:-1)+a,f=s.concat(i);c>-1&&c<i.children.length;){if(u=e(i.children[c],c,f)(),u[0]===_c)return u;c="number"==typeof u[1]?u[1]:c+a}return d}}(e,void 0,[])()}(e,t,(function(e,t){const r=t[t.length-1];return n(e,r?r.children.indexOf(e):null,r)}),r)}(e,"footnoteDefinition",(e=>{const t=String(e.identifier).toUpperCase();Xc.call(o,t)||(o[t]=e)})),i;function a(e,t){if(e&&"data"in e&&e.data){const n=e.data;n.hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties={...t.properties,...n.hProperties}),"children"in t&&t.children&&n.hChildren&&(t.children=n.hChildren)}if(e){const n="type"in e?e:{position:e};(function(e){return!(e&&e.position&&e.position.start&&e.position.start.line&&e.position.start.column&&e.position.end&&e.position.end.line&&e.position.end.column)})(n)||(t.position={start:jc(n),end:Ic(n)})}return t}function i(e,t,n,r){return Array.isArray(n)&&(r=n,n={}),a(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}}function Zc(e,t){e.position&&(t.position=function(e){return{start:jc(e),end:Ic(e)}}(e))}function Jc(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:[]}),"element"===n.type&&o&&(n.properties={...n.properties,...o}),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function ef(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return Xc.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:tf(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):function(e,t){const n=t.data||{},r=!("value"in t)||Xc.call(n,"hProperties")||Xc.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:tf(e,t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}(e,t)}function tf(e,t){const n=[];if("children"in t){const r=t.children;let o=-1;for(;++o<r.length;){const a=ef(e,r[o],t);if(a){if(o&&"break"===r[o-1].type&&(Array.isArray(a)||"text"!==a.type||(a.value=a.value.replace(/^\s+/,"")),!Array.isArray(a)&&"element"===a.type)){const e=a.children[0];e&&"text"===e.type&&(e.value=e.value.replace(/^\s+/,""))}Array.isArray(a)?n.push(...a):n.push(a)}}}return n}function nf(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function rf(e,t){const n=Kc(e,t),r=n.one(e,null),o=function(e){const t=[];let n=-1;for(;++n<e.footnoteOrder.length;){const r=e.footnoteById[e.footnoteOrder[n]];if(!r)continue;const o=e.all(r),a=String(r.identifier).toUpperCase(),i=Dc(a.toLowerCase());let l=0;const s=[];for(;++l<=e.footnoteCounts[a];){const t={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+i+(l>1?"-"+l:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};l>1&&t.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(l)}]}),s.length>0&&s.push({type:"text",value:" "}),s.push(t)}const u=o[o.length-1];if(u&&"element"===u.type&&"p"===u.tagName){const e=u.children[u.children.length-1];e&&"text"===e.type?e.value+=" ":u.children.push({type:"text",value:" "}),u.children.push(...s)}else o.push(...s);const c={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+i},children:e.wrap(o,!0)};e.patch(r,c),t.push(c)}if(0!==t.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:"\n"}]}}(n);return o&&r.children.push({type:"text",value:"\n"},o),Array.isArray(r)?{type:"root",children:r}:r}const of=function(e,t){return e&&"run"in e?function(e,t){return(n,r,o)=>{e.run(rf(n,t),r,(e=>{o(e)}))}}(e,t):function(e){return t=>rf(t,e)}(e||t)};var af=o(67),lf=o.n(af);class sf{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function uf(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new sf(n,r,t)}function cf(e){return e.toLowerCase()}sf.prototype.property={},sf.prototype.normal={},sf.prototype.space=null;class ff{constructor(e,t){this.property=e,this.attribute=t}}ff.prototype.space=null,ff.prototype.boolean=!1,ff.prototype.booleanish=!1,ff.prototype.overloadedBoolean=!1,ff.prototype.number=!1,ff.prototype.commaSeparated=!1,ff.prototype.spaceSeparated=!1,ff.prototype.commaOrSpaceSeparated=!1,ff.prototype.mustUseProperty=!1,ff.prototype.defined=!1;let df=0;const pf=wf(),gf=wf(),hf=wf(),mf=wf(),yf=wf(),bf=wf(),vf=wf();function wf(){return 2**++df}const kf=Object.keys(t);class xf extends ff{constructor(e,n,r,o){let a=-1;if(super(e,n),Ef(this,"space",o),"number"==typeof r)for(;++a<kf.length;){const e=kf[a];Ef(this,kf[a],(r&t[e])===t[e])}}}function Ef(e,t,n){n&&(e[t]=n)}xf.prototype.defined=!0;const Sf={}.hasOwnProperty;function Ff(e){const t={},n={};let r;for(r in e.properties)if(Sf.call(e.properties,r)){const o=e.properties[r],a=new xf(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[cf(r)]=r,n[cf(a.attribute)]=r}return new sf(t,n,e.space)}const Af=Ff({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Cf=Ff({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Of(e,t){return t in e?e[t]:t}function Pf(e,t){return Of(e,t.toLowerCase())}const Tf=Ff({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Pf,properties:{xmlns:null,xmlnsXLink:null}}),Df=Ff({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:gf,ariaAutoComplete:null,ariaBusy:gf,ariaChecked:gf,ariaColCount:mf,ariaColIndex:mf,ariaColSpan:mf,ariaControls:yf,ariaCurrent:null,ariaDescribedBy:yf,ariaDetails:null,ariaDisabled:gf,ariaDropEffect:yf,ariaErrorMessage:null,ariaExpanded:gf,ariaFlowTo:yf,ariaGrabbed:gf,ariaHasPopup:null,ariaHidden:gf,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:yf,ariaLevel:mf,ariaLive:null,ariaModal:gf,ariaMultiLine:gf,ariaMultiSelectable:gf,ariaOrientation:null,ariaOwns:yf,ariaPlaceholder:null,ariaPosInSet:mf,ariaPressed:gf,ariaReadOnly:gf,ariaRelevant:null,ariaRequired:gf,ariaRoleDescription:yf,ariaRowCount:mf,ariaRowIndex:mf,ariaRowSpan:mf,ariaSelected:gf,ariaSetSize:mf,ariaSort:null,ariaValueMax:mf,ariaValueMin:mf,ariaValueNow:mf,ariaValueText:null,role:null}}),Rf=Ff({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Pf,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:bf,acceptCharset:yf,accessKey:yf,action:null,allow:null,allowFullScreen:pf,allowPaymentRequest:pf,allowUserMedia:pf,alt:null,as:null,async:pf,autoCapitalize:null,autoComplete:yf,autoFocus:pf,autoPlay:pf,blocking:yf,capture:null,charSet:null,checked:pf,cite:null,className:yf,cols:mf,colSpan:null,content:null,contentEditable:gf,controls:pf,controlsList:yf,coords:mf|bf,crossOrigin:null,data:null,dateTime:null,decoding:null,default:pf,defer:pf,dir:null,dirName:null,disabled:pf,download:hf,draggable:gf,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:pf,formTarget:null,headers:yf,height:mf,hidden:pf,high:mf,href:null,hrefLang:null,htmlFor:yf,httpEquiv:yf,id:null,imageSizes:null,imageSrcSet:null,inert:pf,inputMode:null,integrity:null,is:null,isMap:pf,itemId:null,itemProp:yf,itemRef:yf,itemScope:pf,itemType:yf,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:pf,low:mf,manifest:null,max:null,maxLength:mf,media:null,method:null,min:null,minLength:mf,multiple:pf,muted:pf,name:null,nonce:null,noModule:pf,noValidate:pf,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:pf,optimum:mf,pattern:null,ping:yf,placeholder:null,playsInline:pf,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:pf,referrerPolicy:null,rel:yf,required:pf,reversed:pf,rows:mf,rowSpan:mf,sandbox:yf,scope:null,scoped:pf,seamless:pf,selected:pf,shadowRootClonable:pf,shadowRootDelegatesFocus:pf,shadowRootMode:null,shape:null,size:mf,sizes:null,slot:null,span:mf,spellCheck:gf,src:null,srcDoc:null,srcLang:null,srcSet:null,start:mf,step:null,style:null,tabIndex:mf,target:null,title:null,translate:null,type:null,typeMustMatch:pf,useMap:null,value:gf,width:mf,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:yf,axis:null,background:null,bgColor:null,border:mf,borderColor:null,bottomMargin:mf,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:pf,declare:pf,event:null,face:null,frame:null,frameBorder:null,hSpace:mf,leftMargin:mf,link:null,longDesc:null,lowSrc:null,marginHeight:mf,marginWidth:mf,noResize:pf,noHref:pf,noShade:pf,noWrap:pf,object:null,profile:null,prompt:null,rev:null,rightMargin:mf,rules:null,scheme:null,scrolling:gf,standby:null,summary:null,text:null,topMargin:mf,valueType:null,version:null,vAlign:null,vLink:null,vSpace:mf,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:pf,disableRemotePlayback:pf,prefix:null,property:null,results:mf,security:null,unselectable:null}}),Nf=Ff({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:Of,properties:{about:vf,accentHeight:mf,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:mf,amplitude:mf,arabicForm:null,ascent:mf,attributeName:null,attributeType:null,azimuth:mf,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:mf,by:null,calcMode:null,capHeight:mf,className:yf,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:mf,diffuseConstant:mf,direction:null,display:null,dur:null,divisor:mf,dominantBaseline:null,download:pf,dx:null,dy:null,edgeMode:null,editable:null,elevation:mf,enableBackground:null,end:null,event:null,exponent:mf,externalResourcesRequired:null,fill:null,fillOpacity:mf,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:bf,g2:bf,glyphName:bf,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:mf,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:mf,horizOriginX:mf,horizOriginY:mf,id:null,ideographic:mf,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:mf,k:mf,k1:mf,k2:mf,k3:mf,k4:mf,kernelMatrix:vf,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:mf,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:mf,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:mf,overlineThickness:mf,paintOrder:null,panose1:null,path:null,pathLength:mf,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:yf,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:mf,pointsAtY:mf,pointsAtZ:mf,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:vf,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:vf,rev:vf,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:vf,requiredFeatures:vf,requiredFonts:vf,requiredFormats:vf,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:mf,specularExponent:mf,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:mf,strikethroughThickness:mf,string:null,stroke:null,strokeDashArray:vf,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:mf,strokeOpacity:mf,strokeWidth:null,style:null,surfaceScale:mf,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:vf,tabIndex:mf,tableValues:null,target:null,targetX:mf,targetY:mf,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:vf,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:mf,underlineThickness:mf,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:mf,values:null,vAlphabetic:mf,vMathematical:mf,vectorEffect:null,vHanging:mf,vIdeographic:mf,version:null,vertAdvY:mf,vertOriginX:mf,vertOriginY:mf,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:mf,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Lf=uf([Cf,Af,Tf,Df,Rf],"html"),_f=uf([Cf,Af,Tf,Df,Nf],"svg"),jf=!1;function If(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{!function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null),function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null);const o=Rc(t),a=r?-1:1;!function e(i,l,s){const u=i&&"object"==typeof i?i:{};if("string"==typeof u.type){const e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(c,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return c;function c(){let u,c,f,d=[];if((!t||o(i,l,s[s.length-1]||null))&&(d=function(e){return Array.isArray(e)?e:"number"==typeof e?[!0,e]:[e]}(n(i,s)),d[0]===jf))return d;if(i.children&&"skip"!==d[0])for(c=(r?i.children.length:-1)+a,f=s.concat(i);c>-1&&c<i.children.length;){if(u=e(i.children[c],c,f)(),u[0]===jf)return u;c="number"==typeof u[1]?u[1]:c+a}return d}}(e,void 0,[])()}(e,t,(function(e,t){const r=t[t.length-1];return n(e,r?r.children.indexOf(e):null,r)}),r)}(t,"element",((t,n,r)=>{const o=r;let a;if(e.allowedElements?a=!e.allowedElements.includes(t.tagName):e.disallowedElements&&(a=e.disallowedElements.includes(t.tagName)),!a&&e.allowElement&&"number"==typeof n&&(a=!e.allowElement(t,n,o)),a&&"number"==typeof n)return e.unwrapDisallowed&&t.children?o.children.splice(n,1,...t.children):o.children.splice(n,1),n}))}}var zf=o(819);function Bf(e){const t=e&&"object"==typeof e&&"text"===e.type?e.value||"":e;return"string"==typeof t&&""===t.replace(/[ \t\n\f\r]/g,"")}const Mf=/^data[-\w.:]+$/i,$f=/-[a-z]/g,Hf=/[A-Z]/g;function Uf(e){return"-"+e.toLowerCase()}function Wf(e){return e.charAt(1).toUpperCase()}const Vf={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"},qf=o(532),Gf=["http","https","mailto","tel"];function Yf(e){const t=(e||"").trim(),n=t.charAt(0);if("#"===n||"/"===n)return t;const r=t.indexOf(":");if(-1===r)return t;let o=-1;for(;++o<Gf.length;){const e=Gf[o];if(r===e.length&&t.slice(0,e.length).toLowerCase()===e)return t}return o=t.indexOf("?"),-1!==o&&r>o?t:(o=t.indexOf("#"),-1!==o&&r>o?t:"javascript:void(0)")}const Qf={}.hasOwnProperty,Xf=new Set(["table","thead","tbody","tfoot","tr"]);function Kf(e,t){const n=[];let r,o=-1;for(;++o<t.children.length;)r=t.children[o],"element"===r.type?n.push(Zf(e,r,o,t)):"text"===r.type?"element"===t.type&&Xf.has(t.tagName)&&Bf(r)||n.push(r.value):"raw"!==r.type||e.options.skipHtml||n.push(r.value);return n}function Zf(e,t,n,o){const a=e.options,i=void 0===a.transformLinkUri?Yf:a.transformLinkUri,l=e.schema,s=t.tagName,u={};let c,f=l;if("html"===l.space&&"svg"===s&&(f=_f,e.schema=f),t.properties)for(c in t.properties)Qf.call(t.properties,c)&&ed(u,c,t.properties[c],e);"ol"!==s&&"ul"!==s||e.listDepth++;const d=Kf(e,t);"ol"!==s&&"ul"!==s||e.listDepth--,e.schema=l;const p=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},g=a.components&&Qf.call(a.components,s)?a.components[s]:s,h="string"==typeof g||g===r.Fragment;if(!zf.isValidElementType(g))throw new TypeError(`Component for name \`${s}\` not defined or is not renderable`);if(u.key=n,"a"===s&&a.linkTarget&&(u.target="function"==typeof a.linkTarget?a.linkTarget(String(u.href||""),t.children,"string"==typeof u.title?u.title:null):a.linkTarget),"a"===s&&i&&(u.href=i(String(u.href||""),t.children,"string"==typeof u.title?u.title:null)),h||"code"!==s||"element"!==o.type||"pre"===o.tagName||(u.inline=!0),h||"h1"!==s&&"h2"!==s&&"h3"!==s&&"h4"!==s&&"h5"!==s&&"h6"!==s||(u.level=Number.parseInt(s.charAt(1),10)),"img"===s&&a.transformImageUri&&(u.src=a.transformImageUri(String(u.src||""),String(u.alt||""),"string"==typeof u.title?u.title:null)),!h&&"li"===s&&"element"===o.type){const e=function(e){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if("element"===n.type&&"input"===n.tagName)return n}return null}(t);u.checked=e&&e.properties?Boolean(e.properties.checked):null,u.index=Jf(o,t),u.ordered="ol"===o.tagName}var m;return h||"ol"!==s&&"ul"!==s||(u.ordered="ol"===s,u.depth=e.listDepth),"td"!==s&&"th"!==s||(u.align&&(u.style||(u.style={}),u.style.textAlign=u.align,delete u.align),h||(u.isHeader="th"===s)),h||"tr"!==s||"element"!==o.type||(u.isHeader=Boolean("thead"===o.tagName)),a.sourcePos&&(u["data-sourcepos"]=[(m=p).start.line,":",m.start.column,"-",m.end.line,":",m.end.column].map(String).join("")),!h&&a.rawSourcePos&&(u.sourcePosition=t.position),!h&&a.includeElementIndex&&(u.index=Jf(o,t),u.siblingCount=Jf(o)),h||(u.node=t),d.length>0?r.createElement(g,u,d):r.createElement(g,u)}function Jf(e,t){let n=-1,r=0;for(;++n<e.children.length&&e.children[n]!==t;)"element"===e.children[n].type&&r++;return r}function ed(e,t,n,r){const o=function(e,t){const n=cf(t);let r=t,o=ff;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Mf.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace($f,Wf);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!$f.test(e)){let n=e.replace(Hf,Uf);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=xf}return new o(r,t)}(r.schema,t);let a=n;null!=a&&a==a&&(Array.isArray(a)&&(a=o.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(a):a.join(" ").trim()),"style"===o.property&&"string"==typeof a&&(a=function(e){const t={};try{qf(e,(function(e,n){const r="-ms-"===e.slice(0,4)?`ms-${e.slice(4)}`:e;t[r.replace(/-([a-z])/g,td)]=n}))}catch{}return t}(a)),o.space&&o.property?e[Qf.call(Vf,o.property)?Vf[o.property]:o.property]=a:o.attribute&&(e[o.attribute]=a))}function td(e,t){return t.toUpperCase()}const nd={}.hasOwnProperty,rd={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function od(e){for(const t in rd)if(nd.call(rd,t)&&nd.call(e,t)){const e=rd[t];console.warn(`[react-markdown] Warning: please ${e.to?`use \`${e.to}\` instead of`:"remove"} \`${t}\` (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#${e.id}> for more info)`),delete rd[t]}const t=Cs().use(Oc).use(e.remarkPlugins||[]).use(of,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(If,e),n=new ws;"string"==typeof e.children?n.value=e.children:void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const o=t.runSync(t.parse(n),n);if("root"!==o.type)throw new TypeError("Expected a `root` node");let a=r.createElement(r.Fragment,{},Kf({options:e,schema:Lf,listDepth:0},o));return e.className&&(a=r.createElement("div",{className:e.className},a)),a}od.propTypes={children:af.string,className:af.string,allowElement:af.func,allowedElements:af.arrayOf(af.string),disallowedElements:af.arrayOf(af.string),unwrapDisallowed:af.bool,remarkPlugins:af.arrayOf(af.oneOfType([af.object,af.func,af.arrayOf(af.oneOfType([af.bool,af.string,af.object,af.func,af.arrayOf(af.any)]))])),rehypePlugins:af.arrayOf(af.oneOfType([af.object,af.func,af.arrayOf(af.oneOfType([af.bool,af.string,af.object,af.func,af.arrayOf(af.any)]))])),sourcePos:af.bool,rawSourcePos:af.bool,skipHtml:af.bool,includeElementIndex:af.bool,transformLinkUri:af.oneOfType([af.func,af.bool]),linkTarget:af.oneOfType([af.func,af.string]),transformImageUri:af.func,components:af.object};const ad={}.hasOwnProperty;function id(e,t){let n;for(n in t){const r=(ad.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){ad.call(r,a)||(r[a]=[]);const e=o[a];ld(r[a],Array.isArray(e)?e:e?[e]:[])}}}function ld(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Bs(e,0,0,r)}const sd=pd(/[A-Za-z]/),ud=pd(/[\dA-Za-z]/);function cd(e){return null!==e&&(e<0||32===e)}pd(/[#-'*+\--9=?A-Z^-~]/),pd(/\d/),pd(/[\dA-Fa-f]/),pd(/[!-/:-@[-`{-~]/);const fd=pd(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),dd=pd(/\s/);function pd(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}const gd={tokenize:function(e,t,n){let r=0;return function t(a){return(87===a||119===a)&&r<3?(r++,e.consume(a),t):46===a&&3===r?(e.consume(a),o):n(a)};function o(e){return null===e?n(e):t(e)}},partial:!0},hd={tokenize:function(e,t,n){let r,o,a;return i;function i(t){return 46===t||95===t?e.check(yd,s,l)(t):null===t||cd(t)||dd(t)||45!==t&&fd(t)?s(t):(a=!0,e.consume(t),i)}function l(t){return 95===t?r=!0:(o=r,r=void 0),e.consume(t),i}function s(e){return o||r||!a?n(e):t(e)}},partial:!0},md={tokenize:function(e,t){let n=0,r=0;return o;function o(i){return 40===i?(n++,e.consume(i),o):41===i&&r<n?a(i):33===i||34===i||38===i||39===i||41===i||42===i||44===i||46===i||58===i||59===i||60===i||63===i||93===i||95===i||126===i?e.check(yd,t,a)(i):null===i||cd(i)||dd(i)?t(i):(e.consume(i),o)}function a(t){return 41===t&&r++,e.consume(t),o}},partial:!0},yd={tokenize:function(e,t,n){return r;function r(i){return 33===i||34===i||39===i||41===i||42===i||44===i||46===i||58===i||59===i||63===i||95===i||126===i?(e.consume(i),r):38===i?(e.consume(i),a):93===i?(e.consume(i),o):60===i||null===i||cd(i)||dd(i)?t(i):n(i)}function o(e){return null===e||40===e||91===e||cd(e)||dd(e)?t(e):r(e)}function a(e){return sd(e)?i(e):n(e)}function i(t){return 59===t?(e.consume(t),r):sd(t)?(e.consume(t),i):n(t)}},partial:!0},bd={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return ud(e)?n(e):t(e)}},partial:!0},vd={tokenize:function(e,t,n){const r=this;return function(t){return 87!==t&&119!==t||!Fd.call(r,r.previous)||Pd(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(gd,e.attempt(hd,e.attempt(md,o),n),n)(t))};function o(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:Fd},wd={tokenize:function(e,t,n){const r=this;let o="",a=!1;return function(t){return 72!==t&&104!==t||!Ad.call(r,r.previous)||Pd(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(t),e.consume(t),i)};function i(t){if(sd(t)&&o.length<5)return o+=String.fromCodePoint(t),e.consume(t),i;if(58===t){const n=o.toLowerCase();if("http"===n||"https"===n)return e.consume(t),l}return n(t)}function l(t){return 47===t?(e.consume(t),a?s:(a=!0,l)):n(t)}function s(t){return null===t||function(e){return null!==e&&(e<32||127===e)}(t)||cd(t)||dd(t)||fd(t)?n(t):e.attempt(hd,e.attempt(md,u),n)(t)}function u(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:Ad},kd={tokenize:function(e,t,n){const r=this;let o,a;return function(t){return Od(t)&&Cd.call(r,r.previous)&&!Pd(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),i(t)):n(t)};function i(t){return Od(t)?(e.consume(t),i):64===t?(e.consume(t),l):n(t)}function l(t){return 46===t?e.check(bd,u,s)(t):45===t||95===t||ud(t)?(a=!0,e.consume(t),l):u(t)}function s(t){return e.consume(t),o=!0,l}function u(i){return a&&o&&sd(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(i)):n(i)}},previous:Cd},xd={},Ed={text:xd};let Sd=48;for(;Sd<123;)xd[Sd]=kd,Sd++,58===Sd?Sd=65:91===Sd&&(Sd=97);function Fd(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||cd(e)}function Ad(e){return!sd(e)}function Cd(e){return!(47===e||Od(e))}function Od(e){return 43===e||45===e||46===e||95===e||ud(e)}function Pd(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function Td(e){return null!==e&&(e<0||32===e)}function Dd(e){return-2===e||-1===e||32===e}function Rd(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}function Nd(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let a=0;return function(r){return Dd(r)?(e.enter(n),i(r)):t(r)};function i(r){return Dd(r)&&a++<o?(e.consume(r),i):(e.exit(n),t(r))}}xd[43]=kd,xd[45]=kd,xd[46]=kd,xd[95]=kd,xd[72]=[kd,wd],xd[104]=[kd,wd],xd[87]=[kd,vd],xd[119]=[kd,vd],Rd(/[A-Za-z]/),Rd(/[\dA-Za-z]/),Rd(/[#-'*+\--9=?A-Z^-~]/),Rd(/\d/),Rd(/[\dA-Fa-f]/),Rd(/[!-/:-@[-`{-~]/),Rd(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),Rd(/\s/);const Ld={tokenize:function(e,t,n){return function(t){return Dd(t)?Nd(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||function(e){return null!==e&&e<-2}(e)?t(e):n(e)}},partial:!0},_d={tokenize:function(e,t,n){const r=this;return Nd(e,(function(e){const o=r.events[r.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function jd(e,t,n){const r=this;let o=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i;for(;o--;){const e=r.events[o][1];if("labelImage"===e.type){i=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!i||!i._balanced)return n(o);const l=Tu(r.sliceSerialize({start:i.end,end:r.now()}));return 94===l.codePointAt(0)&&a.includes(l.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)):n(o)}}function Id(e,t){let n,r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[r+1],e[r+2],["enter",o,t],e[r+3],e[r+4],["enter",a,t],["exit",a,t],["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(r,e.length-r+1,...s),e}function zd(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,i=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),l};function l(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(l){if(i>999||93===l&&!a||null===l||91===l||Td(l))return n(l);if(93===l){e.exit("chunkString");const a=e.exit("gfmFootnoteCallString");return o.includes(Tu(r.sliceSerialize(a)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(l)}return Td(l)||(a=!0),i++,e.consume(l),92===l?u:s}function u(t){return 91===t||92===t||93===t?(e.consume(t),i++,s):s(t)}}function Bd(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,i,l=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),s};function s(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(t)}function u(t){if(l>999||93===t&&!i||null===t||91===t||Td(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return a=Tu(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Td(t)||(i=!0),l++,e.consume(t),92===t?c:u}function c(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}function f(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(a)||o.push(a),Nd(e,d,"gfmFootnoteDefinitionWhitespace")):n(t)}function d(e){return t(e)}}function Md(e,t,n){return e.check(Ld,t,e.attempt(_d,t,n))}function $d(e){e.exit("gfmFootnoteDefinition")}Wd(/[A-Za-z]/),Wd(/[\dA-Za-z]/),Wd(/[#-'*+\--9=?A-Z^-~]/),Wd(/\d/),Wd(/[\dA-Fa-f]/),Wd(/[!-/:-@[-`{-~]/);const Hd=Wd(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),Ud=Wd(/\s/);function Wd(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}function Vd(e){return null===e||function(e){return null!==e&&(e<0||32===e)}(e)||Ud(e)?1:Hd(e)?2:void 0}function qd(e){let t=(e||{}).singleTilde;const n={tokenize:function(e,n,r){const o=this.previous,a=this.events;let i=0;return function(t){return 126===o&&"characterEscape"!==a[a.length-1][1].type?r(t):(e.enter("strikethroughSequenceTemporary"),l(t))};function l(a){const s=Vd(o);if(126===a)return i>1?r(a):(e.consume(a),i++,l);if(i<2&&!t)return r(a);const u=e.exit("strikethroughSequenceTemporary"),c=Vd(a);return u._open=!c||2===c&&Boolean(s),u._close=!s||2===s&&Boolean(c),n(a)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const o={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i=[["enter",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",a,t]],l=t.parser.constructs.insideSpan.null;l&&Bs(i,i.length,0,vu(l,e.slice(r+1,n),t)),Bs(i,i.length,0,[["exit",a,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",o,t]]),Bs(e,r-1,n-r+3,i),n=r+i.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}function Gd(e){return null!==e&&e<-2}function Yd(e){return null!==e&&(e<0||32===e)}function Qd(e){return-2===e||-1===e||32===e}function Xd(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}function Kd(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let a=0;return function(r){return Qd(r)?(e.enter(n),i(r)):t(r)};function i(r){return Qd(r)&&a++<o?(e.consume(r),i):(e.exit(n),t(r))}}Xd(/[A-Za-z]/),Xd(/[\dA-Za-z]/),Xd(/[#-'*+\--9=?A-Z^-~]/),Xd(/\d/),Xd(/[\dA-Fa-f]/),Xd(/[!-/:-@[-`{-~]/),Xd(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),Xd(/\s/);class Zd{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let o=0;if(0!==n||0!==r.length){for(;o<e.map.length;){if(e.map[o][0]===t)return e.map[o][1]+=n,void e.map[o][2].push(...r);o+=1}e.map.push([t,n,r])}}(this,e,t,n)}consume(e){if(this.map.sort(((e,t)=>e[0]-t[0])),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1])),n.push(this.map[t][2]),e.length=this.map[t][0];n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}}function Jd(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if("enter"===o[0])"tableContent"===o[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===o[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===o[1].type)break}else"enter"===o[0]&&"tableDelimiterRow"===o[1].type&&(n=!0);t+=1}return r}const ep={flow:{null:{tokenize:function(e,t,n){const r=this;let o,a=0,i=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const o=t>-1?r.events[t][1].type:null,a="tableHead"===o||"tableRow"===o?w:l;return a===w&&r.parser.lazy[r.now().line]?n(e):a(e)};function l(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){return 124===e||(o=!0,i+=1),s(e)}(t)}function s(t){return null===t?n(t):Gd(t)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f):n(t):Qd(t)?Kd(e,s,"whitespace")(t):(i+=1,o&&(o=!1,a+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),o=!0,s):(e.enter("data"),u(t)))}function u(t){return null===t||124===t||Yd(t)?(e.exit("data"),s(t)):(e.consume(t),92===t?c:u)}function c(t){return 92===t||124===t?(e.consume(t),u):u(t)}function f(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),o=!1,Qd(t)?Kd(e,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):d(t))}function d(t){return 45===t||58===t?g(t):124===t?(o=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):v(t)}function p(t){return Qd(t)?Kd(e,g,"whitespace")(t):g(t)}function g(t){return 58===t?(i+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),h):45===t?(i+=1,h(t)):null===t||Gd(t)?b(t):v(t)}function h(t){return 45===t?(e.enter("tableDelimiterFiller"),m(t)):v(t)}function m(t){return 45===t?(e.consume(t),m):58===t?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(t))}function y(t){return Qd(t)?Kd(e,b,"whitespace")(t):b(t)}function b(n){return 124===n?d(n):(null===n||Gd(n))&&o&&a===i?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):v(n)}function v(e){return n(e)}function w(t){return e.enter("tableRow"),k(t)}function k(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),k):null===n||Gd(n)?(e.exit("tableRow"),t(n)):Qd(n)?Kd(e,k,"whitespace")(n):(e.enter("data"),x(n))}function x(t){return null===t||124===t||Yd(t)?(e.exit("data"),k(t)):(e.consume(t),92===t?E:x)}function E(t){return 92===t||124===t?(e.consume(t),x):x(t)}},resolveAll:function(e,t){let n,r,o,a=-1,i=!0,l=0,s=[0,0,0,0],u=[0,0,0,0],c=!1,f=0;const d=new Zd;for(;++a<e.length;){const p=e[a],g=p[1];"enter"===p[0]?"tableHead"===g.type?(c=!1,0!==f&&(np(d,t,f,n,r),r=void 0,f=0),n={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},d.add(a,0,[["enter",n,t]])):"tableRow"===g.type||"tableDelimiterRow"===g.type?(i=!0,o=void 0,s=[0,0,0,0],u=[0,a+1,0,0],c&&(c=!1,r={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},d.add(a,0,[["enter",r,t]])),l="tableDelimiterRow"===g.type?2:r?3:1):!l||"data"!==g.type&&"tableDelimiterMarker"!==g.type&&"tableDelimiterFiller"!==g.type?"tableCellDivider"===g.type&&(i?i=!1:(0!==s[1]&&(u[0]=u[1],o=tp(d,t,s,l,void 0,o)),s=u,u=[s[1],a,0,0])):(i=!1,0===u[2]&&(0!==s[1]&&(u[0]=u[1],o=tp(d,t,s,l,void 0,o),s=[0,0,0,0]),u[2]=a)):"tableHead"===g.type?(c=!0,f=a):"tableRow"===g.type||"tableDelimiterRow"===g.type?(f=a,0!==s[1]?(u[0]=u[1],o=tp(d,t,s,l,a,o)):0!==u[1]&&(o=tp(d,t,u,l,a,o)),l=0):!l||"data"!==g.type&&"tableDelimiterMarker"!==g.type&&"tableDelimiterFiller"!==g.type||(u[3]=a)}for(0!==f&&np(d,t,f,n,r),d.consume(t.events),a=-1;++a<t.events.length;){const e=t.events[a];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=Jd(t.events,a))}return e}}}};function tp(e,t,n,r,o,a){const i=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(a.end=Object.assign({},rp(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const l=rp(t.events,n[1]);if(a={type:i,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",a,t]]),0!==n[2]){const o=rp(t.events,n[2]),a=rp(t.events,n[3]),i={type:"tableContent",start:Object.assign({},o),end:Object.assign({},a)};if(e.add(n[2],0,[["enter",i,t]]),2!==r){const r=t.events[n[2]],o=t.events[n[3]];if(r[1].end=Object.assign({},o[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",i,t]])}return void 0!==o&&(a.end=Object.assign({},rp(t.events,o)),e.add(o,0,[["exit",a,t]]),a=void 0),a}function np(e,t,n,r,o){const a=[],i=rp(t.events,n);o&&(o.end=Object.assign({},i),a.push(["exit",o,t])),r.end=Object.assign({},i),a.push(["exit",r,t]),e.add(n+1,0,a)}function rp(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}function op(e){return-2===e||-1===e||32===e}function ap(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}ap(/[A-Za-z]/),ap(/[\dA-Za-z]/),ap(/[#-'*+\--9=?A-Z^-~]/),ap(/\d/),ap(/[\dA-Fa-f]/),ap(/[!-/:-@[-`{-~]/),ap(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),ap(/\s/);const ip={tokenize:function(e,t,n){const r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o):n(t)};function o(t){return function(e){return null!==e&&(e<0||32===e)}(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),a):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),a):n(t)}function a(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),i):n(t)}function i(r){return function(e){return null!==e&&e<-2}(r)?t(r):op(r)?e.check({tokenize:sp},t,n)(r):n(r)}}},lp={text:{91:ip}};function sp(e,t,n){return function(e,t,n){const r=Number.POSITIVE_INFINITY;let o=0;return function(r){return op(r)?(e.enter(n),a(r)):t(r)};function a(i){return op(i)&&o++<r?(e.consume(i),a):(e.exit(n),t(i))}}(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}function up(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}const cp=!1,fp=function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null);const o=Rc(t),a=r?-1:1;!function e(i,l,s){const u=i&&"object"==typeof i?i:{};if("string"==typeof u.type){const e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(c,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return c;function c(){let u,c,f,d=[];if((!t||o(i,l,s[s.length-1]||null))&&(d=function(e){return Array.isArray(e)?e:"number"==typeof e?[true,e]:[e]}(n(i,s)),d[0]===cp))return d;if(i.children&&"skip"!==d[0])for(c=(r?i.children.length:-1)+a,f=s.concat(i);c>-1&&c<i.children.length;){if(u=e(i.children[c],c,f)(),u[0]===cp)return u;c="number"==typeof u[1]?u[1]:c+a}return d}}(e,void 0,[])()},dp={}.hasOwnProperty;function pp(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function gp(e){return"function"==typeof e?e:()=>e}yp(/[A-Za-z]/),yp(/[\dA-Za-z]/),yp(/[#-'*+\--9=?A-Z^-~]/),yp(/\d/),yp(/[\dA-Fa-f]/),yp(/[!-/:-@[-`{-~]/);const hp=yp(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),mp=yp(/\s/);function yp(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}const bp="phrasing",vp=["autolink","link","image","label"],wp={transforms:[function(e){!function(e,t,n,r){let o,a;"string"==typeof t||t instanceof RegExp?(a=[[t,n]],o=r):(a=t,o=n),o||(o={});const i=Rc(o.ignore||[]),l=function(e){const t=[];if("object"!=typeof e)throw new TypeError("Expected array or object as schema");if(Array.isArray(e)){let n=-1;for(;++n<e.length;)t.push([pp(e[n][0]),gp(e[n][1])])}else{let n;for(n in e)dp.call(e,n)&&t.push([pp(n),gp(e[n])])}return t}(a);let s=-1;for(;++s<l.length;)fp(e,"text",u);return e;function u(e,t){let n,r=-1;for(;++r<t.length;){const e=t[r];if(i(e,n?n.children.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=l[s][0],o=l[s][1];let a=0;const i=n.children.indexOf(e);let u=!1,c=[];r.lastIndex=0;let f=r.exec(e.value);for(;f;){const n=f.index,i={index:f.index,input:f.input,stack:[...t,e]};let l=o(...f,i);if("string"==typeof l&&(l=l.length>0?{type:"text",value:l}:void 0),!1!==l&&(a!==n&&c.push({type:"text",value:e.value.slice(a,n)}),Array.isArray(l)?c.push(...l):l&&c.push(l),a=n+f[0].length,u=!0),!r.global)break;f=r.exec(e.value)}return u?(a<e.value.length&&c.push({type:"text",value:e.value.slice(a)}),n.children.splice(i,1,...c)):c=[e],i+c.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Ep],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Sp]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:xp,literalAutolinkHttp:xp,literalAutolinkWww:xp},exit:{literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e);this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}}},kp={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:bp,notInConstruct:vp},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:bp,notInConstruct:vp},{character:":",before:"[ps]",after:"\\/",inConstruct:bp,notInConstruct:vp}]};function xp(e){this.config.enter.autolinkProtocol.call(this,e)}function Ep(e,t,n,r,o){let a="";if(!Fp(o))return!1;if(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!function(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n))return!1;const i=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const o=up(e,"(");let a=up(e,")");for(;-1!==r&&o>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}(n+r);if(!i[0])return!1;const l={type:"link",title:null,url:a+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[l,{type:"text",value:i[1]}]:l}function Sp(e,t,n,r){return!(!Fp(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Fp(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||mp(n)||hp(n))&&(!t||47!==n)}function Ap(e){return e.label||!e.identifier?e.label||"":wc(e.identifier)}function Cp(e,t,n,r){let o=r.join.length;for(;o--;){const a=r.join[o](e,t,n,r);if(!0===a||1===a)break;if("number"==typeof a)return"\n".repeat(1+a);if(!1===a)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}const Op=/\r?\n|\r/g;function Pp(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function Tp(e,t){return Dp(e,t.inConstruct,!0)&&!Dp(e,t.notInConstruct,!1)}function Dp(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Rp(e,t,n){const r=(n.before||"")+(t||"")+(n.after||""),o=[],a=[],i={};let l=-1;for(;++l<e.unsafe.length;){const t=e.unsafe[l];if(!Tp(e.stack,t))continue;const n=Pp(t);let a;for(;a=n.exec(r);){const e="before"in t||Boolean(t.atBreak),n="after"in t,r=a.index+(e?a[1].length:0);o.includes(r)?(i[r].before&&!e&&(i[r].before=!1),i[r].after&&!n&&(i[r].after=!1)):(o.push(r),i[r]={before:e,after:n})}}o.sort(Np);let s=n.before?n.before.length:0;const u=r.length-(n.after?n.after.length:0);for(l=-1;++l<o.length;){const e=o[l];e<s||e>=u||e+1<u&&o[l+1]===e+1&&i[e].after&&!i[e+1].before&&!i[e+1].after||o[l-1]===e-1&&i[e].before&&!i[e-1].before&&!i[e-1].after||(s!==e&&a.push(Lp(r.slice(s,e),"\\")),s=e,!/[!-/:-@[-`{-~]/.test(r.charAt(e))||n.encode&&n.encode.includes(r.charAt(e))?(a.push("&#x"+r.charCodeAt(e).toString(16).toUpperCase()+";"),s++):a.push("\\"))}return a.push(Lp(r.slice(s,u),n.after)),a.join("")}function Np(e,t){return e-t}function Lp(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],o=[],a=e+t;let i,l=-1,s=0;for(;i=n.exec(a);)r.push(i.index);for(;++l<r.length;)s!==r[l]&&o.push(e.slice(s,r[l])),o.push("\\"),s=r[l];return o.push(e.slice(s)),o.join("")}function _p(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,o=n.line||1,a=n.column||1;return{move:function(e){const t=e||"",n=t.split(/\r?\n|\r/g),i=n[n.length-1];return o+=n.length-1,a=1===n.length?a+i.length:1+i.length+r,t},current:function(){return{now:{line:o,column:a},lineShift:r}},shift:function(e){r+=e}}}function jp(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Ip(){this.buffer()}function zp(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Tu(this.sliceSerialize(e)).toLowerCase()}function Bp(e){this.exit(e)}function Mp(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function $p(){this.buffer()}function Hp(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Tu(this.sliceSerialize(e)).toLowerCase()}function Up(e){this.exit(e)}function Wp(e,t,n,r){const o=_p(r);let a=o.move("[^");const i=n.enter("footnoteReference"),l=n.enter("reference");return a+=o.move(Rp(n,Ap(e),{...o.current(),before:a,after:"]"})),l(),i(),a+=o.move("]"),a}function Vp(e,t,n,r){const o=_p(r);let a=o.move("[^");const i=n.enter("footnoteDefinition"),l=n.enter("label");return a+=o.move(Rp(n,Ap(e),{...o.current(),before:a,after:"]"})),l(),a+=o.move("]:"+(e.children&&e.children.length>0?" ":"")),o.shift(4),a+=o.move(function(e,t){const n=[];let r,o=0,a=0;for(;r=Op.exec(e);)i(e.slice(o,r.index)),n.push(r[0]),o=r.index+r[0].length,a++;return i(e.slice(o)),n.join("");function i(e){n.push(t(e,a,!e))}}(function(e,t,n){const r=t.indexStack,o=e.children||[],a=t.createTracker(n),i=[];let l=-1;for(r.push(-1);++l<o.length;){const n=o[l];r[r.length-1]=l,i.push(a.move(t.handle(n,e,t,{before:"\n",after:"\n",...a.current()}))),"list"!==n.type&&(t.bulletLastUsed=void 0),l<o.length-1&&i.push(a.move(Cp(n,o[l+1],e,t)))}return r.pop(),i.join("")}(e,n,o.current()),qp)),i(),a}function qp(e,t,n){return 0===t?e:(n?"":" ")+e}Wp.peek=function(){return"["},Qp.peek=function(){return"~"};const Gp={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},Yp={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"]}],handlers:{delete:Qp}};function Qp(e,t,n,r){const o=function(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,o=n.line||1,a=n.column||1;return{move:function(e){const t=e||"",n=t.split(/\r?\n|\r/g),i=n[n.length-1];return o+=n.length-1,a=1===n.length?a+i.length:1+i.length+r,t},current:function(){return{now:{line:o,column:a},lineShift:r}},shift:function(e){r+=e}}}(r),a=n.enter("strikethrough");let i=o.move("~~");return i+=function(e,t,n){const r=t.indexStack,o=e.children||[],a=[];let i=-1,l=n.before;r.push(-1);let s=t.createTracker(n);for(;++i<o.length;){const u=o[i];let c;if(r[r.length-1]=i,i+1<o.length){let n=t.handle.handlers[o[i+1].type];n&&n.peek&&(n=n.peek),c=n?n(o[i+1],e,t,{before:"",after:"",...s.current()}).charAt(0):""}else c=n.after;a.length>0&&("\r"===l||"\n"===l)&&"html"===u.type&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),l=" ",s=t.createTracker(n),s.move(a.join(""))),a.push(s.move(t.handle(u,e,t,{...s.current(),before:l,after:c}))),l=a[a.length-1].slice(-1)}return r.pop(),a.join("")}(e,n,{...o.current(),before:i,after:"~"}),i+=o.move("~~"),a(),i}function Xp(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function Kp(e,t,n){let r=e.value||"",o="`",a=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){const e=n.unsafe[a],t=Xp(e);let o;if(e.atBreak)for(;o=t.exec(r);){let e=o.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(o.index+1)}}return o+r+o}function Zp(e){return e.length}function Jp(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}Kp.peek=function(){return"`"};const eg={enter:{table:function(e){const t=e._align;this.enter({type:"table",align:t.map((e=>"none"===e?null:e)),children:[]},e),this.setData("inTable",!0)},tableData:ng,tableHeader:ng,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,rg));this.stack[this.stack.length-1].value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:tg,tableHeader:tg,tableRow:tg}};function tg(e){this.exit(e)}function ng(e){this.enter({type:"tableCell",children:[]},e)}function rg(e,t){return"|"===t?t:e}function og(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:function(e,t,n,r){return l(function(e,t,n){const r=e.children;let o=-1;const a=[],i=t.enter("table");for(;++o<r.length;)a[o]=s(r[o],t,n);return i(),a}(e,n,r),e.align)},tableRow:function(e,t,n,r){const o=l([s(e,n,r)]);return o.slice(0,o.indexOf("\n"))},tableCell:i,inlineCode:function(e,t,n){let r=Kp(e,0,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r}}};function i(e,t,n,r){const o=n.enter("tableCell"),i=n.enter("phrasing"),l=function(e,t,n){const r=t.indexStack,o=e.children||[],a=[];let i=-1,l=n.before;r.push(-1);let s=t.createTracker(n);for(;++i<o.length;){const u=o[i];let c;if(r[r.length-1]=i,i+1<o.length){let n=t.handle.handlers[o[i+1].type];n&&n.peek&&(n=n.peek),c=n?n(o[i+1],e,t,{before:"",after:"",...s.current()}).charAt(0):""}else c=n.after;a.length>0&&("\r"===l||"\n"===l)&&"html"===u.type&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),l=" ",s=t.createTracker(n),s.move(a.join(""))),a.push(s.move(t.handle(u,e,t,{...s.current(),before:l,after:c}))),l=a[a.length-1].slice(-1)}return r.pop(),a.join("")}(e,n,{...r,before:a,after:a});return i(),o(),l}function l(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||Zp,a=[],i=[],l=[],s=[];let u=0,c=-1;for(;++c<e.length;){const t=[],r=[];let a=-1;for(e[c].length>u&&(u=e[c].length);++a<e[c].length;){const i=null==(f=e[c][a])?"":String(f);if(!1!==n.alignDelimiters){const e=o(i);r[a]=e,(void 0===s[a]||e>s[a])&&(s[a]=e)}t.push(i)}i[c]=t,l[c]=r}var f;let d=-1;if("object"==typeof r&&"length"in r)for(;++d<u;)a[d]=Jp(r[d]);else{const e=Jp(r);for(;++d<u;)a[d]=e}d=-1;const p=[],g=[];for(;++d<u;){const e=a[d];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let o=!1===n.alignDelimiters?1:Math.max(1,s[d]-t.length-r.length);const i=t+"-".repeat(o)+r;!1!==n.alignDelimiters&&(o=t.length+o+r.length,o>s[d]&&(s[d]=o),g[d]=o),p[d]=i}i.splice(1,0,p),l.splice(1,0,g),c=-1;const h=[];for(;++c<i.length;){const e=i[c],t=l[c];d=-1;const r=[];for(;++d<u;){const o=e[d]||"";let i="",l="";if(!1!==n.alignDelimiters){const e=s[d]-(t[d]||0),n=a[d];114===n?i=" ".repeat(e):99===n?e%2?(i=" ".repeat(e/2+.5),l=" ".repeat(e/2-.5)):(i=" ".repeat(e/2),l=i):l=" ".repeat(e)}!1===n.delimiterStart||d||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===o||!1===n.delimiterStart&&!d||r.push(" "),!1!==n.alignDelimiters&&r.push(i),r.push(o),!1!==n.alignDelimiters&&r.push(l),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&d===u-1||r.push("|")}h.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return h.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:o})}function s(e,t,n){const r=e.children;let o=-1;const a=[],l=t.enter("tableRow");for(;++o<r.length;)a[o]=i(r[o],0,t,n);return l(),a}}const ag={exit:{taskListCheckValueChecked:lg,taskListCheckValueUnchecked:lg,paragraph:function(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1],n=e.children[0];if(n&&"text"===n.type){const r=t.children;let o,a=-1;for(;++a<r.length;){const e=r[a];if("paragraph"===e.type){o=e;break}}o===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}}},ig={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:function(e,t,n,r){const o=e.children[0],a="boolean"==typeof e.checked&&o&&"paragraph"===o.type,i="["+(e.checked?"x":" ")+"] ",l=function(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,o=n.line||1,a=n.column||1;return{move:function(e){const t=e||"",n=t.split(/\r?\n|\r/g),i=n[n.length-1];return o+=n.length-1,a=1===n.length?a+i.length:1+i.length+r,t},current:function(){return{now:{line:o,column:a},lineShift:r}},shift:function(e){r+=e}}}(r);a&&l.move(i);let s=function(e,t,n,r){const o=function(e){const t=e.options.listItemIndent||"tab";if(1===t||"1"===t)return"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let a=n.bulletCurrent||function(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(a=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+a);let i=a.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(i=4*Math.ceil(i/4));const l=n.createTracker(r);l.move(a+" ".repeat(i-a.length)),l.shift(i);const s=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,l.current()),(function(e,t,n){return t?(n?"":" ".repeat(i))+e:(n?a:a+" ".repeat(i-a.length))+e}));return s(),u}(e,t,n,{...r,...l.current()});return a&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+i}))),s}}};function lg(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function sg(e={}){const t=this.data();function n(e,n){(t[e]?t[e]:t[e]=[]).push(n)}n("micromarkExtensions",function(e){return function(e){const t={};let n=-1;for(;++n<e.length;)id(t,e[n]);return t}([Ed,{document:{91:{tokenize:Bd,continuation:{tokenize:Md},exit:$d}},text:{91:{tokenize:zd},93:{add:"after",tokenize:jd,resolveTo:Id}}},qd(e),ep,lp])}(e)),n("fromMarkdownExtensions",[wp,{enter:{gfmFootnoteDefinition:jp,gfmFootnoteDefinitionLabelString:Ip,gfmFootnoteCall:Mp,gfmFootnoteCallString:$p},exit:{gfmFootnoteDefinition:Bp,gfmFootnoteDefinitionLabelString:zp,gfmFootnoteCall:Up,gfmFootnoteCallString:Hp}},Gp,eg,ag]),n("toMarkdownExtensions",function(e){return{extensions:[kp,{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:Vp,footnoteReference:Wp}},Yp,og(e),ig]}}(e))}var ug=o(144);function cg(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function fg(...e){return(0,r.useCallback)(cg(...e),e)}const dg=(0,r.forwardRef)(((e,t)=>{const{children:n,...o}=e,a=r.Children.toArray(n),i=a.find(hg);if(i){const e=i.props.children,n=a.map((t=>t===i?r.Children.count(e)>1?r.Children.only(null):(0,r.isValidElement)(e)?e.props.children:null:t));return(0,r.createElement)(pg,Pe({},o,{ref:t}),(0,r.isValidElement)(e)?(0,r.cloneElement)(e,void 0,n):null)}return(0,r.createElement)(pg,Pe({},o,{ref:t}),n)}));dg.displayName="Slot";const pg=(0,r.forwardRef)(((e,t)=>{const{children:n,...o}=e;return(0,r.isValidElement)(n)?(0,r.cloneElement)(n,{...mg(o,n.props),ref:cg(t,n.ref)}):r.Children.count(n)>1?r.Children.only(null):null}));pg.displayName="SlotClone";const gg=({children:e})=>(0,r.createElement)(r.Fragment,null,e);function hg(e){return(0,r.isValidElement)(e)&&e.type===gg}function mg(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{a(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const yg=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=(0,r.forwardRef)(((e,n)=>{const{asChild:o,...a}=e,i=o?dg:t;return(0,r.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,r.createElement)(i,Pe({},a,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{}),bg=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?r.useLayoutEffect:()=>{},vg=e=>{const{present:t,children:n}=e,o=function(e){const[t,n]=(0,r.useState)(),o=(0,r.useRef)({}),a=(0,r.useRef)(e),i=(0,r.useRef)("none"),l=e?"mounted":"unmounted",[s,u]=function(e,t){return(0,r.useReducer)(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,r.useEffect)((()=>{const e=wg(o.current);i.current="mounted"===s?e:"none"}),[s]),bg((()=>{const t=o.current,n=a.current;if(n!==e){const r=i.current,o=wg(t);e?u("MOUNT"):"none"===o||"none"===(null==t?void 0:t.display)?u("UNMOUNT"):u(n&&r!==o?"ANIMATION_OUT":"UNMOUNT"),a.current=e}}),[e,u]),bg((()=>{if(t){const e=e=>{const n=wg(o.current).includes(e.animationName);e.target===t&&n&&(0,ug.flushSync)((()=>u("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=wg(o.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}u("ANIMATION_END")}),[t,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:(0,r.useCallback)((e=>{e&&(o.current=getComputedStyle(e)),n(e)}),[])}}(t),a="function"==typeof n?n({present:o.isPresent}):r.Children.only(n),i=fg(o.ref,a.ref);return"function"==typeof n||o.isPresent?(0,r.cloneElement)(a,{ref:i}):null};function wg(e){return(null==e?void 0:e.animationName)||"none"}function kg(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const o=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return(0,r.useMemo)((()=>({[`__scope${t.scopeName}`]:o})),[o])}};return n.scopeName=t.scopeName,n}function xg(e){const t=(0,r.useRef)(e);return(0,r.useEffect)((()=>{t.current=e})),(0,r.useMemo)((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}vg.displayName="Presence";const Eg=(0,r.createContext)(void 0);function Sg(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}const Fg="ScrollArea",[Ag,Cg]=function(e,t=[]){let n=[];const o=()=>{const t=n.map((e=>(0,r.createContext)(e)));return function(n){const o=(null==n?void 0:n[e])||t;return(0,r.useMemo)((()=>({[`__scope${e}`]:{...n,[e]:o}})),[n,o])}};return o.scopeName=e,[function(t,o){const a=(0,r.createContext)(o),i=n.length;function l(t){const{scope:n,children:o,...l}=t,s=(null==n?void 0:n[e][i])||a,u=(0,r.useMemo)((()=>l),Object.values(l));return(0,r.createElement)(s.Provider,{value:u},o)}return n=[...n,o],l.displayName=t+"Provider",[l,function(n,l){const s=(null==l?void 0:l[e][i])||a,u=(0,r.useContext)(s);if(u)return u;if(void 0!==o)return o;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},kg(o,...t)]}(Fg),[Og,Pg]=Ag(Fg),Tg=(0,r.forwardRef)(((e,t)=>{const{__scopeScrollArea:n,type:o="hover",dir:a,scrollHideDelay:i=600,...l}=e,[s,u]=(0,r.useState)(null),[c,f]=(0,r.useState)(null),[d,p]=(0,r.useState)(null),[g,h]=(0,r.useState)(null),[m,y]=(0,r.useState)(null),[b,v]=(0,r.useState)(0),[w,k]=(0,r.useState)(0),[x,E]=(0,r.useState)(!1),[S,F]=(0,r.useState)(!1),A=fg(t,(e=>u(e))),C=function(e){const t=(0,r.useContext)(Eg);return e||t||"ltr"}(a);return(0,r.createElement)(Og,{scope:n,type:o,dir:C,scrollHideDelay:i,scrollArea:s,viewport:c,onViewportChange:f,content:d,onContentChange:p,scrollbarX:g,onScrollbarXChange:h,scrollbarXEnabled:x,onScrollbarXEnabledChange:E,scrollbarY:m,onScrollbarYChange:y,scrollbarYEnabled:S,onScrollbarYEnabledChange:F,onCornerWidthChange:v,onCornerHeightChange:k},(0,r.createElement)(yg.div,Pe({dir:C},l,{ref:A,style:{position:"relative","--radix-scroll-area-corner-width":b+"px","--radix-scroll-area-corner-height":w+"px",...e.style}})))})),Dg=(0,r.forwardRef)(((e,t)=>{const{__scopeScrollArea:n,children:o,...a}=e,i=Pg("ScrollAreaViewport",n),l=fg(t,(0,r.useRef)(null),i.onViewportChange);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),(0,r.createElement)(yg.div,Pe({"data-radix-scroll-area-viewport":""},a,{ref:l,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style}}),(0,r.createElement)("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"}},o)))})),Rg="ScrollAreaScrollbar",Ng=(0,r.forwardRef)(((e,t)=>{const{forceMount:n,...o}=e,a=Pg(Rg,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:l}=a,s="horizontal"===e.orientation;return(0,r.useEffect)((()=>(s?i(!0):l(!0),()=>{s?i(!1):l(!1)})),[s,i,l]),"hover"===a.type?(0,r.createElement)(Lg,Pe({},o,{ref:t,forceMount:n})):"scroll"===a.type?(0,r.createElement)(_g,Pe({},o,{ref:t,forceMount:n})):"auto"===a.type?(0,r.createElement)(jg,Pe({},o,{ref:t,forceMount:n})):"always"===a.type?(0,r.createElement)(Ig,Pe({},o,{ref:t})):null})),Lg=(0,r.forwardRef)(((e,t)=>{const{forceMount:n,...o}=e,a=Pg(Rg,e.__scopeScrollArea),[i,l]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{const e=a.scrollArea;let t=0;if(e){const n=()=>{window.clearTimeout(t),l(!0)},r=()=>{t=window.setTimeout((()=>l(!1)),a.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}}),[a.scrollArea,a.scrollHideDelay]),(0,r.createElement)(vg,{present:n||i},(0,r.createElement)(jg,Pe({"data-state":i?"visible":"hidden"},o,{ref:t})))})),_g=(0,r.forwardRef)(((e,t)=>{const{forceMount:n,...o}=e,a=Pg(Rg,e.__scopeScrollArea),i="horizontal"===e.orientation,l=nh((()=>u("SCROLL_END")),100),[s,u]=(c={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},(0,r.useReducer)(((e,t)=>{const n=c[e][t];return null!=n?n:e}),"hidden"));var c;return(0,r.useEffect)((()=>{if("idle"===s){const e=window.setTimeout((()=>u("HIDE")),a.scrollHideDelay);return()=>window.clearTimeout(e)}}),[s,a.scrollHideDelay,u]),(0,r.useEffect)((()=>{const e=a.viewport,t=i?"scrollLeft":"scrollTop";if(e){let n=e[t];const r=()=>{const r=e[t];n!==r&&(u("SCROLL"),l()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}}),[a.viewport,i,u,l]),(0,r.createElement)(vg,{present:n||"hidden"!==s},(0,r.createElement)(Ig,Pe({"data-state":"hidden"===s?"hidden":"visible"},o,{ref:t,onPointerEnter:Sg(e.onPointerEnter,(()=>u("POINTER_ENTER"))),onPointerLeave:Sg(e.onPointerLeave,(()=>u("POINTER_LEAVE")))})))})),jg=(0,r.forwardRef)(((e,t)=>{const n=Pg(Rg,e.__scopeScrollArea),{forceMount:o,...a}=e,[i,l]=(0,r.useState)(!1),s="horizontal"===e.orientation,u=nh((()=>{if(n.viewport){const e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;l(s?e:t)}}),10);return rh(n.viewport,u),rh(n.content,u),(0,r.createElement)(vg,{present:o||i},(0,r.createElement)(Ig,Pe({"data-state":i?"visible":"hidden"},a,{ref:t})))})),Ig=(0,r.forwardRef)(((e,t)=>{const{orientation:n="vertical",...o}=e,a=Pg(Rg,e.__scopeScrollArea),i=(0,r.useRef)(null),l=(0,r.useRef)(0),[s,u]=(0,r.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=Xg(s.viewport,s.content),f={...o,sizes:s,onSizesChange:u,hasThumb:Boolean(c>0&&c<1),onThumbChange:e=>i.current=e,onThumbPointerUp:()=>l.current=0,onThumbPointerDown:e=>l.current=e};function d(e,t){return function(e,t,n,r="ltr"){const o=Kg(n),a=t||o/2,i=o-a,l=n.scrollbar.paddingStart+a,s=n.scrollbar.size-n.scrollbar.paddingEnd-i,u=n.content-n.viewport;return Jg([l,s],"ltr"===r?[0,u]:[-1*u,0])(e)}(e,l.current,s,t)}return"horizontal"===n?(0,r.createElement)(zg,Pe({},f,{ref:t,onThumbPositionChange:()=>{if(a.viewport&&i.current){const e=Zg(a.viewport.scrollLeft,s,a.dir);i.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollLeft=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollLeft=d(e,a.dir))}})):"vertical"===n?(0,r.createElement)(Bg,Pe({},f,{ref:t,onThumbPositionChange:()=>{if(a.viewport&&i.current){const e=Zg(a.viewport.scrollTop,s);i.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollTop=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollTop=d(e))}})):null})),zg=(0,r.forwardRef)(((e,t)=>{const{sizes:n,onSizesChange:o,...a}=e,i=Pg(Rg,e.__scopeScrollArea),[l,s]=(0,r.useState)(),u=(0,r.useRef)(null),c=fg(t,u,i.onScrollbarXChange);return(0,r.useEffect)((()=>{u.current&&s(getComputedStyle(u.current))}),[u]),(0,r.createElement)(Hg,Pe({"data-orientation":"horizontal"},a,{ref:c,sizes:n,style:{bottom:0,left:"rtl"===i.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===i.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Kg(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(i.viewport){const r=i.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),eh(r,n)&&t.preventDefault()}},onResize:()=>{u.current&&i.viewport&&l&&o({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:Qg(l.paddingLeft),paddingEnd:Qg(l.paddingRight)}})}}))})),Bg=(0,r.forwardRef)(((e,t)=>{const{sizes:n,onSizesChange:o,...a}=e,i=Pg(Rg,e.__scopeScrollArea),[l,s]=(0,r.useState)(),u=(0,r.useRef)(null),c=fg(t,u,i.onScrollbarYChange);return(0,r.useEffect)((()=>{u.current&&s(getComputedStyle(u.current))}),[u]),(0,r.createElement)(Hg,Pe({"data-orientation":"vertical"},a,{ref:c,sizes:n,style:{top:0,right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Kg(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(i.viewport){const r=i.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),eh(r,n)&&t.preventDefault()}},onResize:()=>{u.current&&i.viewport&&l&&o({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:Qg(l.paddingTop),paddingEnd:Qg(l.paddingBottom)}})}}))})),[Mg,$g]=Ag(Rg),Hg=(0,r.forwardRef)(((e,t)=>{const{__scopeScrollArea:n,sizes:o,hasThumb:a,onThumbChange:i,onThumbPointerUp:l,onThumbPointerDown:s,onThumbPositionChange:u,onDragScroll:c,onWheelScroll:f,onResize:d,...p}=e,g=Pg(Rg,n),[h,m]=(0,r.useState)(null),y=fg(t,(e=>m(e))),b=(0,r.useRef)(null),v=(0,r.useRef)(""),w=g.viewport,k=o.content-o.viewport,x=xg(f),E=xg(u),S=nh(d,10);function F(e){if(b.current){const t=e.clientX-b.current.left,n=e.clientY-b.current.top;c({x:t,y:n})}}return(0,r.useEffect)((()=>{const e=e=>{const t=e.target;(null==h?void 0:h.contains(t))&&x(e,k)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})}),[w,h,k,x]),(0,r.useEffect)(E,[o,E]),rh(h,S),rh(g.content,S),(0,r.createElement)(Mg,{scope:n,scrollbar:h,hasThumb:a,onThumbChange:xg(i),onThumbPointerUp:xg(l),onThumbPositionChange:E,onThumbPointerDown:xg(s)},(0,r.createElement)(yg.div,Pe({},p,{ref:y,style:{position:"absolute",...p.style},onPointerDown:Sg(e.onPointerDown,(e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),b.current=h.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",F(e))})),onPointerMove:Sg(e.onPointerMove,F),onPointerUp:Sg(e.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=v.current,b.current=null}))})))})),Ug="ScrollAreaThumb",Wg=(0,r.forwardRef)(((e,t)=>{const{forceMount:n,...o}=e,a=$g(Ug,e.__scopeScrollArea);return(0,r.createElement)(vg,{present:n||a.hasThumb},(0,r.createElement)(Vg,Pe({ref:t},o)))})),Vg=(0,r.forwardRef)(((e,t)=>{const{__scopeScrollArea:n,style:o,...a}=e,i=Pg(Ug,n),l=$g(Ug,n),{onThumbPositionChange:s}=l,u=fg(t,(e=>l.onThumbChange(e))),c=(0,r.useRef)(),f=nh((()=>{c.current&&(c.current(),c.current=void 0)}),100);return(0,r.useEffect)((()=>{const e=i.viewport;if(e){const t=()=>{if(f(),!c.current){const t=th(e,s);c.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}}),[i.viewport,f,s]),(0,r.createElement)(yg.div,Pe({"data-state":l.hasThumb?"visible":"hidden"},a,{ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...o},onPointerDownCapture:Sg(e.onPointerDownCapture,(e=>{const t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;l.onThumbPointerDown({x:n,y:r})})),onPointerUp:Sg(e.onPointerUp,l.onThumbPointerUp)}))})),qg="ScrollAreaCorner",Gg=(0,r.forwardRef)(((e,t)=>{const n=Pg(qg,e.__scopeScrollArea),o=Boolean(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&o?(0,r.createElement)(Yg,Pe({},e,{ref:t})):null})),Yg=(0,r.forwardRef)(((e,t)=>{const{__scopeScrollArea:n,...o}=e,a=Pg(qg,n),[i,l]=(0,r.useState)(0),[s,u]=(0,r.useState)(0),c=Boolean(i&&s);return rh(a.scrollbarX,(()=>{var e;const t=(null===(e=a.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;a.onCornerHeightChange(t),u(t)})),rh(a.scrollbarY,(()=>{var e;const t=(null===(e=a.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;a.onCornerWidthChange(t),l(t)})),c?(0,r.createElement)(yg.div,Pe({},o,{ref:t,style:{width:i,height:s,position:"absolute",right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:0,...e.style}})):null}));function Qg(e){return e?parseInt(e,10):0}function Xg(e,t){const n=e/t;return isNaN(n)?0:n}function Kg(e){const t=Xg(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function Zg(e,t,n="ltr"){const r=Kg(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,i=t.content-t.viewport,l=a-r,s=function(e,[t,n]){return Math.min(n,Math.max(t,e))}(e,"ltr"===n?[0,i]:[-1*i,0]);return Jg([0,i],[0,l])(s)}function Jg(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function eh(e,t){return e>0&&e<t}const th=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const a={left:e.scrollLeft,top:e.scrollTop},i=n.left!==a.left,l=n.top!==a.top;(i||l)&&t(),n=a,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function nh(e,t){const n=xg(e),o=(0,r.useRef)(0);return(0,r.useEffect)((()=>()=>window.clearTimeout(o.current)),[]),(0,r.useCallback)((()=>{window.clearTimeout(o.current),o.current=window.setTimeout(n,t)}),[n,t])}function rh(e,t){const n=xg(t);bg((()=>{let t=0;if(e){const r=new ResizeObserver((()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)}));return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}}),[e,n])}const oh=Tg,ah=Dg,ih=Ng,lh=Wg,sh=Gg;function uh(e){return Array.isArray(e)?e:[e]}const ch=Mn(((e,{scrollbarSize:t,offsetScrollbars:n,scrollbarHovered:r,hidden:o})=>({root:{overflow:"hidden"},viewport:{width:"100%",height:"100%",paddingRight:n?xt(t):void 0,paddingBottom:n?xt(t):void 0},scrollbar:{display:o?"none":"flex",userSelect:"none",touchAction:"none",boxSizing:"border-box",padding:`calc(${xt(t)} / 5)`,transition:"background-color 150ms ease, opacity 150ms ease","&:hover":{backgroundColor:"dark"===e.colorScheme?e.colors.dark[8]:e.colors.gray[0],[`& .${vo("thumb")}`]:{backgroundColor:"dark"===e.colorScheme?e.fn.rgba(e.white,.5):e.fn.rgba(e.black,.5)}},'&[data-orientation="vertical"]':{width:xt(t)},'&[data-orientation="horizontal"]':{flexDirection:"column",height:xt(t)},'&[data-state="hidden"]':{display:"none",opacity:0}},thumb:{ref:vo("thumb"),flex:1,backgroundColor:"dark"===e.colorScheme?e.fn.rgba(e.white,.4):e.fn.rgba(e.black,.4),borderRadius:xt(t),position:"relative",transition:"background-color 150ms ease",display:o?"none":void 0,overflow:"hidden","&::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"100%",height:"100%",minWidth:xt(44),minHeight:xt(44)}},corner:{backgroundColor:"dark"===e.colorScheme?e.colors.dark[6]:e.colors.gray[0],transition:"opacity 150ms ease",opacity:r?1:0,display:o?"none":void 0}})));var fh=Object.defineProperty,dh=Object.defineProperties,ph=Object.getOwnPropertyDescriptors,gh=Object.getOwnPropertySymbols,hh=Object.prototype.hasOwnProperty,mh=Object.prototype.propertyIsEnumerable,yh=(e,t,n)=>t in e?fh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bh=(e,t)=>{for(var n in t||(t={}))hh.call(t,n)&&yh(e,n,t[n]);if(gh)for(var n of gh(t))mh.call(t,n)&&yh(e,n,t[n]);return e},vh=(e,t)=>dh(e,ph(t)),wh=(e,t)=>{var n={};for(var r in e)hh.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&gh)for(var r of gh(e))t.indexOf(r)<0&&mh.call(e,r)&&(n[r]=e[r]);return n};const kh={scrollbarSize:12,scrollHideDelay:1e3,type:"hover",offsetScrollbars:!1},xh=(0,r.forwardRef)(((e,t)=>{const n=bn("ScrollArea",kh,e),{children:o,className:a,classNames:i,styles:l,scrollbarSize:s,scrollHideDelay:u,type:c,dir:f,offsetScrollbars:d,viewportRef:p,onScrollPositionChange:g,unstyled:h,variant:m,viewportProps:y}=n,b=wh(n,["children","className","classNames","styles","scrollbarSize","scrollHideDelay","type","dir","offsetScrollbars","viewportRef","onScrollPositionChange","unstyled","variant","viewportProps"]),[v,w]=(0,r.useState)(!1),k=mn(),{classes:x,cx:E}=ch({scrollbarSize:s,offsetScrollbars:d,scrollbarHovered:v,hidden:"never"===c},{name:"ScrollArea",classNames:i,styles:l,unstyled:h,variant:m});return r.createElement(oh,{type:"never"===c?"always":c,scrollHideDelay:u,dir:f||k.dir,ref:t,asChild:!0},r.createElement(_r,bh({className:E(x.root,a)},b),r.createElement(ah,vh(bh({},y),{className:x.viewport,ref:p,onScroll:"function"==typeof g?({currentTarget:e})=>g({x:e.scrollLeft,y:e.scrollTop}):void 0}),o),r.createElement(ih,{orientation:"horizontal",className:x.scrollbar,forceMount:!0,onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1)},r.createElement(lh,{className:x.thumb})),r.createElement(ih,{orientation:"vertical",className:x.scrollbar,forceMount:!0,onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1)},r.createElement(lh,{className:x.thumb})),r.createElement(sh,{className:x.corner})))})),Eh=(0,r.forwardRef)(((e,t)=>{const n=bn("ScrollAreaAutosize",kh,e),{children:o,classNames:a,styles:i,scrollbarSize:l,scrollHideDelay:s,type:u,dir:c,offsetScrollbars:f,viewportRef:d,onScrollPositionChange:p,unstyled:g,sx:h,variant:m,viewportProps:y}=n,b=wh(n,["children","classNames","styles","scrollbarSize","scrollHideDelay","type","dir","offsetScrollbars","viewportRef","onScrollPositionChange","unstyled","sx","variant","viewportProps"]);return r.createElement(_r,vh(bh({},b),{ref:t,sx:[{display:"flex"},...uh(h)]}),r.createElement(_r,{sx:{display:"flex",flexDirection:"column",flex:1}},r.createElement(xh,{classNames:a,styles:i,scrollHideDelay:s,scrollbarSize:l,type:u,dir:c,offsetScrollbars:f,viewportRef:d,onScrollPositionChange:p,unstyled:g,variant:m,viewportProps:y},o)))}));Eh.displayName="@mantine/core/ScrollAreaAutosize",xh.displayName="@mantine/core/ScrollArea",xh.Autosize=Eh;const Sh=xh;function Fh(e){return!Array.isArray(e)&&null!==e&&"object"==typeof e&&e.type!==r.Fragment}function Ah(...e){return(0,r.useCallback)(function(...e){return t=>{e.forEach((e=>function(e,t){"function"==typeof e?e(t):"object"==typeof e&&null!==e&&"current"in e&&(e.current=t)}(e,t)))}}(...e),e)}const Ch={app:100,modal:200,popover:300,overlay:400,max:9999};function Oh(e){return Ch[e]}function Ph(){return"undefined"!=typeof window}function Th(e){return Nh(e)?(e.nodeName||"").toLowerCase():"#document"}function Dh(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Rh(e){var t;return null==(t=(Nh(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Nh(e){return!!Ph()&&(e instanceof Node||e instanceof Dh(e).Node)}function Lh(e){return!!Ph()&&(e instanceof Element||e instanceof Dh(e).Element)}function _h(e){return!!Ph()&&(e instanceof HTMLElement||e instanceof Dh(e).HTMLElement)}function jh(e){return!(!Ph()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Dh(e).ShadowRoot)}function Ih(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Uh(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function zh(e){return["table","td","th"].includes(Th(e))}function Bh(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Mh(e){const t=$h(),n=Lh(e)?Uh(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function $h(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Hh(e){return["html","body","#document"].includes(Th(e))}function Uh(e){return Dh(e).getComputedStyle(e)}function Wh(e){return Lh(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Vh(e){if("html"===Th(e))return e;const t=e.assignedSlot||e.parentNode||jh(e)&&e.host||Rh(e);return jh(t)?t.host:t}function qh(e){const t=Vh(e);return Hh(t)?e.ownerDocument?e.ownerDocument.body:e.body:_h(t)&&Ih(t)?t:qh(t)}function Gh(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=qh(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=Dh(o);if(a){const e=Yh(i);return t.concat(i,i.visualViewport||[],Ih(o)?o:[],e&&n?Gh(e):[])}return t.concat(o,Gh(o,[],n))}function Yh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Qh=Math.min,Xh=Math.max,Kh=Math.round,Zh=Math.floor,Jh=e=>({x:e,y:e}),em={left:"right",right:"left",bottom:"top",top:"bottom"},tm={start:"end",end:"start"};function nm(e,t,n){return Xh(e,Qh(t,n))}function rm(e,t){return"function"==typeof e?e(t):e}function om(e){return e.split("-")[0]}function am(e){return e.split("-")[1]}function im(e){return"x"===e?"y":"x"}function lm(e){return"y"===e?"height":"width"}function sm(e){return["top","bottom"].includes(om(e))?"y":"x"}function um(e){return im(sm(e))}function cm(e){return e.replace(/start|end/g,(e=>tm[e]))}function fm(e){return e.replace(/left|right|bottom|top/g,(e=>em[e]))}function dm(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function pm(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function gm(e,t,n){let{reference:r,floating:o}=e;const a=sm(t),i=um(t),l=lm(i),s=om(t),u="y"===a,c=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=r[l]/2-o[l]/2;let p;switch(s){case"top":p={x:c,y:r.y-o.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-o.width,y:f};break;default:p={x:r.x,y:r.y}}switch(am(t)){case"start":p[i]-=d*(n&&u?-1:1);break;case"end":p[i]+=d*(n&&u?-1:1)}return p}async function hm(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:l,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=rm(t,e),g=dm(p),h=l[d?"floating"===f?"reference":"floating":f],m=pm(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(h)))||n?h:h.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:s})),y="floating"===f?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,b=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating)),v=await(null==a.isElement?void 0:a.isElement(b))&&await(null==a.getScale?void 0:a.getScale(b))||{x:1,y:1},w=pm(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:b,strategy:s}):y);return{top:(m.top-w.top+g.top)/v.y,bottom:(w.bottom-m.bottom+g.bottom)/v.y,left:(m.left-w.left+g.left)/v.x,right:(w.right-m.right+g.right)/v.x}}function mm(e){const t=Qh(...e.map((e=>e.left))),n=Qh(...e.map((e=>e.top)));return{x:t,y:n,width:Xh(...e.map((e=>e.right)))-t,height:Xh(...e.map((e=>e.bottom)))-n}}function ym(e){const t=Uh(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=_h(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=Kh(n)!==a||Kh(r)!==i;return l&&(n=a,r=i),{width:n,height:r,$:l}}function bm(e){return Lh(e)?e:e.contextElement}function vm(e){const t=bm(e);if(!_h(t))return Jh(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=ym(t);let i=(a?Kh(n.width):n.width)/r,l=(a?Kh(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}const wm=Jh(0);function km(e){const t=Dh(e);return $h()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:wm}function xm(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=bm(e);let i=Jh(1);t&&(r?Lh(r)&&(i=vm(r)):i=vm(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Dh(e))&&t}(a,n,r)?km(a):Jh(0);let s=(o.left+l.x)/i.x,u=(o.top+l.y)/i.y,c=o.width/i.x,f=o.height/i.y;if(a){const e=Dh(a),t=r&&Lh(r)?Dh(r):r;let n=e,o=Yh(n);for(;o&&r&&t!==n;){const e=vm(o),t=o.getBoundingClientRect(),r=Uh(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,u*=e.y,c*=e.x,f*=e.y,s+=a,u+=i,n=Dh(o),o=Yh(n)}}return pm({width:c,height:f,x:s,y:u})}function Em(e,t){const n=Wh(e).scrollLeft;return t?t.left+n:xm(Rh(e)).left+n}function Sm(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Em(e,r)),y:r.top+t.scrollTop}}function Fm(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Dh(e),r=Rh(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;const e=$h();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l,y:s}}(e,n);else if("document"===t)r=function(e){const t=Rh(e),n=Wh(e),r=e.ownerDocument.body,o=Xh(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Xh(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Em(e);const l=-n.scrollTop;return"rtl"===Uh(r).direction&&(i+=Xh(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:l}}(Rh(e));else if(Lh(t))r=function(e,t){const n=xm(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=_h(e)?vm(e):Jh(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{const n=km(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return pm(r)}function Am(e,t){const n=Vh(e);return!(n===t||!Lh(n)||Hh(n))&&("fixed"===Uh(n).position||Am(n,t))}function Cm(e,t,n){const r=_h(t),o=Rh(t),a="fixed"===n,i=xm(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const s=Jh(0);if(r||!r&&!a)if(("body"!==Th(t)||Ih(o))&&(l=Wh(t)),r){const e=xm(t,!0,a,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=Em(o));const u=!o||r||a?Jh(0):Sm(o,l);return{x:i.left+l.scrollLeft-s.x-u.x,y:i.top+l.scrollTop-s.y-u.y,width:i.width,height:i.height}}function Om(e){return"static"===Uh(e).position}function Pm(e,t){if(!_h(e)||"fixed"===Uh(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Rh(e)===n&&(n=n.ownerDocument.body),n}function Tm(e,t){const n=Dh(e);if(Bh(e))return n;if(!_h(e)){let t=Vh(e);for(;t&&!Hh(t);){if(Lh(t)&&!Om(t))return t;t=Vh(t)}return n}let r=Pm(e,t);for(;r&&zh(r)&&Om(r);)r=Pm(r,t);return r&&Hh(r)&&Om(r)&&!Mh(r)?n:r||function(e){let t=Vh(e);for(;_h(t)&&!Hh(t);){if(Mh(t))return t;if(Bh(t))return null;t=Vh(t)}return null}(e)||n}const Dm={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a="fixed"===o,i=Rh(r),l=!!t&&Bh(t.floating);if(r===i||l&&a)return n;let s={scrollLeft:0,scrollTop:0},u=Jh(1);const c=Jh(0),f=_h(r);if((f||!f&&!a)&&(("body"!==Th(r)||Ih(i))&&(s=Wh(r)),_h(r))){const e=xm(r);u=vm(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}const d=!i||f||a?Jh(0):Sm(i,s,!0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x+d.x,y:n.y*u.y-s.scrollTop*u.y+c.y+d.y}},getDocumentElement:Rh,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?Bh(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Gh(e,[],!1).filter((e=>Lh(e)&&"body"!==Th(e))),o=null;const a="fixed"===Uh(e).position;let i=a?Vh(e):e;for(;Lh(i)&&!Hh(i);){const t=Uh(i),n=Mh(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Ih(i)&&!n&&Am(e,i))?r=r.filter((e=>e!==i)):o=t,i=Vh(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=a[0],l=a.reduce(((e,n)=>{const r=Fm(t,n,o);return e.top=Xh(r.top,e.top),e.right=Qh(r.right,e.right),e.bottom=Qh(r.bottom,e.bottom),e.left=Xh(r.left,e.left),e}),Fm(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Tm,getElementRects:async function(e){const t=this.getOffsetParent||Tm,n=this.getDimensions,r=await n(e.floating);return{reference:Cm(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=ym(e);return{width:t,height:n}},getScale:vm,isElement:Lh,isRTL:function(e){return"rtl"===Uh(e).direction}};function Rm(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}const Nm=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:l}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=om(n),l=am(n),s="y"===sm(n),u=["left","top"].includes(i)?-1:1,c=a&&s?-1:1,f=rm(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:g}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&"number"==typeof g&&(p="end"===l?-1*g:g),s?{x:p*c,y:d*u}:{x:d*u,y:p*c}}(t,e);return i===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:a+s.y,data:{...s,placement:i}}}}},Lm=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=rm(e,t),u={x:n,y:r},c=await hm(t,s),f=sm(om(o)),d=im(f);let p=u[d],g=u[f];if(a){const e="y"===d?"bottom":"right";p=nm(p+c["y"===d?"top":"left"],p,p-c[e])}if(i){const e="y"===f?"bottom":"right";g=nm(g+c["y"===f?"top":"left"],g,g-c[e])}const h=l.fn({...t,[d]:p,[f]:g});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[d]:a,[f]:i}}}}}},_m=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:l,platform:s,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...m}=rm(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const y=om(o),b=sm(l),v=om(l)===l,w=await(null==s.isRTL?void 0:s.isRTL(u.floating)),k=d||(v||!h?[fm(l)]:function(e){const t=fm(e);return[cm(e),t,cm(t)]}(l)),x="none"!==g;!d&&x&&k.push(...function(e,t,n,r){const o=am(e);let a=function(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}(om(e),"start"===n,r);return o&&(a=a.map((e=>e+"-"+o)),t&&(a=a.concat(a.map(cm)))),a}(l,h,g,w));const E=[l,...k],S=await hm(t,m),F=[];let A=(null==(r=a.flip)?void 0:r.overflows)||[];if(c&&F.push(S[y]),f){const e=function(e,t,n){void 0===n&&(n=!1);const r=am(e),o=um(e),a=lm(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=fm(i)),[i,fm(i)]}(o,i,w);F.push(S[e[0]],S[e[1]])}if(A=[...A,{placement:o,overflows:F}],!F.every((e=>e<=0))){var C,O;const e=((null==(C=a.flip)?void 0:C.index)||0)+1,t=E[e];if(t)return{data:{index:e,overflows:A},reset:{placement:t}};let n=null==(O=A.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:O.placement;if(!n)switch(p){case"bestFit":{var P;const e=null==(P=A.filter((e=>{if(x){const t=sm(e.placement);return t===b||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:P[0];e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}},jm=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:l,middlewareData:s}=t,{element:u,padding:c=0}=rm(e,t)||{};if(null==u)return{};const f=dm(c),d={x:n,y:r},p=um(o),g=lm(p),h=await i.getDimensions(u),m="y"===p,y=m?"top":"left",b=m?"bottom":"right",v=m?"clientHeight":"clientWidth",w=a.reference[g]+a.reference[p]-d[p]-a.floating[g],k=d[p]-a.reference[p],x=await(null==i.getOffsetParent?void 0:i.getOffsetParent(u));let E=x?x[v]:0;E&&await(null==i.isElement?void 0:i.isElement(x))||(E=l.floating[v]||a.floating[g]);const S=w/2-k/2,F=E/2-h[g]/2-1,A=Qh(f[y],F),C=Qh(f[b],F),O=A,P=E-h[g]-C,T=E/2-h[g]/2+S,D=nm(O,T,P),R=!s.arrow&&null!=am(o)&&T!==D&&a.reference[g]/2-(T<O?A:C)-h[g]/2<0,N=R?T<O?T-O:T-P:0;return{[p]:d[p]+N,data:{[p]:D,centerOffset:T-D-N,...R&&{alignmentOffset:N}},reset:R}}}),Im=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:o,platform:a,strategy:i}=t,{padding:l=2,x:s,y:u}=rm(e,t),c=Array.from(await(null==a.getClientRects?void 0:a.getClientRects(r.reference))||[]),f=function(e){const t=e.slice().sort(((e,t)=>e.y-t.y)),n=[];let r=null;for(let e=0;e<t.length;e++){const o=t[e];!r||o.y-r.y>r.height/2?n.push([o]):n[n.length-1].push(o),r=o}return n.map((e=>pm(mm(e))))}(c),d=pm(mm(c)),p=dm(l),g=await a.getElementRects({reference:{getBoundingClientRect:function(){if(2===f.length&&f[0].left>f[1].right&&null!=s&&null!=u)return f.find((e=>s>e.left-p.left&&s<e.right+p.right&&u>e.top-p.top&&u<e.bottom+p.bottom))||d;if(f.length>=2){if("y"===sm(n)){const e=f[0],t=f[f.length-1],r="top"===om(n),o=e.top,a=t.bottom,i=r?e.left:t.left,l=r?e.right:t.right;return{top:o,bottom:a,left:i,right:l,width:l-i,height:a-o,x:i,y:o}}const e="left"===om(n),t=Xh(...f.map((e=>e.right))),r=Qh(...f.map((e=>e.left))),o=f.filter((n=>e?n.left===r:n.right===t)),a=o[0].top,i=o[o.length-1].bottom;return{top:a,bottom:i,left:r,right:t,width:t-r,height:i-a,x:r,y:a}}return d}},floating:r.floating,strategy:i});return o.reference.x!==g.reference.x||o.reference.y!==g.reference.y||o.reference.width!==g.reference.width||o.reference.height!==g.reference.height?{reset:{rects:g}}:{}}}},zm=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:l=0,mainAxis:s=!0,crossAxis:u=!0}=rm(e,t),c={x:n,y:r},f=sm(o),d=im(f);let p=c[d],g=c[f];const h=rm(l,t),m="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){const e="y"===d?"height":"width",t=a.reference[d]-a.floating[e]+m.mainAxis,n=a.reference[d]+a.reference[e]-m.mainAxis;p<t?p=t:p>n&&(p=n)}if(u){var y,b;const e="y"===d?"width":"height",t=["top","left"].includes(om(o)),n=a.reference[f]-a.floating[e]+(t&&(null==(y=i.offset)?void 0:y[f])||0)+(t?0:m.crossAxis),r=a.reference[f]+a.reference[e]+(t?0:(null==(b=i.offset)?void 0:b[f])||0)-(t?m.crossAxis:0);g<n?g=n:g>r&&(g=r)}return{[d]:p,[f]:g}}}},Bm=(e,t,n)=>{const r=new Map,o={platform:Dm,...n},a={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,l=a.filter(Boolean),s=await(null==i.isRTL?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=gm(u,r,s),d=r,p={},g=0;for(let n=0;n<l.length;n++){const{name:a,fn:h}=l[n],{x:m,y,data:b,reset:v}=await h({x:c,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:u,platform:i,elements:{reference:e,floating:t}});c=null!=m?m:c,f=null!=y?y:f,p={...p,[a]:{...p[a],...b}},v&&g<=50&&(g++,"object"==typeof v&&(v.placement&&(d=v.placement),v.rects&&(u=!0===v.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):v.rects),({x:c,y:f}=gm(u,d,s))),n=-1)}return{x:c,y:f,placement:d,strategy:o,middlewareData:p}})(e,t,{...o,platform:a})},Mm=e=>{const{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){return r=t,Object.prototype.hasOwnProperty.call(r,"current")?null!=t.current?jm({element:t.current,padding:n}).fn(e):{}:t?jm({element:t,padding:n}).fn(e):{};var r}}};var $m="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function Hm(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!Hm(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||Hm(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function Um(e){const t=r.useRef(e);return $m((()=>{t.current=e})),t}var Wm="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;let Vm=!1,qm=0;const Gm=()=>"floating-ui-"+qm++,Ym=i["useId".toString()]||function(){const[e,t]=r.useState((()=>Vm?Gm():void 0));return Wm((()=>{null==e&&t(Gm())}),[]),r.useEffect((()=>{Vm||(Vm=!0)}),[]),e};const Qm=r.createContext(null),Xm=r.createContext(null),Km=()=>{var e;return(null==(e=r.useContext(Qm))?void 0:e.id)||null},Zm=()=>r.useContext(Xm);function Jm(e){return(null==e?void 0:e.ownerDocument)||document}function ey(e){return Jm(e).defaultView||window}function ty(e){return!!e&&e instanceof ey(e).Element}function ny(e){return!!e&&e instanceof ey(e).HTMLElement}function ry(e){if(0===e.mozInputSource&&e.isTrusted)return!0;const t=/Android/i;return(t.test(function(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}())||t.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}()))&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType}function oy(e){return 0===e.width&&0===e.height||1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"!==e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail}function ay(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function iy(e){const t=(0,r.useRef)(e);return Wm((()=>{t.current=e})),t}const ly="data-floating-ui-safe-polygon";function sy(e,t,n){return n&&!ay(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}const uy=function(e,t){let{enabled:n=!0,delay:o=0,handleClose:a=null,mouseOnly:i=!1,restMs:l=0,move:s=!0}=void 0===t?{}:t;const{open:u,onOpenChange:c,dataRef:f,events:d,elements:{domReference:p,floating:g},refs:h}=e,m=Zm(),y=Km(),b=iy(a),v=iy(o),w=r.useRef(),k=r.useRef(),x=r.useRef(),E=r.useRef(),S=r.useRef(!0),F=r.useRef(!1),A=r.useRef((()=>{})),C=r.useCallback((()=>{var e;const t=null==(e=f.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[f]);r.useEffect((()=>{if(n)return d.on("dismiss",e),()=>{d.off("dismiss",e)};function e(){clearTimeout(k.current),clearTimeout(E.current),S.current=!0}}),[n,d]),r.useEffect((()=>{if(!n||!b.current||!u)return;function e(){C()&&c(!1)}const t=Jm(g).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[g,u,c,n,b,f,C]);const O=r.useCallback((function(e){void 0===e&&(e=!0);const t=sy(v.current,"close",w.current);t&&!x.current?(clearTimeout(k.current),k.current=setTimeout((()=>c(!1)),t)):e&&(clearTimeout(k.current),c(!1))}),[v,c]),P=r.useCallback((()=>{A.current(),x.current=void 0}),[]),T=r.useCallback((()=>{if(F.current){const e=Jm(h.floating.current).body;e.style.pointerEvents="",e.removeAttribute(ly),F.current=!1}}),[h]);return r.useEffect((()=>{if(n&&ty(p)){const e=p;return u&&e.addEventListener("mouseleave",a),null==g||g.addEventListener("mouseleave",a),s&&e.addEventListener("mousemove",r,{once:!0}),e.addEventListener("mouseenter",r),e.addEventListener("mouseleave",o),()=>{u&&e.removeEventListener("mouseleave",a),null==g||g.removeEventListener("mouseleave",a),s&&e.removeEventListener("mousemove",r),e.removeEventListener("mouseenter",r),e.removeEventListener("mouseleave",o)}}function t(){return!!f.current.openEvent&&["click","mousedown"].includes(f.current.openEvent.type)}function r(e){if(clearTimeout(k.current),S.current=!1,i&&!ay(w.current)||l>0&&0===sy(v.current,"open"))return;f.current.openEvent=e;const t=sy(v.current,"open",w.current);t?k.current=setTimeout((()=>{c(!0)}),t):c(!0)}function o(n){if(t())return;A.current();const r=Jm(g);if(clearTimeout(E.current),b.current){u||clearTimeout(k.current),x.current=b.current({...e,tree:m,x:n.clientX,y:n.clientY,onClose(){T(),P(),O()}});const t=x.current;return r.addEventListener("mousemove",t),void(A.current=()=>{r.removeEventListener("mousemove",t)})}O()}function a(n){t()||null==b.current||b.current({...e,tree:m,x:n.clientX,y:n.clientY,onClose(){T(),P(),O()}})(n)}}),[p,g,n,e,i,l,s,O,P,T,c,u,m,v,b,f]),Wm((()=>{var e;if(n&&u&&null!=(e=b.current)&&e.__options.blockPointerEvents&&C()){const e=Jm(g).body;if(e.setAttribute(ly,""),e.style.pointerEvents="none",F.current=!0,ty(p)&&g){var t,r;const e=p,n=null==m||null==(t=m.nodesRef.current.find((e=>e.id===y)))||null==(r=t.context)?void 0:r.elements.floating;return n&&(n.style.pointerEvents=""),e.style.pointerEvents="auto",g.style.pointerEvents="auto",()=>{e.style.pointerEvents="",g.style.pointerEvents=""}}}}),[n,u,y,g,p,m,b,f,C]),Wm((()=>{u||(w.current=void 0,P(),T())}),[u,P,T]),r.useEffect((()=>()=>{P(),clearTimeout(k.current),clearTimeout(E.current),T()}),[n,P,T]),r.useMemo((()=>{if(!n)return{};function e(e){w.current=e.pointerType}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove(){u||0===l||(clearTimeout(E.current),E.current=setTimeout((()=>{S.current||c(!0)}),l))}},floating:{onMouseEnter(){clearTimeout(k.current)},onMouseLeave(){d.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),O(!1)}}}}),[d,n,l,u,c,O])},cy=r.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),fy=()=>r.useContext(cy),dy=e=>{let{children:t,delay:n,timeoutMs:o=0}=e;const[a,i]=r.useReducer(((e,t)=>({...e,...t})),{delay:n,timeoutMs:o,initialDelay:n,currentId:null,isInstantPhase:!1}),l=r.useRef(null),s=r.useCallback((e=>{i({currentId:e})}),[]);return Wm((()=>{a.currentId?null===l.current?l.current=a.currentId:i({isInstantPhase:!0}):(i({isInstantPhase:!1}),l.current=null)}),[a.currentId]),r.createElement(cy.Provider,{value:r.useMemo((()=>({...a,setState:i,setCurrentId:s})),[a,i,s])},t)},py=(e,t)=>{let{open:n,onOpenChange:o}=e,{id:a}=t;const{currentId:i,setCurrentId:l,initialDelay:s,setState:u,timeoutMs:c}=fy();r.useEffect((()=>{i&&(u({delay:{open:1,close:sy(s,"close")}}),i!==a&&o(!1))}),[a,o,u,i,s]),r.useEffect((()=>{function e(){o(!1),u({delay:s,currentId:null})}if(!n&&i===a){if(c){const t=window.setTimeout(e,c);return()=>{clearTimeout(t)}}e()}}),[n,u,i,a,o,s,c]),r.useEffect((()=>{n&&l(a)}),[n,l,a])};function gy(e,t){if(!e||!t)return!1;const n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&function(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ey(e).ShadowRoot||e instanceof ShadowRoot)}(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}function hy(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)}))||[],r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))}))||[],n=n.concat(r);return n}const my=i["useInsertionEffect".toString()]||(e=>e());function yy(e){const t=r.useRef((()=>{}));return my((()=>{t.current=e})),r.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}function by(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}const vy={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},wy={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},ky=function(e,t){let{open:n,onOpenChange:o,events:a,nodeId:i,elements:{reference:l,domReference:s,floating:u},dataRef:c}=e,{enabled:f=!0,escapeKey:d=!0,outsidePress:p=!0,outsidePressEvent:g="pointerdown",referencePress:h=!1,referencePressEvent:m="pointerdown",ancestorScroll:y=!1,bubbles:b=!0}=void 0===t?{}:t;const v=Zm(),w=null!=Km(),k=yy("function"==typeof p?p:()=>!1),x="function"==typeof p?k:p,E=r.useRef(!1),{escapeKeyBubbles:S,outsidePressBubbles:F}=function(e){var t,n;return void 0===e&&(e=!0),{escapeKeyBubbles:"boolean"==typeof e?e:null==(t=e.escapeKey)||t,outsidePressBubbles:"boolean"==typeof e?e:null==(n=e.outsidePress)||n}}(b);return r.useEffect((()=>{if(!n||!f)return;function e(e){if("Escape"===e.key){const e=v?hy(v.nodesRef.current,i):[];if(e.length>0){let t=!0;if(e.forEach((e=>{var n;null==(n=e.context)||!n.open||e.context.dataRef.current.__escapeKeyBubbles||(t=!1)})),!t)return}a.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),o(!1)}}function t(e){const t=E.current;if(E.current=!1,t)return;if("function"==typeof x&&!x(e))return;const n=function(e){return"composedPath"in e?e.composedPath()[0]:e.target}(e);if(ny(n)&&u){const t=u.ownerDocument.defaultView||window,r=n.scrollWidth>n.clientWidth,o=n.scrollHeight>n.clientHeight;let a=o&&e.offsetX>n.clientWidth;if(o&&"rtl"===t.getComputedStyle(n).direction&&(a=e.offsetX<=n.offsetWidth-n.clientWidth),a||r&&e.offsetY>n.clientHeight)return}const r=v&&hy(v.nodesRef.current,i).some((t=>{var n;return by(e,null==(n=t.context)?void 0:n.elements.floating)}));if(by(e,u)||by(e,s)||r)return;const l=v?hy(v.nodesRef.current,i):[];if(l.length>0){let e=!0;if(l.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}a.emit("dismiss",{type:"outsidePress",data:{returnFocus:w?{preventScroll:!0}:ry(e)||oy(e)}}),o(!1)}function r(){o(!1)}c.current.__escapeKeyBubbles=S,c.current.__outsidePressBubbles=F;const p=Jm(u);d&&p.addEventListener("keydown",e),x&&p.addEventListener(g,t);let h=[];return y&&(ty(s)&&(h=Gh(s)),ty(u)&&(h=h.concat(Gh(u))),!ty(l)&&l&&l.contextElement&&(h=h.concat(Gh(l.contextElement)))),h=h.filter((e=>{var t;return e!==(null==(t=p.defaultView)?void 0:t.visualViewport)})),h.forEach((e=>{e.addEventListener("scroll",r,{passive:!0})})),()=>{d&&p.removeEventListener("keydown",e),x&&p.removeEventListener(g,t),h.forEach((e=>{e.removeEventListener("scroll",r)}))}}),[c,u,s,l,d,x,g,a,v,i,n,o,y,f,S,F,w]),r.useEffect((()=>{E.current=!1}),[x,g]),r.useMemo((()=>f?{reference:{[vy[m]]:()=>{h&&(a.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),o(!1))}},floating:{[wy[g]]:()=>{E.current=!0}}}:{}),[f,a,h,g,m,o])},xy=function(e,t){let{open:n,onOpenChange:o,dataRef:a,events:i,refs:l,elements:{floating:s,domReference:u}}=e,{enabled:c=!0,keyboardOnly:f=!0}=void 0===t?{}:t;const d=r.useRef(""),p=r.useRef(!1),g=r.useRef();return r.useEffect((()=>{if(!c)return;const e=Jm(s).defaultView||window;function t(){!n&&ny(u)&&u===function(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(r=n.shadowRoot)?void 0:r.activeElement);){var n,r;t=t.shadowRoot.activeElement}return t}(Jm(u))&&(p.current=!0)}return e.addEventListener("blur",t),()=>{e.removeEventListener("blur",t)}}),[s,u,n,c]),r.useEffect((()=>{if(c)return i.on("dismiss",e),()=>{i.off("dismiss",e)};function e(e){"referencePress"!==e.type&&"escapeKey"!==e.type||(p.current=!0)}}),[i,c]),r.useEffect((()=>()=>{clearTimeout(g.current)}),[]),r.useMemo((()=>c?{reference:{onPointerDown(e){let{pointerType:t}=e;d.current=t,p.current=!(!t||!f)},onMouseLeave(){p.current=!1},onFocus(e){var t;p.current||"focus"===e.type&&"mousedown"===(null==(t=a.current.openEvent)?void 0:t.type)&&a.current.openEvent&&by(a.current.openEvent,u)||(a.current.openEvent=e.nativeEvent,o(!0))},onBlur(e){p.current=!1;const t=e.relatedTarget,n=ty(t)&&t.hasAttribute("data-floating-ui-focus-guard")&&"outside"===t.getAttribute("data-type");g.current=setTimeout((()=>{gy(l.floating.current,t)||gy(u,t)||n||o(!1)}))}}}:{}),[c,f,u,l,a,o])},Ey=function(e,t){let{open:n}=e,{enabled:o=!0,role:a="dialog"}=void 0===t?{}:t;const i=Ym(),l=Ym();return r.useMemo((()=>{const e={id:i,role:a};return o?"tooltip"===a?{reference:{"aria-describedby":n?i:void 0},floating:e}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":"alertdialog"===a?"dialog":a,"aria-controls":n?i:void 0,..."listbox"===a&&{role:"combobox"},..."menu"===a&&{id:l}},floating:{...e,..."menu"===a&&{"aria-labelledby":l}}}:{}}),[o,a,n,i,l])};function Sy(e){void 0===e&&(e={});const{open:t=!1,onOpenChange:n,nodeId:o}=e,a=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:a,whileElementsMounted:i,open:l}=e,[s,u]=r.useState({x:null,y:null,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[c,f]=r.useState(o);Hm(c,o)||f(o);const d=r.useRef(null),p=r.useRef(null),g=r.useRef(s),h=Um(i),m=Um(a),[y,b]=r.useState(null),[v,w]=r.useState(null),k=r.useCallback((e=>{d.current!==e&&(d.current=e,b(e))}),[]),x=r.useCallback((e=>{p.current!==e&&(p.current=e,w(e))}),[]),E=r.useCallback((()=>{if(!d.current||!p.current)return;const e={placement:t,strategy:n,middleware:c};m.current&&(e.platform=m.current),Bm(d.current,p.current,e).then((e=>{const t={...e,isPositioned:!0};S.current&&!Hm(g.current,t)&&(g.current=t,ug.flushSync((()=>{u(t)})))}))}),[c,t,n,m]);$m((()=>{!1===l&&g.current.isPositioned&&(g.current.isPositioned=!1,u((e=>({...e,isPositioned:!1}))))}),[l]);const S=r.useRef(!1);$m((()=>(S.current=!0,()=>{S.current=!1})),[]),$m((()=>{if(y&&v){if(h.current)return h.current(y,v,E);E()}}),[y,v,E,h]);const F=r.useMemo((()=>({reference:d,floating:p,setReference:k,setFloating:x})),[k,x]),A=r.useMemo((()=>({reference:y,floating:v})),[y,v]);return r.useMemo((()=>({...s,update:E,refs:F,elements:A,reference:k,floating:x})),[s,E,F,A,k,x])}(e),i=Zm(),l=r.useRef(null),s=r.useRef({}),u=r.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){e.set(t,(e.get(t)||[]).filter((e=>e!==n)))}}}()))[0],[c,f]=r.useState(null),d=r.useCallback((e=>{const t=ty(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;a.refs.setReference(t)}),[a.refs]),p=r.useCallback((e=>{(ty(e)||null===e)&&(l.current=e,f(e)),(ty(a.refs.reference.current)||null===a.refs.reference.current||null!==e&&!ty(e))&&a.refs.setReference(e)}),[a.refs]),g=r.useMemo((()=>({...a.refs,setReference:p,setPositionReference:d,domReference:l})),[a.refs,p,d]),h=r.useMemo((()=>({...a.elements,domReference:c})),[a.elements,c]),m=yy(n),y=r.useMemo((()=>({...a,refs:g,elements:h,dataRef:s,nodeId:o,events:u,open:t,onOpenChange:m})),[a,o,u,t,m,g,h]);return Wm((()=>{const e=null==i?void 0:i.nodesRef.current.find((e=>e.id===o));e&&(e.context=y)})),r.useMemo((()=>({...a,context:y,refs:g,reference:p,positionReference:d})),[a,g,y,p,d])}function Fy(e,t,n){const r=new Map;return{..."floating"===n&&{tabIndex:-1},...e,...t.map((e=>e?e[n]:null)).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,o]=t;var a;0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof o&&(null==(a=r.get(n))||a.push(o),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];null==(e=r.get(n))||e.forEach((e=>e(...o)))})):e[n]=o})),e):e),{})}}const Ay=(0,r.createContext)(!1),Cy=Ay.Provider;function Oy({children:e,openDelay:t=0,closeDelay:n=0}){return r.createElement(Cy,{value:!0},r.createElement(dy,{delay:{open:t,close:n}},e))}Oy.displayName="@mantine/core/TooltipGroup";var Py=Object.defineProperty,Ty=Object.defineProperties,Dy=Object.getOwnPropertyDescriptors,Ry=Object.getOwnPropertySymbols,Ny=Object.prototype.hasOwnProperty,Ly=Object.prototype.propertyIsEnumerable,_y=(e,t,n)=>t in e?Py(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jy=(e,t)=>{for(var n in t||(t={}))Ny.call(t,n)&&_y(e,n,t[n]);if(Ry)for(var n of Ry(t))Ly.call(t,n)&&_y(e,n,t[n]);return e},Iy=(e,t)=>Ty(e,Dy(t));function zy(e,t){if(!t)return{backgroundColor:"dark"===e.colorScheme?e.colors.gray[2]:e.colors.gray[9],color:"dark"===e.colorScheme?e.black:e.white};const n=e.fn.variant({variant:"filled",color:t,primaryFallback:!1});return{backgroundColor:n.background,color:n.color}}const By=Mn(((e,{color:t,radius:n,width:r,multiline:o})=>({tooltip:Iy(jy(jy({},e.fn.fontStyles()),zy(e,t)),{lineHeight:e.lineHeight,fontSize:e.fontSizes.sm,borderRadius:e.fn.radius(n),padding:`calc(${e.spacing.xs} / 2) ${e.spacing.xs}`,position:"absolute",whiteSpace:o?"unset":"nowrap",pointerEvents:"none",width:r}),arrow:{backgroundColor:"inherit",border:0,zIndex:1}}))),My="Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported";var $y=Object.defineProperty,Hy=Object.defineProperties,Uy=Object.getOwnPropertyDescriptors,Wy=Object.getOwnPropertySymbols,Vy=Object.prototype.hasOwnProperty,qy=Object.prototype.propertyIsEnumerable,Gy=(e,t,n)=>t in e?$y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function Yy(e){const t=bn("Portal",{},e),{children:n,target:o,className:a,innerRef:i}=t,l=((e,t)=>{var n={};for(var r in e)Vy.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Wy)for(var r of Wy(e))t.indexOf(r)<0&&qy.call(e,r)&&(n[r]=e[r]);return n})(t,["children","target","className","innerRef"]),s=mn(),[u,c]=(0,r.useState)(!1),f=(0,r.useRef)();return Vo((()=>(c(!0),f.current=o?"string"==typeof o?document.querySelector(o):o:document.createElement("div"),o||document.body.appendChild(f.current),()=>{!o&&document.body.removeChild(f.current)})),[o]),u?(0,ug.createPortal)(r.createElement("div",((e,t)=>Hy(e,Uy(t)))(((e,t)=>{for(var n in t||(t={}))Vy.call(t,n)&&Gy(e,n,t[n]);if(Wy)for(var n of Wy(t))qy.call(t,n)&&Gy(e,n,t[n]);return e})({className:a,dir:s.dir},l),{ref:i}),n),f.current):null}Yy.displayName="@mantine/core/Portal";var Qy=Object.defineProperty,Xy=Object.getOwnPropertySymbols,Ky=Object.prototype.hasOwnProperty,Zy=Object.prototype.propertyIsEnumerable,Jy=(e,t,n)=>t in e?Qy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function eb(e){var t=e,{withinPortal:n=!0,children:o}=t,a=((e,t)=>{var n={};for(var r in e)Ky.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Xy)for(var r of Xy(e))t.indexOf(r)<0&&Zy.call(e,r)&&(n[r]=e[r]);return n})(t,["withinPortal","children"]);return n?r.createElement(Yy,((e,t)=>{for(var n in t||(t={}))Ky.call(t,n)&&Jy(e,n,t[n]);if(Xy)for(var n of Xy(t))Zy.call(t,n)&&Jy(e,n,t[n]);return e})({},a),o):r.createElement(r.Fragment,null,o)}eb.displayName="@mantine/core/OptionalPortal";var tb=Object.defineProperty,nb=Object.defineProperties,rb=Object.getOwnPropertyDescriptors,ob=Object.getOwnPropertySymbols,ab=Object.prototype.hasOwnProperty,ib=Object.prototype.propertyIsEnumerable,lb=(e,t,n)=>t in e?tb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sb=(e,t)=>{for(var n in t||(t={}))ab.call(t,n)&&lb(e,n,t[n]);if(ob)for(var n of ob(t))ib.call(t,n)&&lb(e,n,t[n]);return e},ub=(e,t)=>nb(e,rb(t));const cb={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:Oh("popover")};function fb(e){var t;const n=bn("TooltipFloating",cb,e),{children:o,refProp:a,withinPortal:i,portalProps:l,style:s,className:u,classNames:c,styles:f,unstyled:d,radius:p,color:g,label:h,offset:m,position:y,multiline:b,width:v,zIndex:w,disabled:k,variant:x}=n,E=((e,t)=>{var n={};for(var r in e)ab.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ob)for(var r of ob(e))t.indexOf(r)<0&&ib.call(e,r)&&(n[r]=e[r]);return n})(n,["children","refProp","withinPortal","portalProps","style","className","classNames","styles","unstyled","radius","color","label","offset","position","multiline","width","zIndex","disabled","variant"]),{handleMouseMove:S,x:F,y:A,opened:C,boundaryRef:O,floating:P,setOpened:T}=function({offset:e,position:t}){const[n,o]=(0,r.useState)(!1),a=(0,r.useRef)(),{x:i,y:l,reference:s,floating:u,refs:c,update:f,placement:d}=Sy({placement:t,middleware:[Lm({crossAxis:!0,padding:5,rootBoundary:"document"})]}),p=d.includes("right")?e:t.includes("left")?-1*e:0,g=d.includes("bottom")?e:t.includes("top")?-1*e:0,h=(0,r.useCallback)((({clientX:e,clientY:t})=>{s({getBoundingClientRect:()=>({width:0,height:0,x:e,y:t,left:e+p,top:t+g,right:e,bottom:t})})}),[s]);return(0,r.useEffect)((()=>{if(c.floating.current){const e=a.current;e.addEventListener("mousemove",h);const t=Gh(c.floating.current);return t.forEach((e=>{e.addEventListener("scroll",f)})),()=>{e.removeEventListener("mousemove",h),t.forEach((e=>{e.removeEventListener("scroll",f)}))}}}),[s,c.floating.current,f,h,n]),{handleMouseMove:h,x:i,y:l,opened:n,setOpened:o,boundaryRef:a,floating:u}}({offset:m,position:y}),{classes:D,cx:R}=By({radius:p,color:g,multiline:b,width:v},{name:"TooltipFloating",classNames:c,styles:f,unstyled:d,variant:x});if(!Fh(o))throw new Error(My);const N=Ah(O,o.ref);return r.createElement(r.Fragment,null,r.createElement(eb,ub(sb({},l),{withinPortal:i}),r.createElement(_r,ub(sb({},E),{ref:P,className:R(D.tooltip,u),style:ub(sb({},s),{zIndex:w,display:!k&&C?"block":"none",top:null!=A?A:"",left:null!=(t=Math.round(F))?t:""})}),h)),(0,r.cloneElement)(o,ub(sb({},o.props),{[a]:N,onMouseEnter:e=>{var t,n;null==(n=(t=o.props).onMouseEnter)||n.call(t,e),S(e),T(!0)},onMouseLeave:e=>{var t,n;null==(n=(t=o.props).onMouseLeave)||n.call(t,e),T(!1)}})))}function db(e,t){const n=(0,r.useRef)(!1);(0,r.useEffect)((()=>()=>{n.current=!1}),[]),(0,r.useEffect)((()=>{if(n.current)return e();n.current=!0}),t)}function pb({opened:e,floating:t,position:n,positionDependencies:o}){const[a,i]=(0,r.useState)(0);(0,r.useEffect)((()=>{if(t.refs.reference.current&&t.refs.floating.current)return function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,u=bm(e),c=o||a?[...u?Gh(u):[],...Gh(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const f=u&&l?function(e,t){let n,r=null;const o=Rh(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),a();const u=e.getBoundingClientRect(),{left:c,top:f,width:d,height:p}=u;if(l||t(),!d||!p)return;const g={rootMargin:-Zh(f)+"px "+-Zh(o.clientWidth-(c+d))+"px "+-Zh(o.clientHeight-(f+p))+"px "+-Zh(c)+"px",threshold:Xh(0,Qh(1,s))||1};let h=!0;function m(t){const r=t[0].intersectionRatio;if(r!==s){if(!h)return i();r?i(!1,r):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}1!==r||Rm(u,e.getBoundingClientRect())||i(),h=!1}try{r=new IntersectionObserver(m,{...g,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,g)}r.observe(e)}(!0),a}(u,n):null;let d,p=-1,g=null;i&&(g=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=g)||e.observe(t)}))),n()})),u&&!s&&g.observe(u),g.observe(t));let h=s?xm(e):null;return s&&function t(){const r=xm(e);h&&!Rm(h,r)&&n(),h=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==f||f(),null==(e=g)||e.disconnect(),g=null,s&&cancelAnimationFrame(d)}}(t.refs.reference.current,t.refs.floating.current,t.update)}),[t.refs.reference.current,t.refs.floating.current,e,a,n]),db((()=>{t.update()}),o),db((()=>{i((e=>e+1))}),[e])}function gb(e,t){if("rtl"===e&&(t.includes("right")||t.includes("left"))){const[e,n]=t.split("-"),r="right"===e?"left":"right";return void 0===n?r:`${r}-${n}`}return t}fb.displayName="@mantine/core/TooltipFloating";var hb=Object.defineProperty,mb=Object.defineProperties,yb=Object.getOwnPropertyDescriptors,bb=Object.getOwnPropertySymbols,vb=Object.prototype.hasOwnProperty,wb=Object.prototype.propertyIsEnumerable,kb=(e,t,n)=>t in e?hb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xb=(e,t)=>{for(var n in t||(t={}))vb.call(t,n)&&kb(e,n,t[n]);if(bb)for(var n of bb(t))wb.call(t,n)&&kb(e,n,t[n]);return e},Eb=(e,t)=>mb(e,yb(t));const Sb={in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${xt(10)})`},transitionProperty:"transform, opacity"},Fb={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:`translateY(-${xt(20)}) skew(-10deg, -5deg)`},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:`translateY(${xt(20)}) skew(-10deg, -5deg)`},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:`translateY(${xt(20)}) rotate(-5deg)`},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:`translateY(${xt(20)}) rotate(5deg)`},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:Eb(xb({},Sb),{common:{transformOrigin:"center center"}}),"pop-bottom-left":Eb(xb({},Sb),{common:{transformOrigin:"bottom left"}}),"pop-bottom-right":Eb(xb({},Sb),{common:{transformOrigin:"bottom right"}}),"pop-top-left":Eb(xb({},Sb),{common:{transformOrigin:"top left"}}),"pop-top-right":Eb(xb({},Sb),{common:{transformOrigin:"top right"}})};var Ab=Object.defineProperty,Cb=Object.getOwnPropertySymbols,Ob=Object.prototype.hasOwnProperty,Pb=Object.prototype.propertyIsEnumerable,Tb=(e,t,n)=>t in e?Ab(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Db=(e,t)=>{for(var n in t||(t={}))Ob.call(t,n)&&Tb(e,n,t[n]);if(Cb)for(var n of Cb(t))Pb.call(t,n)&&Tb(e,n,t[n]);return e};const Rb={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function Nb({duration:e,exitDuration:t,timingFunction:n,mounted:o,onEnter:a,onExit:i,onEntered:l,onExited:s}){const u=mn(),c=function(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[o,a]=(0,r.useState)(n?t:function(e,t){return"boolean"==typeof t?t:"undefined"!=typeof window&&"matchMedia"in window&&window.matchMedia(e).matches}(e,t)),i=(0,r.useRef)();return(0,r.useEffect)((()=>{if("matchMedia"in window)return i.current=window.matchMedia(e),a(i.current.matches),function(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch(n){return e.addListener(t),()=>e.removeListener(t)}}(i.current,(e=>a(e.matches)))}),[e]),o}("(prefers-reduced-motion: reduce)",undefined,undefined);const f=!!u.respectReducedMotion&&c,[d,p]=(0,r.useState)(f?0:e),[g,h]=(0,r.useState)(o?"entered":"exited"),m=(0,r.useRef)(-1);return db((()=>{(n=>{const r=n?a:i,o=n?l:s;h(n?"pre-entering":"pre-exiting"),window.clearTimeout(m.current);const u=f?0:n?e:t;if(p(u),0===u)"function"==typeof r&&r(),"function"==typeof o&&o(),h(n?"entered":"exited");else{const e=window.setTimeout((()=>{"function"==typeof r&&r(),h(n?"entering":"exiting")}),10);m.current=window.setTimeout((()=>{window.clearTimeout(e),"function"==typeof o&&o(),h(n?"entered":"exited")}),u)}})(o)}),[o]),(0,r.useEffect)((()=>()=>window.clearTimeout(m.current)),[]),{transitionDuration:d,transitionStatus:g,transitionTimingFunction:n||u.transitionTimingFunction}}function Lb({keepMounted:e,transition:t,duration:n=250,exitDuration:o=n,mounted:a,children:i,timingFunction:l,onExit:s,onEntered:u,onEnter:c,onExited:f}){const{transitionDuration:d,transitionStatus:p,transitionTimingFunction:g}=Nb({mounted:a,exitDuration:o,duration:n,timingFunction:l,onExit:s,onEntered:u,onEnter:c,onExited:f});return 0===d?a?r.createElement(r.Fragment,null,i({})):e?i({display:"none"}):null:"exited"===p?e?i({display:"none"}):null:r.createElement(r.Fragment,null,i(function({transition:e,state:t,duration:n,timingFunction:r}){const o={transitionDuration:`${n}ms`,transitionTimingFunction:r};return"string"==typeof e?e in Fb?Db(Db(Db({transitionProperty:Fb[e].transitionProperty},o),Fb[e].common),Fb[e][Rb[t]]):null:Db(Db(Db({transitionProperty:e.transitionProperty},o),e.common),e[Rb[t]])}({transition:t,duration:d,state:p,timingFunction:g})))}Lb.displayName="@mantine/core/Transition";var _b=Object.defineProperty,jb=Object.defineProperties,Ib=Object.getOwnPropertyDescriptors,zb=Object.getOwnPropertySymbols,Bb=Object.prototype.hasOwnProperty,Mb=Object.prototype.propertyIsEnumerable,$b=(e,t,n)=>t in e?_b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Hb=(e,t)=>{for(var n in t||(t={}))Bb.call(t,n)&&$b(e,n,t[n]);if(zb)for(var n of zb(t))Mb.call(t,n)&&$b(e,n,t[n]);return e},Ub=(e,t)=>jb(e,Ib(t));function Wb(e,t,n,r){return"center"===e||"center"===r?{top:t}:"end"===e?{bottom:n}:"start"===e?{top:n}:{}}function Vb(e,t,n,r,o){return"center"===e||"center"===r?{left:t}:"end"===e?{["ltr"===o?"right":"left"]:n}:"start"===e?{["ltr"===o?"left":"right"]:n}:{}}const qb={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function Gb({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:o,arrowX:a,arrowY:i,dir:l}){const[s,u="center"]=e.split("-"),c={width:xt(t),height:xt(t),transform:"rotate(45deg)",position:"absolute",[qb[s]]:xt(r)},f=xt(-t/2);return"left"===s?Ub(Hb(Hb({},c),Wb(u,i,n,o)),{right:f,borderLeftColor:"transparent",borderBottomColor:"transparent"}):"right"===s?Ub(Hb(Hb({},c),Wb(u,i,n,o)),{left:f,borderRightColor:"transparent",borderTopColor:"transparent"}):"top"===s?Ub(Hb(Hb({},c),Vb(u,a,n,o,l)),{bottom:f,borderTopColor:"transparent",borderLeftColor:"transparent"}):"bottom"===s?Ub(Hb(Hb({},c),Vb(u,a,n,o,l)),{top:f,borderBottomColor:"transparent",borderRightColor:"transparent"}):{}}var Yb=Object.defineProperty,Qb=Object.defineProperties,Xb=Object.getOwnPropertyDescriptors,Kb=Object.getOwnPropertySymbols,Zb=Object.prototype.hasOwnProperty,Jb=Object.prototype.propertyIsEnumerable,ev=(e,t,n)=>t in e?Yb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const tv=(0,r.forwardRef)(((e,t)=>{var n=e,{position:o,arrowSize:a,arrowOffset:i,arrowRadius:l,arrowPosition:s,visible:u,arrowX:c,arrowY:f}=n,d=((e,t)=>{var n={};for(var r in e)Zb.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Kb)for(var r of Kb(e))t.indexOf(r)<0&&Jb.call(e,r)&&(n[r]=e[r]);return n})(n,["position","arrowSize","arrowOffset","arrowRadius","arrowPosition","visible","arrowX","arrowY"]);const p=mn();return u?r.createElement("div",((e,t)=>Qb(e,Xb(t)))(((e,t)=>{for(var n in t||(t={}))Zb.call(t,n)&&ev(e,n,t[n]);if(Kb)for(var n of Kb(t))Jb.call(t,n)&&ev(e,n,t[n]);return e})({},d),{ref:t,style:Gb({position:o,arrowSize:a,arrowOffset:i,arrowRadius:l,arrowPosition:s,dir:p.dir,arrowX:c,arrowY:f})})):null}));tv.displayName="@mantine/core/FloatingArrow";var nv=Object.defineProperty,rv=Object.defineProperties,ov=Object.getOwnPropertyDescriptors,av=Object.getOwnPropertySymbols,iv=Object.prototype.hasOwnProperty,lv=Object.prototype.propertyIsEnumerable,sv=(e,t,n)=>t in e?nv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,uv=(e,t)=>{for(var n in t||(t={}))iv.call(t,n)&&sv(e,n,t[n]);if(av)for(var n of av(t))lv.call(t,n)&&sv(e,n,t[n]);return e},cv=(e,t)=>rv(e,ov(t));const fv={position:"top",refProp:"ref",withinPortal:!1,inline:!1,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},width:"auto",events:{hover:!0,focus:!1,touch:!1},zIndex:Oh("popover"),positionDependencies:[]},dv=(0,r.forwardRef)(((e,t)=>{var n;const o=(0,r.useRef)(null),a=bn("Tooltip",fv,e),{children:i,position:l,refProp:s,label:u,openDelay:c,closeDelay:f,onPositionChange:d,opened:p,withinPortal:g,portalProps:h,radius:m,color:y,classNames:b,styles:v,unstyled:w,style:k,className:x,withArrow:E,arrowSize:S,arrowOffset:F,arrowRadius:A,arrowPosition:C,offset:O,transitionProps:P,multiline:T,width:D,events:R,zIndex:N,disabled:L,positionDependencies:_,onClick:j,onMouseEnter:I,onMouseLeave:z,inline:B,variant:M,keepMounted:$}=a,H=((e,t)=>{var n={};for(var r in e)iv.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&av)for(var r of av(e))t.indexOf(r)<0&&lv.call(e,r)&&(n[r]=e[r]);return n})(a,["children","position","refProp","label","openDelay","closeDelay","onPositionChange","opened","withinPortal","portalProps","radius","color","classNames","styles","unstyled","style","className","withArrow","arrowSize","arrowOffset","arrowRadius","arrowPosition","offset","transitionProps","multiline","width","events","zIndex","disabled","positionDependencies","onClick","onMouseEnter","onMouseLeave","inline","variant","keepMounted"]),{classes:U,cx:W,theme:V}=By({radius:m,color:y,width:D,multiline:T},{name:"Tooltip",classNames:b,styles:v,unstyled:w,variant:M}),q=function(e){const[t,n]=(0,r.useState)(!1),o="boolean"==typeof e.opened?e.opened:t,a=(0,r.useContext)(Ay),i=Yo(),{delay:l,currentId:s,setCurrentId:u}=fy(),c=(0,r.useCallback)((e=>{n(e),e&&u(i)}),[u,i]),{x:f,y:d,reference:p,floating:g,context:h,refs:m,update:y,placement:b,middlewareData:{arrow:{x:v,y:w}={}}}=Sy({placement:e.position,open:o,onOpenChange:c,middleware:[Nm(e.offset),Lm({padding:8}),_m(),Mm({element:e.arrowRef,padding:e.arrowOffset}),...e.inline?[Im()]:[]]}),{getReferenceProps:k,getFloatingProps:x}=function(e){void 0===e&&(e=[]);const t=e,n=r.useCallback((t=>Fy(t,e,"reference")),t),o=r.useCallback((t=>Fy(t,e,"floating")),t),a=r.useCallback((t=>Fy(t,e,"item")),e.map((e=>null==e?void 0:e.item)));return r.useMemo((()=>({getReferenceProps:n,getFloatingProps:o,getItemProps:a})),[n,o,a])}([uy(h,{enabled:e.events.hover,delay:a?l:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events.touch}),xy(h,{enabled:e.events.focus,keyboardOnly:!0}),Ey(h,{role:"tooltip"}),ky(h,{enabled:void 0===typeof e.opened}),py(h,{id:i})]);return pb({opened:o,position:e.position,positionDependencies:e.positionDependencies,floating:{refs:m,update:y}}),db((()=>{var t;null==(t=e.onPositionChange)||t.call(e,b)}),[b]),{x:f,y:d,arrowX:v,arrowY:w,reference:p,floating:g,getFloatingProps:x,getReferenceProps:k,isGroupPhase:o&&s&&s!==i,opened:o,placement:b}}({position:gb(V.dir,l),closeDelay:f,openDelay:c,onPositionChange:d,opened:p,events:R,arrowRef:o,arrowOffset:F,offset:O+(E?S/2:0),positionDependencies:[..._,i],inline:B});if(!Fh(i))throw new Error(My);const G=Ah(q.reference,i.ref,t);return r.createElement(r.Fragment,null,r.createElement(eb,cv(uv({},h),{withinPortal:g}),r.createElement(Lb,cv(uv({keepMounted:$,mounted:!L&&q.opened},P),{transition:P.transition||"fade",duration:q.isGroupPhase?10:null!=(n=P.duration)?n:100}),(e=>{var t,n;return r.createElement(_r,uv(uv({},H),q.getFloatingProps({ref:q.floating,className:U.tooltip,style:cv(uv(uv({},k),e),{zIndex:N,top:null!=(t=q.y)?t:0,left:null!=(n=q.x)?n:0})})),u,r.createElement(tv,{ref:o,arrowX:q.arrowX,arrowY:q.arrowY,visible:E,position:q.placement,arrowSize:S,arrowOffset:F,arrowRadius:A,arrowPosition:C,className:U.arrow}))}))),(0,r.cloneElement)(i,q.getReferenceProps(uv({onClick:j,onMouseEnter:I,onMouseLeave:z,onMouseMove:e.onMouseMove,onPointerDown:e.onPointerDown,onPointerEnter:e.onPointerEnter,[s]:G,className:W(x,i.props.className)},i.props))))}));dv.Group=Oy,dv.Floating=fb,dv.displayName="@mantine/core/Tooltip";const pv=dv;var gv=o(907),hv=Object.defineProperty,mv=Object.defineProperties,yv=Object.getOwnPropertyDescriptors,bv=Object.getOwnPropertySymbols,vv=Object.prototype.hasOwnProperty,wv=Object.prototype.propertyIsEnumerable,kv=Math.pow,xv=(e,t,n)=>t in e?hv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ev=(e,t)=>{for(var n in t||(t={}))vv.call(t,n)&&xv(e,n,t[n]);if(bv)for(var n of bv(t))wv.call(t,n)&&xv(e,n,t[n]);return e},Sv=(e,t)=>mv(e,yv(t)),Fv=(e,t)=>{var n={};for(var r in e)vv.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&bv)for(var r of bv(e))t.indexOf(r)<0&&wv.call(e,r)&&(n[r]=e[r]);return n},Av=(e,t,n)=>new Promise(((r,o)=>{var a=e=>{try{l(n.next(e))}catch(e){o(e)}},i=e=>{try{l(n.throw(e))}catch(e){o(e)}},l=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,i);l((n=n.apply(e,t)).next())})),Cv=(e,t=0,n=1)=>Lv(_v(t,e),n),Ov=e=>{e._clipped=!1,e._unclipped=e.slice(0);for(let t=0;t<=3;t++)t<3?((e[t]<0||e[t]>255)&&(e._clipped=!0),e[t]=Cv(e[t],0,255)):3===t&&(e[t]=Cv(e[t],0,1));return e},Pv={};for(let e of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])Pv[`[object ${e}]`]=e.toLowerCase();function Tv(e){return Pv[Object.prototype.toString.call(e)]||"object"}var Dv=(e,t=null)=>e.length>=3?Array.prototype.slice.call(e):"object"==Tv(e[0])&&t?t.split("").filter((t=>void 0!==e[0][t])).map((t=>e[0][t])):e[0],Rv=e=>{if(e.length<2)return null;const t=e.length-1;return"string"==Tv(e[t])?e[t].toLowerCase():null},{PI:Nv,min:Lv,max:_v}=Math,jv=2*Nv,Iv=Nv/3,zv=Nv/180,Bv=180/Nv,Mv={format:{},autodetect:[]},$v=class{constructor(...e){const t=this;if("object"===Tv(e[0])&&e[0].constructor&&e[0].constructor===this.constructor)return e[0];let n=Rv(e),r=!1;if(!n){r=!0,Mv.sorted||(Mv.autodetect=Mv.autodetect.sort(((e,t)=>t.p-e.p)),Mv.sorted=!0);for(let t of Mv.autodetect)if(n=t.test(...e),n)break}if(!Mv.format[n])throw new Error("unknown format: "+e);{const o=Mv.format[n].apply(null,r?e:e.slice(0,-1));t._rgb=Ov(o)}3===t._rgb.length&&t._rgb.push(1)}toString(){return"function"==Tv(this.hex)?this.hex():`[${this._rgb.join(",")}]`}},Hv=(...e)=>new Hv.Color(...e);Hv.Color=$v,Hv.version="2.6.0";var Uv=Hv,{max:Wv}=Math;$v.prototype.cmyk=function(){return((...e)=>{let[t,n,r]=Dv(e,"rgb");t/=255,n/=255,r/=255;const o=1-Wv(t,Wv(n,r)),a=o<1?1/(1-o):0;return[(1-t-o)*a,(1-n-o)*a,(1-r-o)*a,o]})(this._rgb)},Uv.cmyk=(...e)=>new $v(...e,"cmyk"),Mv.format.cmyk=(...e)=>{e=Dv(e,"cmyk");const[t,n,r,o]=e,a=e.length>4?e[4]:1;return 1===o?[0,0,0,a]:[t>=1?0:255*(1-t)*(1-o),n>=1?0:255*(1-n)*(1-o),r>=1?0:255*(1-r)*(1-o),a]},Mv.autodetect.push({p:2,test:(...e)=>{if("array"===Tv(e=Dv(e,"cmyk"))&&4===e.length)return"cmyk"}});var Vv=e=>Math.round(100*e)/100,qv=(...e)=>{e=Dv(e,"rgba");let[t,n,r]=e;t/=255,n/=255,r/=255;const o=Lv(t,n,r),a=_v(t,n,r),i=(a+o)/2;let l,s;return a===o?(l=0,s=Number.NaN):l=i<.5?(a-o)/(a+o):(a-o)/(2-a-o),t==a?s=(n-r)/(a-o):n==a?s=2+(r-t)/(a-o):r==a&&(s=4+(t-n)/(a-o)),s*=60,s<0&&(s+=360),e.length>3&&void 0!==e[3]?[s,l,i,e[3]]:[s,l,i]},{round:Gv}=Math,Yv=(...e)=>{const t=Dv(e,"rgba");let n=Rv(e)||"rgb";return"hsl"==n.substr(0,3)?((...e)=>{const t=Dv(e,"hsla");let n=Rv(e)||"lsa";return t[0]=Vv(t[0]||0),t[1]=Vv(100*t[1])+"%",t[2]=Vv(100*t[2])+"%","hsla"===n||t.length>3&&t[3]<1?(t[3]=t.length>3?t[3]:1,n="hsla"):t.length=3,`${n}(${t.join(",")})`})(qv(t),n):(t[0]=Gv(t[0]),t[1]=Gv(t[1]),t[2]=Gv(t[2]),("rgba"===n||t.length>3&&t[3]<1)&&(t[3]=t.length>3?t[3]:1,n="rgba"),`${n}(${t.slice(0,"rgb"===n?3:4).join(",")})`)},{round:Qv}=Math,Xv=(...e)=>{e=Dv(e,"hsl");const[t,n,r]=e;let o,a,i;if(0===n)o=a=i=255*r;else{const e=[0,0,0],l=[0,0,0],s=r<.5?r*(1+n):r+n-r*n,u=2*r-s,c=t/360;e[0]=c+1/3,e[1]=c,e[2]=c-1/3;for(let t=0;t<3;t++)e[t]<0&&(e[t]+=1),e[t]>1&&(e[t]-=1),6*e[t]<1?l[t]=u+6*(s-u)*e[t]:2*e[t]<1?l[t]=s:3*e[t]<2?l[t]=u+(s-u)*(2/3-e[t])*6:l[t]=u;[o,a,i]=[Qv(255*l[0]),Qv(255*l[1]),Qv(255*l[2])]}return e.length>3?[o,a,i,e[3]]:[o,a,i,1]},Kv=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,Zv=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,Jv=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,ew=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,tw=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,nw=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,{round:rw}=Math,ow=e=>{let t;if(e=e.toLowerCase().trim(),Mv.format.named)try{return Mv.format.named(e)}catch(e){}if(t=e.match(Kv)){const e=t.slice(1,4);for(let t=0;t<3;t++)e[t]=+e[t];return e[3]=1,e}if(t=e.match(Zv)){const e=t.slice(1,5);for(let t=0;t<4;t++)e[t]=+e[t];return e}if(t=e.match(Jv)){const e=t.slice(1,4);for(let t=0;t<3;t++)e[t]=rw(2.55*e[t]);return e[3]=1,e}if(t=e.match(ew)){const e=t.slice(1,5);for(let t=0;t<3;t++)e[t]=rw(2.55*e[t]);return e[3]=+e[3],e}if(t=e.match(tw)){const e=t.slice(1,4);e[1]*=.01,e[2]*=.01;const n=Xv(e);return n[3]=1,n}if(t=e.match(nw)){const e=t.slice(1,4);e[1]*=.01,e[2]*=.01;const n=Xv(e);return n[3]=+t[4],n}};ow.test=e=>Kv.test(e)||Zv.test(e)||Jv.test(e)||ew.test(e)||tw.test(e)||nw.test(e);var aw=ow;$v.prototype.css=function(e){return Yv(this._rgb,e)},Uv.css=(...e)=>new $v(...e,"css"),Mv.format.css=aw,Mv.autodetect.push({p:5,test:(e,...t)=>{if(!t.length&&"string"===Tv(e)&&aw.test(e))return"css"}}),Mv.format.gl=(...e)=>{const t=Dv(e,"rgba");return t[0]*=255,t[1]*=255,t[2]*=255,t},Uv.gl=(...e)=>new $v(...e,"gl"),$v.prototype.gl=function(){const e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]};var{floor:iw}=Math;$v.prototype.hcg=function(){return((...e)=>{const[t,n,r]=Dv(e,"rgb"),o=Lv(t,n,r),a=_v(t,n,r),i=a-o,l=100*i/255,s=o/(255-i)*100;let u;return 0===i?u=Number.NaN:(t===a&&(u=(n-r)/i),n===a&&(u=2+(r-t)/i),r===a&&(u=4+(t-n)/i),u*=60,u<0&&(u+=360)),[u,l,s]})(this._rgb)},Uv.hcg=(...e)=>new $v(...e,"hcg"),Mv.format.hcg=(...e)=>{e=Dv(e,"hcg");let t,n,r,[o,a,i]=e;i*=255;const l=255*a;if(0===a)t=n=r=i;else{360===o&&(o=0),o>360&&(o-=360),o<0&&(o+=360),o/=60;const e=iw(o),s=o-e,u=i*(1-a),c=u+l*(1-s),f=u+l*s,d=u+l;switch(e){case 0:[t,n,r]=[d,f,u];break;case 1:[t,n,r]=[c,d,u];break;case 2:[t,n,r]=[u,d,f];break;case 3:[t,n,r]=[u,c,d];break;case 4:[t,n,r]=[f,u,d];break;case 5:[t,n,r]=[d,u,c]}}return[t,n,r,e.length>3?e[3]:1]},Mv.autodetect.push({p:1,test:(...e)=>{if("array"===Tv(e=Dv(e,"hcg"))&&3===e.length)return"hcg"}});var lw=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,sw=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,uw=e=>{if(e.match(lw)){4!==e.length&&7!==e.length||(e=e.substr(1)),3===e.length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const t=parseInt(e,16);return[t>>16,t>>8&255,255&t,1]}if(e.match(sw)){5!==e.length&&9!==e.length||(e=e.substr(1)),4===e.length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const t=parseInt(e,16);return[t>>24&255,t>>16&255,t>>8&255,Math.round((255&t)/255*100)/100]}throw new Error(`unknown hex color: ${e}`)},{round:cw}=Math,fw=(...e)=>{let[t,n,r,o]=Dv(e,"rgba"),a=Rv(e)||"auto";void 0===o&&(o=1),"auto"===a&&(a=o<1?"rgba":"rgb"),t=cw(t),n=cw(n),r=cw(r);let i="000000"+(t<<16|n<<8|r).toString(16);i=i.substr(i.length-6);let l="0"+cw(255*o).toString(16);switch(l=l.substr(l.length-2),a.toLowerCase()){case"rgba":return`#${i}${l}`;case"argb":return`#${l}${i}`;default:return`#${i}`}};$v.prototype.hex=function(e){return fw(this._rgb,e)},Uv.hex=(...e)=>new $v(...e,"hex"),Mv.format.hex=uw,Mv.autodetect.push({p:4,test:(e,...t)=>{if(!t.length&&"string"===Tv(e)&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});var{cos:dw}=Math,{min:pw,sqrt:gw,acos:hw}=Math;$v.prototype.hsi=function(){return((...e)=>{let t,[n,r,o]=Dv(e,"rgb");n/=255,r/=255,o/=255;const a=pw(n,r,o),i=(n+r+o)/3,l=i>0?1-a/i:0;return 0===l?t=NaN:(t=(n-r+(n-o))/2,t/=gw((n-r)*(n-r)+(n-o)*(r-o)),t=hw(t),o>r&&(t=jv-t),t/=jv),[360*t,l,i]})(this._rgb)},Uv.hsi=(...e)=>new $v(...e,"hsi"),Mv.format.hsi=(...e)=>{e=Dv(e,"hsi");let t,n,r,[o,a,i]=e;return isNaN(o)&&(o=0),isNaN(a)&&(a=0),o>360&&(o-=360),o<0&&(o+=360),o/=360,o<1/3?(r=(1-a)/3,t=(1+a*dw(jv*o)/dw(Iv-jv*o))/3,n=1-(r+t)):o<2/3?(o-=1/3,t=(1-a)/3,n=(1+a*dw(jv*o)/dw(Iv-jv*o))/3,r=1-(t+n)):(o-=2/3,n=(1-a)/3,r=(1+a*dw(jv*o)/dw(Iv-jv*o))/3,t=1-(n+r)),t=Cv(i*t*3),n=Cv(i*n*3),r=Cv(i*r*3),[255*t,255*n,255*r,e.length>3?e[3]:1]},Mv.autodetect.push({p:2,test:(...e)=>{if("array"===Tv(e=Dv(e,"hsi"))&&3===e.length)return"hsi"}}),$v.prototype.hsl=function(){return qv(this._rgb)},Uv.hsl=(...e)=>new $v(...e,"hsl"),Mv.format.hsl=Xv,Mv.autodetect.push({p:2,test:(...e)=>{if("array"===Tv(e=Dv(e,"hsl"))&&3===e.length)return"hsl"}});var{floor:mw}=Math,{min:yw,max:bw}=Math;$v.prototype.hsv=function(){return((...e)=>{e=Dv(e,"rgb");let[t,n,r]=e;const o=yw(t,n,r),a=bw(t,n,r),i=a-o;let l,s,u;return u=a/255,0===a?(l=Number.NaN,s=0):(s=i/a,t===a&&(l=(n-r)/i),n===a&&(l=2+(r-t)/i),r===a&&(l=4+(t-n)/i),l*=60,l<0&&(l+=360)),[l,s,u]})(this._rgb)},Uv.hsv=(...e)=>new $v(...e,"hsv"),Mv.format.hsv=(...e)=>{e=Dv(e,"hsv");let t,n,r,[o,a,i]=e;if(i*=255,0===a)t=n=r=i;else{360===o&&(o=0),o>360&&(o-=360),o<0&&(o+=360),o/=60;const e=mw(o),l=o-e,s=i*(1-a),u=i*(1-a*l),c=i*(1-a*(1-l));switch(e){case 0:[t,n,r]=[i,c,s];break;case 1:[t,n,r]=[u,i,s];break;case 2:[t,n,r]=[s,i,c];break;case 3:[t,n,r]=[s,u,i];break;case 4:[t,n,r]=[c,s,i];break;case 5:[t,n,r]=[i,s,u]}}return[t,n,r,e.length>3?e[3]:1]},Mv.autodetect.push({p:2,test:(...e)=>{if("array"===Tv(e=Dv(e,"hsv"))&&3===e.length)return"hsv"}});var vw=.95047,ww=1.08883,kw=.137931034,xw=.12841855,{pow:Ew}=Math,Sw=e=>255*(e<=.00304?12.92*e:1.055*Ew(e,1/2.4)-.055),Fw=e=>e>.206896552?e*e*e:xw*(e-kw),Aw=(...e)=>{e=Dv(e,"lab");const[t,n,r]=e;let o,a,i,l,s,u;return a=(t+16)/116,o=isNaN(n)?a:a+n/500,i=isNaN(r)?a:a-r/200,a=1*Fw(a),o=vw*Fw(o),i=ww*Fw(i),l=Sw(3.2404542*o-1.5371385*a-.4985314*i),s=Sw(-.969266*o+1.8760108*a+.041556*i),u=Sw(.0556434*o-.2040259*a+1.0572252*i),[l,s,u,e.length>3?e[3]:1]},{pow:Cw}=Math,Ow=e=>(e/=255)<=.04045?e/12.92:Cw((e+.055)/1.055,2.4),Pw=e=>e>.008856452?Cw(e,1/3):e/xw+kw,Tw=(...e)=>{const[t,n,r]=Dv(e,"rgb"),[o,a,i]=((e,t,n)=>(e=Ow(e),t=Ow(t),n=Ow(n),[Pw((.4124564*e+.3575761*t+.1804375*n)/vw),Pw((.2126729*e+.7151522*t+.072175*n)/1),Pw((.0193339*e+.119192*t+.9503041*n)/ww)]))(t,n,r),l=116*a-16;return[l<0?0:l,500*(o-a),200*(a-i)]};$v.prototype.lab=function(){return Tw(this._rgb)},Uv.lab=(...e)=>new $v(...e,"lab"),Mv.format.lab=Aw,Mv.autodetect.push({p:2,test:(...e)=>{if("array"===Tv(e=Dv(e,"lab"))&&3===e.length)return"lab"}});var{sin:Dw,cos:Rw}=Math,Nw=(...e)=>{let[t,n,r]=Dv(e,"lch");return isNaN(r)&&(r=0),r*=zv,[t,Rw(r)*n,Dw(r)*n]},Lw=(...e)=>{e=Dv(e,"lch");const[t,n,r]=e,[o,a,i]=Nw(t,n,r),[l,s,u]=Aw(o,a,i);return[l,s,u,e.length>3?e[3]:1]},{sqrt:_w,atan2:jw,round:Iw}=Math,zw=(...e)=>{const[t,n,r]=Dv(e,"lab"),o=_w(n*n+r*r);let a=(jw(r,n)*Bv+360)%360;return 0===Iw(1e4*o)&&(a=Number.NaN),[t,o,a]},Bw=(...e)=>{const[t,n,r]=Dv(e,"rgb"),[o,a,i]=Tw(t,n,r);return zw(o,a,i)};$v.prototype.lch=function(){return Bw(this._rgb)},$v.prototype.hcl=function(){return Bw(this._rgb).reverse()},Uv.lch=(...e)=>new $v(...e,"lch"),Uv.hcl=(...e)=>new $v(...e,"hcl"),Mv.format.lch=Lw,Mv.format.hcl=(...e)=>{const t=Dv(e,"hcl").reverse();return Lw(...t)},["lch","hcl"].forEach((e=>Mv.autodetect.push({p:2,test:(...t)=>{if("array"===Tv(t=Dv(t,e))&&3===t.length)return e}})));var Mw={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};$v.prototype.name=function(){const e=fw(this._rgb,"rgb");for(let t of Object.keys(Mw))if(Mw[t]===e)return t.toLowerCase();return e},Mv.format.named=e=>{if(e=e.toLowerCase(),Mw[e])return uw(Mw[e]);throw new Error("unknown color name: "+e)},Mv.autodetect.push({p:5,test:(e,...t)=>{if(!t.length&&"string"===Tv(e)&&Mw[e.toLowerCase()])return"named"}});$v.prototype.num=function(){return((...e)=>{const[t,n,r]=Dv(e,"rgb");return(t<<16)+(n<<8)+r})(this._rgb)},Uv.num=(...e)=>new $v(...e,"num"),Mv.format.num=e=>{if("number"==Tv(e)&&e>=0&&e<=16777215)return[e>>16,e>>8&255,255&e,1];throw new Error("unknown num color: "+e)},Mv.autodetect.push({p:5,test:(...e)=>{if(1===e.length&&"number"===Tv(e[0])&&e[0]>=0&&e[0]<=16777215)return"num"}});var{round:$w}=Math;$v.prototype.rgb=function(e=!0){return!1===e?this._rgb.slice(0,3):this._rgb.slice(0,3).map($w)},$v.prototype.rgba=function(e=!0){return this._rgb.slice(0,4).map(((t,n)=>n<3?!1===e?t:$w(t):t))},Uv.rgb=(...e)=>new $v(...e,"rgb"),Mv.format.rgb=(...e)=>{const t=Dv(e,"rgba");return void 0===t[3]&&(t[3]=1),t},Mv.autodetect.push({p:3,test:(...e)=>{if("array"===Tv(e=Dv(e,"rgba"))&&(3===e.length||4===e.length&&"number"==Tv(e[3])&&e[3]>=0&&e[3]<=1))return"rgb"}});var{log:Hw}=Math,Uw=e=>{const t=e/100;let n,r,o;return t<66?(n=255,r=t<6?0:-155.25485562709179-.44596950469579133*(r=t-2)+104.49216199393888*Hw(r),o=t<20?0:.8274096064007395*(o=t-10)-254.76935184120902+115.67994401066147*Hw(o)):(n=351.97690566805693+.114206453784165*(n=t-55)-40.25366309332127*Hw(n),r=325.4494125711974+.07943456536662342*(r=t-50)-28.0852963507957*Hw(r),o=255),[n,r,o,1]},{round:Ww}=Math;$v.prototype.temp=$v.prototype.kelvin=$v.prototype.temperature=function(){return((...e)=>{const t=Dv(e,"rgb"),n=t[0],r=t[2];let o,a=1e3,i=4e4;for(;i-a>.4;){o=.5*(i+a);const e=Uw(o);e[2]/e[0]>=r/n?i=o:a=o}return Ww(o)})(this._rgb)},Uv.temp=Uv.kelvin=Uv.temperature=(...e)=>new $v(...e,"temp"),Mv.format.temp=Mv.format.kelvin=Mv.format.temperature=Uw;var{pow:Vw,sign:qw}=Math,Gw=(...e)=>{e=Dv(e,"lab");const[t,n,r]=e,o=Vw(t+.3963377774*n+.2158037573*r,3),a=Vw(t-.1055613458*n-.0638541728*r,3),i=Vw(t-.0894841775*n-1.291485548*r,3);return[255*Yw(4.0767416621*o-3.3077115913*a+.2309699292*i),255*Yw(-1.2684380046*o+2.6097574011*a-.3413193965*i),255*Yw(-.0041960863*o-.7034186147*a+1.707614701*i),e.length>3?e[3]:1]};function Yw(e){const t=Math.abs(e);return t>.0031308?(qw(e)||1)*(1.055*Vw(t,1/2.4)-.055):12.92*e}var{cbrt:Qw,pow:Xw,sign:Kw}=Math,Zw=(...e)=>{const[t,n,r]=Dv(e,"rgb"),[o,a,i]=[Jw(t/255),Jw(n/255),Jw(r/255)],l=Qw(.4122214708*o+.5363325363*a+.0514459929*i),s=Qw(.2119034982*o+.6806995451*a+.1073969566*i),u=Qw(.0883024619*o+.2817188376*a+.6299787005*i);return[.2104542553*l+.793617785*s-.0040720468*u,1.9779984951*l-2.428592205*s+.4505937099*u,.0259040371*l+.7827717662*s-.808675766*u]};function Jw(e){const t=Math.abs(e);return t<.04045?e/12.92:(Kw(e)||1)*Xw((t+.055)/1.055,2.4)}$v.prototype.oklab=function(){return Zw(this._rgb)},Uv.oklab=(...e)=>new $v(...e,"oklab"),Mv.format.oklab=Gw,Mv.autodetect.push({p:3,test:(...e)=>{if("array"===Tv(e=Dv(e,"oklab"))&&3===e.length)return"oklab"}});$v.prototype.oklch=function(){return((...e)=>{const[t,n,r]=Dv(e,"rgb"),[o,a,i]=Zw(t,n,r);return zw(o,a,i)})(this._rgb)},Uv.oklch=(...e)=>new $v(...e,"oklch"),Mv.format.oklch=(...e)=>{e=Dv(e,"lch");const[t,n,r]=e,[o,a,i]=Nw(t,n,r),[l,s,u]=Gw(o,a,i);return[l,s,u,e.length>3?e[3]:1]},Mv.autodetect.push({p:3,test:(...e)=>{if("array"===Tv(e=Dv(e,"oklch"))&&3===e.length)return"oklch"}}),$v.prototype.alpha=function(e,t=!1){return void 0!==e&&"number"===Tv(e)?t?(this._rgb[3]=e,this):new $v([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},$v.prototype.clipped=function(){return this._rgb._clipped||!1},$v.prototype.darken=function(e=1){const t=this.lab();return t[0]-=18*e,new $v(t,"lab").alpha(this.alpha(),!0)},$v.prototype.brighten=function(e=1){return this.darken(-e)},$v.prototype.darker=$v.prototype.darken,$v.prototype.brighter=$v.prototype.brighten,$v.prototype.get=function(e){const[t,n]=e.split("."),r=this[t]();if(n){const e=t.indexOf(n)-("ok"===t.substr(0,2)?2:0);if(e>-1)return r[e];throw new Error(`unknown channel ${n} in mode ${t}`)}return r};var{pow:ek}=Math;$v.prototype.luminance=function(e,t="rgb"){if(void 0!==e&&"number"===Tv(e)){if(0===e)return new $v([0,0,0,this._rgb[3]],"rgb");if(1===e)return new $v([255,255,255,this._rgb[3]],"rgb");let n=this.luminance(),r=20;const o=(n,a)=>{const i=n.interpolate(a,.5,t),l=i.luminance();return Math.abs(e-l)<1e-7||!r--?i:l>e?o(n,i):o(i,a)},a=(n>e?o(new $v([0,0,0]),this):o(this,new $v([255,255,255]))).rgb();return new $v([...a,this._rgb[3]])}return tk(...this._rgb.slice(0,3))};var tk=(e,t,n)=>.2126*(e=nk(e))+.7152*(t=nk(t))+.0722*nk(n),nk=e=>(e/=255)<=.03928?e/12.92:ek((e+.055)/1.055,2.4),rk={},ok=(e,t,n=.5,...r)=>{let o=r[0]||"lrgb";if(rk[o]||r.length||(o=Object.keys(rk)[0]),!rk[o])throw new Error(`interpolation mode ${o} is not defined`);return"object"!==Tv(e)&&(e=new $v(e)),"object"!==Tv(t)&&(t=new $v(t)),rk[o](e,t,n).alpha(e.alpha()+n*(t.alpha()-e.alpha()))};$v.prototype.mix=$v.prototype.interpolate=function(e,t=.5,...n){return ok(this,e,t,...n)},$v.prototype.premultiply=function(e=!1){const t=this._rgb,n=t[3];return e?(this._rgb=[t[0]*n,t[1]*n,t[2]*n,n],this):new $v([t[0]*n,t[1]*n,t[2]*n,n],"rgb")},$v.prototype.saturate=function(e=1){const t=this.lch();return t[1]+=18*e,t[1]<0&&(t[1]=0),new $v(t,"lch").alpha(this.alpha(),!0)},$v.prototype.desaturate=function(e=1){return this.saturate(-e)},$v.prototype.set=function(e,t,n=!1){const[r,o]=e.split("."),a=this[r]();if(o){const e=r.indexOf(o)-("ok"===r.substr(0,2)?2:0);if(e>-1){if("string"==Tv(t))switch(t.charAt(0)){case"+":case"-":a[e]+=+t;break;case"*":a[e]*=+t.substr(1);break;case"/":a[e]/=+t.substr(1);break;default:a[e]=+t}else{if("number"!==Tv(t))throw new Error("unsupported value for Color.set");a[e]=t}const o=new $v(a,r);return n?(this._rgb=o._rgb,this):o}throw new Error(`unknown channel ${o} in mode ${r}`)}return a},$v.prototype.tint=function(e=.5,...t){return ok(this,"white",e,...t)},$v.prototype.shade=function(e=.5,...t){return ok(this,"black",e,...t)},rk.rgb=(e,t,n)=>{const r=e._rgb,o=t._rgb;return new $v(r[0]+n*(o[0]-r[0]),r[1]+n*(o[1]-r[1]),r[2]+n*(o[2]-r[2]),"rgb")};var{sqrt:ak,pow:ik}=Math;rk.lrgb=(e,t,n)=>{const[r,o,a]=e._rgb,[i,l,s]=t._rgb;return new $v(ak(ik(r,2)*(1-n)+ik(i,2)*n),ak(ik(o,2)*(1-n)+ik(l,2)*n),ak(ik(a,2)*(1-n)+ik(s,2)*n),"rgb")},rk.lab=(e,t,n)=>{const r=e.lab(),o=t.lab();return new $v(r[0]+n*(o[0]-r[0]),r[1]+n*(o[1]-r[1]),r[2]+n*(o[2]-r[2]),"lab")};var lk=(e,t,n,r)=>{let o,a,i,l,s,u,c,f,d,p,g,h;return"hsl"===r?(o=e.hsl(),a=t.hsl()):"hsv"===r?(o=e.hsv(),a=t.hsv()):"hcg"===r?(o=e.hcg(),a=t.hcg()):"hsi"===r?(o=e.hsi(),a=t.hsi()):"lch"===r||"hcl"===r?(r="hcl",o=e.hcl(),a=t.hcl()):"oklch"===r&&(o=e.oklch().reverse(),a=t.oklch().reverse()),"h"!==r.substr(0,1)&&"oklch"!==r||([i,s,c]=o,[l,u,f]=a),isNaN(i)||isNaN(l)?isNaN(i)?isNaN(l)?p=Number.NaN:(p=l,1!=c&&0!=c||"hsv"==r||(d=u)):(p=i,1!=f&&0!=f||"hsv"==r||(d=s)):(h=l>i&&l-i>180?l-(i+360):l<i&&i-l>180?l+360-i:l-i,p=i+n*h),void 0===d&&(d=s+n*(u-s)),g=c+n*(f-c),new $v("oklch"===r?[g,d,p]:[p,d,g],r)},sk=(e,t,n)=>lk(e,t,n,"lch");rk.lch=sk,rk.hcl=sk,rk.num=(e,t,n)=>{const r=e.num(),o=t.num();return new $v(r+n*(o-r),"num")},rk.hcg=(e,t,n)=>lk(e,t,n,"hcg"),rk.hsi=(e,t,n)=>lk(e,t,n,"hsi"),rk.hsl=(e,t,n)=>lk(e,t,n,"hsl"),rk.hsv=(e,t,n)=>lk(e,t,n,"hsv"),rk.oklab=(e,t,n)=>{const r=e.oklab(),o=t.oklab();return new $v(r[0]+n*(o[0]-r[0]),r[1]+n*(o[1]-r[1]),r[2]+n*(o[2]-r[2]),"oklab")},rk.oklch=(e,t,n)=>lk(e,t,n,"oklch");var{pow:uk,sqrt:ck,PI:fk,cos:dk,sin:pk,atan2:gk}=Math,{pow:hk}=Math;function mk(e){let t="rgb",n=Uv("#ccc"),r=0,o=[0,1],a=[],i=[0,0],l=!1,s=[],u=!1,c=0,f=1,d=!1,p={},g=!0,h=1;const m=function(e){if((e=e||["#fff","#000"])&&"string"===Tv(e)&&Uv.brewer&&Uv.brewer[e.toLowerCase()]&&(e=Uv.brewer[e.toLowerCase()]),"array"===Tv(e)){1===e.length&&(e=[e[0],e[0]]),e=e.slice(0);for(let t=0;t<e.length;t++)e[t]=Uv(e[t]);a.length=0;for(let t=0;t<e.length;t++)a.push(t/(e.length-1))}return w(),s=e};let y=e=>e,b=e=>e;const v=function(e,r){let o,u;if(null==r&&(r=!1),isNaN(e)||null===e)return n;if(r)u=e;else if(l&&l.length>2){const t=function(e){if(null!=l){const t=l.length-1;let n=0;for(;n<t&&e>=l[n];)n++;return n-1}return 0}(e);u=t/(l.length-2)}else u=f!==c?(e-c)/(f-c):1;u=b(u),r||(u=y(u)),1!==h&&(u=hk(u,h)),u=i[0]+u*(1-i[0]-i[1]),u=Cv(u,0,1);const d=Math.floor(1e4*u);if(g&&p[d])o=p[d];else{if("array"===Tv(s))for(let e=0;e<a.length;e++){const n=a[e];if(u<=n){o=s[e];break}if(u>=n&&e===a.length-1){o=s[e];break}if(u>n&&u<a[e+1]){u=(u-n)/(a[e+1]-n),o=Uv.interpolate(s[e],s[e+1],u,t);break}}else"function"===Tv(s)&&(o=s(u));g&&(p[d]=o)}return o};var w=()=>p={};m(e);const k=function(e){const t=Uv(v(e));return u&&t[u]?t[u]():t};return k.classes=function(e){if(null!=e){if("array"===Tv(e))l=e,o=[e[0],e[e.length-1]];else{const t=Uv.analyze(o);l=0===e?[t.min,t.max]:Uv.limits(t,"e",e)}return k}return l},k.domain=function(e){if(!arguments.length)return o;c=e[0],f=e[e.length-1],a=[];const t=s.length;if(e.length===t&&c!==f)for(let t of Array.from(e))a.push((t-c)/(f-c));else{for(let e=0;e<t;e++)a.push(e/(t-1));if(e.length>2){const t=e.map(((t,n)=>n/(e.length-1))),n=e.map((e=>(e-c)/(f-c)));n.every(((e,n)=>t[n]===e))||(b=e=>{if(e<=0||e>=1)return e;let r=0;for(;e>=n[r+1];)r++;const o=(e-n[r])/(n[r+1]-n[r]);return t[r]+o*(t[r+1]-t[r])})}}return o=[c,f],k},k.mode=function(e){return arguments.length?(t=e,w(),k):t},k.range=function(e,t){return m(e),k},k.out=function(e){return u=e,k},k.spread=function(e){return arguments.length?(r=e,k):r},k.correctLightness=function(e){return null==e&&(e=!0),d=e,w(),y=d?function(e){const t=v(0,!0).lab()[0],n=v(1,!0).lab()[0],r=t>n;let o=v(e,!0).lab()[0];const a=t+(n-t)*e;let i=o-a,l=0,s=1,u=20;for(;Math.abs(i)>.01&&u-- >0;)r&&(i*=-1),i<0?(l=e,e+=.5*(s-e)):(s=e,e+=.5*(l-e)),o=v(e,!0).lab()[0],i=o-a;return e}:e=>e,k},k.padding=function(e){return null!=e?("number"===Tv(e)&&(e=[e,e]),i=e,k):i},k.colors=function(t,n){arguments.length<2&&(n="hex");let r=[];if(0===arguments.length)r=s.slice(0);else if(1===t)r=[k(.5)];else if(t>1){const e=o[0],n=o[1]-e;r=function(e,t){let n=[],r=0<t,o=t;for(let e=0;r?e<o:e>o;r?e++:e--)n.push(e);return n}(0,t).map((r=>k(e+r/(t-1)*n)))}else{e=[];let t=[];if(l&&l.length>2)for(let e=1,n=l.length,r=1<=n;r?e<n:e>n;r?e++:e--)t.push(.5*(l[e-1]+l[e]));else t=o;r=t.map((e=>k(e)))}return Uv[n]&&(r=r.map((e=>e[n]()))),r},k.cache=function(e){return null!=e?(g=e,k):g},k.gamma=function(e){return null!=e?(h=e,k):h},k.nodata=function(e){return null!=e?(n=Uv(e),k):n},k}var yk=(e,t,n)=>{if(!yk[n])throw new Error("unknown blend mode "+n);return yk[n](e,t)},bk=e=>(t,n)=>{const r=Uv(n).rgb(),o=Uv(t).rgb();return Uv.rgb(e(r,o))},vk=e=>(t,n)=>{const r=[];return r[0]=e(t[0],n[0]),r[1]=e(t[1],n[1]),r[2]=e(t[2],n[2]),r};yk.normal=bk(vk((e=>e))),yk.multiply=bk(vk(((e,t)=>e*t/255))),yk.screen=bk(vk(((e,t)=>255*(1-(1-e/255)*(1-t/255))))),yk.overlay=bk(vk(((e,t)=>t<128?2*e*t/255:255*(1-2*(1-e/255)*(1-t/255))))),yk.darken=bk(vk(((e,t)=>e>t?t:e))),yk.lighten=bk(vk(((e,t)=>e>t?e:t))),yk.dodge=bk(vk(((e,t)=>255===e||(e=t/255*255/(1-e/255))>255?255:e))),yk.burn=bk(vk(((e,t)=>255*(1-(1-t/255)/(e/255)))));var wk=yk,{pow:kk,sin:xk,cos:Ek}=Math,{floor:Sk,random:Fk}=Math,{log:Ak,pow:Ck,floor:Ok,abs:Pk}=Math;function Tk(e,t=null){const n={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0};return"object"===Tv(e)&&(e=Object.values(e)),e.forEach((e=>{t&&"object"===Tv(e)&&(e=e[t]),null==e||isNaN(e)||(n.values.push(e),n.sum+=e,e<n.min&&(n.min=e),e>n.max&&(n.max=e),n.count+=1)})),n.domain=[n.min,n.max],n.limits=(e,t)=>Dk(n,e,t),n}function Dk(e,t="equal",n=7){"array"==Tv(e)&&(e=Tk(e));const{min:r,max:o}=e,a=e.values.sort(((e,t)=>e-t));if(1===n)return[r,o];const i=[];if("c"===t.substr(0,1)&&(i.push(r),i.push(o)),"e"===t.substr(0,1)){i.push(r);for(let e=1;e<n;e++)i.push(r+e/n*(o-r));i.push(o)}else if("l"===t.substr(0,1)){if(r<=0)throw new Error("Logarithmic scales are only possible for values > 0");const e=Math.LOG10E*Ak(r),t=Math.LOG10E*Ak(o);i.push(r);for(let r=1;r<n;r++)i.push(Ck(10,e+r/n*(t-e)));i.push(o)}else if("q"===t.substr(0,1)){i.push(r);for(let e=1;e<n;e++){const t=(a.length-1)*e/n,r=Ok(t);if(r===t)i.push(a[r]);else{const e=t-r;i.push(a[r]*(1-e)+a[r+1]*e)}}i.push(o)}else if("k"===t.substr(0,1)){let e;const t=a.length,l=new Array(t),s=new Array(n);let u=!0,c=0,f=null;f=[],f.push(r);for(let e=1;e<n;e++)f.push(r+e/n*(o-r));for(f.push(o);u;){for(let e=0;e<n;e++)s[e]=0;for(let e=0;e<t;e++){const t=a[e];let r,o=Number.MAX_VALUE;for(let a=0;a<n;a++){const n=Pk(f[a]-t);n<o&&(o=n,r=a),s[r]++,l[e]=r}}const r=new Array(n);for(let e=0;e<n;e++)r[e]=null;for(let n=0;n<t;n++)e=l[n],null===r[e]?r[e]=a[n]:r[e]+=a[n];for(let e=0;e<n;e++)r[e]*=1/s[e];u=!1;for(let e=0;e<n;e++)if(r[e]!==f[e]){u=!0;break}f=r,c++,c>200&&(u=!1)}const d={};for(let e=0;e<n;e++)d[e]=[];for(let n=0;n<t;n++)e=l[n],d[e].push(a[n]);let p=[];for(let e=0;e<n;e++)p.push(d[e][0]),p.push(d[e][d[e].length-1]);p=p.sort(((e,t)=>e-t)),i.push(p[0]);for(let e=1;e<p.length;e+=2){const t=p[e];isNaN(t)||-1!==i.indexOf(t)||i.push(t)}}return i}var{sqrt:Rk,pow:Nk,min:Lk,max:_k,atan2:jk,abs:Ik,cos:zk,sin:Bk,exp:Mk,PI:$k}=Math,Hk={cool:()=>mk([Uv.hsl(180,1,.9),Uv.hsl(250,.7,.4)]),hot:()=>mk(["#000","#f00","#ff0","#fff"]).mode("rgb")},Uk={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]};for(let e of Object.keys(Uk))Uk[e.toLowerCase()]=Uk[e];var Wk=Uk;Object.assign(Uv,{average:(e,t="lrgb",n=null)=>{const r=e.length;n||(n=Array.from(new Array(r)).map((()=>1)));const o=r/n.reduce((function(e,t){return e+t}));if(n.forEach(((e,t)=>{n[t]*=o})),e=e.map((e=>new $v(e))),"lrgb"===t)return((e,t)=>{const n=e.length,r=[0,0,0,0];for(let o=0;o<e.length;o++){const a=e[o],i=t[o]/n,l=a._rgb;r[0]+=uk(l[0],2)*i,r[1]+=uk(l[1],2)*i,r[2]+=uk(l[2],2)*i,r[3]+=l[3]*i}return r[0]=ck(r[0]),r[1]=ck(r[1]),r[2]=ck(r[2]),r[3]>.9999999&&(r[3]=1),new $v(Ov(r))})(e,n);const a=e.shift(),i=a.get(t),l=[];let s=0,u=0;for(let e=0;e<i.length;e++)if(i[e]=(i[e]||0)*n[0],l.push(isNaN(i[e])?0:n[0]),"h"===t.charAt(e)&&!isNaN(i[e])){const t=i[e]/180*fk;s+=dk(t)*n[0],u+=pk(t)*n[0]}let c=a.alpha()*n[0];e.forEach(((e,r)=>{const o=e.get(t);c+=e.alpha()*n[r+1];for(let e=0;e<i.length;e++)if(!isNaN(o[e]))if(l[e]+=n[r+1],"h"===t.charAt(e)){const t=o[e]/180*fk;s+=dk(t)*n[r+1],u+=pk(t)*n[r+1]}else i[e]+=o[e]*n[r+1]}));for(let e=0;e<i.length;e++)if("h"===t.charAt(e)){let t=gk(u/l[e],s/l[e])/fk*180;for(;t<0;)t+=360;for(;t>=360;)t-=360;i[e]=t}else i[e]=i[e]/l[e];return c/=r,new $v(i,t).alpha(c>.99999?1:c,!0)},bezier:e=>{const t=function(e){let t,n,r,o;if(2===(e=e.map((e=>new $v(e)))).length)[n,r]=e.map((e=>e.lab())),t=function(e){const t=[0,1,2].map((t=>n[t]+e*(r[t]-n[t])));return new $v(t,"lab")};else if(3===e.length)[n,r,o]=e.map((e=>e.lab())),t=function(e){const t=[0,1,2].map((t=>(1-e)*(1-e)*n[t]+2*(1-e)*e*r[t]+e*e*o[t]));return new $v(t,"lab")};else if(4===e.length){let a;[n,r,o,a]=e.map((e=>e.lab())),t=function(e){const t=[0,1,2].map((t=>(1-e)*(1-e)*(1-e)*n[t]+3*(1-e)*(1-e)*e*r[t]+3*(1-e)*e*e*o[t]+e*e*e*a[t]));return new $v(t,"lab")}}else{if(!(e.length>=5))throw new RangeError("No point in running bezier with only one color.");{let n,r,o;n=e.map((e=>e.lab())),o=e.length-1,r=function(e){let t=[1,1];for(let n=1;n<e;n++){let e=[1];for(let n=1;n<=t.length;n++)e[n]=(t[n]||0)+t[n-1];t=e}return t}(o),t=function(e){const t=1-e,a=[0,1,2].map((a=>n.reduce(((n,i,l)=>n+r[l]*kv(t,o-l)*kv(e,l)*i[a]),0)));return new $v(a,"lab")}}}return t}(e);return t.scale=()=>mk(t),t},blend:wk,cubehelix:function(e=300,t=-1.5,n=1,r=1,o=[0,1]){let a,i=0;"array"===Tv(o)?a=o[1]-o[0]:(a=0,o=[o,o]);const l=function(l){const s=jv*((e+120)/360+t*l),u=kk(o[0]+a*l,r),c=(0!==i?n[0]+l*i:n)*u*(1-u)/2,f=Ek(s),d=xk(s);return Uv(Ov([255*(u+c*(-.14861*f+1.78277*d)),255*(u+c*(-.29227*f-.90649*d)),255*(u+c*(1.97294*f)),1]))};return l.start=function(t){return null==t?e:(e=t,l)},l.rotations=function(e){return null==e?t:(t=e,l)},l.gamma=function(e){return null==e?r:(r=e,l)},l.hue=function(e){return null==e?n:("array"===Tv(n=e)?(i=n[1]-n[0],0===i&&(n=n[1])):i=0,l)},l.lightness=function(e){return null==e?o:("array"===Tv(e)?(o=e,a=e[1]-e[0]):(o=[e,e],a=0),l)},l.scale=()=>Uv.scale(l),l.hue(n),l},mix:ok,interpolate:ok,random:()=>{let e="#";for(let t=0;t<6;t++)e+="0123456789abcdef".charAt(Sk(16*Fk()));return new $v(e,"hex")},scale:mk,analyze:Tk,contrast:(e,t)=>{e=new $v(e),t=new $v(t);const n=e.luminance(),r=t.luminance();return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)},deltaE:function(e,t,n=1,r=1,o=1){var a=function(e){return 360*e/(2*$k)},i=function(e){return 2*$k*e/360};e=new $v(e),t=new $v(t);const[l,s,u]=Array.from(e.lab()),[c,f,d]=Array.from(t.lab()),p=(l+c)/2,g=(Rk(Nk(s,2)+Nk(u,2))+Rk(Nk(f,2)+Nk(d,2)))/2,h=.5*(1-Rk(Nk(g,7)/(Nk(g,7)+Nk(25,7)))),m=s*(1+h),y=f*(1+h),b=Rk(Nk(m,2)+Nk(u,2)),v=Rk(Nk(y,2)+Nk(d,2)),w=(b+v)/2,k=a(jk(u,m)),x=a(jk(d,y)),E=k>=0?k:k+360,S=x>=0?x:x+360,F=Ik(E-S)>180?(E+S+360)/2:(E+S)/2,A=1-.17*zk(i(F-30))+.24*zk(i(2*F))+.32*zk(i(3*F+6))-.2*zk(i(4*F-63));let C=S-E;C=Ik(C)<=180?C:S<=E?C+360:C-360,C=2*Rk(b*v)*Bk(i(C)/2);const O=c-l,P=v-b,T=1+.015*Nk(p-50,2)/Rk(20+Nk(p-50,2)),D=1+.045*w,R=1+.015*w*A,N=30*Mk(-Nk((F-275)/25,2)),L=-2*Rk(Nk(w,7)/(Nk(w,7)+Nk(25,7)))*Bk(2*i(N)),_=Rk(Nk(O/(n*T),2)+Nk(P/(r*D),2)+Nk(C/(o*R),2)+L*(P/(r*D))*(C/(o*R)));return _k(0,Lk(100,_))},distance:function(e,t,n="lab"){e=new $v(e),t=new $v(t);const r=e.get(n),o=t.get(n);let a=0;for(let e in r){const t=(r[e]||0)-(o[e]||0);a+=t*t}return Math.sqrt(a)},limits:Dk,valid:(...e)=>{try{return new $v(...e),!0}catch(e){return!1}},scales:Hk,input:Mv,colors:Mw,brewer:Wk});var Vk=Uv;function qk(e){const t=Vk.scale([Vk(e).brighten(1),e,Vk(e).darken(1)]).mode("lch").correctLightness(),n=[];for(let e=1;e<=10;e++)n.push(t(e/10).hex());return[n[0],n[1],n[2],n[3],n[4],e,n[6],n[7],n[8],n[9]]}var Gk=class e extends Error{constructor(t){super(t),this.name="TimeoutError",Object.setPrototypeOf(this,e.prototype)}};null==gv||gv.env.HCAPTCHA_SITE_KEY,r.createContext(void 0);var Yk="kapa-recaptcha-script",Qk=(e=>(e.AskAi="ask_ai",e.FeedbackSubmit="feedback_submit",e.Search="search",e))(Qk||{});function Xk({copied:e}){return(0,n.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e?(0,n.jsx)("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}):(0,n.jsx)("path",{d:"M5 2V1H10V2H5ZM4.75 0C4.33579 0 4 0.335786 4 0.75V1H3.5C2.67157 1 2 1.67157 2 2.5V12.5C2 13.3284 2.67157 14 3.5 14H11.5C12.3284 14 13 13.3284 13 12.5V2.5C13 1.67157 12.3284 1 11.5 1H11V0.75C11 0.335786 10.6642 0 10.25 0H4.75ZM11 2V2.25C11 2.66421 10.6642 3 10.25 3H4.75C4.33579 3 4 2.66421 4 2.25V2H3.5C3.22386 2 3 2.22386 3 2.5V12.5C3 12.7761 3.22386 13 3.5 13H11.5C11.7761 13 12 12.7761 12 12.5V2.5C12 2.22386 11.7761 2 11.5 2H11Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}var Kk=Mn(((e,{colorScheme:t,native:n,maxLineSize:r,radius:o})=>({scrollArea:{},root:{position:"relative"},code:{boxSizing:"border-box",position:"relative",fontFamily:e.fontFamilyMonospace,lineHeight:1.7,fontSize:xt(13),overflowX:n?"auto":void 0,borderRadius:e.fn.radius(o),padding:`${e.spacing.sm} 0`,marginTop:0,marginBottom:0},copy:{position:"absolute",top:e.spacing.xs,right:"ltr"===e.dir?e.spacing.xs:"unset",left:"rtl"===e.dir?e.spacing.xs:"unset",zIndex:2,"&, &:hover":{backgroundColor:"dark"===t?e.colors.dark[8]:e.colors.gray[0]}},line:{display:"flex",width:"100%",padding:`0 ${e.spacing.md}`},lineNumber:{color:"dark"===t?e.colors.dark[4]:e.colors.gray[4],textAlign:"right",width:`calc(8 * ${xt(r)})`,marginRight:"ltr"===e.dir?e.spacing.xs:void 0,marginLeft:"rtl"===e.dir?e.spacing.xs:void 0,userSelect:"none"},lineContent:{width:"100%"}}))),Zk={noCopy:!1,copyLabel:"Copy code",copiedLabel:"Copied",withLineNumbers:!1,trim:!0,highlightLines:{},scrollAreaComponent:Sh,getPrismTheme:(e,t)=>"dark"===t?(e=>({plain:{color:e.colors.gray[4],backgroundColor:e.colors.dark[8]},styles:[{types:["comment"],style:{color:e.colors.gray[6]}},{types:["string","inserted","selector","atrule"],style:{color:e.colors.teal[4]}},{types:["number"],style:{color:e.colors.blue[4]}},{types:["builtin","char","constant","function"],style:{color:e.colors.orange[5]}},{types:["punctuation"],style:{color:e.colors.gray[5]}},{types:["variable"],style:{color:e.colors.gray[5]}},{types:["class-name","attr-name"],style:{color:e.colors.yellow[5]}},{types:["tag","deleted"],style:{color:e.colors.red[6]}},{types:["operator"],style:{color:e.colors.gray[5]}},{types:["boolean"],style:{color:e.colors.red[6]}},{types:["keyword"],style:{color:e.colors.indigo[3]}},{types:["doctype"],style:{color:e.colors.gray[5]}},{types:["url"],style:{color:e.colors.gray[5]}}]}))(e):(e=>({plain:{color:e.colors.gray[9],backgroundColor:e.fn.rgba(e.colors.gray[0],.65)},styles:[{types:["comment"],style:{color:e.colors.gray[6]}},{types:["string","inserted"],style:{color:e.colors.indigo[9]}},{types:["number"],style:{color:e.colors.blue[7]}},{types:["builtin","char","constant","function","selector","atrule"],style:{color:e.colors.lime[9]}},{types:["punctuation"],style:{color:e.colors.gray[7]}},{types:["variable"],style:{color:e.colors.violet[9]}},{types:["attr-name"],style:{color:e.colors.green[9]}},{types:["class-name"],style:{color:e.colors.red[9]}},{types:["tag","deleted"],style:{color:e.colors.violet[9]}},{types:["operator"],style:{color:e.colors.red[9]}},{types:["boolean"],style:{color:e.colors.red[9]}},{types:["keyword"],style:{color:e.colors.red[9]}},{types:["doctype"],style:{color:e.colors.gray[7]}},{types:["url"],style:{color:e.colors.gray[7]}}]}))(e)},Jk=(0,r.forwardRef)(((e,t)=>{const o=bn("Prism",Zk,e),{className:a,children:i,language:l,noCopy:s,classNames:u,styles:c,copyLabel:f,copiedLabel:d,withLineNumbers:p,highlightLines:g={},scrollAreaComponent:h,colorScheme:m,trim:y,unstyled:b,radius:v,getPrismTheme:w,variant:k}=o,x=Fv(o,["className","children","language","noCopy","classNames","styles","copyLabel","copiedLabel","withLineNumbers","highlightLines","scrollAreaComponent","colorScheme","trim","unstyled","radius","getPrismTheme","variant"]),E=y&&"string"==typeof i?i.trim():i,S=E.split("\n").length.toString().length,F=mn(),A=function({timeout:e=2e3}={}){const[t,n]=(0,r.useState)(null),[o,a]=(0,r.useState)(!1),[i,l]=(0,r.useState)(null);return{copy:t=>{"clipboard"in navigator?navigator.clipboard.writeText(t).then((()=>(clearTimeout(i),l(setTimeout((()=>a(!1)),e)),void a(!0)))).catch((e=>n(e))):n(new Error("useClipboard: navigator.clipboard is not supported"))},reset:()=>{a(!1),n(null),clearTimeout(i)},error:t,copied:o}}(),C=m||F.colorScheme,{classes:O,cx:P}=Kk({colorScheme:C,native:h!==Sh,maxLineSize:S,radius:v},{name:"Prism",classNames:u,styles:c,unstyled:b,variant:k});return(0,n.jsxs)(_r,Sv(Ev({className:P(O.root,a)},x),{ref:t,translate:"no",children:[!s&&(0,n.jsx)(pv,{label:A.copied?d:f,position:"left",withArrow:!0,arrowSize:6,offset:6,color:A.copied?"teal":void 0,unstyled:b,children:(0,n.jsx)(ki,{className:O.copy,"aria-label":A.copied?d:f,onClick:()=>A.copy(E),unstyled:b,children:(0,n.jsx)(Xk,{copied:A.copied})})}),(0,n.jsx)(os,{theme:null==w?void 0:w(F,C),code:E,language:l,children:({className:e,style:t,tokens:o,getLineProps:a,getTokenProps:i})=>(0,n.jsx)(h,{className:O.scrollArea,dir:"ltr",children:(0,n.jsx)("pre",{className:P(O.code,e),style:t,dir:"ltr",children:o.map(((e,t)=>{var l,s,u,c;if(t===o.length-1&&1===e.length&&"\n"===e[0].content)return null;const f=t+1,d=a({line:e,key:t}),h=f in g,m="dark"===C?F.fn.rgba(F.fn.themeColor(null==(l=g[f])?void 0:l.color,9),.25):F.fn.themeColor(null==(s=g[f])?void 0:s.color,0);return(0,r.createElement)("div",Sv(Ev({},d),{key:t,className:P(O.line,d.className),style:Ev({},h?{backgroundColor:m}:null)}),p&&(0,n.jsx)("div",{className:O.lineNumber,style:{color:h?F.fn.themeColor(null==(u=g[f])?void 0:u.color,"dark"===C?5:8):void 0},children:(null==(c=g[f])?void 0:c.label)||f}),(0,n.jsx)("div",{className:O.lineContent,children:e.map(((e,t)=>{var n,o;const a=i({token:e,key:t});return(0,r.createElement)("span",Sv(Ev({},a),{key:t,style:Sv(Ev({},a.style),{color:h?F.fn.themeColor(null==(n=g[f])?void 0:n.color,"dark"===C?5:8):null==(o=null==a?void 0:a.style)?void 0:o.color})}))}))}))})).filter(Boolean)})})})]}))}));Jk.displayName="Prism",("undefined"!=typeof global?global:window).Prism=Tl;var ex=e=>{var t=e,{onLinkClick:r,children:o}=t,a=Fv(t,["onLinkClick","children"]);return(0,n.jsx)(od,Sv(Ev({components:{h1:e=>{var t=Fv(e,[]);return(0,n.jsx)(Xr,Ev({order:3,style:{marginTop:"8px",marginBottom:"8px"}},t))},h2:e=>{var t=Fv(e,[]);return(0,n.jsx)(Xr,Ev({order:4,style:{marginTop:"8px",marginBottom:"8px"}},t))},h3:e=>{var t=Fv(e,[]);return(0,n.jsx)(Xr,Ev({order:5,style:{marginTop:"8px",marginBottom:"8px"}},t))},h4:e=>{var t=Fv(e,[]);return(0,n.jsx)(Xr,Ev({order:6,style:{marginTop:"8px",marginBottom:"8px"}},t))},h5:e=>{var t=Fv(e,[]);return(0,n.jsx)(Xr,Ev({order:6,style:{marginTop:"8px",marginBottom:"8px"}},t))},h6:e=>{var t=Fv(e,[]);return(0,n.jsx)(Xr,Ev({order:6,style:{marginTop:"8px",marginBottom:"8px"}},t))},p:e=>{var t=Fv(e,[]);return(0,n.jsx)(Ur,Sv(Ev({fz:"sm"},t),{style:{marginTop:"8px",marginBottom:"8px"}}))},code:e=>{var t,r=e,{inline:o,className:a}=r,i=Fv(r,["inline","className"]);const l=/language-(\w+)/.exec(a||""),s=l?l[1]:"bash",u={marginTop:"8px",marginBottom:"8px",whiteSpace:"pre"};return o?(0,n.jsx)(ho,Sv(Ev({},i),{style:u})):(0,n.jsx)(Jk,{colorScheme:"dark",language:s,scrollAreaComponent:"div",style:u,children:"string"==typeof i.children?i.children:null==(t=i.children)?void 0:t.join("")})},pre:e=>{var t=Fv(e,[]);return(0,n.jsx)(n.Fragment,{children:t.children})},ul:e=>{var t=Fv(e,[]);const{children:r}=t;return(0,n.jsx)(Wo,Sv(Ev({type:"unordered"},t),{style:{maxWidth:"95%",marginTop:"8px",marginBottom:"8px",color:"inherit"},fz:"sm",children:r}))},li:e=>{var t=Fv(e,[]);return(0,n.jsx)(Wo.Item,Sv(Ev({},t),{style:{maxWidth:"95%",marginTop:"8px",marginBottom:"8px",color:"inherit"},fz:"sm"}))},ol:e=>{var t=Fv(e,[]);const{children:r}=t;return(0,n.jsx)(Wo,Sv(Ev({},t),{type:"ordered",style:{maxWidth:"95%",marginTop:"8px",marginBottom:"8px",color:"inherit"},fz:"sm",children:r}))},blockquote:e=>{var t=Fv(e,[]);return(0,n.jsx)(Wi,{color:"gray",style:{marginTop:"8px",marginBottom:"8px"},children:t.children})},a:e=>{var t=Fv(e,[]);return(0,n.jsx)(ll,Ev({fz:"sm",fw:700,underline:!0,target:"_blank",onClick:()=>r(t.href)},t))},table:e=>{var t=Fv(e,[]);return(0,n.jsx)("div",{style:{marginTop:"8px",marginBottom:"8px",overflowX:"scroll",color:"inherit"},children:(0,n.jsx)("table",Ev({},t))})},thead:e=>{var t=Fv(e,[]);return(0,n.jsx)("thead",Ev({},t))},tbody:e=>{var t=Fv(e,[]);return(0,n.jsx)("tbody",Ev({},t))},tr:e=>{var t=Fv(e,[]);return(0,n.jsx)("tr",Ev({},t))},th:e=>{var t=Fv(e,[]);return(0,n.jsx)("th",Sv(Ev({},t),{style:{padding:"8px",border:"1px solid #ccc",textAlign:"left"}}))}},remarkPlugins:[sg]},a),{children:o}))},tx=o(873);const nx=r.createContext(void 0),rx=({children:e,config:t,logger:r,props:o})=>(0,n.jsx)(nx.Provider,{value:{config:t,props:o,logger:r},children:e}),ox=()=>{const e=r.useContext(nx);if(void 0===e)throw new Error("useConfig must be used within a StylesProvider");return e},ax="kapa-support-form-deflector-state";class ix{constructor({logger:e,toggleDeflectionStatus:t,cacheTimeout:n}){this.logger=e,this.toggleDeflectionStatus=t,this.cacheTimeout=n}storeDeflectorState({threadId:e}){const t=JSON.stringify({timestamp:Date.now(),threadId:e});this.logger.debug("Saving data to local storage",t),localStorage.setItem(ax,t)}shouldUseCachedDeflectorState(){const e=localStorage.getItem(ax);if(!e)return!1;try{const t=JSON.parse(e);return t.timestamp&&t.threadId?(this.logger.debug("Found data in local storage",t),!(this.cacheTimeout<0||Date.now()-t.timestamp>this.cacheTimeout||(this.toggleDeflectionStatus(t.threadId,!1),0))):(this.logger.debug("Invalid data in local storage",t),!1)}catch(e){return console.error("Error parsing local storage data",e),!1}}}function lx(e,t){return Array(t+1).join(e)}var sx=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function ux(e){return px(e,sx)}var cx=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function fx(e){return px(e,cx)}var dx=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function px(e,t){return t.indexOf(e.nodeName)>=0}function gx(e,t){return e.getElementsByTagName&&t.some((function(t){return e.getElementsByTagName(t).length}))}var hx={};function mx(e){return e?e.replace(/(\n+\s*)+/g,"\n"):""}function yx(e){for(var t in this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[],e.rules)this.array.push(e.rules[t])}function bx(e,t,n){for(var r=0;r<e.length;r++){var o=e[r];if(vx(o,t,n))return o}}function vx(e,t,n){var r=e.filter;if("string"==typeof r){if(r===t.nodeName.toLowerCase())return!0}else if(Array.isArray(r)){if(r.indexOf(t.nodeName.toLowerCase())>-1)return!0}else{if("function"!=typeof r)throw new TypeError("`filter` needs to be a string, array, or function");if(r.call(e,t,n))return!0}}function wx(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function kx(e,t,n){return e&&e.parentNode===t||n(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}hx.paragraph={filter:"p",replacement:function(e){return"\n\n"+e+"\n\n"}},hx.lineBreak={filter:"br",replacement:function(e,t,n){return n.br+"\n"}},hx.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(e,t,n){var r=Number(t.nodeName.charAt(1));return"setext"===n.headingStyle&&r<3?"\n\n"+e+"\n"+lx(1===r?"=":"-",e.length)+"\n\n":"\n\n"+lx("#",r)+" "+e+"\n\n"}},hx.blockquote={filter:"blockquote",replacement:function(e){return"\n\n"+(e=(e=e.replace(/^\n+|\n+$/g,"")).replace(/^/gm,"> "))+"\n\n"}},hx.list={filter:["ul","ol"],replacement:function(e,t){var n=t.parentNode;return"LI"===n.nodeName&&n.lastElementChild===t?"\n"+e:"\n\n"+e+"\n\n"}},hx.listItem={filter:"li",replacement:function(e,t,n){e=e.replace(/^\n+/,"").replace(/\n+$/,"\n").replace(/\n/gm,"\n ");var r=n.bulletListMarker+" ",o=t.parentNode;if("OL"===o.nodeName){var a=o.getAttribute("start"),i=Array.prototype.indexOf.call(o.children,t);r=(a?Number(a)+i:i+1)+". "}return r+e+(t.nextSibling&&!/\n$/.test(e)?"\n":"")}},hx.indentedCodeBlock={filter:function(e,t){return"indented"===t.codeBlockStyle&&"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName},replacement:function(e,t,n){return"\n\n "+t.firstChild.textContent.replace(/\n/g,"\n ")+"\n\n"}},hx.fencedCodeBlock={filter:function(e,t){return"fenced"===t.codeBlockStyle&&"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName},replacement:function(e,t,n){for(var r,o=((t.firstChild.getAttribute("class")||"").match(/language-(\S+)/)||[null,""])[1],a=t.firstChild.textContent,i=n.fence.charAt(0),l=3,s=new RegExp("^"+i+"{3,}","gm");r=s.exec(a);)r[0].length>=l&&(l=r[0].length+1);var u=lx(i,l);return"\n\n"+u+o+"\n"+a.replace(/\n$/,"")+"\n"+u+"\n\n"}},hx.horizontalRule={filter:"hr",replacement:function(e,t,n){return"\n\n"+n.hr+"\n\n"}},hx.inlineLink={filter:function(e,t){return"inlined"===t.linkStyle&&"A"===e.nodeName&&e.getAttribute("href")},replacement:function(e,t){var n=t.getAttribute("href");n&&(n=n.replace(/([()])/g,"\\$1"));var r=mx(t.getAttribute("title"));return r&&(r=' "'+r.replace(/"/g,'\\"')+'"'),"["+e+"]("+n+r+")"}},hx.referenceLink={filter:function(e,t){return"referenced"===t.linkStyle&&"A"===e.nodeName&&e.getAttribute("href")},replacement:function(e,t,n){var r,o,a=t.getAttribute("href"),i=mx(t.getAttribute("title"));switch(i&&(i=' "'+i+'"'),n.linkReferenceStyle){case"collapsed":r="["+e+"][]",o="["+e+"]: "+a+i;break;case"shortcut":r="["+e+"]",o="["+e+"]: "+a+i;break;default:var l=this.references.length+1;r="["+e+"]["+l+"]",o="["+l+"]: "+a+i}return this.references.push(o),r},references:[],append:function(e){var t="";return this.references.length&&(t="\n\n"+this.references.join("\n")+"\n\n",this.references=[]),t}},hx.emphasis={filter:["em","i"],replacement:function(e,t,n){return e.trim()?n.emDelimiter+e+n.emDelimiter:""}},hx.strong={filter:["strong","b"],replacement:function(e,t,n){return e.trim()?n.strongDelimiter+e+n.strongDelimiter:""}},hx.code={filter:function(e){var t=e.previousSibling||e.nextSibling,n="PRE"===e.parentNode.nodeName&&!t;return"CODE"===e.nodeName&&!n},replacement:function(e){if(!e)return"";e=e.replace(/\r?\n|\r/g," ");for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?" ":"",n="`",r=e.match(/`+/gm)||[];-1!==r.indexOf(n);)n+="`";return n+t+e+t+n}},hx.image={filter:"img",replacement:function(e,t){var n=mx(t.getAttribute("alt")),r=t.getAttribute("src")||"",o=mx(t.getAttribute("title"));return r?"!["+n+"]("+r+(o?' "'+o+'"':"")+")":""}},yx.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return""}})},forNode:function(e){return e.isBlank?this.blankRule:(t=bx(this.array,e,this.options))||(t=bx(this._keep,e,this.options))||(t=bx(this._remove,e,this.options))?t:this.defaultRule;var t},forEach:function(e){for(var t=0;t<this.array.length;t++)e(this.array[t],t)}};var xx,Ex,Sx="undefined"!=typeof window?window:{},Fx=function(){var e=Sx.DOMParser,t=!1;try{(new e).parseFromString("","text/html")&&(t=!0)}catch(e){}return t}()?Sx.DOMParser:(xx=function(){},function(){var e=!1;try{document.implementation.createHTMLDocument("").open()}catch(t){Sx.ActiveXObject&&(e=!0)}return e}()?xx.prototype.parseFromString=function(e){var t=new window.ActiveXObject("htmlfile");return t.designMode="on",t.open(),t.write(e),t.close(),t}:xx.prototype.parseFromString=function(e){var t=document.implementation.createHTMLDocument("");return t.open(),t.write(e),t.close(),t},xx);function Ax(e,t){var n;return function(e){var t=e.element,n=e.isBlock,r=e.isVoid,o=e.isPre||function(e){return"PRE"===e.nodeName};if(t.firstChild&&!o(t)){for(var a=null,i=!1,l=null,s=kx(l,t,o);s!==t;){if(3===s.nodeType||4===s.nodeType){var u=s.data.replace(/[ \r\n\t]+/g," ");if(a&&!/ $/.test(a.data)||i||" "!==u[0]||(u=u.substr(1)),!u){s=wx(s);continue}s.data=u,a=s}else{if(1!==s.nodeType){s=wx(s);continue}n(s)||"BR"===s.nodeName?(a&&(a.data=a.data.replace(/ $/,"")),a=null,i=!1):r(s)||o(s)?(a=null,i=!0):a&&(i=!1)}var c=kx(l,s,o);l=s,s=c}a&&(a.data=a.data.replace(/ $/,""),a.data||wx(a))}}({element:n="string"==typeof e?(Ex=Ex||new Fx).parseFromString('<x-turndown id="turndown-root">'+e+"</x-turndown>","text/html").getElementById("turndown-root"):e.cloneNode(!0),isBlock:ux,isVoid:fx,isPre:t.preformattedCode?Cx:null}),n}function Cx(e){return"PRE"===e.nodeName||"CODE"===e.nodeName}function Ox(e,t){return e.isBlock=ux(e),e.isCode="CODE"===e.nodeName||e.parentNode.isCode,e.isBlank=function(e){return!fx(e)&&!function(e){return px(e,dx)}(e)&&/^\s*$/i.test(e.textContent)&&!function(e){return gx(e,cx)}(e)&&!function(e){return gx(e,dx)}(e)}(e),e.flankingWhitespace=function(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:"",trailing:""};var n=function(e){var t=e.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:t[1],leadingAscii:t[2],leadingNonAscii:t[3],trailing:t[4],trailingNonAscii:t[5],trailingAscii:t[6]}}(e.textContent);return n.leadingAscii&&Px("left",e,t)&&(n.leading=n.leadingNonAscii),n.trailingAscii&&Px("right",e,t)&&(n.trailing=n.trailingNonAscii),{leading:n.leading,trailing:n.trailing}}(e,t),e}function Px(e,t,n){var r,o,a;return"left"===e?(r=t.previousSibling,o=/ $/):(r=t.nextSibling,o=/^ /),r&&(3===r.nodeType?a=o.test(r.nodeValue):n.preformattedCode&&"CODE"===r.nodeName?a=!1:1!==r.nodeType||ux(r)||(a=o.test(r.textContent))),a}var Tx=Array.prototype.reduce,Dx=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function Rx(e){if(!(this instanceof Rx))return new Rx(e);var t={rules:hx,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:function(e,t){return t.isBlock?"\n\n":""},keepReplacement:function(e,t){return t.isBlock?"\n\n"+t.outerHTML+"\n\n":t.outerHTML},defaultReplacement:function(e,t){return t.isBlock?"\n\n"+e+"\n\n":e}};this.options=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},t,e),this.rules=new yx(this.options)}function Nx(e){var t=this;return Tx.call(e.childNodes,(function(e,n){var r="";return 3===(n=new Ox(n,t.options)).nodeType?r=n.isCode?n.nodeValue:t.escape(n.nodeValue):1===n.nodeType&&(r=_x.call(t,n)),jx(e,r)}),"")}function Lx(e){var t=this;return this.rules.forEach((function(n){"function"==typeof n.append&&(e=jx(e,n.append(t.options)))})),e.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function _x(e){var t=this.rules.forNode(e),n=Nx.call(this,e),r=e.flankingWhitespace;return(r.leading||r.trailing)&&(n=n.trim()),r.leading+t.replacement(n,e,this.options)+r.trailing}function jx(e,t){var n=function(e){for(var t=e.length;t>0&&"\n"===e[t-1];)t--;return e.substring(0,t)}(e),r=function(e){return e.replace(/^\n*/,"")}(t),o=Math.max(e.length-n.length,t.length-r.length);return n+"\n\n".substring(0,o)+r}Rx.prototype={turndown:function(e){if(!function(e){return null!=e&&("string"==typeof e||e.nodeType&&(1===e.nodeType||9===e.nodeType||11===e.nodeType))}(e))throw new TypeError(e+" is not a string, or an element/document/fragment node.");if(""===e)return"";var t=Nx.call(this,new Ax(e,this.options));return Lx.call(this,t)},use:function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)this.use(e[t]);else{if("function"!=typeof e)throw new TypeError("plugin must be a Function or an Array of Functions");e(this)}return this},addRule:function(e,t){return this.rules.add(e,t),this},keep:function(e){return this.rules.keep(e),this},remove:function(e){return this.rules.remove(e),this},escape:function(e){return Dx.reduce((function(e,t){return e.replace(t[0],t[1])}),e)}};const Ix=Rx,zx=e=>new Ix({headingStyle:"atx",codeBlockStyle:"fenced"}).turndown(e);function Bx(e){var t,n;const r=e.split(/(>>|sr>>|ifr>>)/g).map((e=>e.trim())).filter(Boolean);let o=document;for(let e=0;e<r.length;e++){const a=r[e];if(!o)return null;if("ifr>>"===a){const n=r[++e];o=(null===(t=o.contentWindow)||void 0===t?void 0:t.document.querySelector(n))||null}else if("sr>>"===a||">>"===a){const t=r[++e];o=(null===(n=o.shadowRoot)||void 0===n?void 0:n.querySelector(t))||null}else o=o.querySelector(a)}return o}const Mx=(e,t)=>{if(!e)return;console.debug("Toggling button disabled state",{selector:e,disabled:t});const n=Bx(e);n?n instanceof HTMLButtonElement||n instanceof HTMLInputElement?n.disabled=t:n instanceof HTMLAnchorElement?t?n.classList.add("kapa-disabled"):n.classList.remove("kapa-disabled"):console.error("Element must be of HTML type input, anchor or button."):console.error(`Submit button not found in order to ${t?"disable":"enable"} element.`)};var $x=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{s(r.next(e))}catch(e){a(e)}}function l(e){try{s(r.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((r=r.apply(e,t||[])).next())}))};const Hx="https://kapa-widget-proxy-la7dkmplpq-uc.a.run.app",Ux={state:"not_triggered",abortController:void 0,answer:void 0},Wx=(e,t)=>{switch(t.type){case"LOADING":return Object.assign(Object.assign({},e),{abortController:t.data,state:"loading"});case"LOADING_LONGER":return Object.assign(Object.assign({},e),{state:"loading_longer"});case"SUCCESS":return Object.assign(Object.assign({},e),{state:"success",answer:{answer:t.data.answer,thread_id:t.data.thread_id}});case"ERROR":return Object.assign(Object.assign({},e),{state:"error"});case"SKIPPED":return Object.assign(Object.assign({},e),{state:"skipped"});case"CANCELLED":return"loading_longer"!==e.state?e:(e.abortController&&e.abortController.abort("cancelled"),Object.assign(Object.assign({},e),{state:"cancelled"}));default:return e}},Vx=r.createContext(void 0),qx=({children:e})=>{var t;const[o,a]=r.useReducer(Wx,Ux),{config:i,logger:l}=ox(),{execute:s}=(e=>{const{loadScript:t=!0}={loadScript:!0}||{},[n,o]=(0,r.useState)(!1),[a,i]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{var n;if(!t)return;const r=()=>{o(!0)},a=e=>{console.error("Failed to load reCAPTCHA Enterprise script",e)},i=(()=>{const t=document.getElementById(Yk);if(t)return t;const n=document.createElement("script");return n.id=Yk,n.src=`https://www.google.com/recaptcha/enterprise.js?render=${e}`,n.async=!0,n.defer=!0,document.head.appendChild(n),n})();if(!(null==(n=window.grecaptcha)?void 0:n.enterprise))return i.addEventListener("load",r),i.addEventListener("error",a),()=>{i&&(i.removeEventListener("load",r),i.removeEventListener("error",a))};o(!0)}),[e,t]),(0,r.useEffect)((()=>{if(n&&window.grecaptcha)try{window.grecaptcha.enterprise.ready((()=>{i(!0)}))}catch(e){console.error("Error during reCAPTCHA ready initialization:",e)}}),[n]),{execute:(0,r.useCallback)((t=>Av(void 0,null,(function*(){if(!a)return console.error("reCAPTCHA is not ready"),null;try{return yield function(e,t){return Av(this,null,(function*(){return new Promise(((n,r)=>{const o=setTimeout((()=>{r(new Gk("Promise timed out."))}),t);e.then((e=>{clearTimeout(o),n(e)})).catch((e=>{clearTimeout(o),r(e)}))}))}))}(window.grecaptcha.enterprise.execute(e,{action:t}),4e3)}catch(e){return console.error("Error obtaining reCAPTCHA token:",e),null}}))),[a,e])}})(null!=="6Lck4YwlAAAAAEIE1hR--varWp0qu9F-8-emQn2v"?"6Lck4YwlAAAAAEIE1hR--varWp0qu9F-8-emQn2v":""),u=r.useMemo((()=>new WeakMap),[]),c=r.useCallback(((e,t)=>$x(void 0,void 0,void 0,(function*(){if(e)try{const n=JSON.stringify({is_deflected:t}),r=yield fetch(`${Hx}/proxy/query/v2/thread/${e}/deflection-tracking-events/upsert/`,{method:"POST",body:n,headers:{"Content-Type":"application/json","X-WEBSITE-ID":i.integrationId}});if(!r.ok)throw new Error(`Request failed with status ${r.status}`);l.debug(`Deflection status toggled to ${t}`)}catch(e){console.error("Error toggling deflection status:",e)}else console.error("Error: threadId is null")}))),[i.integrationId,l]),f=r.useCallback((e=>$x(void 0,void 0,void 0,(function*(){var e;(null===(e=o.answer)||void 0===e?void 0:e.thread_id)?c(o.answer.thread_id,!1):console.warn("Skipping deflection untoggle: No thread_id available.")}))),[null===(t=o.answer)||void 0===t?void 0:t.thread_id,c]),d=r.useCallback((()=>{const e=Bx(i.deflectionFailureTriggerElementQuerySelector);return e?new Promise((t=>{l.debug("Verifying untoggleDeflection event listener...");const n=u.get(e);if(n!==f)return console.warn("Expected untoggleDeflection event handler is not attached."),t(!1);l.debug("Verified: untoggleDeflection is attached, now testing execution.");try{n(new MouseEvent("click")),l.debug("Untoggle deflection event handler executed successfully."),t(!0)}catch(e){console.warn("Error executing untoggle deflection event handler:",e),t(!1)}})):(console.warn(`Deflection failure trigger element not found: ${i.deflectionFailureTriggerElementQuerySelector}`),Promise.resolve(!1))}),[i.deflectionFailureTriggerElementQuerySelector,u,l,f]),p=r.useCallback((e=>$x(void 0,void 0,void 0,(function*(){var t,n;if(e.preventDefault(),["loading","loading_longer"].includes(o.state))return;const r=new AbortController,u=r.signal;a({type:"LOADING",data:r});const f=i.mainInputQuerySelector,p=Bx(f),g=i.extraInputs.map((e=>{const t=Bx(e.selector);return Object.assign(Object.assign({},e),{element:t,name:e.name||(null==t?void 0:t.name)})}));if(!p)return console.warn(`Main input query element not found with selector: ${f}`),void a({type:"ERROR",data:null});g.forEach((({element:e,selector:t})=>{e||console.warn(`Additional query element not found with selector: ${t}`)})),Mx(i.submitButtonQuerySelector,!0);const h=function(e,t,n){let r="";return r=e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?t.mainInputFormatsHTML?zx(e.value):e.value:zx(e.innerHTML),n.debug("Found main input element",e,"with value",r),r}(p,i,l),m=new ix({logger:l,toggleDeflectionStatus:c,cacheTimeout:i.queryCacheTimeout});let y=!1;if(m.shouldUseCachedDeflectorState()&&(y=!0,l.debug("Skipping request because of local storage data.")),h.length<25&&(y=!0,l.debug("Skipping request because query is less than 25 characters.")),y){l.debug("Skipping request because of local storage data."),a({type:"SKIPPED",data:null});const n=p.closest("form");return n?n.requestSubmit():null===(t=e.target)||void 0===t||t.dispatchEvent(new Event(e.type,{bubbles:!0})),void Mx(i.submitButtonQuerySelector,!1)}const b=g.map((({element:e,name:t})=>{const n=e;if(!n)return null;if(!t&&n instanceof HTMLInputElement)return console.warn(`Element with selector ${n} does not have configured name or a name attribute to describe the input field.`),null;const r=n.getAttribute("name")||n.id||n.getAttribute("data-name")||n.getAttribute("aria-label")||n.tagName.toLowerCase()||"";return n instanceof HTMLInputElement&&"checkbox"===n.type?{name:t||r,value:n.checked?"Yes":"No"}:"value"in n?{name:t||r,value:n.value}:{name:t||r,value:n.innerText||n.textContent||""}})).filter(Boolean);let v=h;b.length&&(v+=`\n\nAdditional information:\n${b.map((e=>`${e.name}: ${e.value}`)).join("\n")}`);const w=`${Hx}/proxy/query/v2/chat/`;try{const e=yield s(Qk.AskAi);if(null===e)return console.error("Error: ReCAPTCHA token is null"),void a({type:"ERROR",data:null});const t=setTimeout((()=>{a({type:"LOADING_LONGER",data:null})}),i.cancelAnswerTimeout),r=yield fetch(w,{method:"POST",headers:{"Content-Type":"application/json","X-RECAPTCHA-ENTERPRISE-TOKEN":e,"X-WEBSITE-ID":i.integrationId},body:JSON.stringify({query:v}),signal:u}),o=yield r.json();if(clearTimeout(t),!r.ok)return console.error("Error in query submission:",o),void a({type:"ERROR",data:o});a({type:"SUCCESS",data:o}),m.storeDeflectorState({threadId:o.thread_id}),(yield d())?(l.debug("Untoggle event listener verified, proceeding to set deflection to true."),c(null!==(n=o.thread_id)&&void 0!==n?n:"",!0)):console.warn("Untoggle event listener verification failed, skipping deflection toggle.")}catch(e){return void("cancelled"!==e&&(console.error("Error in query submission:",e),a({type:"ERROR",data:null})))}finally{Mx(i.submitButtonQuerySelector,!1)}}))),[o.state,i,l,s,d,c]),g=r.useRef(null),h=r.useRef("initial");return r.useEffect((()=>{const e=e=>$x(void 0,void 0,void 0,(function*(){var t,n;if("handling"===h.current)return e.preventDefault(),void e.stopImmediatePropagation();if("initial"===h.current&&(e.preventDefault(),e.stopImmediatePropagation(),h.current="handling",yield p(e),h.current="done",i.runsOriginalEventAutomatically)){const r=null===(t=e.target)||void 0===t?void 0:t.closest("form");r?r.requestSubmit():null===(n=e.target)||void 0===n||n.dispatchEvent(new Event(e.type,{bubbles:!0}))}})),t="onSubmit"===i.submitElementEventType?"submit":"click",n=()=>{const n=Bx(i.submitElementQuerySelector);n?null!==g.current&&g.current===n||(n.addEventListener(t,e,{capture:!0}),l.debug(`Added ${t} event listener to element:`,n),g.current=n):console.warn(`Form with selector "${i.submitElementQuerySelector}" not found`)};n();const r=new MutationObserver(n);return r.observe(document.body,{childList:!0,subtree:!0}),()=>{g.current&&(null==l||l.debug("Detaching event listener from",g.current),g.current.removeEventListener(t,e,{capture:!0}),g.current=null),r.disconnect()}}),[i,p,l]),r.useEffect((()=>{const e="onClick"===i.deflectionFailureTriggerElementEventType?"click":"submit";let t=null;const n=()=>{const n=Bx(i.deflectionFailureTriggerElementQuerySelector);n&&n!==t?(t&&t.removeEventListener(e,f),l.debug("Attaching untoggleDeflection listener to",n),n.addEventListener(e,f,{capture:!0}),u.set(n,f),t=n):n||console.warn(`Element with selector "${i.deflectionFailureTriggerElementQuerySelector}" not found`)};["success","error"].includes(o.state)&&n();const r=new MutationObserver(n);return r.observe(document.body,{childList:!0,subtree:!0}),()=>{t&&(t.removeEventListener(e,f),t=null),r.disconnect()}}),[i,u,l,o.state,f]),(0,n.jsx)(Vx.Provider,{value:{state:o,dispatch:a},children:e})},Gx=()=>{const e=r.useContext(Vx);if(void 0===e)throw new Error("useDeflector must be used within a DeflectorProvider");return e},Yx={gap:{type:"spacing",property:"gap"},rowGap:{type:"spacing",property:"rowGap"},columnGap:{type:"spacing",property:"columnGap"},align:{type:"identity",property:"alignItems"},justify:{type:"identity",property:"justifyContent"},wrap:{type:"identity",property:"flexWrap"},direction:{type:"identity",property:"flexDirection"}};var Qx=Object.defineProperty,Xx=Object.defineProperties,Kx=Object.getOwnPropertyDescriptors,Zx=Object.getOwnPropertySymbols,Jx=Object.prototype.hasOwnProperty,eE=Object.prototype.propertyIsEnumerable,tE=(e,t,n)=>t in e?Qx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const nE={},rE=(0,r.forwardRef)(((e,t)=>{const n=bn("Flex",nE,e),{gap:o,rowGap:a,columnGap:i,align:l,justify:s,wrap:u,direction:c,sx:f}=n,d=((e,t)=>{var n={};for(var r in e)Jx.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Zx)for(var r of Zx(e))t.indexOf(r)<0&&eE.call(e,r)&&(n[r]=e[r]);return n})(n,["gap","rowGap","columnGap","align","justify","wrap","direction","sx"]);return r.createElement(_r,((e,t)=>Xx(e,Kx(t)))(((e,t)=>{for(var n in t||(t={}))Jx.call(t,n)&&tE(e,n,t[n]);if(Zx)for(var n of Zx(t))eE.call(t,n)&&tE(e,n,t[n]);return e})({},d),{sx:[{display:"flex"},e=>Ar({gap:o,rowGap:a,columnGap:i,align:l,justify:s,wrap:u,direction:c},e,Yx),...uh(f)],ref:t}))}));rE.displayName="@mantine/core/Flex";const oE=["mousedown","touchstart"];function aE(e,t){const n=[Nm(e.offset)];return e.middlewares.shift&&n.push(Lm({limiter:zm()})),e.middlewares.flip&&n.push(_m()),e.middlewares.inline&&n.push(Im()),n.push(Mm({element:e.arrowRef,padding:e.arrowOffset})),(e.middlewares.size||"target"===e.width)&&n.push(function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:l}=t,{apply:s=()=>{},...u}=rm(e,t),c=await hm(t,u),f=om(o),d=am(o),p="y"===sm(o),{width:g,height:h}=a.floating;let m,y;"top"===f||"bottom"===f?(m=f,y=d===(await(null==i.isRTL?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(y=f,m="end"===d?"top":"bottom");const b=h-c.top-c.bottom,v=g-c.left-c.right,w=Qh(h-c[m],b),k=Qh(g-c[y],v),x=!t.middlewareData.shift;let E=w,S=k;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(S=v),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(E=b),x&&!d){const e=Xh(c.left,0),t=Xh(c.right,0),n=Xh(c.top,0),r=Xh(c.bottom,0);p?S=g-2*(0!==e||0!==t?e+t:Xh(c.left,c.right)):E=h-2*(0!==n||0!==r?n+r:Xh(c.top,c.bottom))}await s({...t,availableWidth:S,availableHeight:E});const F=await i.getDimensions(l.floating);return g!==F.width||h!==F.height?{reset:{rects:!0}}:{}}}}({apply({rects:n,availableWidth:r,availableHeight:o}){var a,i;const l=null!=(i=null==(a=t().refs.floating.current)?void 0:a.style)?i:{};e.middlewares.size&&Object.assign(l,{maxWidth:`${r}px`,maxHeight:`${o}px`}),"target"===e.width&&Object.assign(l,{width:`${n.reference.width}px`})}})),n}const[iE,lE]=mo("Popover component was not found in the tree");var sE=Object.defineProperty,uE=Object.defineProperties,cE=Object.getOwnPropertyDescriptors,fE=Object.getOwnPropertySymbols,dE=Object.prototype.hasOwnProperty,pE=Object.prototype.propertyIsEnumerable,gE=(e,t,n)=>t in e?sE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hE=(e,t)=>{for(var n in t||(t={}))dE.call(t,n)&&gE(e,n,t[n]);if(fE)for(var n of fE(t))pE.call(t,n)&&gE(e,n,t[n]);return e};const mE={refProp:"ref",popupType:"dialog",shouldOverrideDefaultTargetId:!0},yE=(0,r.forwardRef)(((e,t)=>{const n=bn("PopoverTarget",mE,e),{children:o,refProp:a,popupType:i,shouldOverrideDefaultTargetId:l}=n,s=((e,t)=>{var n={};for(var r in e)dE.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&fE)for(var r of fE(e))t.indexOf(r)<0&&pE.call(e,r)&&(n[r]=e[r]);return n})(n,["children","refProp","popupType","shouldOverrideDefaultTargetId"]);if(!Fh(o))throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const u=s,c=lE(),f=Ah(c.reference,o.ref,t),d=c.withRoles?{"aria-haspopup":i,"aria-expanded":c.opened,"aria-controls":c.getDropdownId(),id:l?c.getTargetId():o.props.id}:{};return(0,r.cloneElement)(o,hE(((e,t)=>uE(e,cE(t)))(hE(hE(hE({},u),d),c.targetProps),{className:kn(c.targetProps.className,u.className,o.props.className),[a]:f}),c.controlled?null:{onClick:c.onToggle}))}));yE.displayName="@mantine/core/PopoverTarget";const bE=()=>{};function vE(e,t={active:!0}){return"function"==typeof e&&t.active?n=>{var r;"Escape"===n.key&&(e(n),null==(r=t.onTrigger)||r.call(t))}:t.onKeyDown||bE}const wE=Mn(((e,{radius:t,shadow:n})=>({dropdown:{position:"absolute",backgroundColor:e.white,background:"dark"===e.colorScheme?e.colors.dark[6]:e.white,border:`${xt(1)} solid ${"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[2]}`,padding:`${e.spacing.sm} ${e.spacing.md}`,boxShadow:e.shadows[n]||n||"none",borderRadius:e.fn.radius(t),"&:focus":{outline:0}},arrow:{backgroundColor:"inherit",border:`${xt(1)} solid ${"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[2]}`,zIndex:1}}))),kE=/input|select|textarea|button|object/,xE="a, input, select, textarea, button, object, [tabindex]";function EE(e){return"none"===e.style.display}function SE(e){let t=e.getAttribute("tabindex");return null===t&&(t=void 0),parseInt(t,10)}function FE(e){const t=e.nodeName.toLowerCase(),n=!Number.isNaN(SE(e));return(kE.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&function(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||"hidden"===e.getAttribute("type"))return!1;let t=e;for(;t&&t!==document.body&&11!==t.nodeType;){if(EE(t))return!1;t=t.parentNode}return!0}(e)}function AE(e){const t=SE(e);return(Number.isNaN(t)||t>=0)&&FE(e)}function CE(e=!0){const t=(0,r.useRef)(),n=(0,r.useRef)(null),o=e=>{let t=e.querySelector("[data-autofocus]");if(!t){const n=Array.from(e.querySelectorAll(xE));t=n.find(AE)||n.find(FE)||null,!t&&FE(e)&&(t=e)}t&&t.focus({preventScroll:!0})},a=(0,r.useCallback)((r=>{e&&(null!==r?(n.current=function(e,t="body > :not(script)"){const n=Go(),r=Array.from(document.querySelectorAll(t)).map((t=>{var r;if((null==(r=null==t?void 0:t.shadowRoot)?void 0:r.contains(e))||t.contains(e))return;const o=t.getAttribute("aria-hidden"),a=t.getAttribute("data-hidden"),i=t.getAttribute("data-focus-id");return t.setAttribute("data-focus-id",n),null===o||"false"===o?t.setAttribute("aria-hidden","true"):a||i||t.setAttribute("data-hidden",o),{node:t,ariaHidden:a||null}}));return()=>{r.forEach((e=>{e&&n===e.node.getAttribute("data-focus-id")&&(null===e.ariaHidden?e.node.removeAttribute("aria-hidden"):e.node.setAttribute("aria-hidden",e.ariaHidden),e.node.removeAttribute("data-focus-id"),e.node.removeAttribute("data-hidden"))}))}}(r),t.current!==r&&(r?(setTimeout((()=>{r.getRootNode()&&o(r)})),t.current=r):t.current=null)):n.current&&(n.current(),n.current=null))}),[e]);return(0,r.useEffect)((()=>{if(!e)return;t.current&&setTimeout((()=>o(t.current)));const r=e=>{"Tab"===e.key&&t.current&&function(e,t){const n=(r=e,Array.from(r.querySelectorAll(xE)).filter(AE));var r;if(!n.length)return void t.preventDefault();const o=n[t.shiftKey?0:n.length-1],a=e.getRootNode();if(o!==a.activeElement&&e!==a.activeElement)return;t.preventDefault();const i=n[t.shiftKey?n.length-1:0];i&&i.focus()}(t.current,e)};return document.addEventListener("keydown",r),()=>{document.removeEventListener("keydown",r),n.current&&n.current()}}),[e]),a}function OE({children:e,active:t=!0,refProp:n="ref"}){const o=Ah(CE(t),null==e?void 0:e.ref);return Fh(e)?(0,r.cloneElement)(e,{[n]:o}):e}OE.displayName="@mantine/core/FocusTrap";var PE=Object.defineProperty,TE=Object.defineProperties,DE=Object.getOwnPropertyDescriptors,RE=Object.getOwnPropertySymbols,NE=Object.prototype.hasOwnProperty,LE=Object.prototype.propertyIsEnumerable,_E=(e,t,n)=>t in e?PE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jE=(e,t)=>{for(var n in t||(t={}))NE.call(t,n)&&_E(e,n,t[n]);if(RE)for(var n of RE(t))LE.call(t,n)&&_E(e,n,t[n]);return e},IE=(e,t)=>TE(e,DE(t));const zE={};function BE(e){var t;const n=bn("PopoverDropdown",zE,e),{style:o,className:a,children:i,onKeyDownCapture:l}=n,s=((e,t)=>{var n={};for(var r in e)NE.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&RE)for(var r of RE(e))t.indexOf(r)<0&&LE.call(e,r)&&(n[r]=e[r]);return n})(n,["style","className","children","onKeyDownCapture"]),u=lE(),{classes:c,cx:f}=wE({radius:u.radius,shadow:u.shadow},{name:u.__staticSelector,classNames:u.classNames,styles:u.styles,unstyled:u.unstyled,variant:u.variant}),d=function({opened:e,shouldReturnFocus:t=!0}){const n=(0,r.useRef)(),o=()=>{var e;n.current&&"focus"in n.current&&"function"==typeof n.current.focus&&(null==(e=n.current)||e.focus({preventScroll:!0}))};return db((()=>{let r=-1;const a=e=>{"Tab"===e.key&&window.clearTimeout(r)};return document.addEventListener("keydown",a),e?n.current=document.activeElement:t&&(r=window.setTimeout(o,10)),()=>{window.clearTimeout(r),document.removeEventListener("keydown",a)}}),[e,t]),o}({opened:u.opened,shouldReturnFocus:u.returnFocus}),p=u.withRoles?{"aria-labelledby":u.getTargetId(),id:u.getDropdownId(),role:"dialog"}:{};return u.disabled?null:r.createElement(eb,IE(jE({},u.portalProps),{withinPortal:u.withinPortal}),r.createElement(Lb,IE(jE({mounted:u.opened},u.transitionProps),{transition:u.transitionProps.transition||"fade",duration:null!=(t=u.transitionProps.duration)?t:150,keepMounted:u.keepMounted,exitDuration:"number"==typeof u.transitionProps.exitDuration?u.transitionProps.exitDuration:u.transitionProps.duration}),(e=>{var t,n;return r.createElement(OE,{active:u.trapFocus},r.createElement(_r,jE(IE(jE({},p),{tabIndex:-1,ref:u.floating,style:IE(jE(jE({},o),e),{zIndex:u.zIndex,top:null!=(t=u.y)?t:0,left:null!=(n=u.x)?n:0,width:"target"===u.width?void 0:xt(u.width)}),className:f(c.dropdown,a),onKeyDownCapture:vE(u.onClose,{active:u.closeOnEscape,onTrigger:d,onKeyDown:l}),"data-position":u.placement}),s),i,r.createElement(tv,{ref:u.arrowRef,arrowX:u.arrowX,arrowY:u.arrowY,visible:u.withArrow,position:u.placement,arrowSize:u.arrowSize,arrowRadius:u.arrowRadius,arrowOffset:u.arrowOffset,arrowPosition:u.arrowPosition,className:c.arrow})))})))}BE.displayName="@mantine/core/PopoverDropdown";var ME=Object.getOwnPropertySymbols,$E=Object.prototype.hasOwnProperty,HE=Object.prototype.propertyIsEnumerable;const UE={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!1,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,clickOutsideEvents:["mousedown","touchstart"],zIndex:Oh("popover"),__staticSelector:"Popover",width:"max-content"};function WE(e){var t,n,o,a,i,l;const s=(0,r.useRef)(null),u=bn("Popover",UE,e),{children:c,position:f,offset:d,onPositionChange:p,positionDependencies:g,opened:h,transitionProps:m,width:y,middlewares:b,withArrow:v,arrowSize:w,arrowOffset:k,arrowRadius:x,arrowPosition:E,unstyled:S,classNames:F,styles:A,closeOnClickOutside:C,withinPortal:O,portalProps:P,closeOnEscape:T,clickOutsideEvents:D,trapFocus:R,onClose:N,onOpen:L,onChange:_,zIndex:j,radius:I,shadow:z,id:B,defaultOpened:M,__staticSelector:$,withRoles:H,disabled:U,returnFocus:W,variant:V,keepMounted:q}=u,G=((e,t)=>{var n={};for(var r in e)$E.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ME)for(var r of ME(e))t.indexOf(r)<0&&HE.call(e,r)&&(n[r]=e[r]);return n})(u,["children","position","offset","onPositionChange","positionDependencies","opened","transitionProps","width","middlewares","withArrow","arrowSize","arrowOffset","arrowRadius","arrowPosition","unstyled","classNames","styles","closeOnClickOutside","withinPortal","portalProps","closeOnEscape","clickOutsideEvents","trapFocus","onClose","onOpen","onChange","zIndex","radius","shadow","id","defaultOpened","__staticSelector","withRoles","disabled","returnFocus","variant","keepMounted"]),[Y,Q]=(0,r.useState)(null),[X,K]=(0,r.useState)(null),Z=Yo(B),J=function(e){const[t,n]=function({value:e,defaultValue:t,finalValue:n,onChange:o=()=>{}}){const[a,i]=(0,r.useState)(void 0!==t?t:n);return void 0!==e?[e,o,!0]:[a,e=>{i(e),null==o||o(e)},!1]}({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),o=Sy({placement:e.position,middleware:aE(e,(()=>o))});return pb({opened:e.opened,position:e.position,positionDependencies:e.positionDependencies,floating:o}),db((()=>{var t;null==(t=e.onPositionChange)||t.call(e,o.placement)}),[o.placement]),db((()=>{var t,n;e.opened?null==(n=e.onOpen)||n.call(e):null==(t=e.onClose)||t.call(e)}),[e.opened]),{floating:o,controlled:"boolean"==typeof e.opened,opened:t,onClose:()=>{var t;null==(t=e.onClose)||t.call(e),n(!1)},onToggle:()=>{var r,o;t?(null==(r=e.onClose)||r.call(e),n(!1)):(null==(o=e.onOpen)||o.call(e),n(!0))}}}({middlewares:b,width:y,position:gb(mn().dir,f),offset:"number"==typeof d?d+(v?w/2:0):d,arrowRef:s,arrowOffset:k,onPositionChange:p,positionDependencies:g,opened:h,defaultOpened:M,onChange:_,onOpen:L,onClose:N});!function(e,t,n){const o=(0,r.useRef)();(0,r.useEffect)((()=>{const r=t=>{const{target:r}=null!=t?t:{};if(Array.isArray(n)){const o=(null==r?void 0:r.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(r)&&"HTML"!==r.tagName,a=n.every((e=>!!e&&!t.composedPath().includes(e)));a&&!o&&e()}else o.current&&!o.current.contains(r)&&e()};return(t||oE).forEach((e=>document.addEventListener(e,r))),()=>{(t||oE).forEach((e=>document.removeEventListener(e,r)))}}),[o,e,n])}((()=>J.opened&&C&&J.onClose()),D,[Y,X]);const ee=(0,r.useCallback)((e=>{Q(e),J.floating.reference(e)}),[J.floating.reference]),te=(0,r.useCallback)((e=>{K(e),J.floating.floating(e)}),[J.floating.floating]);return r.createElement(iE,{value:{returnFocus:W,disabled:U,controlled:J.controlled,reference:ee,floating:te,x:J.floating.x,y:J.floating.y,arrowX:null==(o=null==(n=null==(t=J.floating)?void 0:t.middlewareData)?void 0:n.arrow)?void 0:o.x,arrowY:null==(l=null==(i=null==(a=J.floating)?void 0:a.middlewareData)?void 0:i.arrow)?void 0:l.y,opened:J.opened,arrowRef:s,transitionProps:m,width:y,withArrow:v,arrowSize:w,arrowOffset:k,arrowRadius:x,arrowPosition:E,placement:J.floating.placement,trapFocus:R,withinPortal:O,portalProps:P,zIndex:j,radius:I,shadow:z,closeOnEscape:T,onClose:J.onClose,onToggle:J.onToggle,getTargetId:()=>`${Z}-target`,getDropdownId:()=>`${Z}-dropdown`,withRoles:H,targetProps:G,__staticSelector:$,classNames:F,styles:A,unstyled:S,variant:V,keepMounted:q}},c)}WE.Target=yE,WE.Dropdown=BE,WE.displayName="@mantine/core/Popover";var VE={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},qE=Object.defineProperty,GE=Object.defineProperties,YE=Object.getOwnPropertyDescriptors,QE=Object.getOwnPropertySymbols,XE=Object.prototype.hasOwnProperty,KE=Object.prototype.propertyIsEnumerable,ZE=(e,t,n)=>t in e?qE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,JE=(e,t)=>{for(var n in t||(t={}))XE.call(t,n)&&ZE(e,n,t[n]);if(QE)for(var n of QE(t))KE.call(t,n)&&ZE(e,n,t[n]);return e},eS=((e,t,n)=>{const o=(0,r.forwardRef)(((e,t)=>{var o=e,{color:a="currentColor",size:i=24,stroke:l=2,children:s}=o,u=((e,t)=>{var n={};for(var r in e)XE.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&QE)for(var r of QE(e))t.indexOf(r)<0&&KE.call(e,r)&&(n[r]=e[r]);return n})(o,["color","size","stroke","children"]);return(0,r.createElement)("svg",JE(((e,t)=>GE(e,YE(t)))(JE({ref:t},VE),{width:i,height:i,stroke:a,strokeWidth:l,className:"tabler-icon tabler-icon-sparkles"}),u),[...n.map((([e,t])=>(0,r.createElement)(e,t))),...s||[]])}));return o.propTypes={color:lf().string,size:lf().oneOfType([lf().string,lf().number]),stroke:lf().oneOfType([lf().string,lf().number])},o.displayName="IconSparkles",o})(0,0,[["path",{d:"M16 18a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2zm0 -12a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2zm-7 12a6 6 0 0 1 6 -6a6 6 0 0 1 -6 -6a6 6 0 0 1 -6 6a6 6 0 0 1 6 6z",key:"svg-0"}]]);const tS=({hidden:e,style:t})=>e?null:(0,n.jsx)(eS,{size:"1.2rem",style:t}),nS=({text:e,style:t})=>e?(0,n.jsx)(Xr,{order:5,sx:t,children:e}):null,rS=({style:e})=>{const{props:t}=ox();return(0,n.jsxs)(rE,{gap:"xs",align:"center",sx:e,children:[(0,n.jsx)(tS,Object.assign({},t.AnswerBoxHeaderIcon)),(0,n.jsx)(nS,Object.assign({},t.AnswerBoxHeaderTitle))]})},oS=(0,r.forwardRef)(((e,t)=>{var{style:r,children:o}=e,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["style","children"]);return(0,n.jsx)(Ur,Object.assign({ref:t,fz:"xs",sx:r},a,{children:o}))}));oS.displayName="AnswerBoxFooterText";const aS=()=>{const{props:e}=ox();return(0,n.jsxs)(WE,{width:300,position:"top",withArrow:!0,shadow:"md",children:[(0,n.jsx)(WE.Target,{children:(0,n.jsxs)(oS,Object.assign({},e.AnswerBoxFooterText,{children:["protected by"," ",(0,n.jsx)(ll,{sx:{fontSize:"inherit",color:"inherit"},children:"reCAPTCHA"})]}))}),(0,n.jsx)(WE.Dropdown,{children:(0,n.jsxs)(Ur,{size:"xs",children:["This site is protected by reCAPTCHA and the Google"," ",(0,n.jsx)(ll,{href:"https://policies.google.com/privacy",target:"_blank",color:"gray.6",children:"Privacy Policy"})," ","and"," ",(0,n.jsx)(ll,{href:"https://policies.google.com/terms",target:"_blank",color:"gray.6",children:"ToS"})," ","apply"]})})]})},iS=({style:e})=>{const{props:t}=ox();return(0,n.jsxs)(rE,{w:"100%",mt:"sm",justify:"space-between",align:"center",sx:e,children:[(0,n.jsxs)(oS,Object.assign({},t.AnswerBoxFooterText,{children:["powered by"," ",(0,n.jsx)(ll,{href:"https://www.kapa.ai/",target:"_blank",sx:{fontSize:"inherit",color:"inherit"},children:"kapa.ai"})]})),(0,n.jsx)(aS,{})]})},lS=({style:e})=>{var t,o;const{state:a}=Gx(),{props:i}=ox(),[l,s]=(0,r.useState)(0),u=(0,r.useRef)(null);return(0,r.useEffect)((()=>{const e=()=>{if(u.current){const e=u.current.scrollHeight;s(e)}};e();const t=new ResizeObserver((()=>{e()}));return u.current&&t.observe(u.current),()=>{t.disconnect()}}),[]),(0,n.jsxs)(_r,{sx:e,children:[(0,n.jsx)(rS,Object.assign({},i.AnswerBoxHeader)),(0,n.jsx)(_r,{id:"kapa-support-form-deflector-answer","data-testid":"kapa-support-form-deflector-answer",ref:u,sx:{minHeight:0,transition:"height 0.3s ease",height:"number"==typeof l?`${l}px`:l,overflow:"hidden"},children:(0,n.jsx)(ex,{onLinkClick:()=>{},children:null!==(o=null===(t=a.answer)||void 0===t?void 0:t.answer)&&void 0!==o?o:""})}),(0,n.jsx)(iS,Object.assign({},i.AnswerBoxFooter))]})},sS=e=>(0,n.jsx)(Wi,{variant:"light",title:"AI answer cancelled",w:"100%",mt:"md",color:"orange",sx:e.style,children:e.text}),uS=()=>(0,n.jsx)(Wi,{variant:"light",title:"Oops!",w:"100%",mt:"md",color:"pink",children:"We tried to generate an AI answer for you, but something went wrong. Please click the submit button again to submit your ticket."}),cS=({text:e,style:t})=>{const{props:r}=ox();return e?(0,n.jsx)(Ur,{sx:Object.assign(Object.assign({},r.Info.style),t),children:e}):null},fS=Mn(((e,{orientation:t,buttonBorderWidth:n})=>({root:{display:"flex",flexDirection:"vertical"===t?"column":"row","& [data-button]":{"&:first-of-type:not(:last-of-type)":{borderBottomRightRadius:0,["vertical"===t?"borderBottomLeftRadius":"borderTopRightRadius"]:0,["vertical"===t?"borderBottomWidth":"borderRightWidth"]:`calc(${xt(n)} / 2)`},"&:last-of-type:not(:first-of-type)":{borderTopLeftRadius:0,["vertical"===t?"borderTopRightRadius":"borderBottomLeftRadius"]:0,["vertical"===t?"borderTopWidth":"borderLeftWidth"]:`calc(${xt(n)} / 2)`},"&:not(:first-of-type):not(:last-of-type)":{borderRadius:0,["vertical"===t?"borderTopWidth":"borderLeftWidth"]:`calc(${xt(n)} / 2)`,["vertical"===t?"borderBottomWidth":"borderRightWidth"]:`calc(${xt(n)} / 2)`},"& + [data-button]":{["vertical"===t?"marginTop":"marginLeft"]:`calc(${n} * -1)`,"@media (min-resolution: 192dpi)":{["vertical"===t?"marginTop":"marginLeft"]:0}}}}})));var dS=Object.defineProperty,pS=Object.getOwnPropertySymbols,gS=Object.prototype.hasOwnProperty,hS=Object.prototype.propertyIsEnumerable,mS=(e,t,n)=>t in e?dS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const yS={orientation:"horizontal",buttonBorderWidth:1},bS=(0,r.forwardRef)(((e,t)=>{const n=bn("ButtonGroup",yS,e),{className:o,orientation:a,buttonBorderWidth:i,unstyled:l}=n,s=((e,t)=>{var n={};for(var r in e)gS.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&pS)for(var r of pS(e))t.indexOf(r)<0&&hS.call(e,r)&&(n[r]=e[r]);return n})(n,["className","orientation","buttonBorderWidth","unstyled"]),{classes:u,cx:c}=fS({orientation:a,buttonBorderWidth:i},{name:"ButtonGroup",unstyled:l});return r.createElement(_r,((e,t)=>{for(var n in t||(t={}))gS.call(t,n)&&mS(e,n,t[n]);if(pS)for(var n of pS(t))hS.call(t,n)&&mS(e,n,t[n]);return e})({className:c(u.root,o),ref:t},s))}));bS.displayName="@mantine/core/ButtonGroup";var vS=Object.defineProperty,wS=Object.defineProperties,kS=Object.getOwnPropertyDescriptors,xS=Object.getOwnPropertySymbols,ES=Object.prototype.hasOwnProperty,SS=Object.prototype.propertyIsEnumerable,FS=(e,t,n)=>t in e?vS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,AS=(e,t)=>{for(var n in t||(t={}))ES.call(t,n)&&FS(e,n,t[n]);if(xS)for(var n of xS(t))SS.call(t,n)&&FS(e,n,t[n]);return e},CS=(e,t)=>wS(e,kS(t));const OS={xs:xt(30),sm:xt(36),md:xt(42),lg:xt(50),xl:xt(60)},PS=["default","filled","unstyled"];function TS({theme:e,variant:t}){return PS.includes(t)?"default"===t?{border:`${xt(1)} solid ${"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[4]}`,backgroundColor:"dark"===e.colorScheme?e.colors.dark[6]:e.white,transition:"border-color 100ms ease","&:focus, &:focus-within":e.focusRingStyles.inputStyles(e)}:"filled"===t?{border:`${xt(1)} solid transparent`,backgroundColor:"dark"===e.colorScheme?e.colors.dark[5]:e.colors.gray[1],"&:focus, &:focus-within":e.focusRingStyles.inputStyles(e)}:{borderWidth:0,color:"dark"===e.colorScheme?e.colors.dark[0]:e.black,backgroundColor:"transparent",minHeight:xt(28),outline:0,"&:focus, &:focus-within":{outline:"none",borderColor:"transparent"},"&:disabled":{backgroundColor:"transparent","&:focus, &:focus-within":{outline:"none",borderColor:"transparent"}}}:null}Mn(((e,{multiline:t,radius:n,invalid:r,rightSectionWidth:o,withRightSection:a,iconWidth:i,offsetBottom:l,offsetTop:s,pointer:u},{variant:c,size:f})=>{const d=e.fn.variant({variant:"filled",color:"red"}).background,p="default"===c||"filled"===c?{minHeight:St({size:f,sizes:OS}),paddingLeft:`calc(${St({size:f,sizes:OS})} / 3)`,paddingRight:a?o||St({size:f,sizes:OS}):`calc(${St({size:f,sizes:OS})} / 3)`,borderRadius:e.fn.radius(n)}:"unstyled"===c&&a?{paddingRight:o||St({size:f,sizes:OS})}:null;return{wrapper:{position:"relative",marginTop:s?`calc(${e.spacing.xs} / 2)`:void 0,marginBottom:l?`calc(${e.spacing.xs} / 2)`:void 0,"&:has(input:disabled)":{"& .mantine-Input-rightSection":{display:"none"}}},input:CS(AS(AS(CS(AS({},e.fn.fontStyles()),{height:t?"unstyled"===c?void 0:"auto":St({size:f,sizes:OS}),WebkitTapHighlightColor:"transparent",lineHeight:t?e.lineHeight:`calc(${St({size:f,sizes:OS})} - ${xt(2)})`,appearance:"none",resize:"none",boxSizing:"border-box",fontSize:St({size:f,sizes:e.fontSizes}),width:"100%",color:"dark"===e.colorScheme?e.colors.dark[0]:e.black,display:"block",textAlign:"left",cursor:u?"pointer":void 0}),TS({theme:e,variant:c})),p),{"&:disabled, &[data-disabled]":{backgroundColor:"dark"===e.colorScheme?e.colors.dark[6]:e.colors.gray[1],color:e.colors.dark[2],opacity:.6,cursor:"not-allowed",pointerEvents:"none","&::placeholder":{color:e.colors.dark[2]}},"&[data-invalid]":{color:d,borderColor:d,"&::placeholder":{opacity:1,color:d}},"&[data-with-icon]":{paddingLeft:"number"==typeof i?xt(i):St({size:f,sizes:OS})},"&::placeholder":CS(AS({},e.fn.placeholderStyles()),{opacity:1}),"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button, &::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, &::-webkit-search-results-decoration":{appearance:"none"},"&[type=number]":{MozAppearance:"textfield"}}),icon:{pointerEvents:"none",position:"absolute",zIndex:1,left:0,top:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",width:i?xt(i):St({size:f,sizes:OS}),color:r?e.colors.red["dark"===e.colorScheme?6:7]:"dark"===e.colorScheme?e.colors.dark[2]:e.colors.gray[5]},rightSection:{position:"absolute",top:0,bottom:0,right:0,display:"flex",alignItems:"center",justifyContent:"center",width:o||St({size:f,sizes:OS})}}}));var DS=Object.defineProperty,RS=Object.defineProperties,NS=Object.getOwnPropertyDescriptors,LS=Object.getOwnPropertySymbols,_S=Object.prototype.hasOwnProperty,jS=Object.prototype.propertyIsEnumerable,IS=(e,t,n)=>t in e?DS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zS=(e,t)=>{for(var n in t||(t={}))_S.call(t,n)&&IS(e,n,t[n]);if(LS)for(var n of LS(t))jS.call(t,n)&&IS(e,n,t[n]);return e},BS=(e,t)=>RS(e,NS(t));const MS=["filled","outline","light","white","default","subtle","gradient"],$S={xs:{height:OS.xs,paddingLeft:xt(14),paddingRight:xt(14)},sm:{height:OS.sm,paddingLeft:xt(18),paddingRight:xt(18)},md:{height:OS.md,paddingLeft:xt(22),paddingRight:xt(22)},lg:{height:OS.lg,paddingLeft:xt(26),paddingRight:xt(26)},xl:{height:OS.xl,paddingLeft:xt(32),paddingRight:xt(32)},"compact-xs":{height:xt(22),paddingLeft:xt(7),paddingRight:xt(7)},"compact-sm":{height:xt(26),paddingLeft:xt(8),paddingRight:xt(8)},"compact-md":{height:xt(30),paddingLeft:xt(10),paddingRight:xt(10)},"compact-lg":{height:xt(34),paddingLeft:xt(12),paddingRight:xt(12)},"compact-xl":{height:xt(40),paddingLeft:xt(14),paddingRight:xt(14)}};function HS({compact:e,size:t,withLeftIcon:n,withRightIcon:r}){if(e)return $S[`compact-${t}`];const o=$S[t];return o?BS(zS({},o),{paddingLeft:n?`calc(${o.paddingLeft} / 1.5)`:o.paddingLeft,paddingRight:r?`calc(${o.paddingRight} / 1.5)`:o.paddingRight}):{}}const US=e=>({display:e?"block":"inline-block",width:e?"100%":"auto"});function WS({variant:e,theme:t,color:n,gradient:r}){if(!MS.includes(e))return null;const o=t.fn.variant({color:n,variant:e,gradient:r});return"gradient"===e?zS({border:0,backgroundImage:o.background,color:o.color},t.fn.hover({backgroundSize:"200%"})):zS({border:`${xt(1)} solid ${o.border}`,backgroundColor:o.background,color:o.color},t.fn.hover({backgroundColor:o.hover}))}var VS=Mn(((e,{radius:t,fullWidth:n,compact:r,withLeftIcon:o,withRightIcon:a,color:i,gradient:l},{variant:s,size:u})=>({root:BS(zS(BS(zS(zS(zS(zS({},HS({compact:r,size:u,withLeftIcon:o,withRightIcon:a})),e.fn.fontStyles()),e.fn.focusStyles()),US(n)),{borderRadius:e.fn.radius(t),fontWeight:600,position:"relative",lineHeight:1,fontSize:St({size:u,sizes:e.fontSizes}),userSelect:"none",cursor:"pointer"}),WS({variant:s,theme:e,color:i,gradient:l})),{"&:active":e.activeStyles,"&:disabled, &[data-disabled]":{borderColor:"transparent",backgroundColor:"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[2],color:"dark"===e.colorScheme?e.colors.dark[6]:e.colors.gray[5],cursor:"not-allowed",backgroundImage:"none",pointerEvents:"none","&:active":{transform:"none"}},"&[data-loading]":{pointerEvents:"none","&::before":BS(zS({content:'""'},e.fn.cover(xt(-1))),{backgroundColor:"dark"===e.colorScheme?e.fn.rgba(e.colors.dark[7],.5):"rgba(255, 255, 255, .5)",borderRadius:e.fn.radius(t),cursor:"not-allowed"})}}),icon:{display:"flex",alignItems:"center"},leftIcon:{marginRight:e.spacing.xs},rightIcon:{marginLeft:e.spacing.xs},centerLoader:{position:"absolute",left:"50%",transform:"translateX(-50%)",opacity:.5},inner:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",overflow:"visible"},label:{whiteSpace:"nowrap",height:"100%",overflow:"hidden",display:"flex",alignItems:"center"}})));const qS=VS;var GS=Object.defineProperty,YS=Object.getOwnPropertySymbols,QS=Object.prototype.hasOwnProperty,XS=Object.prototype.propertyIsEnumerable,KS=(e,t,n)=>t in e?GS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ZS=(e,t)=>{for(var n in t||(t={}))QS.call(t,n)&&KS(e,n,t[n]);if(YS)for(var n of YS(t))XS.call(t,n)&&KS(e,n,t[n]);return e};const JS={size:"sm",type:"button",variant:"filled",loaderPosition:"left"},eF=(0,r.forwardRef)(((e,t)=>{const n=bn("Button",JS,e),{className:o,size:a,color:i,type:l,disabled:s,children:u,leftIcon:c,rightIcon:f,fullWidth:d,variant:p,radius:g,uppercase:h,compact:m,loading:y,loaderPosition:b,loaderProps:v,gradient:w,classNames:k,styles:x,unstyled:E}=n,S=((e,t)=>{var n={};for(var r in e)QS.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&YS)for(var r of YS(e))t.indexOf(r)<0&&XS.call(e,r)&&(n[r]=e[r]);return n})(n,["className","size","color","type","disabled","children","leftIcon","rightIcon","fullWidth","variant","radius","uppercase","compact","loading","loaderPosition","loaderProps","gradient","classNames","styles","unstyled"]),{classes:F,cx:A,theme:C}=qS({radius:g,color:i,fullWidth:d,compact:m,gradient:w,withLeftIcon:!!c,withRightIcon:!!f},{name:"Button",unstyled:E,classNames:k,styles:x,variant:p,size:a}),O=C.fn.variant({color:i,variant:p}),P=r.createElement(Qa,ZS({color:O.color,size:`calc(${St({size:a,sizes:$S}).height} / 2)`},v));return r.createElement(di,ZS({className:A(F.root,o),type:l,disabled:s,"data-button":!0,"data-disabled":s||void 0,"data-loading":y||void 0,ref:t,unstyled:E},S),r.createElement("div",{className:F.inner},(c||y&&"left"===b)&&r.createElement("span",{className:A(F.icon,F.leftIcon)},y&&"left"===b?P:c),y&&"center"===b&&r.createElement("span",{className:F.centerLoader},P),r.createElement("span",{className:F.label,style:{textTransform:h?"uppercase":void 0}},u),(f||y&&"right"===b)&&r.createElement("span",{className:A(F.icon,F.rightIcon)},y&&"right"===b?P:f)))}));eF.displayName="@mantine/core/Button",eF.Group=bS;const tF=eF,nF=ut({from:{transform:"translateY(0)",opacity:1},to:{transform:"translateY(-20px)",opacity:0}}),rF=ut({from:{transform:"translateY(20px)",opacity:0},to:{transform:"translateY(0)",opacity:1}}),oF=({text:e})=>{const[t,o]=r.useState("");return r.useEffect((()=>{o("");const e=setInterval((()=>{o((e=>{switch(e){case"":return".";case".":return"..";case"..":return"...";default:return""}}))}),500);return()=>clearInterval(e)}),[e]),(0,n.jsxs)(Ur,{span:!0,children:[(0,n.jsx)("span",{children:e}),(0,n.jsx)("span",{style:{display:"inline-block",width:"24px",textAlign:"left"},children:t})]})},aF=({loadingTexts:e,style:t,cancelAnswerTimeoutHintText:o})=>{const[a,i]=r.useState(0),[l,s]=r.useState(!1),[u,c]=r.useState(!1),{dispatch:f,state:d}=Gx(),{props:p}=ox(),g="loading_longer"===d.state;return r.useEffect((()=>{if(e.length<=1)return;const t=setInterval((()=>{a!==e.length-1?(s(!0),setTimeout((()=>{i((e=>e+1)),s(!1)}),300)):clearInterval(t)}),5e3);return g&&(clearInterval(t),s(!0),setTimeout((()=>{c(!0),s(!1)}),500)),()=>clearInterval(t)}),[a,e,g]),(0,n.jsxs)(rE,{p:"lg",align:"center",gap:"md",sx:t,children:[(0,n.jsx)(Qa,{size:"md"}),(0,n.jsx)(_r,{sx:{width:"100%",textAlign:"left",animation:l?`${nF} 600ms ease-in-out`:`${rF} 600ms ease-in-out`},fw:500,children:(0,n.jsx)(oF,{text:u?o:e[a]})}),u?(0,n.jsx)(tF,{variant:"subtle",onClick:()=>f({type:"CANCELLED",data:null}),sx:Object.assign({animation:l?`${nF} 600ms ease-in-out`:`${rF} 600ms ease-in-out`},p.CancelAnswerButton.style),children:"Cancel"}):null]})},iF=e=>e.text?(0,n.jsx)(Wi,{variant:"light",title:"AI answer skipped",w:"100%",mt:"md",color:"orange",sx:e.style,children:e.text}):null,lF=(e,t)=>new Promise(((n,r)=>{let o,a,i=[];const l=()=>{i=e.map((e=>Bx(e))).filter(Boolean),i.length===e.length&&(s(),n(i))},s=()=>{a&&a.disconnect(),o&&clearTimeout(o)};t&&(o=setTimeout((()=>{s(),r(new Error(`Timeout waiting for elements: ${e.join(", ")}`))}),t)),a=new MutationObserver(((e,t)=>{l()})),a.observe(document.body,{childList:!0,subtree:!0,attributes:!0}),l()}));const sF=()=>{const{config:e}=ox(),{state:t}=Gx(),{submitButtonTextQuerySelector:n,submitButtonTextOverride:o}=e,a=(0,r.useRef)(null),i=(0,r.useRef)(null),l=(0,r.useCallback)((()=>{i.current&&null!==a.current&&("INPUT"===i.current.tagName&&["submit","button"].includes(i.current.type)?i.current.value=a.current:i.current.textContent=a.current,a.current=null)}),[]),s=(0,r.useCallback)((()=>function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{s(r.next(e))}catch(e){a(e)}}function l(e){try{s(r.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,(function*(){if(!n||!o)return;yield lF([n]);const e=Bx(n);if(!e)return void console.error(`Submit button not found with query selector ${n} to override label.`);i.current=e;const r="INPUT"===e.tagName&&["submit","button"].includes(e.type);var s;"not_triggered"===t.state&&null===a.current?(a.current=r?e.value:e.textContent,s=o,r?e.value=s:e.textContent=s):l()}))),[n,o,t.state,l]);return(0,r.useEffect)((()=>(s(),()=>{l()})),[s,l]),null},uF=()=>{const{props:e}=ox(),{state:t}=Gx(),[o,a]=(0,r.useState)(!1),[i,l]=(0,r.useState)(t.state);(0,r.useEffect)((()=>{if(["loading","loading_longer"].includes(t.state))return void l(t.state);a(!1);const e=setTimeout((()=>{l(t.state),a(!0)}),350);return()=>clearTimeout(e)}),[t.state]);const s=()=>{switch(i){case"loading":case"loading_longer":return(0,n.jsx)(aF,Object.assign({},e.LoadingIndicator));case"cancelled":return(0,n.jsx)(sS,Object.assign({},e.CancelAnswerIndicator));case"error":return(0,n.jsx)(uS,{});case"not_triggered":return null;case"skipped":return(0,n.jsx)(iF,Object.assign({},e.SkipAnswerIndicator));default:return(0,n.jsx)(lS,Object.assign({},e.AnswerBox))}};return(0,n.jsx)(Lb,{mounted:o,transition:"fade",duration:350,timingFunction:"ease-in-out",children:e=>(0,n.jsx)("div",{style:e,children:s()})})},cF=()=>{const{state:e}=Gx(),{props:t}=ox();return sF(),(0,n.jsxs)(n.Fragment,{children:["not_triggered"===e.state?(0,n.jsx)(cS,Object.assign({},t.PreSubmitInfo)):null,(0,n.jsx)(uF,{}),["loading","loading_longer"].includes(e.state)?(0,n.jsx)(cS,Object.assign({},t.LoadingInfo)):null,"success"===e.state?(0,n.jsx)(cS,Object.assign({},t.PostSubmitInfo)):null]})};class fF{constructor(e=!0){this.enabled=e}debug(e,...t){this.enabled&&console.log("[DEBUG]",e,...t)}}class dF{constructor(e,t){this.scriptTag=e,this.theme=t}getDefault(e,t){return null===t?null:e[t]?e[t]:t}getAttribute(e,t){const n=`data-${e}`;return this.scriptTag.getAttribute(`${n}-${t}`)}getPaddingX(e){const t=this.getDefault(this.theme.spacing,this.getAttribute(e,"padding-x"));if(t)return{paddingLeft:t,paddingRight:t}}getPaddingY(e){const t=this.getDefault(this.theme.spacing,this.getAttribute(e,"padding-y"));if(t)return{paddingTop:t,paddingBottom:t}}getComponentStyles(e,t={}){const n=this.getAttribute(e,"background-color"),r=this.getAttribute(e,"color"),o=this.getDefault(this.theme.fontSizes,this.getAttribute(e,"font-size")),a=this.getAttribute(e,"font-weight"),i=this.getAttribute(e,"border"),l=this.getDefault(this.theme.radius,this.getAttribute(e,"border-radius")),s=this.getAttribute(e,"opacity"),u=this.getAttribute(e,"margin-top"),c=this.getAttribute(e,"margin-bottom"),f=this.getAttribute(e,"margin-right"),d=this.getAttribute(e,"margin-left"),p=this.getPaddingX(e),g=this.getPaddingY(e);return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t),n&&{backgroundColor:n}),r&&{color:r}),o&&{fontSize:o}),a&&{fontSize:Number(o)}),i&&{border:i}),l&&{borderRadius:l}),s&&{opacity:s}),u&&{marginTop:u}),c&&{marginBottom:c}),f&&{marginRight:f}),d&&{marginLeft:d}),p&&Object.assign({},p)),g&&Object.assign({},g))}}const pF={radius:{xs:"0.125rem",sm:"0.25rem",md:"0.5rem",lg:"1rem",xl:"2rem"},spacing:{xs:"0.625rem",sm:"0.75rem",md:"1rem",lg:"1.25rem",xl:"2rem"},headings:{fontFamily:"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",fontWeight:"700",sizes:{h1:{fontSize:"2.125rem",lineHeight:"1.3",fontWeight:900},h2:{fontSize:"1.625rem",lineHeight:"1.35",fontWeight:600},h3:{fontSize:"1.375rem",lineHeight:"1.4",fontWeight:600},h4:{fontSize:"1.125rem",lineHeight:"1.45",fontWeight:600},h5:{fontSize:"1rem",lineHeight:"1.5",fontWeight:600},h6:{fontSize:"0.875rem",lineHeight:"1.5",fontWeight:600}}},loader:"oval",primaryColor:"project",components:{Text:{defaultProps:{size:"sm"}}}};var gF=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{s(r.next(e))}catch(e){a(e)}}function l(e){try{s(r.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((r=r.apply(e,t||[])).next())}))};const hF=e=>/support-form-deflector(\.dev-\w+)?(-v\d+\.\d+\.\d+)?\.bundle\.js/.test(e.getAttribute("src")||""),mF=Array.from(document.querySelectorAll("script")).find(hF);if(!mF)throw console.error("Script tag not found."),Error("Script tag not found.");const yF="false"!==mF.getAttribute("data-render-on-load"),bF=()=>gF(void 0,void 0,void 0,(function*(){const e=mF.getAttribute("data-render-timeout")||"0";yield new Promise((t=>setTimeout(t,parseInt(e,10))));const{config:t,props:r,theme:o,logger:a}=(e=>{var t,n,r,o,a,i,l,s,u,c;const f=e.getAttribute("data-integration-id")||e.getAttribute("data-website-id")||"",d=e.getAttribute("data-main-input-query-selector");if(!d)throw new Error("Main input query selector is required to render the widget.");const p=e.getAttribute("data-submit-element-event-type"),g=e.getAttribute("data-submit-element-query-selector");if(-1===["onClick","onSubmit"].indexOf(null!=p?p:""))throw new Error("Submit element event type must be either 'onClick' or 'onSubmit' to render the widget");if(!g)throw new Error("Submit element query selector is required to render the widget.");const h=e.getAttribute("data-deflection-failure-trigger-element-query-selector")||g,m=e.getAttribute("data-deflection-failure-trigger-element-event-type")||p;if(!h)throw new Error("Deflection failure trigger element query selector is required to render the widget.");if(-1===["onClick","onSubmit"].indexOf(null!=m?m:""))throw new Error("Untoggle element event type must be either 'onClick' or 'onSubmit' to render the widget");const y=e.getAttribute("data-extra-input-query-selectors"),b=(null==y?void 0:y.split(","))||[],v=e.getAttribute("data-extra-input-names"),w=(null==v?void 0:v.split(","))||[];if(w.length&&b.length!==w.length)throw new Error("The count of the Extra Input Query Selectors and the Extra Input Names does not match. The names must exactly map to the selectors.");const k=b.map(((e,t)=>({selector:e,name:w[t]||null}))),x=e.getAttribute("data-runs-original-event-automatically"),E=e.getAttribute("data-submit-button-text-override")||void 0,S=e.getAttribute("data-submit-button-text-query-selector")||void 0,F=e.getAttribute("data-submit-button-query-selector")||void 0,A="true"===e.getAttribute("data-debug-mode"),C="true"===e.getAttribute("data-main-input-formats-html"),O=parseInt(e.getAttribute("data-option-to-cancel-answer-delay")||"60000"),P=Object.assign(Object.assign({},pF),{fontFamily:e.getAttribute("data-font-family")||"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",fontSizes:{xs:e.getAttribute("data-font-size-xs")||"0.75rem",sm:e.getAttribute("data-font-size-sm")||"0.875rem",md:e.getAttribute("data-font-size-md")||"1rem",lg:e.getAttribute("data-font-size-lg")||"1.125rem",xl:e.getAttribute("data-font-size-xl")||"1.25rem"},colors:{project:qk(e.getAttribute("data-project-color")||"#FFFF00")},primaryColor:"project",other:{textColor:e.getAttribute("data-text-color")||"inherit"}}),T=new dF(e,P),D={style:T.getComponentStyles("answer-box",{color:null===(t=P.other)||void 0===t?void 0:t.textColor,borderRadius:null===(n=P.radius)||void 0===n?void 0:n.md,paddingTop:null===(r=P.spacing)||void 0===r?void 0:r.sm,paddingBottom:null===(o=P.spacing)||void 0===o?void 0:o.sm,marginTop:null===(a=P.spacing)||void 0===a?void 0:a.md})},R={style:T.getComponentStyles("answer-box-header")},N={text:e.getAttribute("data-answer-box-header-title-text")||"AI Generated Response",style:T.getComponentStyles("answer-box-header-title")},L={hidden:"true"===e.getAttribute("data-answer-box-header-icon-hidden"),style:T.getComponentStyles("answer-box-header-icon")},_={style:T.getComponentStyles("answer-box-footer")},j={style:T.getComponentStyles("answer-box-footer-text",{opacity:.7})},I=e.getAttribute("data-option-to-cancel-answer-hint-text")||"This is taking longer than expected. If you don't want to wait, you can cancel the AI answer generation and submit the ticket normally.",z={text:e.getAttribute("data-post-cancel-answer-text")||"You have cancelled the AI answer generation. Please click the submit button again to submit your ticket.",style:T.getComponentStyles("cancelled-answer-indicator",{marginTop:null===(i=P.spacing)||void 0===i?void 0:i.md})},B={text:e.getAttribute("data-skipped-answer-text")||void 0,style:T.getComponentStyles("skipped-answer-indicator",{marginTop:null===(l=P.spacing)||void 0===l?void 0:l.md})},M={style:T.getComponentStyles("info-text",{color:null===(s=P.other)||void 0===s?void 0:s.textColor,marginTop:null===(u=P.spacing)||void 0===u?void 0:u.md,opacity:.7})},$={style:T.getComponentStyles("cancel-answer-button")},H={text:e.getAttribute("data-pre-submit-info-text")||void 0,style:T.getComponentStyles("pre-submit-info")},U={text:e.getAttribute("data-post-submit-info-text")||"If this didn't help, please submit your ticket now to our support team.",style:T.getComponentStyles("post-submit-info")},W={text:e.getAttribute("data-loading-info-text")||"Our AI assistant might have an answer for you in just 10-15 seconds. No need to wait for a human response if this helps.",style:T.getComponentStyles("loading-info")},V=e.getAttribute("data-answer-box-loading-texts")||"Understanding your issue;Finding relevant resources;Determining best solution;Drafting detailed reply;Finalizing response",q={loadingTexts:((null==V?void 0:V.split(";"))||[]).map((e=>e.trim())),cancelAnswerTimeoutHintText:I,style:T.getComponentStyles("loading-indicator",{marginTop:null===(c=P.spacing)||void 0===c?void 0:c.md})};return{config:{integrationId:f,mainInputQuerySelector:d,extraInputs:k,submitElementEventType:p,runsOriginalEventAutomatically:"true"===x,submitElementQuerySelector:g,submitButtonQuerySelector:F,submitButtonTextQuerySelector:S,submitButtonTextOverride:E,deflectionFailureTriggerElementQuerySelector:h,deflectionFailureTriggerElementEventType:m,mainInputFormatsHTML:C,cancelAnswerTimeout:O,queryCacheTimeout:parseInt(e.getAttribute("data-query-cache-timeout")||"7200000")},props:{AnswerBox:D,AnswerBoxHeader:R,AnswerBoxHeaderTitle:N,AnswerBoxHeaderIcon:L,AnswerBoxFooter:_,AnswerBoxFooterText:j,LoadingIndicator:q,Info:M,PreSubmitInfo:H,PostSubmitInfo:U,LoadingInfo:W,CancelAnswerButton:$,CancelAnswerIndicator:z,SkipAnswerIndicator:B},theme:P,logger:new fF(A)}})(mF),i=mF.getAttribute("data-anchor-element-query-selector"),l=mF.getAttribute("data-anchor-element-position");if(!i)throw new Error("Anchor element selector is required to render the widget.");if(!["beforebegin","afterbegin","beforeend","afterend"].includes(l||""))throw new Error("Anchor element position is required to render the widget.");let s=parseInt(mF.getAttribute("data-wait-for-elements-timeout")||"10000",10);isNaN(s)&&(s=void 0);const u=[t.mainInputQuerySelector,t.submitElementQuerySelector,i].filter(Boolean);try{yield lF(u,s)}catch(e){return void console.error("Failed to find required elements:",e)}const c=Bx(i),f=document.createElement("div");null==c||c.insertAdjacentElement(l,f);const d=(0,tx.H)(f);d.render((0,n.jsx)(rx,{props:r,config:t,logger:a,children:(0,n.jsx)(vn,{theme:o,children:(0,n.jsx)(qx,{children:(0,n.jsx)(cF,{})})})})),window.KapaSFD=Object.assign(Object.assign({},window.KapaSFD),{unmount:()=>{d.unmount(),window.KapaSFD=Object.assign(Object.assign({},window.KapaSFD),{unmount:()=>{console.warn("Kapa widget is not rendered.")},render:bF})},render:()=>gF(void 0,void 0,void 0,(function*(){console.warn("Kapa widget is already rendered.")}))})}));window._KAPA_SFD_RENDERED||(yF?"loading"===document.readyState?document.addEventListener("DOMContentLoaded",bF):bF():window.KapaSFD=Object.assign(Object.assign({},window.KapaSFD),{unmount:()=>{console.warn("Kapa widget is not rendered.")},render:bF}),(()=>{const e=document.createElement("style");e.textContent="\n .grecaptcha-badge {\n visibility: hidden;\n }\n ",document.head.appendChild(e)})(),window._KAPA_SFD_RENDERED=!0)})(),a})()));
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.KapaDeflector=t():e.KapaDeflector=t()}(self,(()=>(()=>{var e,t,n={710:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},i=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!a)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,f=arguments[0],d=1,p=arguments.length,g=!1;for("boolean"==typeof f&&(g=f,f=arguments[1]||{},d=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});d<p;++d)if(null!=(t=arguments[d]))for(n in t)r=s(f,n),f!==(o=s(t,n))&&(g&&o&&(i(o)||(u=a(o)))?(u?(u=!1,c=r&&a(r)?r:[]):c=r&&i(r)?r:{},l(f,{name:n,newValue:e(g,c,o)})):void 0!==o&&l(f,{name:n,newValue:o}));return f}},985:(e,t,n)=>{"use strict";var r=n(524),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return r.isMemo(e)?i:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=i;var u=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,g=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(g){var o=p(n);o&&o!==g&&e(t,o,r)}var i=c(n);f&&(i=i.concat(f(n)));for(var l=s(t),h=s(n),m=0;m<i.length;++m){var y=i[m];if(!(a[y]||r&&r[y]||h&&h[y]||l&&l[y])){var b=d(n,y);try{u(t,y,b)}catch(e){}}}}return t}},703:e=>{e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},907:e=>{var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l,s=[],u=!1,c=-1;function f(){u&&l&&(u=!1,l.length?s=l.concat(s):c=-1,s.length&&d())}function d(){if(!u){var e=i(f);u=!0;for(var t=s.length;t;){for(l=s,s=[];++c<t;)l&&l[c].run();c=-1,t=s.length}l=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function g(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new p(e,t)),1!==s.length||u||i(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=g,r.addListener=g,r.once=g,r.off=g,r.removeListener=g,r.removeAllListeners=g,r.emit=g,r.prependListener=g,r.prependOnceListener=g,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},999:(e,t,n)=>{"use strict";var r=n(848);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},67:(e,t,n)=>{e.exports=n(999)()},848:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},400:(e,t,n)=>{"use strict";var r=n(41),o=n(967);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,l={};function s(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(l[e]=t,e=0;e<t.length;e++)i.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=Object.prototype.hasOwnProperty,d=/^[: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]*$/,p={},g={};function h(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new h(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new h(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new h(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new h(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new h(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new h(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new h(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new h(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new h(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function v(e,t,n,r){var o=m.hasOwnProperty(t)?m[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!f.call(g,e)||!f.call(p,e)&&(d.test(e)?g[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);m[t]=new h(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);m[t]=new h(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);m[t]=new h(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new h(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new h("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new h(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=Symbol.for("react.element"),x=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),C=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),R=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var N=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var L=Symbol.iterator;function _(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=L&&e[L]||e["@@iterator"])?e:null}var j,z=Object.assign;function I(e){if(void 0===j)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);j=t&&t[1]||""}return"\n"+j+e}var B=!1;function M(e,t){if(!e||B)return"";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,l=a.length-1;1<=i&&0<=l&&o[i]!==a[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==a[l]){if(1!==i||1!==l)do{if(i--,0>--l||o[i]!==a[l]){var s="\n"+o[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=i&&0<=l);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?I(e):""}function $(e){switch(e.tag){case 5:return I(e.type);case 16:return I("Lazy");case 13:return I("Suspense");case 19:return I("SuspenseList");case 0:case 2:case 15:return M(e.type,!1);case 11:return M(e.type.render,!1);case 1:return M(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case E:return"Fragment";case x:return"Portal";case F:return"Profiler";case S:return"StrictMode";case P:return"Suspense";case T:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case A:return(e._context.displayName||"Context")+".Provider";case O:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case D:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return H(e(t))}catch(e){}}return null}function U(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function V(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=V(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=V(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Y(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var n=t.checked;return z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function K(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function Z(e,t){K(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return z({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(te(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function ae(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function se(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,fe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={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},ge=["Webkit","ms","Moz","O"];function he(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=he(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){ge.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ye=z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,Ee=null,Se=null;function Fe(e){if(e=wo(e)){if("function"!=typeof xe)throw Error(a(280));var t=e.stateNode;t&&(t=xo(t),xe(e.stateNode,e.type,t))}}function Ae(e){Ee?Se?Se.push(e):Se=[e]:Ee=e}function Ce(){if(Ee){var e=Ee,t=Se;if(Se=Ee=null,Fe(e),t)for(e=0;e<t.length;e++)Fe(t[e])}}function Oe(e,t){return e(t)}function Pe(){}var Te=!1;function De(e,t,n){if(Te)return e(t,n);Te=!0;try{return Oe(e,t,n)}finally{Te=!1,(null!==Ee||null!==Se)&&(Pe(),Ce())}}function Re(e,t){var n=e.stateNode;if(null===n)return null;var r=xo(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var Ne=!1;if(c)try{var Le={};Object.defineProperty(Le,"passive",{get:function(){Ne=!0}}),window.addEventListener("test",Le,Le),window.removeEventListener("test",Le,Le)}catch(ce){Ne=!1}function _e(e,t,n,r,o,a,i,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var je=!1,ze=null,Ie=!1,Be=null,Me={onError:function(e){je=!0,ze=e}};function $e(e,t,n,r,o,a,i,l,s){je=!1,ze=null,_e.apply(Me,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ue(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function We(e){if(He(e)!==e)throw Error(a(188))}function Ve(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return We(o),e;if(i===r)return We(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e))?qe(e):null}function qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=qe(e);if(null!==t)return t;e=e.sibling}return null}var Ge=o.unstable_scheduleCallback,Ye=o.unstable_cancelCallback,Qe=o.unstable_shouldYield,Xe=o.unstable_requestPaint,Ke=o.unstable_now,Ze=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,at=null,it=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(lt(e)/st|0)|0},lt=Math.log,st=Math.LN2,ut=64,ct=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var l=i&~o;0!==l?r=ft(l):0!=(a&=i)&&(r=ft(a))}else 0!=(i=n&~o)?r=ft(i):0!==a&&(r=ft(a));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&4194240&a))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-it(t)),r|=e[n],t&=~o;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function gt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function ht(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var vt=0;function wt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var kt,xt,Et,St,Ft,At=!1,Ct=[],Ot=null,Pt=null,Tt=null,Dt=new Map,Rt=new Map,Nt=[],Lt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function _t(e,t){switch(e){case"focusin":case"focusout":Ot=null;break;case"dragenter":case"dragleave":Pt=null;break;case"mouseover":case"mouseout":Tt=null;break;case"pointerover":case"pointerout":Dt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function jt(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&null!==(t=wo(t))&&xt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function zt(e){var t=vo(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ue(n)))return e.blockedOn=t,void Ft(e.priority,(function(){Et(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function It(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&xt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Bt(e,t,n){It(e)&&n.delete(t)}function Mt(){At=!1,null!==Ot&&It(Ot)&&(Ot=null),null!==Pt&&It(Pt)&&(Pt=null),null!==Tt&&It(Tt)&&(Tt=null),Dt.forEach(Bt),Rt.forEach(Bt)}function $t(e,t){e.blockedOn===t&&(e.blockedOn=null,At||(At=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Mt)))}function Ht(e){function t(t){return $t(t,e)}if(0<Ct.length){$t(Ct[0],e);for(var n=1;n<Ct.length;n++){var r=Ct[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Ot&&$t(Ot,e),null!==Pt&&$t(Pt,e),null!==Tt&&$t(Tt,e),Dt.forEach(t),Rt.forEach(t),n=0;n<Nt.length;n++)(r=Nt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Nt.length&&null===(n=Nt[0]).blockedOn;)zt(n),null===n.blockedOn&&Nt.shift()}var Ut=w.ReactCurrentBatchConfig,Wt=!0;function Vt(e,t,n,r){var o=vt,a=Ut.transition;Ut.transition=null;try{vt=1,Gt(e,t,n,r)}finally{vt=o,Ut.transition=a}}function qt(e,t,n,r){var o=vt,a=Ut.transition;Ut.transition=null;try{vt=4,Gt(e,t,n,r)}finally{vt=o,Ut.transition=a}}function Gt(e,t,n,r){if(Wt){var o=Qt(e,t,n,r);if(null===o)Wr(e,t,r,Yt,n),_t(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Ot=jt(Ot,e,t,n,r,o),!0;case"dragenter":return Pt=jt(Pt,e,t,n,r,o),!0;case"mouseover":return Tt=jt(Tt,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Dt.set(a,jt(Dt.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,Rt.set(a,jt(Rt.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(_t(e,r),4&t&&-1<Lt.indexOf(e)){for(;null!==o;){var a=wo(o);if(null!==a&&kt(a),null===(a=Qt(e,t,n,r))&&Wr(e,t,r,Yt,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else Wr(e,t,r,null,n)}}var Yt=null;function Qt(e,t,n,r){if(Yt=null,null!==(e=vo(e=ke(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ue(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Kt=null,Zt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Zt,r=n.length,o="value"in Kt?Kt.value:Kt.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return Jt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return z(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,sn,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),fn=z({},un,{view:0,detail:0}),dn=on(fn),pn=z({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sn&&(sn&&"mousemove"===e.type?(an=e.screenX-sn.screenX,ln=e.screenY-sn.screenY):ln=an=0,sn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),gn=on(pn),hn=on(z({},pn,{dataTransfer:0})),mn=on(z({},fn,{relatedTarget:0})),yn=on(z({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=z({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vn=on(bn),wn=on(z({},un,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function Fn(){return Sn}var An=z({},fn,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Cn=on(An),On=on(z({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=on(z({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fn})),Tn=on(z({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Dn=z({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Rn=on(Dn),Nn=[9,13,27,32],Ln=c&&"CompositionEvent"in window,_n=null;c&&"documentMode"in document&&(_n=document.documentMode);var jn=c&&"TextEvent"in window&&!_n,zn=c&&(!Ln||_n&&8<_n&&11>=_n),In=String.fromCharCode(32),Bn=!1;function Mn(e,t){switch(e){case"keyup":return-1!==Nn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $n(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1,Un={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Un[e.type]:"textarea"===t}function Vn(e,t,n,r){Ae(r),0<(t=qr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,Gn=null;function Yn(e){Ir(e,0)}function Qn(e){if(G(ko(e)))return e}function Xn(e,t){if("change"===e)return t}var Kn=!1;if(c){var Zn;if(c){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Zn=Jn}else Zn=!1;Kn=Zn&&(!document.documentMode||9<document.documentMode)}function tr(){qn&&(qn.detachEvent("onpropertychange",nr),Gn=qn=null)}function nr(e){if("value"===e.propertyName&&Qn(Gn)){var t=[];Vn(t,Gn,e,ke(e)),De(Yn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Gn=n,(qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(Gn)}function ar(e,t){if("click"===e)return Qn(t)}function ir(e,t){if("input"===e||"change"===e)return Qn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function sr(e,t){if(lr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!f.call(t,o)||!lr(e[o],t[o]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function gr(e){var t=dr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=cr(n,a);var i=cr(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var hr=c&&"documentMode"in document&&11>=document.documentMode,mr=null,yr=null,br=null,vr=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vr||null==mr||mr!==Y(r)||(r="selectionStart"in(r=mr)&&pr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&sr(br,r)||(br=r,0<(r=qr(yr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function kr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:kr("Animation","AnimationEnd"),animationiteration:kr("Animation","AnimationIteration"),animationstart:kr("Animation","AnimationStart"),transitionend:kr("Transition","TransitionEnd")},Er={},Sr={};function Fr(e){if(Er[e])return Er[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return Er[e]=n[t];return e}c&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var Ar=Fr("animationend"),Cr=Fr("animationiteration"),Or=Fr("animationstart"),Pr=Fr("transitionend"),Tr=new Map,Dr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Rr(e,t){Tr.set(e,t),s(t,[e])}for(var Nr=0;Nr<Dr.length;Nr++){var Lr=Dr[Nr];Rr(Lr.toLowerCase(),"on"+(Lr[0].toUpperCase()+Lr.slice(1)))}Rr(Ar,"onAnimationEnd"),Rr(Cr,"onAnimationIteration"),Rr(Or,"onAnimationStart"),Rr("dblclick","onDoubleClick"),Rr("focusin","onFocus"),Rr("focusout","onBlur"),Rr(Pr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _r="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),jr=new Set("cancel close invalid load scroll toggle".split(" ").concat(_r));function zr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,l,s,u){if($e.apply(this,arguments),je){if(!je)throw Error(a(198));var c=ze;je=!1,ze=null,Ie||(Ie=!0,Be=c)}}(r,t,void 0,e),e.currentTarget=null}function Ir(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==a&&o.isPropagationStopped())break e;zr(o,l,u),a=s}else for(i=0;i<r.length;i++){if(s=(l=r[i]).instance,u=l.currentTarget,l=l.listener,s!==a&&o.isPropagationStopped())break e;zr(o,l,u),a=s}}}if(Ie)throw e=Be,Ie=!1,Be=null,e}function Br(e,t){var n=t[mo];void 0===n&&(n=t[mo]=new Set);var r=e+"__bubble";n.has(r)||(Ur(t,e,2,!1),n.add(r))}function Mr(e,t,n){var r=0;t&&(r|=4),Ur(n,e,r,t)}var $r="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[$r]){e[$r]=!0,i.forEach((function(t){"selectionchange"!==t&&(jr.has(t)||Mr(t,!1,e),Mr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[$r]||(t[$r]=!0,Mr("selectionchange",!1,t))}}function Ur(e,t,n,r){switch(Xt(t)){case 1:var o=Vt;break;case 4:o=qt;break;default:o=Gt}n=o.bind(null,t,n,e),o=void 0,!Ne||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Wr(e,t,n,r,o){var a=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var s=i.tag;if((3===s||4===s)&&((s=i.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;i=i.return}for(;null!==l;){if(null===(i=vo(l)))return;if(5===(s=i.tag)||6===s){r=a=i;continue e}l=l.parentNode}}r=r.return}De((function(){var r=a,o=ke(n),i=[];e:{var l=Tr.get(e);if(void 0!==l){var s=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":s=Cn;break;case"focusin":u="focus",s=mn;break;case"focusout":u="blur",s=mn;break;case"beforeblur":case"afterblur":s=mn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=gn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=hn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Pn;break;case Ar:case Cr:case Or:s=yn;break;case Pr:s=Tn;break;case"scroll":s=dn;break;case"wheel":s=Rn;break;case"copy":case"cut":case"paste":s=vn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=On}var c=!!(4&t),f=!c&&"scroll"===e,d=c?null!==l?l+"Capture":null:l;c=[];for(var p,g=r;null!==g;){var h=(p=g).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==d&&null!=(h=Re(g,d))&&c.push(Vr(g,h,p))),f)break;g=g.return}0<c.length&&(l=new s(l,u,null,n,o),i.push({event:l,listeners:c}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===we||!(u=n.relatedTarget||n.fromElement)||!vo(u)&&!u[ho])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?vo(u):null)&&(u!==(f=He(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=gn,h="onMouseLeave",d="onMouseEnter",g="mouse","pointerout"!==e&&"pointerover"!==e||(c=On,h="onPointerLeave",d="onPointerEnter",g="pointer"),f=null==s?l:ko(s),p=null==u?l:ko(u),(l=new c(h,g+"leave",s,n,o)).target=f,l.relatedTarget=p,h=null,vo(o)===r&&((c=new c(d,g+"enter",u,n,o)).target=p,c.relatedTarget=f,h=c),f=h,s&&u)e:{for(d=u,g=0,p=c=s;p;p=Gr(p))g++;for(p=0,h=d;h;h=Gr(h))p++;for(;0<g-p;)c=Gr(c),g--;for(;0<p-g;)d=Gr(d),p--;for(;g--;){if(c===d||null!==d&&c===d.alternate)break e;c=Gr(c),d=Gr(d)}c=null}else c=null;null!==s&&Yr(i,l,s,c,!1),null!==u&&null!==f&&Yr(i,f,u,c,!0)}if("select"===(s=(l=r?ko(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var m=Xn;else if(Wn(l))if(Kn)m=ir;else{m=or;var y=rr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(m=ar);switch(m&&(m=m(e,r))?Vn(i,m,n,o):(y&&y(e,l,r),"focusout"===e&&(y=l._wrapperState)&&y.controlled&&"number"===l.type&&ee(l,"number",l.value)),y=r?ko(r):window,e){case"focusin":(Wn(y)||"true"===y.contentEditable)&&(mr=y,yr=r,br=null);break;case"focusout":br=yr=mr=null;break;case"mousedown":vr=!0;break;case"contextmenu":case"mouseup":case"dragend":vr=!1,wr(i,n,o);break;case"selectionchange":if(hr)break;case"keydown":case"keyup":wr(i,n,o)}var b;if(Ln)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else Hn?Mn(e,n)&&(v="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(v="onCompositionStart");v&&(zn&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==v?"onCompositionEnd"===v&&Hn&&(b=en()):(Zt="value"in(Kt=o)?Kt.value:Kt.textContent,Hn=!0)),0<(y=qr(r,v)).length&&(v=new wn(v,e,null,n,o),i.push({event:v,listeners:y}),(b||null!==(b=$n(n)))&&(v.data=b))),(b=jn?function(e,t){switch(e){case"compositionend":return $n(t);case"keypress":return 32!==t.which?null:(Bn=!0,In);case"textInput":return(e=t.data)===In&&Bn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Ln&&Mn(e,t)?(e=en(),Jt=Zt=Kt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return zn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=qr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=b)}Ir(i,t)}))}function Vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Re(e,n))&&r.unshift(Vr(e,a,o)),null!=(a=Re(e,t))&&r.push(Vr(e,a,o))),e=e.return}return r}function Gr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yr(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,o?null!=(s=Re(n,a))&&i.unshift(Vr(n,s,l)):o||null!=(s=Re(n,a))&&i.push(Vr(n,s,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Qr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Kr(e){return("string"==typeof e?e:""+e).replace(Qr,"\n").replace(Xr,"")}function Zr(e,t,n){if(t=Kr(t),Kr(e)!==t&&n)throw Error(a(425))}function Jr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,ao="function"==typeof Promise?Promise:void 0,io="function"==typeof queueMicrotask?queueMicrotask:void 0!==ao?function(e){return ao.resolve(null).then(e).catch(lo)}:ro;function lo(e){setTimeout((function(){throw e}))}function so(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Ht(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,go="__reactProps$"+fo,ho="__reactContainer$"+fo,mo="__reactEvents$"+fo,yo="__reactListeners$"+fo,bo="__reactHandles$"+fo;function vo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ho]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[po])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[po]||e[ho])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ko(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function xo(e){return e[go]||null}var Eo=[],So=-1;function Fo(e){return{current:e}}function Ao(e){0>So||(e.current=Eo[So],Eo[So]=null,So--)}function Co(e,t){So++,Eo[So]=e.current,e.current=t}var Oo={},Po=Fo(Oo),To=Fo(!1),Do=Oo;function Ro(e,t){var n=e.type.contextTypes;if(!n)return Oo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function No(e){return null!=e.childContextTypes}function Lo(){Ao(To),Ao(Po)}function _o(e,t,n){if(Po.current!==Oo)throw Error(a(168));Co(Po,t),Co(To,n)}function jo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(a(108,U(e)||"Unknown",o));return z({},n,r)}function zo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Oo,Do=Po.current,Co(Po,e),Co(To,To.current),!0}function Io(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=jo(e,t,Do),r.__reactInternalMemoizedMergedChildContext=e,Ao(To),Ao(Po),Co(Po,e)):Ao(To),Co(To,n)}var Bo=null,Mo=!1,$o=!1;function Ho(e){null===Bo?Bo=[e]:Bo.push(e)}function Uo(){if(!$o&&null!==Bo){$o=!0;var e=0,t=vt;try{var n=Bo;for(vt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Bo=null,Mo=!1}catch(t){throw null!==Bo&&(Bo=Bo.slice(e+1)),Ge(Je,Uo),t}finally{vt=t,$o=!1}}return null}var Wo=[],Vo=0,qo=null,Go=0,Yo=[],Qo=0,Xo=null,Ko=1,Zo="";function Jo(e,t){Wo[Vo++]=Go,Wo[Vo++]=qo,qo=e,Go=t}function ea(e,t,n){Yo[Qo++]=Ko,Yo[Qo++]=Zo,Yo[Qo++]=Xo,Xo=e;var r=Ko;e=Zo;var o=32-it(r)-1;r&=~(1<<o),n+=1;var a=32-it(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Ko=1<<32-it(t)+o|n<<o|r,Zo=a+e}else Ko=1<<a|n<<o|r,Zo=e}function ta(e){null!==e.return&&(Jo(e,1),ea(e,1,0))}function na(e){for(;e===qo;)qo=Wo[--Vo],Wo[Vo]=null,Go=Wo[--Vo],Wo[Vo]=null;for(;e===Xo;)Xo=Yo[--Qo],Yo[Qo]=null,Zo=Yo[--Qo],Yo[Qo]=null,Ko=Yo[--Qo],Yo[Qo]=null}var ra=null,oa=null,aa=!1,ia=null;function la(e,t){var n=Du(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function sa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ra=e,oa=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ra=e,oa=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Xo?{id:Ko,overflow:Zo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Du(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ra=e,oa=null,!0);default:return!1}}function ua(e){return!(!(1&e.mode)||128&e.flags)}function ca(e){if(aa){var t=oa;if(t){var n=t;if(!sa(e,t)){if(ua(e))throw Error(a(418));t=uo(n.nextSibling);var r=ra;t&&sa(e,t)?la(r,n):(e.flags=-4097&e.flags|2,aa=!1,ra=e)}}else{if(ua(e))throw Error(a(418));e.flags=-4097&e.flags|2,aa=!1,ra=e}}}function fa(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ra=e}function da(e){if(e!==ra)return!1;if(!aa)return fa(e),aa=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oa)){if(ua(e))throw pa(),Error(a(418));for(;t;)la(e,t),t=uo(t.nextSibling)}if(fa(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oa=uo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oa=null}}else oa=ra?uo(e.stateNode.nextSibling):null;return!0}function pa(){for(var e=oa;e;)e=uo(e.nextSibling)}function ga(){oa=ra=null,aa=!1}function ha(e){null===ia?ia=[e]:ia.push(e)}var ma=w.ReactCurrentBatchConfig;function ya(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function ba(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function va(e){return(0,e._init)(e._payload)}function wa(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Nu(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=zu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var a=n.type;return a===E?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===R&&va(a)===t.type)?((r=o(t,n.props)).ref=ya(e,t,n),r.return=e,r):((r=Lu(n.type,n.key,n.props,null,e.mode,r)).ref=ya(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Iu(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=_u(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=zu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case k:return(n=Lu(t.type,t.key,t.props,null,e.mode,n)).ref=ya(e,null,t),n.return=e,n;case x:return(t=Iu(t,e.mode,n)).return=e,t;case R:return d(e,(0,t._init)(t._payload),n)}if(te(t)||_(t))return(t=_u(t,e.mode,n,null)).return=e,t;ba(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===o?u(e,t,n,r):null;case x:return n.key===o?c(e,t,n,r):null;case R:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||_(n))return null!==o?null:f(e,t,n,r,null);ba(e,n)}return null}function g(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case k:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case R:return g(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||_(r))return f(t,e=e.get(n)||null,r,o,null);ba(t,r)}return null}function h(o,a,l,s){for(var u=null,c=null,f=a,h=a=0,m=null;null!==f&&h<l.length;h++){f.index>h?(m=f,f=null):m=f.sibling;var y=p(o,f,l[h],s);if(null===y){null===f&&(f=m);break}e&&f&&null===y.alternate&&t(o,f),a=i(y,a,h),null===c?u=y:c.sibling=y,c=y,f=m}if(h===l.length)return n(o,f),aa&&Jo(o,h),u;if(null===f){for(;h<l.length;h++)null!==(f=d(o,l[h],s))&&(a=i(f,a,h),null===c?u=f:c.sibling=f,c=f);return aa&&Jo(o,h),u}for(f=r(o,f);h<l.length;h++)null!==(m=g(f,o,h,l[h],s))&&(e&&null!==m.alternate&&f.delete(null===m.key?h:m.key),a=i(m,a,h),null===c?u=m:c.sibling=m,c=m);return e&&f.forEach((function(e){return t(o,e)})),aa&&Jo(o,h),u}function m(o,l,s,u){var c=_(s);if("function"!=typeof c)throw Error(a(150));if(null==(s=c.call(s)))throw Error(a(151));for(var f=c=null,h=l,m=l=0,y=null,b=s.next();null!==h&&!b.done;m++,b=s.next()){h.index>m?(y=h,h=null):y=h.sibling;var v=p(o,h,b.value,u);if(null===v){null===h&&(h=y);break}e&&h&&null===v.alternate&&t(o,h),l=i(v,l,m),null===f?c=v:f.sibling=v,f=v,h=y}if(b.done)return n(o,h),aa&&Jo(o,m),c;if(null===h){for(;!b.done;m++,b=s.next())null!==(b=d(o,b.value,u))&&(l=i(b,l,m),null===f?c=b:f.sibling=b,f=b);return aa&&Jo(o,m),c}for(h=r(o,h);!b.done;m++,b=s.next())null!==(b=g(h,o,m,b.value,u))&&(e&&null!==b.alternate&&h.delete(null===b.key?m:b.key),l=i(b,l,m),null===f?c=b:f.sibling=b,f=b);return e&&h.forEach((function(e){return t(o,e)})),aa&&Jo(o,m),c}return function e(r,a,i,s){if("object"==typeof i&&null!==i&&i.type===E&&null===i.key&&(i=i.props.children),"object"==typeof i&&null!==i){switch(i.$$typeof){case k:e:{for(var u=i.key,c=a;null!==c;){if(c.key===u){if((u=i.type)===E){if(7===c.tag){n(r,c.sibling),(a=o(c,i.props.children)).return=r,r=a;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===R&&va(u)===c.type){n(r,c.sibling),(a=o(c,i.props)).ref=ya(r,c,i),a.return=r,r=a;break e}n(r,c);break}t(r,c),c=c.sibling}i.type===E?((a=_u(i.props.children,r.mode,s,i.key)).return=r,r=a):((s=Lu(i.type,i.key,i.props,null,r.mode,s)).ref=ya(r,a,i),s.return=r,r=s)}return l(r);case x:e:{for(c=i.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===i.containerInfo&&a.stateNode.implementation===i.implementation){n(r,a.sibling),(a=o(a,i.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=Iu(i,r.mode,s)).return=r,r=a}return l(r);case R:return e(r,a,(c=i._init)(i._payload),s)}if(te(i))return h(r,a,i,s);if(_(i))return m(r,a,i,s);ba(r,i)}return"string"==typeof i&&""!==i||"number"==typeof i?(i=""+i,null!==a&&6===a.tag?(n(r,a.sibling),(a=o(a,i)).return=r,r=a):(n(r,a),(a=zu(i,r.mode,s)).return=r,r=a),l(r)):n(r,a)}}var ka=wa(!0),xa=wa(!1),Ea=Fo(null),Sa=null,Fa=null,Aa=null;function Ca(){Aa=Fa=Sa=null}function Oa(e){var t=Ea.current;Ao(Ea),e._currentValue=t}function Pa(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ta(e,t){Sa=e,Aa=Fa=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(vl=!0),e.firstContext=null)}function Da(e){var t=e._currentValue;if(Aa!==e)if(e={context:e,memoizedValue:t,next:null},null===Fa){if(null===Sa)throw Error(a(308));Fa=e,Sa.dependencies={lanes:0,firstContext:e}}else Fa=Fa.next=e;return t}var Ra=null;function Na(e){null===Ra?Ra=[e]:Ra.push(e)}function La(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Na(t)):(n.next=o.next,o.next=n),t.interleaved=n,_a(e,r)}function _a(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var ja=!1;function za(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ia(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ba(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ma(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Os){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,_a(e,n)}return null===(o=r.interleaved)?(t.next=t,Na(r)):(t.next=o.next,o.next=t),r.interleaved=t,_a(e,n)}function $a(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Ha(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ua(e,t,n,r){var o=e.updateQueue;ja=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,u=s.next;s.next=null,null===i?a=u:i.next=u,i=s;var c=e.alternate;null!==c&&(l=(c=c.updateQueue).lastBaseUpdate)!==i&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s)}if(null!==a){var f=o.baseState;for(i=0,c=u=s=null,l=a;;){var d=l.lane,p=l.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var g=e,h=l;switch(d=t,p=n,h.tag){case 1:if("function"==typeof(g=h.payload)){f=g.call(p,f,d);break e}f=g;break e;case 3:g.flags=-65537&g.flags|128;case 0:if(null==(d="function"==typeof(g=h.payload)?g.call(p,f,d):g))break e;f=z({},f,d);break e;case 2:ja=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(d=o.effects)?o.effects=[l]:d.push(l))}else p={eventTime:p,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(u=c=p,s=f):c=c.next=p,i|=d;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(d=l).next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}if(null===c&&(s=f),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);js|=i,e.lanes=i,e.memoizedState=f}}function Wa(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(a(191,o));o.call(r)}}}var Va={},qa=Fo(Va),Ga=Fo(Va),Ya=Fo(Va);function Qa(e){if(e===Va)throw Error(a(174));return e}function Xa(e,t){switch(Co(Ya,t),Co(Ga,e),Co(qa,Va),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:se(null,"");break;default:t=se(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ao(qa),Co(qa,t)}function Ka(){Ao(qa),Ao(Ga),Ao(Ya)}function Za(e){Qa(Ya.current);var t=Qa(qa.current),n=se(t,e.type);t!==n&&(Co(Ga,e),Co(qa,n))}function Ja(e){Ga.current===e&&(Ao(qa),Ao(Ga))}var ei=Fo(0);function ti(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ni=[];function ri(){for(var e=0;e<ni.length;e++)ni[e]._workInProgressVersionPrimary=null;ni.length=0}var oi=w.ReactCurrentDispatcher,ai=w.ReactCurrentBatchConfig,ii=0,li=null,si=null,ui=null,ci=!1,fi=!1,di=0,pi=0;function gi(){throw Error(a(321))}function hi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function mi(e,t,n,r,o,i){if(ii=i,li=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oi.current=null===e||null===e.memoizedState?Ji:el,e=n(r,o),fi){i=0;do{if(fi=!1,di=0,25<=i)throw Error(a(301));i+=1,ui=si=null,t.updateQueue=null,oi.current=tl,e=n(r,o)}while(fi)}if(oi.current=Zi,t=null!==si&&null!==si.next,ii=0,ui=si=li=null,ci=!1,t)throw Error(a(300));return e}function yi(){var e=0!==di;return di=0,e}function bi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ui?li.memoizedState=ui=e:ui=ui.next=e,ui}function vi(){if(null===si){var e=li.alternate;e=null!==e?e.memoizedState:null}else e=si.next;var t=null===ui?li.memoizedState:ui.next;if(null!==t)ui=t,si=e;else{if(null===e)throw Error(a(310));e={memoizedState:(si=e).memoizedState,baseState:si.baseState,baseQueue:si.baseQueue,queue:si.queue,next:null},null===ui?li.memoizedState=ui=e:ui=ui.next=e}return ui}function wi(e,t){return"function"==typeof t?t(e):t}function ki(e){var t=vi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=si,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var s=l=null,u=null,c=i;do{var f=c.lane;if((ii&f)===f)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(s=u=d,l=r):u=u.next=d,li.lanes|=f,js|=f}c=c.next}while(null!==c&&c!==i);null===u?l=r:u.next=s,lr(r,t.memoizedState)||(vl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,li.lanes|=i,js|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function xi(e){var t=vi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{i=e(i,l.action),l=l.next}while(l!==o);lr(i,t.memoizedState)||(vl=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Ei(){}function Si(e,t){var n=li,r=vi(),o=t(),i=!lr(r.memoizedState,o);if(i&&(r.memoizedState=o,vl=!0),r=r.queue,ji(Ci.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==ui&&1&ui.memoizedState.tag){if(n.flags|=2048,Di(9,Ai.bind(null,n,r,o,t),void 0,null),null===Ps)throw Error(a(349));30&ii||Fi(n,t,o)}return o}function Fi(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=li.updateQueue)?(t={lastEffect:null,stores:null},li.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ai(e,t,n,r){t.value=n,t.getSnapshot=r,Oi(t)&&Pi(e)}function Ci(e,t,n){return n((function(){Oi(t)&&Pi(e)}))}function Oi(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(e){return!0}}function Pi(e){var t=_a(e,1);null!==t&&nu(t,e,1,-1)}function Ti(e){var t=bi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wi,lastRenderedState:e},t.queue=e,e=e.dispatch=Yi.bind(null,li,e),[t.memoizedState,e]}function Di(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=li.updateQueue)?(t={lastEffect:null,stores:null},li.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ri(){return vi().memoizedState}function Ni(e,t,n,r){var o=bi();li.flags|=e,o.memoizedState=Di(1|t,n,void 0,void 0===r?null:r)}function Li(e,t,n,r){var o=vi();r=void 0===r?null:r;var a=void 0;if(null!==si){var i=si.memoizedState;if(a=i.destroy,null!==r&&hi(r,i.deps))return void(o.memoizedState=Di(t,n,a,r))}li.flags|=e,o.memoizedState=Di(1|t,n,a,r)}function _i(e,t){return Ni(8390656,8,e,t)}function ji(e,t){return Li(2048,8,e,t)}function zi(e,t){return Li(4,2,e,t)}function Ii(e,t){return Li(4,4,e,t)}function Bi(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Mi(e,t,n){return n=null!=n?n.concat([e]):null,Li(4,4,Bi.bind(null,t,e),n)}function $i(){}function Hi(e,t){var n=vi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&hi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ui(e,t){var n=vi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&hi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Wi(e,t,n){return 21&ii?(lr(n,t)||(n=ht(),li.lanes|=n,js|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,vl=!0),e.memoizedState=n)}function Vi(e,t){var n=vt;vt=0!==n&&4>n?n:4,e(!0);var r=ai.transition;ai.transition={};try{e(!1),t()}finally{vt=n,ai.transition=r}}function qi(){return vi().memoizedState}function Gi(e,t,n){var r=tu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Qi(e)?Xi(t,n):null!==(n=La(e,t,n,r))&&(nu(n,e,r,eu()),Ki(n,t,r))}function Yi(e,t,n){var r=tu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Qi(e))Xi(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,lr(l,i)){var s=t.interleaved;return null===s?(o.next=o,Na(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=La(e,t,o,r))&&(nu(n,e,r,o=eu()),Ki(n,t,r))}}function Qi(e){var t=e.alternate;return e===li||null!==t&&t===li}function Xi(e,t){fi=ci=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ki(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var Zi={readContext:Da,useCallback:gi,useContext:gi,useEffect:gi,useImperativeHandle:gi,useInsertionEffect:gi,useLayoutEffect:gi,useMemo:gi,useReducer:gi,useRef:gi,useState:gi,useDebugValue:gi,useDeferredValue:gi,useTransition:gi,useMutableSource:gi,useSyncExternalStore:gi,useId:gi,unstable_isNewReconciler:!1},Ji={readContext:Da,useCallback:function(e,t){return bi().memoizedState=[e,void 0===t?null:t],e},useContext:Da,useEffect:_i,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ni(4194308,4,Bi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ni(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ni(4,2,e,t)},useMemo:function(e,t){var n=bi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=bi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Gi.bind(null,li,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},bi().memoizedState=e},useState:Ti,useDebugValue:$i,useDeferredValue:function(e){return bi().memoizedState=e},useTransition:function(){var e=Ti(!1),t=e[0];return e=Vi.bind(null,e[1]),bi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=li,o=bi();if(aa){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===Ps)throw Error(a(349));30&ii||Fi(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,_i(Ci.bind(null,r,i,e),[e]),r.flags|=2048,Di(9,Ai.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=bi(),t=Ps.identifierPrefix;if(aa){var n=Zo;t=":"+t+"R"+(n=(Ko&~(1<<32-it(Ko)-1)).toString(32)+n),0<(n=di++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pi++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},el={readContext:Da,useCallback:Hi,useContext:Da,useEffect:ji,useImperativeHandle:Mi,useInsertionEffect:zi,useLayoutEffect:Ii,useMemo:Ui,useReducer:ki,useRef:Ri,useState:function(){return ki(wi)},useDebugValue:$i,useDeferredValue:function(e){return Wi(vi(),si.memoizedState,e)},useTransition:function(){return[ki(wi)[0],vi().memoizedState]},useMutableSource:Ei,useSyncExternalStore:Si,useId:qi,unstable_isNewReconciler:!1},tl={readContext:Da,useCallback:Hi,useContext:Da,useEffect:ji,useImperativeHandle:Mi,useInsertionEffect:zi,useLayoutEffect:Ii,useMemo:Ui,useReducer:xi,useRef:Ri,useState:function(){return xi(wi)},useDebugValue:$i,useDeferredValue:function(e){var t=vi();return null===si?t.memoizedState=e:Wi(t,si.memoizedState,e)},useTransition:function(){return[xi(wi)[0],vi().memoizedState]},useMutableSource:Ei,useSyncExternalStore:Si,useId:qi,unstable_isNewReconciler:!1};function nl(e,t){if(e&&e.defaultProps){for(var n in t=z({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rl(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:z({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ol={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),a=Ba(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=Ma(e,a,o))&&(nu(t,e,o,r),$a(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),a=Ba(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=Ma(e,a,o))&&(nu(t,e,o,r),$a(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),r=tu(e),o=Ba(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Ma(e,o,r))&&(nu(t,e,r,n),$a(t,e,r))}};function al(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!(t.prototype&&t.prototype.isPureReactComponent&&sr(n,r)&&sr(o,a))}function il(e,t,n){var r=!1,o=Oo,a=t.contextType;return"object"==typeof a&&null!==a?a=Da(a):(o=No(t)?Do:Po.current,a=(r=null!=(r=t.contextTypes))?Ro(e,o):Oo),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ol,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function ll(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ol.enqueueReplaceState(t,t.state,null)}function sl(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},za(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=Da(a):(a=No(t)?Do:Po.current,o.context=Ro(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(rl(e,t,a,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ol.enqueueReplaceState(o,o.state,null),Ua(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function ul(e,t){try{var n="",r=t;do{n+=$(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function cl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fl(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var dl="function"==typeof WeakMap?WeakMap:Map;function pl(e,t,n){(n=Ba(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ws||(Ws=!0,Vs=r),fl(0,t)},n}function gl(e,t,n){(n=Ba(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){fl(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){fl(0,t),"function"!=typeof r&&(null===qs?qs=new Set([this]):qs.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function hl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new dl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Fu.bind(null,e,t,n),t.then(e,e))}function ml(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function yl(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ba(-1,1)).tag=2,Ma(n,t,1))),n.lanes|=1),e)}var bl=w.ReactCurrentOwner,vl=!1;function wl(e,t,n,r){t.child=null===e?xa(t,null,n,r):ka(t,e.child,n,r)}function kl(e,t,n,r,o){n=n.render;var a=t.ref;return Ta(t,o),r=mi(e,t,n,r,a,o),n=yi(),null===e||vl?(aa&&n&&ta(t),t.flags|=1,wl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wl(e,t,o))}function xl(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||Ru(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Lu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,El(e,t,a,r,o))}if(a=e.child,!(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(i,r)&&e.ref===t.ref)return Wl(e,t,o)}return t.flags|=1,(e=Nu(a,r)).ref=t.ref,e.return=t,t.child=e}function El(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(sr(a,r)&&e.ref===t.ref){if(vl=!1,t.pendingProps=r=a,!(e.lanes&o))return t.lanes=e.lanes,Wl(e,t,o);131072&e.flags&&(vl=!0)}}return Al(e,t,n,r,o)}function Sl(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Co(Ns,Rs),Rs|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Co(Ns,Rs),Rs|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Co(Ns,Rs),Rs|=n;else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Co(Ns,Rs),Rs|=r;return wl(e,t,o,n),t.child}function Fl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Al(e,t,n,r,o){var a=No(n)?Do:Po.current;return a=Ro(t,a),Ta(t,o),n=mi(e,t,n,r,a,o),r=yi(),null===e||vl?(aa&&r&&ta(t),t.flags|=1,wl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wl(e,t,o))}function Cl(e,t,n,r,o){if(No(n)){var a=!0;zo(t)}else a=!1;if(Ta(t,o),null===t.stateNode)Ul(e,t),il(t,n,r),sl(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var s=i.context,u=n.contextType;u="object"==typeof u&&null!==u?Da(u):Ro(t,u=No(n)?Do:Po.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;f||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==r||s!==u)&&ll(t,i,r,u),ja=!1;var d=t.memoizedState;i.state=d,Ua(t,r,i,o),s=t.memoizedState,l!==r||d!==s||To.current||ja?("function"==typeof c&&(rl(t,n,c,r),s=t.memoizedState),(l=ja||al(t,n,l,r,d,s,u))?(f||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=u,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Ia(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:nl(t.type,l),i.props=u,f=t.pendingProps,d=i.context,s="object"==typeof(s=n.contextType)&&null!==s?Da(s):Ro(t,s=No(n)?Do:Po.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==f||d!==s)&&ll(t,i,r,s),ja=!1,d=t.memoizedState,i.state=d,Ua(t,r,i,o);var g=t.memoizedState;l!==f||d!==g||To.current||ja?("function"==typeof p&&(rl(t,n,p,r),g=t.memoizedState),(u=ja||al(t,n,u,r,d,g,s)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,g,s),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,g,s)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),i.props=r,i.state=g,i.context=s,r=u):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Ol(e,t,n,r,a,o)}function Ol(e,t,n,r,o,a){Fl(e,t);var i=!!(128&t.flags);if(!r&&!i)return o&&Io(t,n,!1),Wl(e,t,a);r=t.stateNode,bl.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=ka(t,e.child,null,a),t.child=ka(t,null,l,a)):wl(e,t,l,a),t.memoizedState=r.state,o&&Io(t,n,!0),t.child}function Pl(e){var t=e.stateNode;t.pendingContext?_o(0,t.pendingContext,t.pendingContext!==t.context):t.context&&_o(0,t.context,!1),Xa(e,t.containerInfo)}function Tl(e,t,n,r,o){return ga(),ha(o),t.flags|=256,wl(e,t,n,r),t.child}var Dl,Rl,Nl,Ll,_l={dehydrated:null,treeContext:null,retryLane:0};function jl(e){return{baseLanes:e,cachePool:null,transitions:null}}function zl(e,t,n){var r,o=t.pendingProps,i=ei.current,l=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&!!(2&i)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Co(ei,1&i),null===e)return ca(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=o.children,e=o.fallback,l?(o=t.mode,l=t.child,s={mode:"hidden",children:s},1&o||null===l?l=ju(s,o,0,null):(l.childLanes=0,l.pendingProps=s),e=_u(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=jl(n),t.memoizedState=_l,e):Il(t,s));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,l){if(n)return 256&t.flags?(t.flags&=-257,Bl(e,t,l,r=cl(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=ju({mode:"visible",children:r.children},o,0,null),(i=_u(i,o,l,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,1&t.mode&&ka(t,e.child,null,l),t.child.memoizedState=jl(l),t.memoizedState=_l,i);if(!(1&t.mode))return Bl(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,Bl(e,t,l,r=cl(i=Error(a(419)),r,void 0))}if(s=!!(l&e.childLanes),vl||s){if(null!==(r=Ps)){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=o&(r.suspendedLanes|l)?0:o)&&o!==i.retryLane&&(i.retryLane=o,_a(e,o),nu(r,e,o,-1))}return hu(),Bl(e,t,l,r=cl(Error(a(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Cu.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,oa=uo(o.nextSibling),ra=t,aa=!0,ia=null,null!==e&&(Yo[Qo++]=Ko,Yo[Qo++]=Zo,Yo[Qo++]=Xo,Ko=e.id,Zo=e.overflow,Xo=t),(t=Il(t,r.children)).flags|=4096,t)}(e,t,s,o,r,i,n);if(l){l=o.fallback,s=t.mode,r=(i=e.child).sibling;var u={mode:"hidden",children:o.children};return 1&s||t.child===i?(o=Nu(i,u)).subtreeFlags=14680064&i.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null),null!==r?l=Nu(r,l):(l=_u(l,s,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,s=null===(s=e.child.memoizedState)?jl(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=_l,o}return e=(l=e.child).sibling,o=Nu(l,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Il(e,t){return(t=ju({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bl(e,t,n,r){return null!==r&&ha(r),ka(t,e.child,null,n),(e=Il(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ml(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Pa(e.return,t,n)}function $l(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function Hl(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(wl(e,t,r.children,n),2&(r=ei.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ml(e,n,t);else if(19===e.tag)Ml(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Co(ei,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ti(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),$l(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ti(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}$l(t,!0,n,null,a);break;case"together":$l(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ul(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Wl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),js|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Nu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Nu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Vl(e,t){if(!aa)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ql(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Gl(e,t,n){var r=t.pendingProps;switch(na(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ql(t),null;case 1:case 17:return No(t.type)&&Lo(),ql(t),null;case 3:return r=t.stateNode,Ka(),Ao(To),Ao(Po),ri(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(da(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ia&&(iu(ia),ia=null))),Rl(e,t),ql(t),null;case 5:Ja(t);var o=Qa(Ya.current);if(n=t.type,null!==e&&null!=t.stateNode)Nl(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return ql(t),null}if(e=Qa(qa.current),da(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[po]=t,r[go]=i,e=!!(1&t.mode),n){case"dialog":Br("cancel",r),Br("close",r);break;case"iframe":case"object":case"embed":Br("load",r);break;case"video":case"audio":for(o=0;o<_r.length;o++)Br(_r[o],r);break;case"source":Br("error",r);break;case"img":case"image":case"link":Br("error",r),Br("load",r);break;case"details":Br("toggle",r);break;case"input":X(r,i),Br("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Br("invalid",r);break;case"textarea":oe(r,i),Br("invalid",r)}for(var s in be(n,i),o=null,i)if(i.hasOwnProperty(s)){var u=i[s];"children"===s?"string"==typeof u?r.textContent!==u&&(!0!==i.suppressHydrationWarning&&Zr(r.textContent,u,e),o=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==i.suppressHydrationWarning&&Zr(r.textContent,u,e),o=["children",""+u]):l.hasOwnProperty(s)&&null!=u&&"onScroll"===s&&Br("scroll",r)}switch(n){case"input":q(r),J(r,i,!0);break;case"textarea":q(r),ie(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=Jr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{s=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[po]=t,e[go]=r,Dl(e,t,!1,!1),t.stateNode=e;e:{switch(s=ve(n,r),n){case"dialog":Br("cancel",e),Br("close",e),o=r;break;case"iframe":case"object":case"embed":Br("load",e),o=r;break;case"video":case"audio":for(o=0;o<_r.length;o++)Br(_r[o],e);o=r;break;case"source":Br("error",e),o=r;break;case"img":case"image":case"link":Br("error",e),Br("load",e),o=r;break;case"details":Br("toggle",e),o=r;break;case"input":X(e,r),o=Q(e,r),Br("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=z({},r,{value:void 0}),Br("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Br("invalid",e)}for(i in be(n,o),u=o)if(u.hasOwnProperty(i)){var c=u[i];"style"===i?me(e,c):"dangerouslySetInnerHTML"===i?null!=(c=c?c.__html:void 0)&&fe(e,c):"children"===i?"string"==typeof c?("textarea"!==n||""!==c)&&de(e,c):"number"==typeof c&&de(e,""+c):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(l.hasOwnProperty(i)?null!=c&&"onScroll"===i&&Br("scroll",e):null!=c&&v(e,i,c,s))}switch(n){case"input":q(e),J(e,r,!1);break;case"textarea":q(e),ie(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?ne(e,!!r.multiple,i,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return ql(t),null;case 6:if(e&&null!=t.stateNode)Ll(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));if(n=Qa(Ya.current),Qa(qa.current),da(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(i=r.nodeValue!==n)&&null!==(e=ra))switch(e.tag){case 3:Zr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zr(r.nodeValue,n,!!(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return ql(t),null;case 13:if(Ao(ei),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(aa&&null!==oa&&1&t.mode&&!(128&t.flags))pa(),ga(),t.flags|=98560,i=!1;else if(i=da(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(a(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(a(317));i[po]=t}else ga(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ql(t),i=!1}else null!==ia&&(iu(ia),ia=null),i=!0;if(!i)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ei.current?0===Ls&&(Ls=3):hu())),null!==t.updateQueue&&(t.flags|=4),ql(t),null);case 4:return Ka(),Rl(e,t),null===e&&Hr(t.stateNode.containerInfo),ql(t),null;case 10:return Oa(t.type._context),ql(t),null;case 19:if(Ao(ei),null===(i=t.memoizedState))return ql(t),null;if(r=!!(128&t.flags),null===(s=i.rendering))if(r)Vl(i,!1);else{if(0!==Ls||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(s=ti(e))){for(t.flags|=128,Vl(i,!1),null!==(r=s.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(s=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Co(ei,1&ei.current|2),t.child}e=e.sibling}null!==i.tail&&Ke()>Hs&&(t.flags|=128,r=!0,Vl(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ti(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Vl(i,!0),null===i.tail&&"hidden"===i.tailMode&&!s.alternate&&!aa)return ql(t),null}else 2*Ke()-i.renderingStartTime>Hs&&1073741824!==n&&(t.flags|=128,r=!0,Vl(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=i.last)?n.sibling=s:t.child=s,i.last=s)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ke(),t.sibling=null,n=ei.current,Co(ei,r?1&n|2:1&n),t):(ql(t),null);case 22:case 23:return fu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Rs)&&(ql(t),6&t.subtreeFlags&&(t.flags|=8192)):ql(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Yl(e,t){switch(na(t),t.tag){case 1:return No(t.type)&&Lo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ka(),Ao(To),Ao(Po),ri(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ja(t),null;case 13:if(Ao(ei),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));ga()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ao(ei),null;case 4:return Ka(),null;case 10:return Oa(t.type._context),null;case 22:case 23:return fu(),null;default:return null}}Dl=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Rl=function(){},Nl=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Qa(qa.current);var a,i=null;switch(n){case"input":o=Q(e,o),r=Q(e,r),i=[];break;case"select":o=z({},o,{value:void 0}),r=z({},r,{value:void 0}),i=[];break;case"textarea":o=re(e,o),r=re(e,r),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(c in be(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var s=o[c];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(l.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var u=r[c];if(s=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&u!==s&&(null!=u||null!=s))if("style"===c)if(s){for(a in s)!s.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&s[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(i||(i=[]),i.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,s=s?s.__html:void 0,null!=u&&s!==u&&(i=i||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(i=i||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(l.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Br("scroll",e),i||s===u||(i=[])):(i=i||[]).push(c,u))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},Ll=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ql=!1,Xl=!1,Kl="function"==typeof WeakSet?WeakSet:Set,Zl=null;function Jl(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Su(e,t,n)}else n.current=null}function es(e,t,n){try{n()}catch(n){Su(e,t,n)}}var ts=!1;function ns(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&es(t,n,a)}o=o.next}while(o!==r)}}function rs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function os(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function as(e){var t=e.alternate;null!==t&&(e.alternate=null,as(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[po],delete t[go],delete t[mo],delete t[yo],delete t[bo]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function is(e){return 5===e.tag||3===e.tag||4===e.tag}function ls(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||is(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ss(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(ss(e,t,n),e=e.sibling;null!==e;)ss(e,t,n),e=e.sibling}function us(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(us(e,t,n),e=e.sibling;null!==e;)us(e,t,n),e=e.sibling}var cs=null,fs=!1;function ds(e,t,n){for(n=n.child;null!==n;)ps(e,t,n),n=n.sibling}function ps(e,t,n){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Xl||Jl(n,t);case 6:var r=cs,o=fs;cs=null,ds(e,t,n),fs=o,null!==(cs=r)&&(fs?(e=cs,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cs.removeChild(n.stateNode));break;case 18:null!==cs&&(fs?(e=cs,n=n.stateNode,8===e.nodeType?so(e.parentNode,n):1===e.nodeType&&so(e,n),Ht(e)):so(cs,n.stateNode));break;case 4:r=cs,o=fs,cs=n.stateNode.containerInfo,fs=!0,ds(e,t,n),cs=r,fs=o;break;case 0:case 11:case 14:case 15:if(!Xl&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(2&a||4&a)&&es(n,t,i),o=o.next}while(o!==r)}ds(e,t,n);break;case 1:if(!Xl&&(Jl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Su(n,t,e)}ds(e,t,n);break;case 21:ds(e,t,n);break;case 22:1&n.mode?(Xl=(r=Xl)||null!==n.memoizedState,ds(e,t,n),Xl=r):ds(e,t,n);break;default:ds(e,t,n)}}function gs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Kl),t.forEach((function(t){var r=Ou.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function hs(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:cs=s.stateNode,fs=!1;break e;case 3:case 4:cs=s.stateNode.containerInfo,fs=!0;break e}s=s.return}if(null===cs)throw Error(a(160));ps(i,l,o),cs=null,fs=!1;var u=o.alternate;null!==u&&(u.return=null),o.return=null}catch(e){Su(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ms(t,e),t=t.sibling}function ms(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(hs(t,e),ys(e),4&r){try{ns(3,e,e.return),rs(3,e)}catch(t){Su(e,e.return,t)}try{ns(5,e,e.return)}catch(t){Su(e,e.return,t)}}break;case 1:hs(t,e),ys(e),512&r&&null!==n&&Jl(n,n.return);break;case 5:if(hs(t,e),ys(e),512&r&&null!==n&&Jl(n,n.return),32&e.flags){var o=e.stateNode;try{de(o,"")}catch(t){Su(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,l=null!==n?n.memoizedProps:i,s=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===s&&"radio"===i.type&&null!=i.name&&K(o,i),ve(s,l);var c=ve(s,i);for(l=0;l<u.length;l+=2){var f=u[l],d=u[l+1];"style"===f?me(o,d):"dangerouslySetInnerHTML"===f?fe(o,d):"children"===f?de(o,d):v(o,f,d,c)}switch(s){case"input":Z(o,i);break;case"textarea":ae(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var g=i.value;null!=g?ne(o,!!i.multiple,g,!1):p!==!!i.multiple&&(null!=i.defaultValue?ne(o,!!i.multiple,i.defaultValue,!0):ne(o,!!i.multiple,i.multiple?[]:"",!1))}o[go]=i}catch(t){Su(e,e.return,t)}}break;case 6:if(hs(t,e),ys(e),4&r){if(null===e.stateNode)throw Error(a(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){Su(e,e.return,t)}}break;case 3:if(hs(t,e),ys(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(t){Su(e,e.return,t)}break;case 4:default:hs(t,e),ys(e);break;case 13:hs(t,e),ys(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||($s=Ke())),4&r&&gs(e);break;case 22:if(f=null!==n&&null!==n.memoizedState,1&e.mode?(Xl=(c=Xl)||f,hs(t,e),Xl=c):hs(t,e),ys(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!f&&1&e.mode)for(Zl=e,f=e.child;null!==f;){for(d=Zl=f;null!==Zl;){switch(g=(p=Zl).child,p.tag){case 0:case 11:case 14:case 15:ns(4,p,p.return);break;case 1:Jl(p,p.return);var h=p.stateNode;if("function"==typeof h.componentWillUnmount){r=p,n=p.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){Su(r,n,e)}}break;case 5:Jl(p,p.return);break;case 22:if(null!==p.memoizedState){ks(d);continue}}null!==g?(g.return=p,Zl=g):ks(d)}f=f.sibling}e:for(f=null,d=e;;){if(5===d.tag){if(null===f){f=d;try{o=d.stateNode,c?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(s=d.stateNode,l=null!=(u=d.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,s.style.display=he("display",l))}catch(t){Su(e,e.return,t)}}}else if(6===d.tag){if(null===f)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){Su(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:hs(t,e),ys(e),4&r&&gs(e);case 21:}}function ys(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(is(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(de(o,""),r.flags&=-33),us(e,ls(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;ss(e,ls(e),i);break;default:throw Error(a(161))}}catch(t){Su(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bs(e,t,n){Zl=e,vs(e,t,n)}function vs(e,t,n){for(var r=!!(1&e.mode);null!==Zl;){var o=Zl,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||Ql;if(!i){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Xl;l=Ql;var u=Xl;if(Ql=i,(Xl=s)&&!u)for(Zl=o;null!==Zl;)s=(i=Zl).child,22===i.tag&&null!==i.memoizedState?xs(o):null!==s?(s.return=i,Zl=s):xs(o);for(;null!==a;)Zl=a,vs(a,t,n),a=a.sibling;Zl=o,Ql=l,Xl=u}ws(e)}else 8772&o.subtreeFlags&&null!==a?(a.return=o,Zl=a):ws(e)}}function ws(e){for(;null!==Zl;){var t=Zl;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Xl||rs(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Xl)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:nl(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Wa(t,i,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Wa(t,l,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&Ht(d)}}}break;default:throw Error(a(163))}Xl||512&t.flags&&os(t)}catch(e){Su(t,t.return,e)}}if(t===e){Zl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zl=n;break}Zl=t.return}}function ks(e){for(;null!==Zl;){var t=Zl;if(t===e){Zl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zl=n;break}Zl=t.return}}function xs(e){for(;null!==Zl;){var t=Zl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rs(4,t)}catch(e){Su(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Su(t,o,e)}}var a=t.return;try{os(t)}catch(e){Su(t,a,e)}break;case 5:var i=t.return;try{os(t)}catch(e){Su(t,i,e)}}}catch(e){Su(t,t.return,e)}if(t===e){Zl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Zl=l;break}Zl=t.return}}var Es,Ss=Math.ceil,Fs=w.ReactCurrentDispatcher,As=w.ReactCurrentOwner,Cs=w.ReactCurrentBatchConfig,Os=0,Ps=null,Ts=null,Ds=0,Rs=0,Ns=Fo(0),Ls=0,_s=null,js=0,zs=0,Is=0,Bs=null,Ms=null,$s=0,Hs=1/0,Us=null,Ws=!1,Vs=null,qs=null,Gs=!1,Ys=null,Qs=0,Xs=0,Ks=null,Zs=-1,Js=0;function eu(){return 6&Os?Ke():-1!==Zs?Zs:Zs=Ke()}function tu(e){return 1&e.mode?2&Os&&0!==Ds?Ds&-Ds:null!==ma.transition?(0===Js&&(Js=ht()),Js):0!==(e=vt)?e:e=void 0===(e=window.event)?16:Xt(e.type):1}function nu(e,t,n,r){if(50<Xs)throw Xs=0,Ks=null,Error(a(185));yt(e,n,r),2&Os&&e===Ps||(e===Ps&&(!(2&Os)&&(zs|=n),4===Ls&&lu(e,Ds)),ru(e,r),1===n&&0===Os&&!(1&t.mode)&&(Hs=Ke()+500,Mo&&Uo()))}function ru(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-it(a),l=1<<i,s=o[i];-1===s?l&n&&!(l&r)||(o[i]=pt(l,t)):s<=t&&(e.expiredLanes|=l),a&=~l}}(e,t);var r=dt(e,e===Ps?Ds:0);if(0===r)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){Mo=!0,Ho(e)}(su.bind(null,e)):Ho(su.bind(null,e)),io((function(){!(6&Os)&&Uo()})),n=null;else{switch(wt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Pu(n,ou.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ou(e,t){if(Zs=-1,Js=0,6&Os)throw Error(a(327));var n=e.callbackNode;if(xu()&&e.callbackNode!==n)return null;var r=dt(e,e===Ps?Ds:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=mu(e,r);else{t=r;var o=Os;Os|=2;var i=gu();for(Ps===e&&Ds===t||(Us=null,Hs=Ke()+500,du(e,t));;)try{bu();break}catch(t){pu(e,t)}Ca(),Fs.current=i,Os=o,null!==Ts?t=0:(Ps=null,Ds=0,t=Ls)}if(0!==t){if(2===t&&0!==(o=gt(e))&&(r=o,t=au(e,o)),1===t)throw n=_s,du(e,0),lu(e,r),ru(e,Ke()),n;if(6===t)lu(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!lr(a(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=mu(e,r),2===t&&(i=gt(e),0!==i&&(r=i,t=au(e,i))),1!==t)))throw n=_s,du(e,0),lu(e,r),ru(e,Ke()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:ku(e,Ms,Us);break;case 3:if(lu(e,r),(130023424&r)===r&&10<(t=$s+500-Ke())){if(0!==dt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){eu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(ku.bind(null,e,Ms,Us),t);break}ku(e,Ms,Us);break;case 4:if(lu(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-it(r);i=1<<l,(l=t[l])>o&&(o=l),r&=~i}if(r=o,10<(r=(120>(r=Ke()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ss(r/1960))-r)){e.timeoutHandle=ro(ku.bind(null,e,Ms,Us),r);break}ku(e,Ms,Us);break;default:throw Error(a(329))}}}return ru(e,Ke()),e.callbackNode===n?ou.bind(null,e):null}function au(e,t){var n=Bs;return e.current.memoizedState.isDehydrated&&(du(e,t).flags|=256),2!==(e=mu(e,t))&&(t=Ms,Ms=n,null!==t&&iu(t)),e}function iu(e){null===Ms?Ms=e:Ms.push.apply(Ms,e)}function lu(e,t){for(t&=~Is,t&=~zs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function su(e){if(6&Os)throw Error(a(327));xu();var t=dt(e,0);if(!(1&t))return ru(e,Ke()),null;var n=mu(e,t);if(0!==e.tag&&2===n){var r=gt(e);0!==r&&(t=r,n=au(e,r))}if(1===n)throw n=_s,du(e,0),lu(e,t),ru(e,Ke()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ku(e,Ms,Us),ru(e,Ke()),null}function uu(e,t){var n=Os;Os|=1;try{return e(t)}finally{0===(Os=n)&&(Hs=Ke()+500,Mo&&Uo())}}function cu(e){null!==Ys&&0===Ys.tag&&!(6&Os)&&xu();var t=Os;Os|=1;var n=Cs.transition,r=vt;try{if(Cs.transition=null,vt=1,e)return e()}finally{vt=r,Cs.transition=n,!(6&(Os=t))&&Uo()}}function fu(){Rs=Ns.current,Ao(Ns)}function du(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Ts)for(n=Ts.return;null!==n;){var r=n;switch(na(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Lo();break;case 3:Ka(),Ao(To),Ao(Po),ri();break;case 5:Ja(r);break;case 4:Ka();break;case 13:case 19:Ao(ei);break;case 10:Oa(r.type._context);break;case 22:case 23:fu()}n=n.return}if(Ps=e,Ts=e=Nu(e.current,null),Ds=Rs=t,Ls=0,_s=null,Is=zs=js=0,Ms=Bs=null,null!==Ra){for(t=0;t<Ra.length;t++)if(null!==(r=(n=Ra[t]).interleaved)){n.interleaved=null;var o=r.next,a=n.pending;if(null!==a){var i=a.next;a.next=o,r.next=i}n.pending=r}Ra=null}return e}function pu(e,t){for(;;){var n=Ts;try{if(Ca(),oi.current=Zi,ci){for(var r=li.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ci=!1}if(ii=0,ui=si=li=null,fi=!1,di=0,As.current=null,null===n||null===n.return){Ls=1,_s=t,Ts=null;break}e:{var i=e,l=n.return,s=n,u=t;if(t=Ds,s.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,f=s,d=f.tag;if(!(1&f.mode||0!==d&&11!==d&&15!==d)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var g=ml(l);if(null!==g){g.flags&=-257,yl(g,l,s,0,t),1&g.mode&&hl(i,c,t),u=c;var h=(t=g).updateQueue;if(null===h){var m=new Set;m.add(u),t.updateQueue=m}else h.add(u);break e}if(!(1&t)){hl(i,c,t),hu();break e}u=Error(a(426))}else if(aa&&1&s.mode){var y=ml(l);if(null!==y){!(65536&y.flags)&&(y.flags|=256),yl(y,l,s,0,t),ha(ul(u,s));break e}}i=u=ul(u,s),4!==Ls&&(Ls=2),null===Bs?Bs=[i]:Bs.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Ha(i,pl(0,u,t));break e;case 1:s=u;var b=i.type,v=i.stateNode;if(!(128&i.flags||"function"!=typeof b.getDerivedStateFromError&&(null===v||"function"!=typeof v.componentDidCatch||null!==qs&&qs.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t,Ha(i,gl(i,s,t));break e}}i=i.return}while(null!==i)}wu(n)}catch(e){t=e,Ts===n&&null!==n&&(Ts=n=n.return);continue}break}}function gu(){var e=Fs.current;return Fs.current=Zi,null===e?Zi:e}function hu(){0!==Ls&&3!==Ls&&2!==Ls||(Ls=4),null===Ps||!(268435455&js)&&!(268435455&zs)||lu(Ps,Ds)}function mu(e,t){var n=Os;Os|=2;var r=gu();for(Ps===e&&Ds===t||(Us=null,du(e,t));;)try{yu();break}catch(t){pu(e,t)}if(Ca(),Os=n,Fs.current=r,null!==Ts)throw Error(a(261));return Ps=null,Ds=0,Ls}function yu(){for(;null!==Ts;)vu(Ts)}function bu(){for(;null!==Ts&&!Qe();)vu(Ts)}function vu(e){var t=Es(e.alternate,e,Rs);e.memoizedProps=e.pendingProps,null===t?wu(e):Ts=t,As.current=null}function wu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Yl(n,t)))return n.flags&=32767,void(Ts=n);if(null===e)return Ls=6,void(Ts=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Gl(n,t,Rs)))return void(Ts=n);if(null!==(t=t.sibling))return void(Ts=t);Ts=t=e}while(null!==t);0===Ls&&(Ls=5)}function ku(e,t,n){var r=vt,o=Cs.transition;try{Cs.transition=null,vt=1,function(e,t,n,r){do{xu()}while(null!==Ys);if(6&Os)throw Error(a(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-it(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,i),e===Ps&&(Ts=Ps=null,Ds=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Gs||(Gs=!0,Pu(tt,(function(){return xu(),null}))),i=!!(15990&n.flags),15990&n.subtreeFlags||i){i=Cs.transition,Cs.transition=null;var l=vt;vt=1;var s=Os;Os|=4,As.current=null,function(e,t){if(eo=Wt,pr(e=dr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var l=0,s=-1,u=-1,c=0,f=0,d=e,p=null;t:for(;;){for(var g;d!==n||0!==o&&3!==d.nodeType||(s=l+o),d!==i||0!==r&&3!==d.nodeType||(u=l+r),3===d.nodeType&&(l+=d.nodeValue.length),null!==(g=d.firstChild);)p=d,d=g;for(;;){if(d===e)break t;if(p===n&&++c===o&&(s=l),p===i&&++f===r&&(u=l),null!==(g=d.nextSibling))break;p=(d=p).parentNode}d=g}n=-1===s||-1===u?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Wt=!1,Zl=t;null!==Zl;)if(e=(t=Zl).child,1028&t.subtreeFlags&&null!==e)e.return=t,Zl=e;else for(;null!==Zl;){t=Zl;try{var h=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var m=h.memoizedProps,y=h.memoizedState,b=t.stateNode,v=b.getSnapshotBeforeUpdate(t.elementType===t.type?m:nl(t.type,m),y);b.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(a(163))}}catch(e){Su(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Zl=e;break}Zl=t.return}h=ts,ts=!1}(e,n),ms(n,e),gr(to),Wt=!!eo,to=eo=null,e.current=n,bs(n,e,o),Xe(),Os=s,vt=l,Cs.transition=i}else e.current=n;if(Gs&&(Gs=!1,Ys=e,Qs=o),0===(i=e.pendingLanes)&&(qs=null),function(e){if(at&&"function"==typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),ru(e,Ke()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Ws)throw Ws=!1,e=Vs,Vs=null,e;!!(1&Qs)&&0!==e.tag&&xu(),1&(i=e.pendingLanes)?e===Ks?Xs++:(Xs=0,Ks=e):Xs=0,Uo()}(e,t,n,r)}finally{Cs.transition=o,vt=r}return null}function xu(){if(null!==Ys){var e=wt(Qs),t=Cs.transition,n=vt;try{if(Cs.transition=null,vt=16>e?16:e,null===Ys)var r=!1;else{if(e=Ys,Ys=null,Qs=0,6&Os)throw Error(a(331));var o=Os;for(Os|=4,Zl=e.current;null!==Zl;){var i=Zl,l=i.child;if(16&Zl.flags){var s=i.deletions;if(null!==s){for(var u=0;u<s.length;u++){var c=s[u];for(Zl=c;null!==Zl;){var f=Zl;switch(f.tag){case 0:case 11:case 15:ns(8,f,i)}var d=f.child;if(null!==d)d.return=f,Zl=d;else for(;null!==Zl;){var p=(f=Zl).sibling,g=f.return;if(as(f),f===c){Zl=null;break}if(null!==p){p.return=g,Zl=p;break}Zl=g}}}var h=i.alternate;if(null!==h){var m=h.child;if(null!==m){h.child=null;do{var y=m.sibling;m.sibling=null,m=y}while(null!==m)}}Zl=i}}if(2064&i.subtreeFlags&&null!==l)l.return=i,Zl=l;else e:for(;null!==Zl;){if(2048&(i=Zl).flags)switch(i.tag){case 0:case 11:case 15:ns(9,i,i.return)}var b=i.sibling;if(null!==b){b.return=i.return,Zl=b;break e}Zl=i.return}}var v=e.current;for(Zl=v;null!==Zl;){var w=(l=Zl).child;if(2064&l.subtreeFlags&&null!==w)w.return=l,Zl=w;else e:for(l=v;null!==Zl;){if(2048&(s=Zl).flags)try{switch(s.tag){case 0:case 11:case 15:rs(9,s)}}catch(e){Su(s,s.return,e)}if(s===l){Zl=null;break e}var k=s.sibling;if(null!==k){k.return=s.return,Zl=k;break e}Zl=s.return}}if(Os=o,Uo(),at&&"function"==typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{vt=n,Cs.transition=t}}return!1}function Eu(e,t,n){e=Ma(e,t=pl(0,t=ul(n,t),1),1),t=eu(),null!==e&&(yt(e,1,t),ru(e,t))}function Su(e,t,n){if(3===e.tag)Eu(e,e,n);else for(;null!==t;){if(3===t.tag){Eu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===qs||!qs.has(r))){t=Ma(t,e=gl(t,e=ul(n,e),1),1),e=eu(),null!==t&&(yt(t,1,e),ru(t,e));break}}t=t.return}}function Fu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,Ps===e&&(Ds&n)===n&&(4===Ls||3===Ls&&(130023424&Ds)===Ds&&500>Ke()-$s?du(e,0):Is|=n),ru(e,t)}function Au(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=eu();null!==(e=_a(e,t))&&(yt(e,t,n),ru(e,n))}function Cu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Au(e,n)}function Ou(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),Au(e,n)}function Pu(e,t){return Ge(e,t)}function Tu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Du(e,t,n,r){return new Tu(e,t,n,r)}function Ru(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Nu(e,t){var n=e.alternate;return null===n?((n=Du(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Lu(e,t,n,r,o,i){var l=2;if(r=e,"function"==typeof e)Ru(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case E:return _u(n.children,o,i,t);case S:l=8,o|=8;break;case F:return(e=Du(12,n,t,2|o)).elementType=F,e.lanes=i,e;case P:return(e=Du(13,n,t,o)).elementType=P,e.lanes=i,e;case T:return(e=Du(19,n,t,o)).elementType=T,e.lanes=i,e;case N:return ju(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case A:l=10;break e;case C:l=9;break e;case O:l=11;break e;case D:l=14;break e;case R:l=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Du(l,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function _u(e,t,n,r){return(e=Du(7,e,r,t)).lanes=n,e}function ju(e,t,n,r){return(e=Du(22,e,r,t)).elementType=N,e.lanes=n,e.stateNode={isHidden:!1},e}function zu(e,t,n){return(e=Du(6,e,null,t)).lanes=n,e}function Iu(e,t,n){return(t=Du(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bu(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Mu(e,t,n,r,o,a,i,l,s){return e=new Bu(e,t,n,l,s),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Du(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},za(a),e}function $u(e){if(!e)return Oo;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(No(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(No(n))return jo(e,n,t)}return t}function Hu(e,t,n,r,o,a,i,l,s){return(e=Mu(n,r,!0,e,0,a,0,l,s)).context=$u(null),n=e.current,(a=Ba(r=eu(),o=tu(n))).callback=null!=t?t:null,Ma(n,a,o),e.current.lanes=o,yt(e,o,r),ru(e,r),e}function Uu(e,t,n,r){var o=t.current,a=eu(),i=tu(o);return n=$u(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ba(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ma(o,t,i))&&(nu(e,o,i,a),$a(e,o,i)),i}function Wu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Vu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qu(e,t){Vu(e,t),(e=e.alternate)&&Vu(e,t)}Es=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||To.current)vl=!0;else{if(!(e.lanes&n||128&t.flags))return vl=!1,function(e,t,n){switch(t.tag){case 3:Pl(t),ga();break;case 5:Za(t);break;case 1:No(t.type)&&zo(t);break;case 4:Xa(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Co(Ea,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Co(ei,1&ei.current),t.flags|=128,null):n&t.child.childLanes?zl(e,t,n):(Co(ei,1&ei.current),null!==(e=Wl(e,t,n))?e.sibling:null);Co(ei,1&ei.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Hl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Co(ei,ei.current),r)break;return null;case 22:case 23:return t.lanes=0,Sl(e,t,n)}return Wl(e,t,n)}(e,t,n);vl=!!(131072&e.flags)}else vl=!1,aa&&1048576&t.flags&&ea(t,Go,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ul(e,t),e=t.pendingProps;var o=Ro(t,Po.current);Ta(t,n),o=mi(null,t,r,e,o,n);var i=yi();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,No(r)?(i=!0,zo(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,za(t),o.updater=ol,t.stateNode=o,o._reactInternals=t,sl(t,r,e,n),t=Ol(null,t,r,!0,i,n)):(t.tag=0,aa&&i&&ta(t),wl(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ul(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Ru(e)?1:0;if(null!=e){if((e=e.$$typeof)===O)return 11;if(e===D)return 14}return 2}(r),e=nl(r,e),o){case 0:t=Al(null,t,r,e,n);break e;case 1:t=Cl(null,t,r,e,n);break e;case 11:t=kl(null,t,r,e,n);break e;case 14:t=xl(null,t,r,nl(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Al(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 1:return r=t.type,o=t.pendingProps,Cl(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 3:e:{if(Pl(t),null===e)throw Error(a(387));r=t.pendingProps,o=(i=t.memoizedState).element,Ia(e,t),Ua(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Tl(e,t,r,n,o=ul(Error(a(423)),t));break e}if(r!==o){t=Tl(e,t,r,n,o=ul(Error(a(424)),t));break e}for(oa=uo(t.stateNode.containerInfo.firstChild),ra=t,aa=!0,ia=null,n=xa(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ga(),r===o){t=Wl(e,t,n);break e}wl(e,t,r,n)}t=t.child}return t;case 5:return Za(t),null===e&&ca(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,l=o.children,no(r,o)?l=null:null!==i&&no(r,i)&&(t.flags|=32),Fl(e,t),wl(e,t,l,n),t.child;case 6:return null===e&&ca(t),null;case 13:return zl(e,t,n);case 4:return Xa(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ka(t,null,r,n):wl(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,kl(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 7:return wl(e,t,t.pendingProps,n),t.child;case 8:case 12:return wl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,Co(Ea,r._currentValue),r._currentValue=l,null!==i)if(lr(i.value,l)){if(i.children===o.children&&!To.current){t=Wl(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var s=i.dependencies;if(null!==s){l=i.child;for(var u=s.firstContext;null!==u;){if(u.context===r){if(1===i.tag){(u=Ba(-1,n&-n)).tag=2;var c=i.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?u.next=u:(u.next=f.next,f.next=u),c.pending=u}}i.lanes|=n,null!==(u=i.alternate)&&(u.lanes|=n),Pa(i.return,n,t),s.lanes|=n;break}u=u.next}}else if(10===i.tag)l=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(l=i.return))throw Error(a(341));l.lanes|=n,null!==(s=l.alternate)&&(s.lanes|=n),Pa(l,n,t),l=i.sibling}else l=i.child;if(null!==l)l.return=i;else for(l=i;null!==l;){if(l===t){l=null;break}if(null!==(i=l.sibling)){i.return=l.return,l=i;break}l=l.return}i=l}wl(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ta(t,n),r=r(o=Da(o)),t.flags|=1,wl(e,t,r,n),t.child;case 14:return o=nl(r=t.type,t.pendingProps),xl(e,t,r,o=nl(r.type,o),n);case 15:return El(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nl(r,o),Ul(e,t),t.tag=1,No(r)?(e=!0,zo(t)):e=!1,Ta(t,n),il(t,r,o),sl(t,r,o,n),Ol(null,t,r,!0,e,n);case 19:return Hl(e,t,n);case 22:return Sl(e,t,n)}throw Error(a(156,t.tag))};var Gu="function"==typeof reportError?reportError:function(e){console.error(e)};function Yu(e){this._internalRoot=e}function Qu(e){this._internalRoot=e}function Xu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ku(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zu(){}function Ju(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if("function"==typeof o){var l=o;o=function(){var e=Wu(i);l.call(e)}}Uu(t,i,e,o)}else i=function(e,t,n,r,o){if(o){if("function"==typeof r){var a=r;r=function(){var e=Wu(i);a.call(e)}}var i=Hu(t,r,e,0,null,!1,0,"",Zu);return e._reactRootContainer=i,e[ho]=i.current,Hr(8===e.nodeType?e.parentNode:e),cu(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Wu(s);l.call(e)}}var s=Mu(e,0,!1,null,0,!1,0,"",Zu);return e._reactRootContainer=s,e[ho]=s.current,Hr(8===e.nodeType?e.parentNode:e),cu((function(){Uu(t,s,n,r)})),s}(n,t,e,o,r);return Wu(i)}Qu.prototype.render=Yu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Uu(e,t,null,null)},Qu.prototype.unmount=Yu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu((function(){Uu(null,e,null,null)})),t[ho]=null}},Qu.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nt.length&&0!==t&&t<Nt[n].priority;n++);Nt.splice(n,0,e),0===n&&zt(e)}},kt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(bt(t,1|n),ru(t,Ke()),!(6&Os)&&(Hs=Ke()+500,Uo()))}break;case 13:cu((function(){var t=_a(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}})),qu(e,1)}},xt=function(e){if(13===e.tag){var t=_a(e,134217728);null!==t&&nu(t,e,134217728,eu()),qu(e,134217728)}},Et=function(e){if(13===e.tag){var t=tu(e),n=_a(e,t);null!==n&&nu(n,e,t,eu()),qu(e,t)}},St=function(){return vt},Ft=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}},xe=function(e,t,n){switch(t){case"input":if(Z(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=xo(r);if(!o)throw Error(a(90));G(r),Z(r,o)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Oe=uu,Pe=cu;var ec={usingClientEntryPoint:!1,Events:[wo,ko,xo,Ae,Ce,uu]},tc={findFiberByHostInstance:vo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ve(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{ot=rc.inject(nc),at=rc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xu(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Xu(e))throw Error(a(299));var n=!1,r="",o=Gu;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Mu(e,1,!1,null,0,n,0,r,o),e[ho]=t.current,Hr(8===e.nodeType?e.parentNode:e),new Yu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return null===(e=Ve(t))?null:e.stateNode},t.flushSync=function(e){return cu(e)},t.hydrate=function(e,t,n){if(!Ku(t))throw Error(a(200));return Ju(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Xu(e))throw Error(a(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",l=Gu;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Hu(t,null,e,1,null!=n?n:null,o,0,i,l),e[ho]=t.current,Hr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Qu(t)},t.render=function(e,t,n){if(!Ku(t))throw Error(a(200));return Ju(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ku(e))throw Error(a(40));return!!e._reactRootContainer&&(cu((function(){Ju(null,null,e,!1,(function(){e._reactRootContainer=null,e[ho]=null}))})),!0)},t.unstable_batchedUpdates=uu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ku(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return Ju(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},873:(e,t,n)=>{"use strict";var r=n(144);t.H=r.createRoot,r.hydrateRoot},144:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(400)},320:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,g=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case a:case l:case i:case p:return e;default:switch(e=e&&e.$$typeof){case u:case d:case m:case h:case s:return e;default:return t}}case o:return t}}}function x(e){return k(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=s,t.Element=r,t.ForwardRef=d,t.Fragment=a,t.Lazy=m,t.Memo=h,t.Portal=o,t.Profiler=l,t.StrictMode=i,t.Suspense=p,t.isAsyncMode=function(e){return x(e)||k(e)===c},t.isConcurrentMode=x,t.isContextConsumer=function(e){return k(e)===u},t.isContextProvider=function(e){return k(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return k(e)===d},t.isFragment=function(e){return k(e)===a},t.isLazy=function(e){return k(e)===m},t.isMemo=function(e){return k(e)===h},t.isPortal=function(e){return k(e)===o},t.isProfiler=function(e){return k(e)===l},t.isStrictMode=function(e){return k(e)===i},t.isSuspense=function(e){return k(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===l||e===i||e===p||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===s||e.$$typeof===u||e.$$typeof===d||e.$$typeof===b||e.$$typeof===v||e.$$typeof===w||e.$$typeof===y)},t.typeOf=k},524:(e,t,n)=>{"use strict";e.exports=n(320)},340:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,s=/^\s+|\s+$/g,u="";function c(e){return e?e.replace(s,u):u}e.exports=function(e,s){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];s=s||{};var f=1,d=1;function p(e){var t=e.match(n);t&&(f+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function g(){var e={line:f,column:d};return function(t){return t.position=new h(e),v(),t}}function h(e){this.start=e,this.end={line:f,column:d},this.source=s.source}h.prototype.content=e;var m=[];function y(t){var n=new Error(s.source+":"+f+":"+d+": "+t);if(n.reason=t,n.filename=s.source,n.line=f,n.column=d,n.source=e,!s.silent)throw n;m.push(n)}function b(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function v(){b(r)}function w(e){var t;for(e=e||[];t=k();)!1!==t&&e.push(t);return e}function k(){var t=g();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;u!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,u===e.charAt(n-1))return y("End of comment missing");var r=e.slice(2,n-2);return d+=2,p(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}function x(){var e=g(),n=b(o);if(n){if(k(),!b(a))return y("property missing ':'");var r=b(i),s=e({type:"declaration",property:c(n[0].replace(t,u)),value:r?c(r[0].replace(t,u)):u});return b(l),s}}return v(),function(){var e,t=[];for(w(t);e=x();)!1!==e&&(t.push(e),w(t));return t}()}},871:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case a:case l:case i:case d:case p:return e;default:switch(e=e&&e.$$typeof){case c:case u:case f:case h:case g:case s:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.ContextConsumer=u,t.ContextProvider=s,t.Element=r,t.ForwardRef=f,t.Fragment=a,t.Lazy=h,t.Memo=g,t.Portal=o,t.Profiler=l,t.StrictMode=i,t.Suspense=d,t.SuspenseList=p,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return y(e)===u},t.isContextProvider=function(e){return y(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return y(e)===f},t.isFragment=function(e){return y(e)===a},t.isLazy=function(e){return y(e)===h},t.isMemo=function(e){return y(e)===g},t.isPortal=function(e){return y(e)===o},t.isProfiler=function(e){return y(e)===l},t.isStrictMode=function(e){return y(e)===i},t.isSuspense=function(e){return y(e)===d},t.isSuspenseList=function(e){return y(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===l||e===i||e===d||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===s||e.$$typeof===u||e.$$typeof===f||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=y},819:(e,t,n)=>{"use strict";e.exports=n(871)},532:(e,t,n)=>{var r=n(340);function o(e,t){var n,o=null;if(!e||"string"!=typeof e)return o;for(var a,i,l=r(e),s="function"==typeof t,u=0,c=l.length;u<c;u++)a=(n=l[u]).property,i=n.value,s?t(a,i,n):i&&(o||(o={}),o[a]=i);return o}e.exports=o,e.exports.default=o},335:(e,t,n)=>{"use strict";var r=n(41),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,a={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)i.call(t,r)&&!s.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:c,props:a,_owner:l.current}}t.Fragment=a,t.jsx=u,t.jsxs=u},304:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator,g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,m={};function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||g}function b(){}function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=y.prototype;var w=v.prototype=new b;w.constructor=v,h(w,y.prototype),w.isPureReactComponent=!0;var k=Array.isArray,x=Object.prototype.hasOwnProperty,E={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function F(e,t,r){var o,a={},i=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(i=""+t.key),t)x.call(t,o)&&!S.hasOwnProperty(o)&&(a[o]=t[o]);var s=arguments.length-2;if(1===s)a.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];a.children=u}if(e&&e.defaultProps)for(o in s=e.defaultProps)void 0===a[o]&&(a[o]=s[o]);return{$$typeof:n,type:e,key:i,ref:l,props:a,_owner:E.current}}function A(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var C=/\/+/g;function O(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function P(e,t,o,a,i){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case n:case r:s=!0}}if(s)return i=i(s=e),e=""===a?"."+O(s,0):a,k(i)?(o="",null!=e&&(o=e.replace(C,"$&/")+"/"),P(i,t,o,"",(function(e){return e}))):null!=i&&(A(i)&&(i=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,o+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(C,"$&/")+"/")+e)),t.push(i)),1;if(s=0,a=""===a?".":a+":",k(e))for(var u=0;u<e.length;u++){var c=a+O(l=e[u],u);s+=P(l,t,o,c,i)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(l=e.next()).done;)s+=P(l=l.value,t,o,c=a+O(l,u++),i);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function T(e,t,n){if(null==e)return e;var r=[],o=0;return P(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function D(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R={current:null},N={transition:null},L={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:N,ReactCurrentOwner:E};function _(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:T,forEach:function(e,t,n){T(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!A(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=o,t.Profiler=i,t.PureComponent=v,t.StrictMode=a,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,t.act=_,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=h({},e.props),a=e.key,i=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,l=E.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)x.call(t,u)&&!S.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==s?s[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){s=Array(u);for(var c=0;c<u;c++)s[c]=arguments[c+2];o.children=s}return{$$typeof:n,type:e.type,key:a,ref:i,props:o,_owner:l}},t.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=F,t.createFactory=function(e){var t=F.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=A,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:D}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=N.transition;N.transition={};try{e()}finally{N.transition=t}},t.unstable_act=_,t.useCallback=function(e,t){return R.current.useCallback(e,t)},t.useContext=function(e){return R.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return R.current.useDeferredValue(e)},t.useEffect=function(e,t){return R.current.useEffect(e,t)},t.useId=function(){return R.current.useId()},t.useImperativeHandle=function(e,t,n){return R.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return R.current.useMemo(e,t)},t.useReducer=function(e,t,n){return R.current.useReducer(e,t,n)},t.useRef=function(e){return R.current.useRef(e)},t.useState=function(e){return R.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return R.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return R.current.useTransition()},t.version="18.3.1"},41:(e,t,n)=>{"use strict";e.exports=n(304)},85:(e,t,n)=>{"use strict";e.exports=n(335)},568:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<a(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,i=o>>>1;r<i;){var l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(0>a(s,n))u<o&&0>a(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(u<o&&0>a(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}var u=[],c=[],f=1,d=null,p=3,g=!1,h=!1,m=!1,y="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function k(e){if(m=!1,w(e),!h)if(null!==r(u))h=!0,N(x);else{var t=r(c);null!==t&&L(k,t.startTime-e)}}function x(e,n){h=!1,m&&(m=!1,b(A),A=-1),g=!0;var a=p;try{for(w(n),d=r(u);null!==d&&(!(d.expirationTime>n)||e&&!P());){var i=d.callback;if("function"==typeof i){d.callback=null,p=d.priorityLevel;var l=i(d.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?d.callback=l:d===r(u)&&o(u),w(n)}else o(u);d=r(u)}if(null!==d)var s=!0;else{var f=r(c);null!==f&&L(k,f.startTime-n),s=!1}return s}finally{d=null,p=a,g=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,S=!1,F=null,A=-1,C=5,O=-1;function P(){return!(t.unstable_now()-O<C)}function T(){if(null!==F){var e=t.unstable_now();O=e;var n=!0;try{n=F(!0,e)}finally{n?E():(S=!1,F=null)}}else S=!1}if("function"==typeof v)E=function(){v(T)};else if("undefined"!=typeof MessageChannel){var D=new MessageChannel,R=D.port2;D.port1.onmessage=T,E=function(){R.postMessage(null)}}else E=function(){y(T,0)};function N(e){F=e,S||(S=!0,E())}function L(e,n){A=y((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){h||g||(h=!0,N(x))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,a){var i=t.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?i+a:i,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:f++,callback:o,priorityLevel:e,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>i?(e.sortIndex=a,n(c,e),null===r(u)&&e===r(c)&&(m?(b(A),A=-1):m=!0,L(k,a-i))):(e.sortIndex=l,n(u,e),h||g||(h=!0,N(x))),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},967:(e,t,n)=>{"use strict";e.exports=n(568)}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={exports:{}};return n[e](a,a.exports,o),a.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var a=Object.create(null);o.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var l=2&r&&n;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((e=>i[e]=()=>n[e]));return i.default=()=>n,o.d(a,i),a},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";o.r(a),o.d(a,{matchesDeflectorScript:()=>NF});var e={};o.r(e),o.d(e,{attentionMarkers:()=>ep,contentInitial:()=>Yd,disable:()=>tp,document:()=>Gd,flow:()=>Xd,flowInitial:()=>Qd,insideSpan:()=>Jd,string:()=>Kd,text:()=>Zd});var t={};o.r(t),o.d(t,{boolean:()=>Kp,booleanish:()=>Zp,commaOrSpaceSeparated:()=>rg,commaSeparated:()=>ng,number:()=>eg,overloadedBoolean:()=>Jp,spaceSeparated:()=>tg});var n=o(85);const r=(e,t=0,n=1)=>d(p(t,e),n),i=e=>{e._clipped=!1,e._unclipped=e.slice(0);for(let t=0;t<=3;t++)t<3?((e[t]<0||e[t]>255)&&(e._clipped=!0),e[t]=r(e[t],0,255)):3===t&&(e[t]=r(e[t],0,1));return e},l={};for(let e of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])l[`[object ${e}]`]=e.toLowerCase();function s(e){return l[Object.prototype.toString.call(e)]||"object"}const u=(e,t=null)=>e.length>=3?Array.prototype.slice.call(e):"object"==s(e[0])&&t?t.split("").filter((t=>void 0!==e[0][t])).map((t=>e[0][t])):e[0],c=e=>{if(e.length<2)return null;const t=e.length-1;return"string"==s(e[t])?e[t].toLowerCase():null},{PI:f,min:d,max:p}=Math,g=2*f,h=f/3,m=f/180,y=180/f,b={format:{},autodetect:[]},v=class{constructor(...e){const t=this;if("object"===s(e[0])&&e[0].constructor&&e[0].constructor===this.constructor)return e[0];let n=c(e),r=!1;if(!n){r=!0,b.sorted||(b.autodetect=b.autodetect.sort(((e,t)=>t.p-e.p)),b.sorted=!0);for(let t of b.autodetect)if(n=t.test(...e),n)break}if(!b.format[n])throw new Error("unknown format: "+e);{const o=b.format[n].apply(null,r?e:e.slice(0,-1));t._rgb=i(o)}3===t._rgb.length&&t._rgb.push(1)}toString(){return"function"==s(this.hex)?this.hex():`[${this._rgb.join(",")}]`}},w=(...e)=>new w.Color(...e);w.Color=v,w.version="2.6.0";const k=w,{max:x}=Math;v.prototype.cmyk=function(){return((...e)=>{let[t,n,r]=u(e,"rgb");t/=255,n/=255,r/=255;const o=1-x(t,x(n,r)),a=o<1?1/(1-o):0;return[(1-t-o)*a,(1-n-o)*a,(1-r-o)*a,o]})(this._rgb)},k.cmyk=(...e)=>new v(...e,"cmyk"),b.format.cmyk=(...e)=>{e=u(e,"cmyk");const[t,n,r,o]=e,a=e.length>4?e[4]:1;return 1===o?[0,0,0,a]:[t>=1?0:255*(1-t)*(1-o),n>=1?0:255*(1-n)*(1-o),r>=1?0:255*(1-r)*(1-o),a]},b.autodetect.push({p:2,test:(...e)=>{if("array"===s(e=u(e,"cmyk"))&&4===e.length)return"cmyk"}});const E=e=>Math.round(100*e)/100,S=(...e)=>{e=u(e,"rgba");let[t,n,r]=e;t/=255,n/=255,r/=255;const o=d(t,n,r),a=p(t,n,r),i=(a+o)/2;let l,s;return a===o?(l=0,s=Number.NaN):l=i<.5?(a-o)/(a+o):(a-o)/(2-a-o),t==a?s=(n-r)/(a-o):n==a?s=2+(r-t)/(a-o):r==a&&(s=4+(t-n)/(a-o)),s*=60,s<0&&(s+=360),e.length>3&&void 0!==e[3]?[s,l,i,e[3]]:[s,l,i]},{round:F}=Math,A=(...e)=>{const t=u(e,"rgba");let n=c(e)||"rgb";return"hsl"==n.substr(0,3)?((...e)=>{const t=u(e,"hsla");let n=c(e)||"lsa";return t[0]=E(t[0]||0),t[1]=E(100*t[1])+"%",t[2]=E(100*t[2])+"%","hsla"===n||t.length>3&&t[3]<1?(t[3]=t.length>3?t[3]:1,n="hsla"):t.length=3,`${n}(${t.join(",")})`})(S(t),n):(t[0]=F(t[0]),t[1]=F(t[1]),t[2]=F(t[2]),("rgba"===n||t.length>3&&t[3]<1)&&(t[3]=t.length>3?t[3]:1,n="rgba"),`${n}(${t.slice(0,"rgb"===n?3:4).join(",")})`)},{round:C}=Math,O=(...e)=>{e=u(e,"hsl");const[t,n,r]=e;let o,a,i;if(0===n)o=a=i=255*r;else{const e=[0,0,0],l=[0,0,0],s=r<.5?r*(1+n):r+n-r*n,u=2*r-s,c=t/360;e[0]=c+1/3,e[1]=c,e[2]=c-1/3;for(let t=0;t<3;t++)e[t]<0&&(e[t]+=1),e[t]>1&&(e[t]-=1),6*e[t]<1?l[t]=u+6*(s-u)*e[t]:2*e[t]<1?l[t]=s:3*e[t]<2?l[t]=u+(s-u)*(2/3-e[t])*6:l[t]=u;[o,a,i]=[C(255*l[0]),C(255*l[1]),C(255*l[2])]}return e.length>3?[o,a,i,e[3]]:[o,a,i,1]},P=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,T=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,D=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,R=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,N=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,L=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,{round:_}=Math,j=e=>{let t;if(e=e.toLowerCase().trim(),b.format.named)try{return b.format.named(e)}catch(e){}if(t=e.match(P)){const e=t.slice(1,4);for(let t=0;t<3;t++)e[t]=+e[t];return e[3]=1,e}if(t=e.match(T)){const e=t.slice(1,5);for(let t=0;t<4;t++)e[t]=+e[t];return e}if(t=e.match(D)){const e=t.slice(1,4);for(let t=0;t<3;t++)e[t]=_(2.55*e[t]);return e[3]=1,e}if(t=e.match(R)){const e=t.slice(1,5);for(let t=0;t<3;t++)e[t]=_(2.55*e[t]);return e[3]=+e[3],e}if(t=e.match(N)){const e=t.slice(1,4);e[1]*=.01,e[2]*=.01;const n=O(e);return n[3]=1,n}if(t=e.match(L)){const e=t.slice(1,4);e[1]*=.01,e[2]*=.01;const n=O(e);return n[3]=+t[4],n}};j.test=e=>P.test(e)||T.test(e)||D.test(e)||R.test(e)||N.test(e)||L.test(e);const z=j;v.prototype.css=function(e){return A(this._rgb,e)},k.css=(...e)=>new v(...e,"css"),b.format.css=z,b.autodetect.push({p:5,test:(e,...t)=>{if(!t.length&&"string"===s(e)&&z.test(e))return"css"}}),b.format.gl=(...e)=>{const t=u(e,"rgba");return t[0]*=255,t[1]*=255,t[2]*=255,t},k.gl=(...e)=>new v(...e,"gl"),v.prototype.gl=function(){const e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]};const{floor:I}=Math;v.prototype.hcg=function(){return((...e)=>{const[t,n,r]=u(e,"rgb"),o=d(t,n,r),a=p(t,n,r),i=a-o,l=100*i/255,s=o/(255-i)*100;let c;return 0===i?c=Number.NaN:(t===a&&(c=(n-r)/i),n===a&&(c=2+(r-t)/i),r===a&&(c=4+(t-n)/i),c*=60,c<0&&(c+=360)),[c,l,s]})(this._rgb)},k.hcg=(...e)=>new v(...e,"hcg"),b.format.hcg=(...e)=>{e=u(e,"hcg");let t,n,r,[o,a,i]=e;i*=255;const l=255*a;if(0===a)t=n=r=i;else{360===o&&(o=0),o>360&&(o-=360),o<0&&(o+=360),o/=60;const e=I(o),s=o-e,u=i*(1-a),c=u+l*(1-s),f=u+l*s,d=u+l;switch(e){case 0:[t,n,r]=[d,f,u];break;case 1:[t,n,r]=[c,d,u];break;case 2:[t,n,r]=[u,d,f];break;case 3:[t,n,r]=[u,c,d];break;case 4:[t,n,r]=[f,u,d];break;case 5:[t,n,r]=[d,u,c]}}return[t,n,r,e.length>3?e[3]:1]},b.autodetect.push({p:1,test:(...e)=>{if("array"===s(e=u(e,"hcg"))&&3===e.length)return"hcg"}});const B=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,M=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,$=e=>{if(e.match(B)){4!==e.length&&7!==e.length||(e=e.substr(1)),3===e.length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const t=parseInt(e,16);return[t>>16,t>>8&255,255&t,1]}if(e.match(M)){5!==e.length&&9!==e.length||(e=e.substr(1)),4===e.length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const t=parseInt(e,16);return[t>>24&255,t>>16&255,t>>8&255,Math.round((255&t)/255*100)/100]}throw new Error(`unknown hex color: ${e}`)},{round:H}=Math,U=(...e)=>{let[t,n,r,o]=u(e,"rgba"),a=c(e)||"auto";void 0===o&&(o=1),"auto"===a&&(a=o<1?"rgba":"rgb"),t=H(t),n=H(n),r=H(r);let i="000000"+(t<<16|n<<8|r).toString(16);i=i.substr(i.length-6);let l="0"+H(255*o).toString(16);switch(l=l.substr(l.length-2),a.toLowerCase()){case"rgba":return`#${i}${l}`;case"argb":return`#${l}${i}`;default:return`#${i}`}};v.prototype.hex=function(e){return U(this._rgb,e)},k.hex=(...e)=>new v(...e,"hex"),b.format.hex=$,b.autodetect.push({p:4,test:(e,...t)=>{if(!t.length&&"string"===s(e)&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});const{cos:W}=Math,{min:V,sqrt:q,acos:G}=Math;v.prototype.hsi=function(){return((...e)=>{let t,[n,r,o]=u(e,"rgb");n/=255,r/=255,o/=255;const a=V(n,r,o),i=(n+r+o)/3,l=i>0?1-a/i:0;return 0===l?t=NaN:(t=(n-r+(n-o))/2,t/=q((n-r)*(n-r)+(n-o)*(r-o)),t=G(t),o>r&&(t=g-t),t/=g),[360*t,l,i]})(this._rgb)},k.hsi=(...e)=>new v(...e,"hsi"),b.format.hsi=(...e)=>{e=u(e,"hsi");let t,n,o,[a,i,l]=e;return isNaN(a)&&(a=0),isNaN(i)&&(i=0),a>360&&(a-=360),a<0&&(a+=360),a/=360,a<1/3?(o=(1-i)/3,t=(1+i*W(g*a)/W(h-g*a))/3,n=1-(o+t)):a<2/3?(a-=1/3,t=(1-i)/3,n=(1+i*W(g*a)/W(h-g*a))/3,o=1-(t+n)):(a-=2/3,n=(1-i)/3,o=(1+i*W(g*a)/W(h-g*a))/3,t=1-(n+o)),t=r(l*t*3),n=r(l*n*3),o=r(l*o*3),[255*t,255*n,255*o,e.length>3?e[3]:1]},b.autodetect.push({p:2,test:(...e)=>{if("array"===s(e=u(e,"hsi"))&&3===e.length)return"hsi"}}),v.prototype.hsl=function(){return S(this._rgb)},k.hsl=(...e)=>new v(...e,"hsl"),b.format.hsl=O,b.autodetect.push({p:2,test:(...e)=>{if("array"===s(e=u(e,"hsl"))&&3===e.length)return"hsl"}});const{floor:Y}=Math,{min:Q,max:X}=Math;v.prototype.hsv=function(){return((...e)=>{e=u(e,"rgb");let[t,n,r]=e;const o=Q(t,n,r),a=X(t,n,r),i=a-o;let l,s,c;return c=a/255,0===a?(l=Number.NaN,s=0):(s=i/a,t===a&&(l=(n-r)/i),n===a&&(l=2+(r-t)/i),r===a&&(l=4+(t-n)/i),l*=60,l<0&&(l+=360)),[l,s,c]})(this._rgb)},k.hsv=(...e)=>new v(...e,"hsv"),b.format.hsv=(...e)=>{e=u(e,"hsv");let t,n,r,[o,a,i]=e;if(i*=255,0===a)t=n=r=i;else{360===o&&(o=0),o>360&&(o-=360),o<0&&(o+=360),o/=60;const e=Y(o),l=o-e,s=i*(1-a),u=i*(1-a*l),c=i*(1-a*(1-l));switch(e){case 0:[t,n,r]=[i,c,s];break;case 1:[t,n,r]=[u,i,s];break;case 2:[t,n,r]=[s,i,c];break;case 3:[t,n,r]=[s,u,i];break;case 4:[t,n,r]=[c,s,i];break;case 5:[t,n,r]=[i,s,u]}}return[t,n,r,e.length>3?e[3]:1]},b.autodetect.push({p:2,test:(...e)=>{if("array"===s(e=u(e,"hsv"))&&3===e.length)return"hsv"}});const K=.95047,Z=1.08883,J=.137931034,ee=.12841855,{pow:te}=Math,ne=e=>255*(e<=.00304?12.92*e:1.055*te(e,1/2.4)-.055),re=e=>e>.206896552?e*e*e:ee*(e-J),oe=(...e)=>{e=u(e,"lab");const[t,n,r]=e;let o,a,i,l,s,c;return a=(t+16)/116,o=isNaN(n)?a:a+n/500,i=isNaN(r)?a:a-r/200,a=1*re(a),o=K*re(o),i=Z*re(i),l=ne(3.2404542*o-1.5371385*a-.4985314*i),s=ne(-.969266*o+1.8760108*a+.041556*i),c=ne(.0556434*o-.2040259*a+1.0572252*i),[l,s,c,e.length>3?e[3]:1]},{pow:ae}=Math,ie=e=>(e/=255)<=.04045?e/12.92:ae((e+.055)/1.055,2.4),le=e=>e>.008856452?ae(e,1/3):e/ee+J,se=(...e)=>{const[t,n,r]=u(e,"rgb"),[o,a,i]=((e,t,n)=>(e=ie(e),t=ie(t),n=ie(n),[le((.4124564*e+.3575761*t+.1804375*n)/K),le((.2126729*e+.7151522*t+.072175*n)/1),le((.0193339*e+.119192*t+.9503041*n)/Z)]))(t,n,r),l=116*a-16;return[l<0?0:l,500*(o-a),200*(a-i)]};v.prototype.lab=function(){return se(this._rgb)},k.lab=(...e)=>new v(...e,"lab"),b.format.lab=oe,b.autodetect.push({p:2,test:(...e)=>{if("array"===s(e=u(e,"lab"))&&3===e.length)return"lab"}});const{sin:ue,cos:ce}=Math,fe=(...e)=>{let[t,n,r]=u(e,"lch");return isNaN(r)&&(r=0),r*=m,[t,ce(r)*n,ue(r)*n]},de=(...e)=>{e=u(e,"lch");const[t,n,r]=e,[o,a,i]=fe(t,n,r),[l,s,c]=oe(o,a,i);return[l,s,c,e.length>3?e[3]:1]},{sqrt:pe,atan2:ge,round:he}=Math,me=(...e)=>{const[t,n,r]=u(e,"lab"),o=pe(n*n+r*r);let a=(ge(r,n)*y+360)%360;return 0===he(1e4*o)&&(a=Number.NaN),[t,o,a]},ye=(...e)=>{const[t,n,r]=u(e,"rgb"),[o,a,i]=se(t,n,r);return me(o,a,i)};v.prototype.lch=function(){return ye(this._rgb)},v.prototype.hcl=function(){return ye(this._rgb).reverse()},k.lch=(...e)=>new v(...e,"lch"),k.hcl=(...e)=>new v(...e,"hcl"),b.format.lch=de,b.format.hcl=(...e)=>{const t=u(e,"hcl").reverse();return de(...t)},["lch","hcl"].forEach((e=>b.autodetect.push({p:2,test:(...t)=>{if("array"===s(t=u(t,e))&&3===t.length)return e}})));const be={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};v.prototype.name=function(){const e=U(this._rgb,"rgb");for(let t of Object.keys(be))if(be[t]===e)return t.toLowerCase();return e},b.format.named=e=>{if(e=e.toLowerCase(),be[e])return $(be[e]);throw new Error("unknown color name: "+e)},b.autodetect.push({p:5,test:(e,...t)=>{if(!t.length&&"string"===s(e)&&be[e.toLowerCase()])return"named"}});v.prototype.num=function(){return((...e)=>{const[t,n,r]=u(e,"rgb");return(t<<16)+(n<<8)+r})(this._rgb)},k.num=(...e)=>new v(...e,"num"),b.format.num=e=>{if("number"==s(e)&&e>=0&&e<=16777215)return[e>>16,e>>8&255,255&e,1];throw new Error("unknown num color: "+e)},b.autodetect.push({p:5,test:(...e)=>{if(1===e.length&&"number"===s(e[0])&&e[0]>=0&&e[0]<=16777215)return"num"}});const{round:ve}=Math;v.prototype.rgb=function(e=!0){return!1===e?this._rgb.slice(0,3):this._rgb.slice(0,3).map(ve)},v.prototype.rgba=function(e=!0){return this._rgb.slice(0,4).map(((t,n)=>n<3?!1===e?t:ve(t):t))},k.rgb=(...e)=>new v(...e,"rgb"),b.format.rgb=(...e)=>{const t=u(e,"rgba");return void 0===t[3]&&(t[3]=1),t},b.autodetect.push({p:3,test:(...e)=>{if("array"===s(e=u(e,"rgba"))&&(3===e.length||4===e.length&&"number"==s(e[3])&&e[3]>=0&&e[3]<=1))return"rgb"}});const{log:we}=Math,ke=e=>{const t=e/100;let n,r,o;return t<66?(n=255,r=t<6?0:-155.25485562709179-.44596950469579133*(r=t-2)+104.49216199393888*we(r),o=t<20?0:.8274096064007395*(o=t-10)-254.76935184120902+115.67994401066147*we(o)):(n=351.97690566805693+.114206453784165*(n=t-55)-40.25366309332127*we(n),r=325.4494125711974+.07943456536662342*(r=t-50)-28.0852963507957*we(r),o=255),[n,r,o,1]},{round:xe}=Math;v.prototype.temp=v.prototype.kelvin=v.prototype.temperature=function(){return((...e)=>{const t=u(e,"rgb"),n=t[0],r=t[2];let o,a=1e3,i=4e4;for(;i-a>.4;){o=.5*(i+a);const e=ke(o);e[2]/e[0]>=r/n?i=o:a=o}return xe(o)})(this._rgb)},k.temp=k.kelvin=k.temperature=(...e)=>new v(...e,"temp"),b.format.temp=b.format.kelvin=b.format.temperature=ke;const{pow:Ee,sign:Se}=Math,Fe=(...e)=>{e=u(e,"lab");const[t,n,r]=e,o=Ee(t+.3963377774*n+.2158037573*r,3),a=Ee(t-.1055613458*n-.0638541728*r,3),i=Ee(t-.0894841775*n-1.291485548*r,3);return[255*Ae(4.0767416621*o-3.3077115913*a+.2309699292*i),255*Ae(-1.2684380046*o+2.6097574011*a-.3413193965*i),255*Ae(-.0041960863*o-.7034186147*a+1.707614701*i),e.length>3?e[3]:1]};function Ae(e){const t=Math.abs(e);return t>.0031308?(Se(e)||1)*(1.055*Ee(t,1/2.4)-.055):12.92*e}const{cbrt:Ce,pow:Oe,sign:Pe}=Math,Te=(...e)=>{const[t,n,r]=u(e,"rgb"),[o,a,i]=[De(t/255),De(n/255),De(r/255)],l=Ce(.4122214708*o+.5363325363*a+.0514459929*i),s=Ce(.2119034982*o+.6806995451*a+.1073969566*i),c=Ce(.0883024619*o+.2817188376*a+.6299787005*i);return[.2104542553*l+.793617785*s-.0040720468*c,1.9779984951*l-2.428592205*s+.4505937099*c,.0259040371*l+.7827717662*s-.808675766*c]};function De(e){const t=Math.abs(e);return t<.04045?e/12.92:(Pe(e)||1)*Oe((t+.055)/1.055,2.4)}v.prototype.oklab=function(){return Te(this._rgb)},k.oklab=(...e)=>new v(...e,"oklab"),b.format.oklab=Fe,b.autodetect.push({p:3,test:(...e)=>{if("array"===s(e=u(e,"oklab"))&&3===e.length)return"oklab"}});v.prototype.oklch=function(){return((...e)=>{const[t,n,r]=u(e,"rgb"),[o,a,i]=Te(t,n,r);return me(o,a,i)})(this._rgb)},k.oklch=(...e)=>new v(...e,"oklch"),b.format.oklch=(...e)=>{e=u(e,"lch");const[t,n,r]=e,[o,a,i]=fe(t,n,r),[l,s,c]=Fe(o,a,i);return[l,s,c,e.length>3?e[3]:1]},b.autodetect.push({p:3,test:(...e)=>{if("array"===s(e=u(e,"oklch"))&&3===e.length)return"oklch"}}),v.prototype.alpha=function(e,t=!1){return void 0!==e&&"number"===s(e)?t?(this._rgb[3]=e,this):new v([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},v.prototype.clipped=function(){return this._rgb._clipped||!1},v.prototype.darken=function(e=1){const t=this.lab();return t[0]-=18*e,new v(t,"lab").alpha(this.alpha(),!0)},v.prototype.brighten=function(e=1){return this.darken(-e)},v.prototype.darker=v.prototype.darken,v.prototype.brighter=v.prototype.brighten,v.prototype.get=function(e){const[t,n]=e.split("."),r=this[t]();if(n){const e=t.indexOf(n)-("ok"===t.substr(0,2)?2:0);if(e>-1)return r[e];throw new Error(`unknown channel ${n} in mode ${t}`)}return r};const{pow:Re}=Math;v.prototype.luminance=function(e,t="rgb"){if(void 0!==e&&"number"===s(e)){if(0===e)return new v([0,0,0,this._rgb[3]],"rgb");if(1===e)return new v([255,255,255,this._rgb[3]],"rgb");let n=this.luminance(),r=20;const o=(n,a)=>{const i=n.interpolate(a,.5,t),l=i.luminance();return Math.abs(e-l)<1e-7||!r--?i:l>e?o(n,i):o(i,a)},a=(n>e?o(new v([0,0,0]),this):o(this,new v([255,255,255]))).rgb();return new v([...a,this._rgb[3]])}return Ne(...this._rgb.slice(0,3))};const Ne=(e,t,n)=>.2126*(e=Le(e))+.7152*(t=Le(t))+.0722*Le(n),Le=e=>(e/=255)<=.03928?e/12.92:Re((e+.055)/1.055,2.4),_e={},je=(e,t,n=.5,...r)=>{let o=r[0]||"lrgb";if(_e[o]||r.length||(o=Object.keys(_e)[0]),!_e[o])throw new Error(`interpolation mode ${o} is not defined`);return"object"!==s(e)&&(e=new v(e)),"object"!==s(t)&&(t=new v(t)),_e[o](e,t,n).alpha(e.alpha()+n*(t.alpha()-e.alpha()))};v.prototype.mix=v.prototype.interpolate=function(e,t=.5,...n){return je(this,e,t,...n)},v.prototype.premultiply=function(e=!1){const t=this._rgb,n=t[3];return e?(this._rgb=[t[0]*n,t[1]*n,t[2]*n,n],this):new v([t[0]*n,t[1]*n,t[2]*n,n],"rgb")},v.prototype.saturate=function(e=1){const t=this.lch();return t[1]+=18*e,t[1]<0&&(t[1]=0),new v(t,"lch").alpha(this.alpha(),!0)},v.prototype.desaturate=function(e=1){return this.saturate(-e)},v.prototype.set=function(e,t,n=!1){const[r,o]=e.split("."),a=this[r]();if(o){const e=r.indexOf(o)-("ok"===r.substr(0,2)?2:0);if(e>-1){if("string"==s(t))switch(t.charAt(0)){case"+":case"-":a[e]+=+t;break;case"*":a[e]*=+t.substr(1);break;case"/":a[e]/=+t.substr(1);break;default:a[e]=+t}else{if("number"!==s(t))throw new Error("unsupported value for Color.set");a[e]=t}const o=new v(a,r);return n?(this._rgb=o._rgb,this):o}throw new Error(`unknown channel ${o} in mode ${r}`)}return a},v.prototype.tint=function(e=.5,...t){return je(this,"white",e,...t)},v.prototype.shade=function(e=.5,...t){return je(this,"black",e,...t)};_e.rgb=(e,t,n)=>{const r=e._rgb,o=t._rgb;return new v(r[0]+n*(o[0]-r[0]),r[1]+n*(o[1]-r[1]),r[2]+n*(o[2]-r[2]),"rgb")};const{sqrt:ze,pow:Ie}=Math;_e.lrgb=(e,t,n)=>{const[r,o,a]=e._rgb,[i,l,s]=t._rgb;return new v(ze(Ie(r,2)*(1-n)+Ie(i,2)*n),ze(Ie(o,2)*(1-n)+Ie(l,2)*n),ze(Ie(a,2)*(1-n)+Ie(s,2)*n),"rgb")};_e.lab=(e,t,n)=>{const r=e.lab(),o=t.lab();return new v(r[0]+n*(o[0]-r[0]),r[1]+n*(o[1]-r[1]),r[2]+n*(o[2]-r[2]),"lab")};const Be=(e,t,n,r)=>{let o,a,i,l,s,u,c,f,d,p,g,h;return"hsl"===r?(o=e.hsl(),a=t.hsl()):"hsv"===r?(o=e.hsv(),a=t.hsv()):"hcg"===r?(o=e.hcg(),a=t.hcg()):"hsi"===r?(o=e.hsi(),a=t.hsi()):"lch"===r||"hcl"===r?(r="hcl",o=e.hcl(),a=t.hcl()):"oklch"===r&&(o=e.oklch().reverse(),a=t.oklch().reverse()),"h"!==r.substr(0,1)&&"oklch"!==r||([i,s,c]=o,[l,u,f]=a),isNaN(i)||isNaN(l)?isNaN(i)?isNaN(l)?p=Number.NaN:(p=l,1!=c&&0!=c||"hsv"==r||(d=u)):(p=i,1!=f&&0!=f||"hsv"==r||(d=s)):(h=l>i&&l-i>180?l-(i+360):l<i&&i-l>180?l+360-i:l-i,p=i+n*h),void 0===d&&(d=s+n*(u-s)),g=c+n*(f-c),new v("oklch"===r?[g,d,p]:[p,d,g],r)},Me=(e,t,n)=>Be(e,t,n,"lch");_e.lch=Me,_e.hcl=Me;_e.num=(e,t,n)=>{const r=e.num(),o=t.num();return new v(r+n*(o-r),"num")};_e.hcg=(e,t,n)=>Be(e,t,n,"hcg");_e.hsi=(e,t,n)=>Be(e,t,n,"hsi");_e.hsl=(e,t,n)=>Be(e,t,n,"hsl");_e.hsv=(e,t,n)=>Be(e,t,n,"hsv");_e.oklab=(e,t,n)=>{const r=e.oklab(),o=t.oklab();return new v(r[0]+n*(o[0]-r[0]),r[1]+n*(o[1]-r[1]),r[2]+n*(o[2]-r[2]),"oklab")};_e.oklch=(e,t,n)=>Be(e,t,n,"oklch");const{pow:$e,sqrt:He,PI:Ue,cos:We,sin:Ve,atan2:qe}=Math,{pow:Ge}=Math;function Ye(e){let t="rgb",n=k("#ccc"),o=0,a=[0,1],i=[],l=[0,0],u=!1,c=[],f=!1,d=0,p=1,g=!1,h={},m=!0,y=1;const b=function(e){if((e=e||["#fff","#000"])&&"string"===s(e)&&k.brewer&&k.brewer[e.toLowerCase()]&&(e=k.brewer[e.toLowerCase()]),"array"===s(e)){1===e.length&&(e=[e[0],e[0]]),e=e.slice(0);for(let t=0;t<e.length;t++)e[t]=k(e[t]);i.length=0;for(let t=0;t<e.length;t++)i.push(t/(e.length-1))}return E(),c=e};let v=e=>e,w=e=>e;const x=function(e,o){let a,f;if(null==o&&(o=!1),isNaN(e)||null===e)return n;f=o?e:u&&u.length>2?function(e){if(null!=u){const t=u.length-1;let n=0;for(;n<t&&e>=u[n];)n++;return n-1}return 0}(e)/(u.length-2):p!==d?(e-d)/(p-d):1,f=w(f),o||(f=v(f)),1!==y&&(f=Ge(f,y)),f=l[0]+f*(1-l[0]-l[1]),f=r(f,0,1);const g=Math.floor(1e4*f);if(m&&h[g])a=h[g];else{if("array"===s(c))for(let e=0;e<i.length;e++){const n=i[e];if(f<=n){a=c[e];break}if(f>=n&&e===i.length-1){a=c[e];break}if(f>n&&f<i[e+1]){f=(f-n)/(i[e+1]-n),a=k.interpolate(c[e],c[e+1],f,t);break}}else"function"===s(c)&&(a=c(f));m&&(h[g]=a)}return a};var E=()=>h={};b(e);const S=function(e){const t=k(x(e));return f&&t[f]?t[f]():t};return S.classes=function(e){if(null!=e){if("array"===s(e))u=e,a=[e[0],e[e.length-1]];else{const t=k.analyze(a);u=0===e?[t.min,t.max]:k.limits(t,"e",e)}return S}return u},S.domain=function(e){if(!arguments.length)return a;d=e[0],p=e[e.length-1],i=[];const t=c.length;if(e.length===t&&d!==p)for(let t of Array.from(e))i.push((t-d)/(p-d));else{for(let e=0;e<t;e++)i.push(e/(t-1));if(e.length>2){const t=e.map(((t,n)=>n/(e.length-1))),n=e.map((e=>(e-d)/(p-d)));n.every(((e,n)=>t[n]===e))||(w=e=>{if(e<=0||e>=1)return e;let r=0;for(;e>=n[r+1];)r++;const o=(e-n[r])/(n[r+1]-n[r]);return t[r]+o*(t[r+1]-t[r])})}}return a=[d,p],S},S.mode=function(e){return arguments.length?(t=e,E(),S):t},S.range=function(e,t){return b(e),S},S.out=function(e){return f=e,S},S.spread=function(e){return arguments.length?(o=e,S):o},S.correctLightness=function(e){return null==e&&(e=!0),g=e,E(),v=g?function(e){const t=x(0,!0).lab()[0],n=x(1,!0).lab()[0],r=t>n;let o=x(e,!0).lab()[0];const a=t+(n-t)*e;let i=o-a,l=0,s=1,u=20;for(;Math.abs(i)>.01&&u-- >0;)r&&(i*=-1),i<0?(l=e,e+=.5*(s-e)):(s=e,e+=.5*(l-e)),o=x(e,!0).lab()[0],i=o-a;return e}:e=>e,S},S.padding=function(e){return null!=e?("number"===s(e)&&(e=[e,e]),l=e,S):l},S.colors=function(t,n){arguments.length<2&&(n="hex");let r=[];if(0===arguments.length)r=c.slice(0);else if(1===t)r=[S(.5)];else if(t>1){const e=a[0],n=a[1]-e;r=function(e,t){let n=[],r=0<t,o=t;for(let e=0;r?e<o:e>o;r?e++:e--)n.push(e);return n}(0,t).map((r=>S(e+r/(t-1)*n)))}else{e=[];let t=[];if(u&&u.length>2)for(let e=1,n=u.length,r=1<=n;r?e<n:e>n;r?e++:e--)t.push(.5*(u[e-1]+u[e]));else t=a;r=t.map((e=>S(e)))}return k[n]&&(r=r.map((e=>e[n]()))),r},S.cache=function(e){return null!=e?(m=e,S):m},S.gamma=function(e){return null!=e?(y=e,S):y},S.nodata=function(e){return null!=e?(n=k(e),S):n},S}const Qe=(e,t,n)=>{if(!Qe[n])throw new Error("unknown blend mode "+n);return Qe[n](e,t)},Xe=e=>(t,n)=>{const r=k(n).rgb(),o=k(t).rgb();return k.rgb(e(r,o))},Ke=e=>(t,n)=>{const r=[];return r[0]=e(t[0],n[0]),r[1]=e(t[1],n[1]),r[2]=e(t[2],n[2]),r};Qe.normal=Xe(Ke((e=>e))),Qe.multiply=Xe(Ke(((e,t)=>e*t/255))),Qe.screen=Xe(Ke(((e,t)=>255*(1-(1-e/255)*(1-t/255))))),Qe.overlay=Xe(Ke(((e,t)=>t<128?2*e*t/255:255*(1-2*(1-e/255)*(1-t/255))))),Qe.darken=Xe(Ke(((e,t)=>e>t?t:e))),Qe.lighten=Xe(Ke(((e,t)=>e>t?e:t))),Qe.dodge=Xe(Ke(((e,t)=>255===e||(e=t/255*255/(1-e/255))>255?255:e))),Qe.burn=Xe(Ke(((e,t)=>255*(1-(1-t/255)/(e/255)))));const Ze=Qe,{pow:Je,sin:et,cos:tt}=Math,{floor:nt,random:rt}=Math,{log:ot,pow:at,floor:it,abs:lt}=Math;function st(e,t=null){const n={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0};return"object"===s(e)&&(e=Object.values(e)),e.forEach((e=>{t&&"object"===s(e)&&(e=e[t]),null==e||isNaN(e)||(n.values.push(e),n.sum+=e,e<n.min&&(n.min=e),e>n.max&&(n.max=e),n.count+=1)})),n.domain=[n.min,n.max],n.limits=(e,t)=>ut(n,e,t),n}function ut(e,t="equal",n=7){"array"==s(e)&&(e=st(e));const{min:r,max:o}=e,a=e.values.sort(((e,t)=>e-t));if(1===n)return[r,o];const i=[];if("c"===t.substr(0,1)&&(i.push(r),i.push(o)),"e"===t.substr(0,1)){i.push(r);for(let e=1;e<n;e++)i.push(r+e/n*(o-r));i.push(o)}else if("l"===t.substr(0,1)){if(r<=0)throw new Error("Logarithmic scales are only possible for values > 0");const e=Math.LOG10E*ot(r),t=Math.LOG10E*ot(o);i.push(r);for(let r=1;r<n;r++)i.push(at(10,e+r/n*(t-e)));i.push(o)}else if("q"===t.substr(0,1)){i.push(r);for(let e=1;e<n;e++){const t=(a.length-1)*e/n,r=it(t);if(r===t)i.push(a[r]);else{const e=t-r;i.push(a[r]*(1-e)+a[r+1]*e)}}i.push(o)}else if("k"===t.substr(0,1)){let e;const t=a.length,l=new Array(t),s=new Array(n);let u=!0,c=0,f=null;f=[],f.push(r);for(let e=1;e<n;e++)f.push(r+e/n*(o-r));for(f.push(o);u;){for(let e=0;e<n;e++)s[e]=0;for(let e=0;e<t;e++){const t=a[e];let r,o=Number.MAX_VALUE;for(let a=0;a<n;a++){const n=lt(f[a]-t);n<o&&(o=n,r=a),s[r]++,l[e]=r}}const r=new Array(n);for(let e=0;e<n;e++)r[e]=null;for(let n=0;n<t;n++)e=l[n],null===r[e]?r[e]=a[n]:r[e]+=a[n];for(let e=0;e<n;e++)r[e]*=1/s[e];u=!1;for(let e=0;e<n;e++)if(r[e]!==f[e]){u=!0;break}f=r,c++,c>200&&(u=!1)}const d={};for(let e=0;e<n;e++)d[e]=[];for(let n=0;n<t;n++)e=l[n],d[e].push(a[n]);let p=[];for(let e=0;e<n;e++)p.push(d[e][0]),p.push(d[e][d[e].length-1]);p=p.sort(((e,t)=>e-t)),i.push(p[0]);for(let e=1;e<p.length;e+=2){const t=p[e];isNaN(t)||-1!==i.indexOf(t)||i.push(t)}}return i}const{sqrt:ct,pow:ft,min:dt,max:pt,atan2:gt,abs:ht,cos:mt,sin:yt,exp:bt,PI:vt}=Math,wt={cool:()=>Ye([k.hsl(180,1,.9),k.hsl(250,.7,.4)]),hot:()=>Ye(["#000","#f00","#ff0","#fff"]).mode("rgb")},kt={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]};for(let e of Object.keys(kt))kt[e.toLowerCase()]=kt[e];const xt=kt;Object.assign(k,{average:(e,t="lrgb",n=null)=>{const r=e.length;n||(n=Array.from(new Array(r)).map((()=>1)));const o=r/n.reduce((function(e,t){return e+t}));if(n.forEach(((e,t)=>{n[t]*=o})),e=e.map((e=>new v(e))),"lrgb"===t)return((e,t)=>{const n=e.length,r=[0,0,0,0];for(let o=0;o<e.length;o++){const a=e[o],i=t[o]/n,l=a._rgb;r[0]+=$e(l[0],2)*i,r[1]+=$e(l[1],2)*i,r[2]+=$e(l[2],2)*i,r[3]+=l[3]*i}return r[0]=He(r[0]),r[1]=He(r[1]),r[2]=He(r[2]),r[3]>.9999999&&(r[3]=1),new v(i(r))})(e,n);const a=e.shift(),l=a.get(t),s=[];let u=0,c=0;for(let e=0;e<l.length;e++)if(l[e]=(l[e]||0)*n[0],s.push(isNaN(l[e])?0:n[0]),"h"===t.charAt(e)&&!isNaN(l[e])){const t=l[e]/180*Ue;u+=We(t)*n[0],c+=Ve(t)*n[0]}let f=a.alpha()*n[0];e.forEach(((e,r)=>{const o=e.get(t);f+=e.alpha()*n[r+1];for(let e=0;e<l.length;e++)if(!isNaN(o[e]))if(s[e]+=n[r+1],"h"===t.charAt(e)){const t=o[e]/180*Ue;u+=We(t)*n[r+1],c+=Ve(t)*n[r+1]}else l[e]+=o[e]*n[r+1]}));for(let e=0;e<l.length;e++)if("h"===t.charAt(e)){let t=qe(c/s[e],u/s[e])/Ue*180;for(;t<0;)t+=360;for(;t>=360;)t-=360;l[e]=t}else l[e]=l[e]/s[e];return f/=r,new v(l,t).alpha(f>.99999?1:f,!0)},bezier:e=>{const t=function(e){let t,n,r,o;if(2===(e=e.map((e=>new v(e)))).length)[n,r]=e.map((e=>e.lab())),t=function(e){const t=[0,1,2].map((t=>n[t]+e*(r[t]-n[t])));return new v(t,"lab")};else if(3===e.length)[n,r,o]=e.map((e=>e.lab())),t=function(e){const t=[0,1,2].map((t=>(1-e)*(1-e)*n[t]+2*(1-e)*e*r[t]+e*e*o[t]));return new v(t,"lab")};else if(4===e.length){let a;[n,r,o,a]=e.map((e=>e.lab())),t=function(e){const t=[0,1,2].map((t=>(1-e)*(1-e)*(1-e)*n[t]+3*(1-e)*(1-e)*e*r[t]+3*(1-e)*e*e*o[t]+e*e*e*a[t]));return new v(t,"lab")}}else{if(!(e.length>=5))throw new RangeError("No point in running bezier with only one color.");{let n,r,o;n=e.map((e=>e.lab())),o=e.length-1,r=function(e){let t=[1,1];for(let n=1;n<e;n++){let e=[1];for(let n=1;n<=t.length;n++)e[n]=(t[n]||0)+t[n-1];t=e}return t}(o),t=function(e){const t=1-e,a=[0,1,2].map((a=>n.reduce(((n,i,l)=>n+r[l]*t**(o-l)*e**l*i[a]),0)));return new v(a,"lab")}}}return t}(e);return t.scale=()=>Ye(t),t},blend:Ze,cubehelix:function(e=300,t=-1.5,n=1,r=1,o=[0,1]){let a,l=0;"array"===s(o)?a=o[1]-o[0]:(a=0,o=[o,o]);const u=function(s){const u=g*((e+120)/360+t*s),c=Je(o[0]+a*s,r),f=(0!==l?n[0]+s*l:n)*c*(1-c)/2,d=tt(u),p=et(u);return k(i([255*(c+f*(-.14861*d+1.78277*p)),255*(c+f*(-.29227*d-.90649*p)),255*(c+f*(1.97294*d)),1]))};return u.start=function(t){return null==t?e:(e=t,u)},u.rotations=function(e){return null==e?t:(t=e,u)},u.gamma=function(e){return null==e?r:(r=e,u)},u.hue=function(e){return null==e?n:("array"===s(n=e)?(l=n[1]-n[0],0===l&&(n=n[1])):l=0,u)},u.lightness=function(e){return null==e?o:("array"===s(e)?(o=e,a=e[1]-e[0]):(o=[e,e],a=0),u)},u.scale=()=>k.scale(u),u.hue(n),u},mix:je,interpolate:je,random:()=>{let e="#";for(let t=0;t<6;t++)e+="0123456789abcdef".charAt(nt(16*rt()));return new v(e,"hex")},scale:Ye,analyze:st,contrast:(e,t)=>{e=new v(e),t=new v(t);const n=e.luminance(),r=t.luminance();return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)},deltaE:function(e,t,n=1,r=1,o=1){var a=function(e){return 360*e/(2*vt)},i=function(e){return 2*vt*e/360};e=new v(e),t=new v(t);const[l,s,u]=Array.from(e.lab()),[c,f,d]=Array.from(t.lab()),p=(l+c)/2,g=(ct(ft(s,2)+ft(u,2))+ct(ft(f,2)+ft(d,2)))/2,h=.5*(1-ct(ft(g,7)/(ft(g,7)+ft(25,7)))),m=s*(1+h),y=f*(1+h),b=ct(ft(m,2)+ft(u,2)),w=ct(ft(y,2)+ft(d,2)),k=(b+w)/2,x=a(gt(u,m)),E=a(gt(d,y)),S=x>=0?x:x+360,F=E>=0?E:E+360,A=ht(S-F)>180?(S+F+360)/2:(S+F)/2,C=1-.17*mt(i(A-30))+.24*mt(i(2*A))+.32*mt(i(3*A+6))-.2*mt(i(4*A-63));let O=F-S;O=ht(O)<=180?O:F<=S?O+360:O-360,O=2*ct(b*w)*yt(i(O)/2);const P=c-l,T=w-b,D=1+.015*ft(p-50,2)/ct(20+ft(p-50,2)),R=1+.045*k,N=1+.015*k*C,L=30*bt(-ft((A-275)/25,2)),_=-2*ct(ft(k,7)/(ft(k,7)+ft(25,7)))*yt(2*i(L)),j=ct(ft(P/(n*D),2)+ft(T/(r*R),2)+ft(O/(o*N),2)+_*(T/(r*R))*(O/(o*N)));return pt(0,dt(100,j))},distance:function(e,t,n="lab"){e=new v(e),t=new v(t);const r=e.get(n),o=t.get(n);let a=0;for(let e in r){const t=(r[e]||0)-(o[e]||0);a+=t*t}return Math.sqrt(a)},limits:ut,valid:(...e)=>{try{return new v(...e),!0}catch(e){return!1}},scales:wt,input:b,colors:be,brewer:xt});const Et=k;var St=o(41),Ft=o.t(St,2),At=Object.defineProperty,Ct=Object.defineProperties,Ot=Object.getOwnPropertyDescriptors,Pt=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,Rt=(e,t,n)=>t in e?At(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Nt=(e,t)=>{for(var n in t||(t={}))Tt.call(t,n)&&Rt(e,n,t[n]);if(Pt)for(var n of Pt(t))Dt.call(t,n)&&Rt(e,n,t[n]);return e},Lt=(e,t)=>Ct(e,Ot(t)),_t=(e,t,n)=>(Rt(e,"symbol"!=typeof t?t+"":t,n),n),jt=(e,t,n)=>new Promise(((r,o)=>{var a=e=>{try{l(n.next(e))}catch(e){o(e)}},i=e=>{try{l(n.throw(e))}catch(e){o(e)}},l=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,i);l((n=n.apply(e,t)).next())}));var zt=class e{constructor(e){_t(this,"_parent"),_t(this,"breadcrumbs",[]),_t(this,"context",{}),_t(this,"extra",{}),_t(this,"tags",{}),_t(this,"request"),_t(this,"user"),this._parent=e}get parent(){return this._parent}child(){return new e(this)}setRequest(e){return this.request=e,this}removeRequest(){return this.request=void 0,this}addBreadcrumb(e){return typeof e.timestamp>"u"&&(e.timestamp=(new Date).toISOString()),this.breadcrumbs.push(e),this}setExtra(e,t){return this.extra[e]=t,this}removeExtra(e){return delete this.extra[e],this}setContext(e,t){return typeof t.type>"u"&&(t.type=e),this.context[e]=t,this}removeContext(e){return delete this.context[e],this}setTags(e){return this.tags=Nt(Nt({},this.tags),e),this}setTag(e,t){return this.tags[e]=t,this}removeTag(e){return delete this.tags[e],this}setUser(e){return this.user=e,this}removeUser(){return this.user=void 0,this}toBody(){let e=[],t=this;for(;t;)e.push(t),t=t.parent;return e.reverse().reduce(((e,t)=>{var n;return e.breadcrumbs=[...null!=(n=e.breadcrumbs)?n:[],...t.breadcrumbs],e.extra=Nt(Nt({},e.extra),t.extra),e.contexts=Nt(Nt({},e.contexts),t.context),e.tags=Nt(Nt({},e.tags),t.tags),t.user&&(e.user=t.user),t.request&&(e.request=t.request),e}),{breadcrumbs:[],extra:{},contexts:{},tags:{},request:void 0,user:void 0})}clear(){this.breadcrumbs=[],this.context={},this.tags={},this.user=void 0}},It=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,Bt="?",Mt="An unknown error occurred";function $t(e){return(e+256).toString(16).substring(1)}function Ht(){let e=function(e){for(let t=0;t<e.length;t++)e[t]=Math.floor(256*Math.random());return e}(new Array(16));return e[6]=15&e[6]|64,e[8]=63&e[8]|128,$t(e[0])+$t(e[1])+$t(e[2])+$t(e[3])+"-"+$t(e[4])+$t(e[5])+"-"+$t(e[6])+$t(e[7])+"-"+$t(e[8])+$t(e[9])+"-"+$t(e[10])+$t(e[11])+$t(e[12])+$t(e[13])+$t(e[14])+$t(e[15])}var Ut=[[/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,"chrome"],[/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,"winjs"],[/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,"gecko"]];function Wt(e){let t=function(e){var t,n,r,o;if(!e.stack)return null;let a=[],i=null!=(r=null==(n=(t=e.stack).split)?void 0:n.call(t,"\n"))?r:[];for(let t=0;t<i.length;++t){let n=null,r=null,l=null;for(let[e,n]of Ut)if(r=e.exec(i[t]),r){l=n;break}if(r&&l){if("chrome"===l)n={filename:null!=(o=r[2])&&o.startsWith("address at ")?r[2].substring(11):r[2],function:r[1]||Bt,lineno:r[3]?+r[3]:null,colno:r[4]?+r[4]:null};else if("winjs"===l)n={filename:r[2],function:r[1]||Bt,lineno:+r[3],colno:r[4]?+r[4]:null};else{if("gecko"!==l)continue;0===t&&!r[5]&&void 0!==e.columnNumber&&a.length>0&&(a[0].column=e.columnNumber+1),n={filename:r[3],function:r[1]||Bt,lineno:r[4]?+r[4]:null,colno:r[5]?+r[5]:null}}!n.function&&n.lineno&&(n.function=Bt),a.push(n)}}return a.length?a.reverse():null}(e);return{type:e.name,value:e.message,stacktrace:{frames:null!=t?t:[]}}}function Vt(e){if(e instanceof Error)return e;if("string"==typeof e)return new Error(e);if("object"==typeof e&&null!==e&&!Array.isArray(e)){let t=e,{message:n}=t,r=((e,t)=>{var n={};for(var r in e)Tt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Pt)for(var r of Pt(e))t.indexOf(r)<0&&Dt.call(e,r)&&(n[r]=e[r]);return n})(t,["message"]),o=new Error("string"==typeof n?n:Mt);return Object.assign(o,r)}let t=new Error(Mt);return Object.assign(t,{cause:e})}var qt;qt=class{constructor(e){var t,n,r,o,a;_t(this,"apiURL"),_t(this,"dsn"),_t(this,"environment"),_t(this,"release"),_t(this,"sampleRate"),_t(this,"debug"),_t(this,"_scope"),_t(this,"shouldBuffer",!1),_t(this,"bufferlimit",20),_t(this,"buffer",[]),this.environment=e.environment,this.release=e.release,this.sampleRate=null!=(t=e.sampleRate)?t:1,this.debug=null!=(n=e.debug)&&n,this._scope=null!=(r=e.scope)?r:new zt,this.apiURL=function(e){let t=It.exec(e),n=t?t.slice(1):[];if(6!==n.length)throw new Error("Invalid DSN");let r=n[5].split("/"),o=r.slice(0,-1).join("/");return n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(o?"/"+o:"")+"/api/"+r.pop()+"/envelope/?sentry_version=7&sentry_key="+n[1]+(n[2]?"&sentry_secret="+n[2]:"")}(e.dsn),this.dsn=e.dsn,this.shouldBuffer=null!=(o=e.buffer)&&o,this.bufferlimit=null!=(a=e.bufferLimit)?a:20}static init(e){qt._instance||(qt._instance=new qt(e))}static get instance(){if(!qt._instance)throw new Error("Sentry has not been initialized");return qt._instance}log(...e){this.debug&&console.log(...e)}get scope(){return this._scope}static get scope(){return qt.instance.scope}withScope(e){e(this._scope.child())}static withScope(e){qt.instance.withScope(e)}captureException(e,t){this.captureEvent({type:"exception",level:"error",error:Vt(e),scope:null!=t?t:this._scope})}static captureException(e,t){qt.instance.captureException(e,t)}captureMessage(e,t="info",n){this.captureEvent({type:"message",level:t,message:e,scope:null!=n?n:this._scope})}static captureMessage(e,t="info",n){qt.instance.captureMessage(e,t,n)}captureEvent(e){if(Math.random()>=this.sampleRate)this.log("Dropped event due to sample rate");else if(this.shouldBuffer){if(this.buffer.length>=this.bufferlimit)return;this.buffer.push(e)}else this.sendEvent(e)}sendEvent(e,t=5e3){return jt(this,null,(function*(){try{this.log("Sending sentry event",e);let n=function(e,t,n){var r,o;let a=Nt({event_id:Ht().replaceAll("-",""),platform:"javascript",sdk:{name:"@hcaptcha/sentry",version:"0.0.4"},environment:t,release:n,timestamp:Date.now()/1e3},e.scope.toBody());if("exception"===e.type){a.message=null!=(o=null==(r=e.error)?void 0:r.message)?o:"Unknown error",a.fingerprint=[a.message];let t=[],n=e.error;for(let e=0;e<5&&n&&(t.push(Wt(n)),n.cause&&n.cause instanceof Error);e++)n=n.cause;a.exception={values:t.reverse()}}return"message"===e.type&&(a.message=e.message,a.level=e.level),a}(e,this.environment,this.release),r={event_id:n.event_id,dsn:this.dsn},o={type:"event"},a=JSON.stringify(r)+"\n"+JSON.stringify(o)+"\n"+JSON.stringify(n),i=yield function(e,t,n){return jt(this,null,(function*(){var r,o;try{if(typeof fetch<"u"&&typeof AbortSignal<"u"){let r;if(n){let e=new AbortController;r=e.signal,setTimeout((()=>e.abort()),n)}let o=yield fetch(e,Lt(Nt({},t),{signal:r})),a=yield o.text();return{status:o.status,body:a}}return yield new Promise(((r,o)=>{var a,i;let l=new XMLHttpRequest;if(l.open(null!=(a=null==t?void 0:t.method)?a:"GET",e),l.onload=()=>r({status:l.status,body:l.responseText}),l.onerror=()=>o(new Error("XHR Network Error")),null==t?void 0:t.headers)for(let[e,n]of Object.entries(t.headers))l.setRequestHeader(e,n);if(n){let e=setTimeout((()=>{l.abort(),o(new Error("Request timed out"))}),n);l.onloadend=()=>{clearTimeout(e)}}l.send(null==(i=null==t?void 0:t.body)?void 0:i.toString())}))}catch(e){return{status:0,body:null!=(o=null==(r=null==e?void 0:e.toString)?void 0:r.call(e))?o:"Unknown error"}}}))}(this.apiURL,{method:"POST",headers:{"Content-Type":"application/x-sentry-envelope"},body:a},t);this.log("Sentry response",i.status),200!==i.status&&(console.log(i.body),console.error("Failed to send event to Sentry",i))}catch(e){console.error("Failed to send event",e)}}))}flush(e=5e3){return jt(this,null,(function*(){try{this.log("Flushing sentry events",this.buffer.length);let t=this.buffer.splice(0,this.buffer.length).map((t=>this.sendEvent(t,e)));yield Promise.all(t),this.log("Flushed all events")}catch(e){console.error("Failed to flush events",e)}}))}static flush(e=5e3){return qt.instance.flush(e)}static reset(){qt._instance=void 0}},_t(qt,"_instance");St.Component;var Gt=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Yt=Math.abs,Qt=String.fromCharCode,Xt=Object.assign;function Kt(e){return e.trim()}function Zt(e,t,n){return e.replace(t,n)}function Jt(e,t){return e.indexOf(t)}function en(e,t){return 0|e.charCodeAt(t)}function tn(e,t,n){return e.slice(t,n)}function nn(e){return e.length}function rn(e){return e.length}function on(e,t){return t.push(e),e}var an=1,ln=1,sn=0,un=0,cn=0,fn="";function dn(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:an,column:ln,length:i,return:""}}function pn(e,t){return Xt(dn("",null,null,"",null,null,0),e,{length:-e.length},t)}function gn(){return cn=un>0?en(fn,--un):0,ln--,10===cn&&(ln=1,an--),cn}function hn(){return cn=un<sn?en(fn,un++):0,ln++,10===cn&&(ln=1,an++),cn}function mn(){return en(fn,un)}function yn(){return un}function bn(e,t){return tn(fn,e,t)}function vn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function wn(e){return an=ln=1,sn=nn(fn=e),un=0,[]}function kn(e){return fn="",e}function xn(e){return Kt(bn(un-1,Fn(91===e?e+2:40===e?e+1:e)))}function En(e){for(;(cn=mn())&&cn<33;)hn();return vn(e)>2||vn(cn)>3?"":" "}function Sn(e,t){for(;--t&&hn()&&!(cn<48||cn>102||cn>57&&cn<65||cn>70&&cn<97););return bn(e,yn()+(t<6&&32==mn()&&32==hn()))}function Fn(e){for(;hn();)switch(cn){case e:return un;case 34:case 39:34!==e&&39!==e&&Fn(cn);break;case 40:41===e&&Fn(e);break;case 92:hn()}return un}function An(e,t){for(;hn()&&e+cn!==57&&(e+cn!==84||47!==mn()););return"/*"+bn(t,un-1)+"*"+Qt(47===e?e:hn())}function Cn(e){for(;!vn(mn());)hn();return bn(e,un)}var On="-ms-",Pn="-moz-",Tn="-webkit-",Dn="comm",Rn="rule",Nn="decl",Ln="@keyframes";function _n(e,t){for(var n="",r=rn(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function jn(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Nn:return e.return=e.return||e.value;case Dn:return"";case Ln:return e.return=e.value+"{"+_n(e.children,r)+"}";case Rn:e.value=e.props.join(",")}return nn(n=_n(e.children,r))?e.return=e.value+"{"+n+"}":""}function zn(e){return kn(In("",null,null,null,[""],e=wn(e),0,[0],e))}function In(e,t,n,r,o,a,i,l,s){for(var u=0,c=0,f=i,d=0,p=0,g=0,h=1,m=1,y=1,b=0,v="",w=o,k=a,x=r,E=v;m;)switch(g=b,b=hn()){case 40:if(108!=g&&58==en(E,f-1)){-1!=Jt(E+=Zt(xn(b),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:E+=xn(b);break;case 9:case 10:case 13:case 32:E+=En(g);break;case 92:E+=Sn(yn()-1,7);continue;case 47:switch(mn()){case 42:case 47:on(Mn(An(hn(),yn()),t,n),s);break;default:E+="/"}break;case 123*h:l[u++]=nn(E)*y;case 125*h:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+c:-1==y&&(E=Zt(E,/\f/g,"")),p>0&&nn(E)-f&&on(p>32?$n(E+";",r,n,f-1):$n(Zt(E," ","")+";",r,n,f-2),s);break;case 59:E+=";";default:if(on(x=Bn(E,t,n,u,c,o,l,v,w=[],k=[],f),a),123===b)if(0===c)In(E,t,x,x,w,a,f,l,k);else switch(99===d&&110===en(E,3)?100:d){case 100:case 108:case 109:case 115:In(e,x,x,r&&on(Bn(e,x,x,0,0,o,l,v,o,w=[],f),k),o,k,f,l,r?w:k);break;default:In(E,x,x,x,[""],k,0,l,k)}}u=c=p=0,h=y=1,v=E="",f=i;break;case 58:f=1+nn(E),p=g;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==gn())continue;switch(E+=Qt(b),b*h){case 38:y=c>0?1:(E+="\f",-1);break;case 44:l[u++]=(nn(E)-1)*y,y=1;break;case 64:45===mn()&&(E+=xn(hn())),d=mn(),c=f=nn(v=E+=Cn(yn())),b++;break;case 45:45===g&&2==nn(E)&&(h=0)}}return a}function Bn(e,t,n,r,o,a,i,l,s,u,c){for(var f=o-1,d=0===o?a:[""],p=rn(d),g=0,h=0,m=0;g<r;++g)for(var y=0,b=tn(e,f+1,f=Yt(h=i[g])),v=e;y<p;++y)(v=Kt(h>0?d[y]+" "+b:Zt(b,/&\f/g,d[y])))&&(s[m++]=v);return dn(e,t,n,0===o?Rn:l,s,u,c)}function Mn(e,t,n){return dn(e,t,n,Dn,Qt(cn),tn(e,2,-2),0)}function $n(e,t,n,r){return dn(e,t,n,Nn,tn(e,0,r),tn(e,r+1,-1),r)}var Hn=function(e,t,n){for(var r=0,o=0;r=o,o=mn(),38===r&&12===o&&(t[n]=1),!vn(o);)hn();return bn(e,un)},Un=new WeakMap,Wn=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Un.get(n))&&!r){Un.set(e,!0);for(var o=[],a=function(e,t){return kn(function(e,t){var n=-1,r=44;do{switch(vn(r)){case 0:38===r&&12===mn()&&(t[n]=1),e[n]+=Hn(un-1,t,n);break;case 2:e[n]+=xn(r);break;case 4:if(44===r){e[++n]=58===mn()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Qt(r)}}while(r=hn());return e}(wn(e),t))}(t,o),i=n.props,l=0,s=0;l<a.length;l++)for(var u=0;u<i.length;u++,s++)e.props[s]=o[l]?a[l].replace(/&\f/g,i[u]):i[u]+" "+a[l]}}},Vn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function qn(e,t){switch(function(e,t){return 45^en(e,0)?(((t<<2^en(e,0))<<2^en(e,1))<<2^en(e,2))<<2^en(e,3):0}(e,t)){case 5103:return Tn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Tn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Tn+e+Pn+e+On+e+e;case 6828:case 4268:return Tn+e+On+e+e;case 6165:return Tn+e+On+"flex-"+e+e;case 5187:return Tn+e+Zt(e,/(\w+).+(:[^]+)/,Tn+"box-$1$2"+On+"flex-$1$2")+e;case 5443:return Tn+e+On+"flex-item-"+Zt(e,/flex-|-self/,"")+e;case 4675:return Tn+e+On+"flex-line-pack"+Zt(e,/align-content|flex-|-self/,"")+e;case 5548:return Tn+e+On+Zt(e,"shrink","negative")+e;case 5292:return Tn+e+On+Zt(e,"basis","preferred-size")+e;case 6060:return Tn+"box-"+Zt(e,"-grow","")+Tn+e+On+Zt(e,"grow","positive")+e;case 4554:return Tn+Zt(e,/([^-])(transform)/g,"$1"+Tn+"$2")+e;case 6187:return Zt(Zt(Zt(e,/(zoom-|grab)/,Tn+"$1"),/(image-set)/,Tn+"$1"),e,"")+e;case 5495:case 3959:return Zt(e,/(image-set\([^]*)/,Tn+"$1$`$1");case 4968:return Zt(Zt(e,/(.+:)(flex-)?(.*)/,Tn+"box-pack:$3"+On+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Tn+e+e;case 4095:case 3583:case 4068:case 2532:return Zt(e,/(.+)-inline(.+)/,Tn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(nn(e)-1-t>6)switch(en(e,t+1)){case 109:if(45!==en(e,t+4))break;case 102:return Zt(e,/(.+:)(.+)-([^]+)/,"$1"+Tn+"$2-$3$1"+Pn+(108==en(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Jt(e,"stretch")?qn(Zt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==en(e,t+1))break;case 6444:switch(en(e,nn(e)-3-(~Jt(e,"!important")&&10))){case 107:return Zt(e,":",":"+Tn)+e;case 101:return Zt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Tn+(45===en(e,14)?"inline-":"")+"box$3$1"+Tn+"$2$3$1"+On+"$2box$3")+e}break;case 5936:switch(en(e,t+11)){case 114:return Tn+e+On+Zt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Tn+e+On+Zt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Tn+e+On+Zt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Tn+e+On+e+e}return e}var Gn=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Nn:e.return=qn(e.value,e.length);break;case Ln:return _n([pn(e,{value:Zt(e.value,"@","@"+Tn)})],r);case Rn:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return _n([pn(e,{props:[Zt(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return _n([pn(e,{props:[Zt(t,/:(plac\w+)/,":"+Tn+"input-$1")]}),pn(e,{props:[Zt(t,/:(plac\w+)/,":-moz-$1")]}),pn(e,{props:[Zt(t,/:(plac\w+)/,On+"input-$1")]})],r)}return""}))}}],Yn=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,a=e.stylisPlugins||Gn,i={},l=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;l.push(e)}));var s,u,c,f,d=[jn,(f=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&f(e)})],p=(u=[Wn,Vn].concat(a,d),c=rn(u),function(e,t,n,r){for(var o="",a=0;a<c;a++)o+=u[a](e,t,n,r)||"";return o});o=function(e,t,n,r){s=n,function(e){_n(zn(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(g.inserted[t.name]=!0)};var g={key:t,sheet:new Gt({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return g.sheet.hydrate(l),g};function Qn(){return Qn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qn.apply(null,arguments)}var Xn=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}};function Kn(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var Zn=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Jn=function(e,t,n){Zn(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}},er={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function tr(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var nr=/[A-Z]|^ms/g,rr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,or=function(e){return 45===e.charCodeAt(1)},ar=function(e){return null!=e&&"boolean"!=typeof e},ir=tr((function(e){return or(e)?e:e.replace(nr,"-$&").toLowerCase()})),lr=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(rr,(function(e,t,n){return ur={name:t,styles:n,next:ur},t}))}return 1===er[e]||or(e)||"number"!=typeof t||0===t?t:t+"px"};function sr(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return ur={name:o.name,styles:o.styles,next:ur},o.name;var a=n;if(void 0!==a.styles){var i=a.next;if(void 0!==i)for(;void 0!==i;)ur={name:i.name,styles:i.styles,next:ur},i=i.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=sr(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i){var l=i;null!=t&&void 0!==t[l]?r+=a+"{"+t[l]+"}":ar(l)&&(r+=ir(a)+":"+lr(a,l)+";")}else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=sr(e,t,i);switch(a){case"animation":case"animationName":r+=ir(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var u=0;u<i.length;u++)ar(i[u])&&(r+=ir(a)+":"+lr(a,i[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var l=ur,s=n(e);return ur=l,sr(e,t,s)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var ur,cr=/label:\s*([^\s;{]+)\s*(;|$)/g;function fr(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";ur=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=sr(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=sr(n,t,e[i]),r&&(o+=a[i]);cr.lastIndex=0;for(var l,s="";null!==(l=cr.exec(o));)s+="-"+l[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s;return{name:u,styles:o,next:ur}}var dr,pr,gr=!!Ft.useInsertionEffect&&Ft.useInsertionEffect,hr=gr||function(e){return e()},mr=gr||St.useLayoutEffect,yr=St.createContext("undefined"!=typeof HTMLElement?Yn({key:"css"}):null),br=(yr.Provider,function(e){return(0,St.forwardRef)((function(t,n){var r=(0,St.useContext)(yr);return e(t,r,n)}))}),vr=St.createContext({}),wr=Xn((function(e){return Xn((function(t){return function(e,t){return"function"==typeof t?t(e):Qn({},e,t)}(e,t)}))})),kr=function(e){var t=St.useContext(vr);return e.theme!==t&&(t=wr(t)(e.theme)),St.createElement(vr.Provider,{value:t},e.children)},xr={}.hasOwnProperty,Er="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Sr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Zn(t,n,r),hr((function(){return Jn(t,n,r)})),null},Fr=br((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Er],a=[r],i="";"string"==typeof e.className?i=Kn(t.registered,a,e.className):null!=e.className&&(i=e.className+" ");var l=fr(a,void 0,St.useContext(vr));i+=t.key+"-"+l.name;var s={};for(var u in e)xr.call(e,u)&&"css"!==u&&u!==Er&&(s[u]=e[u]);return s.className=i,n&&(s.ref=n),St.createElement(St.Fragment,null,St.createElement(Sr,{cache:t,serialized:l,isStringTag:"string"==typeof o}),St.createElement(o,s))})),Ar=(o(985),function(e,t){var n=arguments;if(null==t||!xr.call(t,"css"))return St.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Fr,o[1]=function(e,t){var n={};for(var r in t)xr.call(t,r)&&(n[r]=t[r]);return n[Er]=e,n}(e,t);for(var a=2;a<r;a++)o[a]=n[a];return St.createElement.apply(null,o)});dr=Ar||(Ar={}),pr||(pr=dr.JSX||(dr.JSX={}));var Cr=br((function(e,t){var n=fr([e.styles],void 0,St.useContext(vr)),r=St.useRef();return mr((function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,i=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==i&&(a=!0,i.setAttribute("data-emotion",e),o.hydrate([i])),r.current=[o,a],function(){o.flush()}}),[t]),mr((function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Jn(t,n.next,!0),o.tags.length){var a=o.tags[o.tags.length-1].nextElementSibling;o.before=a,o.flush()}t.insert("",n,o,!1)}}),[t,n.name]),null}));function Or(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return fr(t)}function Pr(){var e=Or.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}const Tr={dark:["#C1C2C5","#A6A7AB","#909296","#5c5f66","#373A40","#2C2E33","#25262b","#1A1B1E","#141517","#101113"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]};var Dr=Object.defineProperty,Rr=Object.getOwnPropertySymbols,Nr=Object.prototype.hasOwnProperty,Lr=Object.prototype.propertyIsEnumerable,_r=(e,t,n)=>t in e?Dr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jr=(e,t)=>{for(var n in t||(t={}))Nr.call(t,n)&&_r(e,n,t[n]);if(Rr)for(var n of Rr(t))Lr.call(t,n)&&_r(e,n,t[n]);return e};function zr(e){return t=>"number"==typeof e.primaryShade?e.primaryShade:e.primaryShade[t||e.colorScheme]}function Ir(e){const t=zr(e);return(n,r,o=!0,a=!0)=>{if("string"==typeof n&&n.includes(".")){const[t,o]=n.split("."),i=parseInt(o,10);if(t in e.colors&&i>=0&&i<10)return e.colors[t]["number"!=typeof r||a?i:r]}const i="number"==typeof r?r:t();return n in e.colors?e.colors[n][i]:o?e.colors[e.primaryColor][i]:n}}function Br(e){let t="";for(let n=1;n<e.length-1;n+=1)t+=`${e[n]} ${n/(e.length-1)*100}%, `;return`${e[0]} 0%, ${t}${e[e.length-1]} 100%`}function Mr(e){const t=Ir(e),n=zr(e);return r=>{const o={from:(null==r?void 0:r.from)||e.defaultGradient.from,to:(null==r?void 0:r.to)||e.defaultGradient.to,deg:(null==r?void 0:r.deg)||e.defaultGradient.deg};return`linear-gradient(${o.deg}deg, ${t(o.from,n(),!1)} 0%, ${t(o.to,n(),!1)} 100%)`}}function $r(e){return t=>{if("number"==typeof t)return`${t/16}${e}`;if("string"==typeof t){const n=t.replace("px","");if(!Number.isNaN(Number(n)))return`${Number(n)/16}${e}`}return t}}const Hr=$r("rem"),Ur=$r("em");function Wr({size:e,sizes:t,units:n}){return e in t?t[e]:"number"==typeof e?"em"===n?Ur(e):Hr(e):e||t.md}function Vr(e){return"number"==typeof e?e:"string"==typeof e&&e.includes("rem")?16*Number(e.replace("rem","")):"string"==typeof e&&e.includes("em")?16*Number(e.replace("em","")):Number(e)}function qr(e){return/^#?([0-9A-F]{3}){1,2}$/i.test(e)?function(e){let t=e.replace("#","");if(3===t.length){const e=t.split("");t=[e[0],e[0],e[1],e[1],e[2],e[2]].join("")}const n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:255&n,a:1}}(e):e.startsWith("rgb")?function(e){const[t,n,r,o]=e.replace(/[^0-9,.]/g,"").split(",").map(Number);return{r:t,g:n,b:r,a:o||1}}(e):{r:0,g:0,b:0,a:1}}function Gr(e,t){if("string"!=typeof e||t>1||t<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var(--"))return e;const{r:n,g:r,b:o}=qr(e);return`rgba(${n}, ${r}, ${o}, ${t})`}const Yr={fontStyles:function(e){return()=>({fontFamily:e.fontFamily||"sans-serif"})},themeColor:Ir,focusStyles:function(e){return t=>({WebkitTapHighlightColor:"transparent",[t||"&:focus"]:jr({},"always"===e.focusRing||"auto"===e.focusRing?e.focusRingStyles.styles(e):e.focusRingStyles.resetStyles(e)),[t?t.replace(":focus",":focus:not(:focus-visible)"):"&:focus:not(:focus-visible)"]:jr({},"auto"===e.focusRing||"never"===e.focusRing?e.focusRingStyles.resetStyles(e):null)})},linearGradient:function(e,...t){return`linear-gradient(${e}deg, ${Br(t)})`},radialGradient:function(...e){return`radial-gradient(circle, ${Br(e)})`},smallerThan:function(e){return t=>`@media (max-width: ${Ur(Vr(Wr({size:t,sizes:e.breakpoints}))-1)})`},largerThan:function(e){return t=>`@media (min-width: ${Ur(Vr(Wr({size:t,sizes:e.breakpoints})))})`},rgba:Gr,cover:function(e=0){return{position:"absolute",top:Hr(e),right:Hr(e),left:Hr(e),bottom:Hr(e)}},darken:function(e,t){if("string"==typeof e&&e.startsWith("var(--"))return e;const{r:n,g:r,b:o,a}=qr(e),i=1-t,l=e=>Math.round(e*i);return`rgba(${l(n)}, ${l(r)}, ${l(o)}, ${a})`},lighten:function(e,t){if("string"==typeof e&&e.startsWith("var(--"))return e;const{r:n,g:r,b:o,a}=qr(e),i=e=>Math.round(e+(255-e)*t);return`rgba(${i(n)}, ${i(r)}, ${i(o)}, ${a})`},radius:function(e){return t=>{if("number"==typeof t)return Hr(t);const n="number"==typeof e.defaultRadius?e.defaultRadius:e.radius[e.defaultRadius]||e.defaultRadius;return e.radius[t]||t||n}},variant:function(e){const t=Ir(e),n=zr(e),r=Mr(e);return({variant:o,color:a,gradient:i,primaryFallback:l})=>{const s=function(e,t){if("string"==typeof e&&e.includes(".")){const[n,r]=e.split("."),o=parseInt(r,10);if(n in t.colors&&o>=0&&o<10)return{isSplittedColor:!0,key:n,shade:o}}return{isSplittedColor:!1}}(a,e);switch(o){case"light":return{border:"transparent",background:Gr(t(a,"dark"===e.colorScheme?8:0,l,!1),"dark"===e.colorScheme?.2:1),color:"dark"===a?"dark"===e.colorScheme?e.colors.dark[0]:e.colors.dark[9]:t(a,"dark"===e.colorScheme?2:n("light")),hover:Gr(t(a,"dark"===e.colorScheme?7:1,l,!1),"dark"===e.colorScheme?.25:.65)};case"subtle":return{border:"transparent",background:"transparent",color:"dark"===a?"dark"===e.colorScheme?e.colors.dark[0]:e.colors.dark[9]:t(a,"dark"===e.colorScheme?2:n("light")),hover:Gr(t(a,"dark"===e.colorScheme?8:0,l,!1),"dark"===e.colorScheme?.2:1)};case"outline":return{border:t(a,"dark"===e.colorScheme?5:n("light")),background:"transparent",color:t(a,"dark"===e.colorScheme?5:n("light")),hover:"dark"===e.colorScheme?Gr(t(a,5,l,!1),.05):Gr(t(a,0,l,!1),.35)};case"default":return{border:"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[4],background:"dark"===e.colorScheme?e.colors.dark[6]:e.white,color:"dark"===e.colorScheme?e.white:e.black,hover:"dark"===e.colorScheme?e.colors.dark[5]:e.colors.gray[0]};case"white":return{border:"transparent",background:e.white,color:t(a,n()),hover:null};case"transparent":return{border:"transparent",color:"dark"===a?"dark"===e.colorScheme?e.colors.dark[0]:e.colors.dark[9]:t(a,"dark"===e.colorScheme?2:n("light")),background:"transparent",hover:null};case"gradient":return{background:r(i),color:e.white,border:"transparent",hover:null};default:{const r=n(),o=s.isSplittedColor?s.shade:r,i=s.isSplittedColor?s.key:a;return{border:"transparent",background:t(i,o,l),color:e.white,hover:t(i,9===o?8:o+1)}}}}},primaryShade:zr,hover:function(e){return{"@media (hover: hover)":{"&:hover":e},"@media (hover: none)":{"&:active":e}}},gradient:Mr,primaryColor:function(e){return t=>{const n=zr(e)(t);return e.colors[e.primaryColor][n]}},placeholderStyles:function(e){return()=>({userSelect:"none",color:"dark"===e.colorScheme?e.colors.dark[3]:e.colors.gray[5]})},dimmed:function(e){return()=>"dark"===e.colorScheme?e.colors.dark[2]:e.colors.gray[6]}};var Qr=Object.defineProperty,Xr=Object.defineProperties,Kr=Object.getOwnPropertyDescriptors,Zr=Object.getOwnPropertySymbols,Jr=Object.prototype.hasOwnProperty,eo=Object.prototype.propertyIsEnumerable,to=(e,t,n)=>t in e?Qr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function no(e){return((e,t)=>Xr(e,Kr(t)))(((e,t)=>{for(var n in t||(t={}))Jr.call(t,n)&&to(e,n,t[n]);if(Zr)for(var n of Zr(t))eo.call(t,n)&&to(e,n,t[n]);return e})({},e),{fn:{fontStyles:Yr.fontStyles(e),themeColor:Yr.themeColor(e),focusStyles:Yr.focusStyles(e),largerThan:Yr.largerThan(e),smallerThan:Yr.smallerThan(e),radialGradient:Yr.radialGradient,linearGradient:Yr.linearGradient,gradient:Yr.gradient(e),rgba:Yr.rgba,cover:Yr.cover,lighten:Yr.lighten,darken:Yr.darken,primaryShade:Yr.primaryShade(e),radius:Yr.radius(e),variant:Yr.variant(e),hover:Yr.hover,primaryColor:Yr.primaryColor(e),placeholderStyles:Yr.placeholderStyles(e),dimmed:Yr.dimmed(e)}})}Object.keys(Tr);const ro=no({dir:"ltr",primaryShade:{light:6,dark:8},focusRing:"auto",loader:"oval",colorScheme:"light",white:"#fff",black:"#000",defaultRadius:"sm",transitionTimingFunction:"ease",colors:Tr,lineHeight:1.55,fontFamily:"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",primaryColor:"blue",respectReducedMotion:!0,cursorType:"default",defaultGradient:{from:"indigo",to:"cyan",deg:45},shadows:{xs:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.1)",sm:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 0.625rem 0.9375rem -0.3125rem, rgba(0, 0, 0, 0.04) 0 0.4375rem 0.4375rem -0.3125rem",md:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 1.25rem 1.5625rem -0.3125rem, rgba(0, 0, 0, 0.04) 0 0.625rem 0.625rem -0.3125rem",lg:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 1.75rem 1.4375rem -0.4375rem, rgba(0, 0, 0, 0.04) 0 0.75rem 0.75rem -0.4375rem",xl:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 2.25rem 1.75rem -0.4375rem, rgba(0, 0, 0, 0.04) 0 1.0625rem 1.0625rem -0.4375rem"},fontSizes:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem"},radius:{xs:"0.125rem",sm:"0.25rem",md:"0.5rem",lg:"1rem",xl:"2rem"},spacing:{xs:"0.625rem",sm:"0.75rem",md:"1rem",lg:"1.25rem",xl:"1.5rem"},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},headings:{fontFamily:"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",fontWeight:700,sizes:{h1:{fontSize:"2.125rem",lineHeight:1.3,fontWeight:void 0},h2:{fontSize:"1.625rem",lineHeight:1.35,fontWeight:void 0},h3:{fontSize:"1.375rem",lineHeight:1.4,fontWeight:void 0},h4:{fontSize:"1.125rem",lineHeight:1.45,fontWeight:void 0},h5:{fontSize:"1rem",lineHeight:1.5,fontWeight:void 0},h6:{fontSize:"0.875rem",lineHeight:1.5,fontWeight:void 0}}},other:{},components:{},activeStyles:{transform:"translateY(0.0625rem)"},datesLocale:"en",globalStyles:void 0,focusRingStyles:{styles:e=>({outlineOffset:"0.125rem",outline:`0.125rem solid ${e.colors[e.primaryColor]["dark"===e.colorScheme?7:5]}`}),resetStyles:()=>({outline:"none"}),inputStyles:e=>({outline:"none",borderColor:e.colors[e.primaryColor]["object"==typeof e.primaryShade?e.primaryShade[e.colorScheme]:e.primaryShade]})}});var oo=Object.defineProperty,ao=Object.defineProperties,io=Object.getOwnPropertyDescriptors,lo=Object.getOwnPropertySymbols,so=Object.prototype.hasOwnProperty,uo=Object.prototype.propertyIsEnumerable,co=(e,t,n)=>t in e?oo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fo=(e,t)=>{for(var n in t||(t={}))so.call(t,n)&&co(e,n,t[n]);if(lo)for(var n of lo(t))uo.call(t,n)&&co(e,n,t[n]);return e},po=(e,t)=>ao(e,io(t));function go({theme:e}){return St.createElement(Cr,{styles:{"*, *::before, *::after":{boxSizing:"border-box"},html:{colorScheme:"dark"===e.colorScheme?"dark":"light"},body:po(fo({},e.fn.fontStyles()),{backgroundColor:"dark"===e.colorScheme?e.colors.dark[7]:e.white,color:"dark"===e.colorScheme?e.colors.dark[0]:e.black,lineHeight:e.lineHeight,fontSize:e.fontSizes.md,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"})}})}function ho(e,t,n,r=Hr){Object.keys(t).forEach((o=>{e[`--mantine-${n}-${o}`]=r(t[o])}))}function mo({theme:e}){const t={"--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-transition-timing-function":e.transitionTimingFunction,"--mantine-line-height":`${e.lineHeight}`,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":`${e.headings.fontWeight}`};ho(t,e.shadows,"shadow"),ho(t,e.fontSizes,"font-size"),ho(t,e.radius,"radius"),ho(t,e.spacing,"spacing"),ho(t,e.breakpoints,"breakpoints",Ur),Object.keys(e.colors).forEach((n=>{e.colors[n].forEach(((e,r)=>{t[`--mantine-color-${n}-${r}`]=e}))}));const n=e.headings.sizes;return Object.keys(n).forEach((e=>{t[`--mantine-${e}-font-size`]=n[e].fontSize,t[`--mantine-${e}-line-height`]=`${n[e].lineHeight}`})),St.createElement(Cr,{styles:{":root":t}})}var yo=Object.defineProperty,bo=Object.defineProperties,vo=Object.getOwnPropertyDescriptors,wo=Object.getOwnPropertySymbols,ko=Object.prototype.hasOwnProperty,xo=Object.prototype.propertyIsEnumerable,Eo=(e,t,n)=>t in e?yo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,So=(e,t)=>{for(var n in t||(t={}))ko.call(t,n)&&Eo(e,n,t[n]);if(wo)for(var n of wo(t))xo.call(t,n)&&Eo(e,n,t[n]);return e},Fo=(e,t)=>bo(e,vo(t));function Ao(e){return Object.keys(e).reduce(((t,n)=>(void 0!==e[n]&&(t[n]=e[n]),t)),{})}const Co={html:{fontFamily:"sans-serif",lineHeight:"1.15",textSizeAdjust:"100%"},body:{margin:0},"article, aside, footer, header, nav, section, figcaption, figure, main":{display:"block"},h1:{fontSize:"2em"},hr:{boxSizing:"content-box",height:0,overflow:"visible"},pre:{fontFamily:"monospace, monospace",fontSize:"1em"},a:{background:"transparent",textDecorationSkip:"objects"},"a:active, a:hover":{outlineWidth:0},"abbr[title]":{borderBottom:"none",textDecoration:"underline"},"b, strong":{fontWeight:"bolder"},"code, kbp, samp":{fontFamily:"monospace, monospace",fontSize:"1em"},dfn:{fontStyle:"italic"},mark:{backgroundColor:"#ff0",color:"#000"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sup:{top:"-0.5em"},sub:{bottom:"-0.25em"},"audio, video":{display:"inline-block"},"audio:not([controls])":{display:"none",height:0},img:{borderStyle:"none",verticalAlign:"middle"},"svg:not(:root)":{overflow:"hidden"},"button, input, optgroup, select, textarea":{fontFamily:"sans-serif",fontSize:"100%",lineHeight:"1.15",margin:0},"button, input":{overflow:"visible"},"button, select":{textTransform:"none"},"button, [type=reset], [type=submit]":{WebkitAppearance:"button"},"button::-moz-focus-inner, [type=button]::-moz-focus-inner, [type=reset]::-moz-focus-inner, [type=submit]::-moz-focus-inner":{borderStyle:"none",padding:0},"button:-moz-focusring, [type=button]:-moz-focusring, [type=reset]:-moz-focusring, [type=submit]:-moz-focusring":{outline:`${Hr(1)} dotted ButtonText`},legend:{boxSizing:"border-box",color:"inherit",display:"table",maxWidth:"100%",padding:0,whiteSpace:"normal"},progress:{display:"inline-block",verticalAlign:"baseline"},textarea:{overflow:"auto"},"[type=checkbox], [type=radio]":{boxSizing:"border-box",padding:0},"[type=number]::-webkit-inner-spin-button, [type=number]::-webkit-outer-spin-button":{height:"auto"},"[type=search]":{appearance:"none"},"[type=search]::-webkit-search-cancel-button, [type=search]::-webkit-search-decoration":{appearance:"none"},"::-webkit-file-upload-button":{appearance:"button",font:"inherit"},"details, menu":{display:"block"},summary:{display:"list-item"},canvas:{display:"inline-block"},template:{display:"none"}};function Oo(){return St.createElement(Cr,{styles:Co})}var Po=Object.defineProperty,To=Object.getOwnPropertySymbols,Do=Object.prototype.hasOwnProperty,Ro=Object.prototype.propertyIsEnumerable,No=(e,t,n)=>t in e?Po(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Lo=(e,t)=>{for(var n in t||(t={}))Do.call(t,n)&&No(e,n,t[n]);if(To)for(var n of To(t))Ro.call(t,n)&&No(e,n,t[n]);return e};const _o=(0,St.createContext)({theme:ro});function jo(){var e;return(null==(e=(0,St.useContext)(_o))?void 0:e.theme)||ro}function zo(){var e;return null==(e=(0,St.useContext)(_o))?void 0:e.emotionCache}function Io(e,t,n){var r;const o=jo(),a=null==(r=o.components[e])?void 0:r.defaultProps,i="function"==typeof a?a(o):a;return Lo(Lo(Lo({},t),i),Ao(n))}function Bo({theme:e,emotionCache:t,withNormalizeCSS:n=!1,withGlobalStyles:r=!1,withCSSVariables:o=!1,inherit:a=!1,children:i}){const l=(0,St.useContext)(_o),s=(u=ro,c=a?Lo(Lo({},l.theme),e):e,no(function(e,t){var n;if(!t)return e;const r=Object.keys(e).reduce(((n,r)=>{if("headings"===r&&t.headings){const r=t.headings.sizes?Object.keys(e.headings.sizes).reduce(((n,r)=>(n[r]=So(So({},e.headings.sizes[r]),t.headings.sizes[r]),n)),{}):e.headings.sizes;return Fo(So({},n),{headings:Fo(So(So({},e.headings),t.headings),{sizes:r})})}if("breakpoints"===r&&t.breakpoints){const r=So(So({},e.breakpoints),t.breakpoints);return Fo(So({},n),{breakpoints:Object.fromEntries(Object.entries(r).sort(((e,t)=>Vr(e[1])-Vr(t[1]))))})}return n[r]="object"==typeof t[r]?So(So({},e[r]),t[r]):"number"==typeof t[r]||"boolean"==typeof t[r]||"function"==typeof t[r]?t[r]:t[r]||e[r],n}),{});if((null==t?void 0:t.fontFamily)&&!(null==(n=null==t?void 0:t.headings)?void 0:n.fontFamily)&&(r.headings.fontFamily=t.fontFamily),!(r.primaryColor in r.colors))throw new Error("MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color");return r}(u,c)));var u,c;return St.createElement(kr,{theme:s},St.createElement(_o.Provider,{value:{theme:s,emotionCache:t}},n&&St.createElement(Oo,null),r&&St.createElement(go,{theme:s}),o&&St.createElement(mo,{theme:s}),"function"==typeof s.globalStyles&&St.createElement(Cr,{styles:s.globalStyles(s)}),i))}function Mo(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Mo(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function $o(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Mo(e))&&(r&&(r+=" "),r+=t);return r}Bo.displayName="@mantine/core/MantineProvider";const Ho=Yn({key:"mantine",prepend:!0});var Uo=Object.defineProperty,Wo=Object.getOwnPropertySymbols,Vo=Object.prototype.hasOwnProperty,qo=Object.prototype.propertyIsEnumerable,Go=(e,t,n)=>t in e?Uo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const Yo="ref";const{cssFactory:Qo}={cssFactory:function(e){const{cache:t}=e,n=(...e)=>{const{ref:n,args:r}=function(e){let t;if(1!==e.length)return{args:e,ref:t};const[n]=e;if(!(n instanceof Object))return{args:e,ref:t};if(!(Yo in n))return{args:e,ref:t};t=n[Yo];const r=((e,t)=>{for(var n in t||(t={}))Vo.call(t,n)&&Go(e,n,t[n]);if(Wo)for(var n of Wo(t))qo.call(t,n)&&Go(e,n,t[n]);return e})({},n);return delete r[Yo],{args:[r],ref:t}}(e),o=fr(r,t.registered);return Jn(t,o,!1),`${t.key}-${o.name}${void 0===n?"":` ${n}`}`};return{css:n,cx:(...e)=>function(e,t,n){const r=[],o=Kn(e,r,n);return r.length<2?n:o+t(r)}(t.registered,n,$o(e))}}};function Xo(){const e=zo()||Ho;return function(t,n){const r=(0,St.useRef)();return(!r.current||n.length!==r.current.prevDeps.length||r.current.prevDeps.map(((e,t)=>e===n[t])).indexOf(!1)>=0)&&(r.current={v:Qo({cache:e}),prevDeps:[...n]}),r.current.v}(0,[e])}function Ko({cx:e,classes:t,context:n,classNames:r,name:o,cache:a}){const i=n.reduce(((e,t)=>(Object.keys(t.classNames).forEach((n=>{"string"!=typeof e[n]?e[n]=`${t.classNames[n]}`:e[n]=`${e[n]} ${t.classNames[n]}`})),e)),{});return Object.keys(t).reduce(((n,l)=>(n[l]=e(t[l],i[l],null!=r&&r[l],Array.isArray(o)?o.filter(Boolean).map((e=>`${(null==a?void 0:a.key)||"mantine"}-${e}-${l}`)).join(" "):o?`${(null==a?void 0:a.key)||"mantine"}-${o}-${l}`:null),n)),{})}var Zo=Object.defineProperty,Jo=Object.getOwnPropertySymbols,ea=Object.prototype.hasOwnProperty,ta=Object.prototype.propertyIsEnumerable,na=(e,t,n)=>t in e?Zo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ra=(e,t)=>{for(var n in t||(t={}))ea.call(t,n)&&na(e,n,t[n]);if(Jo)for(var n of Jo(t))ta.call(t,n)&&na(e,n,t[n]);return e};function oa(e,t){return t&&Object.keys(t).forEach((n=>{e[n]?e[n]=ra(ra({},e[n]),t[n]):e[n]=ra({},t[n])})),e}function aa(e,t,n,r){const o=e=>"function"==typeof e?e(t,n||{},r):e||{};return Array.isArray(e)?e.map((e=>o(e.styles))).reduce(((e,t)=>oa(e,t)),{}):o(e)}function ia(e){const t="function"==typeof e?e:()=>e;return function(e,n){const r=jo(),o=function(e){const t=jo(),n=e=>{var n,r,o,a;return{styles:(null==(n=t.components[e])?void 0:n.styles)||{},classNames:(null==(r=t.components[e])?void 0:r.classNames)||{},variants:null==(o=t.components[e])?void 0:o.variants,sizes:null==(a=t.components[e])?void 0:a.sizes}};return Array.isArray(e)?e.map(n):[n(e)]}(null==n?void 0:n.name),a=zo(),i={variant:null==n?void 0:n.variant,size:null==n?void 0:n.size},{css:l,cx:s}=Xo(),u=t(r,e,i),c=aa(null==n?void 0:n.styles,r,e,i),f=aa(o,r,e,i),d=function({ctx:e,theme:t,params:n,variant:r,size:o}){return e.reduce(((e,a)=>(a.variants&&r in a.variants&&oa(e,a.variants[r](t,n,{variant:r,size:o})),a.sizes&&o in a.sizes&&oa(e,a.sizes[o](t,n,{variant:r,size:o})),e)),{})}({ctx:o,theme:r,params:e,variant:null==n?void 0:n.variant,size:null==n?void 0:n.size}),p=Object.fromEntries(Object.keys(u).map((e=>[e,s({[l(u[e])]:!(null==n?void 0:n.unstyled)},l(d[e]),l(f[e]),l(c[e]))])));return{classes:Ko({cx:s,classes:p,context:o,classNames:null==n?void 0:n.classNames,name:null==n?void 0:n.name,cache:a}),cx:s,theme:r}}}var la=Object.defineProperty,sa=Object.defineProperties,ua=Object.getOwnPropertyDescriptors,ca=Object.getOwnPropertySymbols,fa=Object.prototype.hasOwnProperty,da=Object.prototype.propertyIsEnumerable,pa=(e,t,n)=>t in e?la(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ga=(e,t)=>{for(var n in t||(t={}))fa.call(t,n)&&pa(e,n,t[n]);if(ca)for(var n of ca(t))da.call(t,n)&&pa(e,n,t[n]);return e},ha=(e,t)=>sa(e,ua(t));function ma(e,t,n){return void 0!==e?e in n.headings.sizes?n.headings.sizes[e].fontSize:Hr(e):n.headings.sizes[t].fontSize}function ya(e,t,n){return void 0!==e&&e in n.headings.sizes?n.headings.sizes[e].lineHeight:n.headings.sizes[t].lineHeight}const ba=ia(((e,{element:t,weight:n,inline:r},{size:o})=>({root:ha(ga({},e.fn.fontStyles()),{fontFamily:e.headings.fontFamily,fontWeight:n||e.headings.sizes[t].fontWeight||e.headings.fontWeight,fontSize:ma(o,t,e),lineHeight:r?1:ya(o,t,e),margin:0})})));var va=Object.defineProperty,wa=Object.defineProperties,ka=Object.getOwnPropertyDescriptors,xa=Object.getOwnPropertySymbols,Ea=Object.prototype.hasOwnProperty,Sa=Object.prototype.propertyIsEnumerable,Fa=(e,t,n)=>t in e?va(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Aa=(e,t)=>{for(var n in t||(t={}))Ea.call(t,n)&&Fa(e,n,t[n]);if(xa)for(var n of xa(t))Sa.call(t,n)&&Fa(e,n,t[n]);return e},Ca=(e,t)=>wa(e,ka(t));function Oa({underline:e,strikethrough:t}){const n=[];return e&&n.push("underline"),t&&n.push("line-through"),n.length>0?n.join(" "):"none"}function Pa({theme:e,color:t}){return"dimmed"===t?e.fn.dimmed():"string"==typeof t&&(t in e.colors||t.split(".")[0]in e.colors)?e.fn.variant({variant:"filled",color:t}).background:t||"inherit"}function Ta(e){return"number"==typeof e?{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical"}:null}function Da({theme:e,truncate:t}){return"start"===t?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",direction:"ltr"===e.dir?"rtl":"ltr",textAlign:"ltr"===e.dir?"right":"left"}:t?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:null}var Ra=ia(((e,{color:t,lineClamp:n,truncate:r,inline:o,inherit:a,underline:i,gradient:l,weight:s,transform:u,align:c,strikethrough:f,italic:d},{size:p})=>{const g=e.fn.variant({variant:"gradient",gradient:l});return{root:Ca(Aa(Aa(Aa(Aa({},e.fn.fontStyles()),e.fn.focusStyles()),Ta(n)),Da({theme:e,truncate:r})),{color:Pa({color:t,theme:e}),fontFamily:a?"inherit":e.fontFamily,fontSize:a||void 0===p?"inherit":Wr({size:p,sizes:e.fontSizes}),lineHeight:a?"inherit":o?1:e.lineHeight,textDecoration:Oa({underline:i,strikethrough:f}),WebkitTapHighlightColor:"transparent",fontWeight:a?"inherit":s,textTransform:u,textAlign:c,fontStyle:d?"italic":void 0}),gradient:{backgroundImage:g.background,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}}));const Na=Ra;var La=Object.getOwnPropertySymbols,_a=Object.prototype.hasOwnProperty,ja=Object.prototype.propertyIsEnumerable;const za=["-xs","-sm","-md","-lg","-xl"],Ia={identity:function(e){return e},color:function(e,t){return"dimmed"===e?"dark"===t.colorScheme?t.colors.dark[2]:t.colors.gray[6]:t.fn.variant({variant:"filled",color:e,primaryFallback:!1}).background},size:function(e){return Hr(e)},fontSize:function(e,t){return Wr({size:e,sizes:t.fontSizes})},spacing:function(e,t){return za.includes(e)?`calc(${Wr({size:e.replace("-",""),sizes:t.spacing})} * -1)`:Wr({size:e,sizes:t.spacing})}},Ba={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},mx:{type:"spacing",property:["marginRight","marginLeft"]},my:{type:"spacing",property:["marginTop","marginBottom"]},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},px:{type:"spacing",property:["paddingRight","paddingLeft"]},py:{type:"spacing",property:["paddingTop","paddingBottom"]},bg:{type:"color",property:"background"},c:{type:"color",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"identity",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"identity",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"identity",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"}};var Ma=Object.defineProperty,$a=Object.getOwnPropertySymbols,Ha=Object.prototype.hasOwnProperty,Ua=Object.prototype.propertyIsEnumerable,Wa=(e,t,n)=>t in e?Ma(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Va=(e,t)=>{for(var n in t||(t={}))Ha.call(t,n)&&Wa(e,n,t[n]);if($a)for(var n of $a(t))Ua.call(t,n)&&Wa(e,n,t[n]);return e};function qa(e,t,n=Ba){return Object.keys(n).reduce(((r,o)=>(o in e&&void 0!==e[o]&&r.push(function({value:e,theme:t,getValue:n,property:r}){if(null==e)return;if("object"==typeof e){const o=function(e,t){const n=Object.keys(e).filter((e=>"base"!==e)).sort(((e,n)=>Vr(Wr({size:e,sizes:t.breakpoints}))-Vr(Wr({size:n,sizes:t.breakpoints}))));return"base"in e?["base",...n]:n}(e,t).reduce(((o,a)=>{if("base"===a&&void 0!==e.base){const a=n(e.base,t);return Array.isArray(r)?(r.forEach((e=>{o[e]=a})),o):(o[r]=a,o)}const i=n(e[a],t);return Array.isArray(r)?(o[t.fn.largerThan(a)]={},r.forEach((e=>{o[t.fn.largerThan(a)][e]=i})),o):(o[t.fn.largerThan(a)]={[r]:i},o)}),{});return o}const o=n(e,t);return Array.isArray(r)?r.reduce(((e,t)=>(e[t]=o,e)),{}):{[r]:o}}({value:e[o],getValue:Ia[n[o].type],property:n[o].property,theme:t})),r)),[]).reduce(((e,t)=>(Object.keys(t).forEach((n=>{"object"==typeof t[n]&&null!==t[n]?e[n]=n in e?Va(Va({},e[n]),t[n]):t[n]:e[n]=t[n]})),e)),{})}function Ga(e,t){return"function"==typeof e?e(t):e}function Ya(e,t,n){const r=jo(),{css:o,cx:a}=Xo();return Array.isArray(e)?a(n,o(qa(t,r)),e.map((e=>o(Ga(e,r))))):a(n,o(Ga(e,r)),o(qa(t,r)))}var Qa=Object.defineProperty,Xa=Object.getOwnPropertySymbols,Ka=Object.prototype.hasOwnProperty,Za=Object.prototype.propertyIsEnumerable,Ja=(e,t,n)=>t in e?Qa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const ei=(0,St.forwardRef)(((e,t)=>{var n=e,{className:r,component:o,style:a,sx:i}=n,l=((e,t)=>{var n={};for(var r in e)Ka.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Xa)for(var r of Xa(e))t.indexOf(r)<0&&Za.call(e,r)&&(n[r]=e[r]);return n})(n,["className","component","style","sx"]);const{systemStyles:s,rest:u}=function(e){const t=e,{m:n,mx:r,my:o,mt:a,mb:i,ml:l,mr:s,p:u,px:c,py:f,pt:d,pb:p,pl:g,pr:h,bg:m,c:y,opacity:b,ff:v,fz:w,fw:k,lts:x,ta:E,lh:S,fs:F,tt:A,td:C,w:O,miw:P,maw:T,h:D,mih:R,mah:N,bgsz:L,bgp:_,bgr:j,bga:z,pos:I,top:B,left:M,bottom:$,right:H,inset:U,display:W}=t,V=((e,t)=>{var n={};for(var r in e)_a.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&La)for(var r of La(e))t.indexOf(r)<0&&ja.call(e,r)&&(n[r]=e[r]);return n})(t,["m","mx","my","mt","mb","ml","mr","p","px","py","pt","pb","pl","pr","bg","c","opacity","ff","fz","fw","lts","ta","lh","fs","tt","td","w","miw","maw","h","mih","mah","bgsz","bgp","bgr","bga","pos","top","left","bottom","right","inset","display"]);return{systemStyles:Ao({m:n,mx:r,my:o,mt:a,mb:i,ml:l,mr:s,p:u,px:c,py:f,pt:d,pb:p,pl:g,pr:h,bg:m,c:y,opacity:b,ff:v,fz:w,fw:k,lts:x,ta:E,lh:S,fs:F,tt:A,td:C,w:O,miw:P,maw:T,h:D,mih:R,mah:N,bgsz:L,bgp:_,bgr:j,bga:z,pos:I,top:B,left:M,bottom:$,right:H,inset:U,display:W}),rest:V}}(l),c=o||"div";return St.createElement(c,((e,t)=>{for(var n in t||(t={}))Ka.call(t,n)&&Ja(e,n,t[n]);if(Xa)for(var n of Xa(t))Za.call(t,n)&&Ja(e,n,t[n]);return e})({ref:t,className:Ya(i,s,r),style:a},u))}));ei.displayName="@mantine/core/Box";const ti=ei;var ni=Object.defineProperty,ri=Object.getOwnPropertySymbols,oi=Object.prototype.hasOwnProperty,ai=Object.prototype.propertyIsEnumerable,ii=(e,t,n)=>t in e?ni(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const li={variant:"text"},si=(0,St.forwardRef)(((e,t)=>{const n=Io("Text",li,e),{className:r,size:o,weight:a,transform:i,color:l,align:s,variant:u,lineClamp:c,truncate:f,gradient:d,inline:p,inherit:g,underline:h,strikethrough:m,italic:y,classNames:b,styles:v,unstyled:w,span:k,__staticSelector:x}=n,E=((e,t)=>{var n={};for(var r in e)oi.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ri)for(var r of ri(e))t.indexOf(r)<0&&ai.call(e,r)&&(n[r]=e[r]);return n})(n,["className","size","weight","transform","color","align","variant","lineClamp","truncate","gradient","inline","inherit","underline","strikethrough","italic","classNames","styles","unstyled","span","__staticSelector"]),{classes:S,cx:F}=Na({color:l,lineClamp:c,truncate:f,inline:p,inherit:g,underline:h,strikethrough:m,italic:y,weight:a,transform:i,align:s,gradient:d},{unstyled:w,name:x||"Text",variant:u,size:o});return St.createElement(ti,((e,t)=>{for(var n in t||(t={}))oi.call(t,n)&&ii(e,n,t[n]);if(ri)for(var n of ri(t))ai.call(t,n)&&ii(e,n,t[n]);return e})({ref:t,className:F(S.root,{[S.gradient]:"gradient"===u},r),component:k?"span":"div"},E))}));si.displayName="@mantine/core/Text";const ui=si;var ci=Object.defineProperty,fi=Object.getOwnPropertySymbols,di=Object.prototype.hasOwnProperty,pi=Object.prototype.propertyIsEnumerable,gi=(e,t,n)=>t in e?ci(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const hi={order:1},mi=(0,St.forwardRef)(((e,t)=>{const n=Io("Title",hi,e),{className:r,order:o,children:a,unstyled:i,size:l,weight:s,inline:u,variant:c}=n,f=((e,t)=>{var n={};for(var r in e)di.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&fi)for(var r of fi(e))t.indexOf(r)<0&&pi.call(e,r)&&(n[r]=e[r]);return n})(n,["className","order","children","unstyled","size","weight","inline","variant"]),{classes:d,cx:p}=ba({element:`h${o}`,weight:s,inline:u},{name:"Title",unstyled:i,variant:c,size:l});return[1,2,3,4,5,6].includes(o)?St.createElement(ui,((e,t)=>{for(var n in t||(t={}))di.call(t,n)&&gi(e,n,t[n]);if(fi)for(var n of fi(t))pi.call(t,n)&&gi(e,n,t[n]);return e})({variant:c,component:`h${o}`,ref:t,className:p(d.root,r)},f),a):null}));mi.displayName="@mantine/core/Title";var yi=Object.defineProperty,bi=Object.defineProperties,vi=Object.getOwnPropertyDescriptors,wi=Object.getOwnPropertySymbols,ki=Object.prototype.hasOwnProperty,xi=Object.prototype.propertyIsEnumerable,Ei=(e,t,n)=>t in e?yi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Si=(e,t)=>{for(var n in t||(t={}))ki.call(t,n)&&Ei(e,n,t[n]);if(wi)for(var n of wi(t))xi.call(t,n)&&Ei(e,n,t[n]);return e},Fi=(e,t)=>bi(e,vi(t));const Ai=ia(((e,{color:t})=>{const n=t||("dark"===e.colorScheme?"dark":"gray"),r=e.fn.variant({color:n,variant:"light"});return{root:Fi(Si({},e.fn.fontStyles()),{lineHeight:e.lineHeight,padding:`${Hr(2)} calc(${e.spacing.xs} / 2)`,borderRadius:e.radius.sm,color:"dark"===e.colorScheme?"dark"===n?e.colors.dark[0]:e.white:e.colors.dark[7],backgroundColor:"dark"===e.colorScheme&&"dark"===n?e.colors.dark[5]:r.background,fontFamily:e.fontFamilyMonospace,fontSize:e.fontSizes.xs}),block:{padding:e.spacing.xs,margin:0,overflowX:"auto"}}}));var Ci=Object.defineProperty,Oi=Object.getOwnPropertySymbols,Pi=Object.prototype.hasOwnProperty,Ti=Object.prototype.propertyIsEnumerable,Di=(e,t,n)=>t in e?Ci(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ri=(e,t)=>{for(var n in t||(t={}))Pi.call(t,n)&&Di(e,n,t[n]);if(Oi)for(var n of Oi(t))Ti.call(t,n)&&Di(e,n,t[n]);return e};const Ni={},Li=(0,St.forwardRef)(((e,t)=>{const n=Io("Code",Ni,e),{className:r,children:o,block:a,color:i,unstyled:l,variant:s}=n,u=((e,t)=>{var n={};for(var r in e)Pi.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Oi)for(var r of Oi(e))t.indexOf(r)<0&&Ti.call(e,r)&&(n[r]=e[r]);return n})(n,["className","children","block","color","unstyled","variant"]),{classes:c,cx:f}=Ai({color:i},{name:"Code",unstyled:l,variant:s});return a?St.createElement(ti,Ri({component:"pre",dir:"ltr",className:f(c.root,c.block,r),ref:t},u),o):St.createElement(ti,Ri({component:"code",className:f(c.root,r),ref:t,dir:"ltr"},u),o)}));function _i(e){const t=(0,St.createContext)(null);return[({children:e,value:n})=>St.createElement(t.Provider,{value:n},e),()=>{const n=(0,St.useContext)(t);if(null===n)throw new Error(e);return n}]}Li.displayName="@mantine/core/Code";const[ji,zi]=_i("List component was not found in tree");function Ii(e){return`___ref-${e||""}`}const Bi=ia(((e,{spacing:t,center:n})=>({itemWrapper:{ref:Ii("itemWrapper"),display:"inline-flex",flexDirection:"column",whiteSpace:"normal"},item:{whiteSpace:"nowrap",lineHeight:n?1:e.lineHeight,"&:not(:first-of-type)":{marginTop:Wr({size:t,sizes:e.spacing})},"&[data-with-icon]":{listStyle:"none",[`& .${Ii("itemWrapper")}`]:{display:"inline-flex",alignItems:n?"center":"flex-start",flexDirection:"row"}}},itemIcon:{display:"inline-block",verticalAlign:"middle",marginRight:e.spacing.sm}})));var Mi=Object.defineProperty,$i=Object.getOwnPropertySymbols,Hi=Object.prototype.hasOwnProperty,Ui=Object.prototype.propertyIsEnumerable,Wi=(e,t,n)=>t in e?Mi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const Vi={},qi=(0,St.forwardRef)(((e,t)=>{const n=Io("ListItem",Vi,e),{className:r,children:o,icon:a}=n,i=((e,t)=>{var n={};for(var r in e)Hi.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&$i)for(var r of $i(e))t.indexOf(r)<0&&Ui.call(e,r)&&(n[r]=e[r]);return n})(n,["className","children","icon"]),{icon:l,spacing:s,center:u,listStyleType:c,size:f,withPadding:d,classNames:p,styles:g,unstyled:h,variant:m}=zi(),y=a||l,{classes:b,cx:v}=Bi({withPadding:d,listStyleType:c,center:u,spacing:s},{classNames:p,styles:g,unstyled:h,name:"List",variant:m,size:f});return St.createElement(ti,((e,t)=>{for(var n in t||(t={}))Hi.call(t,n)&&Wi(e,n,t[n]);if($i)for(var n of $i(t))Ui.call(t,n)&&Wi(e,n,t[n]);return e})({component:"li",className:v(b.item,r),"data-with-icon":!!y||void 0,ref:t},i),St.createElement("div",{className:b.itemWrapper},y&&St.createElement("span",{className:b.itemIcon},y),St.createElement("span",null,o)))}));qi.displayName="@mantine/core/ListItem";var Gi=Object.defineProperty,Yi=Object.defineProperties,Qi=Object.getOwnPropertyDescriptors,Xi=Object.getOwnPropertySymbols,Ki=Object.prototype.hasOwnProperty,Zi=Object.prototype.propertyIsEnumerable,Ji=(e,t,n)=>t in e?Gi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,el=(e,t)=>{for(var n in t||(t={}))Ki.call(t,n)&&Ji(e,n,t[n]);if(Xi)for(var n of Xi(t))Zi.call(t,n)&&Ji(e,n,t[n]);return e},tl=(e,t)=>Yi(e,Qi(t));const nl=ia(((e,{withPadding:t,listStyleType:n},{size:r})=>({root:tl(el({},e.fn.fontStyles()),{listStyleType:n,color:"dark"===e.colorScheme?e.colors.dark[0]:e.black,fontSize:Wr({size:r,sizes:e.fontSizes}),lineHeight:e.lineHeight,margin:0,paddingLeft:t?e.spacing.xl:0,listStylePosition:"inside"})})));var rl=Object.defineProperty,ol=Object.getOwnPropertySymbols,al=Object.prototype.hasOwnProperty,il=Object.prototype.propertyIsEnumerable,ll=(e,t,n)=>t in e?rl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const sl={type:"unordered",size:"md",spacing:0},ul=(0,St.forwardRef)(((e,t)=>{const n=Io("List",sl,e),{children:r,type:o,size:a,listStyleType:i,withPadding:l,center:s,spacing:u,icon:c,className:f,styles:d,classNames:p,unstyled:g,variant:h}=n,m=((e,t)=>{var n={};for(var r in e)al.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ol)for(var r of ol(e))t.indexOf(r)<0&&il.call(e,r)&&(n[r]=e[r]);return n})(n,["children","type","size","listStyleType","withPadding","center","spacing","icon","className","styles","classNames","unstyled","variant"]),{classes:y,cx:b}=nl({withPadding:l,listStyleType:i,center:s,spacing:u},{classNames:p,styles:d,name:"List",unstyled:g,size:a,variant:h});return St.createElement(ji,{value:{spacing:u,center:s,icon:c,listStyleType:i,size:a,withPadding:l,classNames:p,styles:d,unstyled:g,variant:h}},St.createElement(ti,((e,t)=>{for(var n in t||(t={}))al.call(t,n)&&ll(e,n,t[n]);if(ol)for(var n of ol(t))il.call(t,n)&&ll(e,n,t[n]);return e})({component:"unordered"===o?"ul":"ol",className:b(y.root,f),ref:t},m),r))}));ul.Item=qi,ul.displayName="@mantine/core/List";const cl="undefined"!=typeof document?St.useLayoutEffect:St.useEffect,fl=St["useId".toString()]||(()=>{});function dl(){return`mantine-${Math.random().toString(36).slice(2,11)}`}function pl(e){const t=function(){const e=fl();return e?`mantine-${e.replace(/:/g,"")}`:""}(),[n,r]=(0,St.useState)(t);return cl((()=>{r(dl())}),[]),"string"==typeof e?e:"undefined"==typeof window?t:n}var gl=Object.defineProperty,hl=Object.defineProperties,ml=Object.getOwnPropertyDescriptors,yl=Object.getOwnPropertySymbols,bl=Object.prototype.hasOwnProperty,vl=Object.prototype.propertyIsEnumerable,wl=(e,t,n)=>t in e?gl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kl=(e,t)=>{for(var n in t||(t={}))bl.call(t,n)&&wl(e,n,t[n]);if(yl)for(var n of yl(t))vl.call(t,n)&&wl(e,n,t[n]);return e},xl=(e,t)=>hl(e,ml(t));function El({variant:e,color:t,theme:n}){if("filled"===e)return{backgroundColor:n.fn.variant({variant:"filled",color:t}).background,color:n.white};if("outline"===e){const e=n.fn.variant({variant:"outline",color:t});return{color:e.color,borderColor:e.border,backgroundColor:"dark"===n.colorScheme?n.colors.dark[6]:n.white}}if("light"===e){const e=n.fn.variant({variant:"light",color:t});return{backgroundColor:e.background,color:e.color}}return null}const Sl=ia(((e,{radius:t,color:n},{variant:r})=>({root:kl(xl(kl({},e.fn.fontStyles()),{position:"relative",overflow:"hidden",paddingTop:e.spacing.sm,paddingBottom:e.spacing.sm,paddingLeft:e.spacing.md,paddingRight:e.spacing.sm,borderRadius:e.fn.radius(t),border:`${Hr(1)} solid transparent`}),El({variant:r,color:n,theme:e})),wrapper:{display:"flex"},body:{flex:1},title:{boxSizing:"border-box",margin:0,marginBottom:e.spacing.xs,display:"flex",alignItems:"center",justifyContent:"space-between",lineHeight:e.lineHeight,fontSize:e.fontSizes.sm,fontWeight:700,"&[data-with-close-button]":{paddingRight:e.spacing.md}},label:{display:"block",overflow:"hidden",textOverflow:"ellipsis"},icon:{lineHeight:1,width:Hr(20),height:Hr(20),display:"flex",alignItems:"center",justifyContent:"flex-start",marginRight:e.spacing.md,marginTop:1},message:xl(kl({},e.fn.fontStyles()),{lineHeight:e.lineHeight,textOverflow:"ellipsis",overflow:"hidden",fontSize:e.fontSizes.sm,color:"filled"===r?e.white:"dark"===e.colorScheme?"light"===r?e.white:e.colors.dark[0]:e.black}),closeButton:{width:Hr(10),height:Hr(10),color:"filled"===r?e.white:"dark"===e.colorScheme?"light"===r?e.white:e.colors.dark[0]:e.black}})));var Fl=Object.defineProperty,Al=Object.defineProperties,Cl=Object.getOwnPropertyDescriptors,Ol=Object.getOwnPropertySymbols,Pl=Object.prototype.hasOwnProperty,Tl=Object.prototype.propertyIsEnumerable,Dl=(e,t,n)=>t in e?Fl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Rl=(e,t)=>{for(var n in t||(t={}))Pl.call(t,n)&&Dl(e,n,t[n]);if(Ol)for(var n of Ol(t))Tl.call(t,n)&&Dl(e,n,t[n]);return e},Nl=(e,t)=>Al(e,Cl(t));const Ll=["subtle","filled","outline","light","default","transparent","gradient"],_l={xs:Hr(18),sm:Hr(22),md:Hr(28),lg:Hr(34),xl:Hr(44)};function jl({variant:e,theme:t,color:n,gradient:r}){const o=t.fn.variant({color:n,variant:e,gradient:r});return"gradient"===e?{border:0,backgroundImage:o.background,color:o.color,"&:hover":t.fn.hover({backgroundSize:"200%"})}:Ll.includes(e)?Rl({border:`${Hr(1)} solid ${o.border}`,backgroundColor:o.background,color:o.color},t.fn.hover({backgroundColor:o.hover})):null}var zl=ia(((e,{radius:t,color:n,gradient:r},{variant:o,size:a})=>({root:Nl(Rl({position:"relative",borderRadius:e.fn.radius(t),padding:0,lineHeight:1,display:"flex",alignItems:"center",justifyContent:"center",height:Wr({size:a,sizes:_l}),minHeight:Wr({size:a,sizes:_l}),width:Wr({size:a,sizes:_l}),minWidth:Wr({size:a,sizes:_l})},jl({variant:o,theme:e,color:n,gradient:r})),{"&:active":e.activeStyles,"& [data-action-icon-loader]":{maxWidth:"70%"},"&:disabled, &[data-disabled]":{color:e.colors.gray["dark"===e.colorScheme?6:4],cursor:"not-allowed",backgroundColor:"transparent"===o?void 0:e.fn.themeColor("gray","dark"===e.colorScheme?8:1),borderColor:"transparent"===o?void 0:e.fn.themeColor("gray","dark"===e.colorScheme?8:1),backgroundImage:"none",pointerEvents:"none","&:active":{transform:"none"}},"&[data-loading]":{pointerEvents:"none","&::before":Nl(Rl({content:'""'},e.fn.cover(Hr(-1))),{backgroundColor:"dark"===e.colorScheme?e.fn.rgba(e.colors.dark[7],.5):"rgba(255, 255, 255, .5)",borderRadius:e.fn.radius(t),cursor:"not-allowed"})}})})));const Il=zl;var Bl=Object.defineProperty,Ml=Object.getOwnPropertySymbols,$l=Object.prototype.hasOwnProperty,Hl=Object.prototype.propertyIsEnumerable,Ul=(e,t,n)=>t in e?Bl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wl=(e,t)=>{for(var n in t||(t={}))$l.call(t,n)&&Ul(e,n,t[n]);if(Ml)for(var n of Ml(t))Hl.call(t,n)&&Ul(e,n,t[n]);return e},Vl=(e,t)=>{var n={};for(var r in e)$l.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Ml)for(var r of Ml(e))t.indexOf(r)<0&&Hl.call(e,r)&&(n[r]=e[r]);return n},ql=Object.defineProperty,Gl=Object.getOwnPropertySymbols,Yl=Object.prototype.hasOwnProperty,Ql=Object.prototype.propertyIsEnumerable,Xl=(e,t,n)=>t in e?ql(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Kl=(e,t)=>{for(var n in t||(t={}))Yl.call(t,n)&&Xl(e,n,t[n]);if(Gl)for(var n of Gl(t))Ql.call(t,n)&&Xl(e,n,t[n]);return e},Zl=(e,t)=>{var n={};for(var r in e)Yl.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Gl)for(var r of Gl(e))t.indexOf(r)<0&&Ql.call(e,r)&&(n[r]=e[r]);return n},Jl=Object.defineProperty,es=Object.getOwnPropertySymbols,ts=Object.prototype.hasOwnProperty,ns=Object.prototype.propertyIsEnumerable,rs=(e,t,n)=>t in e?Jl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,os=(e,t)=>{for(var n in t||(t={}))ts.call(t,n)&&rs(e,n,t[n]);if(es)for(var n of es(t))ns.call(t,n)&&rs(e,n,t[n]);return e},as=(e,t)=>{var n={};for(var r in e)ts.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&es)for(var r of es(e))t.indexOf(r)<0&&ns.call(e,r)&&(n[r]=e[r]);return n},is=Object.defineProperty,ls=Object.getOwnPropertySymbols,ss=Object.prototype.hasOwnProperty,us=Object.prototype.propertyIsEnumerable,cs=(e,t,n)=>t in e?is(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const fs={bars:function(e){var t=e,{size:n,color:r}=t;const o=Vl(t,["size","color"]),{style:a}=o,i=Vl(o,["style"]);return St.createElement("svg",Wl({viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg",fill:r,style:Wl({width:n},a)},i),St.createElement("rect",{y:"10",width:"15",height:"120",rx:"6"},St.createElement("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),St.createElement("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),St.createElement("rect",{x:"30",y:"10",width:"15",height:"120",rx:"6"},St.createElement("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),St.createElement("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),St.createElement("rect",{x:"60",width:"15",height:"140",rx:"6"},St.createElement("animate",{attributeName:"height",begin:"0s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),St.createElement("animate",{attributeName:"y",begin:"0s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),St.createElement("rect",{x:"90",y:"10",width:"15",height:"120",rx:"6"},St.createElement("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),St.createElement("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),St.createElement("rect",{x:"120",y:"10",width:"15",height:"120",rx:"6"},St.createElement("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),St.createElement("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})))},oval:function(e){var t=e,{size:n,color:r}=t;const o=Zl(t,["size","color"]),{style:a}=o,i=Zl(o,["style"]);return St.createElement("svg",Kl({viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:r,style:Kl({width:n,height:n},a)},i),St.createElement("g",{fill:"none",fillRule:"evenodd"},St.createElement("g",{transform:"translate(2.5 2.5)",strokeWidth:"5"},St.createElement("circle",{strokeOpacity:".5",cx:"16",cy:"16",r:"16"}),St.createElement("path",{d:"M32 16c0-9.94-8.06-16-16-16"},St.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 16 16",to:"360 16 16",dur:"1s",repeatCount:"indefinite"})))))},dots:function(e){var t=e,{size:n,color:r}=t;const o=as(t,["size","color"]),{style:a}=o,i=as(o,["style"]);return St.createElement("svg",os({viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:r,style:os({width:n},a)},i),St.createElement("circle",{cx:"15",cy:"15",r:"15"},St.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),St.createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),St.createElement("circle",{cx:"60",cy:"15",r:"9",fillOpacity:"0.3"},St.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),St.createElement("animate",{attributeName:"fill-opacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),St.createElement("circle",{cx:"105",cy:"15",r:"15"},St.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),St.createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})))}},ds={xs:Hr(18),sm:Hr(22),md:Hr(36),lg:Hr(44),xl:Hr(58)},ps={size:"md"};function gs(e){const t=Io("Loader",ps,e),{size:n,color:r,variant:o}=t,a=((e,t)=>{var n={};for(var r in e)ss.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ls)for(var r of ls(e))t.indexOf(r)<0&&us.call(e,r)&&(n[r]=e[r]);return n})(t,["size","color","variant"]),i=jo(),l=o in fs?o:i.loader;return St.createElement(ti,((e,t)=>{for(var n in t||(t={}))ss.call(t,n)&&cs(e,n,t[n]);if(ls)for(var n of ls(t))us.call(t,n)&&cs(e,n,t[n]);return e})({role:"presentation",component:fs[l]||fs.bars,size:Wr({size:n,sizes:ds}),color:i.fn.variant({variant:"filled",primaryFallback:!1,color:r||i.primaryColor}).background},a))}gs.displayName="@mantine/core/Loader";var hs=Object.defineProperty,ms=Object.defineProperties,ys=Object.getOwnPropertyDescriptors,bs=Object.getOwnPropertySymbols,vs=Object.prototype.hasOwnProperty,ws=Object.prototype.propertyIsEnumerable,ks=(e,t,n)=>t in e?hs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xs=(e,t)=>{for(var n in t||(t={}))vs.call(t,n)&&ks(e,n,t[n]);if(bs)for(var n of bs(t))ws.call(t,n)&&ks(e,n,t[n]);return e},Es=(e,t)=>ms(e,ys(t));const Ss=ia((e=>({root:Es(xs(xs({},e.fn.focusStyles()),e.fn.fontStyles()),{cursor:"pointer",border:0,padding:0,appearance:"none",fontSize:e.fontSizes.md,backgroundColor:"transparent",textAlign:"left",color:"dark"===e.colorScheme?e.colors.dark[0]:e.black,textDecoration:"none",boxSizing:"border-box"})})));var Fs=Object.defineProperty,As=Object.getOwnPropertySymbols,Cs=Object.prototype.hasOwnProperty,Os=Object.prototype.propertyIsEnumerable,Ps=(e,t,n)=>t in e?Fs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const Ts=(0,St.forwardRef)(((e,t)=>{const n=Io("UnstyledButton",{},e),{className:r,component:o="button",unstyled:a,variant:i}=n,l=((e,t)=>{var n={};for(var r in e)Cs.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&As)for(var r of As(e))t.indexOf(r)<0&&Os.call(e,r)&&(n[r]=e[r]);return n})(n,["className","component","unstyled","variant"]),{classes:s,cx:u}=Ss(null,{name:"UnstyledButton",unstyled:a,variant:i});return St.createElement(ti,((e,t)=>{for(var n in t||(t={}))Cs.call(t,n)&&Ps(e,n,t[n]);if(As)for(var n of As(t))Os.call(t,n)&&Ps(e,n,t[n]);return e})({component:o,ref:t,className:u(s.root,r),type:"button"===o?"button":void 0},l))}));Ts.displayName="@mantine/core/UnstyledButton";const Ds=Ts;var Rs=Object.defineProperty,Ns=Object.getOwnPropertySymbols,Ls=Object.prototype.hasOwnProperty,_s=Object.prototype.propertyIsEnumerable,js=(e,t,n)=>t in e?Rs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zs=(e,t)=>{for(var n in t||(t={}))Ls.call(t,n)&&js(e,n,t[n]);if(Ns)for(var n of Ns(t))_s.call(t,n)&&js(e,n,t[n]);return e};const Is={color:"gray",size:"md",variant:"subtle"},Bs=(0,St.forwardRef)(((e,t)=>{const n=Io("ActionIcon",Is,e),{className:r,color:o,children:a,radius:i,size:l,variant:s,gradient:u,disabled:c,loaderProps:f,loading:d,unstyled:p,__staticSelector:g}=n,h=((e,t)=>{var n={};for(var r in e)Ls.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Ns)for(var r of Ns(e))t.indexOf(r)<0&&_s.call(e,r)&&(n[r]=e[r]);return n})(n,["className","color","children","radius","size","variant","gradient","disabled","loaderProps","loading","unstyled","__staticSelector"]),{classes:m,cx:y,theme:b}=Il({radius:i,color:o,gradient:u},{name:["ActionIcon",g],unstyled:p,size:l,variant:s}),v=St.createElement(gs,zs({color:b.fn.variant({color:o,variant:s}).color,size:"100%","data-action-icon-loader":!0},f));return St.createElement(Ds,zs({className:y(m.root,r),ref:t,disabled:c,"data-disabled":c||void 0,"data-loading":d||void 0,unstyled:p},h),d?v:a)}));Bs.displayName="@mantine/core/ActionIcon";const Ms=Bs;var $s=Object.defineProperty,Hs=Object.getOwnPropertySymbols,Us=Object.prototype.hasOwnProperty,Ws=Object.prototype.propertyIsEnumerable,Vs=(e,t,n)=>t in e?$s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,qs=(e,t)=>{for(var n in t||(t={}))Us.call(t,n)&&Vs(e,n,t[n]);if(Hs)for(var n of Hs(t))Ws.call(t,n)&&Vs(e,n,t[n]);return e};function Gs(e){const t=e,{width:n,height:r,style:o}=t,a=((e,t)=>{var n={};for(var r in e)Us.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Hs)for(var r of Hs(e))t.indexOf(r)<0&&Ws.call(e,r)&&(n[r]=e[r]);return n})(t,["width","height","style"]);return St.createElement("svg",qs({viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:qs({width:n,height:r},o)},a),St.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}Gs.displayName="@mantine/core/CloseIcon";var Ys=Object.defineProperty,Qs=Object.getOwnPropertySymbols,Xs=Object.prototype.hasOwnProperty,Ks=Object.prototype.propertyIsEnumerable,Zs=(e,t,n)=>t in e?Ys(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const Js={xs:Hr(12),sm:Hr(16),md:Hr(20),lg:Hr(28),xl:Hr(34)},eu={size:"sm"},tu=(0,St.forwardRef)(((e,t)=>{const n=Io("CloseButton",eu,e),{iconSize:r,size:o,children:a}=n,i=((e,t)=>{var n={};for(var r in e)Xs.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Qs)for(var r of Qs(e))t.indexOf(r)<0&&Ks.call(e,r)&&(n[r]=e[r]);return n})(n,["iconSize","size","children"]),l=Hr(r||Js[o]);return St.createElement(Ms,((e,t)=>{for(var n in t||(t={}))Xs.call(t,n)&&Zs(e,n,t[n]);if(Qs)for(var n of Qs(t))Ks.call(t,n)&&Zs(e,n,t[n]);return e})({ref:t,__staticSelector:"CloseButton",size:o},i),a||St.createElement(Gs,{width:l,height:l}))}));tu.displayName="@mantine/core/CloseButton";const nu=tu;var ru=Object.defineProperty,ou=Object.getOwnPropertySymbols,au=Object.prototype.hasOwnProperty,iu=Object.prototype.propertyIsEnumerable,lu=(e,t,n)=>t in e?ru(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const su={variant:"light"},uu=(0,St.forwardRef)(((e,t)=>{const n=Io("Alert",su,e),{id:r,className:o,title:a,variant:i,children:l,color:s,classNames:u,icon:c,styles:f,onClose:d,radius:p,withCloseButton:g,closeButtonLabel:h,unstyled:m}=n,y=((e,t)=>{var n={};for(var r in e)au.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ou)for(var r of ou(e))t.indexOf(r)<0&&iu.call(e,r)&&(n[r]=e[r]);return n})(n,["id","className","title","variant","children","color","classNames","icon","styles","onClose","radius","withCloseButton","closeButtonLabel","unstyled"]),{classes:b,cx:v}=Sl({color:s,radius:p},{classNames:u,styles:f,unstyled:m,variant:i,name:"Alert"}),w=pl(r),k=a&&`${w}-title`,x=`${w}-body`;return St.createElement(ti,((e,t)=>{for(var n in t||(t={}))au.call(t,n)&&lu(e,n,t[n]);if(ou)for(var n of ou(t))iu.call(t,n)&&lu(e,n,t[n]);return e})({id:w,role:"alert","aria-labelledby":k,"aria-describedby":x,className:v(b.root,b[i],o),ref:t},y),St.createElement("div",{className:b.wrapper},c&&St.createElement("div",{className:b.icon},c),St.createElement("div",{className:b.body},a&&St.createElement("div",{className:b.title,"data-with-close-button":g||void 0},St.createElement("span",{id:k,className:b.label},a)),St.createElement("div",{id:x,className:b.message},l)),g&&St.createElement(nu,{className:b.closeButton,onClick:d,variant:"transparent",size:16,iconSize:16,"aria-label":h})))}));uu.displayName="@mantine/core/Alert";var cu=Object.defineProperty,fu=Object.getOwnPropertySymbols,du=Object.prototype.hasOwnProperty,pu=Object.prototype.propertyIsEnumerable,gu=(e,t,n)=>t in e?cu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hu=(e,t)=>{for(var n in t||(t={}))du.call(t,n)&&gu(e,n,t[n]);if(fu)for(var n of fu(t))pu.call(t,n)&&gu(e,n,t[n]);return e};function mu({theme:e,color:t}){return"dimmed"===t?e.fn.dimmed():e.fn.themeColor(t||e.primaryColor,"dark"===e.colorScheme?4:7,!1,!0)}const yu=ia(((e,{color:t,underline:n})=>({root:hu({backgroundColor:"transparent",cursor:"pointer",padding:0,border:0,color:mu({theme:e,color:t})},e.fn.hover({textDecoration:n?"underline":"none"}))})));var bu=Object.defineProperty,vu=Object.getOwnPropertySymbols,wu=Object.prototype.hasOwnProperty,ku=Object.prototype.propertyIsEnumerable,xu=(e,t,n)=>t in e?bu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Eu=(e,t)=>{for(var n in t||(t={}))wu.call(t,n)&&xu(e,n,t[n]);if(vu)for(var n of vu(t))ku.call(t,n)&&xu(e,n,t[n]);return e};const Su={underline:!0},Fu=(0,St.forwardRef)(((e,t)=>{const n=Io("Anchor",Su,e),{component:r,className:o,unstyled:a,variant:i,size:l,color:s,underline:u}=n,c=((e,t)=>{var n={};for(var r in e)wu.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&vu)for(var r of vu(e))t.indexOf(r)<0&&ku.call(e,r)&&(n[r]=e[r]);return n})(n,["component","className","unstyled","variant","size","color","underline"]),{classes:f,cx:d}=yu({color:s,underline:u},{name:"Anchor",unstyled:a,variant:i,size:l}),p="button"===r?{type:"button"}:null;return St.createElement(ui,Eu(Eu({component:r||"a",ref:t,className:d(f.root,o),size:l},p),c))}));Fu.displayName="@mantine/core/Anchor";const Au=Fu;var Cu=Object.defineProperty,Ou=Object.defineProperties,Pu=Object.getOwnPropertyDescriptors,Tu=Object.getOwnPropertySymbols,Du=Object.prototype.hasOwnProperty,Ru=Object.prototype.propertyIsEnumerable,Nu=(e,t,n)=>t in e?Cu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Lu=(e,t)=>{for(var n in t||(t={}))Du.call(t,n)&&Nu(e,n,t[n]);if(Tu)for(var n of Tu(t))Ru.call(t,n)&&Nu(e,n,t[n]);return e},_u=(e,t)=>Ou(e,Pu(t));const ju=ia(((e,{captionSide:t,horizontalSpacing:n,verticalSpacing:r,fontSize:o,withBorder:a,withColumnBorders:i})=>{const l=`${Hr(1)} solid ${"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[3]}`;return{root:_u(Lu({},e.fn.fontStyles()),{width:"100%",borderCollapse:"collapse",captionSide:t,color:"dark"===e.colorScheme?e.colors.dark[0]:e.black,lineHeight:e.lineHeight,border:a?l:void 0,"& > caption":{marginTop:"top"===t?0:e.spacing.xs,marginBottom:"bottom"===t?0:e.spacing.xs,fontSize:e.fontSizes.sm,color:"dark"===e.colorScheme?e.colors.dark[2]:e.colors.gray[6]},"& > thead > tr > th, & > tfoot > tr > th, & > tbody > tr > th":{textAlign:"left",fontWeight:"bold",color:"dark"===e.colorScheme?e.colors.dark[0]:e.colors.gray[7],fontSize:Wr({size:o,sizes:e.fontSizes}),padding:`${Wr({size:r,sizes:e.spacing})} ${Wr({size:n,sizes:e.spacing})}`},"& > thead > tr > th":{borderBottom:l},"& > tfoot > tr > th, & > tbody > tr > th":{borderTop:l},"& > tbody > tr > td":{padding:`${Wr({size:r,sizes:e.spacing})} ${Wr({size:n,sizes:e.spacing})}`,borderTop:l,fontSize:Wr({size:o,sizes:e.fontSizes})},"& > tbody > tr:first-of-type > td, & > tbody > tr:first-of-type > th":{borderTop:"none"},"& > thead > tr > th, & > tbody > tr > td":{borderRight:i?l:"none","&:last-of-type":{borderRight:"none",borderLeft:i?l:"none"}},"& > tbody > tr > th":{borderRight:i?l:"none"},"&[data-striped] > tbody > tr:nth-of-type(odd)":{backgroundColor:"dark"===e.colorScheme?e.colors.dark[6]:e.colors.gray[0]},"&[data-hover] > tbody > tr":e.fn.hover({backgroundColor:"dark"===e.colorScheme?e.colors.dark[5]:e.colors.gray[1]})})}}));var zu=Object.defineProperty,Iu=Object.defineProperties,Bu=Object.getOwnPropertyDescriptors,Mu=Object.getOwnPropertySymbols,$u=Object.prototype.hasOwnProperty,Hu=Object.prototype.propertyIsEnumerable,Uu=(e,t,n)=>t in e?zu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const Wu={striped:!1,highlightOnHover:!1,captionSide:"top",horizontalSpacing:"xs",fontSize:"sm",verticalSpacing:7,withBorder:!1,withColumnBorders:!1},Vu=(0,St.forwardRef)(((e,t)=>{const n=Io("Table",Wu,e),{className:r,children:o,striped:a,highlightOnHover:i,captionSide:l,horizontalSpacing:s,verticalSpacing:u,fontSize:c,unstyled:f,withBorder:d,withColumnBorders:p,variant:g}=n,h=((e,t)=>{var n={};for(var r in e)$u.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Mu)for(var r of Mu(e))t.indexOf(r)<0&&Hu.call(e,r)&&(n[r]=e[r]);return n})(n,["className","children","striped","highlightOnHover","captionSide","horizontalSpacing","verticalSpacing","fontSize","unstyled","withBorder","withColumnBorders","variant"]),{classes:m,cx:y}=ju({captionSide:l,verticalSpacing:u,horizontalSpacing:s,fontSize:c,withBorder:d,withColumnBorders:p},{unstyled:f,name:"Table",variant:g});return St.createElement(ti,((e,t)=>Iu(e,Bu(t)))(((e,t)=>{for(var n in t||(t={}))$u.call(t,n)&&Uu(e,n,t[n]);if(Mu)for(var n of Mu(t))Hu.call(t,n)&&Uu(e,n,t[n]);return e})({},h),{component:"table",ref:t,className:y(m.root,r),"data-striped":a||void 0,"data-hover":i||void 0}),o)}));function qu(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=qu(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}Vu.displayName="@mantine/core/Table";const Gu=function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=qu(e))&&(r&&(r+=" "),r+=t);return r};var Yu,Qu,Xu,Ku,Zu,Ju=Object.create,ec=Object.defineProperty,tc=Object.defineProperties,nc=Object.getOwnPropertyDescriptor,rc=Object.getOwnPropertyDescriptors,oc=Object.getOwnPropertyNames,ac=Object.getOwnPropertySymbols,ic=Object.getPrototypeOf,lc=Object.prototype.hasOwnProperty,sc=Object.prototype.propertyIsEnumerable,uc=(e,t,n)=>t in e?ec(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cc=(e,t)=>{for(var n in t||(t={}))lc.call(t,n)&&uc(e,n,t[n]);if(ac)for(var n of ac(t))sc.call(t,n)&&uc(e,n,t[n]);return e},fc=(e,t)=>tc(e,rc(t)),dc=(e,t)=>{var n={};for(var r in e)lc.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ac)for(var r of ac(e))t.indexOf(r)<0&&sc.call(e,r)&&(n[r]=e[r]);return n},pc=(Yu={"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var n=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var o,a;switch(n=n||{},r.util.type(t)){case"Object":if(a=r.util.objId(t),n[a])return n[a];for(var i in o={},n[a]=o,t)t.hasOwnProperty(i)&&(o[i]=e(t[i],n));return o;case"Array":return a=r.util.objId(t),n[a]?n[a]:(o=[],n[a]=o,t.forEach((function(t,r){o[r]=e(t,n)})),o);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var o in t)n[o]=t[o];return n},insertBefore:function(e,t,n,o){var a=(o=o||r.languages)[e],i={};for(var l in a)if(a.hasOwnProperty(l)){if(l==t)for(var s in n)n.hasOwnProperty(s)&&(i[s]=n[s]);n.hasOwnProperty(l)||(i[l]=a[l])}var u=o[e];return o[e]=i,r.languages.DFS(r.languages,(function(t,n){n===u&&t!=e&&(this[t]=i)})),i},DFS:function e(t,n,o,a){a=a||{};var i=r.util.objId;for(var l in t)if(t.hasOwnProperty(l)){n.call(t,l,t[l],o||l);var s=t[l],u=r.util.type(s);"Object"!==u||a[i(s)]?"Array"!==u||a[i(s)]||(a[i(s)]=!0,e(s,n,l,a)):(a[i(s)]=!0,e(s,n,null,a))}}},plugins:{},highlight:function(e,t,n){var a={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",a),!a.grammar)throw new Error('The language "'+a.language+'" has no grammar.');return a.tokens=r.tokenize(a.code,a.grammar),r.hooks.run("after-tokenize",a),o.stringify(r.util.encode(a.tokens),a.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new l;return s(o,o.head,e),i(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,a=0;o=n[a++];)o(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var a=o[1].length;o.index+=a,o[0]=o[0].slice(a)}return o}function i(e,t,n,l,c,f){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var g=0;g<p.length;++g){if(f&&f.cause==d+","+g)return;var h=p[g],m=h.inside,y=!!h.lookbehind,b=!!h.greedy,v=h.alias;if(b&&!h.pattern.global){var w=h.pattern.toString().match(/[imsuy]*$/)[0];h.pattern=RegExp(h.pattern.source,w+"g")}for(var k=h.pattern||h,x=l.next,E=c;x!==t.tail&&!(f&&E>=f.reach);E+=x.value.length,x=x.next){var S=x.value;if(t.length>e.length)return;if(!(S instanceof o)){var F,A=1;if(b){if(!(F=a(k,E,e,y))||F.index>=e.length)break;var C=F.index,O=F.index+F[0].length,P=E;for(P+=x.value.length;C>=P;)P+=(x=x.next).value.length;if(E=P-=x.value.length,x.value instanceof o)continue;for(var T=x;T!==t.tail&&(P<O||"string"==typeof T.value);T=T.next)A++,P+=T.value.length;A--,S=e.slice(E,P),F.index-=E}else if(!(F=a(k,0,S,y)))continue;C=F.index;var D=F[0],R=S.slice(0,C),N=S.slice(C+D.length),L=E+S.length;f&&L>f.reach&&(f.reach=L);var _=x.prev;if(R&&(_=s(t,_,R),E+=R.length),u(t,_,A),x=s(t,_,new o(d,m?r.tokenize(D,m):D,v,D)),N&&s(t,x,N),A>1){var j={cause:d+","+g,reach:L};i(e,t,n,x.prev,E,j),f&&j.reach>f.reach&&(f.reach=j.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function s(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function u(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}return o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var o="";return t.forEach((function(t){o+=e(t,n)})),o}var a={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},i=t.alias;i&&(Array.isArray(i)?Array.prototype.push.apply(a.classes,i):a.classes.push(i)),r.hooks.run("wrap",a);var l="";for(var s in a.attributes)l+=" "+s+'="'+(a.attributes[s]||"").replace(/"/g,"&quot;")+'"';return"<"+a.tag+' class="'+a.classes.join(" ")+'"'+l+">"+a.content+"</"+a.tag+">"},r}();t.exports=n,n.default=n}},function(){return Qu||(0,Yu[oc(Yu)[0]])((Qu={exports:{}}).exports,Qu),Qu.exports}),gc=((e,t,n)=>(n=null!=e?Ju(ic(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of oc(t))lc.call(e,n)||undefined===n||ec(e,n,{get:()=>t[n],enumerable:!(r=nc(t,n))||r.enumerable});return e})(e&&e.__esModule?n:ec(n,"default",{value:e,enumerable:!0}),e)))(pc());gc.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},gc.languages.markup.tag.inside["attr-value"].inside.entity=gc.languages.markup.entity,gc.languages.markup.doctype.inside["internal-subset"].inside=gc.languages.markup,gc.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(gc.languages.markup.tag,"addInlined",{value:function(e,t){var n;(((n={})["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:gc.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,n={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}})["language-"+t]={pattern:/[\s\S]+/,inside:gc.languages[t]},t={})[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:n},gc.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(gc.languages.markup.tag,"addAttribute",{value:function(e,t){gc.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:gc.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),gc.languages.html=gc.languages.markup,gc.languages.mathml=gc.languages.markup,gc.languages.svg=gc.languages.markup,gc.languages.xml=gc.languages.extend("markup",{}),gc.languages.ssml=gc.languages.xml,gc.languages.atom=gc.languages.xml,gc.languages.rss=gc.languages.xml,function(e){var t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,r="(?:[^\\\\-]|"+n.source+")",o=(r=RegExp(r+"-"+r),{pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"});e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:r,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":t,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":o}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":o}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}(gc),gc.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},gc.languages.javascript=gc.languages.extend("clike",{"class-name":[gc.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),gc.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,gc.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:gc.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:gc.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:gc.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:gc.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:gc.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),gc.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:gc.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),gc.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),gc.languages.markup&&(gc.languages.markup.tag.addInlined("script","javascript"),gc.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),gc.languages.js=gc.languages.javascript,gc.languages.actionscript=gc.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),gc.languages.actionscript["class-name"].alias="function",delete gc.languages.actionscript.parameter,delete gc.languages.actionscript["literal-property"],gc.languages.markup&&gc.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:gc.languages.markup}}),Ku=/#(?!\{).+/,Zu={pattern:/#\{[^}]+\}/,alias:"variable"},(Xu=gc).languages.coffeescript=Xu.languages.extend("javascript",{comment:Ku,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:Zu}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),Xu.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:Ku,interpolation:Zu}}}),Xu.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:Xu.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:Zu}}]}),Xu.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete Xu.languages.coffeescript["template-string"],Xu.languages.coffee=Xu.languages.coffeescript,function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(t,n){(t="string"==typeof t?[t]:t).forEach((function(t){var r=function(e){e.inside||(e.inside={}),e.inside.rest=n},o="doc-comment";if(a=e.languages[t]){var a,i=a[o];if((i=i||(a=e.languages.insertBefore(t,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[o])instanceof RegExp&&(i=a[o]={pattern:i}),Array.isArray(i))for(var l=0,s=i.length;l<s;l++)i[l]instanceof RegExp&&(i[l]={pattern:i[l]}),r(i[l]);else r(i)}}))}}),t.addSupport(["java","javascript","php"],t)}(gc),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,(t=e.languages.markup)&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(gc),function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+t.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[t,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),t={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},{pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0});e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:n})}(gc),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),a=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+o+"|"+a+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(a),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(gc),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),a=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,i=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+a+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+a+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+a+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o,a=t[n];"code"!==a.type?e(a.content):(o=a.content[1],a=a.content[3],o&&a&&"code-language"===o.type&&"code-block"===a.type&&"string"==typeof o.content&&(o=o.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),o="language-"+(o=(/[a-z][\w-]*/i.exec(o)||[""])[0].toLowerCase()),a.alias?"string"==typeof a.alias?a.alias=[a.alias,o]:a.alias.push(o):a.alias=[o]))}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var a=t.classes[r];if(a=/language-(.+)/.exec(a)){n=a[1];break}}var u,c=e.languages[n];c?t.content=e.highlight(t.content.replace(i,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),s(n)):l[t]||e})),c,n):n&&"none"!==n&&e.plugins.autoloader&&(u="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random()),t.attributes.id=u,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(u);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})))}})),RegExp(e.languages.markup.tag.pattern.source,"gi")),l={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(gc),gc.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:gc.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},gc.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var o=[];if(f(["definition-mutation","punctuation"])&&"("===c(1).content){n+=2;var a=d(/^\($/,/^\)$/);if(-1===a)continue;for(;n<a;n++){var i=c(0);"variable"===i.type&&(p(i,"variable-input"),o.push(i.content))}n=a+1}if(f(["punctuation","property-query"])&&"{"===c(0).content&&(n++,p(c(0),"property-mutation"),0<o.length)){var l=d(/^\{$/,/^\}$/);if(-1!==l)for(var s=n;s<l;s++){var u=t[s];"variable"===u.type&&0<=o.indexOf(u.content)&&p(u,"variable-input")}}}}function c(e){return t[n+e]}function f(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=c(n+t);if(!r||r.type!==e[n])return}return 1}function d(e,r){for(var o=1,a=n;a<t.length;a++){var i=t[a],l=i.content;if("punctuation"===i.type&&"string"==typeof l)if(e.test(l))o++;else if(r.test(l)&&0==--o)return a}return-1}function p(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),gc.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,o=r.inside["interpolation-punctuation"],a=r.pattern.source;function i(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function l(t,n,r){return t={code:t,grammar:n,language:r},e.hooks.run("before-tokenize",t),t.tokens=e.tokenize(t.code,t.grammar),e.hooks.run("after-tokenize",t),t.tokens}function s(t,n,i){var s=e.tokenize(t,{interpolation:{pattern:RegExp(a),lookbehind:!0}}),u=0,c={},f=(s=l(s.map((function(e){if("string"==typeof e)return e;var n,r;for(e=e.content;-1!==t.indexOf((r=u++,n="___"+i.toUpperCase()+"_"+r+"___")););return c[n]=e,n})).join(""),n,i),Object.keys(c));return u=0,function t(n){for(var a=0;a<n.length;a++){if(u>=f.length)return;var i,s,d,p,g,h,m,y=n[a];"string"==typeof y||"string"==typeof y.content?(i=f[u],-1!==(m=(h="string"==typeof y?y:y.content).indexOf(i))&&(++u,s=h.substring(0,m),g=c[i],d=void 0,(p={})["interpolation-punctuation"]=o,3===(p=e.tokenize(g,p)).length&&((d=[1,1]).push.apply(d,l(p[1],e.languages.javascript,"javascript")),p.splice.apply(p,d)),d=new e.Token("interpolation",p,r.alias,g),p=h.substring(m+i.length),g=[],s&&g.push(s),g.push(d),p&&(t(h=[p]),g.push.apply(g,h)),"string"==typeof y?(n.splice.apply(n,[a,1].concat(g)),a+=g.length-1):y.content=g)):(m=y.content,Array.isArray(m)?t(m):t([m]))}}(s),new e.Token(i,s,"language-"+i,t)}e.languages.javascript["template-string"]=[i("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),i("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),i("svg",/\bsvg/.source),i("markdown",/\b(?:markdown|md)/.source),i("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),i("sql",/\bsql/.source),t].filter(Boolean);var u={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function c(e){return"string"==typeof e?e:Array.isArray(e)?e.map(c).join(""):c(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in u&&function t(n){for(var r=0,o=n.length;r<o;r++){var a,i,l,u=n[r];"string"!=typeof u&&(a=u.content,Array.isArray(a)?"template-string"===u.type?(u=a[1],3===a.length&&"string"!=typeof u&&"embedded-code"===u.type&&(i=c(u),u=u.alias,u=Array.isArray(u)?u[0]:u,l=e.languages[u])&&(a[1]=s(i,l,u))):t(a):"string"!=typeof a&&t([a]))}}(t.tokens)}))}(gc),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(gc),function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,(function(){return n}))),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(gc),function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(gc),gc.languages.n4js=gc.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),gc.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),gc.languages.n4jsd=gc.languages.n4js,function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var o=n[r],a=e.languages.javascript[o];o=(a="RegExp"===e.util.type(a)?e.languages.javascript[o]={pattern:a}:a).inside||{},(a.inside=o)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(gc),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function a(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}function i(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],a=!1;"string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?0<n.length&&n[n.length-1].tagName===l(o.content[0].content[1])&&n.pop():"/>"!==o.content[o.content.length-1].content&&n.push({tagName:l(o.content[0].content[1]),openedBraces:0}):0<n.length&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:0<n.length&&0<n[n.length-1].openedBraces&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:a=!0),(a||"string"==typeof o)&&0<n.length&&0===n[n.length-1].openedBraces&&(a=l(o),r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(a+=l(t[r+1]),t.splice(r+1,1)),0<r&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(a=l(t[r-1])+a,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",a,null,a)),o.content&&"string"!=typeof o.content&&i(o.content)}}o=a(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=a(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:a(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:a(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var l=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(l).join(""):""};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||i(e.tokens)}))}(gc),function(e){var t=e.util.clone(e.languages.typescript);(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],t=e.languages.tsx.tag).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0}(gc),gc.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},gc.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=gc.languages.swift})),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(gc),gc.languages.c=gc.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),gc.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),gc.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},gc.languages.c.string],char:gc.languages.c.char,comment:gc.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:gc.languages.c}}}}),gc.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete gc.languages.c.boolean,gc.languages.objectivec=gc.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete gc.languages.objectivec["class-name"],gc.languages.objc=gc.languages.objectivec,gc.languages.reason=gc.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),gc.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete gc.languages.reason.function,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(gc),gc.languages.go=gc.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),gc.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete gc.languages.go["class-name"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(gc),gc.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},gc.languages.python["string-interpolation"].inside.interpolation.inside.rest=gc.languages.python,gc.languages.py=gc.languages.python,gc.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},gc.languages.webmanifest=gc.languages.json,((e,t)=>{for(var n in t)ec(e,n,{get:t[n],enumerable:!0})})({},{dracula:()=>hc,duotoneDark:()=>mc,duotoneLight:()=>yc,github:()=>bc,gruvboxMaterialDark:()=>_c,gruvboxMaterialLight:()=>jc,jettwaveDark:()=>Dc,jettwaveLight:()=>Rc,nightOwl:()=>vc,nightOwlLight:()=>wc,oceanicNext:()=>Ec,okaidia:()=>Sc,oneDark:()=>Nc,oneLight:()=>Lc,palenight:()=>Fc,shadesOfPurple:()=>Ac,synthwave84:()=>Cc,ultramin:()=>Oc,vsDark:()=>Pc,vsLight:()=>Tc});var hc={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},mc={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},yc={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},bc={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},vc={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},wc={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},kc="#c5a5c5",xc="#8dc891",Ec={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:kc}},{types:["attr-value"],style:{color:xc}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:xc}},{types:["punctuation"],style:{color:xc}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:kc}},{types:["atrule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},Sc={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},Fc={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},Ac={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},Cc={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},Oc={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},Pc={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},Tc={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},Dc={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Rc={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Nc={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},Lc={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},_c={plain:{color:"#ebdbb2",backgroundColor:"#292828"},styles:[{types:["imports","class-name","maybe-class-name","constant","doctype","builtin","function"],style:{color:"#d8a657"}},{types:["property-access"],style:{color:"#7daea3"}},{types:["tag"],style:{color:"#e78a4e"}},{types:["attr-name","char","url","regex"],style:{color:"#a9b665"}},{types:["attr-value","string"],style:{color:"#89b482"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#ea6962"}},{types:["entity","number","symbol"],style:{color:"#d3869b"}}]},jc={plain:{color:"#654735",backgroundColor:"#f9f5d7"},styles:[{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#af2528"}},{types:["imports","class-name","maybe-class-name","constant","doctype","builtin"],style:{color:"#b4730e"}},{types:["string","attr-value"],style:{color:"#477a5b"}},{types:["property-access"],style:{color:"#266b79"}},{types:["function","attr-name","char","url"],style:{color:"#72761e"}},{types:["tag"],style:{color:"#b94c07"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["entity","number","symbol"],style:{color:"#924f79"}}]},zc=/\r\n|\r|\n/,Ic=e=>{0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},Bc=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},Mc=e=>{const t=[[]],n=[e],r=[0],o=[e.length];let a=0,i=0,l=[];const s=[l];for(;i>-1;){for(;(a=r[i]++)<o[i];){let e,u=t[i];const c=n[i][a];if("string"==typeof c?(u=i>0?u:["plain"],e=c):(u=Bc(u,c.type),c.alias&&(u=Bc(u,c.alias)),e=c.content),"string"!=typeof e){i++,t.push(u),n.push(e),r.push(0),o.push(e.length);continue}const f=e.split(zc),d=f.length;l.push({types:u,content:f[0]});for(let e=1;e<d;e++)Ic(l),s.push(l=[]),l.push({types:u,content:f[e]})}i--,t.pop(),n.pop(),r.pop(),o.pop()}return Ic(l),s},$c=({children:e,language:t,code:n,theme:r,prism:o})=>{const a=t.toLowerCase(),i=((e,t)=>{const{plain:n}=e,r=e.styles.reduce(((e,n)=>{const{languages:r,style:o}=n;return r&&!r.includes(t)||n.types.forEach((t=>{const n=cc(cc({},e[t]),o);e[t]=n})),e}),{});return r.root=n,r.plain=fc(cc({},n),{backgroundColor:void 0}),r})(r,a),l=(e=>(0,St.useCallback)((t=>{var n=t,{className:r,style:o,line:a}=n,i=dc(n,["className","style","line"]);const l=fc(cc({},i),{className:Gu("token-line",r)});return"object"==typeof e&&"plain"in e&&(l.style=e.plain),"object"==typeof o&&(l.style=cc(cc({},l.style||{}),o)),l}),[e]))(i),s=(e=>{const t=(0,St.useCallback)((({types:t,empty:n})=>{if(null!=e)return 1===t.length&&"plain"===t[0]?null!=n?{display:"inline-block"}:void 0:1===t.length&&null!=n?e[t[0]]:Object.assign(null!=n?{display:"inline-block"}:{},...t.map((t=>e[t])))}),[e]);return(0,St.useCallback)((e=>{var n=e,{token:r,className:o,style:a}=n,i=dc(n,["token","className","style"]);const l=fc(cc({},i),{className:Gu("token",...r.types,o),children:r.content,style:t(r)});return null!=a&&(l.style=cc(cc({},l.style||{}),a)),l}),[t])})(i),u=(({prism:e,code:t,grammar:n,language:r})=>(0,St.useMemo)((()=>{if(null==n)return Mc([t]);const o={code:t,grammar:n,language:r,tokens:[]};return e.hooks.run("before-tokenize",o),o.tokens=e.tokenize(t,n),e.hooks.run("after-tokenize",o),Mc(o.tokens)}),[t,n,r,e]))({prism:o,language:a,code:n,grammar:o.languages[a]});return e({tokens:u,className:`prism-code language-${a}`,style:null!=i?i.root:{},getLineProps:l,getTokenProps:s})},Hc=e=>(0,St.createElement)($c,fc(cc({},e),{prism:e.prism||gc,theme:e.theme||Pc,code:e.code,language:e.language})),Uc=o(703);function Wc(e){return e&&"object"==typeof e?"position"in e||"type"in e?qc(e.position):"start"in e||"end"in e?qc(e):"line"in e||"column"in e?Vc(e):"":""}function Vc(e){return Gc(e&&e.line)+":"+Gc(e&&e.column)}function qc(e){return Vc(e&&e.start)+"-"+Vc(e&&e.end)}function Gc(e){return e&&"number"==typeof e?e:1}class Yc extends Error{constructor(e,t,n){const r=[null,null];let o={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof t&&(n=t,t=void 0),"string"==typeof n){const e=n.indexOf(":");-1===e?r[1]=n:(r[0]=n.slice(0,e),r[1]=n.slice(e+1))}t&&("type"in t||"position"in t?t.position&&(o=t.position):"start"in t||"end"in t?o=t:("line"in t||"column"in t)&&(o.start=t)),this.name=Wc(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="","object"==typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=o.start.line,this.column=o.start.column,this.position=o,this.source=r[0],this.ruleId=r[1],this.file,this.actual,this.expected,this.url,this.note}}Yc.prototype.file="",Yc.prototype.name="",Yc.prototype.reason="",Yc.prototype.message="",Yc.prototype.stack="",Yc.prototype.fatal=null,Yc.prototype.column=null,Yc.prototype.line=null,Yc.prototype.source=null,Yc.prototype.ruleId=null,Yc.prototype.position=null;const Qc=function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');ef(e);let n,r=0,o=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.charCodeAt(a)){if(n){r=a+1;break}}else o<0&&(n=!0,o=a+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let i=-1,l=t.length-1;for(;a--;)if(47===e.charCodeAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1),l>-1&&(e.charCodeAt(a)===t.charCodeAt(l--)?l<0&&(o=a):(l=-1,o=i));return r===o?o=i:o<0&&(o=e.length),e.slice(r,o)},Xc=function(e){if(ef(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.charCodeAt(0)?"/":".":1===n&&47===e.charCodeAt(0)?"//":e.slice(0,n)},Kc=function(e){ef(e);let t,n=e.length,r=-1,o=0,a=-1,i=0;for(;n--;){const l=e.charCodeAt(n);if(47!==l)r<0&&(t=!0,r=n+1),46===l?a<0?a=n:1!==i&&(i=1):a>-1&&(i=-1);else if(t){o=n+1;break}}return a<0||r<0||0===i||1===i&&a===r-1&&a===o+1?"":e.slice(a,r)},Zc=function(...e){let t,n=-1;for(;++n<e.length;)ef(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){ef(e);const t=47===e.charCodeAt(0);let n=function(e,t){let n,r,o="",a=0,i=-1,l=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.charCodeAt(s);else{if(47===n)break;n=47}if(47===n){if(i===s-1||1===l);else if(i!==s-1&&2===l){if(o.length<2||2!==a||46!==o.charCodeAt(o.length-1)||46!==o.charCodeAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",a=0):(o=o.slice(0,r),a=o.length-1-o.lastIndexOf("/")),i=s,l=0;continue}}else if(o.length>0){o="",a=0,i=s,l=0;continue}t&&(o=o.length>0?o+"/..":"..",a=2)}else o.length>0?o+="/"+e.slice(i+1,s):o=e.slice(i+1,s),a=s-i-1;i=s,l=0}else 46===n&&l>-1?l++:l=-1}return o}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.charCodeAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},Jc="/";function ef(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const tf=function(){return"/"};function nf(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}const rf=["history","path","basename","stem","extname","dirname"];class of{constructor(e){let t;t=e?"string"==typeof e||function(e){return Uc(e)}(e)?{value:e}:nf(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=tf(),this.value,this.stored,this.result,this.map;let n,r=-1;for(;++r<rf.length;){const e=rf[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)rf.includes(n)||(this[n]=t[n])}get path(){return this.history[this.history.length-1]}set path(e){nf(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!nf(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.charCodeAt(n)&&50===t.charCodeAt(n+1)){const e=t.charCodeAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),lf(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"==typeof this.path?Xc(this.path):void 0}set dirname(e){sf(this.basename,"dirname"),this.path=Zc(e||"",this.basename)}get basename(){return"string"==typeof this.path?Qc(this.path):void 0}set basename(e){lf(e,"basename"),af(e,"basename"),this.path=Zc(this.dirname||"",e)}get extname(){return"string"==typeof this.path?Kc(this.path):void 0}set extname(e){if(af(e,"extname"),sf(this.dirname,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Zc(this.dirname,this.stem+(e||""))}get stem(){return"string"==typeof this.path?Qc(this.path,this.extname):void 0}set stem(e){lf(e,"stem"),af(e,"stem"),this.path=Zc(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e||void 0)}message(e,t,n){const r=new Yc(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=null,r}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}}function af(e,t){if(e&&e.includes(Jc))throw new Error("`"+t+"` cannot be a path: did not expect `"+Jc+"`")}function lf(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function sf(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function uf(e){if(e)throw e}var cf=o(710);function ff(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}const df=function e(){const t=function(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(a,...i){const l=e[++n];let s=-1;if(a)r(a);else{for(;++s<t.length;)null!==i[s]&&void 0!==i[s]||(i[s]=t[s]);t=i,l?function(e,t){let n;return function(...t){const a=e.length>t.length;let i;a&&t.push(r);try{i=e.apply(this,t)}catch(e){if(a&&n)throw e;return r(e)}a||(i&&i.then&&"function"==typeof i.then?i.then(o,r):i instanceof Error?r(i):o(i))};function r(e,...r){n||(n=!0,t(e,...r))}function o(e){r(null,e)}}(l,o)(...i):r(null,...i)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}(),n=[];let r,o={},a=-1;return i.data=function(e,t){return"string"==typeof e?2===arguments.length?(yf("data",r),o[e]=t,i):pf.call(o,e)&&o[e]||null:e?(yf("data",r),o=e,i):o},i.Parser=void 0,i.Compiler=void 0,i.freeze=function(){if(r)return i;for(;++a<n.length;){const[e,...r]=n[a];if(!1===r[0])continue;!0===r[0]&&(r[0]=void 0);const o=e.call(i,...r);"function"==typeof o&&t.use(o)}return r=!0,a=Number.POSITIVE_INFINITY,i},i.attachers=n,i.use=function(e,...t){let a;if(yf("use",r),null==e);else if("function"==typeof e)c(e,...t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?u(e):s(e)}return a&&(o.settings=Object.assign(o.settings||{},a)),i;function l(e){if("function"==typeof e)c(e);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;c(t,...n)}else s(e)}}function s(e){u(e.plugins),e.settings&&(a=Object.assign(a||{},e.settings))}function u(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)l(e[t])}}function c(e,t){let r,o=-1;for(;++o<n.length;)if(n[o][0]===e){r=n[o];break}r?(ff(r[1])&&ff(t)&&(t=cf(!0,r[1],t)),r[1]=t):n.push([...arguments])}},i.parse=function(e){i.freeze();const t=wf(e),n=i.Parser;return hf("parse",n),gf(n,"parse")?new n(String(t),t).parse():n(String(t),t)},i.stringify=function(e,t){i.freeze();const n=wf(t),r=i.Compiler;return mf("stringify",r),bf(e),gf(r,"compile")?new r(e,n).compile():r(e,n)},i.run=function(e,n,r){if(bf(e),i.freeze(),r||"function"!=typeof n||(r=n,n=void 0),!r)return new Promise(o);function o(o,a){t.run(e,wf(n),(function(t,n,i){n=n||e,t?a(t):o?o(n):r(null,n,i)}))}o(null,r)},i.runSync=function(e,t){let n,r;return i.run(e,t,(function(e,t){uf(e),n=t,r=!0})),vf("runSync","run",r),n},i.process=function(e,t){if(i.freeze(),hf("process",i.Parser),mf("process",i.Compiler),!t)return new Promise(n);function n(n,r){const o=wf(e);function a(e,o){e||!o?r(e):n?n(o):t(null,o)}i.run(i.parse(o),o,((e,t,n)=>{if(!e&&t&&n){const o=i.stringify(t,n);null==o||("string"==typeof(r=o)||Uc(r)?n.value=o:n.result=o),a(e,n)}else a(e);var r}))}n(null,t)},i.processSync=function(e){let t;i.freeze(),hf("processSync",i.Parser),mf("processSync",i.Compiler);const n=wf(e);return i.process(n,(function(e){t=!0,uf(e)})),vf("processSync","process",t),n},i;function i(){const t=e();let r=-1;for(;++r<n.length;)t.use(...n[r]);return t.data(cf(!0,{},o)),t}}().freeze(),pf={}.hasOwnProperty;function gf(e,t){return"function"==typeof e&&e.prototype&&(function(e){let t;for(t in e)if(pf.call(e,t))return!0;return!1}(e.prototype)||t in e.prototype)}function hf(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Parser`")}function mf(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Compiler`")}function yf(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function bf(e){if(!ff(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function vf(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function wf(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new of(e)}const kf={};function xf(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Ef(e.children,t,n)}return Array.isArray(e)?Ef(e,t,n):""}function Ef(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=xf(e[o],t,n);return r.join("")}function Sf(e,t,n,r){const o=e.length;let a,i=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);i<r.length;)a=r.slice(i,i+1e4),a.unshift(t,0),e.splice(...a),i+=1e4,t+=1e4}function Ff(e,t){return e.length>0?(Sf(e,e.length,0,t),e):t}const Af={}.hasOwnProperty;function Cf(e,t){let n;for(n in t){const r=(Af.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){Af.call(r,a)||(r[a]=[]);const e=o[a];Of(r[a],Array.isArray(e)?e:e?[e]:[])}}}function Of(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Sf(e,0,0,r)}const Pf=$f(/[A-Za-z]/),Tf=$f(/[\dA-Za-z]/),Df=$f(/[#-'*+\--9=?A-Z^-~]/);function Rf(e){return null!==e&&(e<32||127===e)}const Nf=$f(/\d/),Lf=$f(/[\dA-Fa-f]/),_f=$f(/[!-/:-@[-`{-~]/);function jf(e){return null!==e&&e<-2}function zf(e){return null!==e&&(e<0||32===e)}function If(e){return-2===e||-1===e||32===e}const Bf=$f(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),Mf=$f(/\s/);function $f(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}function Hf(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let a=0;return function(r){return If(r)?(e.enter(n),i(r)):t(r)};function i(r){return If(r)&&a++<o?(e.consume(r),i):(e.exit(n),t(r))}}const Uf={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Hf(e,t,"linePrefix");e.consume(n)}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):jf(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}},Wf={tokenize:function(e){const t=this,n=[];let r,o,a,i=0;return l;function l(r){if(i<n.length){const o=n[i];return t.containerState=o[1],e.attempt(o[0].continuation,s,u)(r)}return u(r)}function s(e){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&b();const n=t.events.length;let o,a=n;for(;a--;)if("exit"===t.events[a][0]&&"chunkFlow"===t.events[a][1].type){o=t.events[a][1].end;break}y(i);let l=n;for(;l<t.events.length;)t.events[l][1].end=Object.assign({},o),l++;return Sf(t.events,a+1,0,t.events.slice(n)),t.events.length=l,u(e)}return l(e)}function u(o){if(i===n.length){if(!r)return d(o);if(r.currentConstruct&&r.currentConstruct.concrete)return g(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Vf,c,f)(o)}function c(e){return r&&b(),y(i),d(e)}function f(e){return t.parser.lazy[t.now().line]=i!==n.length,a=t.now().offset,g(e)}function d(n){return t.containerState={},e.attempt(Vf,p,g)(n)}function p(e){return i++,n.push([t.currentConstruct,t.containerState]),d(e)}function g(n){return null===n?(r&&b(),y(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:r}),h(n))}function h(n){return null===n?(m(e.exit("chunkFlow"),!0),y(0),void e.consume(n)):jf(n)?(e.consume(n),m(e.exit("chunkFlow")),i=0,t.interrupt=void 0,l):(e.consume(n),h)}function m(e,n){const l=t.sliceStream(e);if(n&&l.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(l),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<a&&(!r.events[e][1].end||r.events[e][1].end.offset>a))return;const n=t.events.length;let o,l,s=n;for(;s--;)if("exit"===t.events[s][0]&&"chunkFlow"===t.events[s][1].type){if(o){l=t.events[s][1].end;break}o=!0}for(y(i),e=n;e<t.events.length;)t.events[e][1].end=Object.assign({},l),e++;Sf(t.events,s+1,0,t.events.slice(n)),t.events.length=e}}function y(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function b(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},Vf={tokenize:function(e,t,n){return Hf(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},qf={tokenize:function(e,t,n){return function(t){return If(t)?Hf(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||jf(e)?t(e):n(e)}},partial:!0};function Gf(e){const t={};let n,r,o,a,i,l,s,u=-1;for(;++u<e.length;){for(;u in t;)u=t[u];if(n=e[u],u&&"chunkFlow"===n[1].type&&"listItemPrefix"===e[u-1][1].type&&(l=n[1]._tokenizer.events,o=0,o<l.length&&"lineEndingBlank"===l[o][1].type&&(o+=2),o<l.length&&"content"===l[o][1].type))for(;++o<l.length&&"content"!==l[o][1].type;)"chunkText"===l[o][1].type&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,Yf(e,u)),u=t[u],s=!0);else if(n[1]._container){for(o=u,r=void 0;o--&&(a=e[o],"lineEnding"===a[1].type||"lineEndingBlank"===a[1].type);)"enter"===a[0]&&(r&&(e[r][1].type="lineEndingBlank"),a[1].type="lineEnding",r=o);r&&(n[1].end=Object.assign({},e[r][1].start),i=e.slice(r,u),i.unshift(n),Sf(e,r,u-r+1,i))}}return!s}function Yf(e,t){const n=e[t][1],r=e[t][2];let o=t-1;const a=[],i=n._tokenizer||r.parser[n.contentType](n.start),l=i.events,s=[],u={};let c,f,d=-1,p=n,g=0,h=0;const m=[h];for(;p;){for(;e[++o][1]!==p;);a.push(o),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),f&&i.defineSkip(p.start),p._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(c),p._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=n;++d<l.length;)"exit"===l[d][0]&&"enter"===l[d-1][0]&&l[d][1].type===l[d-1][1].type&&l[d][1].start.line!==l[d][1].end.line&&(h=d+1,m.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(i.events=[],p?(p._tokenizer=void 0,p.previous=void 0):m.pop(),d=m.length;d--;){const t=l.slice(m[d],m[d+1]),n=a.pop();s.unshift([n,n+t.length-1]),Sf(e,n,2,t)}for(d=-1;++d<s.length;)u[g+s[d][0]]=g+s[d][1],g+=s[d][1]-s[d][0]-1;return u}const Qf={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):jf(t)?e.check(Xf,a,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function a(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return Gf(e),e}},Xf={tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Hf(e,o,"linePrefix")};function o(o){if(null===o||jf(o))return n(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}},partial:!0},Kf={tokenize:function(e){const t=this,n=e.attempt(qf,(function(r){if(null!==r)return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n;e.consume(r)}),e.attempt(this.parser.constructs.flowInitial,r,Hf(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Qf,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}},Zf={resolveAll:nd()},Jf=td("string"),ed=td("text");function td(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,a,i);return a;function a(e){return s(e)?o(e):i(e)}function i(e){if(null!==e)return t.enter("data"),t.consume(e),l;t.consume(e)}function l(e){return s(e)?(t.exit("data"),o(e)):(t.consume(e),l)}function s(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},resolveAll:nd("text"===e?rd:void 0)}}function nd(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function rd(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let a,i=o.length,l=-1,s=0;for(;i--;){const e=o[i];if("string"==typeof e){for(l=e.length;32===e.charCodeAt(l-1);)s++,l--;if(l)break;l=-1}else if(-2===e)a=!0,s++;else if(-1!==e){i++;break}}if(s){const o={type:n===e.length||a||s<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-s,offset:r.end.offset-s,_index:r.start._index+i,_bufferIndex:i?l:r.start._bufferIndex+l},end:Object.assign({},r.end)};r.end=Object.assign({},o.start),r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}function od(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const a=e[o].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}function ad(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const o={},a=[];let i=[],l=[],s=!0;const u={consume:function(e){jf(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,v()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===i[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e,s=!0},enter:function(e,t){const n=t||{};return n.type=e,n.start=g(),c.events.push(["enter",n,c]),l.push(n),n},exit:function(e){const t=l.pop();return t.end=g(),c.events.push(["exit",t,c]),t},attempt:y((function(e,t){b(e,t.from)})),check:y(m),interrupt:y(m,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:p,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const a=e[n];let i;if("string"==typeof a)i=a;else switch(a){case-5:i="\r";break;case-4:i="\n";break;case-3:i="\r\n";break;case-2:i=t?" ":"\t";break;case-1:if(!t&&o)continue;i=" ";break;default:i=String.fromCharCode(a)}o=-2===a,r.push(i)}return r.join("")}(p(e),t)},now:g,defineSkip:function(e){o[e.line]=e.column,v()},write:function(e){return i=Ff(i,e),function(){let e;for(;r._index<i.length;){const t=i[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)h(t.charCodeAt(r._bufferIndex));else h(t)}}(),null!==i[i.length-1]?[]:(b(t,0),c.events=od(a,c.events,c),c.events)}};let f,d=t.tokenize.call(c,u);return t.resolveAll&&a.push(t),c;function p(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex;let i;if(n===o)i=[e[n].slice(r,a)];else{if(i=e.slice(n,o),r>-1){const e=i[0];"string"==typeof e?i[0]=e.slice(r):i.shift()}a>0&&i.push(e[o].slice(0,a))}return i}(i,e)}function g(){const{line:e,column:t,offset:n,_index:o,_bufferIndex:a}=r;return{line:e,column:t,offset:n,_index:o,_bufferIndex:a}}function h(e){s=void 0,f=e,d=d(e)}function m(e,t){t.restore()}function y(e,t){return function(n,o,a){let i,f,d,p;return Array.isArray(n)?h(n):"tokenize"in n?h([n]):function(e){return function(t){const n=null!==t&&e[t],r=null!==t&&e.null;return h([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function h(e){return i=e,f=0,0===e.length?a:m(e[f])}function m(e){return function(n){return p=function(){const e=g(),t=c.previous,n=c.currentConstruct,o=c.events.length,a=Array.from(l);return{restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=o,l=a,v()},from:o}}(),d=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name)?b():e.tokenize.call(t?Object.assign(Object.create(c),t):c,u,y,b)(n)}}function y(t){return s=!0,e(d,p),o}function b(e){return s=!0,p.restore(),++f<i.length?m(i[f]):a}}}function b(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&Sf(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function v(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const id={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,a(e)}(t)};function a(a){return a===r?(e.enter("thematicBreakSequence"),i(a)):o>=3&&(null===a||jf(a))?(e.exit("thematicBreak"),t(a)):n(a)}function i(t){return t===r?(e.consume(t),o++,i):(e.exit("thematicBreakSequence"),If(t)?Hf(e,a,"whitespace")(t):a(t))}}},ld={name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let a=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,i=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:Nf(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(id,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(t)}return n(t)};function l(t){return Nf(t)&&++i<10?(e.consume(t),l):(!r.interrupt||i<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),s(t)):n(t)}function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(qf,r.interrupt?n:u,e.attempt(sd,f,c))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function c(t){return If(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(qf,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Hf(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){return r.containerState.furtherBlankLines||!If(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ud,t,o)(n))}));function o(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Hf(e,e.attempt(ld,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)}},sd={tokenize:function(e,t,n){const r=this;return Hf(e,(function(e){const o=r.events[r.events.length-1];return!If(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},ud={tokenize:function(e,t,n){const r=this;return Hf(e,(function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0},cd={name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return If(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){const r=this;return function(t){return If(t)?Hf(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):o(t)};function o(r){return e.attempt(cd,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function fd(e,t,n,r,o,a,i,l,s){const u=s||Number.POSITIVE_INFINITY;let c=0;return function(t){return 60===t?(e.enter(r),e.enter(o),e.enter(a),e.consume(t),e.exit(a),f):null===t||32===t||41===t||Rf(t)?n(t):(e.enter(r),e.enter(i),e.enter(l),e.enter("chunkString",{contentType:"string"}),g(t))};function f(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),e.exit(o),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(l),f(t)):null===t||60===t||jf(t)?n(t):(e.consume(t),92===t?p:d)}function p(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function g(o){return c||null!==o&&41!==o&&!zf(o)?c<u&&40===o?(e.consume(o),c++,g):41===o?(e.consume(o),c--,g):null===o||32===o||40===o||Rf(o)?n(o):(e.consume(o),92===o?h:g):(e.exit("chunkString"),e.exit(l),e.exit(i),e.exit(r),t(o))}function h(t){return 40===t||41===t||92===t?(e.consume(t),g):g(t)}}function dd(e,t,n,r,o,a){const i=this;let l,s=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(a),u};function u(f){return s>999||null===f||91===f||93===f&&!l||94===f&&!s&&"_hiddenFootnoteSupport"in i.parser.constructs?n(f):93===f?(e.exit(a),e.enter(o),e.consume(f),e.exit(o),e.exit(r),t):jf(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(t){return null===t||91===t||93===t||jf(t)||s++>999?(e.exit("chunkString"),u(t)):(e.consume(t),l||(l=!If(t)),92===t?f:c)}function f(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function pd(e,t,n,r,o,a){let i;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(o),e.consume(t),e.exit(o),i=40===t?41:t,l):n(t)};function l(n){return n===i?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(a),s(n))}function s(t){return t===i?(e.exit(a),l(i)):null===t?n(t):jf(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Hf(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===i||null===t||jf(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?c:u)}function c(t){return t===i||92===t?(e.consume(t),u):u(t)}}function gd(e,t){let n;return function r(o){return jf(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):If(o)?Hf(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}function hd(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const md={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return dd.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function a(t){return o=hd(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i):n(t)}function i(t){return zf(t)?gd(e,l)(t):l(t)}function l(t){return fd(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(yd,u,u)(t)}function u(t){return If(t)?Hf(e,c,"whitespace")(t):c(t)}function c(a){return null===a||jf(a)?(e.exit("definition"),r.parser.defined.push(o),t(a)):n(a)}}},yd={tokenize:function(e,t,n){return function(t){return zf(t)?gd(e,r)(t):n(t)};function r(t){return pd(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return If(t)?Hf(e,a,"whitespace")(t):a(t)}function a(e){return null===e||jf(e)?t(e):n(e)}},partial:!0},bd={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),Hf(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?a(e):n(e)}function a(t){return null===t?l(t):jf(t)?e.attempt(vd,a,l)(t):(e.enter("codeFlowValue"),i(t))}function i(t){return null===t||jf(t)?(e.exit("codeFlowValue"),a(t)):(e.consume(t),i)}function l(n){return e.exit("codeIndented"),t(n)}}},vd={tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):jf(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):Hf(e,a,"linePrefix",5)(t)}function a(e){const a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):jf(e)?o(e):n(e)}},partial:!0},wd={name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||zf(t)?(e.exit("atxHeadingSequence"),a(t)):n(t)}function a(n){return 35===n?(e.enter("atxHeadingSequence"),i(n)):null===n||jf(n)?(e.exit("atxHeading"),t(n)):If(n)?Hf(e,a,"whitespace")(n):(e.enter("atxHeadingText"),l(n))}function i(t){return 35===t?(e.consume(t),i):(e.exit("atxHeadingSequence"),a(t))}function l(t){return null===t||35===t||zf(t)?(e.exit("atxHeadingText"),a(t)):(e.consume(t),l)}},resolve:function(e,t){let n,r,o=e.length-2,a=3;return"whitespace"===e[a][1].type&&(a+=2),o-2>a&&"whitespace"===e[o][1].type&&(o-=2),"atxHeadingSequence"===e[o][1].type&&(a===o-1||o-4>a&&"whitespace"===e[o-2][1].type)&&(o-=a+1===o?2:4),o>a&&(n={type:"atxHeadingText",start:e[a][1].start,end:e[o][1].end},r={type:"chunkText",start:e[a][1].start,end:e[o][1].end,contentType:"text"},Sf(e,a,o-a+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}},kd={name:"setextUnderline",tokenize:function(e,t,n){const r=this;let o;return function(t){let i,l=r.events.length;for(;l--;)if("lineEnding"!==r.events[l][1].type&&"linePrefix"!==r.events[l][1].type&&"content"!==r.events[l][1].type){i="paragraph"===r.events[l][1].type;break}return r.parser.lazy[r.now().line]||!r.interrupt&&!i?n(t):(e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),a(t)}(t))};function a(t){return t===o?(e.consume(t),a):(e.exit("setextHeadingLineSequence"),If(t)?Hf(e,i,"lineSuffix")(t):i(t))}function i(r){return null===r||jf(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,o,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){n=a;break}"paragraph"===e[a][1].type&&(r=a)}else"content"===e[a][1].type&&e.splice(a,1),o||"definition"!==e[a][1].type||(o=a);const i={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",i,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[o][1].end)):e[n][1]=i,e.push(["exit",i,t]),e}},xd=["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"],Ed=["pre","script","style","textarea"],Sd={name:"htmlFlow",tokenize:function(e,t,n){const r=this;let o,a,i,l,s;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u}(t)};function u(l){return 33===l?(e.consume(l),c):47===l?(e.consume(l),a=!0,p):63===l?(e.consume(l),o=3,r.interrupt?t:L):Pf(l)?(e.consume(l),i=String.fromCharCode(l),g):n(l)}function c(a){return 45===a?(e.consume(a),o=2,f):91===a?(e.consume(a),o=5,l=0,d):Pf(a)?(e.consume(a),o=4,r.interrupt?t:L):n(a)}function f(o){return 45===o?(e.consume(o),r.interrupt?t:L):n(o)}function d(o){return o==="CDATA[".charCodeAt(l++)?(e.consume(o),6===l?r.interrupt?t:A:d):n(o)}function p(t){return Pf(t)?(e.consume(t),i=String.fromCharCode(t),g):n(t)}function g(l){if(null===l||47===l||62===l||zf(l)){const s=47===l,u=i.toLowerCase();return s||a||!Ed.includes(u)?xd.includes(i.toLowerCase())?(o=6,s?(e.consume(l),h):r.interrupt?t(l):A(l)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(l):a?m(l):y(l)):(o=1,r.interrupt?t(l):A(l))}return 45===l||Tf(l)?(e.consume(l),i+=String.fromCharCode(l),g):n(l)}function h(o){return 62===o?(e.consume(o),r.interrupt?t:A):n(o)}function m(t){return If(t)?(e.consume(t),m):S(t)}function y(t){return 47===t?(e.consume(t),S):58===t||95===t||Pf(t)?(e.consume(t),b):If(t)?(e.consume(t),y):S(t)}function b(t){return 45===t||46===t||58===t||95===t||Tf(t)?(e.consume(t),b):v(t)}function v(t){return 61===t?(e.consume(t),w):If(t)?(e.consume(t),v):y(t)}function w(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,k):If(t)?(e.consume(t),w):x(t)}function k(t){return t===s?(e.consume(t),s=null,E):null===t||jf(t)?n(t):(e.consume(t),k)}function x(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||zf(t)?v(t):(e.consume(t),x)}function E(e){return 47===e||62===e||If(e)?y(e):n(e)}function S(t){return 62===t?(e.consume(t),F):n(t)}function F(t){return null===t||jf(t)?A(t):If(t)?(e.consume(t),F):n(t)}function A(t){return 45===t&&2===o?(e.consume(t),T):60===t&&1===o?(e.consume(t),D):62===t&&4===o?(e.consume(t),_):63===t&&3===o?(e.consume(t),L):93===t&&5===o?(e.consume(t),N):!jf(t)||6!==o&&7!==o?null===t||jf(t)?(e.exit("htmlFlowData"),C(t)):(e.consume(t),A):(e.exit("htmlFlowData"),e.check(Fd,j,C)(t))}function C(t){return e.check(Ad,O,j)(t)}function O(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),P}function P(t){return null===t||jf(t)?C(t):(e.enter("htmlFlowData"),A(t))}function T(t){return 45===t?(e.consume(t),L):A(t)}function D(t){return 47===t?(e.consume(t),i="",R):A(t)}function R(t){if(62===t){const n=i.toLowerCase();return Ed.includes(n)?(e.consume(t),_):A(t)}return Pf(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),R):A(t)}function N(t){return 93===t?(e.consume(t),L):A(t)}function L(t){return 62===t?(e.consume(t),_):45===t&&2===o?(e.consume(t),L):A(t)}function _(t){return null===t||jf(t)?(e.exit("htmlFlowData"),j(t)):(e.consume(t),_)}function j(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},concrete:!0},Fd={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(qf,t,n)}},partial:!0},Ad={tokenize:function(e,t,n){const r=this;return function(t){return jf(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},Cd={tokenize:function(e,t,n){const r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},Od={name:"codeFenced",tokenize:function(e,t,n){const r=this,o={tokenize:function(e,t,n){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(t){return e.enter("codeFencedFence"),If(t)?Hf(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===a?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===a?(o++,e.consume(t),u):o>=l?(e.exit("codeFencedFenceSequence"),If(t)?Hf(e,c,"whitespace")(t):c(t)):n(t)}function c(r){return null===r||jf(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0};let a,i=0,l=0;return function(t){return function(t){const n=r.events[r.events.length-1];return i=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,a=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(t)}(t)};function s(t){return t===a?(l++,e.consume(t),s):l<3?n(t):(e.exit("codeFencedFenceSequence"),If(t)?Hf(e,u,"whitespace")(t):u(t))}function u(n){return null===n||jf(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(Cd,p,b)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),c(n))}function c(t){return null===t||jf(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(t)):If(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Hf(e,f,"whitespace")(t)):96===t&&t===a?n(t):(e.consume(t),c)}function f(t){return null===t||jf(t)?u(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return null===t||jf(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(t)):96===t&&t===a?n(t):(e.consume(t),d)}function p(t){return e.attempt(o,b,g)(t)}function g(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h}function h(t){return i>0&&If(t)?Hf(e,m,"linePrefix",i+1)(t):m(t)}function m(t){return null===t||jf(t)?e.check(Cd,p,b)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||jf(t)?(e.exit("codeFlowValue"),m(t)):(e.consume(t),y)}function b(n){return e.exit("codeFenced"),t(n)}},concrete:!0},Pd=document.createElement("i");function Td(e){const t="&"+e+";";Pd.innerHTML=t;const n=Pd.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}const Dd={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,a,i=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),l};function l(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,a=Tf,u(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=Lf,u):(e.enter("characterReferenceValue"),o=7,a=Nf,u(t))}function u(l){if(59===l&&i){const o=e.exit("characterReferenceValue");return a!==Tf||Td(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(l)}return a(l)&&i++<o?(e.consume(l),u):n(l)}}},Rd={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return _f(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},Nd={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Hf(e,t,"linePrefix")}}},Ld={name:"labelEnd",tokenize:function(e,t,n){const r=this;let o,a,i=r.events.length;for(;i--;)if(("labelImage"===r.events[i][1].type||"labelLink"===r.events[i][1].type)&&!r.events[i][1]._balanced){o=r.events[i][1];break}return function(t){return o?o._inactive?c(t):(a=r.parser.defined.includes(hd(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),l):n(t)};function l(t){return 40===t?e.attempt(_d,u,a?u:c)(t):91===t?e.attempt(jd,u,a?s:c)(t):a?u(t):c(t)}function s(t){return e.attempt(zd,u,c)(t)}function u(e){return t(e)}function c(e){return o._balanced=!0,n(e)}},resolveTo:function(e,t){let n,r,o,a,i=e.length,l=0;for(;i--;)if(n=e[i][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[i][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[i][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=i,"labelLink"!==n.type)){l=2;break}}else"labelEnd"===n.type&&(o=i);const s={type:"labelLink"===e[r][1].type?"link":"image",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)},u={type:"label",start:Object.assign({},e[r][1].start),end:Object.assign({},e[o][1].end)},c={type:"labelText",start:Object.assign({},e[r+l+2][1].end),end:Object.assign({},e[o-2][1].start)};return a=[["enter",s,t],["enter",u,t]],a=Ff(a,e.slice(r+1,r+l+3)),a=Ff(a,[["enter",c,t]]),a=Ff(a,od(t.parser.constructs.insideSpan.null,e.slice(r+l+4,o-3),t)),a=Ff(a,[["exit",c,t],e[o-2],e[o-1],["exit",u,t]]),a=Ff(a,e.slice(o+1)),a=Ff(a,[["exit",s,t]]),Sf(e,r,e.length,a),e},resolveAll:function(e){let t=-1;for(;++t<e.length;){const n=e[t][1];"labelImage"!==n.type&&"labelLink"!==n.type&&"labelEnd"!==n.type||(e.splice(t+1,"labelImage"===n.type?4:2),n.type="data",t++)}return e}},_d={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return zf(t)?gd(e,o)(t):o(t)}function o(t){return 41===t?u(t):fd(e,a,i,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function a(t){return zf(t)?gd(e,l)(t):u(t)}function i(e){return n(e)}function l(t){return 34===t||39===t||40===t?pd(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function s(t){return zf(t)?gd(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},jd={tokenize:function(e,t,n){const r=this;return function(t){return dd.call(r,e,o,a,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(hd(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function a(e){return n(e)}}},zd={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},Id={name:"labelStartImage",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),a):n(t)}function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:Ld.resolveAll};function Bd(e){return null===e||zf(e)||Mf(e)?1:Bf(e)?2:void 0}const Md={name:"attention",tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=Bd(r);let a;return function(t){return a=t,e.enter("attentionSequence"),i(t)};function i(l){if(l===a)return e.consume(l),i;const s=e.exit("attentionSequence"),u=Bd(l),c=!u||2===u&&o||n.includes(l),f=!o||2===o&&u||n.includes(r);return s._open=Boolean(42===a?c:c&&(o||!f)),s._close=Boolean(42===a?f:f&&(u||!c)),t(l)}},resolveAll:function(e,t){let n,r,o,a,i,l,s,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close)for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;const f=Object.assign({},e[n][1].end),d=Object.assign({},e[c][1].start);$d(f,-l),$d(d,l),a={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[n][1].end)},i={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[c][1].start),end:d},o={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[c][1].start)},r={type:l>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},i.end)},e[n][1].end=Object.assign({},a.start),e[c][1].start=Object.assign({},i.end),s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=Ff(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=Ff(s,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",o,t]]),s=Ff(s,od(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),s=Ff(s,[["exit",o,t],["enter",i,t],["exit",i,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,s=Ff(s,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,Sf(e,n-1,c-n+3,s),c=n+s.length-u-2;break}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e}};function $d(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Hd={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return Pf(t)?(e.consume(t),a):s(t)}function a(e){return 43===e||45===e||46===e||Tf(e)?(r=1,i(e)):s(e)}function i(t){return 58===t?(e.consume(t),r=0,l):(43===t||45===t||46===t||Tf(t))&&r++<32?(e.consume(t),i):(r=0,s(t))}function l(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||Rf(r)?n(r):(e.consume(r),l)}function s(t){return 64===t?(e.consume(t),u):Df(t)?(e.consume(t),s):n(t)}function u(e){return Tf(e)?c(e):n(e)}function c(n){return 46===n?(e.consume(n),r=0,u):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):f(n)}function f(t){if((45===t||Tf(t))&&r++<63){const n=45===t?f:c;return e.consume(t),n}return n(t)}}},Ud={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,a,i;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),l};function l(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),w):63===t?(e.consume(t),b):Pf(t)?(e.consume(t),E):n(t)}function s(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),a=0,p):Pf(t)?(e.consume(t),y):n(t)}function u(t){return 45===t?(e.consume(t),d):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),f):jf(t)?(i=c,R(t)):(e.consume(t),c)}function f(t){return 45===t?(e.consume(t),d):c(t)}function d(e){return 62===e?D(e):45===e?f(e):c(e)}function p(t){return t==="CDATA[".charCodeAt(a++)?(e.consume(t),6===a?g:p):n(t)}function g(t){return null===t?n(t):93===t?(e.consume(t),h):jf(t)?(i=g,R(t)):(e.consume(t),g)}function h(t){return 93===t?(e.consume(t),m):g(t)}function m(t){return 62===t?D(t):93===t?(e.consume(t),m):g(t)}function y(t){return null===t||62===t?D(t):jf(t)?(i=y,R(t)):(e.consume(t),y)}function b(t){return null===t?n(t):63===t?(e.consume(t),v):jf(t)?(i=b,R(t)):(e.consume(t),b)}function v(e){return 62===e?D(e):b(e)}function w(t){return Pf(t)?(e.consume(t),k):n(t)}function k(t){return 45===t||Tf(t)?(e.consume(t),k):x(t)}function x(t){return jf(t)?(i=x,R(t)):If(t)?(e.consume(t),x):D(t)}function E(t){return 45===t||Tf(t)?(e.consume(t),E):47===t||62===t||zf(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),D):58===t||95===t||Pf(t)?(e.consume(t),F):jf(t)?(i=S,R(t)):If(t)?(e.consume(t),S):D(t)}function F(t){return 45===t||46===t||58===t||95===t||Tf(t)?(e.consume(t),F):A(t)}function A(t){return 61===t?(e.consume(t),C):jf(t)?(i=A,R(t)):If(t)?(e.consume(t),A):S(t)}function C(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,O):jf(t)?(i=C,R(t)):If(t)?(e.consume(t),C):(e.consume(t),P)}function O(t){return t===o?(e.consume(t),o=void 0,T):null===t?n(t):jf(t)?(i=O,R(t)):(e.consume(t),O)}function P(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||zf(t)?S(t):(e.consume(t),P)}function T(e){return 47===e||62===e||zf(e)?S(e):n(e)}function D(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function R(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return If(t)?Hf(e,L,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):L(t)}function L(t){return e.enter("htmlTextData"),i(t)}}},Wd={name:"labelStartLink",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:Ld.resolveAll},Vd={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return jf(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},qd={name:"codeText",tokenize:function(e,t,n){let r,o,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),i(t)};function i(t){return 96===t?(e.consume(t),a++,i):(e.exit("codeTextSequence"),l(t))}function l(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),l):96===t?(o=e.enter("codeTextSequence"),r=0,u(t)):jf(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):(e.enter("codeTextData"),s(t))}function s(t){return null===t||32===t||96===t||jf(t)?(e.exit("codeTextData"),l(t)):(e.consume(t),s)}function u(n){return 96===n?(e.consume(n),r++,u):r===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",s(n))}},resolve:function(e){let t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}for(t=o-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}},Gd={42:ld,43:ld,45:ld,48:ld,49:ld,50:ld,51:ld,52:ld,53:ld,54:ld,55:ld,56:ld,57:ld,62:cd},Yd={91:md},Qd={[-2]:bd,[-1]:bd,32:bd},Xd={35:wd,42:id,45:[kd,id],60:Sd,61:kd,95:id,96:Od,126:Od},Kd={38:Dd,92:Rd},Zd={[-5]:Nd,[-4]:Nd,[-3]:Nd,33:Id,38:Dd,42:Md,60:[Hd,Ud],91:Wd,92:[Vd,Rd],93:Ld,95:Md,96:qd},Jd={null:[Md,Zf]},ep={null:[42,95]},tp={null:[]};const np=/[\0\t\n\r]/g;function rp(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCharCode(n)}const op=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ap(e){return e.replace(op,ip)}function ip(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return rp(n.slice(t?2:1),t?16:10)}return Td(n)||e}const lp={}.hasOwnProperty,sp=function(t,n,r){return"string"!=typeof n&&(r=n,n=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(w),autolinkProtocol:d,autolinkEmail:d,atxHeading:i(y),blockQuote:i((function(){return{type:"blockquote",children:[]}})),characterEscape:d,characterReference:d,codeFenced:i(m),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:i(m,l),codeText:i((function(){return{type:"inlineCode",value:""}}),l),codeTextData:d,data:d,codeFlowValue:d,definition:i((function(){return{type:"definition",identifier:"",label:null,title:null,url:""}})),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:i((function(){return{type:"emphasis",children:[]}})),hardBreakEscape:i(b),hardBreakTrailing:i(b),htmlFlow:i(v,l),htmlFlowData:d,htmlText:i(v,l),htmlTextData:d,image:i((function(){return{type:"image",title:null,url:"",alt:null}})),label:l,link:i(w),listItem:i((function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}})),listItemValue:function(e){a("expectingFirstListItemValue")&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),o("expectingFirstListItemValue"))},listOrdered:i(k,(function(){o("expectingFirstListItemValue",!0)})),listUnordered:i(k),paragraph:i((function(){return{type:"paragraph",children:[]}})),reference:function(){o("referenceType","collapsed")},referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:i(y),strong:i((function(){return{type:"strong",children:[]}})),thematicBreak:i((function(){return{type:"thematicBreak"}}))},exit:{atxHeading:u(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}},autolink:u(),autolinkEmail:function(e){p.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){p.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:u(),characterEscapeValue:p,characterReferenceMarkerHexadecimal:h,characterReferenceMarkerNumeric:h,characterReferenceValue:function(e){const t=this.sliceSerialize(e),n=a("characterReferenceType");let r;n?(r=rp(t,"characterReferenceMarkerNumeric"===n?10:16),o("characterReferenceType")):r=Td(t);const i=this.stack.pop();i.value+=r,i.position.end=up(e.end)},codeFenced:u((function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")})),codeFencedFence:function(){a("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:p,codeIndented:u((function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")})),codeText:u((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),codeTextData:p,data:p,definition:u(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=hd(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:u(),hardBreakEscape:u(g),hardBreakTrailing:u(g),htmlFlow:u((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),htmlFlowData:p,htmlText:u((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),htmlTextData:p,image:u((function(){const e=this.stack[this.stack.length-1];if(a("inReference")){const t=a("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;o("referenceType")})),label:function(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(o("inReference",!0),"link"===n.type){const t=e.children;n.children=t}else n.alt=t},labelText:function(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=ap(t),n.identifier=hd(t).toLowerCase()},lineEnding:function(e){const n=this.stack[this.stack.length-1];if(a("atHardBreak"))return n.children[n.children.length-1].position.end=up(e.end),void o("atHardBreak");!a("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(n.type)&&(d.call(this,e),p.call(this,e))},link:u((function(){const e=this.stack[this.stack.length-1];if(a("inReference")){const t=a("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;o("referenceType")})),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=hd(this.sliceSerialize(e)).toLowerCase(),o("referenceType","full")},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){o("inReference")},setextHeading:u((function(){o("setextHeadingSlurpLineEnding")})),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2},setextHeadingText:function(){o("setextHeadingSlurpLineEnding",!0)},strong:u(),thematicBreak:u()}};cp(t,(e||{}).mdastExtensions||[]);const n={};return function(e){let n={type:"root",children:[]};const i={stack:[n],tokenStack:[],config:t,enter:s,exit:c,buffer:l,resume:f,setData:o,getData:a},u=[];let d=-1;for(;++d<e.length;)"listOrdered"!==e[d][1].type&&"listUnordered"!==e[d][1].type||("enter"===e[d][0]?u.push(d):d=r(e,u.pop(),d));for(d=-1;++d<e.length;){const n=t[e[d][0]];lp.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},i),e[d][1])}if(i.tokenStack.length>0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||dp).call(i,void 0,e[0])}for(n.position={start:up(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:up(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)n=t.transforms[d](n)||n;return n};function r(e,t,n){let r,o,a,i,l=t-1,s=-1,u=!1;for(;++l<=n;){const t=e[l];if("listUnordered"===t[1].type||"listOrdered"===t[1].type||"blockQuote"===t[1].type?("enter"===t[0]?s++:s--,i=void 0):"lineEndingBlank"===t[1].type?"enter"===t[0]&&(!r||i||s||a||(a=l),i=void 0):"linePrefix"===t[1].type||"listItemValue"===t[1].type||"listItemMarker"===t[1].type||"listItemPrefix"===t[1].type||"listItemPrefixWhitespace"===t[1].type||(i=void 0),!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let i=l;for(o=void 0;i--;){const t=e[i];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",o=i}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}a&&(!o||a<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||l,0,["exit",r,t[2]]),l++,n++}"listItemPrefix"===t[1].type&&(r={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0},e.splice(l,0,["enter",r,t[2]]),l++,n++,a=void 0,i=!0)}}return e[t][1]._spread=u,n}function o(e,t){n[e]=t}function a(e){return n[e]}function i(e,t){return function(n){s.call(this,e(n),n),t&&t.call(this,n)}}function l(){this.stack.push({type:"fragment",children:[]})}function s(e,t,n){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:up(t.start)},e}function u(e){return function(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+Wc({start:e.start,end:e.end})+"): it’s not open");return r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||dp).call(this,e,r[0])),n.position.end=up(e.end),n}function f(){return function(e){return xf(e,"boolean"!=typeof kf.includeImageAlt||kf.includeImageAlt,"boolean"!=typeof kf.includeHtml||kf.includeHtml)}(this.stack.pop())}function d(e){const t=this.stack[this.stack.length-1];let n=t.children[t.children.length-1];n&&"text"===n.type||(n={type:"text",value:""},n.position={start:up(e.start)},t.children.push(n)),this.stack.push(n)}function p(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=up(e.end)}function g(){o("atHardBreak",!0)}function h(e){o("characterReferenceType",e.type)}function m(){return{type:"code",lang:null,meta:null,value:""}}function y(){return{type:"heading",depth:void 0,children:[]}}function b(){return{type:"break"}}function v(){return{type:"html",value:""}}function w(){return{type:"link",title:null,url:"",children:[]}}function k(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(r)(function(e){for(;!Gf(e););return e}(function(t){const n=function(e){const t={};let n=-1;for(;++n<e.length;)Cf(t,e[n]);return t}([e,...(t||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:o(Uf),document:o(Wf),flow:o(Kf),string:o(Jf),text:o(ed)};return r;function o(e){return function(t){return ad(r,e,t)}}}(r).document().write(function(){let e,t=1,n="",r=!0;return function(o,a,i){const l=[];let s,u,c,f,d;for(o=n+o.toString(a),c=0,n="",r&&(65279===o.charCodeAt(0)&&c++,r=void 0);c<o.length;){if(np.lastIndex=c,s=np.exec(o),f=s&&void 0!==s.index?s.index:o.length,d=o.charCodeAt(f),!s){n=o.slice(c);break}if(10===d&&c===f&&e)l.push(-3),e=void 0;else switch(e&&(l.push(-5),e=void 0),c<f&&(l.push(o.slice(c,f)),t+=f-c),d){case 0:l.push(65533),t++;break;case 9:for(u=4*Math.ceil(t/4),l.push(-2);t++<u;)l.push(-1);break;case 10:l.push(-4),t=1;break;default:e=!0,t=1}c=f+1}return i&&(e&&l.push(-5),n&&l.push(n),l.push(null)),l}}()(t,n,!0))))};function up(e){return{line:e.line,column:e.column,offset:e.offset}}function cp(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?cp(e,r):fp(e,r)}}function fp(e,t){let n;for(n in t)if(lp.call(t,n))if("canContainEols"===n){const r=t[n];r&&e[n].push(...r)}else if("transforms"===n){const r=t[n];r&&e[n].push(...r)}else if("enter"===n||"exit"===n){const r=t[n];r&&Object.assign(e[n],r)}}function dp(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Wc({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Wc({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Wc({start:t.start,end:t.end})+") is still open")}function pp(e){Object.assign(this,{Parser:t=>{const n=this.data("settings");return sp(t,Object.assign({},n,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}hp(/[A-Za-z]/);const gp=hp(/[\dA-Za-z]/);function hp(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}function mp(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const a=e.charCodeAt(n);let i="";if(37===a&&gp(e.charCodeAt(n+1))&&gp(e.charCodeAt(n+2)))o=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(i=String.fromCharCode(a));else if(a>55295&&a<57344){const t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(i=String.fromCharCode(a,t),o=1):i="�"}else i=String.fromCharCode(a);i&&(t.push(e.slice(r,n),encodeURIComponent(i)),r=n+o+1,i=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}hp(/[#-'*+\--9=?A-Z^-~]/),hp(/\d/),hp(/[\dA-Fa-f]/),hp(/[!-/:-@[-`{-~]/),hp(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),hp(/\s/);const yp=function(e){if(null==e)return vp;if("string"==typeof e)return t=e,bp((function(e){return e&&e.type===t}));var t;if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=yp(e[n]);return bp((function(...e){let n=-1;for(;++n<t.length;)if(t[n].call(this,...e))return!0;return!1}))}(e):function(e){return bp((function(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0}))}(e);if("function"==typeof e)return bp(e);throw new Error("Expected function, string, or object as test")};function bp(e){return function(t,...n){return Boolean(t&&"object"==typeof t&&"type"in t&&Boolean(e.call(this,t,...n)))}}function vp(){return!0}const wp=!1,kp=Ep("start"),xp=Ep("end");function Ep(e){return function(t){const n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:n.offset>-1?n.offset:null}}}const Sp=!1,Fp={}.hasOwnProperty;function Ap(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null),function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null);const o=yp(t),a=r?-1:1;!function e(i,l,s){const u=i&&"object"==typeof i?i:{};if("string"==typeof u.type){const e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(c,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return c;function c(){let u,c,f,d=[];if((!t||o(i,l,s[s.length-1]||null))&&(d=function(e){return Array.isArray(e)?e:"number"==typeof e?[!0,e]:[e]}(n(i,s)),d[0]===Sp))return d;if(i.children&&"skip"!==d[0])for(c=(r?i.children.length:-1)+a,f=s.concat(i);c>-1&&c<i.children.length;){if(u=e(i.children[c],c,f)(),u[0]===Sp)return u;c="number"==typeof u[1]?u[1]:c+a}return d}}(e,void 0,[])()}(e,t,(function(e,t){const r=t[t.length-1];return n(e,r?r.children.indexOf(e):null,r)}),r)}(e,"definition",(e=>{const n=Cp(e.identifier);n&&!Fp.call(t,n)&&(t[n]=e)})),function(e){const n=Cp(e);return n&&Fp.call(t,n)?t[n]:null}}function Cp(e){return String(e||"").toUpperCase()}function Op(e,t){const n=String(t.identifier).toUpperCase(),r=mp(n.toLowerCase()),o=e.footnoteOrder.indexOf(n);let a;-1===o?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,a=e.footnoteOrder.length):(e.footnoteCounts[n]++,a=o+1);const i=e.footnoteCounts[n],l={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(i>1?"-"+i:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const s={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,s),e.applyData(t,s)}function Pp(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return{type:"text",value:"!["+t.alt+r};const o=e.all(t),a=o[0];a&&"text"===a.type?a.value="["+a.value:o.unshift({type:"text",value:"["});const i=o[o.length-1];return i&&"text"===i.type?i.value+=r:o.push({type:"text",value:r}),o}function Tp(e){const t=e.spread;return null==t?e.children.length>1:t}function Dp(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const a=[];for(;r;)a.push(Rp(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return a.push(Rp(t.slice(o),o>0,!1)),a.join("")}function Rp(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const Np={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,o={};r&&(o.className=["language-"+r]);let a={type:"element",tagName:"code",properties:o,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:Op,footnote:function(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const o=String(r);return n[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:t.children}],position:t.position},Op(e,{type:"footnoteReference",identifier:o,position:t.position})},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null},imageReference:function(e,t){const n=e.definition(t.identifier);if(!n)return Pp(e,t);const r={src:mp(n.url||""),alt:t.alt};null!==n.title&&void 0!==n.title&&(r.title=n.title);const o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const n={src:mp(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=e.definition(t.identifier);if(!n)return Pp(e,t);const r={href:mp(n.url||"")};null!==n.title&&void 0!==n.title&&(r.title=n.title);const o={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const n={href:mp(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Tp(n[r])}return t}(n):Tp(t),a={},i=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const e=r[l];(o||0!==l||"element"!==e.type||"p"!==e.tagName)&&i.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?i.push(e):i.push(...e.children)}const s=r[r.length-1];s&&(o||"element"!==s.type||"p"!==s.tagName)&&i.push({type:"text",value:"\n"});const u={type:"element",tagName:"li",properties:a,children:i};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=kp(t.children[1]),i=xp(t.children[t.children.length-1]);a.line&&i.line&&(r.position={start:a,end:i}),o.push(r)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,a),e.applyData(t,a)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",a=n&&"table"===n.type?n.align:void 0,i=a?a.length:t.children.length;let l=-1;const s=[];for(;++l<i;){const n=t.children[l],r={},i=a?a[l]:void 0;i&&(r.align=i);let u={type:"element",tagName:o,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(t,u)),s.push(u)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){const n={type:"text",value:Dp(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:Lp,yaml:Lp,definition:Lp,footnoteDefinition:Lp};function Lp(){return null}const _p={}.hasOwnProperty;function jp(e,t){const n=t||{},r=n.allowDangerousHtml||!1,o={};return i.dangerous=r,i.clobberPrefix=void 0===n.clobberPrefix||null===n.clobberPrefix?"user-content-":n.clobberPrefix,i.footnoteLabel=n.footnoteLabel||"Footnotes",i.footnoteLabelTagName=n.footnoteLabelTagName||"h2",i.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},i.footnoteBackLabel=n.footnoteBackLabel||"Back to content",i.unknownHandler=n.unknownHandler,i.passThrough=n.passThrough,i.handlers={...Np,...n.handlers},i.definition=Ap(e),i.footnoteById=o,i.footnoteOrder=[],i.footnoteCounts={},i.patch=zp,i.applyData=Ip,i.one=function(e,t){return Bp(i,e,t)},i.all=function(e){return Mp(i,e)},i.wrap=$p,i.augment=a,function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null),function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null);const o=yp(t),a=r?-1:1;!function e(i,l,s){const u=i&&"object"==typeof i?i:{};if("string"==typeof u.type){const e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(c,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return c;function c(){let u,c,f,d=[];if((!t||o(i,l,s[s.length-1]||null))&&(d=function(e){return Array.isArray(e)?e:"number"==typeof e?[!0,e]:[e]}(n(i,s)),d[0]===wp))return d;if(i.children&&"skip"!==d[0])for(c=(r?i.children.length:-1)+a,f=s.concat(i);c>-1&&c<i.children.length;){if(u=e(i.children[c],c,f)(),u[0]===wp)return u;c="number"==typeof u[1]?u[1]:c+a}return d}}(e,void 0,[])()}(e,t,(function(e,t){const r=t[t.length-1];return n(e,r?r.children.indexOf(e):null,r)}),r)}(e,"footnoteDefinition",(e=>{const t=String(e.identifier).toUpperCase();_p.call(o,t)||(o[t]=e)})),i;function a(e,t){if(e&&"data"in e&&e.data){const n=e.data;n.hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties={...t.properties,...n.hProperties}),"children"in t&&t.children&&n.hChildren&&(t.children=n.hChildren)}if(e){const n="type"in e?e:{position:e};(function(e){return!(e&&e.position&&e.position.start&&e.position.start.line&&e.position.start.column&&e.position.end&&e.position.end.line&&e.position.end.column)})(n)||(t.position={start:kp(n),end:xp(n)})}return t}function i(e,t,n,r){return Array.isArray(n)&&(r=n,n={}),a(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}}function zp(e,t){e.position&&(t.position=function(e){return{start:kp(e),end:xp(e)}}(e))}function Ip(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:[]}),"element"===n.type&&o&&(n.properties={...n.properties,...o}),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function Bp(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return _p.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:Mp(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):function(e,t){const n=t.data||{},r=!("value"in t)||_p.call(n,"hProperties")||_p.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:Mp(e,t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}(e,t)}function Mp(e,t){const n=[];if("children"in t){const r=t.children;let o=-1;for(;++o<r.length;){const a=Bp(e,r[o],t);if(a){if(o&&"break"===r[o-1].type&&(Array.isArray(a)||"text"!==a.type||(a.value=a.value.replace(/^\s+/,"")),!Array.isArray(a)&&"element"===a.type)){const e=a.children[0];e&&"text"===e.type&&(e.value=e.value.replace(/^\s+/,""))}Array.isArray(a)?n.push(...a):n.push(a)}}}return n}function $p(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function Hp(e,t){const n=jp(e,t),r=n.one(e,null),o=function(e){const t=[];let n=-1;for(;++n<e.footnoteOrder.length;){const r=e.footnoteById[e.footnoteOrder[n]];if(!r)continue;const o=e.all(r),a=String(r.identifier).toUpperCase(),i=mp(a.toLowerCase());let l=0;const s=[];for(;++l<=e.footnoteCounts[a];){const t={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+i+(l>1?"-"+l:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};l>1&&t.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(l)}]}),s.length>0&&s.push({type:"text",value:" "}),s.push(t)}const u=o[o.length-1];if(u&&"element"===u.type&&"p"===u.tagName){const e=u.children[u.children.length-1];e&&"text"===e.type?e.value+=" ":u.children.push({type:"text",value:" "}),u.children.push(...s)}else o.push(...s);const c={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+i},children:e.wrap(o,!0)};e.patch(r,c),t.push(c)}if(0!==t.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:"\n"}]}}(n);return o&&r.children.push({type:"text",value:"\n"},o),Array.isArray(r)?{type:"root",children:r}:r}const Up=function(e,t){return e&&"run"in e?function(e,t){return(n,r,o)=>{e.run(Hp(n,t),r,(e=>{o(e)}))}}(e,t):function(e){return t=>Hp(t,e)}(e||t)};var Wp=o(67),Vp=o.n(Wp);class qp{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function Gp(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new qp(n,r,t)}function Yp(e){return e.toLowerCase()}qp.prototype.property={},qp.prototype.normal={},qp.prototype.space=null;class Qp{constructor(e,t){this.property=e,this.attribute=t}}Qp.prototype.space=null,Qp.prototype.boolean=!1,Qp.prototype.booleanish=!1,Qp.prototype.overloadedBoolean=!1,Qp.prototype.number=!1,Qp.prototype.commaSeparated=!1,Qp.prototype.spaceSeparated=!1,Qp.prototype.commaOrSpaceSeparated=!1,Qp.prototype.mustUseProperty=!1,Qp.prototype.defined=!1;let Xp=0;const Kp=og(),Zp=og(),Jp=og(),eg=og(),tg=og(),ng=og(),rg=og();function og(){return 2**++Xp}const ag=Object.keys(t);class ig extends Qp{constructor(e,n,r,o){let a=-1;if(super(e,n),lg(this,"space",o),"number"==typeof r)for(;++a<ag.length;){const e=ag[a];lg(this,ag[a],(r&t[e])===t[e])}}}function lg(e,t,n){n&&(e[t]=n)}ig.prototype.defined=!0;const sg={}.hasOwnProperty;function ug(e){const t={},n={};let r;for(r in e.properties)if(sg.call(e.properties,r)){const o=e.properties[r],a=new ig(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Yp(r)]=r,n[Yp(a.attribute)]=r}return new qp(t,n,e.space)}const cg=ug({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),fg=ug({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function dg(e,t){return t in e?e[t]:t}function pg(e,t){return dg(e,t.toLowerCase())}const gg=ug({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:pg,properties:{xmlns:null,xmlnsXLink:null}}),hg=ug({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Zp,ariaAutoComplete:null,ariaBusy:Zp,ariaChecked:Zp,ariaColCount:eg,ariaColIndex:eg,ariaColSpan:eg,ariaControls:tg,ariaCurrent:null,ariaDescribedBy:tg,ariaDetails:null,ariaDisabled:Zp,ariaDropEffect:tg,ariaErrorMessage:null,ariaExpanded:Zp,ariaFlowTo:tg,ariaGrabbed:Zp,ariaHasPopup:null,ariaHidden:Zp,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:tg,ariaLevel:eg,ariaLive:null,ariaModal:Zp,ariaMultiLine:Zp,ariaMultiSelectable:Zp,ariaOrientation:null,ariaOwns:tg,ariaPlaceholder:null,ariaPosInSet:eg,ariaPressed:Zp,ariaReadOnly:Zp,ariaRelevant:null,ariaRequired:Zp,ariaRoleDescription:tg,ariaRowCount:eg,ariaRowIndex:eg,ariaRowSpan:eg,ariaSelected:Zp,ariaSetSize:eg,ariaSort:null,ariaValueMax:eg,ariaValueMin:eg,ariaValueNow:eg,ariaValueText:null,role:null}}),mg=ug({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:pg,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ng,acceptCharset:tg,accessKey:tg,action:null,allow:null,allowFullScreen:Kp,allowPaymentRequest:Kp,allowUserMedia:Kp,alt:null,as:null,async:Kp,autoCapitalize:null,autoComplete:tg,autoFocus:Kp,autoPlay:Kp,blocking:tg,capture:null,charSet:null,checked:Kp,cite:null,className:tg,cols:eg,colSpan:null,content:null,contentEditable:Zp,controls:Kp,controlsList:tg,coords:eg|ng,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Kp,defer:Kp,dir:null,dirName:null,disabled:Kp,download:Jp,draggable:Zp,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Kp,formTarget:null,headers:tg,height:eg,hidden:Kp,high:eg,href:null,hrefLang:null,htmlFor:tg,httpEquiv:tg,id:null,imageSizes:null,imageSrcSet:null,inert:Kp,inputMode:null,integrity:null,is:null,isMap:Kp,itemId:null,itemProp:tg,itemRef:tg,itemScope:Kp,itemType:tg,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Kp,low:eg,manifest:null,max:null,maxLength:eg,media:null,method:null,min:null,minLength:eg,multiple:Kp,muted:Kp,name:null,nonce:null,noModule:Kp,noValidate:Kp,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:Kp,optimum:eg,pattern:null,ping:tg,placeholder:null,playsInline:Kp,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Kp,referrerPolicy:null,rel:tg,required:Kp,reversed:Kp,rows:eg,rowSpan:eg,sandbox:tg,scope:null,scoped:Kp,seamless:Kp,selected:Kp,shadowRootClonable:Kp,shadowRootDelegatesFocus:Kp,shadowRootMode:null,shape:null,size:eg,sizes:null,slot:null,span:eg,spellCheck:Zp,src:null,srcDoc:null,srcLang:null,srcSet:null,start:eg,step:null,style:null,tabIndex:eg,target:null,title:null,translate:null,type:null,typeMustMatch:Kp,useMap:null,value:Zp,width:eg,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:tg,axis:null,background:null,bgColor:null,border:eg,borderColor:null,bottomMargin:eg,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Kp,declare:Kp,event:null,face:null,frame:null,frameBorder:null,hSpace:eg,leftMargin:eg,link:null,longDesc:null,lowSrc:null,marginHeight:eg,marginWidth:eg,noResize:Kp,noHref:Kp,noShade:Kp,noWrap:Kp,object:null,profile:null,prompt:null,rev:null,rightMargin:eg,rules:null,scheme:null,scrolling:Zp,standby:null,summary:null,text:null,topMargin:eg,valueType:null,version:null,vAlign:null,vLink:null,vSpace:eg,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Kp,disableRemotePlayback:Kp,prefix:null,property:null,results:eg,security:null,unselectable:null}}),yg=ug({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:dg,properties:{about:rg,accentHeight:eg,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:eg,amplitude:eg,arabicForm:null,ascent:eg,attributeName:null,attributeType:null,azimuth:eg,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:eg,by:null,calcMode:null,capHeight:eg,className:tg,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:eg,diffuseConstant:eg,direction:null,display:null,dur:null,divisor:eg,dominantBaseline:null,download:Kp,dx:null,dy:null,edgeMode:null,editable:null,elevation:eg,enableBackground:null,end:null,event:null,exponent:eg,externalResourcesRequired:null,fill:null,fillOpacity:eg,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:ng,g2:ng,glyphName:ng,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:eg,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:eg,horizOriginX:eg,horizOriginY:eg,id:null,ideographic:eg,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:eg,k:eg,k1:eg,k2:eg,k3:eg,k4:eg,kernelMatrix:rg,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:eg,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:eg,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:eg,overlineThickness:eg,paintOrder:null,panose1:null,path:null,pathLength:eg,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:tg,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:eg,pointsAtY:eg,pointsAtZ:eg,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:rg,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:rg,rev:rg,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:rg,requiredFeatures:rg,requiredFonts:rg,requiredFormats:rg,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:eg,specularExponent:eg,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:eg,strikethroughThickness:eg,string:null,stroke:null,strokeDashArray:rg,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:eg,strokeOpacity:eg,strokeWidth:null,style:null,surfaceScale:eg,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:rg,tabIndex:eg,tableValues:null,target:null,targetX:eg,targetY:eg,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:rg,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:eg,underlineThickness:eg,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:eg,values:null,vAlphabetic:eg,vMathematical:eg,vectorEffect:null,vHanging:eg,vIdeographic:eg,version:null,vertAdvY:eg,vertOriginX:eg,vertOriginY:eg,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:eg,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),bg=Gp([fg,cg,gg,hg,mg],"html"),vg=Gp([fg,cg,gg,hg,yg],"svg"),wg=!1;function kg(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{!function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null),function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null);const o=yp(t),a=r?-1:1;!function e(i,l,s){const u=i&&"object"==typeof i?i:{};if("string"==typeof u.type){const e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(c,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return c;function c(){let u,c,f,d=[];if((!t||o(i,l,s[s.length-1]||null))&&(d=function(e){return Array.isArray(e)?e:"number"==typeof e?[!0,e]:[e]}(n(i,s)),d[0]===wg))return d;if(i.children&&"skip"!==d[0])for(c=(r?i.children.length:-1)+a,f=s.concat(i);c>-1&&c<i.children.length;){if(u=e(i.children[c],c,f)(),u[0]===wg)return u;c="number"==typeof u[1]?u[1]:c+a}return d}}(e,void 0,[])()}(e,t,(function(e,t){const r=t[t.length-1];return n(e,r?r.children.indexOf(e):null,r)}),r)}(t,"element",((t,n,r)=>{const o=r;let a;if(e.allowedElements?a=!e.allowedElements.includes(t.tagName):e.disallowedElements&&(a=e.disallowedElements.includes(t.tagName)),!a&&e.allowElement&&"number"==typeof n&&(a=!e.allowElement(t,n,o)),a&&"number"==typeof n)return e.unwrapDisallowed&&t.children?o.children.splice(n,1,...t.children):o.children.splice(n,1),n}))}}var xg=o(819);function Eg(e){const t=e&&"object"==typeof e&&"text"===e.type?e.value||"":e;return"string"==typeof t&&""===t.replace(/[ \t\n\f\r]/g,"")}const Sg=/^data[-\w.:]+$/i,Fg=/-[a-z]/g,Ag=/[A-Z]/g;function Cg(e){return"-"+e.toLowerCase()}function Og(e){return e.charAt(1).toUpperCase()}const Pg={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"},Tg=o(532),Dg=["http","https","mailto","tel"];function Rg(e){const t=(e||"").trim(),n=t.charAt(0);if("#"===n||"/"===n)return t;const r=t.indexOf(":");if(-1===r)return t;let o=-1;for(;++o<Dg.length;){const e=Dg[o];if(r===e.length&&t.slice(0,e.length).toLowerCase()===e)return t}return o=t.indexOf("?"),-1!==o&&r>o?t:(o=t.indexOf("#"),-1!==o&&r>o?t:"javascript:void(0)")}const Ng={}.hasOwnProperty,Lg=new Set(["table","thead","tbody","tfoot","tr"]);function _g(e,t){const n=[];let r,o=-1;for(;++o<t.children.length;)r=t.children[o],"element"===r.type?n.push(jg(e,r,o,t)):"text"===r.type?"element"===t.type&&Lg.has(t.tagName)&&Eg(r)||n.push(r.value):"raw"!==r.type||e.options.skipHtml||n.push(r.value);return n}function jg(e,t,n,r){const o=e.options,a=void 0===o.transformLinkUri?Rg:o.transformLinkUri,i=e.schema,l=t.tagName,s={};let u,c=i;if("html"===i.space&&"svg"===l&&(c=vg,e.schema=c),t.properties)for(u in t.properties)Ng.call(t.properties,u)&&Ig(s,u,t.properties[u],e);"ol"!==l&&"ul"!==l||e.listDepth++;const f=_g(e,t);"ol"!==l&&"ul"!==l||e.listDepth--,e.schema=i;const d=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},p=o.components&&Ng.call(o.components,l)?o.components[l]:l,g="string"==typeof p||p===St.Fragment;if(!xg.isValidElementType(p))throw new TypeError(`Component for name \`${l}\` not defined or is not renderable`);if(s.key=n,"a"===l&&o.linkTarget&&(s.target="function"==typeof o.linkTarget?o.linkTarget(String(s.href||""),t.children,"string"==typeof s.title?s.title:null):o.linkTarget),"a"===l&&a&&(s.href=a(String(s.href||""),t.children,"string"==typeof s.title?s.title:null)),g||"code"!==l||"element"!==r.type||"pre"===r.tagName||(s.inline=!0),g||"h1"!==l&&"h2"!==l&&"h3"!==l&&"h4"!==l&&"h5"!==l&&"h6"!==l||(s.level=Number.parseInt(l.charAt(1),10)),"img"===l&&o.transformImageUri&&(s.src=o.transformImageUri(String(s.src||""),String(s.alt||""),"string"==typeof s.title?s.title:null)),!g&&"li"===l&&"element"===r.type){const e=function(e){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if("element"===n.type&&"input"===n.tagName)return n}return null}(t);s.checked=e&&e.properties?Boolean(e.properties.checked):null,s.index=zg(r,t),s.ordered="ol"===r.tagName}var h;return g||"ol"!==l&&"ul"!==l||(s.ordered="ol"===l,s.depth=e.listDepth),"td"!==l&&"th"!==l||(s.align&&(s.style||(s.style={}),s.style.textAlign=s.align,delete s.align),g||(s.isHeader="th"===l)),g||"tr"!==l||"element"!==r.type||(s.isHeader=Boolean("thead"===r.tagName)),o.sourcePos&&(s["data-sourcepos"]=[(h=d).start.line,":",h.start.column,"-",h.end.line,":",h.end.column].map(String).join("")),!g&&o.rawSourcePos&&(s.sourcePosition=t.position),!g&&o.includeElementIndex&&(s.index=zg(r,t),s.siblingCount=zg(r)),g||(s.node=t),f.length>0?St.createElement(p,s,f):St.createElement(p,s)}function zg(e,t){let n=-1,r=0;for(;++n<e.children.length&&e.children[n]!==t;)"element"===e.children[n].type&&r++;return r}function Ig(e,t,n,r){const o=function(e,t){const n=Yp(t);let r=t,o=Qp;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Sg.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Fg,Og);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Fg.test(e)){let n=e.replace(Ag,Cg);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=ig}return new o(r,t)}(r.schema,t);let a=n;null!=a&&a==a&&(Array.isArray(a)&&(a=o.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(a):a.join(" ").trim()),"style"===o.property&&"string"==typeof a&&(a=function(e){const t={};try{Tg(e,(function(e,n){const r="-ms-"===e.slice(0,4)?`ms-${e.slice(4)}`:e;t[r.replace(/-([a-z])/g,Bg)]=n}))}catch{}return t}(a)),o.space&&o.property?e[Ng.call(Pg,o.property)?Pg[o.property]:o.property]=a:o.attribute&&(e[o.attribute]=a))}function Bg(e,t){return t.toUpperCase()}const Mg={}.hasOwnProperty,$g={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function Hg(e){for(const t in $g)if(Mg.call($g,t)&&Mg.call(e,t)){const e=$g[t];console.warn(`[react-markdown] Warning: please ${e.to?`use \`${e.to}\` instead of`:"remove"} \`${t}\` (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#${e.id}> for more info)`),delete $g[t]}const t=df().use(pp).use(e.remarkPlugins||[]).use(Up,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(kg,e),n=new of;"string"==typeof e.children?n.value=e.children:void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=t.runSync(t.parse(n),n);if("root"!==r.type)throw new TypeError("Expected a `root` node");let o=St.createElement(St.Fragment,{},_g({options:e,schema:bg,listDepth:0},r));return e.className&&(o=St.createElement("div",{className:e.className},o)),o}Hg.propTypes={children:Wp.string,className:Wp.string,allowElement:Wp.func,allowedElements:Wp.arrayOf(Wp.string),disallowedElements:Wp.arrayOf(Wp.string),unwrapDisallowed:Wp.bool,remarkPlugins:Wp.arrayOf(Wp.oneOfType([Wp.object,Wp.func,Wp.arrayOf(Wp.oneOfType([Wp.bool,Wp.string,Wp.object,Wp.func,Wp.arrayOf(Wp.any)]))])),rehypePlugins:Wp.arrayOf(Wp.oneOfType([Wp.object,Wp.func,Wp.arrayOf(Wp.oneOfType([Wp.bool,Wp.string,Wp.object,Wp.func,Wp.arrayOf(Wp.any)]))])),sourcePos:Wp.bool,rawSourcePos:Wp.bool,skipHtml:Wp.bool,includeElementIndex:Wp.bool,transformLinkUri:Wp.oneOfType([Wp.func,Wp.bool]),linkTarget:Wp.oneOfType([Wp.func,Wp.string]),transformImageUri:Wp.func,components:Wp.object};const Ug={}.hasOwnProperty;function Wg(e,t){let n;for(n in t){const r=(Ug.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){Ug.call(r,a)||(r[a]=[]);const e=o[a];Vg(r[a],Array.isArray(e)?e:e?[e]:[])}}}function Vg(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Sf(e,0,0,r)}const qg=Kg(/[A-Za-z]/),Gg=Kg(/[\dA-Za-z]/);function Yg(e){return null!==e&&(e<0||32===e)}Kg(/[#-'*+\--9=?A-Z^-~]/),Kg(/\d/),Kg(/[\dA-Fa-f]/),Kg(/[!-/:-@[-`{-~]/);const Qg=Kg(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),Xg=Kg(/\s/);function Kg(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}const Zg={tokenize:function(e,t,n){let r=0;return function t(a){return(87===a||119===a)&&r<3?(r++,e.consume(a),t):46===a&&3===r?(e.consume(a),o):n(a)};function o(e){return null===e?n(e):t(e)}},partial:!0},Jg={tokenize:function(e,t,n){let r,o,a;return i;function i(t){return 46===t||95===t?e.check(th,s,l)(t):null===t||Yg(t)||Xg(t)||45!==t&&Qg(t)?s(t):(a=!0,e.consume(t),i)}function l(t){return 95===t?r=!0:(o=r,r=void 0),e.consume(t),i}function s(e){return o||r||!a?n(e):t(e)}},partial:!0},eh={tokenize:function(e,t){let n=0,r=0;return o;function o(i){return 40===i?(n++,e.consume(i),o):41===i&&r<n?a(i):33===i||34===i||38===i||39===i||41===i||42===i||44===i||46===i||58===i||59===i||60===i||63===i||93===i||95===i||126===i?e.check(th,t,a)(i):null===i||Yg(i)||Xg(i)?t(i):(e.consume(i),o)}function a(t){return 41===t&&r++,e.consume(t),o}},partial:!0},th={tokenize:function(e,t,n){return r;function r(i){return 33===i||34===i||39===i||41===i||42===i||44===i||46===i||58===i||59===i||63===i||95===i||126===i?(e.consume(i),r):38===i?(e.consume(i),a):93===i?(e.consume(i),o):60===i||null===i||Yg(i)||Xg(i)?t(i):n(i)}function o(e){return null===e||40===e||91===e||Yg(e)||Xg(e)?t(e):r(e)}function a(e){return qg(e)?i(e):n(e)}function i(t){return 59===t?(e.consume(t),r):qg(t)?(e.consume(t),i):n(t)}},partial:!0},nh={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return Gg(e)?n(e):t(e)}},partial:!0},rh={tokenize:function(e,t,n){const r=this;return function(t){return 87!==t&&119!==t||!uh.call(r,r.previous)||ph(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Zg,e.attempt(Jg,e.attempt(eh,o),n),n)(t))};function o(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:uh},oh={tokenize:function(e,t,n){const r=this;let o="",a=!1;return function(t){return 72!==t&&104!==t||!ch.call(r,r.previous)||ph(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(t),e.consume(t),i)};function i(t){if(qg(t)&&o.length<5)return o+=String.fromCodePoint(t),e.consume(t),i;if(58===t){const n=o.toLowerCase();if("http"===n||"https"===n)return e.consume(t),l}return n(t)}function l(t){return 47===t?(e.consume(t),a?s:(a=!0,l)):n(t)}function s(t){return null===t||function(e){return null!==e&&(e<32||127===e)}(t)||Yg(t)||Xg(t)||Qg(t)?n(t):e.attempt(Jg,e.attempt(eh,u),n)(t)}function u(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:ch},ah={tokenize:function(e,t,n){const r=this;let o,a;return function(t){return dh(t)&&fh.call(r,r.previous)&&!ph(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),i(t)):n(t)};function i(t){return dh(t)?(e.consume(t),i):64===t?(e.consume(t),l):n(t)}function l(t){return 46===t?e.check(nh,u,s)(t):45===t||95===t||Gg(t)?(a=!0,e.consume(t),l):u(t)}function s(t){return e.consume(t),o=!0,l}function u(i){return a&&o&&qg(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(i)):n(i)}},previous:fh},ih={},lh={text:ih};let sh=48;for(;sh<123;)ih[sh]=ah,sh++,58===sh?sh=65:91===sh&&(sh=97);function uh(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||Yg(e)}function ch(e){return!qg(e)}function fh(e){return!(47===e||dh(e))}function dh(e){return 43===e||45===e||46===e||95===e||Gg(e)}function ph(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function gh(e){return null!==e&&(e<0||32===e)}function hh(e){return-2===e||-1===e||32===e}function mh(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}function yh(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let a=0;return function(r){return hh(r)?(e.enter(n),i(r)):t(r)};function i(r){return hh(r)&&a++<o?(e.consume(r),i):(e.exit(n),t(r))}}ih[43]=ah,ih[45]=ah,ih[46]=ah,ih[95]=ah,ih[72]=[ah,oh],ih[104]=[ah,oh],ih[87]=[ah,rh],ih[119]=[ah,rh],mh(/[A-Za-z]/),mh(/[\dA-Za-z]/),mh(/[#-'*+\--9=?A-Z^-~]/),mh(/\d/),mh(/[\dA-Fa-f]/),mh(/[!-/:-@[-`{-~]/),mh(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),mh(/\s/);const bh={tokenize:function(e,t,n){return function(t){return hh(t)?yh(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||function(e){return null!==e&&e<-2}(e)?t(e):n(e)}},partial:!0},vh={tokenize:function(e,t,n){const r=this;return yh(e,(function(e){const o=r.events[r.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function wh(e,t,n){const r=this;let o=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i;for(;o--;){const e=r.events[o][1];if("labelImage"===e.type){i=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!i||!i._balanced)return n(o);const l=hd(r.sliceSerialize({start:i.end,end:r.now()}));return 94===l.codePointAt(0)&&a.includes(l.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)):n(o)}}function kh(e,t){let n,r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[r+1],e[r+2],["enter",o,t],e[r+3],e[r+4],["enter",a,t],["exit",a,t],["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(r,e.length-r+1,...s),e}function xh(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,i=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),l};function l(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(l){if(i>999||93===l&&!a||null===l||91===l||gh(l))return n(l);if(93===l){e.exit("chunkString");const a=e.exit("gfmFootnoteCallString");return o.includes(hd(r.sliceSerialize(a)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(l)}return gh(l)||(a=!0),i++,e.consume(l),92===l?u:s}function u(t){return 91===t||92===t||93===t?(e.consume(t),i++,s):s(t)}}function Eh(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,i,l=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),s};function s(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(t)}function u(t){if(l>999||93===t&&!i||null===t||91===t||gh(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return a=hd(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return gh(t)||(i=!0),l++,e.consume(t),92===t?c:u}function c(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}function f(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(a)||o.push(a),yh(e,d,"gfmFootnoteDefinitionWhitespace")):n(t)}function d(e){return t(e)}}function Sh(e,t,n){return e.check(bh,t,e.attempt(vh,t,n))}function Fh(e){e.exit("gfmFootnoteDefinition")}Oh(/[A-Za-z]/),Oh(/[\dA-Za-z]/),Oh(/[#-'*+\--9=?A-Z^-~]/),Oh(/\d/),Oh(/[\dA-Fa-f]/),Oh(/[!-/:-@[-`{-~]/);const Ah=Oh(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),Ch=Oh(/\s/);function Oh(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}function Ph(e){return null===e||function(e){return null!==e&&(e<0||32===e)}(e)||Ch(e)?1:Ah(e)?2:void 0}function Th(e){let t=(e||{}).singleTilde;const n={tokenize:function(e,n,r){const o=this.previous,a=this.events;let i=0;return function(t){return 126===o&&"characterEscape"!==a[a.length-1][1].type?r(t):(e.enter("strikethroughSequenceTemporary"),l(t))};function l(a){const s=Ph(o);if(126===a)return i>1?r(a):(e.consume(a),i++,l);if(i<2&&!t)return r(a);const u=e.exit("strikethroughSequenceTemporary"),c=Ph(a);return u._open=!c||2===c&&Boolean(s),u._close=!s||2===s&&Boolean(c),n(a)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const o={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i=[["enter",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",a,t]],l=t.parser.constructs.insideSpan.null;l&&Sf(i,i.length,0,od(l,e.slice(r+1,n),t)),Sf(i,i.length,0,[["exit",a,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",o,t]]),Sf(e,r-1,n-r+3,i),n=r+i.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}function Dh(e){return null!==e&&e<-2}function Rh(e){return null!==e&&(e<0||32===e)}function Nh(e){return-2===e||-1===e||32===e}function Lh(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}function _h(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let a=0;return function(r){return Nh(r)?(e.enter(n),i(r)):t(r)};function i(r){return Nh(r)&&a++<o?(e.consume(r),i):(e.exit(n),t(r))}}Lh(/[A-Za-z]/),Lh(/[\dA-Za-z]/),Lh(/[#-'*+\--9=?A-Z^-~]/),Lh(/\d/),Lh(/[\dA-Fa-f]/),Lh(/[!-/:-@[-`{-~]/),Lh(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),Lh(/\s/);class jh{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let o=0;if(0!==n||0!==r.length){for(;o<e.map.length;){if(e.map[o][0]===t)return e.map[o][1]+=n,void e.map[o][2].push(...r);o+=1}e.map.push([t,n,r])}}(this,e,t,n)}consume(e){if(this.map.sort(((e,t)=>e[0]-t[0])),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1])),n.push(this.map[t][2]),e.length=this.map[t][0];n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}}function zh(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if("enter"===o[0])"tableContent"===o[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===o[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===o[1].type)break}else"enter"===o[0]&&"tableDelimiterRow"===o[1].type&&(n=!0);t+=1}return r}const Ih={flow:{null:{tokenize:function(e,t,n){const r=this;let o,a=0,i=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const o=t>-1?r.events[t][1].type:null,a="tableHead"===o||"tableRow"===o?w:l;return a===w&&r.parser.lazy[r.now().line]?n(e):a(e)};function l(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){return 124===e||(o=!0,i+=1),s(e)}(t)}function s(t){return null===t?n(t):Dh(t)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f):n(t):Nh(t)?_h(e,s,"whitespace")(t):(i+=1,o&&(o=!1,a+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),o=!0,s):(e.enter("data"),u(t)))}function u(t){return null===t||124===t||Rh(t)?(e.exit("data"),s(t)):(e.consume(t),92===t?c:u)}function c(t){return 92===t||124===t?(e.consume(t),u):u(t)}function f(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),o=!1,Nh(t)?_h(e,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):d(t))}function d(t){return 45===t||58===t?g(t):124===t?(o=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):v(t)}function p(t){return Nh(t)?_h(e,g,"whitespace")(t):g(t)}function g(t){return 58===t?(i+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),h):45===t?(i+=1,h(t)):null===t||Dh(t)?b(t):v(t)}function h(t){return 45===t?(e.enter("tableDelimiterFiller"),m(t)):v(t)}function m(t){return 45===t?(e.consume(t),m):58===t?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(t))}function y(t){return Nh(t)?_h(e,b,"whitespace")(t):b(t)}function b(n){return 124===n?d(n):(null===n||Dh(n))&&o&&a===i?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):v(n)}function v(e){return n(e)}function w(t){return e.enter("tableRow"),k(t)}function k(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),k):null===n||Dh(n)?(e.exit("tableRow"),t(n)):Nh(n)?_h(e,k,"whitespace")(n):(e.enter("data"),x(n))}function x(t){return null===t||124===t||Rh(t)?(e.exit("data"),k(t)):(e.consume(t),92===t?E:x)}function E(t){return 92===t||124===t?(e.consume(t),x):x(t)}},resolveAll:function(e,t){let n,r,o,a=-1,i=!0,l=0,s=[0,0,0,0],u=[0,0,0,0],c=!1,f=0;const d=new jh;for(;++a<e.length;){const p=e[a],g=p[1];"enter"===p[0]?"tableHead"===g.type?(c=!1,0!==f&&(Mh(d,t,f,n,r),r=void 0,f=0),n={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},d.add(a,0,[["enter",n,t]])):"tableRow"===g.type||"tableDelimiterRow"===g.type?(i=!0,o=void 0,s=[0,0,0,0],u=[0,a+1,0,0],c&&(c=!1,r={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},d.add(a,0,[["enter",r,t]])),l="tableDelimiterRow"===g.type?2:r?3:1):!l||"data"!==g.type&&"tableDelimiterMarker"!==g.type&&"tableDelimiterFiller"!==g.type?"tableCellDivider"===g.type&&(i?i=!1:(0!==s[1]&&(u[0]=u[1],o=Bh(d,t,s,l,void 0,o)),s=u,u=[s[1],a,0,0])):(i=!1,0===u[2]&&(0!==s[1]&&(u[0]=u[1],o=Bh(d,t,s,l,void 0,o),s=[0,0,0,0]),u[2]=a)):"tableHead"===g.type?(c=!0,f=a):"tableRow"===g.type||"tableDelimiterRow"===g.type?(f=a,0!==s[1]?(u[0]=u[1],o=Bh(d,t,s,l,a,o)):0!==u[1]&&(o=Bh(d,t,u,l,a,o)),l=0):!l||"data"!==g.type&&"tableDelimiterMarker"!==g.type&&"tableDelimiterFiller"!==g.type||(u[3]=a)}for(0!==f&&Mh(d,t,f,n,r),d.consume(t.events),a=-1;++a<t.events.length;){const e=t.events[a];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=zh(t.events,a))}return e}}}};function Bh(e,t,n,r,o,a){const i=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(a.end=Object.assign({},$h(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const l=$h(t.events,n[1]);if(a={type:i,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",a,t]]),0!==n[2]){const o=$h(t.events,n[2]),a=$h(t.events,n[3]),i={type:"tableContent",start:Object.assign({},o),end:Object.assign({},a)};if(e.add(n[2],0,[["enter",i,t]]),2!==r){const r=t.events[n[2]],o=t.events[n[3]];if(r[1].end=Object.assign({},o[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",i,t]])}return void 0!==o&&(a.end=Object.assign({},$h(t.events,o)),e.add(o,0,[["exit",a,t]]),a=void 0),a}function Mh(e,t,n,r,o){const a=[],i=$h(t.events,n);o&&(o.end=Object.assign({},i),a.push(["exit",o,t])),r.end=Object.assign({},i),a.push(["exit",r,t]),e.add(n+1,0,a)}function $h(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}function Hh(e){return-2===e||-1===e||32===e}function Uh(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}Uh(/[A-Za-z]/),Uh(/[\dA-Za-z]/),Uh(/[#-'*+\--9=?A-Z^-~]/),Uh(/\d/),Uh(/[\dA-Fa-f]/),Uh(/[!-/:-@[-`{-~]/),Uh(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),Uh(/\s/);const Wh={tokenize:function(e,t,n){const r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o):n(t)};function o(t){return function(e){return null!==e&&(e<0||32===e)}(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),a):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),a):n(t)}function a(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),i):n(t)}function i(r){return function(e){return null!==e&&e<-2}(r)?t(r):Hh(r)?e.check({tokenize:qh},t,n)(r):n(r)}}},Vh={text:{91:Wh}};function qh(e,t,n){return function(e,t,n){const r=Number.POSITIVE_INFINITY;let o=0;return function(r){return Hh(r)?(e.enter(n),a(r)):t(r)};function a(i){return Hh(i)&&o++<r?(e.consume(i),a):(e.exit(n),t(i))}}(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}function Gh(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}const Yh=!1,Qh=function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null);const o=yp(t),a=r?-1:1;!function e(i,l,s){const u=i&&"object"==typeof i?i:{};if("string"==typeof u.type){const e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(c,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return c;function c(){let u,c,f,d=[];if((!t||o(i,l,s[s.length-1]||null))&&(d=function(e){return Array.isArray(e)?e:"number"==typeof e?[true,e]:[e]}(n(i,s)),d[0]===Yh))return d;if(i.children&&"skip"!==d[0])for(c=(r?i.children.length:-1)+a,f=s.concat(i);c>-1&&c<i.children.length;){if(u=e(i.children[c],c,f)(),u[0]===Yh)return u;c="number"==typeof u[1]?u[1]:c+a}return d}}(e,void 0,[])()},Xh={}.hasOwnProperty;function Kh(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function Zh(e){return"function"==typeof e?e:()=>e}tm(/[A-Za-z]/),tm(/[\dA-Za-z]/),tm(/[#-'*+\--9=?A-Z^-~]/),tm(/\d/),tm(/[\dA-Fa-f]/),tm(/[!-/:-@[-`{-~]/);const Jh=tm(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),em=tm(/\s/);function tm(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}const nm="phrasing",rm=["autolink","link","image","label"],om={transforms:[function(e){!function(e,t,n,r){let o,a;"string"==typeof t||t instanceof RegExp?(a=[[t,n]],o=r):(a=t,o=n),o||(o={});const i=yp(o.ignore||[]),l=function(e){const t=[];if("object"!=typeof e)throw new TypeError("Expected array or object as schema");if(Array.isArray(e)){let n=-1;for(;++n<e.length;)t.push([Kh(e[n][0]),Zh(e[n][1])])}else{let n;for(n in e)Xh.call(e,n)&&t.push([Kh(n),Zh(e[n])])}return t}(a);let s=-1;for(;++s<l.length;)Qh(e,"text",u);return e;function u(e,t){let n,r=-1;for(;++r<t.length;){const e=t[r];if(i(e,n?n.children.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=l[s][0],o=l[s][1];let a=0;const i=n.children.indexOf(e);let u=!1,c=[];r.lastIndex=0;let f=r.exec(e.value);for(;f;){const n=f.index,i={index:f.index,input:f.input,stack:[...t,e]};let l=o(...f,i);if("string"==typeof l&&(l=l.length>0?{type:"text",value:l}:void 0),!1!==l&&(a!==n&&c.push({type:"text",value:e.value.slice(a,n)}),Array.isArray(l)?c.push(...l):l&&c.push(l),a=n+f[0].length,u=!0),!r.global)break;f=r.exec(e.value)}return u?(a<e.value.length&&c.push({type:"text",value:e.value.slice(a)}),n.children.splice(i,1,...c)):c=[e],i+c.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,lm],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,sm]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:im,literalAutolinkHttp:im,literalAutolinkWww:im},exit:{literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e);this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}}},am={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:nm,notInConstruct:rm},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:nm,notInConstruct:rm},{character:":",before:"[ps]",after:"\\/",inConstruct:nm,notInConstruct:rm}]};function im(e){this.config.enter.autolinkProtocol.call(this,e)}function lm(e,t,n,r,o){let a="";if(!um(o))return!1;if(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!function(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n))return!1;const i=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const o=Gh(e,"(");let a=Gh(e,")");for(;-1!==r&&o>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}(n+r);if(!i[0])return!1;const l={type:"link",title:null,url:a+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[l,{type:"text",value:i[1]}]:l}function sm(e,t,n,r){return!(!um(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function um(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||em(n)||Jh(n))&&(!t||47!==n)}function cm(e){return e.label||!e.identifier?e.label||"":ap(e.identifier)}function fm(e,t,n,r){let o=r.join.length;for(;o--;){const a=r.join[o](e,t,n,r);if(!0===a||1===a)break;if("number"==typeof a)return"\n".repeat(1+a);if(!1===a)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}const dm=/\r?\n|\r/g;function pm(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function gm(e,t){return hm(e,t.inConstruct,!0)&&!hm(e,t.notInConstruct,!1)}function hm(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function mm(e,t,n){const r=(n.before||"")+(t||"")+(n.after||""),o=[],a=[],i={};let l=-1;for(;++l<e.unsafe.length;){const t=e.unsafe[l];if(!gm(e.stack,t))continue;const n=pm(t);let a;for(;a=n.exec(r);){const e="before"in t||Boolean(t.atBreak),n="after"in t,r=a.index+(e?a[1].length:0);o.includes(r)?(i[r].before&&!e&&(i[r].before=!1),i[r].after&&!n&&(i[r].after=!1)):(o.push(r),i[r]={before:e,after:n})}}o.sort(ym);let s=n.before?n.before.length:0;const u=r.length-(n.after?n.after.length:0);for(l=-1;++l<o.length;){const e=o[l];e<s||e>=u||e+1<u&&o[l+1]===e+1&&i[e].after&&!i[e+1].before&&!i[e+1].after||o[l-1]===e-1&&i[e].before&&!i[e-1].before&&!i[e-1].after||(s!==e&&a.push(bm(r.slice(s,e),"\\")),s=e,!/[!-/:-@[-`{-~]/.test(r.charAt(e))||n.encode&&n.encode.includes(r.charAt(e))?(a.push("&#x"+r.charCodeAt(e).toString(16).toUpperCase()+";"),s++):a.push("\\"))}return a.push(bm(r.slice(s,u),n.after)),a.join("")}function ym(e,t){return e-t}function bm(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],o=[],a=e+t;let i,l=-1,s=0;for(;i=n.exec(a);)r.push(i.index);for(;++l<r.length;)s!==r[l]&&o.push(e.slice(s,r[l])),o.push("\\"),s=r[l];return o.push(e.slice(s)),o.join("")}function vm(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,o=n.line||1,a=n.column||1;return{move:function(e){const t=e||"",n=t.split(/\r?\n|\r/g),i=n[n.length-1];return o+=n.length-1,a=1===n.length?a+i.length:1+i.length+r,t},current:function(){return{now:{line:o,column:a},lineShift:r}},shift:function(e){r+=e}}}function wm(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function km(){this.buffer()}function xm(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=hd(this.sliceSerialize(e)).toLowerCase()}function Em(e){this.exit(e)}function Sm(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Fm(){this.buffer()}function Am(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=hd(this.sliceSerialize(e)).toLowerCase()}function Cm(e){this.exit(e)}function Om(e,t,n,r){const o=vm(r);let a=o.move("[^");const i=n.enter("footnoteReference"),l=n.enter("reference");return a+=o.move(mm(n,cm(e),{...o.current(),before:a,after:"]"})),l(),i(),a+=o.move("]"),a}function Pm(e,t,n,r){const o=vm(r);let a=o.move("[^");const i=n.enter("footnoteDefinition"),l=n.enter("label");return a+=o.move(mm(n,cm(e),{...o.current(),before:a,after:"]"})),l(),a+=o.move("]:"+(e.children&&e.children.length>0?" ":"")),o.shift(4),a+=o.move(function(e,t){const n=[];let r,o=0,a=0;for(;r=dm.exec(e);)i(e.slice(o,r.index)),n.push(r[0]),o=r.index+r[0].length,a++;return i(e.slice(o)),n.join("");function i(e){n.push(t(e,a,!e))}}(function(e,t,n){const r=t.indexStack,o=e.children||[],a=t.createTracker(n),i=[];let l=-1;for(r.push(-1);++l<o.length;){const n=o[l];r[r.length-1]=l,i.push(a.move(t.handle(n,e,t,{before:"\n",after:"\n",...a.current()}))),"list"!==n.type&&(t.bulletLastUsed=void 0),l<o.length-1&&i.push(a.move(fm(n,o[l+1],e,t)))}return r.pop(),i.join("")}(e,n,o.current()),Tm)),i(),a}function Tm(e,t,n){return 0===t?e:(n?"":" ")+e}Om.peek=function(){return"["},Nm.peek=function(){return"~"};const Dm={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},Rm={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"]}],handlers:{delete:Nm}};function Nm(e,t,n,r){const o=function(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,o=n.line||1,a=n.column||1;return{move:function(e){const t=e||"",n=t.split(/\r?\n|\r/g),i=n[n.length-1];return o+=n.length-1,a=1===n.length?a+i.length:1+i.length+r,t},current:function(){return{now:{line:o,column:a},lineShift:r}},shift:function(e){r+=e}}}(r),a=n.enter("strikethrough");let i=o.move("~~");return i+=function(e,t,n){const r=t.indexStack,o=e.children||[],a=[];let i=-1,l=n.before;r.push(-1);let s=t.createTracker(n);for(;++i<o.length;){const u=o[i];let c;if(r[r.length-1]=i,i+1<o.length){let n=t.handle.handlers[o[i+1].type];n&&n.peek&&(n=n.peek),c=n?n(o[i+1],e,t,{before:"",after:"",...s.current()}).charAt(0):""}else c=n.after;a.length>0&&("\r"===l||"\n"===l)&&"html"===u.type&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),l=" ",s=t.createTracker(n),s.move(a.join(""))),a.push(s.move(t.handle(u,e,t,{...s.current(),before:l,after:c}))),l=a[a.length-1].slice(-1)}return r.pop(),a.join("")}(e,n,{...o.current(),before:i,after:"~"}),i+=o.move("~~"),a(),i}function Lm(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function _m(e,t,n){let r=e.value||"",o="`",a=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){const e=n.unsafe[a],t=Lm(e);let o;if(e.atBreak)for(;o=t.exec(r);){let e=o.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(o.index+1)}}return o+r+o}function jm(e){return e.length}function zm(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}_m.peek=function(){return"`"};const Im={enter:{table:function(e){const t=e._align;this.enter({type:"table",align:t.map((e=>"none"===e?null:e)),children:[]},e),this.setData("inTable",!0)},tableData:Mm,tableHeader:Mm,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,$m));this.stack[this.stack.length-1].value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:Bm,tableHeader:Bm,tableRow:Bm}};function Bm(e){this.exit(e)}function Mm(e){this.enter({type:"tableCell",children:[]},e)}function $m(e,t){return"|"===t?t:e}function Hm(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:function(e,t,n,r){return l(function(e,t,n){const r=e.children;let o=-1;const a=[],i=t.enter("table");for(;++o<r.length;)a[o]=s(r[o],t,n);return i(),a}(e,n,r),e.align)},tableRow:function(e,t,n,r){const o=l([s(e,n,r)]);return o.slice(0,o.indexOf("\n"))},tableCell:i,inlineCode:function(e,t,n){let r=_m(e,0,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r}}};function i(e,t,n,r){const o=n.enter("tableCell"),i=n.enter("phrasing"),l=function(e,t,n){const r=t.indexStack,o=e.children||[],a=[];let i=-1,l=n.before;r.push(-1);let s=t.createTracker(n);for(;++i<o.length;){const u=o[i];let c;if(r[r.length-1]=i,i+1<o.length){let n=t.handle.handlers[o[i+1].type];n&&n.peek&&(n=n.peek),c=n?n(o[i+1],e,t,{before:"",after:"",...s.current()}).charAt(0):""}else c=n.after;a.length>0&&("\r"===l||"\n"===l)&&"html"===u.type&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),l=" ",s=t.createTracker(n),s.move(a.join(""))),a.push(s.move(t.handle(u,e,t,{...s.current(),before:l,after:c}))),l=a[a.length-1].slice(-1)}return r.pop(),a.join("")}(e,n,{...r,before:a,after:a});return i(),o(),l}function l(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||jm,a=[],i=[],l=[],s=[];let u=0,c=-1;for(;++c<e.length;){const t=[],r=[];let a=-1;for(e[c].length>u&&(u=e[c].length);++a<e[c].length;){const i=null==(f=e[c][a])?"":String(f);if(!1!==n.alignDelimiters){const e=o(i);r[a]=e,(void 0===s[a]||e>s[a])&&(s[a]=e)}t.push(i)}i[c]=t,l[c]=r}var f;let d=-1;if("object"==typeof r&&"length"in r)for(;++d<u;)a[d]=zm(r[d]);else{const e=zm(r);for(;++d<u;)a[d]=e}d=-1;const p=[],g=[];for(;++d<u;){const e=a[d];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let o=!1===n.alignDelimiters?1:Math.max(1,s[d]-t.length-r.length);const i=t+"-".repeat(o)+r;!1!==n.alignDelimiters&&(o=t.length+o+r.length,o>s[d]&&(s[d]=o),g[d]=o),p[d]=i}i.splice(1,0,p),l.splice(1,0,g),c=-1;const h=[];for(;++c<i.length;){const e=i[c],t=l[c];d=-1;const r=[];for(;++d<u;){const o=e[d]||"";let i="",l="";if(!1!==n.alignDelimiters){const e=s[d]-(t[d]||0),n=a[d];114===n?i=" ".repeat(e):99===n?e%2?(i=" ".repeat(e/2+.5),l=" ".repeat(e/2-.5)):(i=" ".repeat(e/2),l=i):l=" ".repeat(e)}!1===n.delimiterStart||d||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===o||!1===n.delimiterStart&&!d||r.push(" "),!1!==n.alignDelimiters&&r.push(i),r.push(o),!1!==n.alignDelimiters&&r.push(l),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&d===u-1||r.push("|")}h.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return h.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:o})}function s(e,t,n){const r=e.children;let o=-1;const a=[],l=t.enter("tableRow");for(;++o<r.length;)a[o]=i(r[o],0,t,n);return l(),a}}const Um={exit:{taskListCheckValueChecked:Vm,taskListCheckValueUnchecked:Vm,paragraph:function(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1],n=e.children[0];if(n&&"text"===n.type){const r=t.children;let o,a=-1;for(;++a<r.length;){const e=r[a];if("paragraph"===e.type){o=e;break}}o===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}}},Wm={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:function(e,t,n,r){const o=e.children[0],a="boolean"==typeof e.checked&&o&&"paragraph"===o.type,i="["+(e.checked?"x":" ")+"] ",l=function(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,o=n.line||1,a=n.column||1;return{move:function(e){const t=e||"",n=t.split(/\r?\n|\r/g),i=n[n.length-1];return o+=n.length-1,a=1===n.length?a+i.length:1+i.length+r,t},current:function(){return{now:{line:o,column:a},lineShift:r}},shift:function(e){r+=e}}}(r);a&&l.move(i);let s=function(e,t,n,r){const o=function(e){const t=e.options.listItemIndent||"tab";if(1===t||"1"===t)return"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let a=n.bulletCurrent||function(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(a=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+a);let i=a.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(i=4*Math.ceil(i/4));const l=n.createTracker(r);l.move(a+" ".repeat(i-a.length)),l.shift(i);const s=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,l.current()),(function(e,t,n){return t?(n?"":" ".repeat(i))+e:(n?a:a+" ".repeat(i-a.length))+e}));return s(),u}(e,t,n,{...r,...l.current()});return a&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+i}))),s}}};function Vm(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function qm(e={}){const t=this.data();function n(e,n){(t[e]?t[e]:t[e]=[]).push(n)}n("micromarkExtensions",function(e){return function(e){const t={};let n=-1;for(;++n<e.length;)Wg(t,e[n]);return t}([lh,{document:{91:{tokenize:Eh,continuation:{tokenize:Sh},exit:Fh}},text:{91:{tokenize:xh},93:{add:"after",tokenize:wh,resolveTo:kh}}},Th(e),Ih,Vh])}(e)),n("fromMarkdownExtensions",[om,{enter:{gfmFootnoteDefinition:wm,gfmFootnoteDefinitionLabelString:km,gfmFootnoteCall:Sm,gfmFootnoteCallString:Fm},exit:{gfmFootnoteDefinition:Em,gfmFootnoteDefinitionLabelString:xm,gfmFootnoteCall:Cm,gfmFootnoteCallString:Am}},Dm,Im,Um]),n("toMarkdownExtensions",function(e){return{extensions:[am,{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:Pm,footnoteReference:Om}},Rm,Hm(e),Wm]}}(e))}var Gm=o(144);function Ym(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function Qm(...e){return(0,St.useCallback)(Ym(...e),e)}const Xm=(0,St.forwardRef)(((e,t)=>{const{children:n,...r}=e,o=St.Children.toArray(n),a=o.find(Jm);if(a){const e=a.props.children,n=o.map((t=>t===a?St.Children.count(e)>1?St.Children.only(null):(0,St.isValidElement)(e)?e.props.children:null:t));return(0,St.createElement)(Km,Qn({},r,{ref:t}),(0,St.isValidElement)(e)?(0,St.cloneElement)(e,void 0,n):null)}return(0,St.createElement)(Km,Qn({},r,{ref:t}),n)}));Xm.displayName="Slot";const Km=(0,St.forwardRef)(((e,t)=>{const{children:n,...r}=e;return(0,St.isValidElement)(n)?(0,St.cloneElement)(n,{...ey(r,n.props),ref:Ym(t,n.ref)}):St.Children.count(n)>1?St.Children.only(null):null}));Km.displayName="SlotClone";const Zm=({children:e})=>(0,St.createElement)(St.Fragment,null,e);function Jm(e){return(0,St.isValidElement)(e)&&e.type===Zm}function ey(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{a(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const ty=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=(0,St.forwardRef)(((e,n)=>{const{asChild:r,...o}=e,a=r?Xm:t;return(0,St.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,St.createElement)(a,Qn({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{}),ny=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?St.useLayoutEffect:()=>{},ry=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=(0,St.useState)(),r=(0,St.useRef)({}),o=(0,St.useRef)(e),a=(0,St.useRef)("none"),i=e?"mounted":"unmounted",[l,s]=function(e,t){return(0,St.useReducer)(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,St.useEffect)((()=>{const e=oy(r.current);a.current="mounted"===l?e:"none"}),[l]),ny((()=>{const t=r.current,n=o.current;if(n!==e){const r=a.current,i=oy(t);e?s("MOUNT"):"none"===i||"none"===(null==t?void 0:t.display)?s("UNMOUNT"):s(n&&r!==i?"ANIMATION_OUT":"UNMOUNT"),o.current=e}}),[e,s]),ny((()=>{if(t){const e=e=>{const n=oy(r.current).includes(e.animationName);e.target===t&&n&&(0,Gm.flushSync)((()=>s("ANIMATION_END")))},n=e=>{e.target===t&&(a.current=oy(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}s("ANIMATION_END")}),[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:(0,St.useCallback)((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):St.Children.only(n),a=Qm(r.ref,o.ref);return"function"==typeof n||r.isPresent?(0,St.cloneElement)(o,{ref:a}):null};function oy(e){return(null==e?void 0:e.animationName)||"none"}function ay(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return(0,St.useMemo)((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function iy(e){const t=(0,St.useRef)(e);return(0,St.useEffect)((()=>{t.current=e})),(0,St.useMemo)((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}ry.displayName="Presence";const ly=(0,St.createContext)(void 0);function sy(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}const uy="ScrollArea",[cy,fy]=function(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>(0,St.createContext)(e)));return function(n){const r=(null==n?void 0:n[e])||t;return(0,St.useMemo)((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=(0,St.createContext)(r),a=n.length;function i(t){const{scope:n,children:r,...i}=t,l=(null==n?void 0:n[e][a])||o,s=(0,St.useMemo)((()=>i),Object.values(i));return(0,St.createElement)(l.Provider,{value:s},r)}return n=[...n,r],i.displayName=t+"Provider",[i,function(n,i){const l=(null==i?void 0:i[e][a])||o,s=(0,St.useContext)(l);if(s)return s;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},ay(r,...t)]}(uy),[dy,py]=cy(uy),gy=(0,St.forwardRef)(((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:a=600,...i}=e,[l,s]=(0,St.useState)(null),[u,c]=(0,St.useState)(null),[f,d]=(0,St.useState)(null),[p,g]=(0,St.useState)(null),[h,m]=(0,St.useState)(null),[y,b]=(0,St.useState)(0),[v,w]=(0,St.useState)(0),[k,x]=(0,St.useState)(!1),[E,S]=(0,St.useState)(!1),F=Qm(t,(e=>s(e))),A=function(e){const t=(0,St.useContext)(ly);return e||t||"ltr"}(o);return(0,St.createElement)(dy,{scope:n,type:r,dir:A,scrollHideDelay:a,scrollArea:l,viewport:u,onViewportChange:c,content:f,onContentChange:d,scrollbarX:p,onScrollbarXChange:g,scrollbarXEnabled:k,onScrollbarXEnabledChange:x,scrollbarY:h,onScrollbarYChange:m,scrollbarYEnabled:E,onScrollbarYEnabledChange:S,onCornerWidthChange:b,onCornerHeightChange:w},(0,St.createElement)(ty.div,Qn({dir:A},i,{ref:F,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":v+"px",...e.style}})))})),hy=(0,St.forwardRef)(((e,t)=>{const{__scopeScrollArea:n,children:r,...o}=e,a=py("ScrollAreaViewport",n),i=Qm(t,(0,St.useRef)(null),a.onViewportChange);return(0,St.createElement)(St.Fragment,null,(0,St.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),(0,St.createElement)(ty.div,Qn({"data-radix-scroll-area-viewport":""},o,{ref:i,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...e.style}}),(0,St.createElement)("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"}},r)))})),my="ScrollAreaScrollbar",yy=(0,St.forwardRef)(((e,t)=>{const{forceMount:n,...r}=e,o=py(my,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:i}=o,l="horizontal"===e.orientation;return(0,St.useEffect)((()=>(l?a(!0):i(!0),()=>{l?a(!1):i(!1)})),[l,a,i]),"hover"===o.type?(0,St.createElement)(by,Qn({},r,{ref:t,forceMount:n})):"scroll"===o.type?(0,St.createElement)(vy,Qn({},r,{ref:t,forceMount:n})):"auto"===o.type?(0,St.createElement)(wy,Qn({},r,{ref:t,forceMount:n})):"always"===o.type?(0,St.createElement)(ky,Qn({},r,{ref:t})):null})),by=(0,St.forwardRef)(((e,t)=>{const{forceMount:n,...r}=e,o=py(my,e.__scopeScrollArea),[a,i]=(0,St.useState)(!1);return(0,St.useEffect)((()=>{const e=o.scrollArea;let t=0;if(e){const n=()=>{window.clearTimeout(t),i(!0)},r=()=>{t=window.setTimeout((()=>i(!1)),o.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}}),[o.scrollArea,o.scrollHideDelay]),(0,St.createElement)(ry,{present:n||a},(0,St.createElement)(wy,Qn({"data-state":a?"visible":"hidden"},r,{ref:t})))})),vy=(0,St.forwardRef)(((e,t)=>{const{forceMount:n,...r}=e,o=py(my,e.__scopeScrollArea),a="horizontal"===e.orientation,i=My((()=>s("SCROLL_END")),100),[l,s]=(u={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},(0,St.useReducer)(((e,t)=>{const n=u[e][t];return null!=n?n:e}),"hidden"));var u;return(0,St.useEffect)((()=>{if("idle"===l){const e=window.setTimeout((()=>s("HIDE")),o.scrollHideDelay);return()=>window.clearTimeout(e)}}),[l,o.scrollHideDelay,s]),(0,St.useEffect)((()=>{const e=o.viewport,t=a?"scrollLeft":"scrollTop";if(e){let n=e[t];const r=()=>{const r=e[t];n!==r&&(s("SCROLL"),i()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}}),[o.viewport,a,s,i]),(0,St.createElement)(ry,{present:n||"hidden"!==l},(0,St.createElement)(ky,Qn({"data-state":"hidden"===l?"hidden":"visible"},r,{ref:t,onPointerEnter:sy(e.onPointerEnter,(()=>s("POINTER_ENTER"))),onPointerLeave:sy(e.onPointerLeave,(()=>s("POINTER_LEAVE")))})))})),wy=(0,St.forwardRef)(((e,t)=>{const n=py(my,e.__scopeScrollArea),{forceMount:r,...o}=e,[a,i]=(0,St.useState)(!1),l="horizontal"===e.orientation,s=My((()=>{if(n.viewport){const e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;i(l?e:t)}}),10);return $y(n.viewport,s),$y(n.content,s),(0,St.createElement)(ry,{present:r||a},(0,St.createElement)(ky,Qn({"data-state":a?"visible":"hidden"},o,{ref:t})))})),ky=(0,St.forwardRef)(((e,t)=>{const{orientation:n="vertical",...r}=e,o=py(my,e.__scopeScrollArea),a=(0,St.useRef)(null),i=(0,St.useRef)(0),[l,s]=(0,St.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=Ly(l.viewport,l.content),c={...r,sizes:l,onSizesChange:s,hasThumb:Boolean(u>0&&u<1),onThumbChange:e=>a.current=e,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:e=>i.current=e};function f(e,t){return function(e,t,n,r="ltr"){const o=_y(n),a=t||o/2,i=o-a,l=n.scrollbar.paddingStart+a,s=n.scrollbar.size-n.scrollbar.paddingEnd-i,u=n.content-n.viewport;return zy([l,s],"ltr"===r?[0,u]:[-1*u,0])(e)}(e,i.current,l,t)}return"horizontal"===n?(0,St.createElement)(xy,Qn({},c,{ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const e=jy(o.viewport.scrollLeft,l,o.dir);a.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollLeft=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollLeft=f(e,o.dir))}})):"vertical"===n?(0,St.createElement)(Ey,Qn({},c,{ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const e=jy(o.viewport.scrollTop,l);a.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollTop=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollTop=f(e))}})):null})),xy=(0,St.forwardRef)(((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=py(my,e.__scopeScrollArea),[i,l]=(0,St.useState)(),s=(0,St.useRef)(null),u=Qm(t,s,a.onScrollbarXChange);return(0,St.useEffect)((()=>{s.current&&l(getComputedStyle(s.current))}),[s]),(0,St.createElement)(Ay,Qn({"data-orientation":"horizontal"},o,{ref:u,sizes:n,style:{bottom:0,left:"rtl"===a.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===a.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":_y(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(a.viewport){const r=a.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),Iy(r,n)&&t.preventDefault()}},onResize:()=>{s.current&&a.viewport&&i&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:Ny(i.paddingLeft),paddingEnd:Ny(i.paddingRight)}})}}))})),Ey=(0,St.forwardRef)(((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=py(my,e.__scopeScrollArea),[i,l]=(0,St.useState)(),s=(0,St.useRef)(null),u=Qm(t,s,a.onScrollbarYChange);return(0,St.useEffect)((()=>{s.current&&l(getComputedStyle(s.current))}),[s]),(0,St.createElement)(Ay,Qn({"data-orientation":"vertical"},o,{ref:u,sizes:n,style:{top:0,right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":_y(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(a.viewport){const r=a.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),Iy(r,n)&&t.preventDefault()}},onResize:()=>{s.current&&a.viewport&&i&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:Ny(i.paddingTop),paddingEnd:Ny(i.paddingBottom)}})}}))})),[Sy,Fy]=cy(my),Ay=(0,St.forwardRef)(((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:l,onThumbPositionChange:s,onDragScroll:u,onWheelScroll:c,onResize:f,...d}=e,p=py(my,n),[g,h]=(0,St.useState)(null),m=Qm(t,(e=>h(e))),y=(0,St.useRef)(null),b=(0,St.useRef)(""),v=p.viewport,w=r.content-r.viewport,k=iy(c),x=iy(s),E=My(f,10);function S(e){if(y.current){const t=e.clientX-y.current.left,n=e.clientY-y.current.top;u({x:t,y:n})}}return(0,St.useEffect)((()=>{const e=e=>{const t=e.target;(null==g?void 0:g.contains(t))&&k(e,w)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})}),[v,g,w,k]),(0,St.useEffect)(x,[r,x]),$y(g,E),$y(p.content,E),(0,St.createElement)(Sy,{scope:n,scrollbar:g,hasThumb:o,onThumbChange:iy(a),onThumbPointerUp:iy(i),onThumbPositionChange:x,onThumbPointerDown:iy(l)},(0,St.createElement)(ty.div,Qn({},d,{ref:m,style:{position:"absolute",...d.style},onPointerDown:sy(e.onPointerDown,(e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),y.current=g.getBoundingClientRect(),b.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S(e))})),onPointerMove:sy(e.onPointerMove,S),onPointerUp:sy(e.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=b.current,y.current=null}))})))})),Cy="ScrollAreaThumb",Oy=(0,St.forwardRef)(((e,t)=>{const{forceMount:n,...r}=e,o=Fy(Cy,e.__scopeScrollArea);return(0,St.createElement)(ry,{present:n||o.hasThumb},(0,St.createElement)(Py,Qn({ref:t},r)))})),Py=(0,St.forwardRef)(((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,a=py(Cy,n),i=Fy(Cy,n),{onThumbPositionChange:l}=i,s=Qm(t,(e=>i.onThumbChange(e))),u=(0,St.useRef)(),c=My((()=>{u.current&&(u.current(),u.current=void 0)}),100);return(0,St.useEffect)((()=>{const e=a.viewport;if(e){const t=()=>{if(c(),!u.current){const t=By(e,l);u.current=t,l()}};return l(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}}),[a.viewport,c,l]),(0,St.createElement)(ty.div,Qn({"data-state":i.hasThumb?"visible":"hidden"},o,{ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:sy(e.onPointerDownCapture,(e=>{const t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;i.onThumbPointerDown({x:n,y:r})})),onPointerUp:sy(e.onPointerUp,i.onThumbPointerUp)}))})),Ty="ScrollAreaCorner",Dy=(0,St.forwardRef)(((e,t)=>{const n=py(Ty,e.__scopeScrollArea),r=Boolean(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?(0,St.createElement)(Ry,Qn({},e,{ref:t})):null})),Ry=(0,St.forwardRef)(((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=py(Ty,n),[a,i]=(0,St.useState)(0),[l,s]=(0,St.useState)(0),u=Boolean(a&&l);return $y(o.scrollbarX,(()=>{var e;const t=(null===(e=o.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;o.onCornerHeightChange(t),s(t)})),$y(o.scrollbarY,(()=>{var e;const t=(null===(e=o.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;o.onCornerWidthChange(t),i(t)})),u?(0,St.createElement)(ty.div,Qn({},r,{ref:t,style:{width:a,height:l,position:"absolute",right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:0,...e.style}})):null}));function Ny(e){return e?parseInt(e,10):0}function Ly(e,t){const n=e/t;return isNaN(n)?0:n}function _y(e){const t=Ly(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function jy(e,t,n="ltr"){const r=_y(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,i=t.content-t.viewport,l=a-r,s=function(e,[t,n]){return Math.min(n,Math.max(t,e))}(e,"ltr"===n?[0,i]:[-1*i,0]);return zy([0,i],[0,l])(s)}function zy(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Iy(e,t){return e>0&&e<t}const By=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const a={left:e.scrollLeft,top:e.scrollTop},i=n.left!==a.left,l=n.top!==a.top;(i||l)&&t(),n=a,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function My(e,t){const n=iy(e),r=(0,St.useRef)(0);return(0,St.useEffect)((()=>()=>window.clearTimeout(r.current)),[]),(0,St.useCallback)((()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)}),[n,t])}function $y(e,t){const n=iy(t);ny((()=>{let t=0;if(e){const r=new ResizeObserver((()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)}));return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}}),[e,n])}const Hy=gy,Uy=hy,Wy=yy,Vy=Oy,qy=Dy;function Gy(e){return Array.isArray(e)?e:[e]}const Yy=ia(((e,{scrollbarSize:t,offsetScrollbars:n,scrollbarHovered:r,hidden:o})=>({root:{overflow:"hidden"},viewport:{width:"100%",height:"100%",paddingRight:n?Hr(t):void 0,paddingBottom:n?Hr(t):void 0},scrollbar:{display:o?"none":"flex",userSelect:"none",touchAction:"none",boxSizing:"border-box",padding:`calc(${Hr(t)} / 5)`,transition:"background-color 150ms ease, opacity 150ms ease","&:hover":{backgroundColor:"dark"===e.colorScheme?e.colors.dark[8]:e.colors.gray[0],[`& .${Ii("thumb")}`]:{backgroundColor:"dark"===e.colorScheme?e.fn.rgba(e.white,.5):e.fn.rgba(e.black,.5)}},'&[data-orientation="vertical"]':{width:Hr(t)},'&[data-orientation="horizontal"]':{flexDirection:"column",height:Hr(t)},'&[data-state="hidden"]':{display:"none",opacity:0}},thumb:{ref:Ii("thumb"),flex:1,backgroundColor:"dark"===e.colorScheme?e.fn.rgba(e.white,.4):e.fn.rgba(e.black,.4),borderRadius:Hr(t),position:"relative",transition:"background-color 150ms ease",display:o?"none":void 0,overflow:"hidden","&::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"100%",height:"100%",minWidth:Hr(44),minHeight:Hr(44)}},corner:{backgroundColor:"dark"===e.colorScheme?e.colors.dark[6]:e.colors.gray[0],transition:"opacity 150ms ease",opacity:r?1:0,display:o?"none":void 0}})));var Qy=Object.defineProperty,Xy=Object.defineProperties,Ky=Object.getOwnPropertyDescriptors,Zy=Object.getOwnPropertySymbols,Jy=Object.prototype.hasOwnProperty,eb=Object.prototype.propertyIsEnumerable,tb=(e,t,n)=>t in e?Qy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nb=(e,t)=>{for(var n in t||(t={}))Jy.call(t,n)&&tb(e,n,t[n]);if(Zy)for(var n of Zy(t))eb.call(t,n)&&tb(e,n,t[n]);return e},rb=(e,t)=>Xy(e,Ky(t)),ob=(e,t)=>{var n={};for(var r in e)Jy.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Zy)for(var r of Zy(e))t.indexOf(r)<0&&eb.call(e,r)&&(n[r]=e[r]);return n};const ab={scrollbarSize:12,scrollHideDelay:1e3,type:"hover",offsetScrollbars:!1},ib=(0,St.forwardRef)(((e,t)=>{const n=Io("ScrollArea",ab,e),{children:r,className:o,classNames:a,styles:i,scrollbarSize:l,scrollHideDelay:s,type:u,dir:c,offsetScrollbars:f,viewportRef:d,onScrollPositionChange:p,unstyled:g,variant:h,viewportProps:m}=n,y=ob(n,["children","className","classNames","styles","scrollbarSize","scrollHideDelay","type","dir","offsetScrollbars","viewportRef","onScrollPositionChange","unstyled","variant","viewportProps"]),[b,v]=(0,St.useState)(!1),w=jo(),{classes:k,cx:x}=Yy({scrollbarSize:l,offsetScrollbars:f,scrollbarHovered:b,hidden:"never"===u},{name:"ScrollArea",classNames:a,styles:i,unstyled:g,variant:h});return St.createElement(Hy,{type:"never"===u?"always":u,scrollHideDelay:s,dir:c||w.dir,ref:t,asChild:!0},St.createElement(ti,nb({className:x(k.root,o)},y),St.createElement(Uy,rb(nb({},m),{className:k.viewport,ref:d,onScroll:"function"==typeof p?({currentTarget:e})=>p({x:e.scrollLeft,y:e.scrollTop}):void 0}),r),St.createElement(Wy,{orientation:"horizontal",className:k.scrollbar,forceMount:!0,onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1)},St.createElement(Vy,{className:k.thumb})),St.createElement(Wy,{orientation:"vertical",className:k.scrollbar,forceMount:!0,onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1)},St.createElement(Vy,{className:k.thumb})),St.createElement(qy,{className:k.corner})))})),lb=(0,St.forwardRef)(((e,t)=>{const n=Io("ScrollAreaAutosize",ab,e),{children:r,classNames:o,styles:a,scrollbarSize:i,scrollHideDelay:l,type:s,dir:u,offsetScrollbars:c,viewportRef:f,onScrollPositionChange:d,unstyled:p,sx:g,variant:h,viewportProps:m}=n,y=ob(n,["children","classNames","styles","scrollbarSize","scrollHideDelay","type","dir","offsetScrollbars","viewportRef","onScrollPositionChange","unstyled","sx","variant","viewportProps"]);return St.createElement(ti,rb(nb({},y),{ref:t,sx:[{display:"flex"},...Gy(g)]}),St.createElement(ti,{sx:{display:"flex",flexDirection:"column",flex:1}},St.createElement(ib,{classNames:o,styles:a,scrollHideDelay:l,scrollbarSize:i,type:s,dir:u,offsetScrollbars:c,viewportRef:f,onScrollPositionChange:d,unstyled:p,variant:h,viewportProps:m},r)))}));lb.displayName="@mantine/core/ScrollAreaAutosize",ib.displayName="@mantine/core/ScrollArea",ib.Autosize=lb;const sb=ib;function ub(e){return!Array.isArray(e)&&null!==e&&"object"==typeof e&&e.type!==St.Fragment}function cb(...e){return(0,St.useCallback)(function(...e){return t=>{e.forEach((e=>function(e,t){"function"==typeof e?e(t):"object"==typeof e&&null!==e&&"current"in e&&(e.current=t)}(e,t)))}}(...e),e)}const fb={app:100,modal:200,popover:300,overlay:400,max:9999};function db(e){return fb[e]}function pb(){return"undefined"!=typeof window}function gb(e){return yb(e)?(e.nodeName||"").toLowerCase():"#document"}function hb(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function mb(e){var t;return null==(t=(yb(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function yb(e){return!!pb()&&(e instanceof Node||e instanceof hb(e).Node)}function bb(e){return!!pb()&&(e instanceof Element||e instanceof hb(e).Element)}function vb(e){return!!pb()&&(e instanceof HTMLElement||e instanceof hb(e).HTMLElement)}function wb(e){return!(!pb()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof hb(e).ShadowRoot)}function kb(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Cb(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function xb(e){return["table","td","th"].includes(gb(e))}function Eb(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Sb(e){const t=Fb(),n=bb(e)?Cb(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Fb(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ab(e){return["html","body","#document"].includes(gb(e))}function Cb(e){return hb(e).getComputedStyle(e)}function Ob(e){return bb(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Pb(e){if("html"===gb(e))return e;const t=e.assignedSlot||e.parentNode||wb(e)&&e.host||mb(e);return wb(t)?t.host:t}function Tb(e){const t=Pb(e);return Ab(t)?e.ownerDocument?e.ownerDocument.body:e.body:vb(t)&&kb(t)?t:Tb(t)}function Db(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Tb(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=hb(o);if(a){const e=Rb(i);return t.concat(i,i.visualViewport||[],kb(o)?o:[],e&&n?Db(e):[])}return t.concat(o,Db(o,[],n))}function Rb(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Nb=Math.min,Lb=Math.max,_b=Math.round,jb=Math.floor,zb=e=>({x:e,y:e}),Ib={left:"right",right:"left",bottom:"top",top:"bottom"},Bb={start:"end",end:"start"};function Mb(e,t,n){return Lb(e,Nb(t,n))}function $b(e,t){return"function"==typeof e?e(t):e}function Hb(e){return e.split("-")[0]}function Ub(e){return e.split("-")[1]}function Wb(e){return"x"===e?"y":"x"}function Vb(e){return"y"===e?"height":"width"}function qb(e){return["top","bottom"].includes(Hb(e))?"y":"x"}function Gb(e){return Wb(qb(e))}function Yb(e){return e.replace(/start|end/g,(e=>Bb[e]))}function Qb(e){return e.replace(/left|right|bottom|top/g,(e=>Ib[e]))}function Xb(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Kb(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Zb(e,t,n){let{reference:r,floating:o}=e;const a=qb(t),i=Gb(t),l=Vb(i),s=Hb(t),u="y"===a,c=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=r[l]/2-o[l]/2;let p;switch(s){case"top":p={x:c,y:r.y-o.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-o.width,y:f};break;default:p={x:r.x,y:r.y}}switch(Ub(t)){case"start":p[i]-=d*(n&&u?-1:1);break;case"end":p[i]+=d*(n&&u?-1:1)}return p}async function Jb(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:l,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=$b(t,e),g=Xb(p),h=l[d?"floating"===f?"reference":"floating":f],m=Kb(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(h)))||n?h:h.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:s})),y="floating"===f?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,b=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating)),v=await(null==a.isElement?void 0:a.isElement(b))&&await(null==a.getScale?void 0:a.getScale(b))||{x:1,y:1},w=Kb(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:b,strategy:s}):y);return{top:(m.top-w.top+g.top)/v.y,bottom:(w.bottom-m.bottom+g.bottom)/v.y,left:(m.left-w.left+g.left)/v.x,right:(w.right-m.right+g.right)/v.x}}function ev(e){const t=Nb(...e.map((e=>e.left))),n=Nb(...e.map((e=>e.top)));return{x:t,y:n,width:Lb(...e.map((e=>e.right)))-t,height:Lb(...e.map((e=>e.bottom)))-n}}function tv(e){const t=Cb(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=vb(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=_b(n)!==a||_b(r)!==i;return l&&(n=a,r=i),{width:n,height:r,$:l}}function nv(e){return bb(e)?e:e.contextElement}function rv(e){const t=nv(e);if(!vb(t))return zb(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=tv(t);let i=(a?_b(n.width):n.width)/r,l=(a?_b(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}const ov=zb(0);function av(e){const t=hb(e);return Fb()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ov}function iv(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=nv(e);let i=zb(1);t&&(r?bb(r)&&(i=rv(r)):i=rv(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==hb(e))&&t}(a,n,r)?av(a):zb(0);let s=(o.left+l.x)/i.x,u=(o.top+l.y)/i.y,c=o.width/i.x,f=o.height/i.y;if(a){const e=hb(a),t=r&&bb(r)?hb(r):r;let n=e,o=Rb(n);for(;o&&r&&t!==n;){const e=rv(o),t=o.getBoundingClientRect(),r=Cb(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,u*=e.y,c*=e.x,f*=e.y,s+=a,u+=i,n=hb(o),o=Rb(n)}}return Kb({width:c,height:f,x:s,y:u})}function lv(e,t){const n=Ob(e).scrollLeft;return t?t.left+n:iv(mb(e)).left+n}function sv(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:lv(e,r)),y:r.top+t.scrollTop}}function uv(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=hb(e),r=mb(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;const e=Fb();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l,y:s}}(e,n);else if("document"===t)r=function(e){const t=mb(e),n=Ob(e),r=e.ownerDocument.body,o=Lb(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Lb(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+lv(e);const l=-n.scrollTop;return"rtl"===Cb(r).direction&&(i+=Lb(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:l}}(mb(e));else if(bb(t))r=function(e,t){const n=iv(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=vb(e)?rv(e):zb(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{const n=av(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Kb(r)}function cv(e,t){const n=Pb(e);return!(n===t||!bb(n)||Ab(n))&&("fixed"===Cb(n).position||cv(n,t))}function fv(e,t,n){const r=vb(t),o=mb(t),a="fixed"===n,i=iv(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const s=zb(0);if(r||!r&&!a)if(("body"!==gb(t)||kb(o))&&(l=Ob(t)),r){const e=iv(t,!0,a,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=lv(o));const u=!o||r||a?zb(0):sv(o,l);return{x:i.left+l.scrollLeft-s.x-u.x,y:i.top+l.scrollTop-s.y-u.y,width:i.width,height:i.height}}function dv(e){return"static"===Cb(e).position}function pv(e,t){if(!vb(e)||"fixed"===Cb(e).position)return null;if(t)return t(e);let n=e.offsetParent;return mb(e)===n&&(n=n.ownerDocument.body),n}function gv(e,t){const n=hb(e);if(Eb(e))return n;if(!vb(e)){let t=Pb(e);for(;t&&!Ab(t);){if(bb(t)&&!dv(t))return t;t=Pb(t)}return n}let r=pv(e,t);for(;r&&xb(r)&&dv(r);)r=pv(r,t);return r&&Ab(r)&&dv(r)&&!Sb(r)?n:r||function(e){let t=Pb(e);for(;vb(t)&&!Ab(t);){if(Sb(t))return t;if(Eb(t))return null;t=Pb(t)}return null}(e)||n}const hv={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a="fixed"===o,i=mb(r),l=!!t&&Eb(t.floating);if(r===i||l&&a)return n;let s={scrollLeft:0,scrollTop:0},u=zb(1);const c=zb(0),f=vb(r);if((f||!f&&!a)&&(("body"!==gb(r)||kb(i))&&(s=Ob(r)),vb(r))){const e=iv(r);u=rv(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}const d=!i||f||a?zb(0):sv(i,s,!0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x+d.x,y:n.y*u.y-s.scrollTop*u.y+c.y+d.y}},getDocumentElement:mb,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?Eb(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Db(e,[],!1).filter((e=>bb(e)&&"body"!==gb(e))),o=null;const a="fixed"===Cb(e).position;let i=a?Pb(e):e;for(;bb(i)&&!Ab(i);){const t=Cb(i),n=Sb(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||kb(i)&&!n&&cv(e,i))?r=r.filter((e=>e!==i)):o=t,i=Pb(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=a[0],l=a.reduce(((e,n)=>{const r=uv(t,n,o);return e.top=Lb(r.top,e.top),e.right=Nb(r.right,e.right),e.bottom=Nb(r.bottom,e.bottom),e.left=Lb(r.left,e.left),e}),uv(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:gv,getElementRects:async function(e){const t=this.getOffsetParent||gv,n=this.getDimensions,r=await n(e.floating);return{reference:fv(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=tv(e);return{width:t,height:n}},getScale:rv,isElement:bb,isRTL:function(e){return"rtl"===Cb(e).direction}};function mv(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}const yv=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:l}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=Hb(n),l=Ub(n),s="y"===qb(n),u=["left","top"].includes(i)?-1:1,c=a&&s?-1:1,f=$b(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:g}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&"number"==typeof g&&(p="end"===l?-1*g:g),s?{x:p*c,y:d*u}:{x:d*u,y:p*c}}(t,e);return i===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:a+s.y,data:{...s,placement:i}}}}},bv=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=$b(e,t),u={x:n,y:r},c=await Jb(t,s),f=qb(Hb(o)),d=Wb(f);let p=u[d],g=u[f];if(a){const e="y"===d?"bottom":"right";p=Mb(p+c["y"===d?"top":"left"],p,p-c[e])}if(i){const e="y"===f?"bottom":"right";g=Mb(g+c["y"===f?"top":"left"],g,g-c[e])}const h=l.fn({...t,[d]:p,[f]:g});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[d]:a,[f]:i}}}}}},vv=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:l,platform:s,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...m}=$b(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const y=Hb(o),b=qb(l),v=Hb(l)===l,w=await(null==s.isRTL?void 0:s.isRTL(u.floating)),k=d||(v||!h?[Qb(l)]:function(e){const t=Qb(e);return[Yb(e),t,Yb(t)]}(l)),x="none"!==g;!d&&x&&k.push(...function(e,t,n,r){const o=Ub(e);let a=function(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}(Hb(e),"start"===n,r);return o&&(a=a.map((e=>e+"-"+o)),t&&(a=a.concat(a.map(Yb)))),a}(l,h,g,w));const E=[l,...k],S=await Jb(t,m),F=[];let A=(null==(r=a.flip)?void 0:r.overflows)||[];if(c&&F.push(S[y]),f){const e=function(e,t,n){void 0===n&&(n=!1);const r=Ub(e),o=Gb(e),a=Vb(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Qb(i)),[i,Qb(i)]}(o,i,w);F.push(S[e[0]],S[e[1]])}if(A=[...A,{placement:o,overflows:F}],!F.every((e=>e<=0))){var C,O;const e=((null==(C=a.flip)?void 0:C.index)||0)+1,t=E[e];if(t)return{data:{index:e,overflows:A},reset:{placement:t}};let n=null==(O=A.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:O.placement;if(!n)switch(p){case"bestFit":{var P;const e=null==(P=A.filter((e=>{if(x){const t=qb(e.placement);return t===b||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:P[0];e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}},wv=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:l,middlewareData:s}=t,{element:u,padding:c=0}=$b(e,t)||{};if(null==u)return{};const f=Xb(c),d={x:n,y:r},p=Gb(o),g=Vb(p),h=await i.getDimensions(u),m="y"===p,y=m?"top":"left",b=m?"bottom":"right",v=m?"clientHeight":"clientWidth",w=a.reference[g]+a.reference[p]-d[p]-a.floating[g],k=d[p]-a.reference[p],x=await(null==i.getOffsetParent?void 0:i.getOffsetParent(u));let E=x?x[v]:0;E&&await(null==i.isElement?void 0:i.isElement(x))||(E=l.floating[v]||a.floating[g]);const S=w/2-k/2,F=E/2-h[g]/2-1,A=Nb(f[y],F),C=Nb(f[b],F),O=A,P=E-h[g]-C,T=E/2-h[g]/2+S,D=Mb(O,T,P),R=!s.arrow&&null!=Ub(o)&&T!==D&&a.reference[g]/2-(T<O?A:C)-h[g]/2<0,N=R?T<O?T-O:T-P:0;return{[p]:d[p]+N,data:{[p]:D,centerOffset:T-D-N,...R&&{alignmentOffset:N}},reset:R}}}),kv=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:o,platform:a,strategy:i}=t,{padding:l=2,x:s,y:u}=$b(e,t),c=Array.from(await(null==a.getClientRects?void 0:a.getClientRects(r.reference))||[]),f=function(e){const t=e.slice().sort(((e,t)=>e.y-t.y)),n=[];let r=null;for(let e=0;e<t.length;e++){const o=t[e];!r||o.y-r.y>r.height/2?n.push([o]):n[n.length-1].push(o),r=o}return n.map((e=>Kb(ev(e))))}(c),d=Kb(ev(c)),p=Xb(l),g=await a.getElementRects({reference:{getBoundingClientRect:function(){if(2===f.length&&f[0].left>f[1].right&&null!=s&&null!=u)return f.find((e=>s>e.left-p.left&&s<e.right+p.right&&u>e.top-p.top&&u<e.bottom+p.bottom))||d;if(f.length>=2){if("y"===qb(n)){const e=f[0],t=f[f.length-1],r="top"===Hb(n),o=e.top,a=t.bottom,i=r?e.left:t.left,l=r?e.right:t.right;return{top:o,bottom:a,left:i,right:l,width:l-i,height:a-o,x:i,y:o}}const e="left"===Hb(n),t=Lb(...f.map((e=>e.right))),r=Nb(...f.map((e=>e.left))),o=f.filter((n=>e?n.left===r:n.right===t)),a=o[0].top,i=o[o.length-1].bottom;return{top:a,bottom:i,left:r,right:t,width:t-r,height:i-a,x:r,y:a}}return d}},floating:r.floating,strategy:i});return o.reference.x!==g.reference.x||o.reference.y!==g.reference.y||o.reference.width!==g.reference.width||o.reference.height!==g.reference.height?{reset:{rects:g}}:{}}}},xv=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:l=0,mainAxis:s=!0,crossAxis:u=!0}=$b(e,t),c={x:n,y:r},f=qb(o),d=Wb(f);let p=c[d],g=c[f];const h=$b(l,t),m="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){const e="y"===d?"height":"width",t=a.reference[d]-a.floating[e]+m.mainAxis,n=a.reference[d]+a.reference[e]-m.mainAxis;p<t?p=t:p>n&&(p=n)}if(u){var y,b;const e="y"===d?"width":"height",t=["top","left"].includes(Hb(o)),n=a.reference[f]-a.floating[e]+(t&&(null==(y=i.offset)?void 0:y[f])||0)+(t?0:m.crossAxis),r=a.reference[f]+a.reference[e]+(t?0:(null==(b=i.offset)?void 0:b[f])||0)-(t?m.crossAxis:0);g<n?g=n:g>r&&(g=r)}return{[d]:p,[f]:g}}}},Ev=(e,t,n)=>{const r=new Map,o={platform:hv,...n},a={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,l=a.filter(Boolean),s=await(null==i.isRTL?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=Zb(u,r,s),d=r,p={},g=0;for(let n=0;n<l.length;n++){const{name:a,fn:h}=l[n],{x:m,y,data:b,reset:v}=await h({x:c,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:u,platform:i,elements:{reference:e,floating:t}});c=null!=m?m:c,f=null!=y?y:f,p={...p,[a]:{...p[a],...b}},v&&g<=50&&(g++,"object"==typeof v&&(v.placement&&(d=v.placement),v.rects&&(u=!0===v.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):v.rects),({x:c,y:f}=Zb(u,d,s))),n=-1)}return{x:c,y:f,placement:d,strategy:o,middlewareData:p}})(e,t,{...o,platform:a})},Sv=e=>{const{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){return r=t,Object.prototype.hasOwnProperty.call(r,"current")?null!=t.current?wv({element:t.current,padding:n}).fn(e):{}:t?wv({element:t,padding:n}).fn(e):{};var r}}};var Fv="undefined"!=typeof document?St.useLayoutEffect:St.useEffect;function Av(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!Av(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||Av(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function Cv(e){const t=St.useRef(e);return Fv((()=>{t.current=e})),t}var Ov="undefined"!=typeof document?St.useLayoutEffect:St.useEffect;let Pv=!1,Tv=0;const Dv=()=>"floating-ui-"+Tv++,Rv=Ft["useId".toString()]||function(){const[e,t]=St.useState((()=>Pv?Dv():void 0));return Ov((()=>{null==e&&t(Dv())}),[]),St.useEffect((()=>{Pv||(Pv=!0)}),[]),e};const Nv=St.createContext(null),Lv=St.createContext(null),_v=()=>{var e;return(null==(e=St.useContext(Nv))?void 0:e.id)||null},jv=()=>St.useContext(Lv);function zv(e){return(null==e?void 0:e.ownerDocument)||document}function Iv(e){return zv(e).defaultView||window}function Bv(e){return!!e&&e instanceof Iv(e).Element}function Mv(e){return!!e&&e instanceof Iv(e).HTMLElement}function $v(e){if(0===e.mozInputSource&&e.isTrusted)return!0;const t=/Android/i;return(t.test(function(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}())||t.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}()))&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType}function Hv(e){return 0===e.width&&0===e.height||1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"!==e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail}function Uv(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Wv(e){const t=(0,St.useRef)(e);return Ov((()=>{t.current=e})),t}const Vv="data-floating-ui-safe-polygon";function qv(e,t,n){return n&&!Uv(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}const Gv=function(e,t){let{enabled:n=!0,delay:r=0,handleClose:o=null,mouseOnly:a=!1,restMs:i=0,move:l=!0}=void 0===t?{}:t;const{open:s,onOpenChange:u,dataRef:c,events:f,elements:{domReference:d,floating:p},refs:g}=e,h=jv(),m=_v(),y=Wv(o),b=Wv(r),v=St.useRef(),w=St.useRef(),k=St.useRef(),x=St.useRef(),E=St.useRef(!0),S=St.useRef(!1),F=St.useRef((()=>{})),A=St.useCallback((()=>{var e;const t=null==(e=c.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[c]);St.useEffect((()=>{if(n)return f.on("dismiss",e),()=>{f.off("dismiss",e)};function e(){clearTimeout(w.current),clearTimeout(x.current),E.current=!0}}),[n,f]),St.useEffect((()=>{if(!n||!y.current||!s)return;function e(){A()&&u(!1)}const t=zv(p).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[p,s,u,n,y,c,A]);const C=St.useCallback((function(e){void 0===e&&(e=!0);const t=qv(b.current,"close",v.current);t&&!k.current?(clearTimeout(w.current),w.current=setTimeout((()=>u(!1)),t)):e&&(clearTimeout(w.current),u(!1))}),[b,u]),O=St.useCallback((()=>{F.current(),k.current=void 0}),[]),P=St.useCallback((()=>{if(S.current){const e=zv(g.floating.current).body;e.style.pointerEvents="",e.removeAttribute(Vv),S.current=!1}}),[g]);return St.useEffect((()=>{if(n&&Bv(d)){const e=d;return s&&e.addEventListener("mouseleave",f),null==p||p.addEventListener("mouseleave",f),l&&e.addEventListener("mousemove",r,{once:!0}),e.addEventListener("mouseenter",r),e.addEventListener("mouseleave",o),()=>{s&&e.removeEventListener("mouseleave",f),null==p||p.removeEventListener("mouseleave",f),l&&e.removeEventListener("mousemove",r),e.removeEventListener("mouseenter",r),e.removeEventListener("mouseleave",o)}}function t(){return!!c.current.openEvent&&["click","mousedown"].includes(c.current.openEvent.type)}function r(e){if(clearTimeout(w.current),E.current=!1,a&&!Uv(v.current)||i>0&&0===qv(b.current,"open"))return;c.current.openEvent=e;const t=qv(b.current,"open",v.current);t?w.current=setTimeout((()=>{u(!0)}),t):u(!0)}function o(n){if(t())return;F.current();const r=zv(p);if(clearTimeout(x.current),y.current){s||clearTimeout(w.current),k.current=y.current({...e,tree:h,x:n.clientX,y:n.clientY,onClose(){P(),O(),C()}});const t=k.current;return r.addEventListener("mousemove",t),void(F.current=()=>{r.removeEventListener("mousemove",t)})}C()}function f(n){t()||null==y.current||y.current({...e,tree:h,x:n.clientX,y:n.clientY,onClose(){P(),O(),C()}})(n)}}),[d,p,n,e,a,i,l,C,O,P,u,s,h,b,y,c]),Ov((()=>{var e;if(n&&s&&null!=(e=y.current)&&e.__options.blockPointerEvents&&A()){const e=zv(p).body;if(e.setAttribute(Vv,""),e.style.pointerEvents="none",S.current=!0,Bv(d)&&p){var t,r;const e=d,n=null==h||null==(t=h.nodesRef.current.find((e=>e.id===m)))||null==(r=t.context)?void 0:r.elements.floating;return n&&(n.style.pointerEvents=""),e.style.pointerEvents="auto",p.style.pointerEvents="auto",()=>{e.style.pointerEvents="",p.style.pointerEvents=""}}}}),[n,s,m,p,d,h,y,c,A]),Ov((()=>{s||(v.current=void 0,O(),P())}),[s,O,P]),St.useEffect((()=>()=>{O(),clearTimeout(w.current),clearTimeout(x.current),P()}),[n,O,P]),St.useMemo((()=>{if(!n)return{};function e(e){v.current=e.pointerType}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove(){s||0===i||(clearTimeout(x.current),x.current=setTimeout((()=>{E.current||u(!0)}),i))}},floating:{onMouseEnter(){clearTimeout(w.current)},onMouseLeave(){f.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),C(!1)}}}}),[f,n,i,s,u,C])},Yv=St.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),Qv=()=>St.useContext(Yv),Xv=e=>{let{children:t,delay:n,timeoutMs:r=0}=e;const[o,a]=St.useReducer(((e,t)=>({...e,...t})),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),i=St.useRef(null),l=St.useCallback((e=>{a({currentId:e})}),[]);return Ov((()=>{o.currentId?null===i.current?i.current=o.currentId:a({isInstantPhase:!0}):(a({isInstantPhase:!1}),i.current=null)}),[o.currentId]),St.createElement(Yv.Provider,{value:St.useMemo((()=>({...o,setState:a,setCurrentId:l})),[o,a,l])},t)},Kv=(e,t)=>{let{open:n,onOpenChange:r}=e,{id:o}=t;const{currentId:a,setCurrentId:i,initialDelay:l,setState:s,timeoutMs:u}=Qv();St.useEffect((()=>{a&&(s({delay:{open:1,close:qv(l,"close")}}),a!==o&&r(!1))}),[o,r,s,a,l]),St.useEffect((()=>{function e(){r(!1),s({delay:l,currentId:null})}if(!n&&a===o){if(u){const t=window.setTimeout(e,u);return()=>{clearTimeout(t)}}e()}}),[n,s,a,o,r,l,u]),St.useEffect((()=>{n&&i(o)}),[n,i,o])};function Zv(e,t){if(!e||!t)return!1;const n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&function(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Iv(e).ShadowRoot||e instanceof ShadowRoot)}(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}function Jv(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)}))||[],r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))}))||[],n=n.concat(r);return n}const ew=Ft["useInsertionEffect".toString()]||(e=>e());function tw(e){const t=St.useRef((()=>{}));return ew((()=>{t.current=e})),St.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}function nw(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}const rw={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},ow={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},aw=function(e,t){let{open:n,onOpenChange:r,events:o,nodeId:a,elements:{reference:i,domReference:l,floating:s},dataRef:u}=e,{enabled:c=!0,escapeKey:f=!0,outsidePress:d=!0,outsidePressEvent:p="pointerdown",referencePress:g=!1,referencePressEvent:h="pointerdown",ancestorScroll:m=!1,bubbles:y=!0}=void 0===t?{}:t;const b=jv(),v=null!=_v(),w=tw("function"==typeof d?d:()=>!1),k="function"==typeof d?w:d,x=St.useRef(!1),{escapeKeyBubbles:E,outsidePressBubbles:S}=function(e){var t,n;return void 0===e&&(e=!0),{escapeKeyBubbles:"boolean"==typeof e?e:null==(t=e.escapeKey)||t,outsidePressBubbles:"boolean"==typeof e?e:null==(n=e.outsidePress)||n}}(y);return St.useEffect((()=>{if(!n||!c)return;function e(e){if("Escape"===e.key){const e=b?Jv(b.nodesRef.current,a):[];if(e.length>0){let t=!0;if(e.forEach((e=>{var n;null==(n=e.context)||!n.open||e.context.dataRef.current.__escapeKeyBubbles||(t=!1)})),!t)return}o.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),r(!1)}}function t(e){const t=x.current;if(x.current=!1,t)return;if("function"==typeof k&&!k(e))return;const n=function(e){return"composedPath"in e?e.composedPath()[0]:e.target}(e);if(Mv(n)&&s){const t=s.ownerDocument.defaultView||window,r=n.scrollWidth>n.clientWidth,o=n.scrollHeight>n.clientHeight;let a=o&&e.offsetX>n.clientWidth;if(o&&"rtl"===t.getComputedStyle(n).direction&&(a=e.offsetX<=n.offsetWidth-n.clientWidth),a||r&&e.offsetY>n.clientHeight)return}const i=b&&Jv(b.nodesRef.current,a).some((t=>{var n;return nw(e,null==(n=t.context)?void 0:n.elements.floating)}));if(nw(e,s)||nw(e,l)||i)return;const u=b?Jv(b.nodesRef.current,a):[];if(u.length>0){let e=!0;if(u.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}o.emit("dismiss",{type:"outsidePress",data:{returnFocus:v?{preventScroll:!0}:$v(e)||Hv(e)}}),r(!1)}function d(){r(!1)}u.current.__escapeKeyBubbles=E,u.current.__outsidePressBubbles=S;const g=zv(s);f&&g.addEventListener("keydown",e),k&&g.addEventListener(p,t);let h=[];return m&&(Bv(l)&&(h=Db(l)),Bv(s)&&(h=h.concat(Db(s))),!Bv(i)&&i&&i.contextElement&&(h=h.concat(Db(i.contextElement)))),h=h.filter((e=>{var t;return e!==(null==(t=g.defaultView)?void 0:t.visualViewport)})),h.forEach((e=>{e.addEventListener("scroll",d,{passive:!0})})),()=>{f&&g.removeEventListener("keydown",e),k&&g.removeEventListener(p,t),h.forEach((e=>{e.removeEventListener("scroll",d)}))}}),[u,s,l,i,f,k,p,o,b,a,n,r,m,c,E,S,v]),St.useEffect((()=>{x.current=!1}),[k,p]),St.useMemo((()=>c?{reference:{[rw[h]]:()=>{g&&(o.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),r(!1))}},floating:{[ow[p]]:()=>{x.current=!0}}}:{}),[c,o,g,p,h,r])},iw=function(e,t){let{open:n,onOpenChange:r,dataRef:o,events:a,refs:i,elements:{floating:l,domReference:s}}=e,{enabled:u=!0,keyboardOnly:c=!0}=void 0===t?{}:t;const f=St.useRef(""),d=St.useRef(!1),p=St.useRef();return St.useEffect((()=>{if(!u)return;const e=zv(l).defaultView||window;function t(){!n&&Mv(s)&&s===function(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(r=n.shadowRoot)?void 0:r.activeElement);){var n,r;t=t.shadowRoot.activeElement}return t}(zv(s))&&(d.current=!0)}return e.addEventListener("blur",t),()=>{e.removeEventListener("blur",t)}}),[l,s,n,u]),St.useEffect((()=>{if(u)return a.on("dismiss",e),()=>{a.off("dismiss",e)};function e(e){"referencePress"!==e.type&&"escapeKey"!==e.type||(d.current=!0)}}),[a,u]),St.useEffect((()=>()=>{clearTimeout(p.current)}),[]),St.useMemo((()=>u?{reference:{onPointerDown(e){let{pointerType:t}=e;f.current=t,d.current=!(!t||!c)},onMouseLeave(){d.current=!1},onFocus(e){var t;d.current||"focus"===e.type&&"mousedown"===(null==(t=o.current.openEvent)?void 0:t.type)&&o.current.openEvent&&nw(o.current.openEvent,s)||(o.current.openEvent=e.nativeEvent,r(!0))},onBlur(e){d.current=!1;const t=e.relatedTarget,n=Bv(t)&&t.hasAttribute("data-floating-ui-focus-guard")&&"outside"===t.getAttribute("data-type");p.current=setTimeout((()=>{Zv(i.floating.current,t)||Zv(s,t)||n||r(!1)}))}}}:{}),[u,c,s,i,o,r])},lw=function(e,t){let{open:n}=e,{enabled:r=!0,role:o="dialog"}=void 0===t?{}:t;const a=Rv(),i=Rv();return St.useMemo((()=>{const e={id:a,role:o};return r?"tooltip"===o?{reference:{"aria-describedby":n?a:void 0},floating:e}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":"alertdialog"===o?"dialog":o,"aria-controls":n?a:void 0,..."listbox"===o&&{role:"combobox"},..."menu"===o&&{id:i}},floating:{...e,..."menu"===o&&{"aria-labelledby":i}}}:{}}),[r,o,n,a,i])};function sw(e){void 0===e&&(e={});const{open:t=!1,onOpenChange:n,nodeId:r}=e,o=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,whileElementsMounted:a,open:i}=e,[l,s]=St.useState({x:null,y:null,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[u,c]=St.useState(r);Av(u,r)||c(r);const f=St.useRef(null),d=St.useRef(null),p=St.useRef(l),g=Cv(a),h=Cv(o),[m,y]=St.useState(null),[b,v]=St.useState(null),w=St.useCallback((e=>{f.current!==e&&(f.current=e,y(e))}),[]),k=St.useCallback((e=>{d.current!==e&&(d.current=e,v(e))}),[]),x=St.useCallback((()=>{if(!f.current||!d.current)return;const e={placement:t,strategy:n,middleware:u};h.current&&(e.platform=h.current),Ev(f.current,d.current,e).then((e=>{const t={...e,isPositioned:!0};E.current&&!Av(p.current,t)&&(p.current=t,Gm.flushSync((()=>{s(t)})))}))}),[u,t,n,h]);Fv((()=>{!1===i&&p.current.isPositioned&&(p.current.isPositioned=!1,s((e=>({...e,isPositioned:!1}))))}),[i]);const E=St.useRef(!1);Fv((()=>(E.current=!0,()=>{E.current=!1})),[]),Fv((()=>{if(m&&b){if(g.current)return g.current(m,b,x);x()}}),[m,b,x,g]);const S=St.useMemo((()=>({reference:f,floating:d,setReference:w,setFloating:k})),[w,k]),F=St.useMemo((()=>({reference:m,floating:b})),[m,b]);return St.useMemo((()=>({...l,update:x,refs:S,elements:F,reference:w,floating:k})),[l,x,S,F,w,k])}(e),a=jv(),i=St.useRef(null),l=St.useRef({}),s=St.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){e.set(t,(e.get(t)||[]).filter((e=>e!==n)))}}}()))[0],[u,c]=St.useState(null),f=St.useCallback((e=>{const t=Bv(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;o.refs.setReference(t)}),[o.refs]),d=St.useCallback((e=>{(Bv(e)||null===e)&&(i.current=e,c(e)),(Bv(o.refs.reference.current)||null===o.refs.reference.current||null!==e&&!Bv(e))&&o.refs.setReference(e)}),[o.refs]),p=St.useMemo((()=>({...o.refs,setReference:d,setPositionReference:f,domReference:i})),[o.refs,d,f]),g=St.useMemo((()=>({...o.elements,domReference:u})),[o.elements,u]),h=tw(n),m=St.useMemo((()=>({...o,refs:p,elements:g,dataRef:l,nodeId:r,events:s,open:t,onOpenChange:h})),[o,r,s,t,h,p,g]);return Ov((()=>{const e=null==a?void 0:a.nodesRef.current.find((e=>e.id===r));e&&(e.context=m)})),St.useMemo((()=>({...o,context:m,refs:p,reference:d,positionReference:f})),[o,p,m,d,f])}function uw(e,t,n){const r=new Map;return{..."floating"===n&&{tabIndex:-1},...e,...t.map((e=>e?e[n]:null)).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,o]=t;var a;0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof o&&(null==(a=r.get(n))||a.push(o),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];null==(e=r.get(n))||e.forEach((e=>e(...o)))})):e[n]=o})),e):e),{})}}const cw=(0,St.createContext)(!1),fw=cw.Provider;function dw({children:e,openDelay:t=0,closeDelay:n=0}){return St.createElement(fw,{value:!0},St.createElement(Xv,{delay:{open:t,close:n}},e))}dw.displayName="@mantine/core/TooltipGroup";var pw=Object.defineProperty,gw=Object.defineProperties,hw=Object.getOwnPropertyDescriptors,mw=Object.getOwnPropertySymbols,yw=Object.prototype.hasOwnProperty,bw=Object.prototype.propertyIsEnumerable,vw=(e,t,n)=>t in e?pw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ww=(e,t)=>{for(var n in t||(t={}))yw.call(t,n)&&vw(e,n,t[n]);if(mw)for(var n of mw(t))bw.call(t,n)&&vw(e,n,t[n]);return e},kw=(e,t)=>gw(e,hw(t));function xw(e,t){if(!t)return{backgroundColor:"dark"===e.colorScheme?e.colors.gray[2]:e.colors.gray[9],color:"dark"===e.colorScheme?e.black:e.white};const n=e.fn.variant({variant:"filled",color:t,primaryFallback:!1});return{backgroundColor:n.background,color:n.color}}const Ew=ia(((e,{color:t,radius:n,width:r,multiline:o})=>({tooltip:kw(ww(ww({},e.fn.fontStyles()),xw(e,t)),{lineHeight:e.lineHeight,fontSize:e.fontSizes.sm,borderRadius:e.fn.radius(n),padding:`calc(${e.spacing.xs} / 2) ${e.spacing.xs}`,position:"absolute",whiteSpace:o?"unset":"nowrap",pointerEvents:"none",width:r}),arrow:{backgroundColor:"inherit",border:0,zIndex:1}}))),Sw="Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported";var Fw=Object.defineProperty,Aw=Object.defineProperties,Cw=Object.getOwnPropertyDescriptors,Ow=Object.getOwnPropertySymbols,Pw=Object.prototype.hasOwnProperty,Tw=Object.prototype.propertyIsEnumerable,Dw=(e,t,n)=>t in e?Fw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function Rw(e){const t=Io("Portal",{},e),{children:n,target:r,className:o,innerRef:a}=t,i=((e,t)=>{var n={};for(var r in e)Pw.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Ow)for(var r of Ow(e))t.indexOf(r)<0&&Tw.call(e,r)&&(n[r]=e[r]);return n})(t,["children","target","className","innerRef"]),l=jo(),[s,u]=(0,St.useState)(!1),c=(0,St.useRef)();return cl((()=>(u(!0),c.current=r?"string"==typeof r?document.querySelector(r):r:document.createElement("div"),r||document.body.appendChild(c.current),()=>{!r&&document.body.removeChild(c.current)})),[r]),s?(0,Gm.createPortal)(St.createElement("div",((e,t)=>Aw(e,Cw(t)))(((e,t)=>{for(var n in t||(t={}))Pw.call(t,n)&&Dw(e,n,t[n]);if(Ow)for(var n of Ow(t))Tw.call(t,n)&&Dw(e,n,t[n]);return e})({className:o,dir:l.dir},i),{ref:a}),n),c.current):null}Rw.displayName="@mantine/core/Portal";var Nw=Object.defineProperty,Lw=Object.getOwnPropertySymbols,_w=Object.prototype.hasOwnProperty,jw=Object.prototype.propertyIsEnumerable,zw=(e,t,n)=>t in e?Nw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function Iw(e){var t=e,{withinPortal:n=!0,children:r}=t,o=((e,t)=>{var n={};for(var r in e)_w.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Lw)for(var r of Lw(e))t.indexOf(r)<0&&jw.call(e,r)&&(n[r]=e[r]);return n})(t,["withinPortal","children"]);return n?St.createElement(Rw,((e,t)=>{for(var n in t||(t={}))_w.call(t,n)&&zw(e,n,t[n]);if(Lw)for(var n of Lw(t))jw.call(t,n)&&zw(e,n,t[n]);return e})({},o),r):St.createElement(St.Fragment,null,r)}Iw.displayName="@mantine/core/OptionalPortal";var Bw=Object.defineProperty,Mw=Object.defineProperties,$w=Object.getOwnPropertyDescriptors,Hw=Object.getOwnPropertySymbols,Uw=Object.prototype.hasOwnProperty,Ww=Object.prototype.propertyIsEnumerable,Vw=(e,t,n)=>t in e?Bw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,qw=(e,t)=>{for(var n in t||(t={}))Uw.call(t,n)&&Vw(e,n,t[n]);if(Hw)for(var n of Hw(t))Ww.call(t,n)&&Vw(e,n,t[n]);return e},Gw=(e,t)=>Mw(e,$w(t));const Yw={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:db("popover")};function Qw(e){var t;const n=Io("TooltipFloating",Yw,e),{children:r,refProp:o,withinPortal:a,portalProps:i,style:l,className:s,classNames:u,styles:c,unstyled:f,radius:d,color:p,label:g,offset:h,position:m,multiline:y,width:b,zIndex:v,disabled:w,variant:k}=n,x=((e,t)=>{var n={};for(var r in e)Uw.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Hw)for(var r of Hw(e))t.indexOf(r)<0&&Ww.call(e,r)&&(n[r]=e[r]);return n})(n,["children","refProp","withinPortal","portalProps","style","className","classNames","styles","unstyled","radius","color","label","offset","position","multiline","width","zIndex","disabled","variant"]),{handleMouseMove:E,x:S,y:F,opened:A,boundaryRef:C,floating:O,setOpened:P}=function({offset:e,position:t}){const[n,r]=(0,St.useState)(!1),o=(0,St.useRef)(),{x:a,y:i,reference:l,floating:s,refs:u,update:c,placement:f}=sw({placement:t,middleware:[bv({crossAxis:!0,padding:5,rootBoundary:"document"})]}),d=f.includes("right")?e:t.includes("left")?-1*e:0,p=f.includes("bottom")?e:t.includes("top")?-1*e:0,g=(0,St.useCallback)((({clientX:e,clientY:t})=>{l({getBoundingClientRect:()=>({width:0,height:0,x:e,y:t,left:e+d,top:t+p,right:e,bottom:t})})}),[l]);return(0,St.useEffect)((()=>{if(u.floating.current){const e=o.current;e.addEventListener("mousemove",g);const t=Db(u.floating.current);return t.forEach((e=>{e.addEventListener("scroll",c)})),()=>{e.removeEventListener("mousemove",g),t.forEach((e=>{e.removeEventListener("scroll",c)}))}}}),[l,u.floating.current,c,g,n]),{handleMouseMove:g,x:a,y:i,opened:n,setOpened:r,boundaryRef:o,floating:s}}({offset:h,position:m}),{classes:T,cx:D}=Ew({radius:d,color:p,multiline:y,width:b},{name:"TooltipFloating",classNames:u,styles:c,unstyled:f,variant:k});if(!ub(r))throw new Error(Sw);const R=cb(C,r.ref);return St.createElement(St.Fragment,null,St.createElement(Iw,Gw(qw({},i),{withinPortal:a}),St.createElement(ti,Gw(qw({},x),{ref:O,className:D(T.tooltip,s),style:Gw(qw({},l),{zIndex:v,display:!w&&A?"block":"none",top:null!=F?F:"",left:null!=(t=Math.round(S))?t:""})}),g)),(0,St.cloneElement)(r,Gw(qw({},r.props),{[o]:R,onMouseEnter:e=>{var t,n;null==(n=(t=r.props).onMouseEnter)||n.call(t,e),E(e),P(!0)},onMouseLeave:e=>{var t,n;null==(n=(t=r.props).onMouseLeave)||n.call(t,e),P(!1)}})))}function Xw(e,t){const n=(0,St.useRef)(!1);(0,St.useEffect)((()=>()=>{n.current=!1}),[]),(0,St.useEffect)((()=>{if(n.current)return e();n.current=!0}),t)}function Kw({opened:e,floating:t,position:n,positionDependencies:r}){const[o,a]=(0,St.useState)(0);(0,St.useEffect)((()=>{if(t.refs.reference.current&&t.refs.floating.current)return function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,u=nv(e),c=o||a?[...u?Db(u):[],...Db(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const f=u&&l?function(e,t){let n,r=null;const o=mb(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),a();const u=e.getBoundingClientRect(),{left:c,top:f,width:d,height:p}=u;if(l||t(),!d||!p)return;const g={rootMargin:-jb(f)+"px "+-jb(o.clientWidth-(c+d))+"px "+-jb(o.clientHeight-(f+p))+"px "+-jb(c)+"px",threshold:Lb(0,Nb(1,s))||1};let h=!0;function m(t){const r=t[0].intersectionRatio;if(r!==s){if(!h)return i();r?i(!1,r):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}1!==r||mv(u,e.getBoundingClientRect())||i(),h=!1}try{r=new IntersectionObserver(m,{...g,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,g)}r.observe(e)}(!0),a}(u,n):null;let d,p=-1,g=null;i&&(g=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=g)||e.observe(t)}))),n()})),u&&!s&&g.observe(u),g.observe(t));let h=s?iv(e):null;return s&&function t(){const r=iv(e);h&&!mv(h,r)&&n(),h=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==f||f(),null==(e=g)||e.disconnect(),g=null,s&&cancelAnimationFrame(d)}}(t.refs.reference.current,t.refs.floating.current,t.update)}),[t.refs.reference.current,t.refs.floating.current,e,o,n]),Xw((()=>{t.update()}),r),Xw((()=>{a((e=>e+1))}),[e])}function Zw(e,t){if("rtl"===e&&(t.includes("right")||t.includes("left"))){const[e,n]=t.split("-"),r="right"===e?"left":"right";return void 0===n?r:`${r}-${n}`}return t}Qw.displayName="@mantine/core/TooltipFloating";var Jw=Object.defineProperty,ek=Object.defineProperties,tk=Object.getOwnPropertyDescriptors,nk=Object.getOwnPropertySymbols,rk=Object.prototype.hasOwnProperty,ok=Object.prototype.propertyIsEnumerable,ak=(e,t,n)=>t in e?Jw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ik=(e,t)=>{for(var n in t||(t={}))rk.call(t,n)&&ak(e,n,t[n]);if(nk)for(var n of nk(t))ok.call(t,n)&&ak(e,n,t[n]);return e},lk=(e,t)=>ek(e,tk(t));const sk={in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${Hr(10)})`},transitionProperty:"transform, opacity"},uk={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:`translateY(-${Hr(20)}) skew(-10deg, -5deg)`},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:`translateY(${Hr(20)}) skew(-10deg, -5deg)`},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:`translateY(${Hr(20)}) rotate(-5deg)`},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:`translateY(${Hr(20)}) rotate(5deg)`},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:lk(ik({},sk),{common:{transformOrigin:"center center"}}),"pop-bottom-left":lk(ik({},sk),{common:{transformOrigin:"bottom left"}}),"pop-bottom-right":lk(ik({},sk),{common:{transformOrigin:"bottom right"}}),"pop-top-left":lk(ik({},sk),{common:{transformOrigin:"top left"}}),"pop-top-right":lk(ik({},sk),{common:{transformOrigin:"top right"}})};var ck=Object.defineProperty,fk=Object.getOwnPropertySymbols,dk=Object.prototype.hasOwnProperty,pk=Object.prototype.propertyIsEnumerable,gk=(e,t,n)=>t in e?ck(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hk=(e,t)=>{for(var n in t||(t={}))dk.call(t,n)&&gk(e,n,t[n]);if(fk)for(var n of fk(t))pk.call(t,n)&&gk(e,n,t[n]);return e};const mk={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function yk({duration:e,exitDuration:t,timingFunction:n,mounted:r,onEnter:o,onExit:a,onEntered:i,onExited:l}){const s=jo(),u=function(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[r,o]=(0,St.useState)(n?t:function(e,t){return"boolean"==typeof t?t:"undefined"!=typeof window&&"matchMedia"in window&&window.matchMedia(e).matches}(e,t)),a=(0,St.useRef)();return(0,St.useEffect)((()=>{if("matchMedia"in window)return a.current=window.matchMedia(e),o(a.current.matches),function(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch(n){return e.addListener(t),()=>e.removeListener(t)}}(a.current,(e=>o(e.matches)))}),[e]),r}("(prefers-reduced-motion: reduce)",undefined,undefined);const c=!!s.respectReducedMotion&&u,[f,d]=(0,St.useState)(c?0:e),[p,g]=(0,St.useState)(r?"entered":"exited"),h=(0,St.useRef)(-1);return Xw((()=>{(n=>{const r=n?o:a,s=n?i:l;g(n?"pre-entering":"pre-exiting"),window.clearTimeout(h.current);const u=c?0:n?e:t;if(d(u),0===u)"function"==typeof r&&r(),"function"==typeof s&&s(),g(n?"entered":"exited");else{const e=window.setTimeout((()=>{"function"==typeof r&&r(),g(n?"entering":"exiting")}),10);h.current=window.setTimeout((()=>{window.clearTimeout(e),"function"==typeof s&&s(),g(n?"entered":"exited")}),u)}})(r)}),[r]),(0,St.useEffect)((()=>()=>window.clearTimeout(h.current)),[]),{transitionDuration:f,transitionStatus:p,transitionTimingFunction:n||s.transitionTimingFunction}}function bk({keepMounted:e,transition:t,duration:n=250,exitDuration:r=n,mounted:o,children:a,timingFunction:i,onExit:l,onEntered:s,onEnter:u,onExited:c}){const{transitionDuration:f,transitionStatus:d,transitionTimingFunction:p}=yk({mounted:o,exitDuration:r,duration:n,timingFunction:i,onExit:l,onEntered:s,onEnter:u,onExited:c});return 0===f?o?St.createElement(St.Fragment,null,a({})):e?a({display:"none"}):null:"exited"===d?e?a({display:"none"}):null:St.createElement(St.Fragment,null,a(function({transition:e,state:t,duration:n,timingFunction:r}){const o={transitionDuration:`${n}ms`,transitionTimingFunction:r};return"string"==typeof e?e in uk?hk(hk(hk({transitionProperty:uk[e].transitionProperty},o),uk[e].common),uk[e][mk[t]]):null:hk(hk(hk({transitionProperty:e.transitionProperty},o),e.common),e[mk[t]])}({transition:t,duration:f,state:d,timingFunction:p})))}bk.displayName="@mantine/core/Transition";var vk=Object.defineProperty,wk=Object.defineProperties,kk=Object.getOwnPropertyDescriptors,xk=Object.getOwnPropertySymbols,Ek=Object.prototype.hasOwnProperty,Sk=Object.prototype.propertyIsEnumerable,Fk=(e,t,n)=>t in e?vk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ak=(e,t)=>{for(var n in t||(t={}))Ek.call(t,n)&&Fk(e,n,t[n]);if(xk)for(var n of xk(t))Sk.call(t,n)&&Fk(e,n,t[n]);return e},Ck=(e,t)=>wk(e,kk(t));function Ok(e,t,n,r){return"center"===e||"center"===r?{top:t}:"end"===e?{bottom:n}:"start"===e?{top:n}:{}}function Pk(e,t,n,r,o){return"center"===e||"center"===r?{left:t}:"end"===e?{["ltr"===o?"right":"left"]:n}:"start"===e?{["ltr"===o?"left":"right"]:n}:{}}const Tk={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function Dk({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:o,arrowX:a,arrowY:i,dir:l}){const[s,u="center"]=e.split("-"),c={width:Hr(t),height:Hr(t),transform:"rotate(45deg)",position:"absolute",[Tk[s]]:Hr(r)},f=Hr(-t/2);return"left"===s?Ck(Ak(Ak({},c),Ok(u,i,n,o)),{right:f,borderLeftColor:"transparent",borderBottomColor:"transparent"}):"right"===s?Ck(Ak(Ak({},c),Ok(u,i,n,o)),{left:f,borderRightColor:"transparent",borderTopColor:"transparent"}):"top"===s?Ck(Ak(Ak({},c),Pk(u,a,n,o,l)),{bottom:f,borderTopColor:"transparent",borderLeftColor:"transparent"}):"bottom"===s?Ck(Ak(Ak({},c),Pk(u,a,n,o,l)),{top:f,borderBottomColor:"transparent",borderRightColor:"transparent"}):{}}var Rk=Object.defineProperty,Nk=Object.defineProperties,Lk=Object.getOwnPropertyDescriptors,_k=Object.getOwnPropertySymbols,jk=Object.prototype.hasOwnProperty,zk=Object.prototype.propertyIsEnumerable,Ik=(e,t,n)=>t in e?Rk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const Bk=(0,St.forwardRef)(((e,t)=>{var n=e,{position:r,arrowSize:o,arrowOffset:a,arrowRadius:i,arrowPosition:l,visible:s,arrowX:u,arrowY:c}=n,f=((e,t)=>{var n={};for(var r in e)jk.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&_k)for(var r of _k(e))t.indexOf(r)<0&&zk.call(e,r)&&(n[r]=e[r]);return n})(n,["position","arrowSize","arrowOffset","arrowRadius","arrowPosition","visible","arrowX","arrowY"]);const d=jo();return s?St.createElement("div",((e,t)=>Nk(e,Lk(t)))(((e,t)=>{for(var n in t||(t={}))jk.call(t,n)&&Ik(e,n,t[n]);if(_k)for(var n of _k(t))zk.call(t,n)&&Ik(e,n,t[n]);return e})({},f),{ref:t,style:Dk({position:r,arrowSize:o,arrowOffset:a,arrowRadius:i,arrowPosition:l,dir:d.dir,arrowX:u,arrowY:c})})):null}));Bk.displayName="@mantine/core/FloatingArrow";var Mk=Object.defineProperty,$k=Object.defineProperties,Hk=Object.getOwnPropertyDescriptors,Uk=Object.getOwnPropertySymbols,Wk=Object.prototype.hasOwnProperty,Vk=Object.prototype.propertyIsEnumerable,qk=(e,t,n)=>t in e?Mk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Gk=(e,t)=>{for(var n in t||(t={}))Wk.call(t,n)&&qk(e,n,t[n]);if(Uk)for(var n of Uk(t))Vk.call(t,n)&&qk(e,n,t[n]);return e},Yk=(e,t)=>$k(e,Hk(t));const Qk={position:"top",refProp:"ref",withinPortal:!1,inline:!1,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},width:"auto",events:{hover:!0,focus:!1,touch:!1},zIndex:db("popover"),positionDependencies:[]},Xk=(0,St.forwardRef)(((e,t)=>{var n;const r=(0,St.useRef)(null),o=Io("Tooltip",Qk,e),{children:a,position:i,refProp:l,label:s,openDelay:u,closeDelay:c,onPositionChange:f,opened:d,withinPortal:p,portalProps:g,radius:h,color:m,classNames:y,styles:b,unstyled:v,style:w,className:k,withArrow:x,arrowSize:E,arrowOffset:S,arrowRadius:F,arrowPosition:A,offset:C,transitionProps:O,multiline:P,width:T,events:D,zIndex:R,disabled:N,positionDependencies:L,onClick:_,onMouseEnter:j,onMouseLeave:z,inline:I,variant:B,keepMounted:M}=o,$=((e,t)=>{var n={};for(var r in e)Wk.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Uk)for(var r of Uk(e))t.indexOf(r)<0&&Vk.call(e,r)&&(n[r]=e[r]);return n})(o,["children","position","refProp","label","openDelay","closeDelay","onPositionChange","opened","withinPortal","portalProps","radius","color","classNames","styles","unstyled","style","className","withArrow","arrowSize","arrowOffset","arrowRadius","arrowPosition","offset","transitionProps","multiline","width","events","zIndex","disabled","positionDependencies","onClick","onMouseEnter","onMouseLeave","inline","variant","keepMounted"]),{classes:H,cx:U,theme:W}=Ew({radius:h,color:m,width:T,multiline:P},{name:"Tooltip",classNames:y,styles:b,unstyled:v,variant:B}),V=function(e){const[t,n]=(0,St.useState)(!1),r="boolean"==typeof e.opened?e.opened:t,o=(0,St.useContext)(cw),a=pl(),{delay:i,currentId:l,setCurrentId:s}=Qv(),u=(0,St.useCallback)((e=>{n(e),e&&s(a)}),[s,a]),{x:c,y:f,reference:d,floating:p,context:g,refs:h,update:m,placement:y,middlewareData:{arrow:{x:b,y:v}={}}}=sw({placement:e.position,open:r,onOpenChange:u,middleware:[yv(e.offset),bv({padding:8}),vv(),Sv({element:e.arrowRef,padding:e.arrowOffset}),...e.inline?[kv()]:[]]}),{getReferenceProps:w,getFloatingProps:k}=function(e){void 0===e&&(e=[]);const t=e,n=St.useCallback((t=>uw(t,e,"reference")),t),r=St.useCallback((t=>uw(t,e,"floating")),t),o=St.useCallback((t=>uw(t,e,"item")),e.map((e=>null==e?void 0:e.item)));return St.useMemo((()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:o})),[n,r,o])}([Gv(g,{enabled:e.events.hover,delay:o?i:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events.touch}),iw(g,{enabled:e.events.focus,keyboardOnly:!0}),lw(g,{role:"tooltip"}),aw(g,{enabled:void 0===typeof e.opened}),Kv(g,{id:a})]);return Kw({opened:r,position:e.position,positionDependencies:e.positionDependencies,floating:{refs:h,update:m}}),Xw((()=>{var t;null==(t=e.onPositionChange)||t.call(e,y)}),[y]),{x:c,y:f,arrowX:b,arrowY:v,reference:d,floating:p,getFloatingProps:k,getReferenceProps:w,isGroupPhase:r&&l&&l!==a,opened:r,placement:y}}({position:Zw(W.dir,i),closeDelay:c,openDelay:u,onPositionChange:f,opened:d,events:D,arrowRef:r,arrowOffset:S,offset:C+(x?E/2:0),positionDependencies:[...L,a],inline:I});if(!ub(a))throw new Error(Sw);const q=cb(V.reference,a.ref,t);return St.createElement(St.Fragment,null,St.createElement(Iw,Yk(Gk({},g),{withinPortal:p}),St.createElement(bk,Yk(Gk({keepMounted:M,mounted:!N&&V.opened},O),{transition:O.transition||"fade",duration:V.isGroupPhase?10:null!=(n=O.duration)?n:100}),(e=>{var t,n;return St.createElement(ti,Gk(Gk({},$),V.getFloatingProps({ref:V.floating,className:H.tooltip,style:Yk(Gk(Gk({},w),e),{zIndex:R,top:null!=(t=V.y)?t:0,left:null!=(n=V.x)?n:0})})),s,St.createElement(Bk,{ref:r,arrowX:V.arrowX,arrowY:V.arrowY,visible:x,position:V.placement,arrowSize:E,arrowOffset:S,arrowRadius:F,arrowPosition:A,className:H.arrow}))}))),(0,St.cloneElement)(a,V.getReferenceProps(Gk({onClick:_,onMouseEnter:j,onMouseLeave:z,onMouseMove:e.onMouseMove,onPointerDown:e.onPointerDown,onPointerEnter:e.onPointerEnter,[l]:q,className:U(k,a.props.className)},a.props))))}));Xk.Group=dw,Xk.Floating=Qw,Xk.displayName="@mantine/core/Tooltip";const Kk=Xk;var Zk=o(907),Jk=Object.defineProperty,ex=Object.defineProperties,tx=Object.getOwnPropertyDescriptors,nx=Object.getOwnPropertySymbols,rx=Object.prototype.hasOwnProperty,ox=Object.prototype.propertyIsEnumerable,ax=(e,t,n)=>t in e?Jk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ix=(e,t)=>{for(var n in t||(t={}))rx.call(t,n)&&ax(e,n,t[n]);if(nx)for(var n of nx(t))ox.call(t,n)&&ax(e,n,t[n]);return e},lx=(e,t)=>ex(e,tx(t)),sx=(e,t)=>{var n={};for(var r in e)rx.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&nx)for(var r of nx(e))t.indexOf(r)<0&&ox.call(e,r)&&(n[r]=e[r]);return n},ux=(e,t,n)=>new Promise(((r,o)=>{var a=e=>{try{l(n.next(e))}catch(e){o(e)}},i=e=>{try{l(n.throw(e))}catch(e){o(e)}},l=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,i);l((n=n.apply(e,t)).next())}));function cx(e){const t=Et.scale([Et(e).brighten(1),e,Et(e).darken(1)]).mode("lch").correctLightness(),n=[];for(let e=1;e<=10;e++)n.push(t(e/10).hex());return[n[0],n[1],n[2],n[3],n[4],e,n[6],n[7],n[8],n[9]]}var fx=class e extends Error{constructor(t){super(t),this.name="TimeoutError",Object.setPrototypeOf(this,e.prototype)}};var dx=(e=>(e.AskAi="ask_ai",e.FeedbackSubmit="feedback_submit",e.Search="search",e))(dx||{});function px({copied:e}){return(0,n.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e?(0,n.jsx)("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}):(0,n.jsx)("path",{d:"M5 2V1H10V2H5ZM4.75 0C4.33579 0 4 0.335786 4 0.75V1H3.5C2.67157 1 2 1.67157 2 2.5V12.5C2 13.3284 2.67157 14 3.5 14H11.5C12.3284 14 13 13.3284 13 12.5V2.5C13 1.67157 12.3284 1 11.5 1H11V0.75C11 0.335786 10.6642 0 10.25 0H4.75ZM11 2V2.25C11 2.66421 10.6642 3 10.25 3H4.75C4.33579 3 4 2.66421 4 2.25V2H3.5C3.22386 2 3 2.22386 3 2.5V12.5C3 12.7761 3.22386 13 3.5 13H11.5C11.7761 13 12 12.7761 12 12.5V2.5C12 2.22386 11.7761 2 11.5 2H11Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}null==Zk||Zk.env.HCAPTCHA_SITE_KEY,St.createContext(void 0);var gx=ia(((e,{colorScheme:t,native:n,maxLineSize:r,radius:o})=>({scrollArea:{},root:{position:"relative"},code:{boxSizing:"border-box",position:"relative",fontFamily:e.fontFamilyMonospace,lineHeight:1.7,fontSize:Hr(13),overflowX:n?"auto":void 0,borderRadius:e.fn.radius(o),padding:`${e.spacing.sm} 0`,marginTop:0,marginBottom:0},copy:{position:"absolute",top:e.spacing.xs,right:"ltr"===e.dir?e.spacing.xs:"unset",left:"rtl"===e.dir?e.spacing.xs:"unset",zIndex:2,"&, &:hover":{backgroundColor:"dark"===t?e.colors.dark[8]:e.colors.gray[0]}},line:{display:"flex",width:"100%",padding:`0 ${e.spacing.md}`},lineNumber:{color:"dark"===t?e.colors.dark[4]:e.colors.gray[4],textAlign:"right",width:`calc(8 * ${Hr(r)})`,marginRight:"ltr"===e.dir?e.spacing.xs:void 0,marginLeft:"rtl"===e.dir?e.spacing.xs:void 0,userSelect:"none"},lineContent:{width:"100%"}}))),hx={noCopy:!1,copyLabel:"Copy code",copiedLabel:"Copied",withLineNumbers:!1,trim:!0,highlightLines:{},scrollAreaComponent:sb,getPrismTheme:(e,t)=>"dark"===t?(e=>({plain:{color:e.colors.gray[4],backgroundColor:e.colors.dark[8]},styles:[{types:["comment"],style:{color:e.colors.gray[6]}},{types:["string","inserted","selector","atrule"],style:{color:e.colors.teal[4]}},{types:["number"],style:{color:e.colors.blue[4]}},{types:["builtin","char","constant","function"],style:{color:e.colors.orange[5]}},{types:["punctuation"],style:{color:e.colors.gray[5]}},{types:["variable"],style:{color:e.colors.gray[5]}},{types:["class-name","attr-name"],style:{color:e.colors.yellow[5]}},{types:["tag","deleted"],style:{color:e.colors.red[6]}},{types:["operator"],style:{color:e.colors.gray[5]}},{types:["boolean"],style:{color:e.colors.red[6]}},{types:["keyword"],style:{color:e.colors.indigo[3]}},{types:["doctype"],style:{color:e.colors.gray[5]}},{types:["url"],style:{color:e.colors.gray[5]}}]}))(e):(e=>({plain:{color:e.colors.gray[9],backgroundColor:e.fn.rgba(e.colors.gray[0],.65)},styles:[{types:["comment"],style:{color:e.colors.gray[6]}},{types:["string","inserted"],style:{color:e.colors.indigo[9]}},{types:["number"],style:{color:e.colors.blue[7]}},{types:["builtin","char","constant","function","selector","atrule"],style:{color:e.colors.lime[9]}},{types:["punctuation"],style:{color:e.colors.gray[7]}},{types:["variable"],style:{color:e.colors.violet[9]}},{types:["attr-name"],style:{color:e.colors.green[9]}},{types:["class-name"],style:{color:e.colors.red[9]}},{types:["tag","deleted"],style:{color:e.colors.violet[9]}},{types:["operator"],style:{color:e.colors.red[9]}},{types:["boolean"],style:{color:e.colors.red[9]}},{types:["keyword"],style:{color:e.colors.red[9]}},{types:["doctype"],style:{color:e.colors.gray[7]}},{types:["url"],style:{color:e.colors.gray[7]}}]}))(e)},mx=(0,St.forwardRef)(((e,t)=>{const r=Io("Prism",hx,e),{className:o,children:a,language:i,noCopy:l,classNames:s,styles:u,copyLabel:c,copiedLabel:f,withLineNumbers:d,highlightLines:p={},scrollAreaComponent:g,colorScheme:h,trim:m,unstyled:y,radius:b,getPrismTheme:v,variant:w}=r,k=sx(r,["className","children","language","noCopy","classNames","styles","copyLabel","copiedLabel","withLineNumbers","highlightLines","scrollAreaComponent","colorScheme","trim","unstyled","radius","getPrismTheme","variant"]),x=m&&"string"==typeof a?a.trim():a,E=x.split("\n").length.toString().length,S=jo(),F=function({timeout:e=2e3}={}){const[t,n]=(0,St.useState)(null),[r,o]=(0,St.useState)(!1),[a,i]=(0,St.useState)(null);return{copy:t=>{"clipboard"in navigator?navigator.clipboard.writeText(t).then((()=>(clearTimeout(a),i(setTimeout((()=>o(!1)),e)),void o(!0)))).catch((e=>n(e))):n(new Error("useClipboard: navigator.clipboard is not supported"))},reset:()=>{o(!1),n(null),clearTimeout(a)},error:t,copied:r}}(),A=h||S.colorScheme,{classes:C,cx:O}=gx({colorScheme:A,native:g!==sb,maxLineSize:E,radius:b},{name:"Prism",classNames:s,styles:u,unstyled:y,variant:w});return(0,n.jsxs)(ti,lx(ix({className:O(C.root,o)},k),{ref:t,translate:"no",children:[!l&&(0,n.jsx)(Kk,{label:F.copied?f:c,position:"left",withArrow:!0,arrowSize:6,offset:6,color:F.copied?"teal":void 0,unstyled:y,children:(0,n.jsx)(Ms,{className:C.copy,"aria-label":F.copied?f:c,onClick:()=>F.copy(x),unstyled:y,children:(0,n.jsx)(px,{copied:F.copied})})}),(0,n.jsx)(Hc,{theme:null==v?void 0:v(S,A),code:x,language:i,children:({className:e,style:t,tokens:r,getLineProps:o,getTokenProps:a})=>(0,n.jsx)(g,{className:C.scrollArea,dir:"ltr",children:(0,n.jsx)("pre",{className:O(C.code,e),style:t,dir:"ltr",children:r.map(((e,t)=>{var i,l,s,u;if(t===r.length-1&&1===e.length&&"\n"===e[0].content)return null;const c=t+1,f=o({line:e,key:t}),g=c in p,h="dark"===A?S.fn.rgba(S.fn.themeColor(null==(i=p[c])?void 0:i.color,9),.25):S.fn.themeColor(null==(l=p[c])?void 0:l.color,0);return(0,St.createElement)("div",lx(ix({},f),{key:t,className:O(C.line,f.className),style:ix({},g?{backgroundColor:h}:null)}),d&&(0,n.jsx)("div",{className:C.lineNumber,style:{color:g?S.fn.themeColor(null==(s=p[c])?void 0:s.color,"dark"===A?5:8):void 0},children:(null==(u=p[c])?void 0:u.label)||c}),(0,n.jsx)("div",{className:C.lineContent,children:e.map(((e,t)=>{var n,r;const o=a({token:e,key:t});return(0,St.createElement)("span",lx(ix({},o),{key:t,style:lx(ix({},o.style),{color:g?S.fn.themeColor(null==(n=p[c])?void 0:n.color,"dark"===A?5:8):null==(r=null==o?void 0:o.style)?void 0:r.color})}))}))}))})).filter(Boolean)})})})]}))}));mx.displayName="Prism",("undefined"!=typeof global?global:window).Prism=gc;var yx=e=>{var t=e,{onLinkClick:r,children:o}=t,a=sx(t,["onLinkClick","children"]);return(0,n.jsx)(Hg,lx(ix({components:{h1:e=>{var t=sx(e,[]);return(0,n.jsx)(mi,ix({order:3,style:{marginTop:"8px",marginBottom:"8px"}},t))},h2:e=>{var t=sx(e,[]);return(0,n.jsx)(mi,ix({order:4,style:{marginTop:"8px",marginBottom:"8px"}},t))},h3:e=>{var t=sx(e,[]);return(0,n.jsx)(mi,ix({order:5,style:{marginTop:"8px",marginBottom:"8px"}},t))},h4:e=>{var t=sx(e,[]);return(0,n.jsx)(mi,ix({order:6,style:{marginTop:"8px",marginBottom:"8px"}},t))},h5:e=>{var t=sx(e,[]);return(0,n.jsx)(mi,ix({order:6,style:{marginTop:"8px",marginBottom:"8px"}},t))},h6:e=>{var t=sx(e,[]);return(0,n.jsx)(mi,ix({order:6,style:{marginTop:"8px",marginBottom:"8px"}},t))},p:e=>{var t=sx(e,[]);return(0,n.jsx)(ui,lx(ix({fz:"sm"},t),{style:{marginTop:"8px",marginBottom:"8px"}}))},code:e=>{var t,r=e,{inline:o,className:a}=r,i=sx(r,["inline","className"]);const l=/language-(\w+)/.exec(a||""),s=l?l[1]:"bash",u={marginTop:"8px",marginBottom:"8px",whiteSpace:"pre"};return o?(0,n.jsx)(Li,lx(ix({},i),{style:u})):(0,n.jsx)(mx,{colorScheme:"dark",language:s,scrollAreaComponent:"div",style:u,children:"string"==typeof i.children?i.children:null==(t=i.children)?void 0:t.join("")})},pre:e=>{var t=sx(e,[]);return(0,n.jsx)(n.Fragment,{children:t.children})},ul:e=>{var t=sx(e,[]);const{children:r}=t;return(0,n.jsx)(ul,lx(ix({type:"unordered"},t),{style:{marginTop:"8px",marginBottom:"8px",color:"inherit"},fz:"sm",children:r}))},li:e=>{var t=sx(e,[]);return(0,n.jsx)(ul.Item,lx(ix({},t),{style:{marginTop:"8px",marginBottom:"8px",color:"inherit",maxWidth:"calc(100% - 20px)"},fz:"sm"}))},ol:e=>{var t=sx(e,[]);const{children:r}=t;return(0,n.jsx)(ul,lx(ix({},t),{type:"ordered",style:{marginTop:"8px",marginBottom:"8px",color:"inherit"},fz:"sm",children:r}))},blockquote:e=>{var t=sx(e,[]);return(0,n.jsx)(uu,{color:"gray",style:{marginTop:"8px",marginBottom:"8px"},children:t.children})},a:e=>{var t=sx(e,[]);return(0,n.jsx)(Au,ix({fz:"sm",fw:700,underline:!0,target:"_blank",onClick:()=>r(t.href)},t))},table:e=>{var t=sx(e,[]);return(0,n.jsx)("div",{style:{marginTop:"8px",marginBottom:"8px",overflowX:"scroll",color:"inherit"},children:(0,n.jsx)(Vu,lx(ix({},t),{fz:"sm"}))})},thead:e=>{var t=sx(e,[]);return(0,n.jsx)("thead",ix({},t))},tbody:e=>{var t=sx(e,[]);return(0,n.jsx)("tbody",ix({},t))},tr:e=>{var t=sx(e,[]);return(0,n.jsx)("tr",ix({},t))},th:e=>{var t=sx(e,[]);return(0,n.jsx)("th",lx(ix({},t),{style:{padding:"8px",border:"1px solid #ccc",textAlign:"left"}}))}},remarkPlugins:[qm]},a),{children:o}))},bx="kapa-recaptcha-script",vx=o(873);const wx=St.createContext(void 0),kx=({children:e,config:t,logger:r,props:o})=>(0,n.jsx)(wx.Provider,{value:{config:t,props:o,logger:r},children:e}),xx=()=>{const e=St.useContext(wx);if(void 0===e)throw new Error("useConfig must be used within a StylesProvider");return e},Ex="kapa-support-form-deflector-state";class Sx{constructor({logger:e,toggleDeflectionStatus:t,cacheTimeout:n}){this.logger=e,this.toggleDeflectionStatus=t,this.cacheTimeout=n}storeDeflectorState({threadId:e}){const t=JSON.stringify({timestamp:Date.now(),threadId:e});this.logger.debug("Saving data to local storage",t),localStorage.setItem(Ex,t)}shouldUseCachedDeflectorState(){const e=localStorage.getItem(Ex);if(!e)return!1;try{const t=JSON.parse(e);return t.timestamp&&t.threadId?(this.logger.debug("Found data in local storage",t),!(this.cacheTimeout<0||Date.now()-t.timestamp>this.cacheTimeout||(this.toggleDeflectionStatus(t.threadId,!1),0))):(this.logger.debug("Invalid data in local storage",t),!1)}catch(e){return console.error("Error parsing local storage data",e),!1}}}function Fx(e,t){return Array(t+1).join(e)}var Ax=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function Cx(e){return Dx(e,Ax)}var Ox=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function Px(e){return Dx(e,Ox)}var Tx=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function Dx(e,t){return t.indexOf(e.nodeName)>=0}function Rx(e,t){return e.getElementsByTagName&&t.some((function(t){return e.getElementsByTagName(t).length}))}var Nx={};function Lx(e){return e?e.replace(/(\n+\s*)+/g,"\n"):""}function _x(e){for(var t in this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[],e.rules)this.array.push(e.rules[t])}function jx(e,t,n){for(var r=0;r<e.length;r++){var o=e[r];if(zx(o,t,n))return o}}function zx(e,t,n){var r=e.filter;if("string"==typeof r){if(r===t.nodeName.toLowerCase())return!0}else if(Array.isArray(r)){if(r.indexOf(t.nodeName.toLowerCase())>-1)return!0}else{if("function"!=typeof r)throw new TypeError("`filter` needs to be a string, array, or function");if(r.call(e,t,n))return!0}}function Ix(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function Bx(e,t,n){return e&&e.parentNode===t||n(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}Nx.paragraph={filter:"p",replacement:function(e){return"\n\n"+e+"\n\n"}},Nx.lineBreak={filter:"br",replacement:function(e,t,n){return n.br+"\n"}},Nx.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(e,t,n){var r=Number(t.nodeName.charAt(1));return"setext"===n.headingStyle&&r<3?"\n\n"+e+"\n"+Fx(1===r?"=":"-",e.length)+"\n\n":"\n\n"+Fx("#",r)+" "+e+"\n\n"}},Nx.blockquote={filter:"blockquote",replacement:function(e){return"\n\n"+(e=(e=e.replace(/^\n+|\n+$/g,"")).replace(/^/gm,"> "))+"\n\n"}},Nx.list={filter:["ul","ol"],replacement:function(e,t){var n=t.parentNode;return"LI"===n.nodeName&&n.lastElementChild===t?"\n"+e:"\n\n"+e+"\n\n"}},Nx.listItem={filter:"li",replacement:function(e,t,n){e=e.replace(/^\n+/,"").replace(/\n+$/,"\n").replace(/\n/gm,"\n ");var r=n.bulletListMarker+" ",o=t.parentNode;if("OL"===o.nodeName){var a=o.getAttribute("start"),i=Array.prototype.indexOf.call(o.children,t);r=(a?Number(a)+i:i+1)+". "}return r+e+(t.nextSibling&&!/\n$/.test(e)?"\n":"")}},Nx.indentedCodeBlock={filter:function(e,t){return"indented"===t.codeBlockStyle&&"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName},replacement:function(e,t,n){return"\n\n "+t.firstChild.textContent.replace(/\n/g,"\n ")+"\n\n"}},Nx.fencedCodeBlock={filter:function(e,t){return"fenced"===t.codeBlockStyle&&"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName},replacement:function(e,t,n){for(var r,o=((t.firstChild.getAttribute("class")||"").match(/language-(\S+)/)||[null,""])[1],a=t.firstChild.textContent,i=n.fence.charAt(0),l=3,s=new RegExp("^"+i+"{3,}","gm");r=s.exec(a);)r[0].length>=l&&(l=r[0].length+1);var u=Fx(i,l);return"\n\n"+u+o+"\n"+a.replace(/\n$/,"")+"\n"+u+"\n\n"}},Nx.horizontalRule={filter:"hr",replacement:function(e,t,n){return"\n\n"+n.hr+"\n\n"}},Nx.inlineLink={filter:function(e,t){return"inlined"===t.linkStyle&&"A"===e.nodeName&&e.getAttribute("href")},replacement:function(e,t){var n=t.getAttribute("href");n&&(n=n.replace(/([()])/g,"\\$1"));var r=Lx(t.getAttribute("title"));return r&&(r=' "'+r.replace(/"/g,'\\"')+'"'),"["+e+"]("+n+r+")"}},Nx.referenceLink={filter:function(e,t){return"referenced"===t.linkStyle&&"A"===e.nodeName&&e.getAttribute("href")},replacement:function(e,t,n){var r,o,a=t.getAttribute("href"),i=Lx(t.getAttribute("title"));switch(i&&(i=' "'+i+'"'),n.linkReferenceStyle){case"collapsed":r="["+e+"][]",o="["+e+"]: "+a+i;break;case"shortcut":r="["+e+"]",o="["+e+"]: "+a+i;break;default:var l=this.references.length+1;r="["+e+"]["+l+"]",o="["+l+"]: "+a+i}return this.references.push(o),r},references:[],append:function(e){var t="";return this.references.length&&(t="\n\n"+this.references.join("\n")+"\n\n",this.references=[]),t}},Nx.emphasis={filter:["em","i"],replacement:function(e,t,n){return e.trim()?n.emDelimiter+e+n.emDelimiter:""}},Nx.strong={filter:["strong","b"],replacement:function(e,t,n){return e.trim()?n.strongDelimiter+e+n.strongDelimiter:""}},Nx.code={filter:function(e){var t=e.previousSibling||e.nextSibling,n="PRE"===e.parentNode.nodeName&&!t;return"CODE"===e.nodeName&&!n},replacement:function(e){if(!e)return"";e=e.replace(/\r?\n|\r/g," ");for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?" ":"",n="`",r=e.match(/`+/gm)||[];-1!==r.indexOf(n);)n+="`";return n+t+e+t+n}},Nx.image={filter:"img",replacement:function(e,t){var n=Lx(t.getAttribute("alt")),r=t.getAttribute("src")||"",o=Lx(t.getAttribute("title"));return r?"!["+n+"]("+r+(o?' "'+o+'"':"")+")":""}},_x.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return""}})},forNode:function(e){return e.isBlank?this.blankRule:(t=jx(this.array,e,this.options))||(t=jx(this._keep,e,this.options))||(t=jx(this._remove,e,this.options))?t:this.defaultRule;var t},forEach:function(e){for(var t=0;t<this.array.length;t++)e(this.array[t],t)}};var Mx,$x,Hx="undefined"!=typeof window?window:{},Ux=function(){var e=Hx.DOMParser,t=!1;try{(new e).parseFromString("","text/html")&&(t=!0)}catch(e){}return t}()?Hx.DOMParser:(Mx=function(){},function(){var e=!1;try{document.implementation.createHTMLDocument("").open()}catch(t){Hx.ActiveXObject&&(e=!0)}return e}()?Mx.prototype.parseFromString=function(e){var t=new window.ActiveXObject("htmlfile");return t.designMode="on",t.open(),t.write(e),t.close(),t}:Mx.prototype.parseFromString=function(e){var t=document.implementation.createHTMLDocument("");return t.open(),t.write(e),t.close(),t},Mx);function Wx(e,t){var n;return function(e){var t=e.element,n=e.isBlock,r=e.isVoid,o=e.isPre||function(e){return"PRE"===e.nodeName};if(t.firstChild&&!o(t)){for(var a=null,i=!1,l=null,s=Bx(l,t,o);s!==t;){if(3===s.nodeType||4===s.nodeType){var u=s.data.replace(/[ \r\n\t]+/g," ");if(a&&!/ $/.test(a.data)||i||" "!==u[0]||(u=u.substr(1)),!u){s=Ix(s);continue}s.data=u,a=s}else{if(1!==s.nodeType){s=Ix(s);continue}n(s)||"BR"===s.nodeName?(a&&(a.data=a.data.replace(/ $/,"")),a=null,i=!1):r(s)||o(s)?(a=null,i=!0):a&&(i=!1)}var c=Bx(l,s,o);l=s,s=c}a&&(a.data=a.data.replace(/ $/,""),a.data||Ix(a))}}({element:n="string"==typeof e?($x=$x||new Ux).parseFromString('<x-turndown id="turndown-root">'+e+"</x-turndown>","text/html").getElementById("turndown-root"):e.cloneNode(!0),isBlock:Cx,isVoid:Px,isPre:t.preformattedCode?Vx:null}),n}function Vx(e){return"PRE"===e.nodeName||"CODE"===e.nodeName}function qx(e,t){return e.isBlock=Cx(e),e.isCode="CODE"===e.nodeName||e.parentNode.isCode,e.isBlank=function(e){return!Px(e)&&!function(e){return Dx(e,Tx)}(e)&&/^\s*$/i.test(e.textContent)&&!function(e){return Rx(e,Ox)}(e)&&!function(e){return Rx(e,Tx)}(e)}(e),e.flankingWhitespace=function(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:"",trailing:""};var n=function(e){var t=e.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:t[1],leadingAscii:t[2],leadingNonAscii:t[3],trailing:t[4],trailingNonAscii:t[5],trailingAscii:t[6]}}(e.textContent);return n.leadingAscii&&Gx("left",e,t)&&(n.leading=n.leadingNonAscii),n.trailingAscii&&Gx("right",e,t)&&(n.trailing=n.trailingNonAscii),{leading:n.leading,trailing:n.trailing}}(e,t),e}function Gx(e,t,n){var r,o,a;return"left"===e?(r=t.previousSibling,o=/ $/):(r=t.nextSibling,o=/^ /),r&&(3===r.nodeType?a=o.test(r.nodeValue):n.preformattedCode&&"CODE"===r.nodeName?a=!1:1!==r.nodeType||Cx(r)||(a=o.test(r.textContent))),a}var Yx=Array.prototype.reduce,Qx=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function Xx(e){if(!(this instanceof Xx))return new Xx(e);var t={rules:Nx,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:function(e,t){return t.isBlock?"\n\n":""},keepReplacement:function(e,t){return t.isBlock?"\n\n"+t.outerHTML+"\n\n":t.outerHTML},defaultReplacement:function(e,t){return t.isBlock?"\n\n"+e+"\n\n":e}};this.options=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},t,e),this.rules=new _x(this.options)}function Kx(e){var t=this;return Yx.call(e.childNodes,(function(e,n){var r="";return 3===(n=new qx(n,t.options)).nodeType?r=n.isCode?n.nodeValue:t.escape(n.nodeValue):1===n.nodeType&&(r=Jx.call(t,n)),eE(e,r)}),"")}function Zx(e){var t=this;return this.rules.forEach((function(n){"function"==typeof n.append&&(e=eE(e,n.append(t.options)))})),e.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function Jx(e){var t=this.rules.forNode(e),n=Kx.call(this,e),r=e.flankingWhitespace;return(r.leading||r.trailing)&&(n=n.trim()),r.leading+t.replacement(n,e,this.options)+r.trailing}function eE(e,t){var n=function(e){for(var t=e.length;t>0&&"\n"===e[t-1];)t--;return e.substring(0,t)}(e),r=function(e){return e.replace(/^\n*/,"")}(t),o=Math.max(e.length-n.length,t.length-r.length);return n+"\n\n".substring(0,o)+r}Xx.prototype={turndown:function(e){if(!function(e){return null!=e&&("string"==typeof e||e.nodeType&&(1===e.nodeType||9===e.nodeType||11===e.nodeType))}(e))throw new TypeError(e+" is not a string, or an element/document/fragment node.");if(""===e)return"";var t=Kx.call(this,new Wx(e,this.options));return Zx.call(this,t)},use:function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)this.use(e[t]);else{if("function"!=typeof e)throw new TypeError("plugin must be a Function or an Array of Functions");e(this)}return this},addRule:function(e,t){return this.rules.add(e,t),this},keep:function(e){return this.rules.keep(e),this},remove:function(e){return this.rules.remove(e),this},escape:function(e){return Qx.reduce((function(e,t){return e.replace(t[0],t[1])}),e)}};const tE=Xx,nE=e=>new tE({headingStyle:"atx",codeBlockStyle:"fenced"}).turndown(e);function rE(e){var t,n;const r=e.split(/(>>|sr>>|ifr>>)/g).map((e=>e.trim())).filter(Boolean);let o=document;for(let e=0;e<r.length;e++){const a=r[e];if(!o)return null;if("ifr>>"===a){const n=r[++e];o=(null===(t=o.contentWindow)||void 0===t?void 0:t.document.querySelector(n))||null}else if("sr>>"===a||">>"===a){const t=r[++e];o=(null===(n=o.shadowRoot)||void 0===n?void 0:n.querySelector(t))||null}else o=o.querySelector(a)}return o}const oE=(e,t)=>{if(!e)return;console.debug("Toggling button disabled state",{selector:e,disabled:t});const n=rE(e);n?n instanceof HTMLButtonElement||n instanceof HTMLInputElement?n.disabled=t:n instanceof HTMLAnchorElement?t?n.classList.add("kapa-disabled"):n.classList.remove("kapa-disabled"):console.error("Element must be of HTML type input, anchor or button."):console.error(`Submit button not found in order to ${t?"disable":"enable"} element.`)};var aE=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{s(r.next(e))}catch(e){a(e)}}function l(e){try{s(r.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((r=r.apply(e,t||[])).next())}))};const iE="https://kapa-widget-proxy-la7dkmplpq-uc.a.run.app",lE={state:"not_triggered",abortController:void 0,answer:void 0},sE=(e,t)=>{switch(t.type){case"LOADING":return Object.assign(Object.assign({},e),{abortController:t.data,state:"loading"});case"LOADING_LONGER":return Object.assign(Object.assign({},e),{state:"loading_longer"});case"SUCCESS":return Object.assign(Object.assign({},e),{state:"success",answer:{answer:t.data.answer,thread_id:t.data.thread_id}});case"ERROR":return Object.assign(Object.assign({},e),{state:"error"});case"SKIPPED":return Object.assign(Object.assign({},e),{state:"skipped"});case"CANCELLED":return"loading_longer"!==e.state?e:(e.abortController&&e.abortController.abort("cancelled"),Object.assign(Object.assign({},e),{state:"cancelled"}));default:return e}},uE=St.createContext(void 0),cE=({children:e})=>{var t;const[r,o]=St.useReducer(sE,lE),{config:a,logger:i}=xx(),{execute:l}=(e=>{const{loadScript:t=!0}={loadScript:!0}||{},[n,r]=(0,St.useState)(!1),[o,a]=(0,St.useState)(!1);return(0,St.useEffect)((()=>{var n;if(!t)return;const o=()=>{r(!0)},a=e=>{console.error("Failed to load reCAPTCHA Enterprise script",e)},i=(()=>{const t=document.getElementById(bx);if(t)return t;const n=document.createElement("script");return n.id=bx,n.src=`https://www.google.com/recaptcha/enterprise.js?render=${e}`,n.async=!0,n.defer=!0,document.head.appendChild(n),n})();if(!(null==(n=window.grecaptcha)?void 0:n.enterprise))return i.addEventListener("load",o),i.addEventListener("error",a),()=>{i&&(i.removeEventListener("load",o),i.removeEventListener("error",a))};r(!0)}),[e,t]),(0,St.useEffect)((()=>{if(n&&window.grecaptcha)try{window.grecaptcha.enterprise.ready((()=>{a(!0)}))}catch(e){console.error("Error during reCAPTCHA ready initialization:",e)}}),[n]),{execute:(0,St.useCallback)((t=>ux(void 0,null,(function*(){if(!o)return console.error("reCAPTCHA is not ready"),null;try{return yield function(e,t){return ux(this,null,(function*(){return new Promise(((n,r)=>{const o=setTimeout((()=>{r(new fx("Promise timed out."))}),t);e.then((e=>{clearTimeout(o),n(e)})).catch((e=>{clearTimeout(o),r(e)}))}))}))}(window.grecaptcha.enterprise.execute(e,{action:t}),4e3)}catch(e){return console.error("Error obtaining reCAPTCHA token:",e),null}}))),[o,e])}})(null!=="6Lck4YwlAAAAAEIE1hR--varWp0qu9F-8-emQn2v"?"6Lck4YwlAAAAAEIE1hR--varWp0qu9F-8-emQn2v":""),s=St.useMemo((()=>new WeakMap),[]),u=St.useCallback(((e,t)=>aE(void 0,void 0,void 0,(function*(){if(e)try{const n=JSON.stringify({is_deflected:t}),r=yield fetch(`${iE}/proxy/query/v2/thread/${e}/deflection-tracking-events/upsert/`,{method:"POST",body:n,headers:{"Content-Type":"application/json","X-WEBSITE-ID":a.integrationId}});if(!r.ok)throw new Error(`Request failed with status ${r.status}`);i.debug(`Deflection status toggled to ${t}`)}catch(e){console.error("Error toggling deflection status:",e)}else console.error("Error: threadId is null")}))),[a.integrationId,i]),c=St.useCallback((e=>aE(void 0,void 0,void 0,(function*(){var e;(null===(e=r.answer)||void 0===e?void 0:e.thread_id)?u(r.answer.thread_id,!1):console.warn("Skipping deflection untoggle: No thread_id available.")}))),[null===(t=r.answer)||void 0===t?void 0:t.thread_id,u]),f=St.useCallback((()=>{const e=rE(a.deflectionFailureTriggerElementQuerySelector);return e?new Promise((t=>{i.debug("Verifying untoggleDeflection event listener...");const n=s.get(e);if(n!==c)return console.warn("Expected untoggleDeflection event handler is not attached."),t(!1);i.debug("Verified: untoggleDeflection is attached, now testing execution.");try{n(new MouseEvent("click")),i.debug("Untoggle deflection event handler executed successfully."),t(!0)}catch(e){console.warn("Error executing untoggle deflection event handler:",e),t(!1)}})):(console.warn(`Deflection failure trigger element not found: ${a.deflectionFailureTriggerElementQuerySelector}`),Promise.resolve(!1))}),[a.deflectionFailureTriggerElementQuerySelector,s,i,c]),d=St.useCallback((e=>aE(void 0,void 0,void 0,(function*(){var t,n;if(e.preventDefault(),["loading","loading_longer"].includes(r.state))return;const s=new AbortController,c=s.signal;o({type:"LOADING",data:s});const d=a.mainInputQuerySelector,p=rE(d),g=a.extraInputs.map((e=>{const t=rE(e.selector);return Object.assign(Object.assign({},e),{element:t,name:e.name||(null==t?void 0:t.name)})}));if(!p)return console.warn(`Main input query element not found with selector: ${d}`),void o({type:"ERROR",data:null});g.forEach((({element:e,selector:t})=>{e||console.warn(`Additional query element not found with selector: ${t}`)})),oE(a.submitButtonQuerySelector,!0);const h=function(e,t,n){let r="";return r=e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?t.mainInputFormatsHTML?nE(e.value):e.value:nE(e.innerHTML),n.debug("Found main input element",e,"with value",r),r}(p,a,i),m=new Sx({logger:i,toggleDeflectionStatus:u,cacheTimeout:a.queryCacheTimeout});let y=!1;if(m.shouldUseCachedDeflectorState()&&(y=!0,i.debug("Skipping request because of local storage data.")),h.length<25&&(y=!0,i.debug("Skipping request because query is less than 25 characters.")),y){i.debug("Skipping request because of local storage data."),o({type:"SKIPPED",data:null});const n=p.closest("form");return n?n.requestSubmit():null===(t=e.target)||void 0===t||t.dispatchEvent(new Event(e.type,{bubbles:!0})),void oE(a.submitButtonQuerySelector,!1)}const b=g.map((({element:e,name:t})=>{const n=e;if(!n)return null;if(!t&&n instanceof HTMLInputElement)return console.warn(`Element with selector ${n} does not have configured name or a name attribute to describe the input field.`),null;const r=n.getAttribute("name")||n.id||n.getAttribute("data-name")||n.getAttribute("aria-label")||n.tagName.toLowerCase()||"";return n instanceof HTMLInputElement&&"checkbox"===n.type?{name:t||r,value:n.checked?"Yes":"No"}:"value"in n?{name:t||r,value:n.value}:{name:t||r,value:n.innerText||n.textContent||""}})).filter(Boolean);let v=h;b.length&&(v+=`\n\nAdditional information:\n${b.map((e=>`${e.name}: ${e.value}`)).join("\n")}`);const w=`${iE}/proxy/query/v2/chat/`;try{const e=yield l(dx.AskAi);if(null===e)return console.error("Error: ReCAPTCHA token is null"),void o({type:"ERROR",data:null});const t=setTimeout((()=>{o({type:"LOADING_LONGER",data:null})}),a.cancelAnswerTimeout),r=yield fetch(w,{method:"POST",headers:{"Content-Type":"application/json","X-RECAPTCHA-ENTERPRISE-TOKEN":e,"X-WEBSITE-ID":a.integrationId},body:JSON.stringify({query:v}),signal:c}),s=yield r.json();if(clearTimeout(t),!r.ok)return console.error("Error in query submission:",s),void o({type:"ERROR",data:s});o({type:"SUCCESS",data:s}),m.storeDeflectorState({threadId:s.thread_id}),(yield f())?(i.debug("Untoggle event listener verified, proceeding to set deflection to true."),u(null!==(n=s.thread_id)&&void 0!==n?n:"",!0)):console.warn("Untoggle event listener verification failed, skipping deflection toggle.")}catch(e){return void("cancelled"!==e&&(console.error("Error in query submission:",e),o({type:"ERROR",data:null})))}finally{oE(a.submitButtonQuerySelector,!1)}}))),[r.state,a,i,l,f,u]),p=St.useRef(null),g=St.useRef("initial");return St.useEffect((()=>{const e=e=>aE(void 0,void 0,void 0,(function*(){var t,n;if("handling"===g.current)return e.preventDefault(),void e.stopImmediatePropagation();if("initial"===g.current&&(e.preventDefault(),e.stopImmediatePropagation(),g.current="handling",yield d(e),g.current="done",a.runsOriginalEventAutomatically)){const r=null===(t=e.target)||void 0===t?void 0:t.closest("form");r?r.requestSubmit():null===(n=e.target)||void 0===n||n.dispatchEvent(new Event(e.type,{bubbles:!0}))}})),t="onSubmit"===a.submitElementEventType?"submit":"click",n=()=>{const n=rE(a.submitElementQuerySelector);n?null!==p.current&&p.current===n||(n.addEventListener(t,e,{capture:!0}),i.debug(`Added ${t} event listener to element:`,n),p.current=n):console.warn(`Form with selector "${a.submitElementQuerySelector}" not found`)};n();const r=new MutationObserver(n);return r.observe(document.body,{childList:!0,subtree:!0}),()=>{p.current&&(null==i||i.debug("Detaching event listener from",p.current),p.current.removeEventListener(t,e,{capture:!0}),p.current=null),r.disconnect()}}),[a,d,i]),St.useEffect((()=>{const e="onClick"===a.deflectionFailureTriggerElementEventType?"click":"submit";let t=null;const n=()=>{const n=rE(a.deflectionFailureTriggerElementQuerySelector);n&&n!==t?(t&&t.removeEventListener(e,c),i.debug("Attaching untoggleDeflection listener to",n),n.addEventListener(e,c,{capture:!0}),s.set(n,c),t=n):n||console.warn(`Element with selector "${a.deflectionFailureTriggerElementQuerySelector}" not found`)};["success","error"].includes(r.state)&&n();const o=new MutationObserver(n);return o.observe(document.body,{childList:!0,subtree:!0}),()=>{t&&(t.removeEventListener(e,c),t=null),o.disconnect()}}),[a,s,i,r.state,c]),(0,n.jsx)(uE.Provider,{value:{state:r,dispatch:o},children:e})},fE=()=>{const e=St.useContext(uE);if(void 0===e)throw new Error("useDeflector must be used within a DeflectorProvider");return e},dE={gap:{type:"spacing",property:"gap"},rowGap:{type:"spacing",property:"rowGap"},columnGap:{type:"spacing",property:"columnGap"},align:{type:"identity",property:"alignItems"},justify:{type:"identity",property:"justifyContent"},wrap:{type:"identity",property:"flexWrap"},direction:{type:"identity",property:"flexDirection"}};var pE=Object.defineProperty,gE=Object.defineProperties,hE=Object.getOwnPropertyDescriptors,mE=Object.getOwnPropertySymbols,yE=Object.prototype.hasOwnProperty,bE=Object.prototype.propertyIsEnumerable,vE=(e,t,n)=>t in e?pE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const wE={},kE=(0,St.forwardRef)(((e,t)=>{const n=Io("Flex",wE,e),{gap:r,rowGap:o,columnGap:a,align:i,justify:l,wrap:s,direction:u,sx:c}=n,f=((e,t)=>{var n={};for(var r in e)yE.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&mE)for(var r of mE(e))t.indexOf(r)<0&&bE.call(e,r)&&(n[r]=e[r]);return n})(n,["gap","rowGap","columnGap","align","justify","wrap","direction","sx"]);return St.createElement(ti,((e,t)=>gE(e,hE(t)))(((e,t)=>{for(var n in t||(t={}))yE.call(t,n)&&vE(e,n,t[n]);if(mE)for(var n of mE(t))bE.call(t,n)&&vE(e,n,t[n]);return e})({},f),{sx:[{display:"flex"},e=>qa({gap:r,rowGap:o,columnGap:a,align:i,justify:l,wrap:s,direction:u},e,dE),...Gy(c)],ref:t}))}));kE.displayName="@mantine/core/Flex";const xE=["mousedown","touchstart"];function EE(e,t){const n=[yv(e.offset)];return e.middlewares.shift&&n.push(bv({limiter:xv()})),e.middlewares.flip&&n.push(vv()),e.middlewares.inline&&n.push(kv()),n.push(Sv({element:e.arrowRef,padding:e.arrowOffset})),(e.middlewares.size||"target"===e.width)&&n.push(function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:l}=t,{apply:s=()=>{},...u}=$b(e,t),c=await Jb(t,u),f=Hb(o),d=Ub(o),p="y"===qb(o),{width:g,height:h}=a.floating;let m,y;"top"===f||"bottom"===f?(m=f,y=d===(await(null==i.isRTL?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(y=f,m="end"===d?"top":"bottom");const b=h-c.top-c.bottom,v=g-c.left-c.right,w=Nb(h-c[m],b),k=Nb(g-c[y],v),x=!t.middlewareData.shift;let E=w,S=k;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(S=v),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(E=b),x&&!d){const e=Lb(c.left,0),t=Lb(c.right,0),n=Lb(c.top,0),r=Lb(c.bottom,0);p?S=g-2*(0!==e||0!==t?e+t:Lb(c.left,c.right)):E=h-2*(0!==n||0!==r?n+r:Lb(c.top,c.bottom))}await s({...t,availableWidth:S,availableHeight:E});const F=await i.getDimensions(l.floating);return g!==F.width||h!==F.height?{reset:{rects:!0}}:{}}}}({apply({rects:n,availableWidth:r,availableHeight:o}){var a,i;const l=null!=(i=null==(a=t().refs.floating.current)?void 0:a.style)?i:{};e.middlewares.size&&Object.assign(l,{maxWidth:`${r}px`,maxHeight:`${o}px`}),"target"===e.width&&Object.assign(l,{width:`${n.reference.width}px`})}})),n}const[SE,FE]=_i("Popover component was not found in the tree");var AE=Object.defineProperty,CE=Object.defineProperties,OE=Object.getOwnPropertyDescriptors,PE=Object.getOwnPropertySymbols,TE=Object.prototype.hasOwnProperty,DE=Object.prototype.propertyIsEnumerable,RE=(e,t,n)=>t in e?AE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,NE=(e,t)=>{for(var n in t||(t={}))TE.call(t,n)&&RE(e,n,t[n]);if(PE)for(var n of PE(t))DE.call(t,n)&&RE(e,n,t[n]);return e};const LE={refProp:"ref",popupType:"dialog",shouldOverrideDefaultTargetId:!0},_E=(0,St.forwardRef)(((e,t)=>{const n=Io("PopoverTarget",LE,e),{children:r,refProp:o,popupType:a,shouldOverrideDefaultTargetId:i}=n,l=((e,t)=>{var n={};for(var r in e)TE.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&PE)for(var r of PE(e))t.indexOf(r)<0&&DE.call(e,r)&&(n[r]=e[r]);return n})(n,["children","refProp","popupType","shouldOverrideDefaultTargetId"]);if(!ub(r))throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const s=l,u=FE(),c=cb(u.reference,r.ref,t),f=u.withRoles?{"aria-haspopup":a,"aria-expanded":u.opened,"aria-controls":u.getDropdownId(),id:i?u.getTargetId():r.props.id}:{};return(0,St.cloneElement)(r,NE(((e,t)=>CE(e,OE(t)))(NE(NE(NE({},s),f),u.targetProps),{className:$o(u.targetProps.className,s.className,r.props.className),[o]:c}),u.controlled?null:{onClick:u.onToggle}))}));_E.displayName="@mantine/core/PopoverTarget";const jE=()=>{};function zE(e,t={active:!0}){return"function"==typeof e&&t.active?n=>{var r;"Escape"===n.key&&(e(n),null==(r=t.onTrigger)||r.call(t))}:t.onKeyDown||jE}const IE=ia(((e,{radius:t,shadow:n})=>({dropdown:{position:"absolute",backgroundColor:e.white,background:"dark"===e.colorScheme?e.colors.dark[6]:e.white,border:`${Hr(1)} solid ${"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[2]}`,padding:`${e.spacing.sm} ${e.spacing.md}`,boxShadow:e.shadows[n]||n||"none",borderRadius:e.fn.radius(t),"&:focus":{outline:0}},arrow:{backgroundColor:"inherit",border:`${Hr(1)} solid ${"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[2]}`,zIndex:1}}))),BE=/input|select|textarea|button|object/,ME="a, input, select, textarea, button, object, [tabindex]";function $E(e){return"none"===e.style.display}function HE(e){let t=e.getAttribute("tabindex");return null===t&&(t=void 0),parseInt(t,10)}function UE(e){const t=e.nodeName.toLowerCase(),n=!Number.isNaN(HE(e));return(BE.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&function(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||"hidden"===e.getAttribute("type"))return!1;let t=e;for(;t&&t!==document.body&&11!==t.nodeType;){if($E(t))return!1;t=t.parentNode}return!0}(e)}function WE(e){const t=HE(e);return(Number.isNaN(t)||t>=0)&&UE(e)}function VE(e=!0){const t=(0,St.useRef)(),n=(0,St.useRef)(null),r=e=>{let t=e.querySelector("[data-autofocus]");if(!t){const n=Array.from(e.querySelectorAll(ME));t=n.find(WE)||n.find(UE)||null,!t&&UE(e)&&(t=e)}t&&t.focus({preventScroll:!0})},o=(0,St.useCallback)((o=>{e&&(null!==o?(n.current=function(e,t="body > :not(script)"){const n=dl(),r=Array.from(document.querySelectorAll(t)).map((t=>{var r;if((null==(r=null==t?void 0:t.shadowRoot)?void 0:r.contains(e))||t.contains(e))return;const o=t.getAttribute("aria-hidden"),a=t.getAttribute("data-hidden"),i=t.getAttribute("data-focus-id");return t.setAttribute("data-focus-id",n),null===o||"false"===o?t.setAttribute("aria-hidden","true"):a||i||t.setAttribute("data-hidden",o),{node:t,ariaHidden:a||null}}));return()=>{r.forEach((e=>{e&&n===e.node.getAttribute("data-focus-id")&&(null===e.ariaHidden?e.node.removeAttribute("aria-hidden"):e.node.setAttribute("aria-hidden",e.ariaHidden),e.node.removeAttribute("data-focus-id"),e.node.removeAttribute("data-hidden"))}))}}(o),t.current!==o&&(o?(setTimeout((()=>{o.getRootNode()&&r(o)})),t.current=o):t.current=null)):n.current&&(n.current(),n.current=null))}),[e]);return(0,St.useEffect)((()=>{if(!e)return;t.current&&setTimeout((()=>r(t.current)));const o=e=>{"Tab"===e.key&&t.current&&function(e,t){const n=(r=e,Array.from(r.querySelectorAll(ME)).filter(WE));var r;if(!n.length)return void t.preventDefault();const o=n[t.shiftKey?0:n.length-1],a=e.getRootNode();if(o!==a.activeElement&&e!==a.activeElement)return;t.preventDefault();const i=n[t.shiftKey?n.length-1:0];i&&i.focus()}(t.current,e)};return document.addEventListener("keydown",o),()=>{document.removeEventListener("keydown",o),n.current&&n.current()}}),[e]),o}function qE({children:e,active:t=!0,refProp:n="ref"}){const r=cb(VE(t),null==e?void 0:e.ref);return ub(e)?(0,St.cloneElement)(e,{[n]:r}):e}qE.displayName="@mantine/core/FocusTrap";var GE=Object.defineProperty,YE=Object.defineProperties,QE=Object.getOwnPropertyDescriptors,XE=Object.getOwnPropertySymbols,KE=Object.prototype.hasOwnProperty,ZE=Object.prototype.propertyIsEnumerable,JE=(e,t,n)=>t in e?GE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eS=(e,t)=>{for(var n in t||(t={}))KE.call(t,n)&&JE(e,n,t[n]);if(XE)for(var n of XE(t))ZE.call(t,n)&&JE(e,n,t[n]);return e},tS=(e,t)=>YE(e,QE(t));const nS={};function rS(e){var t;const n=Io("PopoverDropdown",nS,e),{style:r,className:o,children:a,onKeyDownCapture:i}=n,l=((e,t)=>{var n={};for(var r in e)KE.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&XE)for(var r of XE(e))t.indexOf(r)<0&&ZE.call(e,r)&&(n[r]=e[r]);return n})(n,["style","className","children","onKeyDownCapture"]),s=FE(),{classes:u,cx:c}=IE({radius:s.radius,shadow:s.shadow},{name:s.__staticSelector,classNames:s.classNames,styles:s.styles,unstyled:s.unstyled,variant:s.variant}),f=function({opened:e,shouldReturnFocus:t=!0}){const n=(0,St.useRef)(),r=()=>{var e;n.current&&"focus"in n.current&&"function"==typeof n.current.focus&&(null==(e=n.current)||e.focus({preventScroll:!0}))};return Xw((()=>{let o=-1;const a=e=>{"Tab"===e.key&&window.clearTimeout(o)};return document.addEventListener("keydown",a),e?n.current=document.activeElement:t&&(o=window.setTimeout(r,10)),()=>{window.clearTimeout(o),document.removeEventListener("keydown",a)}}),[e,t]),r}({opened:s.opened,shouldReturnFocus:s.returnFocus}),d=s.withRoles?{"aria-labelledby":s.getTargetId(),id:s.getDropdownId(),role:"dialog"}:{};return s.disabled?null:St.createElement(Iw,tS(eS({},s.portalProps),{withinPortal:s.withinPortal}),St.createElement(bk,tS(eS({mounted:s.opened},s.transitionProps),{transition:s.transitionProps.transition||"fade",duration:null!=(t=s.transitionProps.duration)?t:150,keepMounted:s.keepMounted,exitDuration:"number"==typeof s.transitionProps.exitDuration?s.transitionProps.exitDuration:s.transitionProps.duration}),(e=>{var t,n;return St.createElement(qE,{active:s.trapFocus},St.createElement(ti,eS(tS(eS({},d),{tabIndex:-1,ref:s.floating,style:tS(eS(eS({},r),e),{zIndex:s.zIndex,top:null!=(t=s.y)?t:0,left:null!=(n=s.x)?n:0,width:"target"===s.width?void 0:Hr(s.width)}),className:c(u.dropdown,o),onKeyDownCapture:zE(s.onClose,{active:s.closeOnEscape,onTrigger:f,onKeyDown:i}),"data-position":s.placement}),l),a,St.createElement(Bk,{ref:s.arrowRef,arrowX:s.arrowX,arrowY:s.arrowY,visible:s.withArrow,position:s.placement,arrowSize:s.arrowSize,arrowRadius:s.arrowRadius,arrowOffset:s.arrowOffset,arrowPosition:s.arrowPosition,className:u.arrow})))})))}rS.displayName="@mantine/core/PopoverDropdown";var oS=Object.getOwnPropertySymbols,aS=Object.prototype.hasOwnProperty,iS=Object.prototype.propertyIsEnumerable;const lS={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!1,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,clickOutsideEvents:["mousedown","touchstart"],zIndex:db("popover"),__staticSelector:"Popover",width:"max-content"};function sS(e){var t,n,r,o,a,i;const l=(0,St.useRef)(null),s=Io("Popover",lS,e),{children:u,position:c,offset:f,onPositionChange:d,positionDependencies:p,opened:g,transitionProps:h,width:m,middlewares:y,withArrow:b,arrowSize:v,arrowOffset:w,arrowRadius:k,arrowPosition:x,unstyled:E,classNames:S,styles:F,closeOnClickOutside:A,withinPortal:C,portalProps:O,closeOnEscape:P,clickOutsideEvents:T,trapFocus:D,onClose:R,onOpen:N,onChange:L,zIndex:_,radius:j,shadow:z,id:I,defaultOpened:B,__staticSelector:M,withRoles:$,disabled:H,returnFocus:U,variant:W,keepMounted:V}=s,q=((e,t)=>{var n={};for(var r in e)aS.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&oS)for(var r of oS(e))t.indexOf(r)<0&&iS.call(e,r)&&(n[r]=e[r]);return n})(s,["children","position","offset","onPositionChange","positionDependencies","opened","transitionProps","width","middlewares","withArrow","arrowSize","arrowOffset","arrowRadius","arrowPosition","unstyled","classNames","styles","closeOnClickOutside","withinPortal","portalProps","closeOnEscape","clickOutsideEvents","trapFocus","onClose","onOpen","onChange","zIndex","radius","shadow","id","defaultOpened","__staticSelector","withRoles","disabled","returnFocus","variant","keepMounted"]),[G,Y]=(0,St.useState)(null),[Q,X]=(0,St.useState)(null),K=pl(I),Z=function(e){const[t,n]=function({value:e,defaultValue:t,finalValue:n,onChange:r=()=>{}}){const[o,a]=(0,St.useState)(void 0!==t?t:n);return void 0!==e?[e,r,!0]:[o,e=>{a(e),null==r||r(e)},!1]}({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),r=sw({placement:e.position,middleware:EE(e,(()=>r))});return Kw({opened:e.opened,position:e.position,positionDependencies:e.positionDependencies,floating:r}),Xw((()=>{var t;null==(t=e.onPositionChange)||t.call(e,r.placement)}),[r.placement]),Xw((()=>{var t,n;e.opened?null==(n=e.onOpen)||n.call(e):null==(t=e.onClose)||t.call(e)}),[e.opened]),{floating:r,controlled:"boolean"==typeof e.opened,opened:t,onClose:()=>{var t;null==(t=e.onClose)||t.call(e),n(!1)},onToggle:()=>{var r,o;t?(null==(r=e.onClose)||r.call(e),n(!1)):(null==(o=e.onOpen)||o.call(e),n(!0))}}}({middlewares:y,width:m,position:Zw(jo().dir,c),offset:"number"==typeof f?f+(b?v/2:0):f,arrowRef:l,arrowOffset:w,onPositionChange:d,positionDependencies:p,opened:g,defaultOpened:B,onChange:L,onOpen:N,onClose:R});!function(e,t,n){const r=(0,St.useRef)();(0,St.useEffect)((()=>{const o=t=>{const{target:o}=null!=t?t:{};if(Array.isArray(n)){const r=(null==o?void 0:o.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(o)&&"HTML"!==o.tagName,a=n.every((e=>!!e&&!t.composedPath().includes(e)));a&&!r&&e()}else r.current&&!r.current.contains(o)&&e()};return(t||xE).forEach((e=>document.addEventListener(e,o))),()=>{(t||xE).forEach((e=>document.removeEventListener(e,o)))}}),[r,e,n])}((()=>Z.opened&&A&&Z.onClose()),T,[G,Q]);const J=(0,St.useCallback)((e=>{Y(e),Z.floating.reference(e)}),[Z.floating.reference]),ee=(0,St.useCallback)((e=>{X(e),Z.floating.floating(e)}),[Z.floating.floating]);return St.createElement(SE,{value:{returnFocus:U,disabled:H,controlled:Z.controlled,reference:J,floating:ee,x:Z.floating.x,y:Z.floating.y,arrowX:null==(r=null==(n=null==(t=Z.floating)?void 0:t.middlewareData)?void 0:n.arrow)?void 0:r.x,arrowY:null==(i=null==(a=null==(o=Z.floating)?void 0:o.middlewareData)?void 0:a.arrow)?void 0:i.y,opened:Z.opened,arrowRef:l,transitionProps:h,width:m,withArrow:b,arrowSize:v,arrowOffset:w,arrowRadius:k,arrowPosition:x,placement:Z.floating.placement,trapFocus:D,withinPortal:C,portalProps:O,zIndex:_,radius:j,shadow:z,closeOnEscape:P,onClose:Z.onClose,onToggle:Z.onToggle,getTargetId:()=>`${K}-target`,getDropdownId:()=>`${K}-dropdown`,withRoles:$,targetProps:q,__staticSelector:M,classNames:S,styles:F,unstyled:E,variant:W,keepMounted:V}},u)}sS.Target=_E,sS.Dropdown=rS,sS.displayName="@mantine/core/Popover";var uS={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},cS=Object.defineProperty,fS=Object.defineProperties,dS=Object.getOwnPropertyDescriptors,pS=Object.getOwnPropertySymbols,gS=Object.prototype.hasOwnProperty,hS=Object.prototype.propertyIsEnumerable,mS=(e,t,n)=>t in e?cS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yS=(e,t)=>{for(var n in t||(t={}))gS.call(t,n)&&mS(e,n,t[n]);if(pS)for(var n of pS(t))hS.call(t,n)&&mS(e,n,t[n]);return e},bS=((e,t,n)=>{const r=(0,St.forwardRef)(((e,t)=>{var r=e,{color:o="currentColor",size:a=24,stroke:i=2,children:l}=r,s=((e,t)=>{var n={};for(var r in e)gS.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&pS)for(var r of pS(e))t.indexOf(r)<0&&hS.call(e,r)&&(n[r]=e[r]);return n})(r,["color","size","stroke","children"]);return(0,St.createElement)("svg",yS(((e,t)=>fS(e,dS(t)))(yS({ref:t},uS),{width:a,height:a,stroke:o,strokeWidth:i,className:"tabler-icon tabler-icon-sparkles"}),s),[...n.map((([e,t])=>(0,St.createElement)(e,t))),...l||[]])}));return r.propTypes={color:Vp().string,size:Vp().oneOfType([Vp().string,Vp().number]),stroke:Vp().oneOfType([Vp().string,Vp().number])},r.displayName="IconSparkles",r})(0,0,[["path",{d:"M16 18a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2zm0 -12a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2zm-7 12a6 6 0 0 1 6 -6a6 6 0 0 1 -6 -6a6 6 0 0 1 -6 6a6 6 0 0 1 6 6z",key:"svg-0"}]]);const vS=({hidden:e,style:t})=>e?null:(0,n.jsx)(bS,{size:"1.2rem",style:t}),wS=({text:e,style:t})=>e?(0,n.jsx)(mi,{order:5,sx:t,children:e}):null,kS=({style:e})=>{const{props:t}=xx();return(0,n.jsxs)(kE,{gap:"xs",align:"center",sx:e,children:[(0,n.jsx)(vS,Object.assign({},t.AnswerBoxHeaderIcon)),(0,n.jsx)(wS,Object.assign({},t.AnswerBoxHeaderTitle))]})},xS=(0,St.forwardRef)(((e,t)=>{var{style:r,children:o}=e,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["style","children"]);return(0,n.jsx)(ui,Object.assign({ref:t,fz:"xs",sx:r},a,{children:o}))}));xS.displayName="AnswerBoxFooterText";const ES=()=>{const{props:e}=xx();return(0,n.jsxs)(sS,{width:300,position:"top",withArrow:!0,shadow:"md",children:[(0,n.jsx)(sS.Target,{children:(0,n.jsxs)(xS,Object.assign({},e.AnswerBoxFooterText,{children:["protected by"," ",(0,n.jsx)(Au,{sx:{fontSize:"inherit",color:"inherit"},children:"reCAPTCHA"})]}))}),(0,n.jsx)(sS.Dropdown,{children:(0,n.jsxs)(ui,{size:"xs",children:["This site is protected by reCAPTCHA and the Google"," ",(0,n.jsx)(Au,{href:"https://policies.google.com/privacy",target:"_blank",color:"gray.6",children:"Privacy Policy"})," ","and"," ",(0,n.jsx)(Au,{href:"https://policies.google.com/terms",target:"_blank",color:"gray.6",children:"ToS"})," ","apply"]})})]})},SS=({style:e})=>{const{props:t}=xx();return(0,n.jsxs)(kE,{w:"100%",mt:"sm",justify:"space-between",align:"center",sx:e,children:[(0,n.jsxs)(xS,Object.assign({},t.AnswerBoxFooterText,{children:["powered by"," ",(0,n.jsx)(Au,{href:"https://www.kapa.ai/",target:"_blank",sx:{fontSize:"inherit",color:"inherit"},children:"kapa.ai"})]})),(0,n.jsx)(ES,{})]})},FS=({style:e})=>{var t,r;const{state:o}=fE(),{props:a}=xx(),[i,l]=(0,St.useState)(0),s=(0,St.useRef)(null);return(0,St.useEffect)((()=>{const e=()=>{if(s.current){const e=s.current.scrollHeight;l(e)}};e();const t=new ResizeObserver((()=>{e()}));return s.current&&t.observe(s.current),()=>{t.disconnect()}}),[]),(0,n.jsxs)(ti,{sx:e,children:[(0,n.jsx)(kS,Object.assign({},a.AnswerBoxHeader)),(0,n.jsx)(ti,{id:"kapa-support-form-deflector-answer","data-testid":"kapa-support-form-deflector-answer",ref:s,sx:{minHeight:0,transition:"height 0.3s ease",height:"number"==typeof i?`${i}px`:i,overflow:"hidden"},children:(0,n.jsx)(yx,{onLinkClick:()=>{},children:null!==(r=null===(t=o.answer)||void 0===t?void 0:t.answer)&&void 0!==r?r:""})}),(0,n.jsx)(SS,Object.assign({},a.AnswerBoxFooter))]})},AS=e=>(0,n.jsx)(uu,{variant:"light",title:"AI answer cancelled",w:"100%",mt:"md",color:"orange",sx:e.style,children:e.text}),CS=()=>(0,n.jsx)(uu,{variant:"light",title:"Oops!",w:"100%",mt:"md",color:"pink",children:"We tried to generate an AI answer for you, but something went wrong. Please click the submit button again to submit your ticket."}),OS=({text:e,style:t})=>{const{props:r}=xx();return e?(0,n.jsx)(ui,{sx:Object.assign(Object.assign({},r.Info.style),t),children:e}):null},PS=ia(((e,{orientation:t,buttonBorderWidth:n})=>({root:{display:"flex",flexDirection:"vertical"===t?"column":"row","& [data-button]":{"&:first-of-type:not(:last-of-type)":{borderBottomRightRadius:0,["vertical"===t?"borderBottomLeftRadius":"borderTopRightRadius"]:0,["vertical"===t?"borderBottomWidth":"borderRightWidth"]:`calc(${Hr(n)} / 2)`},"&:last-of-type:not(:first-of-type)":{borderTopLeftRadius:0,["vertical"===t?"borderTopRightRadius":"borderBottomLeftRadius"]:0,["vertical"===t?"borderTopWidth":"borderLeftWidth"]:`calc(${Hr(n)} / 2)`},"&:not(:first-of-type):not(:last-of-type)":{borderRadius:0,["vertical"===t?"borderTopWidth":"borderLeftWidth"]:`calc(${Hr(n)} / 2)`,["vertical"===t?"borderBottomWidth":"borderRightWidth"]:`calc(${Hr(n)} / 2)`},"& + [data-button]":{["vertical"===t?"marginTop":"marginLeft"]:`calc(${n} * -1)`,"@media (min-resolution: 192dpi)":{["vertical"===t?"marginTop":"marginLeft"]:0}}}}})));var TS=Object.defineProperty,DS=Object.getOwnPropertySymbols,RS=Object.prototype.hasOwnProperty,NS=Object.prototype.propertyIsEnumerable,LS=(e,t,n)=>t in e?TS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const _S={orientation:"horizontal",buttonBorderWidth:1},jS=(0,St.forwardRef)(((e,t)=>{const n=Io("ButtonGroup",_S,e),{className:r,orientation:o,buttonBorderWidth:a,unstyled:i}=n,l=((e,t)=>{var n={};for(var r in e)RS.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&DS)for(var r of DS(e))t.indexOf(r)<0&&NS.call(e,r)&&(n[r]=e[r]);return n})(n,["className","orientation","buttonBorderWidth","unstyled"]),{classes:s,cx:u}=PS({orientation:o,buttonBorderWidth:a},{name:"ButtonGroup",unstyled:i});return St.createElement(ti,((e,t)=>{for(var n in t||(t={}))RS.call(t,n)&&LS(e,n,t[n]);if(DS)for(var n of DS(t))NS.call(t,n)&&LS(e,n,t[n]);return e})({className:u(s.root,r),ref:t},l))}));jS.displayName="@mantine/core/ButtonGroup";var zS=Object.defineProperty,IS=Object.defineProperties,BS=Object.getOwnPropertyDescriptors,MS=Object.getOwnPropertySymbols,$S=Object.prototype.hasOwnProperty,HS=Object.prototype.propertyIsEnumerable,US=(e,t,n)=>t in e?zS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,WS=(e,t)=>{for(var n in t||(t={}))$S.call(t,n)&&US(e,n,t[n]);if(MS)for(var n of MS(t))HS.call(t,n)&&US(e,n,t[n]);return e},VS=(e,t)=>IS(e,BS(t));const qS={xs:Hr(30),sm:Hr(36),md:Hr(42),lg:Hr(50),xl:Hr(60)},GS=["default","filled","unstyled"];function YS({theme:e,variant:t}){return GS.includes(t)?"default"===t?{border:`${Hr(1)} solid ${"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[4]}`,backgroundColor:"dark"===e.colorScheme?e.colors.dark[6]:e.white,transition:"border-color 100ms ease","&:focus, &:focus-within":e.focusRingStyles.inputStyles(e)}:"filled"===t?{border:`${Hr(1)} solid transparent`,backgroundColor:"dark"===e.colorScheme?e.colors.dark[5]:e.colors.gray[1],"&:focus, &:focus-within":e.focusRingStyles.inputStyles(e)}:{borderWidth:0,color:"dark"===e.colorScheme?e.colors.dark[0]:e.black,backgroundColor:"transparent",minHeight:Hr(28),outline:0,"&:focus, &:focus-within":{outline:"none",borderColor:"transparent"},"&:disabled":{backgroundColor:"transparent","&:focus, &:focus-within":{outline:"none",borderColor:"transparent"}}}:null}ia(((e,{multiline:t,radius:n,invalid:r,rightSectionWidth:o,withRightSection:a,iconWidth:i,offsetBottom:l,offsetTop:s,pointer:u},{variant:c,size:f})=>{const d=e.fn.variant({variant:"filled",color:"red"}).background,p="default"===c||"filled"===c?{minHeight:Wr({size:f,sizes:qS}),paddingLeft:`calc(${Wr({size:f,sizes:qS})} / 3)`,paddingRight:a?o||Wr({size:f,sizes:qS}):`calc(${Wr({size:f,sizes:qS})} / 3)`,borderRadius:e.fn.radius(n)}:"unstyled"===c&&a?{paddingRight:o||Wr({size:f,sizes:qS})}:null;return{wrapper:{position:"relative",marginTop:s?`calc(${e.spacing.xs} / 2)`:void 0,marginBottom:l?`calc(${e.spacing.xs} / 2)`:void 0,"&:has(input:disabled)":{"& .mantine-Input-rightSection":{display:"none"}}},input:VS(WS(WS(VS(WS({},e.fn.fontStyles()),{height:t?"unstyled"===c?void 0:"auto":Wr({size:f,sizes:qS}),WebkitTapHighlightColor:"transparent",lineHeight:t?e.lineHeight:`calc(${Wr({size:f,sizes:qS})} - ${Hr(2)})`,appearance:"none",resize:"none",boxSizing:"border-box",fontSize:Wr({size:f,sizes:e.fontSizes}),width:"100%",color:"dark"===e.colorScheme?e.colors.dark[0]:e.black,display:"block",textAlign:"left",cursor:u?"pointer":void 0}),YS({theme:e,variant:c})),p),{"&:disabled, &[data-disabled]":{backgroundColor:"dark"===e.colorScheme?e.colors.dark[6]:e.colors.gray[1],color:e.colors.dark[2],opacity:.6,cursor:"not-allowed",pointerEvents:"none","&::placeholder":{color:e.colors.dark[2]}},"&[data-invalid]":{color:d,borderColor:d,"&::placeholder":{opacity:1,color:d}},"&[data-with-icon]":{paddingLeft:"number"==typeof i?Hr(i):Wr({size:f,sizes:qS})},"&::placeholder":VS(WS({},e.fn.placeholderStyles()),{opacity:1}),"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button, &::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, &::-webkit-search-results-decoration":{appearance:"none"},"&[type=number]":{MozAppearance:"textfield"}}),icon:{pointerEvents:"none",position:"absolute",zIndex:1,left:0,top:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",width:i?Hr(i):Wr({size:f,sizes:qS}),color:r?e.colors.red["dark"===e.colorScheme?6:7]:"dark"===e.colorScheme?e.colors.dark[2]:e.colors.gray[5]},rightSection:{position:"absolute",top:0,bottom:0,right:0,display:"flex",alignItems:"center",justifyContent:"center",width:o||Wr({size:f,sizes:qS})}}}));var QS=Object.defineProperty,XS=Object.defineProperties,KS=Object.getOwnPropertyDescriptors,ZS=Object.getOwnPropertySymbols,JS=Object.prototype.hasOwnProperty,eF=Object.prototype.propertyIsEnumerable,tF=(e,t,n)=>t in e?QS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nF=(e,t)=>{for(var n in t||(t={}))JS.call(t,n)&&tF(e,n,t[n]);if(ZS)for(var n of ZS(t))eF.call(t,n)&&tF(e,n,t[n]);return e},rF=(e,t)=>XS(e,KS(t));const oF=["filled","outline","light","white","default","subtle","gradient"],aF={xs:{height:qS.xs,paddingLeft:Hr(14),paddingRight:Hr(14)},sm:{height:qS.sm,paddingLeft:Hr(18),paddingRight:Hr(18)},md:{height:qS.md,paddingLeft:Hr(22),paddingRight:Hr(22)},lg:{height:qS.lg,paddingLeft:Hr(26),paddingRight:Hr(26)},xl:{height:qS.xl,paddingLeft:Hr(32),paddingRight:Hr(32)},"compact-xs":{height:Hr(22),paddingLeft:Hr(7),paddingRight:Hr(7)},"compact-sm":{height:Hr(26),paddingLeft:Hr(8),paddingRight:Hr(8)},"compact-md":{height:Hr(30),paddingLeft:Hr(10),paddingRight:Hr(10)},"compact-lg":{height:Hr(34),paddingLeft:Hr(12),paddingRight:Hr(12)},"compact-xl":{height:Hr(40),paddingLeft:Hr(14),paddingRight:Hr(14)}};function iF({compact:e,size:t,withLeftIcon:n,withRightIcon:r}){if(e)return aF[`compact-${t}`];const o=aF[t];return o?rF(nF({},o),{paddingLeft:n?`calc(${o.paddingLeft} / 1.5)`:o.paddingLeft,paddingRight:r?`calc(${o.paddingRight} / 1.5)`:o.paddingRight}):{}}const lF=e=>({display:e?"block":"inline-block",width:e?"100%":"auto"});function sF({variant:e,theme:t,color:n,gradient:r}){if(!oF.includes(e))return null;const o=t.fn.variant({color:n,variant:e,gradient:r});return"gradient"===e?nF({border:0,backgroundImage:o.background,color:o.color},t.fn.hover({backgroundSize:"200%"})):nF({border:`${Hr(1)} solid ${o.border}`,backgroundColor:o.background,color:o.color},t.fn.hover({backgroundColor:o.hover}))}var uF=ia(((e,{radius:t,fullWidth:n,compact:r,withLeftIcon:o,withRightIcon:a,color:i,gradient:l},{variant:s,size:u})=>({root:rF(nF(rF(nF(nF(nF(nF({},iF({compact:r,size:u,withLeftIcon:o,withRightIcon:a})),e.fn.fontStyles()),e.fn.focusStyles()),lF(n)),{borderRadius:e.fn.radius(t),fontWeight:600,position:"relative",lineHeight:1,fontSize:Wr({size:u,sizes:e.fontSizes}),userSelect:"none",cursor:"pointer"}),sF({variant:s,theme:e,color:i,gradient:l})),{"&:active":e.activeStyles,"&:disabled, &[data-disabled]":{borderColor:"transparent",backgroundColor:"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[2],color:"dark"===e.colorScheme?e.colors.dark[6]:e.colors.gray[5],cursor:"not-allowed",backgroundImage:"none",pointerEvents:"none","&:active":{transform:"none"}},"&[data-loading]":{pointerEvents:"none","&::before":rF(nF({content:'""'},e.fn.cover(Hr(-1))),{backgroundColor:"dark"===e.colorScheme?e.fn.rgba(e.colors.dark[7],.5):"rgba(255, 255, 255, .5)",borderRadius:e.fn.radius(t),cursor:"not-allowed"})}}),icon:{display:"flex",alignItems:"center"},leftIcon:{marginRight:e.spacing.xs},rightIcon:{marginLeft:e.spacing.xs},centerLoader:{position:"absolute",left:"50%",transform:"translateX(-50%)",opacity:.5},inner:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",overflow:"visible"},label:{whiteSpace:"nowrap",height:"100%",overflow:"hidden",display:"flex",alignItems:"center"}})));const cF=uF;var fF=Object.defineProperty,dF=Object.getOwnPropertySymbols,pF=Object.prototype.hasOwnProperty,gF=Object.prototype.propertyIsEnumerable,hF=(e,t,n)=>t in e?fF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mF=(e,t)=>{for(var n in t||(t={}))pF.call(t,n)&&hF(e,n,t[n]);if(dF)for(var n of dF(t))gF.call(t,n)&&hF(e,n,t[n]);return e};const yF={size:"sm",type:"button",variant:"filled",loaderPosition:"left"},bF=(0,St.forwardRef)(((e,t)=>{const n=Io("Button",yF,e),{className:r,size:o,color:a,type:i,disabled:l,children:s,leftIcon:u,rightIcon:c,fullWidth:f,variant:d,radius:p,uppercase:g,compact:h,loading:m,loaderPosition:y,loaderProps:b,gradient:v,classNames:w,styles:k,unstyled:x}=n,E=((e,t)=>{var n={};for(var r in e)pF.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&dF)for(var r of dF(e))t.indexOf(r)<0&&gF.call(e,r)&&(n[r]=e[r]);return n})(n,["className","size","color","type","disabled","children","leftIcon","rightIcon","fullWidth","variant","radius","uppercase","compact","loading","loaderPosition","loaderProps","gradient","classNames","styles","unstyled"]),{classes:S,cx:F,theme:A}=cF({radius:p,color:a,fullWidth:f,compact:h,gradient:v,withLeftIcon:!!u,withRightIcon:!!c},{name:"Button",unstyled:x,classNames:w,styles:k,variant:d,size:o}),C=A.fn.variant({color:a,variant:d}),O=St.createElement(gs,mF({color:C.color,size:`calc(${Wr({size:o,sizes:aF}).height} / 2)`},b));return St.createElement(Ds,mF({className:F(S.root,r),type:i,disabled:l,"data-button":!0,"data-disabled":l||void 0,"data-loading":m||void 0,ref:t,unstyled:x},E),St.createElement("div",{className:S.inner},(u||m&&"left"===y)&&St.createElement("span",{className:F(S.icon,S.leftIcon)},m&&"left"===y?O:u),m&&"center"===y&&St.createElement("span",{className:S.centerLoader},O),St.createElement("span",{className:S.label,style:{textTransform:g?"uppercase":void 0}},s),(c||m&&"right"===y)&&St.createElement("span",{className:F(S.icon,S.rightIcon)},m&&"right"===y?O:c)))}));bF.displayName="@mantine/core/Button",bF.Group=jS;const vF=bF,wF=Pr({from:{transform:"translateY(0)",opacity:1},to:{transform:"translateY(-20px)",opacity:0}}),kF=Pr({from:{transform:"translateY(20px)",opacity:0},to:{transform:"translateY(0)",opacity:1}}),xF=({text:e})=>{const[t,r]=St.useState("");return St.useEffect((()=>{r("");const e=setInterval((()=>{r((e=>{switch(e){case"":return".";case".":return"..";case"..":return"...";default:return""}}))}),500);return()=>clearInterval(e)}),[e]),(0,n.jsxs)(ui,{span:!0,children:[(0,n.jsx)("span",{children:e}),(0,n.jsx)("span",{style:{display:"inline-block",width:"24px",textAlign:"left"},children:t})]})},EF=({loadingTexts:e,style:t,cancelAnswerTimeoutHintText:r})=>{const[o,a]=St.useState(0),[i,l]=St.useState(!1),[s,u]=St.useState(!1),{dispatch:c,state:f}=fE(),{props:d}=xx(),p="loading_longer"===f.state;return St.useEffect((()=>{if(e.length<=1)return;const t=setInterval((()=>{o!==e.length-1?(l(!0),setTimeout((()=>{a((e=>e+1)),l(!1)}),300)):clearInterval(t)}),5e3);return p&&(clearInterval(t),l(!0),setTimeout((()=>{u(!0),l(!1)}),500)),()=>clearInterval(t)}),[o,e,p]),(0,n.jsxs)(kE,{p:"lg",align:"center",gap:"md",sx:t,children:[(0,n.jsx)(gs,{size:"md"}),(0,n.jsx)(ti,{sx:{width:"100%",textAlign:"left",animation:i?`${wF} 600ms ease-in-out`:`${kF} 600ms ease-in-out`},fw:500,children:(0,n.jsx)(xF,{text:s?r:e[o]})}),s?(0,n.jsx)(vF,{variant:"subtle",onClick:()=>c({type:"CANCELLED",data:null}),sx:Object.assign({animation:i?`${wF} 600ms ease-in-out`:`${kF} 600ms ease-in-out`},d.CancelAnswerButton.style),children:"Cancel"}):null]})},SF=e=>e.text?(0,n.jsx)(uu,{variant:"light",title:"AI answer skipped",w:"100%",mt:"md",color:"orange",sx:e.style,children:e.text}):null,FF=(e,t)=>new Promise(((n,r)=>{let o,a,i=[];const l=()=>{i=e.map((e=>rE(e))).filter(Boolean),i.length===e.length&&(s(),n(i))},s=()=>{a&&a.disconnect(),o&&clearTimeout(o)};t&&(o=setTimeout((()=>{s(),r(new Error(`Timeout waiting for elements: ${e.join(", ")}`))}),t)),a=new MutationObserver(((e,t)=>{l()})),a.observe(document.body,{childList:!0,subtree:!0,attributes:!0}),l()}));const AF=()=>{const{config:e}=xx(),{state:t}=fE(),{submitButtonTextQuerySelector:n,submitButtonTextOverride:r}=e,o=(0,St.useRef)(null),a=(0,St.useRef)(null),i=(0,St.useCallback)((()=>{a.current&&null!==o.current&&("INPUT"===a.current.tagName&&["submit","button"].includes(a.current.type)?a.current.value=o.current:a.current.textContent=o.current,o.current=null)}),[]),l=(0,St.useCallback)((()=>function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{s(r.next(e))}catch(e){a(e)}}function l(e){try{s(r.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,(function*(){if(!n||!r)return;yield FF([n]);const e=rE(n);if(!e)return void console.error(`Submit button not found with query selector ${n} to override label.`);a.current=e;const l="INPUT"===e.tagName&&["submit","button"].includes(e.type);var s;"not_triggered"===t.state&&null===o.current?(o.current=l?e.value:e.textContent,s=r,l?e.value=s:e.textContent=s):i()}))),[n,r,t.state,i]);return(0,St.useEffect)((()=>(l(),()=>{i()})),[l,i]),null},CF=()=>{const{props:e}=xx(),{state:t}=fE(),[r,o]=(0,St.useState)(!1),[a,i]=(0,St.useState)(t.state);(0,St.useEffect)((()=>{if(["loading","loading_longer"].includes(t.state))return void i(t.state);o(!1);const e=setTimeout((()=>{i(t.state),o(!0)}),350);return()=>clearTimeout(e)}),[t.state]);const l=()=>{switch(a){case"loading":case"loading_longer":return(0,n.jsx)(EF,Object.assign({},e.LoadingIndicator));case"cancelled":return(0,n.jsx)(AS,Object.assign({},e.CancelAnswerIndicator));case"error":return(0,n.jsx)(CS,{});case"not_triggered":return null;case"skipped":return(0,n.jsx)(SF,Object.assign({},e.SkipAnswerIndicator));default:return(0,n.jsx)(FS,Object.assign({},e.AnswerBox))}};return(0,n.jsx)(bk,{mounted:r,transition:"fade",duration:350,timingFunction:"ease-in-out",children:e=>(0,n.jsx)("div",{style:e,children:l()})})},OF=()=>{const{state:e}=fE(),{props:t}=xx();return AF(),(0,n.jsxs)(n.Fragment,{children:["not_triggered"===e.state?(0,n.jsx)(OS,Object.assign({},t.PreSubmitInfo)):null,(0,n.jsx)(CF,{}),["loading","loading_longer"].includes(e.state)?(0,n.jsx)(OS,Object.assign({},t.LoadingInfo)):null,"success"===e.state?(0,n.jsx)(OS,Object.assign({},t.PostSubmitInfo)):null]})};class PF{constructor(e=!0){this.enabled=e}debug(e,...t){this.enabled&&console.log("[DEBUG]",e,...t)}}class TF{constructor(e,t){this.scriptTag=e,this.theme=t}getDefault(e,t){return null===t?null:e[t]?e[t]:t}getAttribute(e,t){const n=`data-${e}`;return this.scriptTag.getAttribute(`${n}-${t}`)}getPaddingX(e){const t=this.getDefault(this.theme.spacing,this.getAttribute(e,"padding-x"));if(t)return{paddingLeft:t,paddingRight:t}}getPaddingY(e){const t=this.getDefault(this.theme.spacing,this.getAttribute(e,"padding-y"));if(t)return{paddingTop:t,paddingBottom:t}}getComponentStyles(e,t={}){const n=this.getAttribute(e,"background-color"),r=this.getAttribute(e,"color"),o=this.getDefault(this.theme.fontSizes,this.getAttribute(e,"font-size")),a=this.getAttribute(e,"font-weight"),i=this.getAttribute(e,"border"),l=this.getDefault(this.theme.radius,this.getAttribute(e,"border-radius")),s=this.getAttribute(e,"opacity"),u=this.getAttribute(e,"margin-top"),c=this.getAttribute(e,"margin-bottom"),f=this.getAttribute(e,"margin-right"),d=this.getAttribute(e,"margin-left"),p=this.getPaddingX(e),g=this.getPaddingY(e);return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t),n&&{backgroundColor:n}),r&&{color:r}),o&&{fontSize:o}),a&&{fontSize:Number(o)}),i&&{border:i}),l&&{borderRadius:l}),s&&{opacity:s}),u&&{marginTop:u}),c&&{marginBottom:c}),f&&{marginRight:f}),d&&{marginLeft:d}),p&&Object.assign({},p)),g&&Object.assign({},g))}}const DF={radius:{xs:"0.125rem",sm:"0.25rem",md:"0.5rem",lg:"1rem",xl:"2rem"},spacing:{xs:"0.625rem",sm:"0.75rem",md:"1rem",lg:"1.25rem",xl:"2rem"},headings:{fontFamily:"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",fontWeight:"700",sizes:{h1:{fontSize:"2.125rem",lineHeight:"1.3",fontWeight:900},h2:{fontSize:"1.625rem",lineHeight:"1.35",fontWeight:600},h3:{fontSize:"1.375rem",lineHeight:"1.4",fontWeight:600},h4:{fontSize:"1.125rem",lineHeight:"1.45",fontWeight:600},h5:{fontSize:"1rem",lineHeight:"1.5",fontWeight:600},h6:{fontSize:"0.875rem",lineHeight:"1.5",fontWeight:600}}},loader:"oval",primaryColor:"project",components:{Text:{defaultProps:{size:"sm"}}}};var RF=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{s(r.next(e))}catch(e){a(e)}}function l(e){try{s(r.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((r=r.apply(e,t||[])).next())}))};const NF=e=>/support-form-deflector(\.dev-\w+)?(-v\d+\.\d+\.\d+)?\.bundle\.js/.test(e.getAttribute("src")||""),LF=Array.from(document.querySelectorAll("script")).find(NF);if(!LF)throw console.error("Script tag not found."),Error("Script tag not found.");const _F="false"!==LF.getAttribute("data-render-on-load"),jF=()=>RF(void 0,void 0,void 0,(function*(){const e=LF.getAttribute("data-render-timeout")||"0";yield new Promise((t=>setTimeout(t,parseInt(e,10))));const{config:t,props:r,theme:o,logger:a}=(e=>{var t,n,r,o,a,i,l,s,u,c;const f=e.getAttribute("data-integration-id")||e.getAttribute("data-website-id")||"",d=e.getAttribute("data-main-input-query-selector");if(!d)throw new Error("Main input query selector is required to render the widget.");const p=e.getAttribute("data-submit-element-event-type"),g=e.getAttribute("data-submit-element-query-selector");if(-1===["onClick","onSubmit"].indexOf(null!=p?p:""))throw new Error("Submit element event type must be either 'onClick' or 'onSubmit' to render the widget");if(!g)throw new Error("Submit element query selector is required to render the widget.");const h=e.getAttribute("data-deflection-failure-trigger-element-query-selector")||g,m=e.getAttribute("data-deflection-failure-trigger-element-event-type")||p;if(!h)throw new Error("Deflection failure trigger element query selector is required to render the widget.");if(-1===["onClick","onSubmit"].indexOf(null!=m?m:""))throw new Error("Untoggle element event type must be either 'onClick' or 'onSubmit' to render the widget");const y=e.getAttribute("data-extra-input-query-selectors"),b=(null==y?void 0:y.split(","))||[],v=e.getAttribute("data-extra-input-names"),w=(null==v?void 0:v.split(","))||[];if(w.length&&b.length!==w.length)throw new Error("The count of the Extra Input Query Selectors and the Extra Input Names does not match. The names must exactly map to the selectors.");const k=b.map(((e,t)=>({selector:e,name:w[t]||null}))),x=e.getAttribute("data-runs-original-event-automatically"),E=e.getAttribute("data-submit-button-text-override")||void 0,S=e.getAttribute("data-submit-button-text-query-selector")||void 0,F=e.getAttribute("data-submit-button-query-selector")||void 0,A="true"===e.getAttribute("data-debug-mode"),C="true"===e.getAttribute("data-main-input-formats-html"),O=parseInt(e.getAttribute("data-option-to-cancel-answer-delay")||"60000"),P=Object.assign(Object.assign({},DF),{fontFamily:e.getAttribute("data-font-family")||"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",fontSizes:{xs:e.getAttribute("data-font-size-xs")||"0.75rem",sm:e.getAttribute("data-font-size-sm")||"0.875rem",md:e.getAttribute("data-font-size-md")||"1rem",lg:e.getAttribute("data-font-size-lg")||"1.125rem",xl:e.getAttribute("data-font-size-xl")||"1.25rem"},colors:{project:cx(e.getAttribute("data-project-color")||"#FFFF00")},primaryColor:"project",other:{textColor:e.getAttribute("data-text-color")||"inherit"}}),T=new TF(e,P),D={style:T.getComponentStyles("answer-box",{color:null===(t=P.other)||void 0===t?void 0:t.textColor,borderRadius:null===(n=P.radius)||void 0===n?void 0:n.md,paddingTop:null===(r=P.spacing)||void 0===r?void 0:r.sm,paddingBottom:null===(o=P.spacing)||void 0===o?void 0:o.sm,marginTop:null===(a=P.spacing)||void 0===a?void 0:a.md})},R={style:T.getComponentStyles("answer-box-header")},N={text:e.getAttribute("data-answer-box-header-title-text")||"AI Generated Response",style:T.getComponentStyles("answer-box-header-title")},L={hidden:"true"===e.getAttribute("data-answer-box-header-icon-hidden"),style:T.getComponentStyles("answer-box-header-icon")},_={style:T.getComponentStyles("answer-box-footer")},j={style:T.getComponentStyles("answer-box-footer-text",{opacity:.7})},z=e.getAttribute("data-option-to-cancel-answer-hint-text")||"This is taking longer than expected. If you don't want to wait, you can cancel the AI answer generation and submit the ticket normally.",I={text:e.getAttribute("data-post-cancel-answer-text")||"You have cancelled the AI answer generation. Please click the submit button again to submit your ticket.",style:T.getComponentStyles("cancelled-answer-indicator",{marginTop:null===(i=P.spacing)||void 0===i?void 0:i.md})},B={text:e.getAttribute("data-skipped-answer-text")||void 0,style:T.getComponentStyles("skipped-answer-indicator",{marginTop:null===(l=P.spacing)||void 0===l?void 0:l.md})},M={style:T.getComponentStyles("info-text",{color:null===(s=P.other)||void 0===s?void 0:s.textColor,marginTop:null===(u=P.spacing)||void 0===u?void 0:u.md,opacity:.7})},$={style:T.getComponentStyles("cancel-answer-button")},H={text:e.getAttribute("data-pre-submit-info-text")||void 0,style:T.getComponentStyles("pre-submit-info")},U={text:e.getAttribute("data-post-submit-info-text")||"If this didn't help, please submit your ticket now to our support team.",style:T.getComponentStyles("post-submit-info")},W={text:e.getAttribute("data-loading-info-text")||"Our AI assistant might have an answer for you in just 10-15 seconds. No need to wait for a human response if this helps.",style:T.getComponentStyles("loading-info")},V=e.getAttribute("data-answer-box-loading-texts")||"Understanding your issue;Finding relevant resources;Determining best solution;Drafting detailed reply;Finalizing response",q={loadingTexts:((null==V?void 0:V.split(";"))||[]).map((e=>e.trim())),cancelAnswerTimeoutHintText:z,style:T.getComponentStyles("loading-indicator",{marginTop:null===(c=P.spacing)||void 0===c?void 0:c.md})};return{config:{integrationId:f,mainInputQuerySelector:d,extraInputs:k,submitElementEventType:p,runsOriginalEventAutomatically:"true"===x,submitElementQuerySelector:g,submitButtonQuerySelector:F,submitButtonTextQuerySelector:S,submitButtonTextOverride:E,deflectionFailureTriggerElementQuerySelector:h,deflectionFailureTriggerElementEventType:m,mainInputFormatsHTML:C,cancelAnswerTimeout:O,queryCacheTimeout:parseInt(e.getAttribute("data-query-cache-timeout")||"7200000")},props:{AnswerBox:D,AnswerBoxHeader:R,AnswerBoxHeaderTitle:N,AnswerBoxHeaderIcon:L,AnswerBoxFooter:_,AnswerBoxFooterText:j,LoadingIndicator:q,Info:M,PreSubmitInfo:H,PostSubmitInfo:U,LoadingInfo:W,CancelAnswerButton:$,CancelAnswerIndicator:I,SkipAnswerIndicator:B},theme:P,logger:new PF(A)}})(LF),i=LF.getAttribute("data-anchor-element-query-selector"),l=LF.getAttribute("data-anchor-element-position");if(!i)throw new Error("Anchor element selector is required to render the widget.");if(!["beforebegin","afterbegin","beforeend","afterend"].includes(l||""))throw new Error("Anchor element position is required to render the widget.");let s=parseInt(LF.getAttribute("data-wait-for-elements-timeout")||"10000",10);isNaN(s)&&(s=void 0);const u=[t.mainInputQuerySelector,t.submitElementQuerySelector,i].filter(Boolean);try{yield FF(u,s)}catch(e){return void console.error("Failed to find required elements:",e)}const c=rE(i),f=document.createElement("div");null==c||c.insertAdjacentElement(l,f);const d=(0,vx.H)(f);d.render((0,n.jsx)(kx,{props:r,config:t,logger:a,children:(0,n.jsx)(Bo,{theme:o,children:(0,n.jsx)(cE,{children:(0,n.jsx)(OF,{})})})})),window.KapaSFD=Object.assign(Object.assign({},window.KapaSFD),{unmount:()=>{d.unmount(),window.KapaSFD=Object.assign(Object.assign({},window.KapaSFD),{unmount:()=>{console.warn("Kapa widget is not rendered.")},render:jF})},render:()=>RF(void 0,void 0,void 0,(function*(){console.warn("Kapa widget is already rendered.")}))})}));window._KAPA_SFD_RENDERED||(_F?"loading"===document.readyState?document.addEventListener("DOMContentLoaded",jF):jF():window.KapaSFD=Object.assign(Object.assign({},window.KapaSFD),{unmount:()=>{console.warn("Kapa widget is not rendered.")},render:jF}),(()=>{const e=document.createElement("style");e.textContent="\n .grecaptcha-badge {\n visibility: hidden;\n }\n ",document.head.appendChild(e)})(),window._KAPA_SFD_RENDERED=!0)})(),a})()));