1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5407],{67563:function(e,t,n){let r;n.r(t),n.d(t,{Chatbot:function(){return u9}});var i,o,a,l,s,c,u,d,h,p,f,m,g,y,v,b,x,_,w,S=n(57437),k=n(2265),E=n(54887),A=n(67133).Buffer,T=n(25566),C=function(e,t){return(C=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function N(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}C(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var j=function(){return(j=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function I(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function L(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var O="u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof global?global:"u">typeof self?self:{};function P(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var R={exports:{}},M={};R.exports=function(){if(es)return M;es=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case s:case c:case r:case o:case i:case d:return e;default:switch(e=e&&e.$$typeof){case l:case u:case f:case p:case a:return e;default:return h}}case n:return h}}}function x(e){return b(e)===c}return M.AsyncMode=s,M.ConcurrentMode=c,M.ContextConsumer=l,M.ContextProvider=a,M.Element=t,M.ForwardRef=u,M.Fragment=r,M.Lazy=f,M.Memo=p,M.Portal=n,M.Profiler=o,M.StrictMode=i,M.Suspense=d,M.isAsyncMode=function(e){return x(e)||b(e)===s},M.isConcurrentMode=x,M.isContextConsumer=function(e){return b(e)===l},M.isContextProvider=function(e){return b(e)===a},M.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},M.isForwardRef=function(e){return b(e)===u},M.isFragment=function(e){return b(e)===r},M.isLazy=function(e){return b(e)===f},M.isMemo=function(e){return b(e)===p},M.isPortal=function(e){return b(e)===n},M.isProfiler=function(e){return b(e)===o},M.isStrictMode=function(e){return b(e)===i},M.isSuspense=function(e){return b(e)===d},M.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===o||e===i||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===a||e.$$typeof===l||e.$$typeof===u||e.$$typeof===g||e.$$typeof===y||e.$$typeof===v||e.$$typeof===m)},M.typeOf=b,M}();var D=R.exports,B={};function U(e,t,n){if(void 0===n&&(n=Error),!e)throw new n(t)}function H(e){return e.type===eu.literal}function F(e){return e.type===eu.number}function z(e){return e.type===eu.date}function G(e){return e.type===eu.time}function W(e){return e.type===eu.select}function q(e){return e.type===eu.plural}function V(e){return e.type===eu.tag}function Z(e){return!!(e&&"object"==typeof e&&e.type===ed.number)}function Y(e){return!!(e&&"object"==typeof e&&e.type===ed.dateTime)}B[D.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},B[D.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},(ei=ec||(ec={}))[ei.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",ei[ei.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",ei[ei.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",ei[ei.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",ei[ei.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",ei[ei.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",ei[ei.INVALID_
1NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",ei[ei.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",ei[ei.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",ei[ei.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",ei[ei.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",ei[ei.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",ei[ei.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",ei[ei.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",ei[ei.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",ei[ei.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",ei[ei.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",ei[ei.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",ei[ei.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",ei[ei.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",ei[ei.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",ei[ei.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",ei[ei.INVALID_TAG=23]="INVALID_TAG",ei[ei.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",ei[ei.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",ei[ei.UNCLOSED_TAG=27]="UNCLOSED_TAG",(eo=eu||(eu={}))[eo.literal=0]="literal",eo[eo.argument=1]="argument",eo[eo.number=2]="number",eo[eo.date=3]="date",eo[eo.time=4]="time",eo[eo.select=5]="select",eo[eo.plural=6]="plural",eo[eo.pound=7]="pound",eo[eo.tag=8]="tag",(ea=ed||(ed={}))[ea.number=0]="number",ea[ea.dateTime=1]="dateTime";var X=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,K=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,$=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,J=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Q=/^(@+)?(\+|#+)?[rs]?$/g,ee=/(\*)(0+)|(#+)(0+)|(0+)/g,et=/^(0+)$/;function en(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(Q,function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""}),t}function er(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}var ei,eo,ea,el,es,ec,eu,ed,eh,ep={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA
1:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]},ef=new RegExp("^".concat(X.source,"*")),em=new RegExp("".concat(X.source,"*$"));function eg(e,t){return{start:e,end:t}}var ey=!!String.prototype.startsWith&&"_a".startsWith("a",1),ev=!!String.fromCodePoint,eb=!!Object.fromEntries,ex=!!String.prototype.codePointAt,e_=!!String.prototype.trimStart,ew=!!String.prototype.trimEnd,eS=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&9007199254740991>=Math.abs(e)},ek=!0;try{var eE=eL("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ek=(null===(eh=eE.exec("a"))||void 0===eh?void 0:eh[0])==="a"}catch{ek=!1}var eA=ey?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},eT=ev?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,o=0;i>o;){if((n=e[o++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(((n-=65536)>>10)+55296,n%1024+56320)}return r},eC=eb?Object.fromEntries:function(e){for(var t={},n=0;n<e.length;n++){var r=e[n],i=r[0],o=r[1];t[i]=o}return t},eN=ex?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:(i-55296<<10)+(r-56320)+65536}},ej=e_?function(e){return e.trimStart()}:function(e){return e.replace(ef,"")},eI=ew?function(e){return e.trimEnd()}:function(e){return e.replace(em,"")};function eL(e,t){return new RegExp(e,t)}if(ek){var eO=eL("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");eG=function(e,t){var n;return eO.lastIndex=t,null!==(n=eO.exec(e)[1])&&void 0!==n?n:""}}else eG=function(e,t){for(var n=[];;){var r,i=eN(e,t);if(void 0===i||eM(i)||(r=i)>=33&&r<=35||36===r||r>=37&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||r>=46&&r<=47||r>=58&&r<=59||r>=60&&r<=62||r>=63&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||r>=162&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||r>=8208&&r<=8213||r>=8214&&r<=8215||8216===r||8217===r||8218===r||r>=8219&&r<=8220||8221===r||8222===r||8223===r||r>=8224&&r<=8231||r>=8240&&r<=8248||8249===r||8250===r||r>=8251&&r<=8254||r>=8257&&r<=8259||8260===r||8261===r||8262===r||r>=8263&&r<=8273||8274===r||8275===r||r>=8277&&r<=8286||r>=8592&&r<=8596||r>=8597&&r<=8601||r>=8602&&r<=8603||r>=8604&&r<=8607||8608===r||r>=8609&&r<=8610||8611===r||r>=8612&&r<=8613||8614===r||r>=8615&&r<=8621||8622===r||r>=8623&&r<=8653||r>=8654&&r<=8655||r>
1=8656&&r<=8657||8658===r||8659===r||8660===r||r>=8661&&r<=8691||r>=8692&&r<=8959||r>=8960&&r<=8967||8968===r||8969===r||8970===r||8971===r||r>=8972&&r<=8991||r>=8992&&r<=8993||r>=8994&&r<=9e3||9001===r||9002===r||r>=9003&&r<=9083||9084===r||r>=9085&&r<=9114||r>=9115&&r<=9139||r>=9140&&r<=9179||r>=9180&&r<=9185||r>=9186&&r<=9254||r>=9255&&r<=9279||r>=9280&&r<=9290||r>=9291&&r<=9311||r>=9472&&r<=9654||9655===r||r>=9656&&r<=9664||9665===r||r>=9666&&r<=9719||r>=9720&&r<=9727||r>=9728&&r<=9838||9839===r||r>=9840&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||r>=10132&&r<=10175||r>=10176&&r<=10180||10181===r||10182===r||r>=10183&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||r>=10224&&r<=10239||r>=10240&&r<=10495||r>=10496&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||r>=10649&&r<=10711||10712===r||10713===r||10714===r||10715===r||r>=10716&&r<=10747||10748===r||10749===r||r>=10750&&r<=11007||r>=11008&&r<=11055||r>=11056&&r<=11076||r>=11077&&r<=11078||r>=11079&&r<=11084||r>=11085&&r<=11123||r>=11124&&r<=11125||r>=11126&&r<=11157||11158===r||r>=11159&&r<=11263||r>=11776&&r<=11777||11778===r||11779===r||11780===r||11781===r||r>=11782&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||r>=11790&&r<=11798||11799===r||r>=11800&&r<=11801||11802===r||11803===r||11804===r||11805===r||r>=11806&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||r>=11818&&r<=11822||11823===r||r>=11824&&r<=11833||r>=11834&&r<=11835||r>=11836&&r<=11839||11840===r||11841===r||11842===r||r>=11843&&r<=11855||r>=11856&&r<=11857||11858===r||r>=11859&&r<=11903||r>=12289&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||r>=12306&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||r>=12318&&r<=12319||12320===r||12336===r||64830===r||64831===r||r>=65093&&r<=65094)break;n.push(i),t+=i>=65536?2:1}return eT.apply(void 0,n)};var eP=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(123===i){var o=this.parseArgument(e,n);if(o.err)return o;r.push(o.val)}else{if(125===i&&e>0)break;if(35===i&&("plural"===t||"selectordinal"===t)){var a=this.clonePosition();this.bump(),r.push({type:eu.pound,location:eg(a,this.clonePosition())})}else if(60!==i||this.ignoreTag||47!==this.peek()){if(60===i&&!this.ignoreTag&&eR(this.peek()||0)){var o=this.parseTag(e,t);if(o.err)return o;r.push(o.val)}else{var o=this.parseLiteral(e,t);if(o.err)return o;r.push(o.val)}}else{if(n)break;return this.error(ec.UNMATCHED_CLOSING_TAG,eg(this.clonePosition(),this.clonePosition()))}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:eu.literal,value:"<".concat(r,"/>"),location:eg(n,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(ec.INVALID_TAG,eg(n,this.clonePosition()));var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,a=this.clonePosition();if(!this.bumpIf("</"))return this.error(ec.UNCLOSED_TAG,eg(n,this.clonePosition()));if(this.isEOF()||!eR(this.char()))return this.error(ec.INVALID_TAG,eg(a,this.clonePosition()));var l=this.clonePosition();return r!==this.parseTagName()?this.error(ec.UNMATCHED_CLOSING_TAG,eg(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:eu.tag,value:r,children:o,location:eg(n,this.clonePosition())},err:null}:this.error(ec.INVALID_TAG,eg(a,this.clonePosition())))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i){r+=i;continue}var o=this.tryParseUnquoted(e,t);if(o){r+=o;continue}var a=this.tryParseLeftAngleBracket();if(a){r+=a;continue}break}var l=eg(n,this.clonePosition());return{val:{type:eu.literal,value:r,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(eR(e=this.peek()||0)||47===e)?null:(this.bump(),"<")},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";
1case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39===this.peek())t.push(39),this.bump();else{this.bump();break}}else t.push(n);this.bump()}return eT.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),eT(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ec.EXPECT_ARGUMENT_CLOSING_BRACE,eg(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(ec.EMPTY_ARGUMENT,eg(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(ec.MALFORMED_ARGUMENT,eg(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ec.EXPECT_ARGUMENT_CLOSING_BRACE,eg(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:eu.argument,value:r,location:eg(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ec.EXPECT_ARGUMENT_CLOSING_BRACE,eg(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(ec.MALFORMED_ARGUMENT,eg(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=eG(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:eg(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(ec.EXPECT_ARGUMENT_TYPE,eg(o,l));case"number":case"date":case"time":this.bumpSpace();var s=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),u=this.parseSimpleArgStyleIfPossible();if(u.err)return u;var d=eI(u.val);if(0===d.length)return this.error(ec.EXPECT_ARGUMENT_STYLE,eg(this.clonePosition(),this.clonePosition()));s={style:d,styleLocation:eg(c,this.clonePosition())}}var h=this.tryParseArgumentClose(r);if(h.err)return h;var p=eg(r,this.clonePosition());if(s&&eA(null==s?void 0:s.style,"::",0)){var f,m=ej(s.style.slice(2));if("number"===a){var u=this.parseNumberSkeletonFromString(m,s.styleLocation);return u.err?u:{val:{type:eu.number,value:n,location:p,style:u.val},err:null}}if(0===m.length)return this.error(ec.EXPECT_DATE_TIME_SKELETON,p);var g=m;this.locale&&(g=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var a=1+(1&o),l=o<2?1:3+(o>>1),s=function(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(ep[n||""]||ep[r||""]||ep["".concat(r,"-001")]||ep["001"])[0]}(t);for(("H"==s||"k"==s)&&(l=0);l-- >0;)n+="a";for(;a-- >0;)n=s+n}else"J"===i?n+="H":n+=i}return n}(m,this.locale));var d={type:ed.dateTime,pattern:g,location:s.styleLocation,parsedOptions:this.shouldParseSkeletons?(f={},g.replace(K,function(e){var t=e.length;switch(e[0]){case"G":f.era=4===t?"long":5===t?"narrow":"short";break;case"y":f.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":f.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":f.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":f.weekday=4===t?"long":5===t?"narrow":"short";break;case"e":if(t<4)throw RangeError("`e..eee` (weekday) patterns are not supported");f.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");f.weekday=["short","long","narrow","short"][t-4];break;case"a":f.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":f.hourCycle="h12",f.hour=["numeric","2-digit"][t-1];break;case"H":f.hourCycle="h23",f.hour=["numeric","2-digit"][t-1];break;case"K":f.hourCycle="h11",f.hour=["numeric","2-digit"][t-1];break;case"k":f.hourCycle="h24",f.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":f.minute=["numeric","2-digit"][t-1];break;case"s":f.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":f.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),f):{}};return{val:{type:"date"===a?eu.date:eu.time,value:n,location:p,style:d},err:null}}return{val:{type:"number"===a?eu.number:"date"===a?eu.date:eu.time,value:n,location:p,style:null!==(i=null==s?void 0:s.style)&&void 0!==i?i:null},err:null};
1case"plural":case"selectordinal":case"select":var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ec.EXPECT_SELECT_ARGUMENT_OPTIONS,eg(y,j({},y)));this.bumpSpace();var v=this.parseIdentifierIfPossible(),b=0;if("select"!==a&&"offset"===v.value){if(!this.bumpIf(":"))return this.error(ec.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,eg(this.clonePosition(),this.clonePosition()));this.bumpSpace();var u=this.tryParseDecimalInteger(ec.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ec.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(u.err)return u;this.bumpSpace(),v=this.parseIdentifierIfPossible(),b=u.val}var x=this.tryParsePluralOrSelectOptions(e,a,t,v);if(x.err)return x;var h=this.tryParseArgumentClose(r);if(h.err)return h;var _=eg(r,this.clonePosition());return"select"===a?{val:{type:eu.select,value:n,options:eC(x.val),location:_},err:null}:{val:{type:eu.plural,value:n,options:eC(x.val),offset:b,pluralType:"plural"===a?"cardinal":"ordinal",location:_},err:null};default:return this.error(ec.INVALID_ARGUMENT_TYPE,eg(o,l))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(ec.EXPECT_ARGUMENT_CLOSING_BRACE,eg(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ec.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,eg(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");for(var t=e.split($).filter(function(e){return e.length>0}),n=[],r=0;r<t.length;r++){var i=t[r].split("/");if(0===i.length)throw Error("Invalid number skeleton");for(var o=i[0],a=i.slice(1),l=0;l<a.length;l++)if(0===a[l].length)throw Error("Invalid number skeleton");n.push({stem:o,options:a})}return n}(e)}catch{return this.error(ec.INVALID_NUMBER_SKELETON,t)}return{val:{type:ed.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?function(e){for(var t={},n=0;n<e.length;n++){var r=e[n];switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=r.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=j(j(j({},t),{notation:"scientific"}),r.options.reduce(function(e,t){return j(j({},e),er(t)||{})},{}));continue;case"engineering":t=j(j(j({},t),{notation:"engineering"}),r.options.reduce(function(e,t){return j(j({},e),er(t)||{})},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(r.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(r.options.length>1)throw RangeError("integer-width stems only accept a single optional option");r.options[0].replace(ee,function(e,n,r,i,o,a){if(n)t.minimumIntegerDigits=r.length;else{if(i&&o)throw Error("We currently do not support maximum integer digits");if(a)throw Error("We currently do not support exact integer digits")}return""});continue}if(et.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(J.test(r.stem)){if(r.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(J,function(e,n,r,i,o,a){return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""});var i=r.options[0];"w"===i?t=j(j({}
1,t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=j(j({},t),en(i)));continue}if(Q.test(r.stem)){t=j(j({},t),en(r.stem));continue}var o=er(r.stem);o&&(t=j(j({},t),o));var a=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!et.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(r.stem);a&&(t=j(j({},t),a))}return t}(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i,o=!1,a=[],l=new Set,s=r.value,c=r.location;;){if(0===s.length){var u=this.clonePosition();if("select"!==t&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(ec.EXPECT_PLURAL_ARGUMENT_SELECTOR,ec.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=eg(u,this.clonePosition()),s=this.message.slice(u.offset,this.offset())}else break}if(l.has(s))return this.error("select"===t?ec.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ec.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===s&&(o=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?ec.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ec.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,eg(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,n);if(p.err)return p;var f=this.tryParseArgumentClose(h);if(f.err)return f;a.push([s,{value:p.val,location:eg(h,this.clonePosition())}]),l.add(s),this.bumpSpace(),s=(i=this.parseIdentifierIfPossible()).value,c=i.location}return 0===a.length?this.error("select"===t?ec.EXPECT_SELECT_ARGUMENT_SELECTOR:ec.EXPECT_PLURAL_ARGUMENT_SELECTOR,eg(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(ec.MISSING_OTHER_CLAUSE,eg(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)i=!0,o=10*o+(a-48),this.bump();else break}var l=eg(r,this.clonePosition());return i?eS(o*=n)?{val:o,err:null}:this.error(t,l):this.error(e,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=eN(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(eA(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&eM(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null},e}();function eR(e){return e>=97&&e<=122||e>=65&&e<=90}function eM(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function eD(e,t){void 0===t&&(t={});var n=new eP(e,t=j({shouldParseSkeletons:!0,requiresOtherClause:!0},t)).parse();if(n.err){var r=SyntaxError(ec[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return null!=t&&t.captureLocation||function e(t){t.forEach(function(t){if(delete t.location,W(t)||q(t))for(var n in t.options)delete t.options[n].location,e(t.options[n].value);else F(t)&&Z(t.style)||(z(t)||G(t))&&Y(t.style)?delete t.style.location:V(t)&&e(t.children)})}(n.val),n.val}function eB(e,t){var n=t&&t.cache?t.cache:eq,r=t&&t.serializer?t.serializer:eF;return(t&&t.strategy?t.strategy:function(e,t){var n,r,i=1===e.length?eU:eH;return n=t.cache.create(),r=t.serializer,i.bind(this,e,n,r)})(e,{cache:n,serializer:r})}function eU(e,t,n,r){var i=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),o=t.get(i);return typeof o>"u"&&(o=e.call(this,r),t.set(i,o)),o}function eH(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return typeof o>"u"&&(o=e.apply(this,r),t.set(i,o)),o}var eF=function(){return JSON.stringify(arguments)};function ez(){this.cache=Object.create(null)}ez.prototype.get=function(e){return this.cache[e]},ez.prototype.set=function(e,t){this.cache[e]=t};var eG,eW,eq={create:function(){return new ez}},eV={variadic:function(e,t){var n,r;return n=t.cache.create(),r=t.serializer,eH.bind(this,e,n,r)}};(eZ=eW||(eW={})).MISSING_VALUE="MISSING_VALUE",eZ.INVALID_VALUE="INVALID_VALUE",eZ.MISSING_INTL_API="MISSING_INTL_API";var eZ,eY,eX=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return N(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),eK=function(e){function t(t,n,r,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),eW.INVALID_VALUE,i)||this}return N(t,e),t}(eX),e$=function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),eW.INVALID_VALUE,r)||this}return N(t,e),t}(eX),eJ=function(e){function t(t,n){return e.call(this,'The intl str
1ing context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),eW.MISSING_VALUE,n)||this}return N(t,e),t}(eX);function eQ(e){return"function"==typeof e}function e0(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}(e1=eY||(eY={}))[e1.literal=0]="literal",e1[e1.object=1]="object";var e1,e2,e3=function(){function e(t,n,r,i){var o,a,l=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=l.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce(function(e,t){return e.length&&t.type===eY.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return function e(t,n,r,i,o,a,l){if(1===t.length&&H(t[0]))return[{type:eY.literal,value:t[0].value}];for(var s=[],c=0;c<t.length;c++){var u=t[c];if(H(u)){s.push({type:eY.literal,value:u.value});continue}if(u.type===eu.pound){"number"==typeof a&&s.push({type:eY.literal,value:r.getNumberFormat(n).format(a)});continue}var d=u.value;if(!(o&&d in o))throw new eJ(d,l);var h=o[d];if(u.type===eu.argument){h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),s.push({type:"string"==typeof h?eY.literal:eY.object,value:h});continue}if(z(u)){var p="string"==typeof u.style?i.date[u.style]:Y(u.style)?u.style.parsedOptions:void 0;s.push({type:eY.literal,value:r.getDateTimeFormat(n,p).format(h)});continue}if(G(u)){var p="string"==typeof u.style?i.time[u.style]:Y(u.style)?u.style.parsedOptions:i.time.medium;s.push({type:eY.literal,value:r.getDateTimeFormat(n,p).format(h)});continue}if(F(u)){var p="string"==typeof u.style?i.number[u.style]:Z(u.style)?u.style.parsedOptions:void 0;p&&p.scale&&(h*=p.scale||1),s.push({type:eY.literal,value:r.getNumberFormat(n,p).format(h)});continue}if(V(u)){var f=u.children,m=u.value,g=o[m];if(!eQ(g))throw new e$(m,"function",l);var y=g(e(f,n,r,i,o,a).map(function(e){return e.value}));Array.isArray(y)||(y=[y]),s.push.apply(s,y.map(function(e){return{type:"string"==typeof e?eY.literal:eY.object,value:e}}))}if(W(u)){var v=u.options[h]||u.options.other;if(!v)throw new eK(u.value,h,Object.keys(u.options),l);s.push.apply(s,e(v.value,n,r,i,o));continue}if(q(u)){var v=u.options["=".concat(h)];if(!v){if(!Intl.PluralRules)throw new eX(`Intl.PluralRules is not available in this environment. 2Try polyfilling it using "@formatjs/intl-pluralrules" 3`,eW.MISSING_INTL_API,l);var b=r.getPluralRules(n,{type:u.pluralType}).select(h-(u.offset||0));v=u.options[b]||u.options.other}if(!v)throw new eK(u.value,h,Object.keys(u.options),l);s.push.apply(s,e(v.value,n,r,i,o,h-(u.offset||0)));continue}}return s.length<2?s:s.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===eY.literal&&t.type===eY.literal?n.value+=t.value:e.push(t),e},[])}(l.ast,l.locales,l.formatters,l.formats,e,void 0,l.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=l.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(l.locales)[0]}},this.getAst=function(){return l.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var c=I(s,["formatters"]);this.ast=e.__parse(t,j(j({},c),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=(o=e.formats,r?Object.keys(o).reduce(function(e,t){var n,i;return e[t]=(n=o[t],(i=r[t])?j(j(j({},n||{}),i||{}),Object.keys(n).reduce(function(e,t){return e[t]=j(j({},n[t]),i[t]||{}),e},{})):n),e},j({},o)):o),this.formatters=i&&i.formatters||(void 0===(a=this.formatterCache)&&(a={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:eB(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,L([void 0],t,!1)))},{cache:e0(a.number),strategy:eV.variadic}),getDateTimeFormat:eB(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,L([void 0],t,!1)))},{cache:e0(a.dateTime),strategy:eV.variadic}),getPluralRules:eB(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,L([void 0],t,!1)))},{cache:e0(a.pluralRules),strategy:eV.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale}
3,enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(!(typeof Intl.Locale>"u")){var t=Intl.NumberFormat.supportedLocalesOf(e);return new Intl.Locale(t.length>0?t[0]:"string"==typeof e?e:e[0])}},e.__parse=eD,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();(o=e2||(e2={})).FORMAT_ERROR="FORMAT_ERROR",o.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",o.INVALID_CONFIG="INVALID_CONFIG",o.MISSING_DATA="MISSING_DATA",o.MISSING_TRANSLATION="MISSING_TRANSLATION";var e6=function(e){function t(n,r,i){var o=this,a=i?i instanceof Error?i:Error(String(i)):void 0;return(o=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,` 4`).concat(a?` 5`.concat(a.message,` 6`).concat(a.stack):""))||this).code=n,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,t),o}return N(t,e),t}(Error),e4=function(e){function t(t,n){return e.call(this,e2.UNSUPPORTED_FORMATTER,t,n)||this}return N(t,e),t}(e6),e8=function(e){function t(t,n){return e.call(this,e2.INVALID_CONFIG,t,n)||this}return N(t,e),t}(e6),e5=function(e){function t(t,n){return e.call(this,e2.MISSING_DATA,t,n)||this}return N(t,e),t}(e6),e7=function(e){function t(t,n,r){var i=e.call(this,e2.FORMAT_ERROR,"".concat(t,` 7Locale: `).concat(n,` 8`),r)||this;return i.locale=n,i}return N(t,e),t}(e6),e9=function(e){function t(t,n,r,i){var o=e.call(this,"".concat(t,` 9MessageID: `).concat(null==r?void 0:r.id,` 10Default Message: `).concat(null==r?void 0:r.defaultMessage,` 11Description: `).concat(null==r?void 0:r.description,` 12`),n,i)||this;return o.descriptor=r,o.locale=n,o}return N(t,e),t}(e7),te=function(e){function t(t,n){var r=e.call(this,e2.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(n,'", using ').concat(t.defaultMessage?"default message (".concat("string"==typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map(function(e){var t;return null!==(t=e.value)&&void 0!==t?t:JSON.stringify(e)}).join(),")"):"id"," as fallback."))||this;return r.descriptor=t,r}return N(t,e),t}(e6);function tt(e,t,n){return void 0===n&&(n={}),t.reduce(function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t},{})}var tn={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){},onWarn:function(e){}};function tr(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function ti(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function to(e,t,n,r){var i,o=e&&e[t];if(o&&(i=o[n]),i)return i;r(new e4("No ".concat(t," format named: ").concat(n)))}function ta(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=j({timeZone:t},e[r]),n},{})}function tl(e,t){return Object.keys(j(j({},e),t)).reduce(function(n,r){return n[r]=j(j({},e[r]||{}),t[r]||{}),n},{})}function ts(e,t){if(!t)return e;var n=e3.formats;return j(j(j({},n),e),{date:tl(ta(n.date,t),ta(e.date||{},t)),time:tl(ta(n.time,t),ta(e.time||{},t))})}var tc=function(e,t,n,r,i){var o=e.locale,a=e.formats,l=e.messages,s=e.defaultLocale,c=e.defaultFormats,u=e.fallbackOnEmptyString,d=e.onError,h=e.timeZone,p=e.defaultRichTextElements;void 0===n&&(n={id:""});var f=n.id,m=n.defaultMessage;U(!!f,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var g=String(f),y=l&&Object.prototype.hasOwnProperty.call(l,g)&&l[g];if(Array.isArray(y)&&1===y.length&&y[0].type===eu.literal)return y[
120].value;if(!r&&y&&"string"==typeof y&&!p)return y.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=j(j({},p),r||{}),a=ts(a,h),c=ts(c,h),!y){if(!1===u&&""===y)return y;if((!m||o&&o.toLowerCase()!==s.toLowerCase())&&d(new te(n,o)),m)try{var v=t.getMessageFormat(m,s,c,i);return v.format(r)}catch(e){return d(new e9('Error formatting default message for: "'.concat(g,'", rendering default message verbatim'),o,n,e)),"string"==typeof m?m:g}return g}try{var v=t.getMessageFormat(y,o,a,j({formatters:t},i||{}));return v.format(r)}catch(e){d(new e9('Error formatting message: "'.concat(g,'", using ').concat(m?"default message":"id"," as fallback."),o,n,e))}if(m)try{var v=t.getMessageFormat(m,s,c,i);return v.format(r)}catch(e){d(new e9('Error formatting the default message for: "'.concat(g,'", rendering message verbatim'),o,n,e))}return"string"==typeof y?y:"string"==typeof m?m:g},tu=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function td(e,t,n,r){var i=e.locale,o=e.formats,a=e.onError,l=e.timeZone;void 0===r&&(r={});var s=r.format,c=tt(r,tu,j(j({},l&&{timeZone:l}),s&&to(o,t,s,a)));return"time"!==t||c.hour||c.minute||c.second||c.timeStyle||c.dateStyle||(c=j(j({},c),{hour:"numeric",minute:"numeric"})),n(i,c)}function th(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a="string"==typeof i?new Date(i||0):i;try{return td(e,"date",t,void 0===o?{}:o).format(a)}catch(t){e.onError(new e7("Error formatting date.",e.locale,t))}return String(a)}function tp(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a="string"==typeof i?new Date(i||0):i;try{return td(e,"time",t,void 0===o?{}:o).format(a)}catch(t){e.onError(new e7("Error formatting time.",e.locale,t))}return String(a)}function tf(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a=n[2],l=e.timeZone,s=e.locale,c=e.onError,u=tt(void 0===a?{}:a,tu,l?{timeZone:l}:{});try{return t(s,u).formatRange(i,o)}catch(t){c(new e7("Error formatting date time range.",e.locale,t))}return String(i)}function tm(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a="string"==typeof i?new Date(i||0):i;try{return td(e,"date",t,void 0===o?{}:o).formatToParts(a)}catch(t){e.onError(new e7("Error formatting date.",e.locale,t))}return[]}function tg(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a="string"==typeof i?new Date(i||0):i;try{return td(e,"time",t,void 0===o?{}:o).formatToParts(a)}catch(t){e.onError(new e7("Error formatting time.",e.locale,t))}return[]}var ty=["style","type","fallback","languageDisplay"];function tv(e,t,n,r){var i=e.locale,o=e.onError;Intl.DisplayNames||o(new eX(`Intl.DisplayNames is not available in this environment. 13Try polyfilling it using "@formatjs/intl-displaynames" 14`,eW.MISSING_INTL_API));var a=tt(r,ty);try{return t(i,a).of(n)}catch(e){o(new e7("Error formatting display name.",i,e))}}var tb=["type","style"],tx=Date.now();function t_(e,t,n,r){void 0===r&&(r={});var i=tw(e,t,n,r).reduce(function(e,t){var n=t.value;return"string"!=typeof n?e.push(n):"string"==typeof e[e.length-1]?e[e.length-1]+=n:e.push(n),e},[]);return 1===i.length?i[0]:0===i.length?"":i}function tw(e,t,n,r){var i=e.locale,o=e.onError;void 0===r&&(r={}),Intl.ListFormat||o(new eX(`Intl.ListFormat is not available in this environment. 15Try polyfilling it using "@formatjs/intl-listformat" 16`,eW.MISSING_INTL_API));var a=tt(r,tb);try{var l={},s=n.map(function(e,t){if("object"==typeof e){var n="".concat(tx,"_").concat(t,"_").concat(tx);return l[n]=e,n}return String(e)});return t(i,a).formatToParts(s).map(function(e){return"literal"===e.type?e:j(j({},e),{value:l[e.value]||e.value})})}catch(e){o(new e7("Error formatting list.",i,e))}return n}var tS=["type"];function tk(e,t,n,r){var i=e.locale,o=e.onError;void 0===r&&(r={}),Intl.PluralRules||o(new eX(`Intl.PluralRules is not available in this environment. 17Try polyfilling it using "@formatjs/intl-pluralrules" 18`,eW.MISSING_INTL_API));var a=tt(r,tS);try{return t(i,a).select(n)}catch(e){o(new e7("Error formatting plural.",i,e))}return"other"}var tE=["numeric","style"];function tA(e,t,n,r,i){void 0===i&&(i={}),r||(r="second"),Intl.RelativeTimeFormat||e.onError(new eX(`Intl.RelativeTimeFormat is not available in this environment. 19Try polyfilling it using "@formatjs/intl-relativetimeformat" 20`,eW.MISSING_INTL_API));try{var o,a,l,s,c;return(o=i,a=e.locale,l=e.formats,s=e.onError,void 0===o&&(o={}),c=o.format,t(a,tt(o,tE,!!c&&to(l,"relative",c,s)||{}))).format(n,r)}catch(t){e.onError(new e7("Error formatting relative time.",e.locale,t))}return String(n)}var tT=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];
20function tC(e,t,n){var r=e.locale,i=e.formats,o=e.onError;void 0===n&&(n={});var a=n.format;return t(r,tt(n,tT,a&&to(i,"number",a,o)||{}))}function tN(e,t,n,r){void 0===r&&(r={});try{return tC(e,t,r).format(n)}catch(t){e.onError(new e7("Error formatting number.",e.locale,t))}return String(n)}function tj(e,t,n,r){void 0===r&&(r={});try{return tC(e,t,r).formatToParts(n)}catch(t){e.onError(new e7("Error formatting number.",e.locale,t))}return[]}function tI(e){U(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var tL=j(j({},tn),{textComponent:k.Fragment});function tO(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(var o=0;o<i;o++){var a=n[o];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}var tP="u">typeof window&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=k.createContext(null)):k.createContext(null);tP.Consumer;var tR=tP.Provider;function tM(){var e=k.useContext(tP);return tI(e),e}function tD(e){var t=function(t){var n=tM(),r=t.value,i=t.children,o=I(t,["value","children"]),a="string"==typeof r?new Date(r||0):r;return i("formatDate"===e?n.formatDateToParts(a,o):n.formatTimeToParts(a,o))};return t.displayName=g[e],t}function tB(e){var t=function(t){var n=tM(),r=t.value,i=t.children,o=I(t,["value","children"]),a=n[e](r,o);if("function"==typeof i)return i(a);var l=n.textComponent||k.Fragment;return k.createElement(l,null,a)};return t.displayName=m[e],t}function tU(e){return e&&Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=eQ(r)?function(e){return r(k.Children.toArray(e))}:r,t},{})}(a=m||(m={})).formatDate="FormattedDate",a.formatTime="FormattedTime",a.formatNumber="FormattedNumber",a.formatList="FormattedList",a.formatDisplayName="FormattedDisplayName",(l=g||(g={})).formatDate="FormattedDateParts",l.formatTime="FormattedTimeParts",l.formatNumber="FormattedNumberParts",l.formatList="FormattedListParts";var tH=function(e,t,n,r){for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];var a=tU(r),l=tc.apply(void 0,L([e,t,n,a],i,!1));return Array.isArray(l)?k.Children.toArray(l):l},tF=function(e,t){var n,r,i,o,a,l,s,c,u,d,h,p,f,m,g=e.defaultRichTextElements,y=I(e,["defaultRichTextElements"]),v=tU(g),b=(n=j(j(j({},tL),y),{defaultRichTextElements:v}),void 0===(r=t)&&(r=tr()),i=Intl.RelativeTimeFormat,o=Intl.ListFormat,a=Intl.DisplayNames,l=eB(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,L([void 0],t,!1)))},{cache:ti(r.dateTime),strategy:eV.variadic}),s=eB(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,L([void 0],t,!1)))},{cache:ti(r.number),strategy:eV.variadic}),c=eB(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,L([void 0],t,!1)))},{cache:ti(r.pluralRules),strategy:eV.variadic}),u={getDateTimeFormat:l,getNumberFormat:s,getMessageFormat:eB(function(e,t,n,r){return new e3(e,t,n,j({formatters:{getNumberFormat:s,getDateTimeFormat:l,getPluralRules:c}},r||{}))},{cache:ti(r.message),strategy:eV.variadic}),getRelativeTimeFormat:eB(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(i.bind.apply(i,L([void 0],e,!1)))},{cache:ti(r.relativeTime),strategy:eV.variadic}),getPluralRules:c,getListFormat:eB(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(o.bind.apply(o,L([void 0],e,!1)))},{cache:ti(r.list),strategy:eV.variadic}),getDisplayNames:eB(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(a.bind.apply(a,L([void 0],e,!1)))},{cache:ti(r.displayNames),strategy:eV.variadic})},h=(d=j(j({},tn),n)).locale,p=d.defaultLocale,f=d.onError,h?!Intl.NumberFormat.supportedLocalesOf(h).length&&f?f(new e5('Missing locale data for locale: "'.concat(h,'" in Intl.NumberFormat. Using default locale: "').concat(p,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(h).length&&f&&f(new e5('Missing locale data for locale: "'.concat(h,'" in Intl.DateTimeFormat. Using default locale: "').concat(p,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(f&&f(new e8('"locale" was not configured, using "'.concat(p,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),d.locale=d.defaultLocale||"en"),d.onWarn&&d.defaultRichTextElements&&"string"==typeof(m=d.messages||{})[Object.keys(m)[0]]&&d.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. 21Please consider using "@formatjs/cli" to pre-compile your messages for performance. 22For more details see https://formatjs.io/docs/getting-started/message-distribution`),j(j({},d),{formatters:u,formatNumber:tN.bind(null,d,u.getNumberFormat),formatNumberToParts:tj.bind(null,d,u.getNumberFormat),formatRelativeTime:tA.bind(null,d,u.getRelativeTimeFormat),formatDate:th.bind(null,d,u.getDateTimeFormat),formatDateToParts:tm.bind(null,d,u.getDateTimeFormat),formatTime:tp.bind(null,d,u.getDateTimeFormat),formatDateTimeRange:tf.bind(null,d,u.getDateTimeFormat),formatTimeToParts:tg.bind(null,d,u.getDateTimeFormat),formatPlural
22:tk.bind(null,d,u.getPluralRules),formatMessage:tc.bind(null,d,u),$t:tc.bind(null,d,u),formatList:t_.bind(null,d,u.getListFormat),formatListToParts:tw.bind(null,d,u.getListFormat),formatDisplayName:tv.bind(null,d,u.getDisplayNames)})),x={locale:b.locale,timeZone:b.timeZone,fallbackOnEmptyString:b.fallbackOnEmptyString,formats:b.formats,defaultLocale:b.defaultLocale,defaultFormats:b.defaultFormats,messages:b.messages,onError:b.onError,defaultRichTextElements:v};return j(j({},b),{formatMessage:tH.bind(null,x,b.formatters),$t:tH.bind(null,x,b.formatters)})};function tz(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}var tG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache=tr(),t.state={cache:t.cache,intl:tF(tz(t.props),t.cache),prevConfig:tz(t.props)},t}return N(t,e),t.getDerivedStateFromProps=function(e,t){var n=t.prevConfig,r=t.cache,i=tz(e);return tO(n,i)?null:{intl:tF(i,r),prevConfig:i}},t.prototype.render=function(){return tI(this.state.intl),k.createElement(tR,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=tL,t}(k.PureComponent);function tW(e){var t=tM(),n=t.formatMessage,r=t.textComponent,i=void 0===r?k.Fragment:r,o=e.id,a=e.description,l=e.defaultMessage,s=e.values,c=e.children,u=e.tagName,d=void 0===u?i:u,h=n({id:o,description:a,defaultMessage:l},s,{ignoreTag:e.ignoreTag});return"function"==typeof c?c(Array.isArray(h)?h:[h]):d?k.createElement(d,null,k.Children.toArray(h)):k.createElement(k.Fragment,null,h)}tW.displayName="FormattedMessage";var tq=k.memo(tW,function(e,t){var n=e.values,r=I(e,["values"]),i=t.values,o=I(t,["values"]);return tO(i,n)&&tO(r,o)});/** 23 * @remix-run/router v1.16.0 24 * 25 * Copyright (c) Remix Software Inc. 26 * 27 * This source code is licensed under the MIT license found in the 28 * LICENSE.md file in the root directory of this source tree. 29 * 30 * @license MIT 31 */function tV(){return(tV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function tZ(e,t){if(!1===e||null===e||typeof e>"u")throw Error(t)}function tY(e,t){if(!e){"u">typeof console&&console.warn(t);try{throw Error(t)}catch{}}}function tX(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}tq.displayName="MemoizedFormattedMessage",tB("formatDate"),tB("formatTime"),tB("formatNumber"),tB("formatList"),tB("formatDisplayName"),tD("formatDate"),tD("formatTime"),(s=y||(y={})).Pop="POP",s.Push="PUSH",s.Replace="REPLACE",(c=v||(v={})).data="data",c.deferred="deferred",c.redirect="redirect",c.error="error";let tK=/^:[\w-]+$/,t$=e=>"*"===e;function tJ(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function tQ(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t)+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}let t0=e=>e.join("/").replace(/\/\/+/g,"/"),t1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),t2=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",t3=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";/** 32 * React Router v6.23.0 33 * 34 * Copyright (c) Remix Software Inc. 35 * 36 * This source code is licensed under the MIT license found in the 37 * LICENSE.md file in the root directory of this source tree. 38 * 39 * @license MIT 40 */function t6(){return(t6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let t4=k.createContext(null),t8=k.createContext(null),t5=k.createContext(null),t7=k.createContext(null),t9=k.createContext({outlet:null,matches:[],isDataRoute:!1}),ne=k.createContext(null);function nt(){return null!=k.useContext(t7)}function nn(){return nt()||tZ(!1),k.useContext(t7).location}function nr(e){k.useContext(t5).static||k.useLayoutEffect(e)}function ni(){let{isDataRoute:e}=k.useContext(t9);return e?function(){let e;let{router:t}=(ns.UseNavigateStable,(e=k.useContext(t4))||tZ(!1),e),n=nu(nc.UseNavigateStable),r=k.useRef(!1);return nr(()=>{r.current=!0}),k.useCallback(function(e,i){void 0===i&&(i={}),r.current&&("number"==typeof e?t.navigate(e):t.navigate(e,t6({fromRouteId:n},i)))},[t,n])}():function(){var e;let t;nt()||tZ(!1);let n=k.useContext(t4),{basename:r,future:i,navigator:o}=k.useContext(t5),{matches:a}=k.useContext(t9),{pathname:l}=nn(),s=JSON.stringify((e=i.v7_relativeSplatPath,t=a.filter((e,t)=>
400===t||e.route.path&&e.route.path.length>0),e?t.map((e,t)=>t===a.length-1?e.pathname:e.pathnameBase):t.map(e=>e.pathnameBase))),c=k.useRef(!1);return nr(()=>{c.current=!0}),k.useCallback(function(e,t){if(void 0===t&&(t={}),!c.current)return;if("number"==typeof e){o.go(e);return}let i=function(e,t,n,r){let i;void 0===r&&(r=!1),"string"==typeof e?i=tX(e):(tZ(!(i=tV({},e)).pathname||!i.pathname.includes("?"),tQ("?","pathname","search",i)),tZ(!i.pathname||!i.pathname.includes("#"),tQ("#","pathname","hash",i)),tZ(!i.search||!i.search.includes("#"),tQ("#","search","hash",i)));let o=""===e||""===i.pathname,a=o?"/":i.pathname,l;if(null==a)l=n;else{let e=t.length-1;if(!r&&a.startsWith("..")){let t=a.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}l=e>=0?t[e]:"/"}let s=function(e,t){let n;void 0===t&&(t="/");let{pathname:r,search:i="",hash:o=""}="string"==typeof e?tX(e):e;return{pathname:r?r.startsWith("/")?r:(n=t.replace(/\/+$/,"").split("/"),r.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"):t,search:t2(i),hash:t3(o)}}(i,l),c=a&&"/"!==a&&a.endsWith("/"),u=(o||"."===a)&&n.endsWith("/");return!s.pathname.endsWith("/")&&(c||u)&&(s.pathname+="/"),s}(e,JSON.parse(s),l,"path"===t.relative);null==n&&"/"!==r&&(i.pathname="/"===i.pathname?r:t0([r,i.pathname])),(t.replace?o.replace:o.push)(i,t.state,t)},[r,o,s,l,n])}()}let no=k.createElement(function(){var e;let t,n,r;let i=(n=k.useContext(ne),nc.UseRouteError,(t=k.useContext(t8))||tZ(!1),r=nu(nc.UseRouteError),void 0!==n?n:null==(e=t.errors)?void 0:e[r]),o=null!=i&&"number"==typeof i.status&&"string"==typeof i.statusText&&"boolean"==typeof i.internal&&"data"in i?i.status+" "+i.statusText:i instanceof Error?i.message:JSON.stringify(i),a=i instanceof Error?i.stack:null;return k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},o),a?k.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},a):null,null)},null);class na extends k.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?k.createElement(t9.Provider,{value:this.props.routeContext},k.createElement(ne.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function nl(e){let{routeContext:t,match:n,children:r}=e,i=k.useContext(t4);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement(t9.Provider,{value:t},r)}var ns=((u=ns||{}).UseBlocker="useBlocker",u.UseRevalidator="useRevalidator",u.UseNavigateStable="useNavigate",u),nc=((d=nc||{}).UseBlocker="useBlocker",d.UseLoaderData="useLoaderData",d.UseActionData="useActionData",d.UseRouteError="useRouteError",d.UseNavigation="useNavigation",d.UseRouteLoaderData="useRouteLoaderData",d.UseMatches="useMatches",d.UseRevalidator="useRevalidator",d.UseNavigateStable="useNavigate",d.UseRouteId="useRouteId",d);function nu(e){let t;let n=((t=k.useContext(t9))||tZ(!1),t),r=n.matches[n.matches.length-1];return r.route.id||tZ(!1),r.route.id}let nd={},nh=(el||(el=n.t(k,2))).startTransition;function np(e){let{basename:t,children:n,initialEntries:r,initialIndex:i,future:o}=e,a=k.useRef();null==a.current&&(a.current=function(e){void 0===e&&(e={});let{initialEntries:t=["/"],initialIndex:n,v5Compat:r=!1}=e,i;i=t.map((e,t)=>c(e,"string"==typeof e?null:e.state,0===t?"default":void 0));let o=s(n??i.length-1),a=y.Pop,l=null;function s(e){return Math.min(Math.max(e,0),i.length-1)}
40function c(e,t,n){var r,a;void 0===t&&(t=null);let l=(r=i?i[o].pathname:"/",void 0===(a=t)&&(a=null),tV({pathname:"string"==typeof r?r:r.pathname,search:"",hash:""},"string"==typeof e?tX(e):e,{state:a,key:e&&e.key||n||Math.random().toString(36).substr(2,8)}));return tY("/"===l.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),l}function u(e){return"string"==typeof e?e:function(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}(e)}return{get index(){return o},get action(){return a},get location(){return i[o]},createHref:u,createURL:e=>new URL(u(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?tX(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,t){a=y.Push;let n=c(e,t);o+=1,i.splice(o,i.length,n),r&&l&&l({action:a,location:n,delta:1})},replace(e,t){a=y.Replace;let n=c(e,t);i[o]=n,r&&l&&l({action:a,location:n,delta:0})},go(e){a=y.Pop;let t=s(o+e),n=i[t];o=t,l&&l({action:a,location:n,delta:e})},listen:e=>(l=e,()=>{l=null})}}({initialEntries:r,initialIndex:i,v5Compat:!0}));let l=a.current,[s,c]=k.useState({action:l.action,location:l.location}),{v7_startTransition:u}=o||{},d=k.useCallback(e=>{u&&nh?nh(()=>c(e)):c(e)},[c,u]);return k.useLayoutEffect(()=>l.listen(d),[l,d]),k.createElement(nm,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:l,future:o})}function nf(e){tZ(!1)}function nm(e){let{basename:t="/",children:n=null,location:r,navigationType:i=y.Pop,navigator:o,static:a=!1,future:l}=e;nt()&&tZ(!1);let s=t.replace(/^\/*/,"/"),c=k.useMemo(()=>({basename:s,navigator:o,static:a,future:t6({v7_relativeSplatPath:!1},l)}),[s,l,o,a]);"string"==typeof r&&(r=tX(r));let{pathname:u="/",search:d="",hash:h="",state:p=null,key:f="default"}=r,m=k.useMemo(()=>{let e=tJ(u,s);return null==e?null:{location:{pathname:e,search:d,hash:h,state:p,key:f},navigationType:i}},[s,u,d,h,p,f,i]);return null==m?null:k.createElement(t5.Provider,{value:c},k.createElement(t7.Provider,{children:n,value:m}))}function ng(e){let{children:t,location:n}=e;return function(e,t,n,r){nt()||tZ(!1);let{navigator:i}=k.useContext(t5),{matches:o}=k.useContext(t9),a=o[o.length-1],l=a?a.params:{},s=(a&&a.pathname,a?a.pathnameBase:"/");a&&a.route;let c=nn(),u;if(t){var d;let e="string"==typeof t?tX(t):t;"/"===s||null!=(d=e.pathname)&&d.startsWith(s)||tZ(!1),u=e}else u=c;let h=u.pathname||"/",p=h;if("/"!==s){let e=s.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(e.length).join("/")}let f=function(e,t,n){void 0===n&&(n="/");let r=tJ(("string"==typeof t?tX(t):t).pathname||"/",n);if(null==r)return null;let i=function e(t,n,r,i){void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i="");let o=(t,o,a)=>{var l;let s,c,u={relativePath:void 0===a?t.path||"":a,caseSensitive:!0===t.caseSensitive,childrenIndex:o,route:t};u.relativePath.startsWith("/")&&(tZ(u.relativePath.startsWith(i),'Absolute route path "'+u.relativePath+'" nested under path "'+i+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),u.relativePath=u.relativePath.slice(i.length));let d=t0([i,u.relativePath]),h=r.concat(u);t.children&&t.children.length>0&&(tZ(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+d+'".'),e(t.children,n,h,d)),(null!=t.path||t.index)&&n.push({path:d,score:(l=t.index,c=(s=d.split("/")).length,s.some(t$)&&(c+=-2),l&&(c+=2),s.filter(e=>!t$(e)).reduce((e,t)=>
40e+(tK.test(t)?3:""===t?1:10),c)),routesMeta:h})};return t.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of function e(t){let n=t.split("/");if(0===n.length)return[];let[r,...i]=n,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(0===i.length)return o?[a,""]:[a];let l=e(i.join("/")),s=[];return s.push(...l.map(e=>""===e?a:[a,e].join("/"))),o&&s.push(...l),s.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))o(e,t,n);else o(e,t)}),n}(e);!function(e){e.sort((e,t)=>{var n,r;return e.score!==t.score?t.score-e.score:(n=e.routesMeta.map(e=>e.childrenIndex),r=t.routesMeta.map(e=>e.childrenIndex),n.length===r.length&&n.slice(0,-1).every((e,t)=>e===r[t])?n[n.length-1]-r[r.length-1]:0)})}(i);let o=null;for(let e=0;null==o&&e<i.length;++e){let t=function(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return tY(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}(r);o=function(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let e=0;e<n.length;++e){let a=n[e],l=e===n.length-1,s="/"===i?t:t.slice(i.length)||"/",c=function(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),tY("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((e,t,n)=>{let{paramName:r,isOptional:i}=t;if("*"===r){let e=l[n]||"";a=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}let s=l[n];return i&&!s?e[r]=void 0:e[r]=(s||"").replace(/%2F/g,"/"),e},{}),pathname:o,pathnameBase:a,pattern:e}}({path:a.relativePath,caseSensitive:a.caseSensitive,end:l},s);if(!c)return null;
40Object.assign(r,c.params);let u=a.route;o.push({params:r,pathname:t0([i,c.pathname]),pathnameBase:t1(t0([i,c.pathnameBase])),route:u}),"/"!==c.pathnameBase&&(i=t0([i,c.pathnameBase]))}return o}(i[e],t)}return o}(e,{pathname:p}),m=function(e,t,n,r){var i,o;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){if(null==(o=n)||!o.errors)return null;e=n.matches}let a=e,l=null==(i=n)?void 0:i.errors;if(null!=l){let e=a.findIndex(e=>e.route.id&&(null==l?void 0:l[e.route.id])!==void 0);e>=0||tZ(!1),a=a.slice(0,Math.min(a.length,e+1))}let s=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:r}=n,i=t.route.loader&&void 0===e[t.route.id]&&(!r||void 0===r[t.route.id]);if(t.route.lazy||i){s=!0,a=c>=0?a.slice(0,c+1):[a[0]];break}}}return a.reduceRight((e,r,i)=>{var o;let u,d=!1,h=null,p=null;n&&(u=l&&r.route.id?l[r.route.id]:void 0,h=r.route.errorElement||no,s&&(c<0&&0===i?(nd[o="route-fallback"]||(nd[o]=!0),d=!0,p=null):c===i&&(d=!0,p=r.route.hydrateFallbackElement||null)));let f=t.concat(a.slice(0,i+1)),m=()=>{let t;return t=u?h:d?p:r.route.Component?k.createElement(r.route.Component,null):r.route.element?r.route.element:e,k.createElement(nl,{match:r,routeContext:{outlet:e,matches:f,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===i)?k.createElement(na,{location:n.location,revalidation:n.revalidation,component:h,error:u,children:m(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):m()},null)}(f&&f.map(e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:t0([s,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?s:t0([s,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),o,void 0,void 0);return t&&m?k.createElement(t7.Provider,{value:{location:t6({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:y.Pop}},m):m}(function e(t,n){void 0===n&&(n=[]);let r=[];return k.Children.forEach(t,(t,i)=>{if(!k.isValidElement(t))return;let o=[...n,i];if(t.type===k.Fragment){r.push.apply(r,e(t.props.children,o));return}t.type!==nf&&tZ(!1),t.props.index&&t.props.children&&tZ(!1);let a={id:t.props.id||o.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(a.children=e(t.props.children,o)),r.push(a)}),r}(t),n)}new Promise(()=>{});var ny={exports:{}},nv={},nb={exports:{}};nb.exports=(function(){if(w)return _;w=1;var e=x?b:(x=1,b="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");function t(){}function n(){}return n.resetWarningCache=t,_=function(){function r(t,n,r,i,o,a){if(a!==e){var l=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 i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}})()();var nx=nb.exports;function n_(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r);else for(n in t)t[n]&&(i&&(i+=" "),i+=n)}return i}(e))&&(r&&(r+=" "),r+=t);return r}let nw=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){if(this instanceof e){var n=[null];return n.push.apply(n,arguments),new(Function.bind.apply(t,n))}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}(Object.freeze(Object.defineProperty({__proto__:null,clsx:n_,default:n_},Symbol.toStringTag,{value:"Module"})));var nS={},nk={};Object.defineProperty(nk,"__esModule",{value:!0}),nk.dontSetMe=function(e,t,n){if(e[t])return Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))},nk.findInArray=function(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]},nk.int=function(e){return parseInt(e,10)},nk.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},nk.isNum=function(e){return"number"==typeof e&&!isNaN(e)};var nE={};Object.defineProperty(nE,"__esModule",{value:!0}),nE.browserPrefixToKey=nC,nE.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},nE.default=void 0,nE.getPrefix=nT;let nA=["Moz","Webkit","O","ms"];function nT(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if(typeof window>"u")return"";let n=null===(e=window.document)||void 0===e||null===(e=e.documentElement)||void 0===e?void 0:e.style;if(!n||t in n)return"";for(let e=0;e<nA.length;e++)if(nC(t,nA[e]) in n)return nA[e];return""}function nC(e,t){return t?"".concat(t).concat(function(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)):e}nE.default=nT(),Object.defineProperty(nS,"__esModule",{value:!0}),nS.addClassName=nP,nS.addEvent=function(e,t,n,r){if(!e)return;let i={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,i):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},nS.addUserSelectStyles=function(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||((t=e.createElement("style")).type="text/css",t.id="react-draggable-style-el",t.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} 41`,t.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} 42`,e.getElementsByTagName("head")[0].appendChild(t)),e.body&&nP(e.body,"react-draggable-transparent-selection")},nS.createCSSTransform=function(e,t){let n=nO(e,t,"px");return{[(0,nN.browserPrefixToKey)("transform",nN.default)]:n}},nS.createSVGTransform=function(e,t){return nO(e,t,"")},nS.getTouch=function(e,t){return e.targetTouches&&(0,nk.findInArray)(e.targetTouches,e=>t===e.identifier)||e.changedTouches&&(0,nk.findInArray)(e.changedTouches,e=>t===e.identifier)},nS.getTouchIdentifier=function(e){return e.targetTouches&&e.targetTouches[0]?e.targetTouches[0].identifier:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0].identifier:void 0},nS.getTranslation=nO,nS.innerHeight=function(e){let t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,nk.int)(n.paddingTop),t-=(0,nk.int)(n.paddingBottom)},nS.innerWidth=function(e){let t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,nk.int)(n.paddingLeft),t-=(0,nk.int)(n.paddingRight)},nS.matchesSelector=nL,nS.matchesSelectorAndParentsTo=function(e,t,n){let r=e;do{if(nL(r,t))return!0;
42if(r===n)break;r=r.parentNode}while(r);return!1},nS.offsetXYFromParent=function(e,t,n){let r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect();return{x:(e.clientX+t.scrollLeft-r.left)/n,y:(e.clientY+t.scrollTop-r.top)/n}},nS.outerHeight=function(e){let t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+((0,nk.int)(n.borderTopWidth)+(0,nk.int)(n.borderBottomWidth))},nS.outerWidth=function(e){let t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+((0,nk.int)(n.borderLeftWidth)+(0,nk.int)(n.borderRightWidth))},nS.removeClassName=nR,nS.removeEvent=function(e,t,n,r){if(!e)return;let i={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},nS.removeUserSelectStyles=function(e){if(e)try{if(e.body&&nR(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{let t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch{}};var nN=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=nj(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(nE);function nj(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(nj=function(e){return e?n:t})(e)}let nI="";function nL(e,t){return nI||(nI=(0,nk.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(t){return(0,nk.isFunction)(e[t])})),!!(0,nk.isFunction)(e[nI])&&e[nI](t)}function nO(e,t,n){let{x:r,y:i}=e,o="translate(".concat(r).concat(n,",").concat(i).concat(n,")");if(t){let e="".concat("string"==typeof t.x?t.x:t.x+n),r="".concat("string"==typeof t.y?t.y:t.y+n);o="translate(".concat(e,", ").concat(r,")")+o}return o}function nP(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function nR(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}var nM={};function nD(e){let t=e.findDOMNode();if(!t)throw Error("<DraggableCore>: Unmounted during event!");return t}Object.defineProperty(nM,"__esModule",{value:!0}),nM.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},nM.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},nM.createCoreData=function(e,t,n){let r=!(0,nk.isNum)(e.lastX),i=nD(e);return r?{node:i,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:i,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}},nM.createDraggableData=function(e,t){let n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}},nM.getBoundPosition=function(e,t,n){var r;if(!e.props.bounds)return[t,n];let{bounds:i}=e.props;i="string"==typeof i?i:{left:(r=i).left,top:r.top,right:r.right,bottom:r.bottom};let o=nD(e);if("string"==typeof i){let e;let{ownerDocument:t}=o,n=t.defaultView;if(!((e="parent"===i?o.parentNode:t.querySelector(i))instanceof n.HTMLElement))throw Error('Bounds selector "'+i+'" could not find an element.');let r=n.getComputedStyle(o),a=n.getComputedStyle(e);i={left:-o.offsetLeft+(0,nk.int)(a.paddingLeft)+(0,nk.int)(r.marginLeft),top:-o.offsetTop+(0,nk.int)(a.paddingTop)+(0,nk.int)(r.marginTop),right:(0,nS.innerWidth)(e)-(0,nS.outerWidth)(o)-o.offsetLeft+(0,nk.int)(a.paddingRight)-(0,nk.int)(r.marginRight),bottom:(0,nS.innerHeight)(e)-(0,nS.outerHeight)(o)-o.offsetTop+(0,nk.int)(a.paddingBottom)-(0,nk.int)(r.marginBottom)}}return(0,nk.isNum)(i.right)&&(t=Math.min(t,i.right)),(0,nk.isNum)(i.bottom)&&(n=Math.min(n,i.bottom)),(0,nk.isNum)(i.left)&&(t=Math.max(t,i.left)),(0,nk.isNum)(i.top)&&(n=Math.max(n,i.top)),[t,n]},nM.getControlPosition=function(e,t,n){let r="number"==typeof t?(0,nS.getTouch)(e,t):null;if("number"==typeof t&&!r)return null;let i=nD(n),o=n.props.offsetParent||i.offsetParent||i.ownerDocument.body;return(0,nS.offsetXYFromParent)(r||e,o,n.props.scale)}
42,nM.snapToGrid=function(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]};var nB={},nU={};Object.defineProperty(nU,"__esModule",{value:!0}),nU.default=function(){},Object.defineProperty(nB,"__esModule",{value:!0}),nB.default=void 0;var nH=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=nq(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(k),nF=nW(nx),nz=nW(E),nG=nW(nU);function nW(e){return e&&e.__esModule?e:{default:e}}function nq(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(nq=function(e){return e?n:t})(e)}function nV(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let nZ={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},nY=nZ.mouse,nX=class extends nH.Component{constructor(){super(...arguments),nV(this,"dragging",!1),nV(this,"lastX",NaN),nV(this,"lastY",NaN),nV(this,"touchIdentifier",null),nV(this,"mounted",!1),nV(this,"handleDragStart",e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;let t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw Error("<DraggableCore> not mounted on DragStart!");let{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!(0,nS.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,nS.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"===e.type&&e.preventDefault();let r=(0,nS.getTouchIdentifier)(e);this.touchIdentifier=r;let i=(0,nM.getControlPosition)(e,r,this);if(null==i)return;let{x:o,y:a}=i,l=(0,nM.createCoreData)(this,o,a);(0,nG.default)("DraggableCore: handleDragStart: %j",l),(0,nG.default)("calling",this.props.onStart),!1===this.props.onStart(e,l)||!1===this.mounted||(this.props.enableUserSelectHack&&(0,nS.addUserSelectStyles)(n),this.dragging=!0,this.lastX=o,this.lastY=a,(0,nS.addEvent)(n,nY.move,this.handleDrag),(0,nS.addEvent)(n,nY.stop,this.handleDragStop))}),nV(this,"handleDrag",e=>{let t=(0,nM.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=(0,nM.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}let i=(0,nM.createCoreData)(this,n,r);if((0,nG.default)("DraggableCore: handleDrag: %j",i),!1===this.props.onDrag(e,i)||!1===this.mounted){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{let e=document.createEvent("MouseEvents");e.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(e)}return}this.lastX=n,this.lastY=r}),nV(this,"handleDragStop",e=>{if(!this.dragging)return;let t=(0,nM.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=r-this.lastY||0;[e,t]=(0,nM.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,r=this.lastY+t}let i=(0,nM.createCoreData)(this,n,r);if(!1===this.props.onStop(e,i)||!1===this.mounted)return!1;let o=this.findDOMNode();o&&this.props.enableUserSelectHack&&(0,nS.removeUserSelectStyles)(o.ownerDocument),(0,nG.default)("DraggableCore: handleDragStop: %j",i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,o&&((0,nG.default)("DraggableCore: Removing handlers"),(0,nS.removeEvent)(o.ownerDocument,nY.move,this.handleDrag),(0,nS.removeEvent)(o.ownerDocument,nY.stop,this.handleDragStop))}),nV(this,"onMouseDown",e=>(nY=nZ.mouse,this.handleDragStart(e))),nV(this,"onMouseUp",e=>(nY=nZ.mouse,this.handleDragStop(e))),nV(this,"onTouchStart",e=>(nY=nZ.touch,this.handleDragStart(e))),nV(this,"onTouchEnd",e=>(nY=nZ.touch,this.handleDragStop(e)))}componentDidMount(){this.mounted=!0;let e=this.findDOMNode();e&&(0,nS.addEvent)(e,nZ.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;let e=this.findDOMNode();if(e){let{ownerDocument:t}=e;(0,nS.removeEvent)(t,nZ.mouse.move,this.handleDrag),(0,nS.removeEvent)(t,nZ.touch.move,this.handleDrag),(0,nS.removeEvent)(t,nZ.mouse.stop,this.handleDragStop),(0,nS.removeEvent)(t,nZ.touch.stop,this.handleDragStop),(0,nS.removeEvent)(e,nZ.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,nS.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return null!==(e=this.props)&&void 0!==e&&e.nodeRef?null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current:nz.default.findDOMNode(this)}render(){return nH.cloneElement(nH.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};
42nB.default=nX,nV(nX,"displayName","DraggableCore"),nV(nX,"propTypes",{allowAnyClick:nF.default.bool,children:nF.default.node.isRequired,disabled:nF.default.bool,enableUserSelectHack:nF.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw Error("Draggable's offsetParent must be a DOM Node.")},grid:nF.default.arrayOf(nF.default.number),handle:nF.default.string,cancel:nF.default.string,nodeRef:nF.default.object,onStart:nF.default.func,onDrag:nF.default.func,onStop:nF.default.func,onMouseDown:nF.default.func,scale:nF.default.number,className:nk.dontSetMe,style:nk.dontSetMe,transform:nk.dontSetMe}),nV(nX,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return o.default}}),e.default=void 0;var t=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(k),n=l(nx),r=l(E),i=l(nw),o=l(nB),a=l(nU);function l(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class d extends t.Component{static getDerivedStateFromProps(e,t){let{position:n}=e,{prevPropsPosition:r}=t;return n&&(!r||n.x!==r.x||n.y!==r.y)?((0,a.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:{...n}}):null}constructor(e){super(e),u(this,"onDragStart",(e,t)=>{if((0,a.default)("Draggable: onDragStart: %j",t),!1===this.props.onStart(e,(0,nM.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})}),u(this,"onDrag",(e,t)=>{if(!this.state.dragging)return!1;(0,a.default)("Draggable: onDrag: %j",t);let n=(0,nM.createDraggableData)(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){let{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;let[i,o]=(0,nM.getBoundPosition)(this,r.x,r.y);r.x=i,r.y=o,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(!1===this.props.onDrag(e,n))return!1;this.setState(r)}),u(this,"onDragStop",(e,t)=>{if(!this.state.dragging||!1===this.props.onStop(e,(0,nM.createDraggableData)(this,t)))return!1;(0,a.default)("Draggable: onDragStop: %j",t);let n={dragging:!1,slackX:0,slackY:0};if(this.props.position){let{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)}),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},e.position&&!(e.onDrag||e.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){"u">typeof window.SVGElement&&this.findDOMNode() instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var e,t;return null!==(e=null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current)&&void 0!==e?e:r.default.findDOMNode(this)}render(){let{axis:e,bounds:n,children:r,defaultPosition:a,defaultClassName:l,defaultClassNameDragging:s,defaultClassNameDragged:u,position:d,positionOffset:h,scale:p,...f}=this.props,m={},g=null,y=!d||this.state.dragging,v=d||a,b={x:(0,nM.canDragX)(this)&&y?this.state.x:v.x,y:(0,nM.canDragY)(this)&&y?this.state.y:v.y};this.state.isElementSVG?g=(0,nS.createSVGTransform)(b,h):m=(0,nS.createCSSTransform)(b,h);let x=(0,i.default)(r.props.className||"",l,{[s]:this.state.dragging,[u]:this.state.dragged});return t.createElement(o.default,c({},f,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(r),{className:x,style:{...r.props.style,...m},transform:g}))}}e.default=d,u(d,"displayName","Draggable"),u(d,"propTypes",{...o.default.propT
42ypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:nk.dontSetMe,style:nk.dontSetMe,transform:nk.dontSetMe}),u(d,"defaultProps",{...o.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(nv);let{default:nK,DraggableCore:n$}=nv;ny.exports=nK,ny.exports.default=nK,ny.exports.DraggableCore=n$;let nJ=P(ny.exports),nQ=({color:e="#fff"})=>(0,S.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16.059",viewBox:"0 0 16 16.059",children:(0,S.jsx)("path",{id:"close_FILL0_wght300_GRAD-25_opsz20",d:"M260.732-685.248l-1.231-1.26,6.74-6.769-6.74-6.769,1.231-1.26,6.769,6.769,6.769-6.769,1.231,1.26-6.74,6.769,6.74,6.769-1.231,1.26-6.769-6.769Z",transform:"translate(-259.501 701.307)",fill:e})}),n0=()=>(0,S.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",children:(0,S.jsx)("path",{id:"open_in_new_down_FILL0_wght300_GRAD0_opsz24",d:"M141.7-804a1.642,1.642,0,0,1-1.207-.494A1.642,1.642,0,0,1,140-805.7v-12.6a1.642,1.642,0,0,1,.494-1.207A1.643,1.643,0,0,1,141.7-820h12.6a1.643,1.643,0,0,1,1.207.494A1.642,1.642,0,0,1,156-818.3v6.118h-1.412V-818.3a.277.277,0,0,0-.09-.2.277.277,0,0,0-.2-.091H141.7a.277.277,0,0,0-.2.091.276.276,0,0,0-.09.2v12.6a.277.277,0,0,0,.09.2.277.277,0,0,0,.2.091h6.118V-804Zm8.181,0v-1.412h3.723l-8.717-8.717.983-.983,8.717,8.693v-3.7H156V-804Z",transform:"translate(819.999 156.001) rotate(-90)",fill:"#fff"})}),n1=()=>(0,S.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",children:(0,S.jsx)("g",{id:"Group_142","data-name":"Group 142",transform:"translate(-1149 -14)",children:(0,S.jsxs)("g",{id:"Group_141","data-name":"Group 141",children:[(0,S.jsx)("path",{id:"open_in_new_down_FILL0_wght300_GRAD0_opsz24",d:"M141.7-804a1.642,1.642,0,0,1-1.207-.494A1.642,1.642,0,0,1,140-805.7v-12.6a1.642,1.642,0,0,1,.494-1.207A1.643,1.643,0,0,1,141.7-820h12.6a1.643,1.643,0,0,1,1.207.494A1.642,1.642,0,0,1,156-818.3v6.118h-1.412V-818.3a.277.277,0,0,0-.09-.2.277.277,0,0,0-.2-.091H141.7a.277.277,0,0,0-.2.091.276.276,0,0,0-.09.2v12.6a.277.277,0,0,0,.09.2.277.277,0,0,0,.2.091h6.118V-804Z",transform:"translate(1968.999 170.001) rotate(-90)",fill:"#fff"}),(0,S.jsx)("path",{id:"open_in_new_down_FILL0_wght300_GRAD0_opsz24-2","data-name":"open_in_new_down_FILL0_wght300_GRAD0_opsz24",d:"M149.883-804v-1.412h3.723l-8.717-8.717.983-.983,8.717,8.693v-3.7H156V-804Z",transform:"translate(349.89 -130.89) rotate(90)",fill:"#fff"})]})})}),n2=({color:e="#817F7F"})=>(0,S.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"17.684",viewBox:"0 0 21 17.684",children:(0,S.jsx)("path",{id:"Path_12151","data-name":"Path 12151",d:"M120-782.316v-6.632l8.842-2.211L120-793.368V-800l21,8.842Z",transform:"translate(-120 800)",fill:e})}),n3=()=>(0,S.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"21",viewBox:"0 0 21 21",children:(0,S.jsxs)("g",{id:"Group_58","data-name":"Group 58",transform:"translate(-399 -1283)",children:[(0,S.jsx)("circle",{id:"Ellipse_26","data-name":"Ellipse 26",cx:"10.5",cy:"10.5",r:"10.5",transform:"translate(399 1283)",fill:"#c3c3c3"}),(0,S.jsx)("g",{id:"Group_56","data-name":"Group 56",transform:"translate(1.453 -3.064)",children:(0,S.jsx)("path",{id:"chevron_right_FILL1_wght200_GRAD0_opsz24",d:"M3.877,4.473,0,.6.6,0,5.07,4.473.6,8.946,0,8.35Z",transform:"translate(411.9 1294.986) rotate(-270)",fill:"#6c6c6c"})})]})}),n6=({width:e=70,height:t=60,doAnimation:n=!1})=>(Math.random().toString(),(0,S.jsx)("div",{children:(0,S.jsx)("img",{id:"Boticon",className:"botIcon",style:{height:t+"px"},alt:"Bot Icon",width:e,height:t,src:"data:image/webp;base64,UklGRiQSAABXRUJQVlA4WAoAAAAQAAAAugAAnAAAQUxQSJUGAAABoEZt2xlJeqttVY9t27Zt27anp2tsT2OwY63GVmtstcZue1TKu0hVUvm+N/92T0RMAPz3otfgrTtmlFFh2r7HbvxARBTuHerloKbKTIkyodUpv7TRqCLHxiteoJyfguqpHIemQa/QhsL9CXnUinf3PzLQ5uaoQb6qI0/TcdeMqFDDpT51HNRDybnhBlR4wtr6dirArvbGWGTz1ZJqpLm0WnggBVl+tHK0O03agQdSkYPfT/R3pqbIjEs/kJtZRzs6kFFu6uVnAnI2NWxRWf45Nl35CnkdM7UIzzz67E5Crgu3x+TllMPAo6lIYNruTi4cAgBNmbFHP/AOERODWjpwSPTSld1h7zhmyE7+8OLp0fK82gwAhYfvfMWVdyd0g5qXLejv7gB8v7wcxAv3CY0TePDjxJiiQOWV3yz8279P4KYYM0vC3kn5gdALCRprRNswdLEG0BpmLiOpFjOGQUDta+wjqYrAyhGgVpOOyyVVYOYYOe7ZeFBSWWbOkVMgG89KKsVMBDkNzHhPUglmbpMzEPGnpKLMPCZnASLaSynETDw5GxCxpJR8zHwk5yAi9pKSm5nv5FxAxGVS/JgR7Km5jYh/SPFiBt2peYWIL6W4sZObmjRENDlLcGanCDEaIyJiWQkO7JQlxlf4V3cJkMpMDWKKikyX8paZRsRUxX9vk1DIzMxQYpqLnJOwCpm9RUxXkUeWKh9d5O+Vzo6pJC1DRb5YaJCKmHwMGV4BlQLmFyJjqshPjYj7J2T982Q9YlpVKgJFjK4i45GTcR5EbBEx+Yr8wgucS8Q+EbOPyGNunCHiuEi6o8gHbrwjIiAT8ccKNxB9xI1MIsChcnUPsLiHGwlUWD+LG3cpyvuNF0EUgY4XU0hyucqHME+SwPMbBxICnIDm3MjBmUB1PR40JKsjBzIcyOrBgQNAdnMO1KKrNHvRQGiVEU2tc8hgbiIhzY1ozG8VhDHnREggIna3LpC1G0CoDhFHWKeNZ6wdNZOsgxrfmboF1MyWAG0FlrqTo5MC1W+wE6whZ5UkcAxiJVoL5GyUBnYBJiauaoFOu6KNe55DxFAZAPLmmfFTaaldgNDRX1D8T1kAoET9mpXLlOj/R6oyfqzTAqE1BbT4uphMlsufU8CTXRWB1HC0Mqe+bbx/t113INbDYA2a9xe3QedPaPse1DRHiV+3DXGXoeVsnW43KjHZl5hRUhDxy9q6dhKGmFGxR4kZKwMipsQ/u38z4uKZY0f2NoHqGahcYXk9H0o2yGO1+XYGKjz11s4qVBy3GZumTb40RHIJMXEkCZc4hfikKgFruYU/J/CvwhduobAhP++gcEjo5jVLn/MIMa0J78TrZnMJM7uQADVvcwmFIG8KwOUClxDPe1MA9tPSuYTRxSkA8Grea7xu074TV24/iXvz7v2buIdhx7a9Yw5Tm5Eg8zH2UD+QqrzfOYDCNKKWIB932FOkiWXisAx4zJGgzshkxScyYAGC7rLRob0ce+mpjGyOh2sy4KYC1AQzsg6qGWRA/SYPUpwzGDkGsFcOxMf5LfnXH7Ti94e72zhwrB4yeh+gnDwY7eNeod/8vbdT0OLnpRW51Z+VTACIlgczzQJKjj7szqcgVtAXYJRMMs/mUxgzxpyUBCUlNVaY69q7u+d1KeVoq9fMKP5nb0WVi0dR47PfVg5qViG3iyWNq7ZY1cZdR8xat/fsowQk0zRUOf6Ts1CqKSclKTk5Neu7GYm
42+kFchVaIMqEKXK6PHV1SlCxRR6gOq04SaSoAAlYI5LWyXZ0mWWsEvtqr/+3dUsets4nhBQHU70RZVBVS5WR42aIeq911N2ap+UT/4u1x9M1EFGzvI1BtVsb6OLAVi1BEGyzEpHVXyb3IcQbV8XYYFqJqjJXkfFtRQ6tWQKa2bVJJSPBrVrfnDmfVj6mtB3iOoWvWxx5cMqu4KNvTLVh/ChwvrxzTQggLXoprUx51aOqiWGyh2fvChU9fCwsKinn7MFsgSPkSFHQnoUckJGHbwL16zRfdRM5cFHTxzMzrhJwX6uFNLB9VyAw67FKhQv/PgyYs3HzhzIy5Jz5nvD44E9KjkBFR6F6nWstfYBTqdbvmOP8NiEg0K0LduNlV3+K1glT725OrA2e1K2APtdtrSDbqNCth6NDI+Sy5TLvi3T4uJm8/efX7n8KIelVxAfXqWbjEs8PAjoxQcJqKSc3d5ImGAmgLwu2DVGzd1BZolmZZSS4P6LjRm4/59wRPLwP8cBQBWUDggaAsAAPA7AJ0BKrsAnQA+kUCaSSWjoiEnltywsBIJQQ4AMuhmE+0se792KOva9/2Xqu5bn1q+Zb9lPWk9HH+K9QD+n/47rffQQ8un2dv7ZgOH4O+H/+Z8S/PYLuvd4Tzg4b7KAV2zXPLG+w9EZAzqMpUcrme3WfsQjOj4TLqiBTQ7ACiYAyfq93ZGIbBsFtZIKoZ9XT1ze65qmrActzgo9BuPhuY9oa0o0lS3uLrti7eYPN7ywZpgVCOduHvLMRkLPvz0b43OiaSVApiYT147bsaSI+S32JSsQ3R2IVrt2BkQArRaNyW/imuhBotPS8VZQeW+cwxso9igQzlJNCqmr5CxURtoiNEdpzxO1mRil/Mb/01ivS9uEFMIqlciUZIimMrltZLc5R17Q9Ul0nJgMGI1oay3TVJfupPdCWZ1NWb8Te3v+rHW5OVl+vjw0HpTxU2+0zBGd1LeBTNXhDfgds7Z4/g6g6d34c5//xRzhOsX8mAkElJ3ov22QCTzwk1fnxbyu8dAADaUw8sErOQzFc0tWmSZ9Vh++9tjn8K2VCiF5IM3NXGb3kRXdzVzXDR/GBq986JuqCNWUPU3X3VUFfc4AcyoB7BdPxipZDNXBWVMt9X5b8TCaK2KciQK8snKZwqngzYAo/g3gPDgAP7IYBHRdXZSKDhW+KUDMI//weqRSgCJ/vECBgzXPObqs887AV/sfgDpLTEGve/TWTeD4jt/nhu+r1+PQ7RuNwyliyTfIPv29ONvs+3PGx8X9Blvfb1bMETVDMYlMPvOc/d/BK/iwxYMhTduMcMZ/fYrMDteoCcEGZUgcqkTAa2b8yH8lY4h0NnNgRbn3Nu/rTMFvWPUxcOASCMQPaKNczaOSi+nrK8f8u4bUQdhU7U36Z/x6qvpxBy4dPUV31zoYtGqVvYv3/yTm0FcaSy3/kqidsPj5OUZtN46wSoUj0qZyI96NNQUubpIfIOubc+/0yWtuWXMERn1bzMUbOfi53nQXwkO0V+PCg0Y935uR8lK3E6zL/+H2wgurMMc4MJirsWcIId5gcFnHoYmREHmNoGcFe/qTGrxV7fhC5wJgA8w3V5SOl+nL9KVEOdy2n0DBJw2HWXZd/0X2XxJ3SjTdx9AEkXXTdMdckrBnUYwlp7SE1Fc9/yB8CAgS3F61KpWP0xnw/n/jPBu1Q2zrjWe/jOSOzvpH2Qz66g/8sMMO7h3wR7x/LrB0yUb/wTYUGvSJ4INqi7b/O8YvBSfhrAwa9utAZO75dclCKKKlV3Yi0irW8ekhLfLb61DLGMCyGUwb5Yn4nxxEXlT+KfLkBOC2kJkS6YLQ0pf+2lDJuQoBMQQ9b4UUhj+Zp3xYeIGLF1C9uzQ9tEEo81AOKN1q9+7geAWZLmDsrRDcpFNs9cC6F3JKpWj2lKNBznrEj1x4mNdzmY44NOG+raJLspagT2j5UkSMlMSE1O1z2PdFn8FPQbS+J92KHhKoDa1wOwDb1hnQ5ZQka/xGVbsvEsGmFzoI+QSt5HctJYBfg2x24Ln1ZJtuj/ydGqOkZUuaGkjPbwkHTlu4Wd7/3GeEXG6hWo2JXYeX3vx/lWQW5hmTzjFdR1CXLSD/i6DW6sbSBqY4tUNnxl3MBMMiiPxQM//E2jV1GPqC0Iedk7n7Iet/qkamO1M/iRtCKK46bAEq9mnSLZzCfOSfWXOMmjpnsiHhP++yMB2h1+8B0r1IyG5Xd/w+tvtp/sxv3s7x6ImzASkTwjMycEGq/qkvMARkwLzHBwYgU7JCK4HpJq4DRXE+f2LEkaNfQhscq4BA484N7opZBhc2IykPmkkcsy6CQICc/UPgrzKDchcR7UQ1kDH8nvdqChoQBYg9JWKAl1Awy99aiFTWEJri2FRfEKoe9jBJaT5ynqSkw9nmWTMu8cjWZ2yPUxfSZxNtBRSzB5+wZ4K1LixM9Ljhk8BCfK6NDzlgEvIXLUQQbeH3bBOrdg9UIPH0Q63SGabI3JlxpnJ9+I+H/62xtTuKDJanrZAuckhpreF/vk/dk5yOlOvK7hw9vytE7z0IkFNm1Q5yNifUdkoUpdhJ3lgFvRbYoI4/CEz7gTWbq4RRZasaelg7wtZYRJ8I93bq801p4gWwNiFNeD8t/P8f9CdAFKW5A9X6G6fZJ2o/fgRLKSMfi2d0pMb2WrqqZEpvN4NMgqocqEbeGzCsPyN99Fd/UtADEJdhhk68xFSCGKq5B0RXIzVxJ6wgtEbaZKcjOleEzv1r93JYDfeShO6UWE94aUM8ooTiV9OWoX3AQ87IbY1BGfifMLJOhLde5BbIHw4H04oeqWruYOcEBkVrIbf5FL1UmGGmWsy4zH3uNetBZfUx7ITYl/edKQkG5LfjWGHKUKR1u20llBYdA3V8misfbgrmPvurfaQ+h4Ns+/AUGY2ngNdU9P/8ECSXB/m5K+r/CYRv2iM5rd2odBMFvFjmNOnkgR//hOESef4tgn0sSxxvmDNWFnse6NRI6mEFVmyAxQ1qEKV8AhKrvRoJCH2ABYY0moSoDE8xxiopKx57ePHMeRtTyDxwL+4BAGVzf0z7D5b0sKnPPVZUAMIxEPcNnPtUxHD09gSTNpIRA+C0se/YQ47yMdlPAwolZfxL2wLjw29N8vGzckAypPJSWwK4dKmVbue2FTTYRq8me0XjawxMNTvhV1d6F8WbEPjLCLObmXJPOpjJGeag6J6U62cJYMTaTiabUVDhd+J9ijgNgGtKNoOZ/xUShSYRPumNdGeG0jYU0SX8mjH3J/YNCC0Fb/Nef/8IIrcM+XMsz5/AaSYHzfphIqaTv7oxAJOEDfg2Xr9remfNVSERePM6Ob8F8j3Lhpd7LlqbDcj/+KZazbFK8dIYIk7ybkeebk4KuwG8//kUxIoNaEDdXdHPBEpY8dpmdGo8izgYR86UhkKWh/UDd3l94YOsukuEdfbwupvittWxlQfwmmJcpMFPfkzH9/rY3jKi2sDyXqsaRuGZ5yVd742CAUtpeQxem8HUhxjqmYOTavztXFcjOv0BpGklmOux4fljoCKN9lgF23+e6eCXSaecRDuw8H57yUvvk4W3lovHGDBMN+bUCKhTrNoQzmN35ZPUWORLSsSAsFvZuGx1f8Z8rteh4kpdmXnTO6W9lgnIPStWFwp+BYoCSzbr1yDY5fCws7mjQu4wzg3qDG6q2/oAYSO0/jghbNRvf/BGupwiIBO6ZCCISG5U8VgJ8iqX8a61FDB78qMAELPdlmBlyuQMPFDO0C2O47KOMlQCrXY5fOWQRgcpL/PIVV32LDouSz5qoEgeDXksba5me8AfvhE+yA5kt+JfMUYnL9GFFB6cw/XCJ2XVf/3iCsP9tuEK8qYTqxudfr9NYz5zQj4jQl3zc1sklQ7TeZguaf6DUYGcKfo6FrX/lDB81/5QP4ukL09MStw92F7jNDIg+p6ZatWjiWSx4/O94ieCxWlC0rvj4/7CP5RjoaljrxePPRDWrTc/eVq5eTC2SIOROpGlG+30KZA0RFzsJxTAZ3rp3DmlF9IyPSNsVXLVD2NYkHycijZjtlb2bv2mJa7+sIlMQ2z+3M+ziPpagGpuL6Z6xLxkSRDEB1Yrp3xoG70i40MNDrgdm5pQ2o49wD9nLp9Uko3hm8Dmc/xriW1SjDegxwVJC0GCLjCIGibLDlmzY9KYayk6qDyr9zUTDMu+nVzbe3hhLOhcn9IM9Ys+ZphzGYrvRBmh6/Se0pD1x0/kt+RjCype4Wa6R6OB/e4iTUHtjMatMGkgI/jE/7HR9Hv9fO3QM/Aa8WSIodEj9m3oC1YFIkCn21ZzAe7QfQBHVLiu5rb5Anf8Hm0qbMCWyvcIG8PRiIF0vAiGLAEZROBE9iOglFglLZoBO03wVJIjBN1xsFh0cscBdwAAAA="})})),n4=()=>(0,S.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"23.868",height:"23.868",viewBox:"0 0 23.868 23.868",children:(0,S.jsx)("path",{id:"stop_circle_FILL0_wght400_GRAD0_opsz24",d:"M87.161-863.292h9.547v-9.547H87.161Zm4.774,7.161a11.62,11.62,0,0,1-4.654-.94,12.051,12.051,0,0,1-3.789-2.551,12.052,12.052,0,0,1-2.551-3.789,11.621,11.621,0,0,1-.94-4.654,11.62,11.62,0,0,1,.94-4.654,12.052,12.052,0,0,1,2.551-3.789,12.052,12.052,0,0,1,3.789-2.551,11.621,11.621,0,0,1,4.654-.94,11.621,11.621,0,0,1,4.654.94,12.052,12.052,0,0,1,3.789,2.551,12.052,12.052,0,0,1,2.551,3.789,11.621,11.621,0,0,1,.94,4.654,11.621,11.621,0,0,1-.94,4.654,12.052,12.052,0,0,1-2.551,3.789,12.051,12.051,0,0,1-3.789,2.551A11.62,11.62,0,0,1,91.934-856.132Zm0-2.387a9.215,9.215,0,0,0,6.773-2.775,9.215,9.215,0,0,0,2.775-6.773,9.214,9.214,0,0,0-2.775-6.773,9.214,9.214,0,0,0-6.773-2.775,9.214,9.214,0,0,0-6.773,2.775,9.214,9.214,0,0,0-2.775,6.773,9.215,9.215,0,0,0,2.775,6.773A9.215,9.215,0,0,0,91.934-858.518ZM91.934-868.066Z",transform:"translate(-80 880)",fill:"#0071BC"})}),n8=()=>(0,S.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21.145",height:"14.017",viewBox:"0 0 21.145 14.017",children:(0,S.jsx)("path",{id:"menu_FILL0_wght300_GRAD0_opsz24",d:"M140-691.367v-1.866h21.145v1.866Zm0-6.076v-1.866h21.145v1.866Zm0-6.075v-1.866h21.145v1.866Z",transform:"translate(-140.001 705.384)",fill:"#309be7"})}),n5=({width:e=19,height:t=19,color:n="#200e32"})=>(0,S.jsx)("svg",{id:"Iconly_Light-outline_Folder","data-name":"Iconly/Light-outline/Folder",xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 19 19",children:(0,S.jsx)("g",{id:"Folder",transform:"translate(0)",children:(0,S.jsx)("path",{id:"Folder-2","data-name":"Folder",d:"M5.918,19a5.963,5.963,0,0,1-4.336-1.582A5.961,5.961,0,0,1,0,13.083V5.918a6.656,6.656,0,0,1,1.264-4.4A4.892,4.892,0,0,1,5.18,0H7.015A2.794,2.794,0,0,1,9.242,1.114L10.08,2.23a1.42,1.42,0,0,0,1.126.564h2.6c3.546,0,5.2,1.82,5.2,5.728l-.025,4.561a5.966,5.966,0,0,1-1.58,4.335A5.954,5.954,0,0,1,13.065,19ZM1.377,5.918v7.166a4.566,4.566,0,0,0,1.178,3.36,4.568,4.568,0,0,0,3.362,1.177h7.148a4.555,4.555,0,0,0,3.356-1.179A4.575,4.575,0,0,0,17.6,13.079l.026-4.561a4.97,4.97,0,0,0-.868-3.344,3.67,3.67,0,0,0-2.952-1H11.2A2.805,2.805,0,0,1,8.979,3.059L8.141,1.943a1.412,1.412,0,0,0-1.125-.563H5.18C2.515,1.379,1.377,2.736,1.377,5.918Zm3.7,6.689a.689.689,0,0,1-.093-1.372l.093-.007h8.807A.69.69,0,0,1,13.98,12.6l-.093.006Z",fill:n})})}),n7=()=>(0,S.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15.5",height:"16.121",viewBox:"0 0 15.5 16.
42121",children:(0,S.jsxs)("g",{id:"arrow-left",transform:"translate(-4.25 -3.939)",children:[(0,S.jsx)("line",{id:"Line_89","data-name":"Line 89",x1:"14",transform:"translate(5 12)",fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),(0,S.jsx)("path",{id:"Path_34","data-name":"Path 34",d:"M12,19,5,12l7-7",fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})]})}),n9=({})=>(0,S.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"5.561",height:"9.621",viewBox:"0 0 5.561 9.621",children:(0,S.jsx)("path",{id:"Path_11228","data-name":"Path 11228",d:"M8.25,4.5,12,8.25,8.25,12",transform:"translate(-7.189 -3.439)",fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})}),re=()=>(0,S.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,S.jsxs)("g",{id:"Group_16255","data-name":"Group 16255",transform:"translate(-2908 -541)",children:[(0,S.jsx)("path",{id:"Path_11264","data-name":"Path 11264",d:"M0,0H24V24H0Z",transform:"translate(2908 541)",fill:"none"}),(0,S.jsx)("path",{id:"Path_11265","data-name":"Path 11265",d:"M12,18H5a2,2,0,0,1-2-2V6A2,2,0,0,1,5,4H19a2,2,0,0,1,2,2v7.5",transform:"translate(2908 541)",fill:"none",stroke:"#309be7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),(0,S.jsx)("path",{id:"Path_11266","data-name":"Path 11266",d:"M3,6l9,6,9-6",transform:"translate(2908 541)",fill:"none",stroke:"#309be7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),(0,S.jsx)("path",{id:"Path_11267","data-name":"Path 11267",d:"M15,18h6",transform:"translate(2908 541)",fill:"none",stroke:"#309be7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),(0,S.jsx)("path",{id:"Path_11268","data-name":"Path 11268",d:"M18,15l3,3-3,3",transform:"translate(2908 541)",fill:"none",stroke:"#309be7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})]})}),rt=({fillColor:e="#309be7"})=>(0,S.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,S.jsxs)("g",{id:"Group_16851","data-name":"Group 16851",transform:"translate(-377 -777)",children:[(0,S.jsx)("path",{id:"Path_11309","data-name":"Path 11309",d:"M0,0H24V24H0Z",transform:"translate(377 777)",fill:"none"}),(0,S.jsx)("path",{id:"Path_11310","data-name":"Path 11310",d:"M6,12,3,12A3,3,0,1,0,6,9a3,3,0,0,0-3,3",transform:"translate(377 777)",fill:"none",stroke:"#016394","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"}),(0,S.jsx)("path",{id:"Path_11311","data-name":"Path 11311",d:"M18,6,15,6a3,3,0,1,0,3-3,3,3,0,0,0-3,3",transform:"translate(377 777)",fill:"none",stroke:"#016394","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"}),(0,S.jsx)("path",{id:"Path_11312","data-name":"Path 11312",d:"M18,18m-3,0a3,3,0,1,0,3-3,3,3,0,0,0-3,3",transform:"translate(377 777)",fill:"none",stroke:"#016394","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"}),(0,S.jsx)("path",{id:"Path_11313","data-name":"Path 11313",d:"M8.7,10.7l6.6-3.4",transform:"translate(377 777)",fill:"none",stroke:"#016394","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"}),(0,S.jsx)("path",{id:"Path_11314","data-name":"Path 11314",d:"M8.7,13.3l6.6,3.4",transform:"translate(377 777)",fill:"none",stroke:"#016394","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"})]})}),rn=()=>(0,S.jsxs)("svg",{id:"Group_16296","data-name":"Group 16296",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,S.jsx)("path",{id:"Path_11323","data-name":"Path 11323",d:"M0,0H24V24H0Z",fill:"none"}),(0,S.jsx)("path",{id:"Path_11324","data-name":"Path 11324",d:"M3,21l1.65-3.8a9,9,0,1,1,3.4,2.9L3,21",fill:"none",stroke:"#39c107",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),(0,S.jsx)("path",{id:"Path_11325","data-name":"Path 11325",d:"M9,10a.5.5,0,0,0,1,0V9A.5.5,0,0,0,9,9v1a5,5,0,0,0,5,5h1a.5.5,0,0,0,0-1H14a.5.5,0,0,0,0,1",fill:"none",stroke:"#39c107",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})]}),rr=({})=>(0,S.jsxs)("svg",{id:"Group_16293","data-name":"Group 16293",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,S.jsx)("path",{id:"Path_11326","data-name":"Path 11326",d:"M0,0H24V24H0Z",fill:"none"}),(0,S.jsx)("path",{id:"Path_11327","data-name":"Path 11327",d:"M3,12a9,9,0,1,0,9-9,9,9,0,0,0-9,9",f
42ill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),(0,S.jsx)("path",{id:"Path_11328","data-name":"Path 11328",d:"M3.6,9H20.4",fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),(0,S.jsx)("path",{id:"Path_11329","data-name":"Path 11329",d:"M3.6,15H20.4",fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),(0,S.jsx)("path",{id:"Path_11330","data-name":"Path 11330",d:"M11.5,3a17,17,0,0,0,0,18",fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),(0,S.jsx)("path",{id:"Path_11331","data-name":"Path 11331",d:"M12.5,3a17,17,0,0,1,0,18",fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})]}),ri=({})=>(0,S.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20.5",height:"21.625",viewBox:"0 0 20.5 21.625",children:(0,S.jsxs)("g",{id:"Group_16187","data-name":"Group 16187",transform:"translate(-1107.5 -476.375)",children:[(0,S.jsxs)("g",{id:"file-text_3_","data-name":"file-text (3)",transform:"translate(1104 474.875)",children:[(0,S.jsx)("path",{id:"Path_11222","data-name":"Path 11222",d:"M13.375,2h-7.5A1.875,1.875,0,0,0,4,3.875v15A1.875,1.875,0,0,0,5.875,20.75h11.25A1.875,1.875,0,0,0,19,18.875V7.625Z",fill:"none",stroke:"#309be7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1"}),(0,S.jsx)("path",{id:"Path_11223","data-name":"Path 11223",d:"M14,2V8h6",transform:"translate(-1)",fill:"none",stroke:"#309be7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1"}),(0,S.jsx)("line",{id:"Line_179","data-name":"Line 179",x1:"6",transform:"translate(8.5 12.312)",fill:"none",stroke:"#309be7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1"}),(0,S.jsx)("line",{id:"Line_180","data-name":"Line 180",x1:"6",transform:"translate(8.5 16.062)",fill:"none",stroke:"#309be7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1"}),(0,S.jsx)("path",{id:"Path_11224","data-name":"Path 11224",d:"M10,9H8",transform:"translate(-0.286 -0.438)",fill:"none",stroke:"#309be7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1"})]}),(0,S.jsx)("path",{id:"Ellipse_177_-_Outline","data-name":"Ellipse 177 - Outline",d:"M6.5,2A4.5,4.5,0,1,0,11,6.5,4.505,4.505,0,0,0,6.5,2m0-2A6.5,6.5,0,1,1,0,6.5,6.5,6.5,0,0,1,6.5,0Z",transform:"translate(1115 485)",fill:"#fff"}),(0,S.jsx)("path",{id:"Path_11231","data-name":"Path 11231",d:"M2.25,6.9A4.645,4.645,0,1,1,6.9,11.54,4.645,4.645,0,0,1,2.25,6.9ZM6.4,6.208a.715.715,0,0,1,1.013.813L7.073,8.372l.02-.01A.357.357,0,0,1,7.412,9l-.019.01A.715.715,0,0,1,6.38,8.2l.338-1.351-.02.01a.357.357,0,1,1-.32-.638l.02-.01Zm.5-.742a.357.357,0,1,0-.357-.357A.357.357,0,0,0,6.9,5.466Z",transform:"translate(1114.75 484.75)",fill:"#309be7",fillRule:"evenodd"})]})}),ro=({width:e=60,height:t=55})=>(Math.random().toString(),(0,S.jsxs)("svg",{style:{width:"20px",height:"15px",verticalAlign:"middle",fill:"#000",overflow:"hidden"},viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:[(0,S.jsx)("path",{d:"M640 768c-12.8 0-21.333333-4.266667-29.866667-12.8-17.066667-17.066667-17.066667-42.666667 0-59.733333l213.333333-213.333333c17.066667-17.066667 42.666667-17.066667 59.733333 0s17.066667 42.666667 0 59.733333l-213.333333 213.333333C661.333333 763.733333 652.8 768 640 768z"}),(0,S.jsx)("path",{d:"M853.333333 554.666667c-12.8 0-21.333333-4.266667-29.866667-12.8l-213.333333-213.333333c-17.066667-17.066667-17.066667-42.666667 0-59.733333s42.666667-17.066667 59.733333 0l213.333333 213.333333c17.066667 17.066667 17.066667 42.666667 0 59.733333C874.666667 550.4 866.133333 554.666667 853.333333 554.666667z"}),(0,S.jsx)("path",{d:"M853.333333 554.666667 170.666667 554.666667c-25.6 0-42.666667-17.066667-42.666667-42.666667s17.066667-42.666667 42.666667-42.666667l682.666667 0c25.6 0 42.666667 17.066667 42.666667 42.666667S878.933333 554.666667 853.333333 554.666667z"})]})),ra=()=>(0,S.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 10 10",children:(0,S.jsxs)("g",{id:"Group_16860","data-name":"Group 16860",transform:"translate(-1.5 -1.7)",children:[(0,S.jsx)("circle",{id:"Ellipse_215","data-name":"Ellipse 215",cx:"4.5",cy:"4.5",r:"4.5",transform:"translate(2 2.2)",fill:"#0071bc",stroke:"#0071bc","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1"}),(0,S.jsx)("path",{id:"Path_12155","data-name":"Path 12155",d:"M12,13.57V11.5",transform:"translate(-5.4 -5.13)",fill:"#0071bc",stroke:"#fff","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1"}),(0,S.jsx)("path",{id:"Path_12156","data-name":"Path 12156",d:"M12,8.006V8",transform:"translate(-5.4 -3.241)",fill:"#0071bc",stroke:"#fff","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1"})]})}),rl=({bgColor:e="#c3c3c3"})=>(0,S.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"21",viewBox:"0 0 21 21",children:(0,S.jsxs)("g",{id:"Group_58","data-name":"Group 58",transform:"translate(-399 -1283)",children:[(0,S.jsx)("circle",{id:"Ellipse_26","data-name":"Ellipse 26",cx:"10.5",cy:"10.5",r:"10.5",transform:"translate(399 1283)",fill:e}),(0,S.jsxs)("g",{id:"Group_56","data-name":"Group 56",transform:"translate(1.453 -1.064)",children:[(0,S.jsx)("path",{id:"chevron_right_FILL1_wght200_GRAD0_opsz24",d:"M3.877,4.473,0,.6.6,0,5.07,4.473.6,8.946,0,8.35Z",transform:"translate(412.521 1290.142) rotate(90)",fill:"#6c6c6c"}),(0,S.jsx)("path",{id:"chevron_right_FILL1_wght200_GRAD0_opsz24-2","data-name":"chevron_right_FILL1_wght200_GRAD0_opsz24",d:"M3.877,4.473,0,.6.6,0,5.07,4.473.6,8.946,0,8.35Z",transform:"translate(403.574 1298.986) rotate(-90)",fill:"#6c6c6c"})]})]})}),rs={container:"_container_g0k79_1",transparent:"_transparent_g0k79_7",primary:"_primary_g0k79_18",secondary:"_secondary_g0k79_33",outlined:"_outlined_g0k79_47","full-width":"_full-width_g0k79_61"},rc=(0,k.memo)(e=>{let{variant:t="primary",fullWidth:n=!1,children:r}=e,i={...e};return delete i.fullWidth,(0,S.jsx)("button",{...i,className:`_container_g0k79_1 ${rs[t]} ${rs[n?"full-width":"inline"]}`,children:r})}),ru=e=>{let{children:t,disabled:n,onClick:r,ariaLabel:i}=e;return(0,S.jsx)(rc,{variant:"transparent",type:"button",disabled:n,"aria-label":i,onClick:r,children:t})},rd={container:"_container_2uduy_1","disabled-click":"_disabled-click_2uduy_6"},rh={smileyOne:{icon:()=>(0,S.jsxs)("svg",{id:"Group_135","data-name":"Group 135",xmlns:"http://www.w3.org/2000/svg",width:"22.27",height:"22.27",viewBox:"0 0 22.27 22.27",children:[(0,S.jsx)("circle",{id:"Ellipse_35","data-name":"Ellipse 35",cx:"8.802",cy:"8.802",r:"8.802",transform:"translate(2.515 2.78)",fill:"#696969"}),(0,S.jsx)("path",{id:"Subtraction_2","data-name":"Subtraction 2",d:"M11.14,22.27A10.894,10.894,0,0,1,6.8,21.393,11.113,11.113,0,0,1,.877,15.48,10.87,10.87,0,0,1,0,11.14,10.894,10.894,0,0,1,.877,6.8,11.126,11.126,0,0,1,6.789.877,10.88,10.88,0,0,1,11.131,0a10.912,10.912,0,0,1,4.344.876,11.133,11.133,0,0,1,5.919,5.913,10.9,10.9,0,0,1,.877,4.341,10.894,10.894,0,0,1-.877,4.344,11.123,11.123,0,0,1-5.913,5.919A10.888,10.888,0,0,1,11.14,22.27Zm-.006-8.5a5.858,5.858,0,0,0-3.261.977,6.142,6.142,0,0,0-2.24,2.592h11a6.158,6.158,0,0,0-2.24-2.592A5.858,5.858,0,0,0,11.134,13.772Zm3.837-5.745
42h0l1.359,1.346.776-.775L14.971,6.462,12.849,8.6l.775.775L14.97,8.028Zm-7.671,0h0L8.646,9.374,9.422,8.6,7.3,6.462,5.163,8.6l.775.775L7.3,8.028Z",transform:"translate(0 0)",fill:"#d3d3d3"})]}),selectedIcon:()=>(0,S.jsxs)("svg",{id:"Component_2_2","data-name":"Component 2 â 2",xmlns:"http://www.w3.org/2000/svg",width:"22.27",height:"22.27",viewBox:"0 0 22.27 22.27",children:[(0,S.jsx)("circle",{id:"Ellipse_35","data-name":"Ellipse 35",cx:"8.802",cy:"8.802",r:"8.802",transform:"translate(2.515 2.78)",fill:"#f6f9fc"}),(0,S.jsx)("path",{id:"Subtraction_2","data-name":"Subtraction 2",d:"M11.14,22.27A10.894,10.894,0,0,1,6.8,21.393,11.113,11.113,0,0,1,.877,15.48,10.87,10.87,0,0,1,0,11.14,10.894,10.894,0,0,1,.877,6.8,11.126,11.126,0,0,1,6.789.877,10.88,10.88,0,0,1,11.131,0a10.912,10.912,0,0,1,4.344.876,11.133,11.133,0,0,1,5.919,5.913,10.9,10.9,0,0,1,.877,4.341,10.894,10.894,0,0,1-.877,4.344,11.123,11.123,0,0,1-5.913,5.919A10.888,10.888,0,0,1,11.14,22.27Zm-.006-8.5a5.858,5.858,0,0,0-3.261.977,6.142,6.142,0,0,0-2.24,2.592h11a6.158,6.158,0,0,0-2.24-2.592A5.858,5.858,0,0,0,11.134,13.772Zm3.837-5.745h0l1.359,1.346.776-.775L14.971,6.462,12.849,8.6l.775.775L14.97,8.028Zm-7.671,0h0L8.646,9.374,9.422,8.6,7.3,6.462,5.163,8.6l.775.775L7.3,8.028Z",transform:"translate(0 0)",fill:"#eb3134"})]}),value:1},smileyTwo:{icon:()=>(0,S.jsxs)("svg",{id:"Group_136","data-name":"Group 136",xmlns:"http://www.w3.org/2000/svg",width:"22.27",height:"22.27",viewBox:"0 0 22.27 22.27",children:[(0,S.jsx)("circle",{id:"Ellipse_36","data-name":"Ellipse 36",cx:"8.802",cy:"8.802",r:"8.802",transform:"translate(2.472 2.779)",fill:"#696969"}),(0,S.jsx)("path",{id:"Subtraction_3","data-name":"Subtraction 3",d:"M11.14,22.27A10.894,10.894,0,0,1,6.8,21.393,11.113,11.113,0,0,1,.877,15.48,10.87,10.87,0,0,1,0,11.14,10.894,10.894,0,0,1,.877,6.8,11.126,11.126,0,0,1,6.789.877,10.88,10.88,0,0,1,11.131,0a10.912,10.912,0,0,1,4.344.876,11.133,11.133,0,0,1,5.919,5.913,10.9,10.9,0,0,1,.877,4.341,10.894,10.894,0,0,1-.877,4.344,11.123,11.123,0,0,1-5.913,5.919A10.888,10.888,0,0,1,11.14,22.27Zm0-8.065a4.852,4.852,0,0,1,2.5.677,5.186,5.186,0,0,1,1.84,1.839h1.253a6.26,6.26,0,0,0-2.277-2.636,6.035,6.035,0,0,0-6.632,0,6.244,6.244,0,0,0-2.277,2.636H6.795a5.169,5.169,0,0,1,1.84-1.839A4.852,4.852,0,0,1,11.135,14.205Zm4.087-7.543a1.321,1.321,0,0,0-.976.4,1.35,1.35,0,0,0-.4.981,1.324,1.324,0,0,0,.4.976,1.35,1.35,0,0,0,.981.4,1.324,1.324,0,0,0,.976-.4,1.35,1.35,0,0,0,.4-.981,1.321,1.321,0,0,0-.4-.976A1.35,1.35,0,0,0,15.222,6.663Zm-8.185,0a1.321,1.321,0,0,0-.976.4,1.35,1.35,0,0,0-.4.981,1.324,1.324,0,0,0,.4.976,1.35,1.35,0,0,0,.981.4,1.324,1.324,0,0,0,.976-.4,1.35,1.35,0,0,0,.4-.981,1.321,1.321,0,0,0-.4-.976A1.35,1.35,0,0,0,7.037,6.663Z",transform:"translate(0 0)",fill:"#d3d3d3"})]}),selectedIcon:()=>(0,S.jsxs)("svg",{id:"Component_3_2","data-name":"Component 3 â 2",xmlns:"http://www.w3.org/2000/svg",width:"22.27",height:"22.27",viewBox:"0 0 22.27 22.27",children:[(0,S.jsx)("circle",{id:"Ellipse_36","data-name":"Ellipse 36",cx:"8.802",cy:"8.802",r:"8.802",transform:"translate(2.472 2.779)",fill:"#f6f9fc"}),(0,S.jsx)("path",{id:"Subtraction_3","data-name":"Subtraction 3",d:"M11.14,22.27A10.894,10.894,0,0,1,6.8,21.393,11.113,11.113,0,0,1,.877,15.48,10.87,10.87,0,0,1,0,11.14,10.894,10.894,0,0,1,.877,6.8,11.126,11.126,0,0,1,6.789.877,10.88,10.88,0,0,1,11.131,0a10.912,10.912,0,0,1,4.344.876,11.133,11.133,0,0,1,5.919,5.913,10.9,10.9,0,0,1,.877,4.341,10.894,10.894,0,0,1-.877,4.344,11.123,11.123,0,0,1-5.913,5.919A10.888,10.888,0,0,1,11.14,22.27Zm0-8.065a4.852,4.852,0,0,1,2.5.677,5.186,5.186,0,0,1,1.84,1.839h1.253a6.26,6.26,0,0,0-2.277-2.636,6.035,6.035,0,0,0-6.632,0,6.244,6.244,0,0,0-2.277,2.636H6.795a5.169,5.169,0,0,1,1.84-1.839A4.852,4.852,0,0,1,11.135,14.205Zm4.087-7.543a1.321,1.321,0,0,0-.976.4,1.35,1.35,0,0,0-.4.981,1.324,1.324,0,0,0,.4.976,1.35,1.35,0,0,0,.981.4,1.324,1.324,0,0,0,.976-.4,1.35,1.35,0,0,0,.4-.981,1.321,1.321,0,0,0-.4-.976A1.35,1.35,0,0,0,15.222,6.663Zm-8.185,0a1.321,1.321,0,0,0-.976.4,1.35,1.35,0,0,0-.4.981,1.324,1.324,0,0,0,.4.976,1.35,1.35,0,0,0,.981.4,1.324,1.324,0,0,0,.976-.4,1.35,1.35,0,0,0,.4-.981,1.321,1.321,0,0,0-.4-.976A1.35,1.35,0,0,0,7.037,6.663Z",transform:"translate(0 0)",fill:"#ef642d"})]}),value:2},smileyThree:{icon:()=>(0,S.jsxs)("svg",{id:"Group_137","data-name":"Group 137",xmlns:"http://www.w3.org/2000/svg",width:"22.27",height:"22.27",viewBox:"0 0 22.27 22.27",children:[(0,S.jsx)("circle",{id:"Ellipse_37","data-name":"Ellipse 37",cx:"8.802",cy:"8.802",r:"8.802",transform:"translate(2.428 2.78)",fill:"#696969"}),(0,S.jsx)("path",{id:"Subtraction_5","data-name":"Subtraction 5",d:"M11.14,22.27A10.894,10.894,0,0,1,6.8,21.393,11.113,11.113,0,0,1,.877,15.48,10.87,10.87,0,0,1,0,11.14,10.894,10.894,0,0,1,.877,6.8,11.126,11.126,0,0,1,6.789.877,10.88,10.88,0,0,1,11.131,0a10.912,10.912,0,0,1,4.344.876,11.133,11.133,0,0,1,5.919,5.913,10.9,10.9,0,0,1,.877,4.341,10.894,10.894,0,0,1-.877,4.344,11.123,11.123,0,0,1-5.913,5.919A10.888,10.888,0,0,1,11.14,22.27ZM6.573,15.08v1.057h8.983V15.08Zm8.649-8.418a1.321,1.321,0,0,0-.976.4,1.35,1.35,0,0,0-.4.981,1.324,1.324,0,0,0,.4.976,1.35,1.35,0,0,0,.981.4,1.324,1.324,0,0,0,.976-.4,1.35,1.35,0,0,0,.4-.981,1.321,1.321,0,0,0-.4-.976A1.35,1.35,0,0,0,15.222,6.663Zm-8.185,0a1.321,1.321,0,0,0-.976.4,1.35,1.35,0,0,0-.4.981,1.324,1.324,0,0,0,.4.976,1.35,1.35,0,0,0,.981.4,1.324,1.324,0,0,0,.976-.4,1.35,1.35,0,0,0,.4-.981,1.321,1.321,0,0,0-.4-.976A1.35,1.35,0,0,0,7.037,6.663Z",transform:"translate(0 0)",fill:"#d3d3d3"})]}),selectedIcon:()=>(0,S.jsxs)("svg",{id:"Component_4_2","data-name":"Component 4 â 2",xmlns:"http://www.w3.org/2000/svg",width:"22.27",height:"22.27",viewBox:"0 0 22.27 22.27",children:[(0,S.jsx)("circle",{id:"Ellipse_37","data-name":"Ellipse 37",cx:"8.802",cy:"8.802",r:"8.802",transform:"translate(2.428 2.78)",fill:"#f6f9fc"}),(0,S.jsx)("path",{id:"Subtraction_5","data-name":"Subtraction 5",d:"M11.14,22.27A10.894,10.894,0,0,1,6.8,21.393,11.113,11.113,0,0,1,.877,15.48,10.87,10.87,0,0,1,0,11.14,10.894,10.894,0,0,1,.877,6.8,11.126,11.126,0,0,1,6.789.877,10.88,10.88,0,0,1,11.131,0a10.912,10.912,0,0,1,4.344.876,11.133,11.133,0,0,1,5.919,5.913,10.9,10.9,0,0,1,.877,4.341,10.894,10.894,0,0,1-.877,4.344,11.123,11.123,0,0,1-5.913,5.919A10.888,10.888,0,0,1,11.14,22.27ZM6.573,15.08v1.057h8.983V15.08Zm8.649-8.418a1.321,1.321,0,0,0-.976.4,1.35,1.35,0,0,0-.4.981,1.324,1.324,0,0,0,.4.976,1.35,1.35,0,0,0,.981.4,1.324,1.324,0,0,0,.976-.4,1.35,1.35,0,0,0,.4-.981,1.321,1.321,0,0,0-.4-.976A1.35,1.35,0,0,0,15.222,6.663Zm-8.185,0a1.321,1.321,0,0,0-.976.4,1.35,1.35,0,0,0-.4.981,1.324,1.324,0,0,0,.4.976,1.35,1.35,0,0,0,.981.4,1.324,1.324,0,0,0,.976-.4,1.35,1.35,0,0,0,.4-.981,1.321,1.321,0,0,0-.4-.976A1.35,1.35,0,0,0,7.037,6.663Z",transform:"translate(0 0)",fill:"#ffba31"})]}),value:3},smileyFour:{icon:()=>(0,S.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22.27",height:"22.27",viewBox:"0 0 22.27 22.27",children:(0,S.jsxs)("g",{id:"Group_138","data-name":"Group 138",transform:"translate(0 0)",children:[(0,S.jsx)("circle",{id:"Ellipse_38","data-name":"Ellipse 38",cx:"8.802",cy:"8.802",r:"8.802",transform:"translate(2.385 2.78)",fill:"#696969"}),(0,S.jsx)("path",{id:"sentiment_satisfied_FILL1_wght200_GRAD0_opsz24",d:"M135.233-830.578a1.318,1.318,0,0,0,.976-.4,1.346,1.346,0,0,0,.4-.981,1.318,1.318,0,0,0-.4-.976,1.346,1.346,0,0,0-.981-.4,1.318,1.318,0,0,0-.976.4,1.346,1.346,0,0,0-.4.981,1.318,1.318,0,0,0,.4.976A1.346,1.346,0,0,0,135.233-830.578Zm-8.185,0a1.318,1.318,0,0,0,.976-.4,1.346,1.346,0,0,0,.4-.981,1.318,1.318,0,0,0-.4-.976,1.346,1.346,0,0,0-.981-.4,1.318,1.318,0,0,0-.976.4,1.346,1.346,0,0,0-.4.981,1.318,1.318,0,0,0,.4.976A1.346,1.346,0,0,0,127.048-830.578Zm4.087,7.756a5.83,5.83,0,0,0,3.261-.977,6.121,6.121,0,0,0,2.24-2.592H135.4a5.072,5.072,0,0,1-1.809,1.809,4.759,4.759,0,0,1-2.459.665,4.758,4.758,0,0,1-2.459-.665,5.072,5.072,0,0,1-1.809-1.809h-1.232a6.121,6.121,0,0,0,2.24,2.592A5.83,5.83,0,0,0,131.135-822.822Zm0,5.092a10.852,10.852,0,0,1-4.343-.876,11.253,11.253,0,0,1-3.537-2.379,11.241,11.241,0,0,1-2.381-3.534,10.83,10.83,0,0,1-.877-4.341,10.852,10.852,0,0,1,.877-4.343,11.252,11.252,0,0,1,2.379-3.537,11.239,11.239,0,0,1,3.534-2.381,10.829,10.829,0,0,1,4.341-.877,10.853,10.853,0,0,1,4.343.876,11.253,11.253,0,0,1,3.537,2.379,11.241,11.241,0,0,1,2.381,3.534,10.83,10.83,0,0,1,.877,4.341,10.853,10.853,0,0,1-.877,4.343,11.252,11.252,0,0,1-2.379,3.537,11.239,11.239,0,0,1-3.534,2.381A10.831,10.831,0,0,1,131.139-817.73Z",transform:"translate(-120 840)",fill:"#d3d3d3"})]})}),selectedIcon:()=>(0,S.jsxs)("svg",{id:"Component_5_2","data-name":"Component 5 â 2",xmlns:"http://www.w3.org/2000/svg",width:"22.27",height:"22.27",viewBox:"0 0 22.27 22.27",children:[(0,S.jsx)("circle",{id:"Ellipse_38","data-name":"Ellipse 38",cx:"8.802",cy:"8.802",r:"8.802",transform:"translate(2.385 2.78)",fill:"#f6f9fc"}),(0,S.jsx)("path",{id:"sentiment_satisfied_FILL1_wght200_GRAD0_opsz24",d:"M135.233-830.578a1.318,1.318,0,0,0,.976-.4,1.346,1.346,0,0,0,.4-.981,1.318,1.318,0,0,0-.4-.976,1.346,1.346,0,0,0-.981-.4,1.318,1.318,0,0,0-.976.4,1.346,1.346,0,0,0-.4.981,1.318,1.318,0,0,0,.4.976A1.346,1.346,0,0,0,135.233-830.578Zm-8.185,0a1.318,1.318,0,0,0,.976-.4,1.346,1.346,0,0,0,.4-.981,1.318,1.318,0,0,0-.4-.976,1.346,1.346,0,0,0-.981-.4,1.318,1.318,0,0,0-.976.4,1.346,1.346,0,0,0-.4.981,1.318,1.318,0,0,0,.4.976A1.346,1.346,0,0,0,127.048-830.578Zm4.087,7.756a5.83,5.83,0,0,0,3.261-.977,6.121,6.121,0,0,0,2.24-2.592H135.4a5.072,5.072,0,0,1-1.809,1.809,4.759,4.759,0,0,1-2.459.665,4.758,4.758,0,0,1-2.459-.665,5.072,5.072,0,0,1-1.809-1.809h-1.232a6.121,6.121,0,0,0,2.24,2.592A5.83,5.83,0,0,0,131.135-822.822Zm0,5.092a10.852,10.852,0,0,1-4.343-.876,11.253,11.253,0,0,1-3.537-2.379,11.241,11.241,0,0,1-2.381-3.534,10.83,10.83,0,0,1-.877-4.341,10.852,10.852,0,0,1,.877-4.343,11.252,11.252,0,0,1,2.379-3.537,11.239,11.239,0,0,1,3.534-2.381,10.829,10.829,0,0,1,4.341-.877,10.853,10.853,0,0,1,4.343.876,11.253,11.253,0,0,1,3.537,2.379,11.241,11.241,0,0,1,2.381,3.534,10.83,10.83,0,0,1,.877,4.341,10.853,10.853,0,0,1-.877,4.343,11.252,11.252,0,0,1-2.379,3.537,11.239,11.239,0,0,1-3.534,2.381A10.831,10.831,0,0,1,131.139-817.73Z",transform:"translate(-120 840)",fill:"#c3d842"})]}),value:4},smileyFive:{icon:()=>(0,S.jsxs)("svg",{id:"Group_139","data-name":"Group 139",xmlns:"http://www.w3.org/2000/svg",width:"22.27",height:"22.27",viewBox:"0 0 22.27 22.27",children:[(0,S.jsx)("circle",{id:"Ellipse_39","data-name":"Ellipse 39",cx:"8.802",cy:"8.802",r:"8.802",transform:"translate(2.342 2.779)",fill:"#696969"}),(0,S.jsx)("path",{id:"Subtraction_6","data-name":"Subtraction 6",d:"M11.14,22.27A10.894,10.894,0,0,1,6.8,21.393,11.113,11.113,0,0,1,.877,15.48,10.87,10.87,0,0,1,0,11.14,10.894,10.894,0,0,1,.877,6.8,11.126,11.126,0,0,1,6.789.877,10.88,10.88,0,0,1,11.131,0a10.912,10.912,0,0,1,4.344.876,11.133,11.133,0,0,1,5.919,5.913,10.9,10.9,0,0,1,.877,4.341,10.894,10.894,0,0,1-.877,4.344,11.123,11.123,0,0,1-5.913,5.919A10.888,10.888,0,0,1,11.14,22.27Zm-5.506-8.5a6.138,6.138,0,0,0,2.24,2.592,5.931,5.931,0,0,0,6.521,0,6.153,6.153,0,0,0,2.24-2.592Zm9.337-5.745
42h0l1.359,1.346.776-.775L14.971,6.462,12.849,8.6l.775.775L14.97,8.028Zm-7.671,0h0L8.646,9.374,9.422,8.6,7.3,6.462,5.163,8.6l.775.775L7.3,8.028Z",transform:"translate(0 0)",fill:"#d3d3d3"})]}),selectedIcon:()=>(0,S.jsxs)("svg",{id:"Component_6_2","data-name":"Component 6 â 2",xmlns:"http://www.w3.org/2000/svg",width:"22.27",height:"22.27",viewBox:"0 0 22.27 22.27",children:[(0,S.jsx)("circle",{id:"Ellipse_39","data-name":"Ellipse 39",cx:"8.802",cy:"8.802",r:"8.802",transform:"translate(2.342 2.779)",fill:"#f6f9fc"}),(0,S.jsx)("path",{id:"Subtraction_6","data-name":"Subtraction 6",d:"M11.14,22.27A10.894,10.894,0,0,1,6.8,21.393,11.113,11.113,0,0,1,.877,15.48,10.87,10.87,0,0,1,0,11.14,10.894,10.894,0,0,1,.877,6.8,11.126,11.126,0,0,1,6.789.877,10.88,10.88,0,0,1,11.131,0a10.912,10.912,0,0,1,4.344.876,11.133,11.133,0,0,1,5.919,5.913,10.9,10.9,0,0,1,.877,4.341,10.894,10.894,0,0,1-.877,4.344,11.123,11.123,0,0,1-5.913,5.919A10.888,10.888,0,0,1,11.14,22.27Zm-5.506-8.5a6.138,6.138,0,0,0,2.24,2.592,5.931,5.931,0,0,0,6.521,0,6.153,6.153,0,0,0,2.24-2.592Zm9.337-5.745h0l1.359,1.346.776-.775L14.971,6.462,12.849,8.6l.775.775L14.97,8.028Zm-7.671,0h0L8.646,9.374,9.422,8.6,7.3,6.462,5.163,8.6l.775.775L7.3,8.028Z",transform:"translate(0 0)",fill:"#78bc50"})]}),value:5}},rp=(e,t)=>t?rh[e].selectedIcon:rh[e].icon,rf=({selected:e=0,readonly:t,onSelect:n})=>{let[r,i]=(0,k.useState)(e);(0,k.useEffect)(()=>{i(e)},[e]);let o=e=>{t||(i(e),n&&n(e))};return(0,S.jsx)("div",{className:`_container_2uduy_1 ${rd[t?"disabled-click":"active-click"]}`,children:Object.keys(rh).map(e=>{let t=rh[e].value===r,n=rp(e,t);return(0,S.jsx)(ru,{onClick:()=>o(rh[e].value),children:(0,S.jsx)(n,{})},`emotion-key-${e}`)})})},rm={container:"_container_hlfeb_9",primary:"_primary_hlfeb_21",fadeInAnimation:"_fadeInAnimation_hlfeb_1"},rg=(0,k.forwardRef)((e,t)=>{let{variant:n="primary",endcontrol:r}=e,i={...e};return delete i.endcontrol,(0,S.jsxs)("div",{className:`_container_hlfeb_9 ${rm[n]}`,children:[(0,S.jsx)("input",{...i,ref:t}),r&&(0,S.jsx)(r,{})]})}),ry={container:"_container_t6ick_9",primary:"_primary_t6ick_21","full-width":"_full-width_t6ick_35",fadeInAnimation:"_fadeInAnimation_t6ick_1"},rv=(0,k.memo)((0,k.forwardRef)((e,t)=>{let{variant:n="primary",fullWidth:r=!1}=e,i={...e};return delete i.fullWidth,(0,S.jsx)("div",{className:`_container_t6ick_9 ${ry[n]} ${ry[r?"full-width":"inline"]}`,children:(0,S.jsx)("textarea",{...i,ref:t})})})),rb={container:"_container_uuq8f_1","close-button":"_close-button_uuq8f_21","show-default":"_show-default_uuq8f_42","hide-default":"_hide-default_uuq8f_46",left:"_left_uuq8f_54","show-on-mouse-over":"_show-on-mouse-over_uuq8f_81"},rx=({children:e,content:t,position:n="left",opened:r=!1,showOnHover:i=!0,toolTipCloseEnabled:o=!0,onCloseButtonClick:a})=>{let[l,s]=(0,k.useState)(r),[c,u]=(0,k.useState)("hide-default"),d=(0,k.useRef)(null);(0,k.useEffect)(()=>{s(r)},[r]),(0,k.useEffect)(()=>{u(l?"show-default":"hide-default")},[l]);let h=()=>{s(!1),a&&a()};return(0,S.jsxs)("div",{className:rb[i?"show-on-mouse-over":""],children:[o&&l&&(0,S.jsxs)("div",{ref:d,"data-tooltip":t,className:`${rb.container} ${rb[n]} ${rb[c]}`,children:[(0,S.jsx)("span",{className:rb["close-button"],onTouchEnd:h,style:{marginTop:"-8px"},children:(0,S.jsx)(ru,{onClick:h,children:(0,S.jsx)(rl,{bgColor:"#fff"})})}),e]}),!l&&(0,S.jsx)("div",{"data-tooltip":t,className:`${rb.container} ${rb[n]}`,children:e})]})};class r_{static formatToDate(e){try{let t=new Date(e);return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric"}).format(t)}catch{return"Invalid Date"}}static formatToDateTime(e){try{let t=new Date(e);return new Intl.DateTimeFormat("en-US",{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",hour12:!0}).format(t)}catch{return"Invalid Date"}}static dateFromNow(e){try{let t=new Date(e),n=Math.floor((new Date-t)/1e3),r=Math.floor(n/60),i=Math.floor(r/60);return Math.floor(i/24)>=1?new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric"}).format(t):i>=1?`${i} hour${i>1?"s":""} ago`:r>=1?`${r} minute${r>1?"s":""} ago`:`${n} second${n>1?"s":""} ago`}catch{return"Invalid Date"}}}function rw(e,t){return function(){return e.apply(t,arguments)}}let{toString:rS}=Object.prototype,{getPrototypeOf:rk}=Object,rE=(h=Object.create(null),e=>{let t=rS.call(e);return h[t]||(h[t]=t.slice(8,-1).toLowerCase())}),rA=e=>(e=e.toLowerCase(),t=>rE(t)===e),rT=e=>t=>typeof t===e,{isArray:rC}=Array,rN=rT("undefined"),rj=rA("ArrayBuffer"),rI=rT("string"),rL=rT("function"),rO=rT("number"),rP=e=>null!==e&&"object"==typeof e,rR=e=>{if("object"!==rE(e))return!1;let t=rk(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},rM=rA("Date"),rD=rA("File"),rB=rA("Blob"),rU=rA("FileList"),rH=rA("URLSearchParams");function rF(e,t,{allOwnKeys:n=!1}={}){let r,i;if(null!==e&&!(typeof e>"u")){if("object"!=typeof e&&(e=[e]),rC(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{let i;let o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;for(r=0;r<a;r++)i=o[r],t.call(null,e[i],i,e)}}}function rz(e,t){t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-- >0;)if(t===(i=n[r]).toLowerCase())return i;return null}let rG="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,rW=e=>!rN(e)&&e!==rG,rq=(p="u">typeof Uint8Array&&rk(Uint8Array),e=>p&&e instanceof p),rV=rA("HTMLFormElement"),rZ=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),rY=rA("RegExp"),rX=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};rF(n,(n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)}),Object.defineProperties(e,r)},rK="abcdefghijklmnopqrstuvwxyz",r$="0123456789",rJ={DIGIT:r$,ALPHA:rK,ALPHA_DIGIT:rK+rK.toUpperCase()+r$},rQ=rA("AsyncFunction"),r0={isArray:rC,isArrayBuffer:rj,isBuffer:function(e){return null!==e&&!rN(e)&&null!==e.constructor&&!rN(e.constructor)&&rL(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||rL(e.append)&&("formdata"===(t=rE(e))||"object"===t&&rL(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&rj(e.buffer)},isString:rI,isNumber:rO,isBoolean:e=>!0===e||!1===e,isObject:rP,isPlainObject:rR,isUndefined:rN,isDate:rM,isFile:rD,isBlob:rB,isRegExp:rY,isFunction:rL,isStream:e=>
42rP(e)&&rL(e.pipe),isURLSearchParams:rH,isTypedArray:rq,isFileList:rU,forEach:rF,merge:function e(){let{caseless:t}=rW(this)&&this||{},n={},r=(r,i)=>{let o=t&&rz(n,i)||i;rR(n[o])&&rR(r)?n[o]=e(n[o],r):rR(r)?n[o]=e({},r):rC(r)?n[o]=r.slice():n[o]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&rF(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(rF(t,(t,r)=>{n&&rL(t)?e[r]=rw(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,a;let l={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=!1!==n&&rk(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:rE,kindOfTest:rA,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return -1!==r&&r===n},toArray:e=>{if(!e)return null;if(rC(e))return e;let t=e.length;if(!rO(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n;let r=(e&&e[Symbol.iterator]).call(e);for(;(n=r.next())&&!n.done;){let r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let n;let r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:rV,hasOwnProperty:rZ,hasOwnProp:rZ,reduceDescriptors:rX,freezeMethods:e=>{rX(e,(t,n)=>{if(rL(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;if(rL(e[n])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{let n={};return(e=>{e.forEach(e=>{n[e]=!0})})(rC(e)?e:String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>Number.isFinite(e=+e)?e:t,findKey:rz,global:rG,isContextDefined:rW,ALPHABET:rJ,generateString:(e=16,t=rJ.ALPHA_DIGIT)=>{let n="",{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&rL(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{let t=Array(10),n=(e,r)=>{if(rP(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;let i=rC(e)?[]:{};return rF(e,(e,t)=>{let o=n(e,r+1);rN(o)||(i[t]=o)}),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:rQ,isThenable:e=>e&&(rP(e)||rL(e))&&rL(e.then)&&rL(e.catch)};function r1(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}r0.inherits(r1,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r0.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let r2=r1.prototype,r3={};function r6(e){return r0.isPlainObject(e)||r0.isArray(e)}function r4(e){return r0.endsWith(e,"[]")?e.slice(0,-2):e}function r8(e,t,n){return e?e.concat(t).map(function(e,t){return e=r4(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{r3[e]={value:e}}),Object.defineProperties(r1,r3),Object.defineProperty(r2,"isAxiosError",{value:!0}),r1.from=(e,t,n,r,i,o)=>{let a=Object.create(r2);return r0.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),r1.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};let r5=r0.toFlatObject(r0,{},null,function(e){return/^is[A-Z]/.test(e)});function r7(e,t,n){if(!r0.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let r=(n=r0.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!r0.isUndefined(t[e])})).metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,l=(n.Blob||"u">typeof Blob&&Blob)&&r0.isSpecCompliantForm(t);if(!r0.isFunction(i))throw TypeError("visitor must be a function");function s(e){if(null===e)return"";if(r0.isDate(e))return e.toISOString();if(!l&&r0.isBlob(e))throw new r1("Blob is not supported. Use a Buffer instead.");return r0.isArrayBuffer(e)||r0.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):A.from(e):e}function c(e,n,i){let l=e;if(e&&!i&&"object"==typeof e){if(r0.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else{var c;if(r0.isArray(e)&&(c=e,r0.isArray(c)&&!c.some(r6))||(r0.isFileList(e)||r0.endsWith(n,"[]"))&&(l=r0.toArray(e)))return n=r4(n),l.forEach(function(e,r){r0.isUndefined(e)||null===e||t.append(!0===a?r8([n],r,o):null===a?n:n+"[]",s(e))}),!1}}return!!r6(e)||(t.append(r8(i,n,o),s(e)),!1)}let u=[],d=Object.assign(r5,{defaultVisitor:c,convertValue:s,isVisitable:r6});if(!r0.isObject(e))throw TypeError("data must be an object");return function e(n,r){if(!r0.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));
42u.push(n),r0.forEach(n,function(n,o){(!(r0.isUndefined(n)||null===n)&&i.call(t,n,r0.isString(o)?o.trim():o,r,d))===!0&&e(n,r?r.concat(o):[o])}),u.pop()}}(e),t}function r9(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function ie(e,t){this._pairs=[],e&&r7(e,this,t)}let it=ie.prototype;function ir(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ii(e,t,n){let r;if(!t)return e;let i=n&&n.encode||ir,o=n&&n.serialize;if(r=o?o(t,n):r0.isURLSearchParams(t)?t.toString():new ie(t,n).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}it.append=function(e,t){this._pairs.push([e,t])},it.toString=function(e){let t=e?function(t){return e.call(this,t,r9)}:r9;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class io{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){r0.forEach(this.handlers,function(t){null!==t&&e(t)})}}let ia={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},il="u">typeof URLSearchParams?URLSearchParams:ie,is="u">typeof FormData?FormData:null,ic="u">typeof Blob?Blob:null,iu="u">typeof window&&"u">typeof document,id=(f="u">typeof navigator&&navigator.product,iu&&0>["ReactNative","NativeScript","NS"].indexOf(f)),ih={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:iu,hasStandardBrowserEnv:id,hasStandardBrowserWebWorkerEnv:"u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts},Symbol.toStringTag,{value:"Module"})),isBrowser:!0,classes:{URLSearchParams:il,FormData:is,Blob:ic},protocols:["http","https","file","blob","url","data"]};function ip(e){if(r0.isFormData(e)&&r0.isFunction(e.entries)){let t={};return r0.forEachEntry(e,(e,n)=>{(function e(t,n,r,i){let o=t[i++];if("__proto__"===o)return!0;let a=Number.isFinite(+o),l=i>=t.length;return o=!o&&r0.isArray(r)?r.length:o,l?r0.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n:(r[o]&&r0.isObject(r[o])||(r[o]=[]),e(t,n,r[o],i)&&r0.isArray(r[o])&&(r[o]=function(e){let t,n;let r={},i=Object.keys(e),o=i.length;for(t=0;t<o;t++)r[n=i[t]]=e[n];return r}(r[o]))),!a})(r0.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),n,t,0)}),t}return null}let im={transitional:ia,adapter:["xhr","http"],transformRequest:[function(e,t){let n;let r=t.getContentType()||"",i=r.indexOf("application/json")>-1,o=r0.isObject(e);if(o&&r0.isHTMLForm(e)&&(e=new FormData(e)),r0.isFormData(e))return i?JSON.stringify(ip(e)):e;if(r0.isArrayBuffer(e)||r0.isBuffer(e)||r0.isStream(e)||r0.isFile(e)||r0.isBlob(e))return e;if(r0.isArrayBufferView(e))return e.buffer;if(r0.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1){var a,l;return(a=e,l=this.formSerializer,r7(a,new ih.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ih.isNode&&r0.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},l))).toString()}if((n=r0.isFileList(e))||r.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return r7(n?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||i?(t.setContentType("application/json",!1),function(e,t,n){if(r0.isString(e))try{return(0,JSON.parse)(e),r0.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let t=this.transitional||im.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&r0.isString(e)&&(n&&!this.responseType||r)){let n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n)throw"SyntaxError"===e.name?r1.from(e,r1.ERR_BAD_RESPONSE,this,null,this.response):e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:i
42h.classes.FormData,Blob:ih.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};r0.forEach(["delete","get","head","post","put","patch"],e=>{im.headers[e]={}});let ig=r0.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),iy=e=>{let t,n,r;let i={};return e&&e.split(` 43`).forEach(function(e){r=e.indexOf(":"),t=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!t||i[t]&&ig[t]||("set-cookie"===t?i[t]?i[t].push(n):i[t]=[n]:i[t]=i[t]?i[t]+", "+n:n)}),i},iv=Symbol("internals");function ib(e){return e&&String(e).trim().toLowerCase()}function ix(e){return!1===e||null==e?e:r0.isArray(e)?e.map(ix):String(e)}let i_=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function iw(e,t,n,r,i){if(r0.isFunction(r))return r.call(this,t,n);if(i&&(t=n),r0.isString(t)){if(r0.isString(r))return -1!==t.indexOf(r);if(r0.isRegExp(r))return r.test(t)}}class iS{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=ib(t);if(!i)throw Error("header name must be a non-empty string");let o=r0.findKey(r,i);o&&void 0!==r[o]&&!0!==n&&(void 0!==n||!1===r[o])||(r[o||t]=ix(e))}let o=(e,t)=>r0.forEach(e,(e,n)=>i(e,n,t));return r0.isPlainObject(e)||e instanceof this.constructor?o(e,t):r0.isString(e)&&(e=e.trim())&&!i_(e)?o(iy(e),t):null!=e&&i(t,e,n),this}get(e,t){if(e=ib(e)){let n=r0.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t)return function(e){let t;let n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
43for(;t=r.exec(e);)n[t[1]]=t[2];return n}(e);if(r0.isFunction(t))return t.call(this,e,n);if(r0.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ib(e)){let n=r0.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||iw(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=ib(e)){let i=r0.findKey(n,e);i&&(!t||iw(n,n[i],i,t))&&(delete n[i],r=!0)}}return r0.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||iw(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return r0.forEach(this,(r,i)=>{let o=r0.findKey(n,i);if(o){t[o]=ix(r),delete t[i];return}let a=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(i).trim();a!==i&&delete t[i],t[a]=ix(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return r0.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&r0.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(` 44`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[iv]=this[iv]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=ib(e);t[r]||(function(e,t){let n=r0.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}(n,e),t[r]=!0)}return r0.isArray(e)?e.forEach(r):r(e),this}}function ik(e,t){let n=this||im,r=t||n,i=iS.from(r.headers),o=r.data;return r0.forEach(e,function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function iE(e){return!!(e&&e.__CANCEL__)}function iA(e,t,n){r1.call(this,e??"canceled",r1.ERR_CANCELED,t,n),this.name="CanceledError"}iS.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),r0.reduceDescriptors(iS.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),r0.freezeMethods(iS),r0.inherits(iA,r1,{__CANCEL__:!0});let iT=ih.hasStandardBrowserEnv?{write(e,t,n,r,i,o){let a=[e+"="+encodeURIComponent(t)];r0.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r0.isString(r)&&a.push("path="+r),r0.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function iC(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}let iN=ih.hasStandardBrowserEnv?function(){let e;let t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){let r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){let n=r0.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0};function ij(e,t){let n=0,r=function(e,t){let n=Array(e=e||10),r=Array(e),i=0,o=0,a;return t=void 0!==t?t:1e3,function(l){let s=Date.now(),c=r[o];a||(a=s),n[i]=l,r[i]=s;let u=o,d=0;for(;u!==i;)d+=n[u++],u%=e;if((i=(i+1)%e)===o&&(o=(o+1)%e),s-a<t)return;let h=c&&s-c;return h?Math.round(1e3*d/h):void 0}}(50,250);return i=>{let o=i.loaded,a=i.lengthComputable?i.total:void 0,l=o-n,s=r(l);n=o;let c={loaded:o,total:a,progress:a?o/a:void 0,bytes:l,rate:s||void 0,estimated:s&&a&&o<=a?(a-o)/s:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}let iI={http:null,xhr:"u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let r,i=e.data,o=iS.from(e.headers).normalize(),{responseType:a,withXSRFToken:l}=e,s;function c(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}if(r0.isFormData(i)){if(ih.hasStandardBrowserEnv||ih.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(r=o.getContentType())){let[e,...t]=r?r.split(";").map(e=>
44e.trim()).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}}let u=new XMLHttpRequest;if(e.auth){let t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}let d=iC(e.baseURL,e.url);function h(){if(!u)return;let r=iS.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());(function(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new r1("Request failed with status code "+n.status,[r1.ERR_BAD_REQUEST,r1.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))})(function(e){t(e),c()},function(e){n(e),c()},{data:a&&"text"!==a&&"json"!==a?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),ii(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=h:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(h)},u.onabort=function(){u&&(n(new r1("Request aborted",r1.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new r1("Network Error",r1.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||ia;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new r1(t,r.clarifyTimeoutError?r1.ETIMEDOUT:r1.ECONNABORTED,e,u)),u=null},ih.hasStandardBrowserEnv&&(l&&r0.isFunction(l)&&(l=l(e)),l||!1!==l&&iN(d))){let t=e.xsrfHeaderName&&e.xsrfCookieName&&iT.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===i&&o.setContentType(null),"setRequestHeader"in u&&r0.forEach(o.toJSON(),function(e,t){u.setRequestHeader(t,e)}),r0.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),a&&"json"!==a&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",ij(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",ij(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=t=>{u&&(n(!t||t.type?new iA(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));let p=function(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);
44if(p&&-1===ih.protocols.indexOf(p)){n(new r1("Unsupported protocol "+p+":",r1.ERR_BAD_REQUEST,e));return}u.send(i||null)})}};r0.forEach(iI,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});let iL=e=>`- ${e}`,iO=e=>r0.isFunction(e)||null===e||!1===e,iP={getAdapter:e=>{let t,n;let{length:r}=e=r0.isArray(e)?e:[e],i={};for(let o=0;o<r;o++){let r;if(n=t=e[o],!iO(t)&&void 0===(n=iI[(r=String(t)).toLowerCase()]))throw new r1(`Unknown adapter '${r}'`);if(n)break;i[r||"#"+o]=n}if(!n){let e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new r1("There is no suitable adapter to dispatch the request "+(r?e.length>1?`since : 45`+e.map(iL).join(` 46`):" "+iL(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n},adapters:iI};function iR(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new iA(null,e)}function iM(e){return iR(e),e.headers=iS.from(e.headers),e.data=ik.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),iP.getAdapter(e.adapter||im.adapter)(e).then(function(t){return iR(e),t.data=ik.call(e,e.transformResponse,t),t.headers=iS.from(t.headers),t},function(t){return iE(t)||(iR(e),t&&t.response&&(t.response.data=ik.call(e,e.transformResponse,t.response),t.response.headers=iS.from(t.response.headers))),Promise.reject(t)})}let iD=e=>e instanceof iS?{...e}:e;function iB(e,t){t=t||{};let n={};function r(e,t,n){return r0.isPlainObject(e)&&r0.isPlainObject(t)?r0.merge.call({caseless:n},e,t):r0.isPlainObject(t)?r0.merge({},t):r0.isArray(t)?t.slice():t}function i(e,t,n){return r0.isUndefined(t)?r0.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function o(e,t){if(!r0.isUndefined(t))return r(void 0,t)}function a(e,t){return r0.isUndefined(t)?r0.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function l(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}let s={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(e,t)=>i(iD(e),iD(t),!0)};return r0.forEach(Object.keys(Object.assign({},e,t)),function(r){let o=s[r]||i,a=o(e[r],t[r],r);r0.isUndefined(a)&&o!==l||(n[r]=a)}),n}let iU="1.6.8",iH={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{iH[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let iF={};iH.transitional=function(e,t,n){function r(e,t){return"[Axios v"+iU+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new r1(r(i," has been removed"+(t?" in "+t:"")),r1.ERR_DEPRECATED);return t&&!iF[i]&&(iF[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}};let iz={assertOptions:function(e,t,n){if("object"!=typeof e)throw new r1("options must be an object",r1.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let o=r[i],a=t[o];if(a){let t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new r1("option "+o+" must be "+n,r1.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new r1("Unknown option "+o,r1.ERR_BAD_OPTION)}},validators:iH},iG=iz.validators;class iW{constructor(e){this.defaults=e,this.interceptors={request:new io,response:new io}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=Error();let n=t.stack?t.stack.replace(/^.+\n/,""):"";e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+=` 47`+n):e.stack=n}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:n,paramsSerializer:r,headers:i}=t=iB(this.defaults,t);void 0!==n&&iz.assertOptions(n,{silentJSONParsing:iG.transitional(iG.boolean),forcedJSONParsing:iG.transitional(iG.boolean),clarifyTimeoutError:iG.transitional(iG.boolean)}
47,!1),null!=r&&(r0.isFunction(r)?t.paramsSerializer={serialize:r}:iz.assertOptions(r,{encode:iG.function,serialize:iG.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&r0.merge(i.common,i[t.method]);i&&r0.forEach(["delete","get","head","post","put","patch","common"],e=>{delete i[e]}),t.headers=iS.concat(o,i);let a=[],l=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(l=l&&e.synchronous,a.unshift(e.fulfilled,e.rejected))});let s=[];this.interceptors.response.forEach(function(e){s.push(e.fulfilled,e.rejected)});let c,u=0,d;if(!l){let e=[iM.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,s),d=e.length,c=Promise.resolve(t);u<d;)c=c.then(e[u++],e[u++]);return c}d=a.length;let h=t;for(u=0;u<d;){let e=a[u++],t=a[u++];try{h=e(h)}catch(e){t.call(this,e);break}}try{c=iM.call(this,h)}catch(e){return Promise.reject(e)}for(u=0,d=s.length;u<d;)c=c.then(s[u++],s[u++]);return c}getUri(e){return ii(iC((e=iB(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}r0.forEach(["delete","get","head","options"],function(e){iW.prototype[e]=function(t,n){return this.request(iB(n||{},{method:e,url:t,data:(n||{}).data}))}}),r0.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,i){return this.request(iB(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}iW.prototype[e]=t(),iW.prototype[e+"Form"]=t(!0)});class iq{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;let r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new iA(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new iq(function(t){e=t}),cancel:e}}}let iV={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
47alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(iV).forEach(([e,t])=>{iV[t]=e});let iZ=function e(t){let n=new iW(t),r=rw(iW.prototype.request,n);return r0.extend(r,iW.prototype,n,{allOwnKeys:!0}),r0.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(iB(t,n))},r}(im);iZ.Axios=iW,iZ.CanceledError=iA,iZ.CancelToken=iq,iZ.isCancel=iE,iZ.VERSION=iU,iZ.toFormData=r7,iZ.AxiosError=r1,iZ.Cancel=iZ.CanceledError,iZ.all=function(e){return Promise.all(e)},iZ.spread=function(e){return function(t){return e.apply(null,t)}},iZ.isAxiosError=function(e){return r0.isObject(e)&&!0===e.isAxiosError},iZ.mergeConfig=iB,iZ.AxiosHeaders=iS,iZ.formToJSON=e=>ip(r0.isHTMLForm(e)?new FormData(e):e),iZ.getAdapter=iP.getAdapter,iZ.HttpStatusCode=iV,iZ.default=iZ;class iY{constructor(e,t){let n={baseURL:e,headers:{}};t&&(n.headers.Authorization=`Bearer ${t}`),this.api=iZ.create(n)}}async function iX(e,t){let n;let r=e.getReader();for(;!(n=await r.read()).done;)t(n.value)}function iK(){return{data:"",event:"",id:"",retry:void 0}}var i$=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};let iJ="text/event-stream",iQ="last-event-id";function i0(e){let t=e.headers.get("content-type");if(!(null!=t&&t.startsWith(iJ)))throw Error(`Expected content-type to be ${iJ}, Actual: ${t}`)}class i1{constructor(e,t){this.sseController=e,this.accessToken=t,this.retryCounter=0}async handleError(e,t,n){this.retryCounter++;let{options:r={}}=e;if(r.retryCount&&"number"==typeof r.retryCount&&this.retryCounter<r.retryCount)await this.send(e);else throw this.sseController.abort(),await t(JSON.stringify({error:!0})),Error(n)}async send(e){let{url:t,payload:n,method:r="POST",callback:i,headers:o={},options:a={}}=e,l={"Content-Type":"application/json"};this.accessToken&&(l.Authorization=`Bearer ${this.accessToken}`);let s=this,c,u=Promise.resolve(),d=Date.now(),h,p=()=>{d=Date.now()},f=()=>{p(),h&&clearInterval(h),h=setInterval(()=>{let e=Date.now()-d,t=e<=25e3,n={healthy:t,inactiveForMs:e};t?console.debug("[SSE health]",n):console.warn("[SSE health]",n)},5e3)},m=(t,n)=>{u=u.then(async()=>{if(!c){try{await i(t)}catch(t){console.error("SSE callback error",t),await s.handleError(e,i,"SSE Data error");return}"FatalError"===n&&await s.handleError(e,i,"SSE Data error")}}).catch(e=>{console.error("SSE callback error",e),c=e,s.sseController.abort()})};try{if(await function(e,t){var{signal:n,headers:r,onopen:i,onmessage:o,onclose:a,onerror:l,openWhenHidden:s,fetch:c}=t,u=i$(t,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((t,d)=>{let h;let p=Object.assign({},r);function f(){h.abort(),document.hidden||x()}p.accept||(p.accept=iJ),s||document.addEventListener("visibilitychange",f);let m=1e3,g=0;function y(){document.removeEventListener("visibilitychange",f),window.clearTimeout(g),h.abort()}null==n||n.addEventListener("abort",()=>{y(),t()});let v=c??window.fetch,b=i??i0;async function x(){var n,r;h=new AbortController;try{let n,i,l,s;let c=await v(e,Object.assign(Object.assign({},u),{headers:p,signal:h.signal}));await b(c),await iX(c.body,(r=function(e,t,n){let r=iK(),i=new TextDecoder;return function(o,a){if(0===o.length)null==n||n(r),r=iK();else if(a>0){let n=i.decode(o.subarray(0,a)),l=a+(32===o[a+1]?2:1),s=i.decode(o.subarray(l));switch(n){case"data":r.data=r.data?r.data+` 48`+s:s;break;case"event":r.event=s;break;case"id":e(r.id=s);break;case"retry":let c=parseInt(s,10);isNaN(c)||t(r.retry=c)}}}}(e=>{e?p[iQ]=e:delete p[iQ]},e=>{m=e},o),s=!1,function(e){void 0===n?(n=e,i=0,l=-1):n=function(e,t){let n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}(n,e);let t=n.length,o=0;for(;i<t;){s&&(10===n[i]&&(o=++i),s=!1);let e=-1;for(;i<t&&-1===e;++i)switch(n[i]){case 58:-1===l&&(l=i-o);break;case 13:s=!0;case 10:e=i}if(-1===e)break;r(n.subarray(o,e),l),o=i,l=-1}o===t?n=void 0:0!==o&&(n=n.subarray(o),i-=o)})),null==a||a(),y(),t()}catch(e){if(!h.signal.aborted)try{let t=null!==(n=null==l?void 0:l(e))&&void 0!==n?n:m;window.clearTimeout(g),g=window.setTimeout(x,t)}catch(e){y(),d(e)}}}x()})}(t,{method:r,openWhenHidden:!0,headers:{...l,...o},signal:this.sseController.signal,body:n,async onopen(t){if(t.ok){f();return}if(401===t.status||429===t.status){let e="",n=0,{headers:r}=t,o=r.get("Retry-After"),a=r.get("renewal-period");o?(e="per_minute",n=Number(o)):a&&(e="per_day",n=Number(a)),s.sseController.abort(),await i(JSON.stringify({error:!0,status:t.status,content:{key:e,value:n,message:r.get("Errormessage")}}));return}await s.handleError(e,i,"SSE connection failed")},onmessage({data:e,event:t}){p(),e.trim()&&m(e,t)}
48,onerror(e){console.log("inside the onerror",e),c=e,s.sseController.abort()}}),await u,c)throw c}finally{h&&clearInterval(h)}}}let i2={getCookieValue:e=>{let t=RegExp(`(^| )${e}=([^;]+)`),n="u">typeof window?window.document.cookie.match(t):void 0;return n?n[2]:void 0}},i3={container:"_container_4b004_9",active:"_active_4b004_15",inactive:"_inactive_4b004_19","top-info-block":"_top-info-block_4b004_26",date:"_date_4b004_29",status:"_status_4b004_36",completed:"_completed_4b004_36",inprogress:"_inprogress_4b004_43",title:"_title_4b004_50",fadeInAnimation:"_fadeInAnimation_4b004_1"},i6=({id:e,title:t,date:n,selected:r=!1,hasRightArrow:i=!1,status:o,onTitleClick:a})=>(0,S.jsxs)("div",{className:`${i3.container} ${i3[r?"active":"inactive"]}`,onClick:()=>{a&&a(e)},children:[(0,S.jsxs)("section",{className:i3["top-info-block"],children:[n&&(0,S.jsx)("div",{className:i3.date,children:r_.formatToDateTime(n)}),o&&(0,S.jsx)("div",{"aria-label":`Status ${o}`,children:(0,S.jsx)("span",{className:`${i3.status} ${i3[o]}`})})]}),(0,S.jsxs)("section",{className:i3.title,children:[(0,S.jsx)(rc,{variant:"transparent",children:t}),i&&(0,S.jsx)("span",{children:(0,S.jsx)(n9,{})})]})]}),i4=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,i8=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,i5={};function i7(e,t){return((t||i5).jsx?i8:i4).test(e)}let i9=/[ \t\n\f\r]/g;function oe(e){return""===e.replace(i9,"")}class ot{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function on(e,t){let n={},r={},i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new ot(n,r,t)}function or(e){return e.toLowerCase()}ot.prototype.property={},ot.prototype.normal={},ot.prototype.space=null;class oi{constructor(e,t){this.property=e,this.attribute=t}}oi.prototype.space=null,oi.prototype.boolean=!1,oi.prototype.booleanish=!1,oi.prototype.overloadedBoolean=!1,oi.prototype.number=!1,oi.prototype.commaSeparated=!1,oi.prototype.spaceSeparated=!1,oi.prototype.commaOrSpaceSeparated=!1,oi.prototype.mustUseProperty=!1,oi.prototype.defined=!1;let oo=0,oa=op(),ol=op(),os=op(),oc=op(),ou=op(),od=op(),oh=op();function op(){return 2**++oo}let of=Object.freeze(Object.defineProperty({__proto__:null,boolean:oa,booleanish:ol,commaOrSpaceSeparated:oh,commaSeparated:od,number:oc,overloadedBoolean:os,spaceSeparated:ou},Symbol.toStringTag,{value:"Module"})),om=Object.keys(of);class og extends oi{constructor(e,t,n,r){var i,o;let a=-1;if(super(e,t),r&&(this.space=r),"number"==typeof n)for(;++a<om.length;){let e=om[a];i=om[a],(o=(n&of[e])===of[e])&&(this[i]=o)}}}og.prototype.defined=!0;let oy={}.hasOwnProperty;function ov(e){let t;let n={},r={};for(t in e.properties)if(oy.call(e.properties,t)){let i=e.properties[t],o=new og(t,e.transform(e.attributes||{},t),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(t)&&(o.mustUseProperty=!0),n[t]=o,r[or(t)]=t,r[or(o.attribute)]=t}return new ot(n,r,e.space)}let ob=ov({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}}),ox=ov({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function o_(e,t){return t in e?e[t]:t}function ow(e,t){return o_(e,t.toLowerCase())}let oS=ov({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:ow,properties:{xmlns:null,xmlnsXLink:null}}),ok=ov({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:ol,ariaAutoComplete:null,ariaBusy:ol,ariaChecked:ol,ariaColCount:oc,ariaColIndex:oc,ariaColSpan:oc,ariaControls:ou,ariaCurrent:null,ariaDescribedBy:ou,ariaDetails:null,ariaDisabled:ol,ariaDropEffect:ou,ariaErrorMessage:null,ariaExpanded:ol,ariaFlowTo:ou,ariaGrabbed:ol,ariaHasPopup:null,ariaHidden:ol,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ou,ariaLevel:oc,ariaLive:null,ariaModal:ol,ariaMultiLine:ol,ariaMultiSelectable:ol,ariaOrientation:null,ariaOwns:ou,ariaPlaceholder:null,ariaPosInSet:oc,ariaPressed:ol,ariaReadOnly:ol,ariaRelevant:null,ariaRequired:ol,ariaRoleDescription:ou,ariaRowCount:oc,ariaRowIndex:oc,ariaRowSpan:oc,ariaSelected:ol,ariaSetSize:oc,ariaSort:null,ariaValueMax:oc,ariaValueMin:oc,ariaValueNow:oc,ariaValueText:null,role:null}}),oE=ov({space:"html",attributes:{acceptcharset:"accept-charset",classname:"
48class",htmlfor:"for",httpequiv:"http-equiv"},transform:ow,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:od,acceptCharset:ou,accessKey:ou,action:null,allow:null,allowFullScreen:oa,allowPaymentRequest:oa,allowUserMedia:oa,alt:null,as:null,async:oa,autoCapitalize:null,autoComplete:ou,autoFocus:oa,autoPlay:oa,blocking:ou,capture:null,charSet:null,checked:oa,cite:null,className:ou,cols:oc,colSpan:null,content:null,contentEditable:ol,controls:oa,controlsList:ou,coords:oc|od,crossOrigin:null,data:null,dateTime:null,decoding:null,default:oa,defer:oa,dir:null,dirName:null,disabled:oa,download:os,draggable:ol,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:oa,formTarget:null,headers:ou,height:oc,hidden:oa,high:oc,href:null,hrefLang:null,htmlFor:ou,httpEquiv:ou,id:null,imageSizes:null,imageSrcSet:null,inert:oa,inputMode:null,integrity:null,is:null,isMap:oa,itemId:null,itemProp:ou,itemRef:ou,itemScope:oa,itemType:ou,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:oa,low:oc,manifest:null,max:null,maxLength:oc,media:null,method:null,min:null,minLength:oc,multiple:oa,muted:oa,name:null,nonce:null,noModule:oa,noValidate:oa,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:oa,optimum:oc,pattern:null,ping:ou,placeholder:null,playsInline:oa,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:oa,referrerPolicy:null,rel:ou,required:oa,reversed:oa,rows:oc,rowSpan:oc,sandbox:ou,scope:null,scoped:oa,seamless:oa,selected:oa,shadowRootClonable:oa,shadowRootDelegatesFocus:oa,shadowRootMode:null,shape:null,size:oc,sizes:null,slot:null,span:oc,spellCheck:ol,src:null,srcDoc:null,srcLang:null,srcSet:null,start:oc,step:null,style:null,tabIndex:oc,target:null,title:null,translate:null,type:null,typeMustMatch:oa,useMap:null,value:ol,width:oc,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ou,axis:null,background:null,bgColor:null,border:oc,borderColor:null,bottomMargin:oc,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:oa,declare:oa,event:null,face:null,frame:null,frameBorder:null,hSpace:oc,leftMargin:oc,link:null,longDesc:null,lowSrc:null,marginHeight:oc,marginWidth:oc,noResize:oa,noHref:oa,noShade:oa,noWrap:oa,object:null,profile:null,prompt:null,rev:null,rightMargin:oc,rules:null,scheme:null,scrolling:ol,standby:null,summary:null,text:null,topMargin:oc,valueType:null,version:null,vAlign:null,vLink:null,vSpace:oc,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:oa,disableRemotePlayback:oa,prefix:null,property:null,results:oc,security:null,unselectable:null}}),oA=ov({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",colorRen
48dering:"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:o_,properties:{about:oh,accentHeight:oc,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:oc,amplitude:oc,arabicForm:null,ascent:oc,attributeName:null,attributeType:null,azimuth:oc,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:oc,by:null,calcMode:null,capHeight:oc,className:ou,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRen
48dering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:oc,diffuseConstant:oc,direction:null,display:null,dur:null,divisor:oc,dominantBaseline:null,download:oa,dx:null,dy:null,edgeMode:null,editable:null,elevation:oc,enableBackground:null,end:null,event:null,exponent:oc,externalResourcesRequired:null,fill:null,fillOpacity:oc,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:od,g2:od,glyphName:od,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:oc,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:oc,horizOriginX:oc,horizOriginY:oc,id:null,ideographic:oc,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:oc,k:oc,k1:oc,k2:oc,k3:oc,k4:oc,kernelMatrix:oh,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:oc,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:oc,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:oc,overlineThickness:oc,paintOrder:null,panose1:null,path:null,pathLength:oc,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ou,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:oc,pointsAtY:oc,pointsAtZ:oc,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:oh,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:oh,rev:oh,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:oh,requiredFeatures:oh,requiredFonts:oh,requiredFormats:oh,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:oc,specularExponent:oc,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:oc,strikethroughThickness:oc,string:null,stroke:null,strokeDashArray:oh,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:oc,strokeOpacity:oc,strokeWidth:null,style:null,surfaceScale:oc,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:oh,tabIndex:oc,tableValues:null,target:null,targetX:oc,targetY:oc,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:oh,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:oc,underlineThickness:oc,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:oc,values:null,vAlphabetic:oc,vMathematical:oc,vectorEffect:null,vHanging:oc,vIdeographic:oc,version:null,vertAdvY:oc,vertOriginX:oc,vertOriginY:oc,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:oc,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),oT=/^data[-\w.:]+$/i,oC=/-[a-z]/g,oN=/[A-Z]/g;function oj(e){return"-"+e.toLowerCase()}function oI(e){return e.charAt(1).toUpperCase()}let oL={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"},oO=on([ox,ob,oS,ok,oE],"html"),oP=on([ox,ob,oS,ok,oA],"svg");var oR={},oM=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,oD=/\n/g,oB=/^\s*/,oU=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,oH=/^:\s*/,oF=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,oz=/^[;\s]*/,oG=/^\s+|\s+$/g,oW=` 49`;function oq(e){return e?e.replace(oG,""):""}
49var oV=O&&O.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(oR,"__esModule",{value:!0});var oZ=oV(function(e,t){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(e){var t=e.match(oD);t&&(n+=t.length);var i=e.lastIndexOf(oW);r=~i?e.length-i:r+e.length}function o(){var e={line:n,column:r};return function(t){return t.position=new a(e),s(oB),t}}function a(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function l(i){var o=Error(t.source+":"+n+":"+r+": "+i);if(o.reason=i,o.filename=t.source,o.line=n,o.column=r,o.source=e,!t.silent)throw o}function s(t){var n=t.exec(e);if(n){var r=n[0];return i(r),e=e.slice(r.length),n}}function c(e){var t;for(e=e||[];t=u();)!1!==t&&e.push(t);return e}function u(){var t=o();if(!("/"!=e.charAt(0)||"*"!=e.charAt(1))){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return l("End of comment missing");var a=e.slice(2,n-2);return r+=2,i(a),e=e.slice(n),r+=2,t({type:"comment",comment:a})}}return a.prototype.content=e,s(oB),function(){var e,t=[];for(c(t);e=function(){var e=o(),t=s(oU);if(t){if(u(),!s(oH))return l("property missing ':'");var n=s(oF),r=e({type:"declaration",property:oq(t[0].replace(oM,"")),value:n?oq(n[0].replace(oM,"")):""});return s(oz),r}}();)!1!==e&&(t.push(e),c(t));return t}()}),oY=oR.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,oZ.default)(e),i="function"==typeof t;return r.forEach(function(e){if("declaration"===e.type){var r=e.property,o=e.value;i?t(r,o,e):o&&((n=n||{})[r]=o)}}),n};let oX=oY.default||oY,oK=oJ("end"),o$=oJ("start");function oJ(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function oQ(e){return e&&"object"==typeof e?"position"in e||"type"in e?o1(e.position):"start"in e||"end"in e?o1(e):"line"in e||"column"in e?o0(e):"":""}function o0(e){return o2(e&&e.line)+":"+o2(e&&e.column)}function o1(e){return o0(e&&e.start)+"-"+o0(e&&e.end)}function o2(e){return e&&"number"==typeof e?e:1}class o3 extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},o=!1;if(t&&(i="line"in t&&"column"in t?{place:t}:"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(o=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=a?a.line:void 0,this.name=oQ(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}o3.prototype.file="",o3.prototype.name="",o3.prototype.reason="",o3.prototype.message="",o3.prototype.stack="",o3.prototype.column=void 0,o3.prototype.line=void 0,o3.prototype.ancestors=void 0,o3.prototype.cause=void 0,o3.prototype.fatal=void 0,o3.prototype.place=void 0,o3.prototype.ruleId=void 0,o3.prototype.source=void 0;let o6={}.hasOwnProperty,o4=new Map,o8=/[A-Z]/g,o5=/-([a-z])/g,o7=new Set(["table","tbody","thead","tfoot","tr"]),o9=new Set(["td","th"]),ae="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function at(e,t,n){return"element"===t.type?function(e,t,n){let r=e.schema,i=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(i=oP,e.schema=i),e.ancestors.push(t);let o=ao(e,t.tagName,!1),a=function(e,t){let n,r;let i={};for(r in t.properties)if("children"!==r&&o6.call(t.properties,r)){let o=function(e,t,n){let r=function(e,t){let n=or(t),r=t,i=oi;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&oT.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(oC,oI);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!oC.test(e)){let n=e.replace(oN,oj);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=og}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e,t){let n={};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){let n={};try{oX(t,function(e,t){let r=e;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(o5,al)),n[r]=t})}catch(t){if(!e.ignoreInvalidStyle){let n=new o3("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=ae+"#cannot-parse-style-attribute",n}}return n}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t;let n={};for(t in e)o6.call(e,t)&&(n[function(e){let t=e.replace(o8,as);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?oL[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(o){let[r,a]=o;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof a&&o9.has(t.tagName)?n=a:i[r]=a}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(e,t),l=ai(e,t);return o7.has(t.tagName)&&(l=l.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&oe(e.value):oe(e))})),an(e,a,o,t),ar(a,l),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}
49(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}aa(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){let r=e.schema,i=r;"svg"===t.name&&"html"===r.space&&(i=oP,e.schema=i),e.ancestors.push(t);let o=null===t.name?e.Fragment:ao(e,t.name,!0),a=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let o=i.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else aa(e,t.position)}else{let i;let o=r.name;if(r.value&&"object"==typeof r.value){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,i=e.evaluater.evaluateExpression(t.expression)}else aa(e,t.position)}else i=null===r.value||r.value;n[o]=i}return n}(e,t),l=ai(e,t);return an(e,a,o,t),ar(a,l),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);aa(e,t.position)}(e,t):"root"===t.type?function(e,t,n){let r={};return ar(r,ai(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?t.value:void 0}function an(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ar(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function ai(e,t){let n=[],r=-1,i=e.passKeys?new Map:o4;for(;++r<t.children.length;){let o;let a=t.children[r];if(e.passKeys){let e="element"===a.type?a.tagName:"mdxJsxFlowElement"===a.type||"mdxJsxTextElement"===a.type?a.name:void 0;if(e){let t=i.get(e)||0;o=e+"-"+t,i.set(e,t+1)}}let l=at(e,a,o);void 0!==l&&n.push(l)}return n}function ao(e,t,n){let r;if(n){if(t.includes(".")){let e=t.split("."),n=-1,i;for(;++n<e.length;){let t=i7(e[n])?{type:"Identifier",name:e[n]}:{type:"Literal",value:e[n]};i=i?{type:"MemberExpression",object:i,property:t,computed:!!(n&&"Literal"===t.type),optional:!1}:t}r=i}else r=i7(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t}}else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return o6.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);aa(e)}function aa(e,t){let n=new o3("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=ae+"#cannot-handle-mdx-estrees-without-createevaluater",n}function al(e,t){return t.toUpperCase()}function as(e){return"-"+e.toLowerCase()}let ac={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},au={};function ad(e,t,n){if(e&&"object"==typeof 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 ah(e.children,t,n)}return Array.isArray(e)?ah(e,t,n):""}function ah(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=ad(e[i],t,n);return r.join("")}let ap=document.createElement("i");function af(e){let t="&"+e+";";ap.innerHTML=t;let n=ap.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}function am(e,t,n,r){let i=e.length,o=0,a;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)(a=Array.from(r)).unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o<r.length;)(a=r.slice(o,o+1e4)).unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}function ag(e,t){return e.length>0?(am(e,e.length,0,t),e):t}let ay={}.hasOwnProperty;function av(e,t){let 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)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}function ab(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let ax=aL(/[A-Za-z]/),a_=aL(/[\dA-Za-z]/),aw=aL(/[#-'*+\--9=?A-Z^-~]/);function aS(e){return null!==e&&(e<32||127===e)}let ak=aL(/\d/),aE=aL(/[\dA-Fa-f]/),aA=aL(/[!-/:-@[-`{-~]/);function aT(e){return null!==e&&e<-2}function aC(e){return null!==e&&(e<0||32===e)}function aN(e){return -2===e||-1===e||32===e}let aj=aL(/\p{P}|\p{S}/u),aI=aL(/\s/);function aL(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function aO(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let o=e.charCodeAt(n),a="";if(37===o&&a_(e.charCodeAt(n+1))&&a_(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){let t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(a=String.fromCharCode(o,t),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function aP(e,t,n,r){let i=r?r-1:Number.POSITIVE_INFINITY,o=0;return function(r){return aN(r)?(e.enter(n),function r(a){return aN(a)&&o++<i?(e.consume(a),r):(e.exit(n),t(a))}(r)):t(r)}}let aR={tokenize:function(e){let t;let n=e.attempt(this.parser.constructs.contentInitial,function(t){if(null===t){e.consume(t);return}return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),aP(e,n,"linePrefix")},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return aT(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},aM={tokenize:function(e){let t=this,n=[],r=0,i,o,a;return l;function l(i){if(r<n.length){let o=n[r];return t.containerState=o[1],e.attempt(o[0].continuation,s,c)(i)}return c(i)}function s(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&y();let n=t.events.length,o=n,a;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){a=t.events[o][1].end;break}g(r);let l=n;for(;l<t.events.length;)t.events[l][1].end=Object.assign({},a),l++;return am(t.events,o+1,0,t.events.slice(n)),t.events.length=l,c(e)}return l(e)}function c(o){if(r===n.length){if(!i)return h(o);if(i.currentConstruct&&i.currentConstruct.concrete)return f(o);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(aD,u,d)(o)}function u(e){return i&&y(),g(r),h(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,f(e)}function h(n){return t.containerState={},e.attempt(aD,p,f)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),h(e)}function f(n){if(null===n){i&&y(),g(0),e.consume(n);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:i}),function n(i){if(null===i){m(e.exit("chunkFlow"),!0),g(0),e.consume(i);return}return aT(i)?(e.consume(i),m(e.exit("chunkFlow")),r=0,t.interrupt=void 0,l):(e.consume(i),n)}(n)}function m(e,n){let l=t.sliceStream(e);
49if(n&&l.push(null),e.previous=o,o&&(o.next=e),o=e,i.defineSkip(e.start),i.write(l),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<a&&(!i.events[e][1].end||i.events[e][1].end.offset>a))return;let n=t.events.length,o=n,l,s;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){if(l){s=t.events[o][1].end;break}l=!0}for(g(r),e=n;e<t.events.length;)t.events[e][1].end=Object.assign({},s),e++;am(t.events,o+1,0,t.events.slice(n)),t.events.length=e}}function g(r){let i=n.length;for(;i-- >r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function y(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}},aD={tokenize:function(e,t,n){return aP(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function aB(e){return null===e||aC(e)||aI(e)?1:aj(e)?2:void 0}function aU(e,t,n){let r=[],i=-1;for(;++i<e.length;){let o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}let aH={name:"attention",tokenize:function(e,t){let n;let r=this.parser.constructs.attentionMarkers.null,i=this.previous,o=aB(i);return function(a){return n=a,e.enter("attentionSequence"),function a(l){if(l===n)return e.consume(l),a;let s=e.exit("attentionSequence"),c=aB(l),u=!c||2===c&&o||r.includes(l),d=!o||2===o&&c||r.includes(i);return s._open=!!(42===n?u:u&&(o||!d)),s._close=!!(42===n?d:d&&(c||!u)),t(l)}(a)}},resolveAll:function(e,t){let n=-1,r,i,o,a,l,s,c,u;for(;++n<e.length;)if("enter"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._close){for(r=n;r--;)if("exit"===e[r][0]&&"attentionSequence"===e[r][1].type&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d=Object.assign({},e[r][1].end),h=Object.assign({},e[n][1].start);aF(d,-s),aF(h,s),a={type:s>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},l={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:h},o={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:s>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},l.end)},e[r][1].end=Object.assign({},a.start),e[n][1].start=Object.assign({},l.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=ag(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=ag(c,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),c=ag(c,aU(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=ag(c,[["exit",o,t],["enter",l,t],["exit",l,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,c=ag(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,am(e,r-1,n-r+3,c),n=r+c.length-u-2;break}}for(n=-1;++n<e.length;)"attentionSequence"===e[n][1].type&&(e[n][1].type="data");return e}};function aF(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let az={tokenize:function(e,t,n){return function(t){return aN(t)?aP(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||aT(e)?t(e):n(e)}},partial:!0},aG={name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let 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"),i}return n(t)};function i(n){return aN(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){let r=this;return function(t){return aN(t)?aP(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(aG,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}},aW={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 aA(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},aq={name:"characterReference",tokenize:function(e,t,n){let r=this,i=0,o,a;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=a_,c(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=aE,c):(e.enter("characterReferenceValue"),o=7,a=ak,c(t))}function c(l){if(59===l&&i){let i=e.exit("characterReferenceValue");return a!==a_||af(r.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(l)}return a(l)&&i++<o?(e.consume(l),c):n(l)}}},aV={tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},aZ={name:"codeFenced",tokenize:function(e,t,n){let r=this,i={tokenize:function(e,t,n){let i=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};
49function o(t){return e.enter("codeFencedFence"),aN(t)?aP(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===l?(e.enter("codeFencedFenceSequence"),function t(r){return r===l?(i++,e.consume(r),t):i>=a?(e.exit("codeFencedFenceSequence"),aN(r)?aP(e,c,"whitespace")(r):c(r)):n(r)}(t)):n(t)}function c(r){return null===r||aT(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0},o=0,a=0,l;return function(t){return function(t){let i=r.events[r.events.length-1];return o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,l=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(r){return r===l?(a++,e.consume(r),t):a<3?n(r):(e.exit("codeFencedFenceSequence"),aN(r)?aP(e,s,"whitespace")(r):s(r))}(t)}(t)};function s(i){return null===i||aT(i)?(e.exit("codeFencedFence"),r.interrupt?t(i):e.check(aV,u,f)(i)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(r){return null===r||aT(r)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),s(r)):aN(r)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),aP(e,c,"whitespace")(r)):96===r&&r===l?n(r):(e.consume(r),t)}(i))}function c(t){return null===t||aT(t)?s(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(r){return null===r||aT(r)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),s(r)):96===r&&r===l?n(r):(e.consume(r),t)}(t))}function u(t){return e.attempt(i,f,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h}function h(t){return o>0&&aN(t)?aP(e,p,"linePrefix",o+1)(t):p(t)}function p(t){return null===t||aT(t)?e.check(aV,u,f)(t):(e.enter("codeFlowValue"),function t(n){return null===n||aT(n)?(e.exit("codeFlowValue"),p(n)):(e.consume(n),t)}(t))}function f(n){return e.exit("codeFenced"),t(n)}},concrete:!0},aY={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),aP(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?o(n):aT(n)?e.attempt(aX,t,o)(n):(e.enter("codeFlowValue"),function n(r){return null===r||aT(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function o(n){return e.exit("codeIndented"),t(n)}}},aX={tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):aT(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):aP(e,o,"linePrefix",5)(t)}function o(e){let o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):aT(e)?i(e):n(e)}},partial:!0};class aK{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),Number.POSITIVE_INFINITY);return n&&a$(this.left,n),r.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),a$(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),a$(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length)){if(e<this.left.length){let t=this.left.splice(e,Number.POSITIVE_INFINITY);a$(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);a$(this.left,t.reverse())}}}}function a$(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function aJ(e){let t={},n=-1,r,i,o,a,l,s,c,u=new aK(e);for(;++n<u.length;){for(;(n in t);)n=t[n];if(r=u.get(n),n&&"chunkFlow"===r[1].type&&"listItemPrefix"===u.get(n-1)[1].type&&((o=0)<(s=r[1]._tokenizer.events).length&&"lineEndingBlank"===s[o][1].type&&(o+=2),o<s.length&&"content"===s[o][1].type))for(;++o<s.length&&"content"!==s[o][1].type;)"chunkText"===s[o][1].type&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===r[0])r[1].contentType&&(Object.assign(t,function(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,o=[],a=n._tokenizer||r.parser[n.contentType](n.start),l=a.events,s=[],c={},u,d,h=-1,p=n,f=0,m=0,g=[0];for(;p;){for(;e.get(++i)[1]!==p;);o.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&a.defineSki
49p(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++h<l.length;)"exit"===l[h][0]&&"enter"===l[h-1][0]&&l[h][1].type===l[h-1][1].type&&l[h][1].start.line!==l[h][1].end.line&&(m=h+1,g.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),h=g.length;h--;){let t=l.slice(g[h],g[h+1]),n=o.pop();s.push([n,n+t.length-1]),e.splice(n,2,t)}for(s.reverse(),h=-1;++h<s.length;)c[f+s[h][0]]=f+s[h][1],f+=s[h][1]-s[h][0]-1;return c}(u,n)),n=t[n],c=!0);else if(r[1]._container){for(o=n,i=void 0;o--&&("lineEnding"===(a=u.get(o))[1].type||"lineEndingBlank"===a[1].type);)"enter"===a[0]&&(i&&(u.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=o);i&&(r[1].end=Object.assign({},u.get(i)[1].start),(l=u.slice(i,n)).unshift(r),u.splice(i,n-i+1,l))}}return am(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!c}let aQ={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?i(t):aT(t)?e.check(a0,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(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 aJ(e),e}},a0={tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),aP(e,i,"linePrefix")};function i(i){if(null===i||aT(i))return n(i);let o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}},partial:!0};function a1(e,t,n,r,i,o,a,l,s){let c=s||Number.POSITIVE_INFINITY,u=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),d):null===t||32===t||41===t||aS(t)?n(t):(e.enter(r),e.enter(a),e.enter(l),e.enter("chunkString",{contentType:"string"}),f(t))};function d(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),h(n))}function h(t){return 62===t?(e.exit("chunkString"),e.exit(l),d(t)):null===t||60===t||aT(t)?n(t):(e.consume(t),92===t?p:h)}function p(t){return 60===t||62===t||92===t?(e.consume(t),h):h(t)}function f(i){return!u&&(null===i||41===i||aC(i))?(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(r),t(i)):u<c&&40===i?(e.consume(i),u++,f):41===i?(e.consume(i),u--,f):null===i||32===i||40===i||aS(i)?n(i):(e.consume(i),92===i?m:f)}function m(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function a2(e,t,n,r,i,o){let a=this,l=0,s;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(o),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):aT(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||aT(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!aN(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function a3(e,t,n,r,i,o){let a;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,l):n(t)};function l(n){return n===a?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),s(n))}function s(t){return t===a?(e.exit(o),l(a)):null===t?n(t):aT(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),aP(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||aT(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function a6(e,t){let n;return function r(i){return aT(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):aN(i)?aP(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}let a4={tokenize:function(e,t,n){return function(t){return aC(t)?a6(e,r)(t):n(t)};function r(t){return a3(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return aN(t)?aP(e,o,"whitespace")(t):o(t)}function o(e){return null===e||aT(e)?t(e):n(e)}},partial:!0},a8=["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"],a5=["pre","script","style","textarea"],a7={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(az,t,n)}},partial:!0},a9={tokenize:function(e,t,n){let r=this;return function(t){return aT(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},le={name:"labelEnd",tokenize:function(e,t,n){let r=this,i=r.events.length,o,a;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?u(t):(a=r.parser.defined.includes(ab(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(lt,c,a?c:u)(t):91===t?e.attempt(ln,c,a?s:u)(t):a?c(t):u(t)}function s(t){return e.attempt(lr,c,u)(t)}function c(e){return t(e)}function u(e){return o._balanced=!0,n(e)}},resolveTo:function(e,t){let n=e.length,r=0,i,o,a,l;for(;n--;
49)if(i=e[n][1],o){if("link"===i.type||"labelLink"===i.type&&i._inactive)break;"enter"===e[n][0]&&"labelLink"===i.type&&(i._inactive=!0)}else if(a){if("enter"===e[n][0]&&("labelImage"===i.type||"labelLink"===i.type)&&!i._balanced&&(o=n,"labelLink"!==i.type)){r=2;break}}else"labelEnd"===i.type&&(a=n);let s={type:"labelLink"===e[o][1].type?"link":"image",start:Object.assign({},e[o][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[o][1].start),end:Object.assign({},e[a][1].end)},u={type:"labelText",start:Object.assign({},e[o+r+2][1].end),end:Object.assign({},e[a-2][1].start)};return l=ag(l=[["enter",s,t],["enter",c,t]],e.slice(o+1,o+r+3)),l=ag(l,[["enter",u,t]]),l=ag(l,aU(t.parser.constructs.insideSpan.null,e.slice(o+r+4,a-3),t)),l=ag(l,[["exit",u,t],e[a-2],e[a-1],["exit",c,t]]),l=ag(l,e.slice(a+1)),l=ag(l,[["exit",s,t]]),am(e,o,e.length,l),e},resolveAll:function(e){let t=-1;for(;++t<e.length;){let 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}},lt={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 aC(t)?a6(e,i)(t):i(t)}function i(t){return 41===t?c(t):a1(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return aC(t)?a6(e,l)(t):c(t)}function a(e){return n(e)}function l(t){return 34===t||39===t||40===t?a3(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function s(t){return aC(t)?a6(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},ln={tokenize:function(e,t,n){let r=this;return function(t){return a2.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(ab(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},lr={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)}}},li={name:"labelStartImage",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:le.resolveAll},lo={name:"labelStartLink",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:le.resolveAll},la={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),aP(e,t,"linePrefix")}}},ll={name:"thematicBreak",tokenize:function(e,t,n){let r=0,i;return function(o){return e.enter("thematicBreak"),i=o,function o(a){return a===i?(e.enter("thematicBreakSequence"),function t(n){return n===i?(e.consume(n),r++,t):(e.exit("thematicBreakSequence"),aN(n)?aP(e,o,"whitespace")(n):o(n))}(a)):r>=3&&(null===a||aT(a))?(e.exit("thematicBreak"),t(a)):n(a)}(o)}}},ls={name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:ak(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(ll,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return ak(i)&&++a<10?(e.consume(i),t):(!r.interrupt||a<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),l(i)):n(i)}(t)}return n(t)};function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(az,r.interrupt?n:s,e.attempt(lc,u,c))}
49function s(e){return r.containerState.initialBlankLine=!0,o++,u(e)}function c(t){return aN(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),u):n(t)}function u(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(az,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,aP(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!aN(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(lu,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,aP(e,e.attempt(ls,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},lc={tokenize:function(e,t,n){let r=this;return aP(e,function(e){let i=r.events[r.events.length-1];return!aN(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},lu={tokenize:function(e,t,n){let r=this;return aP(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)},partial:!0},ld={name:"setextUnderline",tokenize:function(e,t,n){let r;let i=this;return function(t){let a=i.events.length,l;for(;a--;)if("lineEnding"!==i.events[a][1].type&&"linePrefix"!==i.events[a][1].type&&"content"!==i.events[a][1].type){l="paragraph"===i.events[a][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||l)?(e.enter("setextHeadingLine"),r=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),aN(n)?aP(e,o,"lineSuffix")(n):o(n))}(t)):n(t)};function o(r){return null===r||aT(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n=e.length,r,i,o;for(;n--;)if("enter"===e[n][0]){if("content"===e[n][1].type){r=n;break}"paragraph"===e[n][1].type&&(i=n)}else"content"===e[n][1].type&&e.splice(n,1),o||"definition"!==e[n][1].type||(o=n);let a={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[o][1].end)):e[r][1]=a,e.push(["exit",a,t]),e}},lh={tokenize:function(e){let t=this,n=e.attempt(az,function(r){if(null===r){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,aP(e,e.attempt(this.parser.constructs.flow,r,e.attempt(aQ,r)),"linePrefix")));return n;function r(r){if(null===r){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n}}},lp={resolveAll:ly()},lf=lg("string"),lm=lg("text");function lg(e){return{tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,o,a);return o;function o(e){return s(e)?i(e):a(e)}function a(e){if(null===e){t.consume(e);return}return t.enter("data"),t.consume(e),l}function l(e){return s(e)?(t.exit("data"),i(e)):(t.consume(e),l)}function s(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},resolveAll:ly("text"===e?lv:void 0)}}function ly(e){return function(t,n){let r=-1,i;for(;++r<=t.length;)void 0===i?t[r]&&"data"===t[r][1].type&&(i=r,r++):t[r]&&"data"===t[r][1].type||(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function lv(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r=e[n-1][1],i=t.sliceStream(r),o=i.length,a=-1,l=0,s;for(;o--;){let e=i[o];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)l++,a--;if(a)break;a=-1}else if(-2===e)s=!0,l++;else if(-1!==e){o++;break}}if(l){let i={type:n===e.length||s||l<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-l,offset:r.end.offset-l,_index:r.start._index+o,_bufferIndex:o?a:r.start._bufferIndex+a},end:Object.assign({},r.end)};r.end=Object.assign({},i.start),r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,["enter",i,t],["exit",i,t]),n+=2)}n++}return e}let lb=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:{name:"definition",tokenize:function(e,t,n){let r;let i=this;return function(t){return e.enter("definition"),a2.call(i,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function o(t){return r=ab(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return aC(t)?a6(e,l)(t):l(t)}function l(t){return a1(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(a4,c,c)(t)}function c(t){return aN(t)?aP(e,u,"whitespace")(t):u(t)}function u(o){return null===o||aT(o)?(e.exit("definition"),i.parser.defined.push(r),t(o)):n(o)}}}},disable:{null:[]},document:{42:ls,43:ls,45:ls,48:ls,49:ls,50:ls,51:ls,52:ls,53:ls,54:ls,55:ls,56:ls,57:ls,62:aG},flow:{35:{name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(i){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),function i(o){return 35===o&&r++<6?(e.consume(o),i):null===o||aC(o)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||aT(r)?(e.exit("atxHeading"),t(r)):aN(r)?aP(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||aC(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(o)):n(o)}(i)}},resolve:function(e,t){let n=e.length-2,r=3,i,o;return"whitespace"===e[3][1].type&&(r+=2),n-2>r&&"whitespace"===e[n][1].type&&(n-=2),"atxHeadingSequence"===e[n][1].type&&(r===n-1||n-4>r&&"whitespace"===e[n-2][1].type)&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},am(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}}
49,42:ll,45:[ld,ll],60:{name:"htmlFlow",tokenize:function(e,t,n){let r,i,o,a,l;let s=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c};function c(a){return 33===a?(e.consume(a),u):47===a?(e.consume(a),i=!0,p):63===a?(e.consume(a),r=3,s.interrupt?t:L):ax(a)?(e.consume(a),o=String.fromCharCode(a),f):n(a)}function u(i){return 45===i?(e.consume(i),r=2,d):91===i?(e.consume(i),r=5,a=0,h):ax(i)?(e.consume(i),r=4,s.interrupt?t:L):n(i)}function d(r){return 45===r?(e.consume(r),s.interrupt?t:L):n(r)}function h(r){let i="CDATA[";return r===i.charCodeAt(a++)?(e.consume(r),a===i.length?s.interrupt?t:k:h):n(r)}function p(t){return ax(t)?(e.consume(t),o=String.fromCharCode(t),f):n(t)}function f(a){if(null===a||47===a||62===a||aC(a)){let l=47===a,c=o.toLowerCase();return!l&&!i&&a5.includes(c)?(r=1,s.interrupt?t(a):k(a)):a8.includes(o.toLowerCase())?(r=6,l?(e.consume(a),m):s.interrupt?t(a):k(a)):(r=7,s.interrupt&&!s.parser.lazy[s.now().line]?n(a):i?function t(n){return aN(n)?(e.consume(n),t):w(n)}(a):g(a))}return 45===a||a_(a)?(e.consume(a),o+=String.fromCharCode(a),f):n(a)}function m(r){return 62===r?(e.consume(r),s.interrupt?t:k):n(r)}function g(t){return 47===t?(e.consume(t),w):58===t||95===t||ax(t)?(e.consume(t),y):aN(t)?(e.consume(t),g):w(t)}function y(t){return 45===t||46===t||58===t||95===t||a_(t)?(e.consume(t),y):v(t)}function v(t){return 61===t?(e.consume(t),b):aN(t)?(e.consume(t),v):g(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,x):aN(t)?(e.consume(t),b):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||aC(n)?v(n):(e.consume(n),t)}(t)}function x(t){return t===l?(e.consume(t),l=null,_):null===t||aT(t)?n(t):(e.consume(t),x)}function _(e){return 47===e||62===e||aN(e)?g(e):n(e)}function w(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||aT(t)?k(t):aN(t)?(e.consume(t),S):n(t)}function k(t){return 45===t&&2===r?(e.consume(t),C):60===t&&1===r?(e.consume(t),N):62===t&&4===r?(e.consume(t),O):63===t&&3===r?(e.consume(t),L):93===t&&5===r?(e.consume(t),I):aT(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(a7,P,E)(t)):null===t||aT(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),k)}function E(t){return e.check(a9,A,P)(t)}function A(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),T}function T(t){return null===t||aT(t)?E(t):(e.enter("htmlFlowData"),k(t))}function C(t){return 45===t?(e.consume(t),L):k(t)}function N(t){return 47===t?(e.consume(t),o="",j):k(t)}function j(t){if(62===t){let n=o.toLowerCase();return a5.includes(n)?(e.consume(t),O):k(t)}return ax(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),j):k(t)}function I(t){return 93===t?(e.consume(t),L):k(t)}function L(t){return 62===t?(e.consume(t),O):45===t&&2===r?(e.consume(t),L):k(t)}function O(t){return null===t||aT(t)?(e.exit("htmlFlowData"),P(t)):(e.consume(t),O)}function P(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},61:ld,95:ll,96:aZ,126:aZ},flowInitial:{[-2]:aY,[-1]:aY,32:aY},insideSpan:{null:[aH,lp]},string:{38:aq,92:aW},text:{[-5]:la,[-4]:la,[-3]:la,33:li,38:aq,42:aH,60:[{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"),i};function i(t){return ax(t)?(e.consume(t),o):64===t?n(t):l(t)}function o(t){return 43===t||45===t||46===t||a_(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,a):(43===n||45===n||46===n||a_(n))&&r++<32?(e.consume(n),t):(r=0,l(n))}(t)):l(t)}function a(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||aS(r)?n(r):(e.consume(r),a)}function l(t){return 64===t?(e.consume(t),s):aw(t)?(e.consume(t),l):n(t)}function s(i){return a_(i)?function i(o){return 46===o?(e.consume(o),r=0,s):62===o?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(o),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(o){if((45===o||a_(o))&&r++<63){let n=45===o?t:i;return e.consume(o),n}return n(o)}(o)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,o;let a=this;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),x):63===t?(e.consume(t),v):ax(t)?(e.consume(t),w):n(t)}function s(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,p):ax(t)?(e.consume(t),y):n(t)}function c(t){return 45===t?(e.consume(t),h):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):aT(t)?(o=u,j(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),h):u(t)}function h(e){return 62===e?N(e):45===e?d(e):u(e)}function p(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?f:p):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),m):aT(t)?(o=f,j(t)):(e.consume(t),f)}function m(t){return 93===t?(e.consume(t),g):f(t)}function g(t){return 62===t?N(t):93===t?(e.consume(t),g):f(t)}function y(t){return null===t||62===t?N(t):aT(t)?(o=y,j(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),b):aT(t)?(o=v,j(t)):(e.consume(t),v)}function b(e){return 62===e?N(e):v(e)}function x(t){return ax(t)?(e.consume(t),_):n(t)}function _(t){return 45===t||a_(t)?(e.consume(t),_):function t(n){return aT(n)?(o=t,j(n)):aN(n)?(e.consume(n),t):N(n)}(t)}function w(t){return 45===t||a_(t)?(e.consume(t),w):47===t||62===t||aC(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),N):58===t||95===t||ax(t)?(e.consume(t),k):aT(t)?(o=S,j(t)):aN(t)?(e.consume(t),S):N(t)}function k(t){return 45===t||46===t||58===t||95===t||a_(t)?(e.consume(t),k):function t(n){return 61===n?(e.consume(n),E):aT(n)?(o=t,j(n)):aN(n)?(e.consume(n),t):S(n)}(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,A):aT(t)?(o=E,j(t)):aN(t)?(e.consume(t),E):(e.consume(t),T)}function A(t){return t===r?(e.consume(t),r=void 0,C):null===t?n(t):aT(t)?(o=A,j(t)):(e.consume(t),A)}function T(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||aC(t)?S(t):(e.consume(t),T)}function C(e){return 47===e||62===e||aC(e)?S(e):n(e)}function N(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function j(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return aN(t)?aP(e,L,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):L(t)}function L(t){return e.enter("htmlTextData"),o(t)}}}],91:lo,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return aT(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},aW],93:le,95:aH,96:{name:"codeText",tokenize:function(e,t,n){let r=0,i,o;
49return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),r++,t):(e.exit("codeTextSequence"),a(n))}(t)};function a(s){return null===s?n(s):32===s?(e.enter("space"),e.consume(s),e.exit("space"),a):96===s?(o=e.enter("codeTextSequence"),i=0,function n(a){return 96===a?(e.consume(a),i++,n):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(a)):(o.type="codeTextData",l(a))}(s)):aT(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):(e.enter("codeTextData"),l(s))}function l(t){return null===t||32===t||96===t||aT(t)?(e.exit("codeTextData"),a(t)):(e.consume(t),l)}},resolve:function(e){let t=e.length-4,n=3,r,i;if(("lineEnding"===e[3][1].type||"space"===e[n][1].type)&&("lineEnding"===e[t][1].type||"space"===e[t][1].type)){for(r=n;++r<t;)if("codeTextData"===e[r][1].type){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)void 0===i?r!==t&&"lineEnding"!==e[r][1].type&&(i=r):(r===t||"lineEnding"===e[r][1].type)&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}}}},Symbol.toStringTag,{value:"Module"})),lx=/[\0\t\n\r]/g,l_=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function lw(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return av(n.slice(t?2:1),t?16:10)}return af(n)||e}let lS={}.hasOwnProperty;function lk(e){return{line:e.line,column:e.column,offset:e.offset}}function lE(e,t){throw e?Error("Cannot close `"+e.type+"` ("+oQ({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+oQ({start:t.start,end:t.end})+") is open"):Error("Cannot close document, a token (`"+t.type+"`, "+oQ({start:t.start,end:t.end})+") is still open")}function lA(e){let t=this;t.parser=function(n){var r,i;let o,a,l,s;return"string"!=typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(i=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(y),autolinkProtocol:c,autolinkEmail:c,atxHeading:r(f),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:c,characterReference:c,codeFenced:r(p),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(p,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:c,data:c,codeFlowValue:c,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(g,i),htmlFlowData:c,htmlText:r(g,i),htmlTextData:c,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(y),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(v,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(v),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(f),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:a(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];if(!t.depth){let n=this.sliceSerialize(e).length;t.depth=n}},autolink:a(),autolinkEmail:function(e){u.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){u.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:a(),characterEscapeValue:u,characterReferenceMarkerHexadecimal:h,characterReferenceMarkerNumeric:h,characterReferenceValue:function(e){let t;let n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=av(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=af(n);let i=this.stack.pop();i.value+=t,i.position.end=lk(e.end)},codeFenced:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:u,codeIndented:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:u,data:u,definition:a(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=ab(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:a(),hardBreakEscape:a(d),hardBreakTrailing:a(d),htmlFlow:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:u,htmlText:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:u,image:a(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){let t=e.children;n.children=t}else n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(l_,lw),n.identifier=ab(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=lk(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.t
49ype)&&(c.call(this,e),u.call(this,e))},link:a(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=ab(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:a(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:a(),thematicBreak:a()}};(function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(lS.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}})(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},a={stack:[r],tokenStack:[],config:t,enter:o,exit:l,buffer:i,resume:s,data:n},c=[],u=-1;for(;++u<e.length;)("listOrdered"===e[u][1].type||"listUnordered"===e[u][1].type)&&("enter"===e[u][0]?c.push(u):u=function(e,t,n){let r=t-1,i=-1,o=!1,a,l,s,c;for(;++r<=n;){let t=e[r];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?i++:i--,c=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!a||c||i||s||(s=r),c=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:c=void 0}if(!i&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===i&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(a){let i=r;for(l=void 0;i--;){let t=e[i];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;l&&(e[l][1].type="lineEndingBlank",o=!0),t[1].type="lineEnding",l=i}else if(!("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type))break}s&&(!l||s<l)&&(a._spread=!0),a.end=Object.assign({},l?e[l][1].start:t[1].end),e.splice(l||r,0,["exit",a,t[2]]),r++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};a=i,e.splice(r,0,["enter",i,t[2]]),r++,n++,s=void 0,c=!0}}}return e[t][1]._spread=o,n}(e,c.pop(),u));for(u=-1;++u<e.length;){let n=t[e[u][0]];lS.call(n,e[u][1].type)&&n[e[u][1].type].call(Object.assign({sliceSerialize:e[u][2].sliceSerialize},a),e[u][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||lE).call(a,void 0,e[0])}for(r.position={start:lk(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:lk(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u<t.transforms.length;)r=t.transforms[u](r)||r;return r};function r(e,t){return function(n){o.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function o(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:lk(t.start),end:void 0}}function a(e){return function(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||lE).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+oQ({start:e.start,end:e.end})+"): itâs not open");n.position.end=lk(e.end)}function s(){return ad(this.stack.pop(),"boolean"!=typeof au.includeImageAlt||au.includeImageAlt,"boolean"!=typeof au.includeHtml||au.includeHtml)}function c(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:lk(e.start),end:void 0},t.push(n)),this.stack.push(n)}function u(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=lk(e.end)}function d(){this.data.atHardBreak=!0}function h(e){this.data.characterReferenceType=e.type}function p(){return{type:"code",lang:null,meta:null,value:""}}function f(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function g(){return{type:"html",value:""}}function y(){return{type:"link",title:null,url:"",children:[]}}function v(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(i)(function(e){for(;!aJ(e););return e}((function(e){let t={defined:[],lazy:{},constructs:function(e){let t={},n=-1;for(;++n<e.length;)(function(e,t){let n;for(n in t){let r;let i=(ay.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];if(o)for(r in o){ay.call(i,r)||(i[r]=[]);let e=o[r];(function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);am(e,0,0,r)})(i[r],Array.isArray(e)?e:e?[e]:[])}}})(t,e[n]);return t}([lb,...(e||{}
49).extensions||[]]),content:n(aR),document:n(aM),flow:n(lh),string:n(lf),text:n(lm)};return t;function n(e){return function(n){return function(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),i={},o=[],a=[],l=[],s={consume:function(e){aT(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=h(),c.events.push(["enter",n,c]),l.push(n),n},exit:function(e){let t=l.pop();return t.end=h(),c.events.push(["exit",t,c]),t},attempt:f(function(e,t){m(e,t.from)}),check:f(p),interrupt:f(p,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:d,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let o;let a=e[r];if("string"==typeof a)o=a;else switch(a){case -5:o="\r";break;case -4:o=` 50`;break;case -3:o=`\r 51`;break;case -2:o=t?" ":" ";break;case -1:if(!t&&n)continue;o=" ";break;default:o=String.fromCharCode(a)}n=-2===a,i.push(o)}return i.join("")}(d(e),t)},now:h,defineSkip:function(e){i[e.line]=e.column,g()},write:function(e){return a=ag(a,e),function(){let e;for(;r._index<a.length;){let n=a[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),u=u(t)}else u=u(n)}}(),null!==a[a.length-1]?[]:(m(t,0),c.events=aU(o,c.events,c),c.events)}},u=t.tokenize.call(c,s);return t.resolveAll&&o.push(t),c;function d(e){return function(e,t){let n;let r=t.start._index,i=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex;if(r===o)n=[e[r].slice(i,a)];else{if(n=e.slice(r,o),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}a>0&&n.push(e[o].slice(0,a))}return n}(a,e)}function h(){let{line:e,column:t,offset:n,_index:i,_bufferIndex:o}=r;return{line:e,column:t,offset:n,_index:i,_bufferIndex:o}}function p(e,t){t.restore()}function f(e,t){return function(n,i,o){let a,u,d,p;return Array.isArray(n)?f(n):"tokenize"in n?f([n]):function(e){let t=null!==e&&n[e],r=null!==e&&n.null;return f([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(r)?r:r?[r]:[]])(e)};function f(e){return a=e,u=0,0===e.length?o:m(e[u])}function m(e){return function(n){return p=function(){let e=h(),t=c.previous,n=c.currentConstruct,i=c.events.length,o=Array.from(l);return{restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=i,l=o,g()},from:i}}(),d=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name)?v():e.tokenize.call(t?Object.assign(Object.create(c),t):c,s,y,v)(n)}}function y(t){return e(d,p),i}function v(e){return p.restore(),++u<a.length?m(a[u]):o}}}function m(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&am(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function g(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(i).document().write((o=1,a="",l=!0,function(e,t,n){let r,i,c,u,d;let h=[];for(e=a+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),c=0,a="",l&&(65279===e.charCodeAt(0)&&c++,l=void 0);c<e.length;){if(lx.lastIndex=c,u=(r=lx.exec(e))&&void 0!==r.index?r.index:e.length,d=e.charCodeAt(u),!r){a=e.slice(c);break}if(10===d&&c===u&&s)h.push(-3),s=void 0;else switch(s&&(h.push(-5),s=void 0),c<u&&(h.push(e.slice(c,u)),o+=u-c),d){case 0:h.push(65533),o++;break;case 9:for(i=4*Math.ceil(o/4),h.push(-2);o++<i;)h.push(-1);break;case 10:h.push(-4),o=1;break;default:s=!0,o=1}c=u+1}return n&&(s&&h.push(-5),a&&h.push(a),h.push(null)),h})(n,r,!0))))}}function lT(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});let a=i[i.length-1];return a&&"text"===a.type?a.value+=r:i.push({type:"text",value:r}),i}function lC(e){return e.spread??e.children.length>1}
51function lN(e,t,n){let r=0,i=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(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let lj={blockquote:function(e,t){let 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){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` 52`}]},code:function(e,t){let n=t.value?t.value+` 53`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i={type:"element",tagName:"pre",properties:{},children:[i=e.applyData(t,i)]},e.patch(t,i),i},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=aO(r.toLowerCase()),o=e.footnoteOrder.indexOf(r),a,l=e.footnoteCounts.get(r);void 0===l?(l=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=o+1,l+=1,e.footnoteCounts.set(r,l);let s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,s);let c={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){let 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.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return lT(e,t);let i={src:aO(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){let n={src:aO(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return lT(e,t);let i={href:aO(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){let n={href:aO(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let 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){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=lC(n[r])}return t}(n):lC(t),o={},a=[];if("boolean"==typeof t.checked){let e;let n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let l=-1;for(;++l<r.length;){let e=r[l];(i||0!==l||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:` 54`}),"element"!==e.type||"p"!==e.tagName||i?a.push(e):a.push(...e.children)}let s=r[r.length-1];s&&(i||"element"!==s.type||"p"!==s.tagName)&&a.push({type:"text",value:` 55`});let c={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];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}}let o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=o$(t.children[1]),a=oK(t.children[t.children.length-1]);o&&a&&(r.position={start:o,end:a}),i.push(r)}let o={type:"element",tagName:"table",properties:{}
55,children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",o=n&&"table"===n.type?n.align:void 0,a=o?o.length:t.children.length,l=-1,s=[];for(;++l<a;){let n=t.children[l],r={},a=o?o[l]:void 0;a&&(r.align=a);let c={type:"element",tagName:i,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),s.push(c)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,o=[];for(;r;)o.push(lN(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(lN(t.slice(i),i>0,!1)),o.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:lI,yaml:lI,definition:lI,footnoteDefinition:lI};function lI(){}let lL="object"==typeof self?self:globalThis,lO=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[o,a]=t[i];switch(o){case 0:case -1:return n(a,i);case 1:{let e=n([],i);for(let t of a)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),i);case 4:{let{source:e,flags:t}=a;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of a)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of a)e.add(r(t));return e}case 7:{let{name:e,message:t}=a;return n(new lL[e](t),i)}case 8:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i)}return n(new lL[o](a),i)};return r},lP=e=>lO(new Map,e)(0),{toString:lR}={},{keys:lM}=Object,lD=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=lR.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},lB=([e,t])=>0===e&&("function"===t||"symbol"===t),lU=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},o=r=>{if(n.has(r))return n.get(r);let[a,l]=lD(r);switch(a){case 0:{let t=r;switch(l){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+l);t=null;break;case"undefined":return i([-1],r)}return i([a,t],r)}case 1:{if(l)return i([l,[...r]],r);let e=[],t=i([a,e],r);for(let t of r)e.push(o(t));return t}case 2:{if(l)switch(l){case"BigInt":return i([l,r.toString()],r);case"Boolean":case"Number":case"String":return i([l,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());let n=[],s=i([a,n],r);for(let t of lM(r))(e||!lB(lD(r[t])))&&n.push([o(t),o(r[t])]);return s}case 3:return i([a,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([a,{source:e,flags:t}],r)}case 5:{let t=[],n=i([a,t],r);for(let[n,i]of r)(e||!(lB(lD(n))||lB(lD(i))))&&t.push([o(n),o(i)]);return n}case 6:{let t=[],n=i([a,t],r);for(let n of r)(e||!lB(lD(n)))&&t.push(o(n));return n}}let{message:s}=r;return i([a,{name:l,message:s}],r)};return o},lH=(e,{json:t,lossy:n}={})=>{let r=[];return lU(!(t||n),!!t,new Map,r)(e),r},lF="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?lP(lH(e,t)):structuredClone(e):(e,t)=>lP(lH(e,t));function lz(e,t){let n=[{type:"text",value:"â©"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function lG(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let lW=function(e){if(null==e)return lV;if("function"==typeof e)return lq(e);
55if("object"==typeof e)return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=lW(e[n]);return lq(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):lq(function(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0});if("string"==typeof e)return lq(function(t){return t&&t.type===e});throw Error("Expected function, string, or object as test")};function lq(e){return function(t,n,r){return!!(null!==t&&"object"==typeof t&&"type"in t&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function lV(){return!0}let lZ=[];function lY(e,t,n,r){let i,o,a;"function"==typeof t&&"function"!=typeof n?(o=void 0,a=t,i=n):(o=t,a=n,i=r),function(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;let o=lW(i),a=r?-1:1;(function e(i,l,s){let c=i&&"object"==typeof i?i:{};if("string"==typeof c.type){let e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return u;function u(){var c;let u=lZ,d,h,p;if((!t||o(i,l,s[s.length-1]||void 0))&&!1===(u=Array.isArray(c=n(i,s))?c:"number"==typeof c?[!0,c]:null==c?lZ:[c])[0])return u;if("children"in i&&i.children&&i.children&&"skip"!==u[0])for(h=(r?i.children.length:-1)+a,p=s.concat(i);h>-1&&h<i.children.length;){if(!1===(d=e(i.children[h],h,p)())[0])return d;h="number"==typeof d[1]?d[1]:h+a}return u}})(e,void 0,[])()}(e,o,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)},i)}let lX={}.hasOwnProperty,lK={};function l$(e,t){e.position&&(t.position=function(e){let t=o$(e),n=oK(e);if(t&&n)return{start:t,end:n}}(e))}function lJ(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,lF(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function lQ(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:` 56`});++r<e.length;)r&&n.push({type:"text",value:` 57`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:` 58`}),n}function l0(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function l1(e,t){let n=function(e,t){let n=t||lK,r=new Map,i=new Map,o={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=o.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=l0(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=l0(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:lJ,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...lj,...n.handlers},one:function(e,t){let n=e.type,r=o.handlers[n];if(lX.call(o.handlers,n)&&r)return r(o,e,t);if(o.options.passThrough&&o.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=lF(n);return r.children=o.all(e),r}return lF(e)}return(o.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(lX.call(n,"hProperties")||lX.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(o,e,t)},options:n,patch:l$,wrap:lQ};return lY(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),o}(e,t),r=n.one(e,void 0),i=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||lz,r=e.options.footnoteBackLabel||lG,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[],s=-1;for(;++s<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[s]);if(!i)continue;let o=e.all(i),a=String(i.identifier).toUpperCase(),c=aO(a.toLowerCase()),u=0,d=[],h=e.footnoteCounts.get(a);for(;void 0!==h&&++u<=h;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(s,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let p=o[o.length-1];if(p&&"element"===p.type&&"p"===p.tagName){let e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else o.push(...d);let f={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(o,!0)};e.patch(i,f),l.push(f)}if(0!==l.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...lF(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` 59`},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:` 60`}]}}(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:` 61`},i),o}function l2(e,t){return e&&"run"in e?async function(n,r){let i=l1(n,{file:r,...t});await e.run(i,r)}:function(n,r){return l1(n,{file:r,...t||e})}}function l3(e){if(e)throw e}var l6=Object.prototype.hasOwnProperty,l4=Object.prototype.toString,l8=Object.defineProperty,l5=Object.getOwnPropertyDescriptor,l7=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===l4.call(e)},l9=function(e){if(!e||"[object Object]"!==l4.call(e))return!1;var t,n=l6.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&l6.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return typeof t>"u"||l6.call(e,t)},se=function(e,t){l8&&"__proto__"===t.name?l8(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},st=function(e,t){if("__proto__"===t){if(!l6.call(e,t))return;if(l5)return l5(e,t).value}return e[t]};let sn=P(function e(){var t,n,r,i,o,a,l=arguments[0],s=1,c=arguments.length,u=!1;for("boolean"==typeof l&&(u=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<c;++s)if(t=arguments[s],null!=t)for(n in t)r=st(l,n),l!==(i=st(t,n))&&(u&&i&&(l9(i)||(o=l7(i))
61)?(o?(o=!1,a=r&&l7(r)?r:[]):a=r&&l9(r)?r:{},se(l,{name:n,newValue:e(u,a,i)})):"u">typeof i&&se(l,{name:n,newValue:i}));return l});function sr(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let si={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');so(e);let n=0,r=-1,i=e.length,o;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,l=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(o){n=i+1;break}}else a<0&&(o=!0,a=i+1),l>-1&&(e.codePointAt(i)===t.codePointAt(l--)?l<0&&(r=i):(l=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)},dirname:function(e){if(so(e),0===e.length)return".";let t=-1,n=e.length,r;for(;--n;)if(47===e.codePointAt(n)){if(r){t=n;break}}else r||(r=!0);return t<0?47===e.codePointAt(0)?"/":".":1===t&&47===e.codePointAt(0)?"//":e.slice(0,t)},extname:function(e){so(e);let t=e.length,n=-1,r=0,i=-1,o=0,a;for(;t--;){let l=e.codePointAt(t);if(47===l){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),46===l?i<0?i=t:1!==o&&(o=1):i>-1&&(o=-1)}return i<0||n<0||0===o||1===o&&i===n-1&&i===r+1?"":e.slice(i,n)},join:function(...e){let t=-1,n;for(;++t<e.length;)so(e[t]),e[t]&&(n=void 0===n?e[t]:n+"/"+e[t]);return void 0===n?".":function(e){so(e);let t=47===e.codePointAt(0),n=function(e,t){let n="",r=0,i=-1,o=0,a=-1,l,s;for(;++a<=e.length;){if(a<e.length)l=e.codePointAt(a);else{if(47===l)break;l=47}if(47===l){if(!(i===a-1||1===o)){if(i!==a-1&&2===o){if(n.length<2||2!==r||46!==n.codePointAt(n.length-1)||46!==n.codePointAt(n.length-2)){if(n.length>2){if((s=n.lastIndexOf("/"))!==n.length-1){s<0?(n="",r=0):r=(n=n.slice(0,s)).length-1-n.lastIndexOf("/"),i=a,o=0;continue}}else if(n.length>0){n="",r=0,i=a,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1}i=a,o=0}else 46===l&&o>-1?o++:o=-1}return n}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(n)},sep:"/"};function so(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function sa(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let sl=["history","path","basename","stem","extname","dirname"];class ss{constructor(e){let t,n;t=e?sa(e)?{path:e}:"string"==typeof e||e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e?{value:e}:e:{},this.cwd="/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<sl.length;){let e=sl[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)sl.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?si.basename(this.path):void 0}set basename(e){su(e,"basename"),sc(e,"basename"),this.path=si.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?si.dirname(this.path):void 0}set dirname(e){sd(this.basename,"dirname"),this.path=si.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?si.extname(this.path):void 0}set extname(e){if(sc(e,"extname"),sd(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=si.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){sa(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!sa(e)){let t=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){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),su(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?si.basename(this.path,this.extname):void 0}set stem(e){su(e,"stem"),sc(e,"stem"),this.path=si.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new o3(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function sc(e,t){if(e&&e.includes(si.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+si.sep+"`")}function su(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function sd(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let sh=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};for(let e of(Object.setPrototypeOf(r,t),Object.getOwnPropertyNames(n))){let t=Object.getOwnPropertyDescriptor(n,e);t&&Object.defineProperty(r,e,t)}return r},sp={}.hasOwnProperty;class sf extends sh{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);(function i(o,...a){let l=e[++n],s=-1;if(o){r(o);return}for(;++s<t.length;)(null===a[s]||void 0===a[s])&&(a[s]=t[s]);t=a,l?(function(e,t){let n;return function(...t){let o;let a=e.length>t.length;a&&t.push(r);try{o=e.apply(this,t)}catch(e){if(a&&n)throw e;return r(e)}a||(o&&o.then&&"function"==typeof o.then?o.then(i,r):o instanceof Error?r(o):i(o))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(l,i)(...a):r(null,...a)})(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new sf,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data(sn(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(sv("data",this.frozen),this.namespace[e]=t,this):sp.call(this.namespace,e)&&this.namespace[e]||void 0:e?(sv("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();let t=s_(e),n=this.parser||this.Parser;return sg("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),sg("process",this.parser||this.Parser),sy("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let o=s_(e),a=n.parse(o);function l(e,n){e||!n?i(e):r?r(n):t(void 0,n)}n.run(a,o,function(e,t,r){if(e||!t||!r)return l(e);let i=n.stringify(t,r);"string"==typeof i||i&&"object"==typeof i&&"byteLength"in i&&"byteOffset"in i?r.value=i:r.result=i,l(e,r)})}}processSync(e){let t=!1,n;return this.freeze(),sg("processSync",this.parser||this.Parser),sy("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){t=!0,l3(e),n=r}),sx("processSync","process",t),n}
61run(e,t,n){sb(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,o){let a=s_(t);r.run(e,a,function(t,r,a){let l=r||e;t?o(t):i?i(l):n(void 0,l,a)})}}runSync(e,t){let n=!1,r;return this.run(e,t,function(e,t){l3(e),r=t,n=!0}),sx("runSync","run",n),r}stringify(e,t){this.freeze();let n=s_(t),r=this.compiler||this.Compiler;return sy("stringify",r),sb(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(sv("use",this.frozen),null!=e){if("function"==typeof e)a(e,t);else if("object"==typeof e)Array.isArray(e)?o(e):i(e);else throw TypeError("Expected usable value, not `"+e+"`")}return this;function i(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=sn(!0,r.settings,e.settings))}function o(e){let t=-1;if(null!=e){if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)a(e,[]);else if("object"==typeof e){if(Array.isArray(e)){let[t,...n]=e;a(t,n)}else i(e)}else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}}function a(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...o]=t,a=n[i][1];sr(a)&&sr(r)&&(r=sn(!0,a,r)),n[i]=[e,r,...o]}}}}let sm=new sf().freeze();function sg(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function sy(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function sv(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function sb(e){if(!sr(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function sx(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function s_(e){return e&&"object"==typeof e&&"message"in e&&"messages"in e?e:new ss(e)}let sw=[],sS={allowDangerousHtml:!0},sk=/^(https?|ircs?|mailto|xmpp)$/i,sE=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function sA(e){let t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,a=e.disallowedElements,l=e.rehypePlugins||sw,s=e.remarkPlugins||sw,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...sS}:sS,u=e.skipHtml,d=e.unwrapDisallowed,h=e.urlTransform||sT,p=sm().use(lA).use(s).use(l2,c).use(l),f=new ss;for(let t of("string"==typeof r&&(f.value=r),sE))Object.hasOwn(e,t.from)&&(t.from,t.to&&t.to,t.id);let m=p.parse(f),g=p.runSync(m,f);return i&&(g={type:"element",tagName:"div",properties:{className:i},children:"root"===g.type?g.children:[g]}),lY(g,function(e,r,i){if("raw"===e.type&&i&&"number"==typeof r)return u?i.children.splice(r,1):i.children[r]={type:"text",value:e.value},r;if("element"===e.type){let t;for(t in ac)if(Object.hasOwn(ac,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=ac[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=h(String(n||""),t,e))}}if("element"===e.type){let o=t?!t.includes(e.tagName):!!a&&a.includes(e.tagName);if(!o&&n&&"number"==typeof r&&(o=!n(e,r,i)),o&&i&&"number"==typeof r)return d&&e.children?i.children.splice(r,1,...e.children):i.children.splice(r,1),r}}),function(e,t){var n,r,i;let o;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let a=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=t.jsxDEV,o=function(e,t,r,i){let o=Array.isArray(r.children),l=o$(e);return n(t,r,i,o,{columnNumber:l?l.column-1:void 0,fileName:a,lineNumber:l?l.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");
61if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");r=t.jsx,i=t.jsxs,o=function(e,t,n,o){let a=Array.isArray(n.children)?i:r;return o?a(t,n,o):a(t,n)}}let l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?oP:oO,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},s=at(l,e,void 0);return s&&"string"!=typeof s?s:l.create(e,l.Fragment,{children:s||void 0},void 0)}(g,{Fragment:S.Fragment,components:o,ignoreInvalidStyle:!0,jsx:S.jsx,jsxs:S.jsxs,passKeys:!0,passNode:!0})}function sT(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||sk.test(e.slice(0,t))?e:""}let sC={container:"_container_14a1c_9","size-sm":"_size-sm_14a1c_20","size-md":"_size-md_14a1c_25","size-lg":"_size-lg_14a1c_30","align-bottom":"_align-bottom_14a1c_35","align-top":"_align-top_14a1c_38","top-ctrls":"_top-ctrls_14a1c_41","close-button":"_close-button_14a1c_44","has-header-border":"_has-header-border_14a1c_60","no-header-border":"_no-header-border_14a1c_63","content-block":"_content-block_14a1c_71",md:"_md_14a1c_76",fadeInAnimation:"_fadeInAnimation_14a1c_1"},sN=(0,k.memo)(e=>{let{open:t=!1,children:n,title:r,onCloseButtonClick:i,size:o="md",align:a="center",hasHeaderBorder:l=!1,HeaderIcon:s}=e;return(0,k.useEffect)(()=>{if("u">typeof window){let e=window.document.getElementById("modalOverlayHoder");e&&(e.innerHTML=t?'<div class="modal-overlay"></div>':"")}},[t]),(0,S.jsx)(S.Fragment,{children:t&&(0,S.jsxs)("div",{className:`${sC.container} ${sC[`size-${o}`]} ${sC[`align-${a}`]}`,children:[(0,S.jsx)("div",{className:sC["top-ctrls"],children:(0,S.jsx)("div",{className:sC["close-button"],children:i&&(0,S.jsx)(ru,{onClick:i,children:(0,S.jsx)(nQ,{color:"#272727"})})})}),r&&(0,S.jsxs)("header",{className:l?sC["has-header-border"]:sC["no-header-border"],children:[s&&s,(0,S.jsx)("h3",{children:r})]}),(0,S.jsx)("section",{className:sC["content-block"],children:n})]})})}),sj={container:"_container_s9hfy_9","content-block":"_content-block_s9hfy_18","caption-block":"_caption-block_s9hfy_21",fadeInAnimation:"_fadeInAnimation_s9hfy_1"},sI=(0,k.memo)(({content:e,caption:t})=>(0,S.jsxs)("div",{className:sj.container,children:[(0,S.jsx)("div",{className:sj["content-block"],dangerouslySetInnerHTML:{__html:e}}),t&&(0,S.jsx)("div",{className:sj["caption-block"],children:t})]})),sL={container:"_container_154vz_15",dot:"_dot_154vz_15"},sO=({})=>(0,S.jsxs)("div",{className:sL.container,children:[(0,S.jsx)("div",{className:sL.dot}),(0,S.jsx)("div",{className:sL.dot}),(0,S.jsx)("div",{className:sL.dot})]}),sP={container:"_container_1nfve_9",fadeInAnimation:"_fadeInAnimation_1nfve_1",notification:"_notification_1nfve_16","position-top":"_position-top_1nfve_27","position-bottom":"_position-bottom_1nfve_34","position-center":"_position-center_1nfve_41","type-default":"_type-default_1nfve_48","type-success":"_type-success_1nfve_52","type-error":"_type-error_1nfve_56","type-warning":"_type-warning_1nfve_60","type-info":"_type-info_1nfve_64"},sR=({title:e,position:t="center",type:n="default"})=>{let r=`position-${t}`,i=`type-${n}`;return(0,S.jsx)("div",{className:`_container_1nfve_9 ${sP[r]} ${sP[i]}`,children:(0,S.jsx)("p",{className:"_notification_1nfve_16",children:e})})},sM={container:"_container_pjlfb_9","conversation-item":"_conversation-item_pjlfb_12",loader:"_loader_pjlfb_16",fadeInAnimation:"_fadeInAnimation_pjlfb_1"},sD=({items:e,loading:t=!1,selectedId:n,onTitleClick:r})=>(0,S.jsxs)("div",{className:sM.container,children:[t&&(0,S.jsx)("div",{className:sM.loader,children:(0,S.jsx)(sO,{})}),e.map(({id:e,title:t,startDate:i,date:o})=>(0,S.jsx)("div",{className:sM["conversation-item"],children:(0,S.jsx)(i6,{id:e,title:t,date:i||o,selected:n===e,hasRightArrow:!0,onTitleClick:r})},e))]}),sB={container:"_container_10w3l_1","menu-item":"_menu-item_10w3l_10"},sU=({items:e,onItemClick:t})=>(0,S.jsx)("div",{className:"_container_10w3l_1",children:e.map(({key:e,label:n,Icon:r})=>(0,S.jsxs)("div",{className:sB["menu-item"],onClick:()=>t(e),children:[r,(0,S.jsx)(rc,{variant:"transparent",children:n})]},`menu-id-${e}`))}),sH={container:"_container_h47bz_9","icon-block":"_icon-block_h47bz_19","action-block":"_action-block_h47bz_24",fadeInAnimation:"_fadeInAnimation_h47bz_1"},sF=({title:e,Icon:t,buttonLabel:n,onButtonClick:r})=>(0,S.jsxs)("div",{className:"_container_h47bz_9",children:[(0,S.jsx)("div",{className:sH["icon-block"],children:t}),(0,S.jsxs)("div",{className:sH["action-block"],children:[(0,S.jsx)("p",{children:e}),n&&r&&(0,S.jsx)(rc,{onClick:r,children:n})]})]}),sz=({title:e,buttonLabel:t,onHandlerButtonClick:n})=>(0,S.jsxs)("div",{className:"_container_1he1f_9",children:[(0,S.jsx)("p",{children:e}),t&&n&&(0,S.jsx)(rc,{onClick:n,children:t})]}),sG=e=>(0,S.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14.147",height:"21.156",viewBox:"0 0 14.147 21.156",children:(0,S.jsx)("path",{id:"mic-svgrepo-com",d:"M21.907,13.016V6.8a3.608,3.608,0,1,0-7.2,0v6.218a3.608,3.608,0,1,0,7.2,0Zm-1.493,0a2.124,2.124,0,1,1-4.211,0V6.8a2.124,2.124,0,1,1,4.211,0Zm-6.525,9.57a.743.743,0,0,0-.741.751.734.734,0,0,0,.741.741h8.838a.734.734,0,0,0,.741-.741.743.743,0,0,0-.741-.751H19.05v-2.3a6.606,6.606,0,0,0,6.327-6.91V11.365a.734.734,0,0,0-.741-.741.743.743,0,0,0-.751.741v1.948a5.259,5.259,0,0,1-5.576,5.605,5.267,5.267,0,0,1-5.586-5.605V11.365a.734.734,0,0,0-.741-.741.743.743,0,0,0-.751.741v2.007a6.613,6.613,0,0,0,6.327,6.91v2.3Z",transform:"translate(-11.23 -2.922)",fill:e.color||"#747474"})});function sW(e){return(0,S.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24px",height:"24px",...e,children:(0,S.jsx)("path",{fill:"currentColor",d:"M17.51 3.87L15.73 2.1L5.84 12l9.9 9.9l1.77-1.77L9.38 12z"})})}let sq={sm:"sm",lg:"lg",xs:"xs"},sV=[{key:"ACTION_ASK_MORE_INFO",active:!0}],sZ={single:"single",stream:"stream"},sY={closed:"closed",open:"open",hidden:"hidden"},sX={sm:600},sK={askQuestionToBot:0},s$={x:0,y:0},sJ={chatWindowSize:sq.sm,chatWindowPosition:"br",chatResponseType:sZ.stream,defaultLocale:"en",appOpenState:sY.closed,chatInputSize:125,sharingDisclaimer:"",disclaimerAcceptance:"",responseDisclaimer:""},sQ=(0,k.createContext)({apiUrlAiChat:T.env.API_URL_AI_CHAT||"",appConfig:sJ}),s0="hhbBotSize",s1="hhbBotOpenState",s2="hhbBotActiveConvId",s3="hhbBotUserDeniedLoginPrompt",s6="hhbBotLoginPreferenceV2",s4="continue_without_sign_in",s8="hhbBotDisclaimerAccepted",s5="hhBotCoordinates";class s7{static storeOpenState(e){"u">typeof sessionStorage&&sessionStorage.setItem(s1,e)}static getOpenState(){try{let e="u">typeof sessionStorage?sessionStorage.getItem(s1):void 0;return e&&sY[e]?e:void 0}catch{return}}static storeSize(e){"u">typeof sessionStorage&&sessionStorage.setItem(s0,e)}static getStoredSize(){try{let e="u">typeof sessionStorage?sessionStorage.getItem(s0):void 0;return e&&sq[e]?e:void 0}catch{return}}static storeActiveConvId(e){"u">typeof localStorage&&localStorage.setItem(s2,e)}static getStoredStoreActiveConvId(){return"u">typeof localStorage?localStorage.getItem(s2):null}static clearActiveConvId(){try{"u">typeof localStorage&&localStorage.removeItem(s2)}catch{return!1}}static clearAllState(){try{return"u">typeof localStorage&&(localStorage.removeItem(s2),localStorage.removeItem(s3),localStorage.removeItem(s6),localStorage.removeItem(s8),localStorage.removeItem(s5)),"u">typeof sessionStorage&&(sessionStorage.removeItem(s1),sessionStorage.removeItem(s0)),!0}catch{return!1}}static storeLoginPromptDeniedStatus(){"u">typeof localStorage&&(localStorage.removeItem(s3),localStorage.setItem(s6,JSON.stringify({version:2,choice:s4})))}static getLoginPromptDeniedStatus(){try{let e="u">typeof localStorage?localStorage.getItem(s6):null;if(!e)return null;let t=JSON.parse(e);
61return(null==t?void 0:t.version)===2&&(null==t?void 0:t.choice)===s4?"yes":null}catch{return null}}static clearLoginPromptDeniedStatus(){try{"u">typeof localStorage&&(localStorage.removeItem(s3),localStorage.removeItem(s6))}catch{return!1}}static storeDisclaimerAcceptedStatus(){"u">typeof localStorage&&localStorage.setItem(s8,"yes")}static getDisclaimerAcceptedStatus(){try{return("u">typeof localStorage?localStorage.getItem(s8):null)==="yes"}catch{return!1}}static storeBotCoordinates(e){try{"u">typeof localStorage&&localStorage.setItem(s5,JSON.stringify(e))}catch{return!1}}static getBotCoordinates(){try{if("u">typeof localStorage){let e=localStorage.getItem(s5);return e&&null!=e?JSON.parse(e):s$}}catch{return s$}}static clearBotCoordinates(){try{if("u">typeof localStorage)return localStorage.removeItem(s5)}catch{return s$}}}let s9=()=>{if(!("u">typeof navigator))return!1;{let e=navigator.userAgent.toLowerCase();return"function"==typeof navigator.share&&["chrome","opera","opr","safari","samsungbrowser","edg"].find(t=>e.includes(t))}},ce=e=>{if(!e)return!1;let{scrollHeight:t,scrollTop:n,clientHeight:r}=e;return n+r-t>-20},ct=()=>navigator.userAgent.match(/(android|iphone|ipad)/i),cn=()=>{if(typeof window>"u")return"https://www.happiesthealth.com";let e=window.location.hostname.split(".").slice(0,-2).join(".");return e.includes("staging-dev")?"https://staging-dev.happiesthealth.com":e.includes("staging3")||e.includes("uat")?"https://staging3.happiesthealth.com":e.includes("qa")?"https://qa.staging.happiesthealth.com":"https://www.happiesthealth.com"},cr=({onOpenChatBot:e})=>{let t,n;let[r,i]=(0,k.useState)(!1),[o,a]=(0,k.useState)(!1),l=(0,k.useRef)(null),{appConfig:s}=(0,k.useContext)(sQ),[c,u]=(0,k.useState)(s7.getBotCoordinates()),d=()=>{o||e()};"u">typeof window?(t=-window.innerWidth+180,n=-window.innerHeight+300):(t=300,n=300),(0,k.useEffect)(()=>{let e;if(ct()){i(!1);return}let t=setTimeout(()=>{i(!0),e=setTimeout(()=>{i(!1)},3e3)},7e3);return()=>{clearTimeout(t),e&&clearTimeout(e)}},[]);let h=tM().formatMessage({id:"chatbot.opener.tooltip"});return(0,S.jsx)("section",{className:"hh-chatbot-plugin-container",children:(0,S.jsx)("div",{className:"hh-fixed-bot",children:(0,S.jsx)(nJ,{bounds:{left:t,top:n,right:50,bottom:150},nodeRef:l,position:{x:null==c?void 0:c.x,y:null==c?void 0:c.y},onDrag:(e,t)=>{let n={x:null==t?void 0:t.x,y:null==t?void 0:t.y};u({x:t.x,y:t.y}),s7.storeBotCoordinates(n),i(!1),a(!0)},onStop:()=>{setTimeout(()=>{a(!1)},500)},disabled:!0,children:(0,S.jsx)("div",{ref:l,className:"bot-open-icon",children:s.showToolTipMessage?(0,S.jsx)(rx,{opened:r,content:s.toolTipMessage||h,showOnHover:!1,onCloseButtonClick:()=>i(!1),children:(0,S.jsx)("div",{onClick:d,onTouchEnd:d,className:"opener-button",children:(0,S.jsx)(ru,{"aria-label":s.toolTipMessage,children:(0,S.jsx)(n6,{width:50,height:45,doAnimation:!0})})})}):(0,S.jsx)("div",{onClick:d,onTouchEnd:d,className:"opener-button",children:(0,S.jsx)(ru,{"aria-label":s.toolTipMessage,children:(0,S.jsx)(n6,{width:50,height:45})})})})})})})},ci=new Uint8Array(16),co=[];for(let e=0;e<256;++e)co.push((e+256).toString(16).slice(1));let ca={randomUUID:"u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function cl(e,t,n){if(ca.randomUUID&&!t&&!e)return ca.randomUUID();let i=(e=e||{}).random||(e.rng||function(){if(!r&&!(r="u">typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(ci)})();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=i[e];return t}return function(e,t=0){return co[e[t+0]]+co[e[t+1]]+co[e[t+2]]+co[e[t+3]]+"-"+co[e[t+4]]+co[e[t+5]]+"-"+co[e[t+6]]+co[e[t+7]]+"-"+co[e[t+8]]+co[e[t+9]]+"-"+co[e[t+10]]+co[e[t+11]]+co[e[t+12]]+co[e[t+13]]+co[e[t+14]]+co[e[t+15]]}(i)}class cs extends Error{}cs.prototype.name="InvalidTokenError";let cc="hh_token";class cu{static getHHAccessToken(){if(typeof window>"u")return;let e=i2.getCookieValue(cc)||i2.getCookieValue("hh_token_qa")||i2.getCookieValue("hh_token_dev")||i2.getCookieValue("hh_token_uat")||i2.getCookieValue("hh_token_perf");if(e)try{let t=JSON.parse(e);return(null==t?void 0:t.accessToken)||e}catch{return e}}static getAccessTokenString(e){if(e){if("string"==typeof e)try{let t=JSON.parse(e);return"object"==typeof t&&"accessToken"in t&&"string"==typeof t.accessToken?t.accessToken:e}catch{return e}if("object"==typeof e&&"accessToken"in e&&"string"==typeof e.accessToken)return e.accessToken}}static getLoginId(e){let t=function(){var e,t;let n=null!=(e=null==window?void 0:window.location)&&e.hostname.includes("qa")?"qa":null!=(t=null==window?void 0:window.location)&&t.hostname.includes("dev")?"dev":"",r=function(e){if("u">typeof document){let t=document.cookie.match(RegExp("(^| )"+e+"=([^;]+)"));return t?decodeURIComponent(t[2]):void 0}}(n?`hh_expert_${n}`:"hh_expert");if(r)return function(e){try{return JSON.parse(e)}catch{return}}(r)}();if(t&&t.id)return t.id;let n=this.getAccessTokenString(e??this.getHHAccessToken());if(n)try{let e=function(e,t){let n;if("string"!=typeof e)throw new cs("Invalid token specified: must be a string");t||(t={});let r=!0===t.header?0:1,i=e.split(".")[r];if("string"!=typeof i)throw new cs(`Invalid token specified: missing part #${r+1}`);try{n=function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw Error("base64 string is not of the correct length")}try{var n;
61return n=t,decodeURIComponent(atob(n).replace(/(.)/g,(e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}catch{return atob(t)}}(i)}catch(e){throw new cs(`Invalid token specified: invalid base64 for part #${r+1} (${e.message})`)}try{return JSON.parse(n)}catch(e){throw new cs(`Invalid token specified: invalid json for part #${r+1} (${e.message})`)}}(n);return e.loginId||e.userId||e.sub||void 0}catch{return}}static isLoggedInUser(){return!!this.getHHAccessToken()}static decrypt(e){try{return atob(e)}catch{return e}}static getUserDetailsFromCookie(){let e=i2.getCookieValue(cc);if(!e)return;let t=cu.decrypt(e);try{return JSON.parse(t)}catch{return}}}let cd="hhbUser";class ch{static store(e){try{"u">typeof localStorage&&localStorage.setItem(cd,JSON.stringify({id:e}))}catch{}}static get(){let e="u">typeof localStorage?localStorage.getItem(cd):null;try{return e?JSON.parse(e):null}catch{return null}}static getUserId(){let e=this.get();return null==e?void 0:e.id}}class cp{constructor({apiUrl:e}){this.apiUrl=e}async getAnonymousUserId(){let{api:e}=new iY(this.apiUrl);try{let{data:t}=await e.get("/conversations/generate_token");return t}catch{throw Error("Failed to generate token")}}}let cf={user:"user",assistant:"assistant"},cm={message:"message",end:"end",interactionId:"interactionId",intent:"intent",references:"references",search_query:"search_query",healthzinemessage:"healthzinemessage",sources:"sources",documents:"documents",error:"error"};class cg{constructor({apiUrl:e}){this.apiUrl=e,this.interactionId="",this.preferAnonymousToken=!1,this.rejectedCookieToken=void 0,this.nextRequestAccessToken=void 0;let t=ch.getUserId(),n=cu.isLoggedInUser()?cu.getHHAccessToken():void 0;this.accessToken=n||t}async refreshAnonymousToken(){try{let e=await new cp({apiUrl:this.apiUrl}).getAnonymousUserId(),t=null==e?void 0:e.encrypted_data;if(t)return ch.store(t),this.accessToken=t,t}catch{}}getCurrentAccessToken(){let e=ch.getUserId(),t=cu.getHHAccessToken();if(this.nextRequestAccessToken){let e=this.nextRequestAccessToken;return this.nextRequestAccessToken=void 0,this.accessToken=e,e}return t&&t!==this.rejectedCookieToken?(this.preferAnonymousToken=!1,this.accessToken=t,t):this.preferAnonymousToken&&e?(this.accessToken=e,e):(this.accessToken=e||t,this.accessToken)}markCurrentTokenUnauthorized(){let e=cu.getHHAccessToken();e&&this.accessToken===e&&(this.rejectedCookieToken=e)}useAnonymousTokenForNextRequest(e){this.nextRequestAccessToken=e}useAnonymousAccess(e){let t=e||ch.getUserId();t&&(this.preferAnonymousToken=!0,this.accessToken=t)}async retryWith401Fallback(e){var t;try{return await e(this.getCurrentAccessToken())}catch(n){if(401===((null==(t=null==n?void 0:n.response)?void 0:t.status)||(null==n?void 0:n.status))){window.dispatchEvent(new CustomEvent("chatbot:unauthorized")),this.markCurrentTokenUnauthorized();let t=await this.refreshAnonymousToken()??ch.getUserId();if(t)return this.accessToken=t,await e(t)}throw n}}async askQuestion(e,t,n,r,i){try{if(t===sZ.stream&&i)return await this.get
61StreamResponse(e,n,r,i);await this.getSingleResponse(e,n)}catch(e){throw e}}async getStreamResponse(e,t,n,r){this.sseController=new AbortController;try{await this.retryWith401Fallback(async i=>{let o=new i1(this.sseController,i),a={question:e,userName:"",requestUrl:window.location.href};n&&n.trim()&&(a.detected_lang=n),await o.send({url:`${this.apiUrl}/chats/${t}`,payload:JSON.stringify(a),method:"POST",callback:r,options:{retryCount:sK.askQuestionToBot}})})}catch{throw Error("Failed to get response stream")}}async terminateStreaming(e,t){var n;null==(n=this.sseController)||n.abort();let{api:r}=new iY(this.apiUrl,this.accessToken);try{await r.post(`/conversations/${e}/interactions/${t}/terminate`,{status:"terminated"})}catch{throw Error("Failed to terminate response stream")}}async getSingleResponse(e,t,n){return this.retryWith401Fallback(async r=>{let{api:i}=new iY(this.apiUrl,r),o={question:e,requestUrl:window.location.href};n&&n.trim()&&(o.detected_lang=n);let{data:a}=await i.post(`/api/chats/${t}`,o),{answer:l,references:s,conversationId:c}=a;return{role:cf.assistant,conversationId:c,content:{text:l},references:s}})}async sendInteractionFeedback(e,t,n){return this.retryWith401Fallback(async r=>{let{api:i}=new iY(this.apiUrl,r),o={rating:e.rating,comment:e.message,options:e.options};await i.put(`/conversations/${t}/interactions/${n}/feedback`,o)})}async getUserConversations(){try{return await this.retryWith401Fallback(async e=>{let{api:t}=new iY(this.apiUrl,e),{data:n}=await t.get("/conversations/messages");return n})}catch{throw Error("Failed to fetch user conversations")}}async getConversationMessages(e){try{return await this.retryWith401Fallback(async t=>{let{api:n}=new iY(this.apiUrl,t);console.log("Fetching conversation messages for ID:",e);let{data:r}=await n.get(`/conversations/${e}/messages`);return console.log("Fetched conversation data:",r),r})}catch(e){return console.error("Error fetching conversation messages:",e),{error:e}}}async trackArticleLinkClik(e){let{conversationId:t,interactionId:n,contentDetails:r,contentLinkDetails:i}=e,{api:o}=new iY(this.apiUrl,this.accessToken);try{return await o.post(`/conversations/${t}/interactions/${n}/articlelinktracking`,{content_details:r,content_link_details:i})}catch(e){return{error:e}}}async searchExistingQueries(e){try{let t=this.accessToken||cu.getHHAccessToken(),n=cu.getAccessTokenString(t);return(await iZ.post(cn()+"/pes/api/v1/query/visitor/keywords",{searchParam:{keywords:e},searchOptions:{sortField:"publishedDate",sortOrder:"Desc",pageStart:0,pageEnd:10}},{headers:{Authorization:`Bearer ${n}`,"Content-Type":"application/json"}})).data}catch(e){return console.error("searchExistingQueries Error:",e),{results:[]}}}async submitAskToExpert(e){var t,n;try{let t=this.accessToken||cu.getHHAccessToken(),n=cu.getAccessTokenString(t);return await iZ.post(cn()+"/pes/api/v1/query/submit",e,{headers:{Authorization:`Bearer ${n}`,"Content-Type":"application/json"}})}catch(e){throw e.response&&console.error("submitAskToExpert Error response data:",e.response.data),null!=(n=null==(t=e.response)?void 0:t.data)&&n.message?Error(e.response.data.message):e}}async getSpecialities(){try{let e=(await iZ.get(cn()+"/pes/api/v1/provider/visitor/specialities/allspecialities")).data;return Array.isArray(e)?e.filter(e=>!0===e.status).sort((e,t)=>e.specialityName.localeCompare(t.specialityName)).map(e=>({id:e.specialityId,name:e.specialityName})):[]}catch{return[]}}async fetchSummary(e){var t,n,r,i,o,a,l,s,c,u,d,h;let{api:p}=new iY(this.apiUrl,this.accessToken);try{let t={content_id:String(e)};return(await p.post("/summary",t,{headers:{accept:"application/json","Content-Type":"application/json"}})).data}catch(e){if(console.error("Summary API error:",e),console.error("Error response data:",null==(t=null==e?void 0:e.response)?void 0:t.data),console.error("Error status:",null==(n=null==e?void 0:e.response)?void 0:n.status),(null==(r=null==e?void 0:e.response)?void 0:r.status)===422)throw Error((null==(o=null==(i=null==e?void 0:e.response)?void 0:i.data)?void 0:o.detail)||(null==(l=null==(a=null==e?void 0:e.response)?void 0:a.data)?void 0:l.message)||"Invalid content ID. This article may not have a summary available.");throw(null==(s=null==e?void 0:e.response)?void 0:s.status)===404?Error("Summary not found for this article."):Error((null==(u=null==(c=null==e?void 0:e.response)?void 0:c.data)?void 0:u.message)||(null==(h=null==(d=null==e?void 0:e.response)?void 0:d.data)?void 0:h.detail)||"Failed to fetch summary. Please try again.")}}async downloadDocument(e){let{api:t}=new iY(this.apiUrl.replace(/\/orchestrator\/?$/,""),this.accessToken);try{let{data:n}=await t.post("/qa/download",e,{responseType:"blob"});return n}catch(e){return console.error("Download document API failed:",e),{error:e}}}async viewDocument(e){let{api:t}=new iY(this.apiUrl.replace(/\/orchestrator\/?$/,""),this.accessToken);try{let{data:n}=await t.post("/qa/lab-report-summary",e);return n}catch(e){return console.error("View document API failed:",e),{error:e}}}async previewDocument(e,t){let{api:n}=new iY(this.apiUrl.replace(/\/orchestrator\/?$/,""),this.accessToken),r=encodeURIComponent(e),i=t?`&documentType=${encodeURIComponent(t)}`:"",{data:o}=await n.get(`/qa/document-preview?documentUrl=${r}${i}`,{responseType:"blob"});return o}}let cy={container:"_container_4gbvf_9","bot-logo":"_bot-logo_4gbvf_20","logo-caption-block":"_logo-caption-block_4gbvf_31","logo-caption":"_logo-caption_4gbvf_31","back-button":"_back-button_4gbvf_59","close-button":"_close-button_4gbvf_62","size-lg":"_size-lg_4gbvf_65","maximize-button":"_maximize-button_4gbvf_65","size-sm":"_size-sm_4gbvf_68","minimize-button":"_minimize-button_4gbvf_68","size-xs":"_size-xs_4gbvf_68","minus-button":"_minus-button_4gbvf_71","main-heading":"_main-heading_4gbvf_74",fadeInAnimation:"_fadeInAnimation_4gbvf_
611"},cv={default:"chatbot.header.default",conversationHistory:"chatbot.header.history"},cb=({chatWindowSize:e,responseLoading:t,conversationCount:n,onResize:r,onClose:i,onShare:o})=>{let a=tM(),{pathname:l=""}=nn(),s=ni(),[c,u]=(0,k.useState)(cv.default);return(0,k.useEffect)(()=>{u(cv[l.replace("/","")]||cv.default)},[l]),(0,S.jsxs)("div",{className:`${cy.container} ${cy[`size-${e}`]} }`,children:["/"===l&&(0,S.jsx)("div",{className:cy["bot-logo"],children:(0,S.jsx)(n6,{width:54,height:46})}),"/"!==l&&(0,S.jsx)("div",{className:cy["back-button"],onClick:()=>s(-1),children:(0,S.jsx)(ru,{ariaLabel:a.formatMessage({id:"button.aria.label.back"}),children:(0,S.jsx)(n7,{})})}),(0,S.jsx)("section",{className:cy["logo-caption-block"],children:(0,S.jsx)("div",{className:cy["logo-caption"],children:(0,S.jsx)(tq,{id:"chatbot.logo.caption"})})}),(0,S.jsx)("h5",{className:cy["main-heading"],dangerouslySetInnerHTML:{__html:a.formatMessage({id:c})}}),(0,S.jsx)("div",{className:`${cy["minimize-button"]} hide-sm`,children:(0,S.jsx)(ru,{ariaLabel:a.formatMessage({id:"aria.label.minimize"}),onClick:()=>r("sm"),children:(0,S.jsx)(n1,{})})}),(0,S.jsx)("div",{className:cy["maximize-button"],children:(0,S.jsx)(ru,{ariaLabel:a.formatMessage({id:"aria.label.maximize"}),onClick:()=>r("lg"),children:(0,S.jsx)(n0,{})})}),"/conversationHistory"!==l&&(0,S.jsx)("div",{className:cy["close-button"],children:(0,S.jsx)(ru,{ariaLabel:a.formatMessage({id:"aria.label.close"}),onClick:i,children:(0,S.jsx)(nQ,{})})})]})},cx={container:"_container_4fniz_54","top-block":"_top-block_4fniz_59","input-hint":"_input-hint_4fniz_63","text-field-block":"_text-field-block_4fniz_69","stop-button-block":"_stop-button-block_4fniz_79","button-block":"_button-block_4fniz_95","mic-wrapper":"_mic-wrapper_4fniz_104","button-mic":"_button-mic_4fniz_109","mic-icon-recording":"_mic-icon-recording_4fniz_116","blink-mic-icon":"_blink-mic-icon_4fniz_1","button-mic-recording":"_button-mic-recording_4fniz_120","mic-pulse":"_mic-pulse_4fniz_1","mic-ripple":"_mic-ripple_4fniz_1","button-mic-initializing":"_button-mic-initializing_4fniz_141","blink-mic":"_blink-mic_4fniz_1","recording-indicator":"_recording-indicator_4fniz_149","recording-dot":"_recording-dot_4fniz_169","blink-dot":"_blink-dot_4fniz_1","mic-modal-message":"_mic-modal-message_4fniz_177","mic-modal-actions":"_mic-modal-actions_4fniz_182","allow-button":"_allow-button_4fniz_188","pulse-ring":"_pulse-ring_4fniz_1"},c_=({onSubmit:e,onStop:t,disabled:n=!1,showStopButton:r,botOpenState:i,showLoginPrompt:o,onRecordingChange:a})=>{let l=tM(),[s,c]=(0,k.useState)(""),[u,d]=(0,k.useState)(""),h=(0,k.useRef)(null),{apiUrlAiChat:p="",appConfig:f}=(0,k.useContext)(sQ),[m,g]=(0,k.useState)(!1),[y,v]=(0,k.useState)(!1),[b,x]=(0,k.useState)(!1),[_,w]=(0,k.useState)(""),[E,A]=(0,k.useState)([]),[T,C]=(0,k.useState)(""),[N,j]=(0,k.useState)(!1),[I,L]=(0,k.useState)(""),O=(0,k.useRef)(null),P=(0,k.useRef)(null),R=(0,k.useRef)(null),M=(0,k.useRef)(null),D=(0,k.useRef)(null),B=(0,k.useRef)(null),U=(0,k.useRef)(null),H=(0,k.useRef)(Date.now()),F=(0,k.useRef)(null),z=(0,k.useRef)(!1),G=(0,k.useRef)(!1),W=(0,k.useRef)(null);(0,k.useEffect)(()=>{var e,t;ct()||r&&i!==sY.open||null==(e=h.current)||e.focus(),!ct()&&o&&(null==(t=h.current)||t.blur())},[r,i,o]),(0,k.useEffect)(()=>{null==a||a(y)},[y]),(0,k.useEffect)(()=>()=>{Z(),O.current&&O.current.readyState===WebSocket.OPEN&&O.current.close(),U.current&&clearTimeout(U.current),F.current&&clearTimeout(F.current)},[]);let q=()=>{if(h.current){let e=h.current.value.length;h.current.setSelectionRange(e,e),h.current.focus()}},V=e=>({session_id:e||_||`SESSION-${Date.now()}`,is_store_s3:!1,lang:T||"auto",is_diarized:!1}),Z=()=>{var e,t;try{U.current&&(clearTimeout(U.current),U.current=null),F.current&&(clearTimeout(F.current),F.current=null),R.current&&(R.current.port.onmessage=null,null==(t=(e=R.current.port).close)||t.call(e),R.current.disconnect(),R.current=null),M.current&&(M.current.disconnect(),M.current=null),P.current&&"closed"!==P.current.state&&(P.current.close(),P.current=null),D.current&&(D.current.getTracks().forEac
61h(e=>e.stop()),D.current=null),B.current&&(URL.revokeObjectURL(B.current),B.current=null)}catch(e){console.error("Cleanup error:",e)}},Y=()=>{U.current&&clearTimeout(U.current),z.current||(U.current=setTimeout(()=>{z.current||(alert("No voice detected. Please try again and speak clearly."),en())},15e3))},X=()=>{U.current&&(clearTimeout(U.current),U.current=null)},K=()=>{F.current||z.current&&(F.current=setTimeout(()=>{er()},8e3))},$=()=>{F.current&&(clearTimeout(F.current),F.current=null)},J=async e=>{try{let t=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0}});D.current=t;let n=new(window.AudioContext||window.webkitAudioContext)({sampleRate:48e3});P.current=n;let r=n.createMediaStreamSource(t);if(M.current=r,!n.audioWorklet)throw Error("AudioWorklet not supported in this browser");let i=` 62 class PCMWorkletProcessor extends AudioWorkletProcessor { 63 constructor() { 64 super(); 65 this.buffer = []; 66 this.targetSampleRate = 16000; 67 this.sourceSampleRate = 48000; 68 this.downsampleRatio = this.sourceSampleRate / this.targetSampleRate; 69 } 70 71 process(inputs, outputs, parameters) { 72 const input = inputs[0]; 73 if (!input || !input[0]) return true; 74 75 const inputData = input[0]; 76 77 let sum = 0; 78 for (let i = 0; i < inputData.length; i++) { 79 sum += inputData[i] * inputData[i]; 80 } 81 const rms = Math.sqrt(sum / inputData.length); 82 83 for (let i = 0; i < inputData.length; i += this.downsampleRatio) { 84 const sample = inputData[Math.floor(i)]; 85 const int16Sample = Math.max(-1, Math.min(1, sample)) * 0x7FFF; 86 this.buffer.push(int16Sample); 87 } 88 89 while (this.buffer.length >= 4096) { 90 const chunk = this.buffer.splice(0, 4096); 91 const int16Array = new Int16Array(chunk); 92 this.port.postMessage({ 93 audioData: int16Array.buffer, 94 volumeLevel: rms 95 }, [int16Array.buffer]); 96 } 97 98 return true; 99 } 100 } 101 102 registerProcessor('pcm-worklet', PCMWorkletProcessor); 103 `,o=new Blob([i],{type:"application/javascript"}),a=URL.createObjectURL(o);B.current=a,await n.audioWorklet.addModule(a);let l=new AudioWorkletNode(n,"pcm-worklet");R.current=l,l.port.onmessage=t=>{let{audioData:n,volumeLevel:r}=t.data;if(e.readyState===WebSocket.OPEN)try{e.send(n)}catch(e){console.error("Error sending audio:",e)}else if(e.readyState===WebSocket.CLOSED){ei();return}r>.02?(z.current||(z.current=!0),H.current=Date.now(),X(),$()):z.current&&K()},r.connect(l),v(!0),x(!1),H.current=Date.now(),z.current=!1,Y()}catch(e){throw Z(),g(!1),v(!1),x(!1),alert("Microphone access denied or not available."),e}},Q=e=>{try{let t=JSON.parse(e.data);if(t.error){t.message&&alert(`Error: ${t.message}`);return}if(t.keepalive)return;t.detected_lang&&t.text&&t.text.trim()&&L(t.detected_lang);let n=e=>{e.trim()&&(j(!1),d(t=>{let n=t?`${t} ${e}`:e;if(n.length>(null==f?void 0:f.chatInputSize)){G.current=!0,Z(),O.current&&O.current.readyState===WebSocket.OPEN&&O.current.close(1e3,"Character limit exceeded");let e=n.substring(0,null==f?void 0:f.chatInputSize);return c(e),setTimeout(()=>{alert("Character limit exceeded! Recording stopped.")},100),e}return c(n),setTimeout(()=>{h.current&&(h.current.disabled=!1,h.current.focus(),q())},0),n}))},r=()=>{G.current&&(W.current&&clearTimeout(W.current),W.current=setTimeout(()=>{O.current&&O.current.readyState===WebSocket.OPEN&&O.current.close(1e3,"All transcriptions received")},1e3))};if(t.is_final&&t.lines){let e=t.lines.map(e=>e.split(": ").slice(1).join(": ")||e),i=e.join(" ");n(i),A(t=>[...t,...e.map(e=>({text:e}))]),r();return}if(t.is_final&&t.segments){let e=t.segments.map(e=>e.text||""),i=e.join(" ");n(i),A(t=>[...t,...e.map(e=>({text:e}))]),r();return}if(t.is_final){let e=t.text||"";n(e),e.trim()&&A(t=>[...t,{text:e}]),r()}}catch(e){console.error("Failed to parse JSON:",e)}},ee=e=>{W.current&&(clearTimeout(W.current),W.current=null),O.current&&(O.current.onmessage=null,O.current.onclose=null,O.current.onerror=null,O.current=null),Z(),g(!1),v(!1),j(!1),G.current=!1,x(!1),w(""),1008===e.code?alert(`Validation Error: ${e.reason||"Invalid metadata"}`):1011===e.code?alert(`Server Error: ${e.reason||"Internal error"}`):1006===e.code&&(console.error("Connection lost unexpectedly"),alert("Connection lost. Please try again."))},et=async()=>
103{if(y){er();return}if(!(N||G.current)){if(O.current){let e=O.current.readyState;if(e===WebSocket.CONNECTING||e===WebSocket.OPEN||e===WebSocket.CLOSING)return;O.current=null}try{x(!0);let e=`cha-session-${Date.now()}`;w(e),g(!0),v(!1);let t=new cg({apiUrl:p}).apiUrl.replace(/\/orchestrator\/?$/,"")+"/stt/realtimetranscription",n=new WebSocket(t);n.binaryType="arraybuffer",O.current=n,n.onopen=async()=>{let t=V(e);u&&c(""),n.send(JSON.stringify(t)),await new Promise(e=>setTimeout(e,500));try{await J(n)}catch{x(!1),n.close()}},n.onmessage=Q,n.onclose=ee,n.onerror=e=>{g(!1),v(!1),x(!1),alert("Connection error. Please check your network and try again.")}}catch(e){console.error("Failed to start recording:",e),O.current=null,g(!1),v(!1),x(!1),alert("Failed to start recording. Please try again.")}}},en=()=>{O.current&&O.current.readyState===WebSocket.OPEN&&O.current.close(1e3,"No speech detected"),Z(),g(!1),v(!1),x(!1),G.current=!1},er=()=>{if(G.current=!0,j(!0),Z(),v(!1),x(!1),O.current&&O.current.readyState===WebSocket.OPEN)try{O.current.send(new ArrayBuffer(0))}catch(e){console.error("Failed to send end signal:",e),O.current&&O.current.close(1e3,"Recording completed")}else g(!1),j(!1),G.current=!1},ei=()=>{if(G.current=!0,O.current&&O.current.readyState===WebSocket.OPEN)try{O.current.send(new ArrayBuffer(0))}catch{O.current.close(1e3,"Recording completed")}Z(),g(!1),v(!1),x(!1)},eo=()=>b?"#0071BC":y?"#E53935":"#747474",ea=()=>{let e=[cx["button-mic"]];return y&&e.push(cx["button-mic-recording"]),b&&e.push(cx["button-mic-initializing"]),e.join(" ")};return(0,S.jsx)("form",{onSubmit:t=>{var i;if(t.preventDefault(),n||r)return!1;let o=s.trim();if(!o)return!1;y&&ei(),c(""),d(""),null==(i=h.current)||i.blur(),e(o,I||void 0),L("")},children:(0,S.jsxs)("section",{className:cx.container,children:[(0,S.jsx)("div",{className:cx["top-block"],children:(0,S.jsxs)("div",{className:cx["input-hint"],children:[f.chatInputSize-s.length," / ",f.chatInputSize]})}),(0,S.jsx)("label",{htmlFor:"messageInput",className:"sr-only",children:(0,S.jsx)(tq,{id:"input.label.write_your_query"})}),(0,S.jsxs)("div",{className:cx["text-field-block"],children:[(0,S.jsx)(rg,{ref:h,autoComplete:"off",variant:"primary",name:"messageInput",required:!0,placeholder:N?"Processing your speech...":b?"Initializing microphone...":y?"Listening...":l.formatMessage({id:"input.placeholder.write_your_query"}),value:s,onChange:e=>{e.target.value.length>(null==f?void 0:f.chatInputSize)||n||(c(e.target.value),y||L(""),""===e.target.value&&d(""))},disabled:N||y&&!b||b,endcontrol:()=>(0,S.jsxs)("div",{className:cx["button-block"],children:[(0,S.jsxs)("div",{className:cx["mic-wrapper"],children:[y&&(0,S.jsxs)("span",{className:cx["recording-indicator"],children:[(0,S.jsx)("span",{className:cx["recording-dot"]}),"Tap to stop"]}),(0,S.jsx)(rc,{type:"button",disabled:r||b||N,onClick:et,variant:"transparent",className:ea(),title:N?"Processing speech...":b?"Initializing...":y?"Stop recording":"Start recording",children:(0,S.jsx)("span",{className:y?cx["mic-icon-recording"]:"",children:(0,S.jsx)(sG,{color:eo()})})})]}),!r&&(0,S.jsx)(rc,{disabled:!s.trim()||n||y||b||N,"aria-label":l.formatMessage({id:"button.aria.label.send"}),children:(0,S.jsx)(n2,{color:s.trim()?"#fff":"#817F7F"})})]})}),r&&(0,S.jsx)("div",{className:cx["stop-button-block"],children:(0,S.jsx)(rc,{type:"button",variant:"transparent","aria-label":l.formatMessage({id:"button.aria.label.stop"}),onClick:t,children:(0,S.jsx)(n4,{})})})]})]})})},cw={container:"_container_8ks8w_9","menu-block":"_menu-block_8ks8w_12",fadeInAnimation:"_fadeInAnimation_8ks8w_1"},cS=[{key:"new_chat",label:"New Chat",Icon:(0,S.jsx)(({})=>(0,S.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20.001",height:"20",viewBox:"0 0 20.001 20",children:(0,S.jsx)("g",{id:"Chat",transform:"translate(0)",children:(0,S.jsx)("path",{id:"Chat-2","data-name":"Chat",d:"M5.318,18.848l-.046-.016a.017.017,0,0,1-.01-.012l-.682-.387a.75.75,0,0,0-.275-.054.465.465,0,0,0-.112.012,17.683,17.683,0,0,1-2.171.627l-.135.016H1.846a1.118,1.118,0,0,1-.883-.355,1.376,1.376,0,0,1-.3-.92l.02-.164a18.425,18.425,0,0,1,.677-2.2.529.529,0,0,0-.043-.4l-.184-.358A10.005,10.005,0,0,1,10.02,0h.039a10,10,0,1,1-4.74,18.848Zm-.171-1.688c.092.044.209.107.37.2l.422.243.006,0,.287.146a8.632,8.632,0,0,0,9.226-1.1l.22-.187a8.606,8.606,0,0,0-5.63-15.064l-.281,0A8.6,8.6,0,0,0,2.377,13.988l.181.353a1.944,1.944,0,0,1,.126,1.5,17.739,17.739,0,0,0-.64,2.08l.094-.368.4-.1c.285-.079.553-.16.82-.248l.418-.144a2.045,2.045,0,0,1,.541-.073A2.184,2.184,0,0,1,5.147,17.159Zm8.2-7.16a1.141,1.141,0,1,1,1.141,1.141A1.141,1.141,0,0,1,13.349,10ZM8.912,10a1.141,1.141,0,1,1,1.141,1.141A1.141,1.141,0,0,1,8.912,10ZM4.475,10a1.141,1.141,0,1,1,1.141,1.141A1.141,1.141,0,0,1,4.475,10Z",transform:"translate(0 0)",fill:"#200e32"})})}),{})},{key:"chat_history",label:"History",Icon:(0,S.jsx)(n5,{})}],ck=({disabled:e,onItemClick:t})=>{let n=(0,k.useRef)(null),[r,i]=(0,k.useState)(!1),o=tM(),a=e=>{n.current&&!n.current.contains(e.target)&&i(!1)};return(0,k.useEffect)(()=>
103{if("u">typeof window)return window.document.addEventListener("mousedown",a),()=>{window.document.removeEventListener("mousedown",a)}},[]),(0,S.jsxs)("section",{className:cw.container,ref:n,children:[r&&(0,S.jsx)("div",{className:cw["menu-block"],children:(0,S.jsx)(sU,{items:cS,onItemClick:e=>{t(e),i(!1)}})}),(0,S.jsx)(ru,{disabled:e,ariaLabel:o.formatMessage({id:"button.aria.label.open_conversation_history"}),onClick:()=>i(!r),children:(0,S.jsx)(n8,{})})]})},cE={container:"_container_wouxn_9","modal-content":"_modal-content_wouxn_16",seperator:"_seperator_wouxn_30",fadeInAnimation:"_fadeInAnimation_wouxn_1"},cA=(0,k.memo)(({isOpen:e=!1,onClose:t,onContinueWithoutLogin:n})=>{let r=tM();return(0,S.jsx)("div",{className:"_container_wouxn_9",children:(0,S.jsx)(sN,{open:e,align:"center",onCloseButtonClick:t,title:r.formatMessage({id:"signin.prompt.please_sign_in"}),children:(0,S.jsxs)("section",{className:cE["modal-content"],children:[(0,S.jsx)("p",{children:(0,S.jsx)(tq,{id:"signin.prompt.info.message"})}),(0,S.jsx)(rc,{type:"button",onClick:()=>{var e;let t;if(typeof window>"u")return;let n=window.location.href,r=JSON.stringify({type:"LOGIN_REDIRECT",redirectUrl:n});if(null!=(e=window.FlutterChannel)&&e.postMessage){window.FlutterChannel.postMessage(r);return}let i=window.location.hostname.split(".").slice(0,-2).join(".");t=i.includes("staging-dev")?"https://staging-dev.happiesthealth.com":i.includes("staging3")||i.includes("uat")?"https://staging3.happiesthealth.com":i.includes("qa")?"https://qa.staging.happiesthealth.com":"https://www.happiesthealth.com",window.location.href=`${t}/login?redirectUrl=${encodeURIComponent(n)}`},children:(0,S.jsx)(tq,{id:"button.label.signin"})}),(0,S.jsx)("div",{className:"_seperator_wouxn_30",children:(0,S.jsx)("span",{children:(0,S.jsx)(tq,{id:"button.general.label.or"})})}),(0,S.jsx)(rc,{variant:"outlined",type:"button",onClick:n||t,children:(0,S.jsx)(tq,{id:"signin.prompt.button.skip_sigin"})})]})})})}),{entries:cT,setPrototypeOf:cC,isFrozen:cN,getPrototypeOf:cj,getOwnPropertyDescriptor:cI}=Object,{freeze:cL,seal:cO,create:cP}=Object,{apply:cR,construct:cM}="u">typeof Reflect&&Reflect;cL||(cL=function(e){return e}),cO||(cO=function(e){return e}),cR||(cR=function(e,t,n){return e.apply(t,n)}),cM||(cM=function(e,t){return new e(...t)});let cD=cX(Array.prototype.forEach),cB=cX(Array.prototype.pop),cU=cX(Array.prototype.push),cH=cX(String.prototype.toLowerCase),cF=cX(String.prototype.toString),cz=cX(String.prototype.match),cG=cX(String.prototype.replace),cW=cX(String.prototype.indexOf),cq=cX(String.prototype.trim),cV=cX(Object.prototype.hasOwnProperty),cZ=cX(RegExp.prototype.test),cY=(i=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return cM(i,t)});function cX(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return cR(e,t,r)}}function cK(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:cH;cC&&cC(e,null);let r=t.length;for(;r--;){let i=t[r];if("string"==typeof i){let e=n(i);e!==i&&(cN(t)||(t[r]=e),i=e)}e[i]=!0}return e}function c$(e){let t=cP(null);for(let[n,r]of cT(e))cV(e,n)&&(Array.isArray(r)?t[n]=function(e){for(let t=0;t<e.length;t++)cV(e,t)||(e[t]=null);return e}(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=c$(r):t[n]=r);return t}function cJ(e,t){for(;null!==e;){let n=cI(e,t);if(n){if(n.get)return cX(n.get);if("function"==typeof n.value)return cX(n.value)}e=cj(e)}return function(){return null}}let cQ=cL(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),c0=cL(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),c1=cL(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),c2=cL(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),c3=cL(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),c6=cL(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),c4=cL(["#text"]),c8=cL(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
103spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),c5=cL(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),c7=cL(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),c9=cL(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ue=cO(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ut=cO(/<%[\w\W]*|[\w\W]*%>/gm),un=cO(/\${[\w\W]*}/gm),ur=cO(/^data-[\-\w.\u00B7-\uFFFF]/),ui=cO(/^aria-[\-\w]+$/),uo=cO(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ua=cO(/^(?:\w+script|data):/i),ul=cO(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),us=cO(/^html$/i);var uc=Object.freeze({__proto__:null,MUSTACHE_EXPR:ue,ERB_EXPR:ut,TMPLIT_EXPR:un,DATA_ATTR:ur,ARIA_ATTR:ui,IS_ALLOWED_URI:uo,IS_SCRIPT_OR_DATA:ua,ATTR_WHITESPACE:ul,DOCTYPE_NAME:us,CUSTOM_ELEMENT:cO(/^[a-z][.\w]*(-[.\w]+)+$/i)});let uu=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}};var ud=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:typeof window>"u"?null:window,n=t=>e(t);if(n.version="3.1.2",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;let{document:r}=t,i=r,o=i.currentScript,{DocumentFragment:a,HTMLTemplateElement:l,Node:s,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:p,trustedTypes:f}=t,m=c.prototype,g=cJ(m,"cloneNode"),y=cJ(m,"nextSibling"),v=cJ(m,"childNodes"),b=cJ(m,"parentNode");if("function"==typeof l){let e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let x,_="",{implementation:w,createNodeIterator:S,createDocumentFragment:k,getElementsByTagName:E}=r,{importNode:A}=i,T={};n.isSupported="function"==typeof cT&&"function"==typeof b&&w&&void 0!==w.createHTMLDocument;let{MUSTACHE_EXPR:C,ERB_EXPR:N,TMPLIT_EXPR:j,DATA_ATTR:I,ARIA_ATTR:L,IS_SCRIPT_OR_DATA:O,ATTR_WHITESPACE:P,CUSTOM_ELEMENT:
103R}=uc,{IS_ALLOWED_URI:M}=uc,D=null,B=cK({},[...cQ,...c0,...c1,...c3,...c4]),U=null,H=cK({},[...c8,...c5,...c7,...c9]),F=Object.seal(cP(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),z=null,G=null,W=!0,q=!0,V=!1,Z=!0,Y=!1,X=!0,K=!1,$=!1,J=!1,Q=!1,ee=!1,et=!1,en=!0,er=!1,ei=!0,eo=!1,ea={},el=null,es=cK({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ec=null,eu=cK({},["audio","video","img","source","image","track"]),ed=null,eh=cK({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ep="http://www.w3.org/1998/Math/MathML",ef="http://www.w3.org/2000/svg",em="http://www.w3.org/1999/xhtml",eg=em,ey=!1,ev=null,eb=cK({},[ep,ef,em],cF),ex=null,e_=["application/xhtml+xml","text/html"],ew=null,eS=null,ek=r.createElement("form"),eE=function(e){return e instanceof RegExp||e instanceof Function},eA=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!(eS&&eS===e)){if(e&&"object"==typeof e||(e={}),e=c$(e),ew="application/xhtml+xml"===(ex=-1===e_.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?cF:cH,D=cV(e,"ALLOWED_TAGS")?cK({},e.ALLOWED_TAGS,ew):B,U=cV(e,"ALLOWED_ATTR")?cK({},e.ALLOWED_ATTR,ew):H,ev=cV(e,"ALLOWED_NAMESPACES")?cK({},e.ALLOWED_NAMESPACES,cF):eb,ed=cV(e,"ADD_URI_SAFE_ATTR")?cK(c$(eh),e.ADD_URI_SAFE_ATTR,ew):eh,ec=cV(e,"ADD_DATA_URI_TAGS")?cK(c$(eu),e.ADD_DATA_URI_TAGS,ew):eu,el=cV(e,"FORBID_CONTENTS")?cK({},e.FORBID_CONTENTS,ew):es,z=cV(e,"FORBID_TAGS")?cK({},e.FORBID_TAGS,ew):{},G=cV(e,"FORBID_ATTR")?cK({},e.FORBID_ATTR,ew):{},ea=!!cV(e,"USE_PROFILES")&&e.USE_PROFILES,W=!1!==e.ALLOW_ARIA_ATTR,q=!1!==e.ALLOW_DATA_ATTR,V=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Z=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Y=e.SAFE_FOR_TEMPLATES||!1,X=!1!==e.SAFE_FOR_XML,K=e.WHOLE_DOCUMENT||!1,Q=e.RETURN_DOM||!1,ee=e.RETURN_DOM_FRAGMENT||!1,et=e.RETURN_TRUSTED_TYPE||!1,J=e.FORCE_BODY||!1,en=!1!==e.SANITIZE_DOM,er=e.SANITIZE_NAMED_PROPS||!1,ei=!1!==e.KEEP_CONTENT,eo=e.IN_PLACE||!1,M=e.ALLOWED_URI_REGEXP||uo,eg=e.NAMESPACE||em,F=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&eE(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(F.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&eE(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(F.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(F.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Y&&(q=!1),ee&&(Q=!0),ea&&(D=cK({},c4),U=[],!0===ea.html&&(cK(D,cQ),cK(U,c8)),!0===ea.svg&&(cK(D,c0),cK(U,c5),cK(U,c9)),!0===ea.svgFilters&&(cK(D,c1),cK(U,c5),cK(U,c9)),!0===ea.mathMl&&(cK(D,c3),cK(U,c7),cK(U,c9))),e.ADD_TAGS&&(D===B&&(D=c$(D)),cK(D,e.ADD_TAGS,ew)),e.ADD_ATTR&&(U===H&&(U=c$(U)),cK(U,e.ADD_ATTR,ew)),e.ADD_URI_SAFE_ATTR&&cK(ed,e.ADD_URI_SAFE_ATTR,ew),e.FORBID_CONTENTS&&(el===es&&(el=c$(el)),cK(el,e.FORBID_CONTENTS,ew)),ei&&(D["#text"]=!0),K&&cK(D,["html","head","body"]),D.table&&(cK(D,["tbody"]),delete z.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw cY('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw cY('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=(x=e.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===x&&(x=uu(f,o)),null!==x&&"string"==typeof _&&(_=x.createHTML(""));cL&&cL(e),eS=e}},eT=cK({},["mi","mo","mn","ms","mtext"]),eC=cK({},["foreignobject","annotation-xml"]),eN=cK({},["title","style","font","a","script"]),ej=cK({},[...c0,...c1,...c2]),eI=cK({},[...c3,...c6]),eL=function(e){let t=b(e);t&&t.tagName||(t={namespaceURI:eg,tagName:"template"});let n=cH(e.tagName),r=cH(t.tagName);return!!ev[e.namespaceURI]&&(e.namespaceURI===ef?t.namespaceURI===em?"svg"===n:t.namespaceURI===ep?"svg"===n&&("annotation-xml"===r||eT[r]):!!ej[n]:e.namespaceURI===ep?t.namespaceURI===em?"math"===n:t.namespaceURI===ef?"math"===n&&eC[r]:!!eI[n]:e.namespaceURI===em?(t.namespaceURI!==ef||!!eC[r])&&(t.namespaceURI!==ep||!!eT[r])&&!eI[n]&&(eN[n]||!ej[n]):!!("application/xhtml+xml"===ex&&ev[e.namespaceURI]))},eO=function(e){cU(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch{e.remove()}},eP=function(e,t){try{cU(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch{cU(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!U[e]){if(Q||ee)try{eO(t)}catch{}else try{t.setAttribute(e,"")}catch{}}},eR=function(e){let t=null,n=null;if(J)e="<remove></remove>"+e;else{let t=cz(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ex&&eg===em&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let i=x?x.createHTML(e):e;if(eg===em)try{t=new p().parseFromString(i,ex)}catch{}if(!t||!t.documentElement){t=w.createDocument(eg,"template",null);try{t.documentElement.innerHTML=ey?_:i}catch{}}let o=t.body||t.documentElement;return e&&n&&o.insertBefore(r.createTextNode(n),o.childNodes[0]||null),eg===em?E.call(t,K?"html":"body")[0]:K?t.documentElement:o},eM=function(e){return S.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},eD=function(e){return"function"==typeof s&&e instanceof s},eB=function(e,t,r){T[e]&&cD(T[e],e=>{e.call(n,t,r,eS)})},eU=function(e){let t=null;if(eB("beforeSanitizeElements",e,null),e instanceof h&&("u">typeof e.__depth&&"number"!=typeof e.__depth||"u">typeof e.__removalCount&&"number"!=typeof e.__removalCount||"string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes))return eO(e),!0;let r=ew(e.nodeName);if(eB("uponSanitizeElement",e,{tagName:r,allowedTags:D}),e.hasChildNodes()&&!eD(e.firstElementChild)&&cZ(/<[/\w]/g,e.innerHTML)&&cZ(/<[/\w]/g,e.textContent)||7===e.nodeType||X&&8===e.n
103odeType&&cZ(/<[/\w]/g,e.data))return eO(e),!0;if(!D[r]||z[r]){if(!z[r]&&eF(r)&&(F.tagNameCheck instanceof RegExp&&cZ(F.tagNameCheck,r)||F.tagNameCheck instanceof Function&&F.tagNameCheck(r)))return!1;if(ei&&!el[r]){let t=b(e)||e.parentNode,n=v(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=g(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,y(e))}}}return eO(e),!0}return e instanceof c&&!eL(e)||("noscript"===r||"noembed"===r||"noframes"===r)&&cZ(/<\/no(script|embed|frames)/i,e.innerHTML)?(eO(e),!0):(Y&&3===e.nodeType&&(t=e.textContent,cD([C,N,j],e=>{t=cG(t,e," ")}),e.textContent!==t&&(cU(n.removed,{element:e.cloneNode()}),e.textContent=t)),eB("afterSanitizeElements",e,null),!1)},eH=function(e,t,n){if(en&&("id"===t||"name"===t)&&(n in r||n in ek))return!1;if(!(q&&!G[t]&&cZ(I,t))&&!(W&&cZ(L,t))){if(!U[t]||G[t]){if(!(eF(e)&&(F.tagNameCheck instanceof RegExp&&cZ(F.tagNameCheck,e)||F.tagNameCheck instanceof Function&&F.tagNameCheck(e))&&(F.attributeNameCheck instanceof RegExp&&cZ(F.attributeNameCheck,t)||F.attributeNameCheck instanceof Function&&F.attributeNameCheck(t))||"is"===t&&F.allowCustomizedBuiltInElements&&(F.tagNameCheck instanceof RegExp&&cZ(F.tagNameCheck,n)||F.tagNameCheck instanceof Function&&F.tagNameCheck(n))))return!1}else if(!ed[t]&&!cZ(M,cG(n,P,""))&&!(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===cW(n,"data:")&&ec[e])&&!(V&&!cZ(O,cG(n,P,"")))&&n)return!1}return!0},eF=function(e){return"annotation-xml"!==e&&cz(e,R)},ez=function(e){eB("beforeSanitizeAttributes",e,null);let{attributes:t}=e;if(!t)return;let r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:U},i=t.length;for(;i--;){let{name:o,namespaceURI:a,value:l}=t[i],s=ew(o),c="value"===o?l:cq(l);if(r.attrName=s,r.attrValue=c,r.keepAttr=!0,r.forceKeepAttr=void 0,eB("uponSanitizeAttribute",e,r),c=r.attrValue,r.forceKeepAttr||(eP(o,e),!r.keepAttr))continue;if(!Z&&cZ(/\/>/i,c)){eP(o,e);continue}Y&&cD([C,N,j],e=>{c=cG(c,e," ")});let u=ew(e.nodeName);if(eH(u,s,c)){if(er&&("id"===s||"name"===s)&&(eP(o,e),c="user-content-"+c),x&&"object"==typeof f&&"function"==typeof f.getAttributeType&&!a)switch(f.getAttributeType(u,s)){case"TrustedHTML":c=x.createHTML(c);break;case"TrustedScriptURL":c=x.createScriptURL(c)}try{a?e.setAttributeNS(a,o,c):e.setAttribute(o,c),cB(n.removed)}catch{}}}eB("afterSanitizeAttributes",e,null)},eG=function e(t){let n=null,r=eM(t);for(eB("beforeSanitizeShadowDOM",t,null);n=r.nextNode();){if(eB("uponSanitizeShadowNode",n,null),eU(n))continue;let t=b(n);1===n.nodeType&&(t&&t.__depth?n.__depth=(n.__removalCount||0)+t.__depth+1:n.__depth=1),n.__depth>=255&&eO(n),n.content instanceof a&&(n.content.__depth=n.__depth,e(n.content)),ez(n)}eB("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,o=null,l=null,c=null;if((ey=!e)&&(e="<!-->"),"string"!=typeof e&&!eD(e)){if("function"==typeof e.toString){if("string"!=typeof(e=e.toString()))throw cY("dirty is not a string, aborting")}else throw cY("toString is not a function")}if(!n.isSupported)return e;if($||eA(t),n.removed=[],"string"==typeof e&&(eo=!1),eo){if(e.nodeName){let t=ew(e.nodeName);if(!D[t]||z[t])throw cY("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof s)1===(o=(r=eR("<!---->")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!Q&&!Y&&!K&&-1===e.indexOf("<"))return x&&et?x.createHTML(e):e;if(!(r=eR(e)))return Q?null:et?_:""}r&&J&&eO(r.firstChild);let u=eM(eo?e:r);for(;l=u.nextNode();){if(eU(l))continue;let e=b(l);1===l.nodeType&&(e&&e.__depth?l.__depth=(l.__removalCount||0)+e.__depth+1:l.__depth=1),l.__depth>=255&&eO(l),l.content instanceof a&&(l.content.__depth=l.__depth,eG(l.content)),ez(l)}if(eo)return e;if(Q){if(ee)for(c=k.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(U.shadowroot||U.shadowrootmode)&&(c=A.call(i,c,!0)),c}let d=K?r.outerHTML:r.innerHTML;return K&&D["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&cZ(us,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+`> 104`+d),Y&&cD([C,N,j],e=>{d=cG(d,e," ")}),x&&et?x.createHTML(d):d},n.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};eA(e),$=!0},n.clearConfig=function(){eS=null,$=!1},n.isValidAttribute=function(e,t,n){return eS||eA({}),eH(ew(e),ew(t),n)},n.addHook=function(e,t){"function"==typeof t&&(T[e]=T[e]||[],cU(T[e],t))},n.removeHook=function(e){if(T[e])return cB(T[e])},n.removeHooks=function(e){T[e]&&(T[e]=[])},n.removeAllHooks=function(){T={}},n}();let uh={container:"_container_1cxdq_1","content-block":"_content-block_1cxdq_4","emotion-block":"_emotion-block_1cxdq_12","options-block":"_options-block_1cxdq_19","option-item":"_option-item_1cxdq_23","message-block":"_message-block_1cxdq_31"},up=({isOpen:e=!0,data:t,onClose:n})=>{let{rating:r,options:i}=t,{appConfig:{feedbackCategories:o=[]}={}}=(0,k.useContext)(sQ),a=(0,k.useMemo)(()=>o.find(e=>e.rating===r),[t]),l=e=>{var t;return null==(t=null==a?void 0:a.options)?void 0:t.find(t=>t.key===e)},s=(0,k.useMemo)(()=>t.message?t.message.split(",").map(e=>
104e.trim()).filter(Boolean):[],[t.message]);return(0,S.jsx)("div",{className:uh.container,children:(0,S.jsx)(sN,{open:e,onCloseButtonClick:n,size:"sm",children:(0,S.jsxs)("div",{className:uh["content-block"],children:[(0,S.jsx)("div",{className:uh["emotion-block"],children:(0,S.jsx)(rf,{selected:r,readonly:!0})}),(!!(null!=i&&i.length)||!!s.length)&&(0,S.jsx)("div",{className:uh["options-block"],children:null!=i&&i.length?i.map(e=>{var t;return(0,S.jsxs)("div",{className:uh["option-item"],children:[(0,S.jsx)(ro,{}),null==(t=l(e))?void 0:t.label]},`option-key-${e}`)}):s.map((e,t)=>(0,S.jsxs)("div",{className:uh["option-item"],children:[(0,S.jsx)(ro,{}),e]},`msg-option-${t}`))}),t.comment&&(0,S.jsxs)("div",{className:uh["message-block"],children:[(0,S.jsx)("h6",{children:(0,S.jsx)(tq,{id:"feedback.your_comments"})}),(0,S.jsx)("p",{children:t.comment})]})]})})})},uf=P(function(e,t){(t=t||{}).listUnicodeChar=!!t.hasOwnProperty("listUnicodeChar")&&t.listUnicodeChar,t.stripListLeaders=!t.hasOwnProperty("stripListLeaders")||t.stripListLeaders,t.gfm=!t.hasOwnProperty("gfm")||t.gfm,t.useImgAltText=!t.hasOwnProperty("useImgAltText")||t.useImgAltText,t.abbr=!!t.hasOwnProperty("abbr")&&t.abbr,t.replaceLinksWithURL=!!t.hasOwnProperty("replaceLinksWithURL")&&t.replaceLinksWithURL,t.htmlTagsToSkip=t.hasOwnProperty("htmlTagsToSkip")?t.htmlTagsToSkip:[];var n=e||"";n=n.replace(/^(-\s*?|\*\s*?|_\s*?){3,}\s*/gm,"");try{t.stripListLeaders&&(n=t.listUnicodeChar?n.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,t.listUnicodeChar+" $1"):n.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,"$1")),t.gfm&&(n=n.replace(/\n={2,}/g,` 105`).replace(/~{3}.*\n/g,"").replace(/~~/g,"").replace(/`{3}.*\n/g,"")),t.abbr&&(n=n.replace(/\*\[.*\]:.*\n/,"")),n=n.replace(/<[^>]*>/g,"");var r=RegExp("<[^>]*>","g");if(t.htmlTagsToSkip.length>0){var i="(?!"+t.htmlTagsToSkip.join("|")+")";r=RegExp("<"+i+"[^>]*>","ig")}n=n.replace(r,"").replace(/^[=\-]{2,}\s*$/g,"").replace(/\[\^.+?\](\: .*?$)?/g,"").replace(/\s{0,2}\[.*?\]: .*?$/g,"").replace(/\!\[(.*?)\][\[\(].*?[\]\)]/g,t.useImgAltText?"$1":"").replace(/\[([^\]]*?)\][\[\(].*?[\]\)]/g,t.replaceLinksWithURL?"$2":"$1").replace(/^\s{0,3}>\s?/gm,"").replace(/^\s{1,2}\[(.*?)\]: (\S+)( ".*?")?\s*$/g,"").replace(/^(\n)?\s{0,}#{1,6}\s+| {0,}(\n)?\s{0,}#{0,} #{0,}(\n)?\s{0,}$/gm,"$1$2$3").replace(/([\*]+)(\S)(.*?\S)??\1/g,"$2$3").replace(/(^|\W)([_]+)(\S)(.*?\S)??\2($|\W)/g,"$1$3$4$5").replace(/(`{3,})(.*?)\1/gm,"$2").replace(/`(.+?)`/g,"$1").replace(/~(.*?)~/g,"$1")}catch(t){return console.error(t),e}return n});class um{constructor(){}doNativeChatShare(e,t,n){let r=n.formatMessage({id:"share.chat.to.email.subject"}),i=this.getChatShareContent(e,t,n);this.openNativeShare(r,i)}getChatShareContent(e,t,n){let{query:r,answer:i,references:o}=e;return`${t?`${t} 106 107`:""}${this.getMessageBody(r,i,n)} 108${this.getRefLinkBody(o,n)}`}doNativeConversationShare(e,t,n){let r=t?`${t} 109 110`:"",i=n.formatMessage({id:"share.chat.to.email.subject"}),o=this.getConversationShareContent(e,r,n);this.openNativeShare(i,o)}getConversationShareContent(e,t,n){let r=t;return e.forEach(({messages:e},t)=>{var i,o,a,l;let s=e.find(({role:e})=>e===cf.user),c=e.find(({role:e})=>e===cf.assistant),u=[];if(null!=(i=null==c?void 0:c.references)&&i.length?u=c.references:null!=(a=null==(o=null==c?void 0:c.content)?void 0:o.references)&&a.length&&(u=null==(l=null==c?void 0:c.content)?void 0:l.references),c&&s){let e=t>0?` 111 112`:"";r+=`${e}${this.getMessageBody(s.content.text,c.content.text,n)} 113${this.getRefLinkBody(u,n)} 114`}}),r}openNativeShare(e,t){if("u">typeof navigator&&e&&t)try{navigator.share({title:e,text:t})}catch{throw Error("Unnable to share")}}getMessageBody(e,t,n){let r="";if(!t)return"";let i=t.replace(/\(/g,"").replace(/\)/g,"");return i=i.replace(/\[_.*_]/g,""),e&&e&&(r+=`Question: ${e} 115 116${uf(i)} 117 118`),r}getRefLinkBody(e,t){let n="";if(null!=e&&e.length){let r="";e.forEach(e=>{r+=`${e.url} 119`}),n=`${t.formatMessage({id:"chatbot.articles_for_reading"})} 120 121${r}`}return n}}let ug={container:"_container_zm8bw_1","action-block":"_action-block_zm8bw_5"},uy={email:"email",whatsapp:"whatsapp"},uv=({isOpen:e=!0,data:t,onClose:n})=>{let r=tM(),i=e=>{let{title:r,content:i}=t;switch(e){case uy.email:"u">typeof window&&"u">typeof window.location&&(window.location.href=`mailto:?subject=${r}&body=${encodeURIComponent(i)}`);break;case uy.whatsapp:"u">typeof window&&"function"==typeof window.open&&window.open(`https://wa.me/?text=${encodeURIComponent(i)}`)}n()};return(0,S.jsx)("div",{className:"_container_zm8bw_1",children:(0,S.jsx)(sN,{title:r.formatMessage({id:"share.chat_transcript"}),open:e,HeaderIcon:(0,S.jsx)(rr,{}),onCloseButtonClick:n,hasHeaderBorder:!0,children:(0,S.jsxs)("div",{className:ug["action-block"],children:[(0,S.jsx)(rc,{variant:"transparent",onClick:()=>i("email"),children:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(re,{}),(0,S.jsx)("div",{children:(0,S.jsx)(tq,{id:"share.mail"})})]})}),(0,S.jsx)(rc,{variant:"transparent",onClick:()=>i("whatsapp"),children:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(rn,{}),(0,S.jsx)("div",{children:(0,S.jsx)(tq,{id:"share.whatsapp"})})]})})]})})})},ub={container:"_container_141mz_9","rating-category-options":"_rating-category-options_141mz_14",fadeInAnimation:"_fadeInAnimation_141mz_1"},ux=(0,k.memo)(({data:e,selectedItems:t,onSelect:n})=>{let r=(0,k.useRef)(null),i=e=>{let{value:r,checked:i}=e.target;n(i?[...t,Number(r)]:t.filter(e=>e!==Number(r)))};return(0,k.useEffect)(()=>{var e;let t=null==(e=r.current)?void 0:e.querySelectorAll('input[type="checkbox"]');
121null==t||t.forEach(e=>{e.checked=!1})},[e]),(0,S.jsxs)("div",{className:ub.container,children:[e.prompt&&(0,S.jsx)("div",{className:ub["rating-description"],children:(0,S.jsx)("div",{children:e.prompt})}),e.options&&(0,S.jsx)("div",{className:ub["rating-category"],ref:r,children:e.options.map(({label:e,key:t})=>(0,S.jsxs)("div",{className:ub["rating-category-options"],children:[(0,S.jsx)("input",{onChange:i,value:t,id:`check-${t}`,type:"checkbox"}),(0,S.jsx)("label",{htmlFor:`check-${t}`,children:e})]},`feedback-option-${t}`))})]})}),u_={container:"_container_wqtvi_9",loader:"_loader_wqtvi_22"},uw=(0,k.memo)(({ratingValue:e,submiting:t,onSubmit:n})=>{let[r,i]=(0,k.useState)(e),[o,a]=(0,k.useState)(),[l,s]=(0,k.useState)([]),[c,u]=(0,k.useState)(""),{appConfig:d}=(0,k.useContext)(sQ),h=tM();(0,k.useEffect)(()=>{e&&i(e)},[e]),(0,k.useEffect)(()=>{s([]),r&&null!=d&&d.feedbackCategories&&a(d.feedbackCategories.find(e=>e.rating===r))},[r]);let p=(0,k.useCallback)(e=>u(e.target.value),[c]),f=(0,k.useCallback)(e=>{e.preventDefault(),r&&n({rating:r,message:c,options:l})},[e,c,r,l]);return(0,S.jsx)("form",{onSubmit:f,children:(0,S.jsxs)("section",{className:u_.container,children:[(0,S.jsx)("div",{children:(0,S.jsx)(rf,{selected:e,onSelect:e=>i(e)})}),o&&(0,S.jsx)(ux,{data:o,selectedItems:l,onSelect:e=>{s(e)}}),(0,S.jsxs)("div",{children:[(0,S.jsx)("label",{htmlFor:"messageInput",className:"sr-only",children:(0,S.jsx)(tq,{id:"feedback.form.add_ur_comments"})}),(0,S.jsx)(rv,{fullWidth:!0,variant:"primary",autoComplete:"off",name:"messageInput",rows:3,maxLength:400,placeholder:h.formatMessage({id:"feedback.form.add_ur_comments"}),value:c,onChange:p})]}),(0,S.jsxs)("div",{className:"submit-ctrls",children:[t&&(0,S.jsx)("div",{className:u_.loader,children:(0,S.jsx)(sO,{})}),(0,S.jsx)(rc,{fullWidth:!0,disabled:!r||t,children:h.formatMessage({id:"button.label.send"})})]})]})})}),uS={INITIAL:"INITIAL",PROGRESS:"PROGRESS",STREAMING:"STREAMING",SUCCESS:"SUCCESS",FAILURE:"FAILURE",AWAITING_AUTH:"AWAITING_AUTH"},uk=(e,t,n)=>{(0,k.useEffect)(()=>{let e=setInterval(()=>{t("")},n||2e3);return()=>{clearInterval(e)}},[e])},uE=()=>{let{search:e}=nn();return(0,k.useMemo)(()=>new URLSearchParams(e),[e])},uA=e=>e?`${String(Math.floor(e/3600)).padStart(2,"0")}:${String(Math.floor(e%3600/60)).padStart(2,"0")}`:"",uT=(e,t)=>!!e&&("string"==typeof e?e===t:!!Array.isArray(e)&&e.includes(t)&&1===e.length),uC=e=>uT(e,"greeting"),uN=e=>uT(e,"out_of_scope"),uj=e=>uT(e,"appreciation_or_gratitude"),uI=e=>{let{message:t,value:n}=e;try{let e=uA(Number(n));return null==t?void 0:t.replace(/{time}/g,e)}catch{return t}},uL={container:"_container_wu45r_1","conversation-user-prompt":"_conversation-user-prompt_wu45r_9","connection-error":"_connection-error_wu45r_16","disclaimer-section":"_disclaimer-section_wu45r_21","read-more-link":"_read-more-link_wu45r_47","conversation-response":"_conversation-response_wu45r_58","message-texts":"_message-texts_wu45r_79","message-text":"_message-text_wu45r_79","markdown-section":"_markdown-section_wu45r_93","streaming-content":"_streaming-content_wu45r_98","end-cursor":"_end-cursor_wu45r_110",blink:"_blink_wu45r_1","reference-list":"_reference-list_wu45r_118","action-block":"_action-block_wu45r_125","feedback-block":"_feedback-block_wu45r_128","message-actions":"_message-actions_wu45r_134","v-sep":"_v-sep_wu45r_141","healthzin-message":"_healthzin-message_wu45r_148","inactive-tab":"_inactive-tab_wu45r_160","active-tab":"_active-tab_wu45r_170","document-container":"_document-container_wu45r_180","document-card":"_document-card_wu45r_184","doc-icon":"_doc-icon_wu45r_195","doc-text":"_doc-text_wu45r_201","doc-actions":"_doc-actions_wu45r_207","doc-loader-overlay":"_doc-loader-overlay_wu45r_213","summary-title":"_summary-title_wu45r_223"},uO={container:"_container_b3iy5_9","menu-block":"_menu-block_b3iy5_12",fadeInAnimation:"_fadeInAnimation_b3iy5_1"},uP=[{key:"share_transcript",label:"Share Transcript",Icon:(0,S.jsx)(S.Fragment,{})},{key:"share_answer",label:"Share Answer",Icon:(0,S.jsx)(S.Fragment,{})}],uR=({disabled:e=!1,onItemClick:t})=>{let n=(0,k.useRef)(null),r=e=>{n.current&&!n.current.contains(e.target)&&t("close")};return(0,k.useEffect)(()=>
121{if("u">typeof window)return window.document.addEventListener("mousedown",r),()=>{window.document.removeEventListener("mousedown",r)}},[]),(0,S.jsx)("section",{className:"_container_b3iy5_9",children:(0,S.jsx)("div",{className:uO["menu-block"],ref:n,children:(0,S.jsx)(sU,{items:uP,onItemClick:e=>{t(e)}})})})},uM="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAX0AAADXCAAAAADT4t6xAAAAAmJLR0QA/4ePzL8AAAAHdElNRQfoCA4ENTvyX4zzAAABPXpUWHRSYXcgcHJvZmlsZSB0eXBlIGljYwAAKJGdU9mtxCAM/KeKLcH4JOUkJEiv/waeuaJslP3YHYkgOWbGHkz4yzm8Klg0QEXMCSaY2qa7HsaGgmyMCJJkkRUB7GgnxjoRNCoZGfyIRlZcNVyZd8L9V8bwZf6irGKkvX8oI4wc3IXWfS808qiY1a5xTGf8LZ/yjAcztxSsE0SB+cMF2I3uylGHACYXeIwH/XTAL8BwCqShTNl9zSaztRNxepRV9BCRmTBbcQLzmPi9e+HAeI7BBVpWbESUSu+JFnhMxGWp+2ZJeoH7es8L3fPuHZTUWtk0lyfCOi9wGxcDjYYar9c//AFURzuIa5/UXVpFkcaYrbLdPPLJ/mDe2G/ezQqrd9UzLWOZV6QeVOlJ7Mrqj6kS49Fj5J/KQ05OGv4BiF6+ZwMoFgoAAApxSURBVHja7Z1bc+M4DkY/kLr5lnSmp3d2q/b//7Td2ppLp5PY1o3APtixLcdK1PPQgGZwntyK4iZPUSBEQgr9F44aQbsBf2vcviZuXxO3r4nb18Tta+L2NXH7mrh9Tdy+Jm5fE7evidvXxO1r4vY1cfuauH1N3L4mbl8Tt6+J29fE7Wvi9jVx+5q4fU3cviZuXxO3r4nb18Tta+L2NXH7mrh9Tdy+Jm5fE7evidvXxO1r4vY1cfuauH1N3L4mbl8Tt6+J29fE7Wvi9jVx+5q4fU3cviZuXxO3r4nb18Tta+L2NXH7mrh9Tdy+Jm5fE7evidvXxO1r8texz9oN+BNk2g14l55yBkAABGAgEGTs5CSFCEDH8yUdf9PwADNtP+VolqlLOwAlgIIAjPmPBBFmEaAHEEMAyLB5ACDTf3uC+mbf930OQACkoiqKEG/qJ2Ghbt+1IAAkQoHWWQym/Ru1zwEAXvYtAYf4kQ7HZVVVJ6McTqcitHW7J4IIIABBkoSsiA/Hfsp3/f8/CJP2q5pzwv6PBNwc53dlwRn3EgEEFkGW8VPdvM4PA4p8nUWAYVG/SfvgGJv6pQu4bb9fVoucRBhAICLZ7mocLpG354cs32QwKd/krMuIUu9f2tE5s+ya7aaKh4RGkvyWGERj39b2WEWbmY9B+xwy1M9b5KPDtUfg3zarGADO2rptwqh7AOC9rKJ2r25iL/KwIDYvteAYSsYaLlR9QqR9s+9wPPdW3D+cHKovkpK5C8Dg2Ac1L3X6SJQA+/Yztlvhj/MZSbs6N+fepH2SCfIBCOQR1PMkq/K0MdhVc02igF2dPjhJDjFJOgbFlKbc0j6VIZrLe8xdjSF1j4gRROMzacsppdOsECatJ+R/dObk2xv7HZ4+jOOFMIo2lgRmpH7a9xYvmbnEx5x9tE3A++kOECJl90shJGn38lGcAgCIdL3b/wj5dhj5JK/R/S1NURUP6TAzL2NeNxO+l7rlS6nduWvM2d9JOKT6xKMJ/IofYkKAIECKYvMfCR+O/wwtdneYFqZ+FOZm3fbg+7BMycxyIwjxT8NjX2TaxlZjy73BsX+0D0agChDu35otquEFUa62NOW7685Yd201h0+rmsIB4ROAumn52v9ahmlRd99OCinc5No9HGIs8qSvxw8UIF8AoNpsqpTOS5gktIlXIz3DMr13f3CinXSJ/DhsjX2JArmaZkNVcDM8GP7san0ylnTaGvsUhsnjcdNws6BBTvOnFXbGpl1TY59DL7eGdQkeapPX3dzzkUkxpe9tpfymxn7A7vSZgG1OQQ61DA+/nMY7SQviYfGU2FvCmdhhY5w9SnMKN4xyE08/7xPCoOEp7sz1YxJ2W01o93Ra8OHqVT8hcaJh6LcWz6di1z4gdX++0aVX/ceSQuB8GxD3YWIVp7EIZdg+UXO5ekyLn8twKKr62vUCBpiZEwd6Ok8XcrhVSESQN7OBZLCV8Bu2D+A5XAoMPxcpCoD0R+r4mPTHDPWWX60KgL49BqYb14OxsW8q47yGmxQRzhrpoXgiIXD++08Bh2iTUr0/ayYBMkJRZWVXt/XbPNSWftv2y6f7QW4TVtVjKxS68LQoD/rruk4XnaCuqIqKIiQv6Pc924o015iyz3HxNDiwXyDgHB6ZEe/bbZMRt/0zUADSp9cNAQgAuivL4ljzL/f9cGFHyNbNli3711Dgen11LFZV+2uGJAQ014GEYljHcN5wtz3yzdm/0hVlW2XDxyUiEP79bXfa9rr4GfXL1VLeTz7ZVJphzP4QImnbQQsDCBT6T/f1NwCADB5l+SXkwGWotzXHvsWU/SBYP18eEMm2m3OlYDgeDEyLst31bThE+6JPaVOWRBgUtsn1pNtXVafdxwGm7AMoh/aBfl/cjN55KFrmngUAVUV+LmM+7QR3LQ/XPrPK2MVgzH54k5TwrrwRyAMkRJKQEQtAcvPO6qW5kp1V0xaifxjG7L+Fmm6skRkJH2fRWzNtV18GfhJIniVbe1vm7G+eZbC8ID2KK7ck4bXU57CkIFcLJn2Bhuvd5YRNIJaFtZsvc/bjVWGUUP3dhQgxpfQbqLhYZhMCwVwJvzn7Zc6DaE14WX/vd8SXbUvCg7sHRiBbYQcG7WdhWKtD3E4O1nR86OL3fRev931TvNoQs4C19iAshmszhPhm4+q6doeOBPRgbv635YjhFQQS6j7b66x2A66RbHXlDVNKlA+/G4s8vHy9udRAWJnrq0H7cT2wL6B28u+S1I/b5vZCD63NhX179iHlLUvTUkWpH79Jcbu+JF9Mesrih2Ju1gVh/TzU12TpPPHKm9NPnyjtnutMbt/P5itjqwyARfuBi5gG91to45RLlPv9rh99wL3Kxd51bq9FQL64+IcAaBJ9GDVI2udtM76OUxkrHgdg0n5AeVUi3k0oFaR+u5PA9djPc4OBx2DkAUL++Ve+3BzswrmdNyQKOPDLviOmeDOvaUv8w9gKz7Gn2g24CVVX7Xp3t5A4cLdvx6NOxhuLI9+s/eVwDH8wcAN32w40qp9iafP9bCYbBakKYPq2LHfbvdDN0n+IAOnOZNyxap/kgQTyWor5gTtptg3J6JvX+u4hd/vf0agAfM77k7IP1uXTvhEau1JEYlkFe4sMh45qN2CMcnPeAs/eHbrSNjIe8znEh2D0tWxGWwUgLT+d2/aOfUEajfmHEwqDy2tHzNqPnH2iJMQMLNK4XMbjfizmh0DIN5/sPthi1j4ClQ/LIMTyz3fPq7s0mh0lltXa3iupTli81z0SeBXrLu/v3629zB7Hh7aASsvyLdtH4GrR5dy+G7ZlN77tKyjvLMs3bR9ghITD4uRtiUTfePz9DFStM8vyjdt/H0aUvh6fuqhc53bnNcDyrDuh7UJc70fTUfvyZ20fgLSjPaByYV3+rCMPCHH7dso93PdKsVzb20a/Ytb2Id2NsCOSECjbVJ31oT9v+yL1rTenksQsv0NncjNxwLzto7v53to8FncxcGtxI33ArO3n0r5J9gVEq7yIYJiXP2/7Kbwd+dRl1SpGNh91gJnb56safQBoy/UqZ/PZzoFZ25fz84mnhxPvNnljPtd5Zdb2Y3Ma+QIharOy2gDV5TmmI9Cs7V/c5xKzIKsqY6/B+IB528dF4IlEd1lmtHhhhHnbJ4BEQMf38qxw8aT6HJi1/QAJAJLkOapikR/qDU1H+iGztn98JVKInJYrivP769Lztg9QIgrpbhlyFlvv3pnCrO0TASmG8K9EWUPXT/rOgHnb52q3KStCBGeQOUX8A7O2L3GzqCjOz/orM7cfS5qv+5nbB2PeO9Pztj9n83+F9s8bt6+J29fE7Wvi9jVx+5q4fU3cviZuXxO3r4nb18Tta+L2NXH7mrh9Tdy+Jm5fE7evidvXxO1r4vY1cfuauH1N3
121L4mbl8Tt6+J29fE7Wvi9jVx+5q4fU3cviZuXxO3r4nb18Tta+L2NXH7mrh9Tdy+Jm5fE7evidvXxO1r4vY1cfuauH1N3L4mbl8Tt6+J29fE7Wvi9jVx+5q4fU3cviZuXxO3r4nb18Tta+L2NXH7mvwfvwibcOfWGiYAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjQtMDgtMTRUMDQ6NTM6NTkrMDA6MDCNqlnTAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDI0LTA4LTE0VDA0OjUzOjU5KzAwOjAw/PfhbwAAACh0RVh0ZGF0ZTp0aW1lc3RhbXAAMjAyNC0wOC0xNFQwNDo1Mzo1OSswMDowMKviwLAAAAAedEVYdGljYzpjb3B5cmlnaHQAR29vZ2xlIEluYy4gMjAxNqwLMzgAAAAUdEVYdGljYzpkZXNjcmlwdGlvbgBzUkdCupBzBwAAAABJRU5ErkJggg==",uD={"article-image-wrapper":"_article-image-wrapper_1906r_1","article-image":"_article-image_1906r_1","article-images":"_article-images_1906r_16","popup-infographic-img-row":"_popup-infographic-img-row_1906r_27","popup-arrow-btn":"_popup-arrow-btn_1906r_35","popup-arrow-svg":"_popup-arrow-svg_1906r_40","waveform-bar":"_waveform-bar_1906r_44","waveform-bar-played":"_waveform-bar-played_1906r_53","waveform-bar-unplayed":"_waveform-bar-unplayed_1906r_57","arrow-icon-white":"_arrow-icon-white_1906r_65","arrow-icon-whites":"_arrow-icon-whites_1906r_69","arrow-icon-blue":"_arrow-icon-blue_1906r_73","podcast-list":"_podcast-list_1906r_77","tab-buttons":"_tab-buttons_1906r_85","article-scroll-container":"_article-scroll-container_1906r_93","article-date":"_article-date_1906r_103","video-date":"_video-date_1906r_113","webstories-scroll-container":"_webstories-scroll-container_1906r_123","webstories-img":"_webstories-img_1906r_133","webstory-card":"_webstory-card_1906r_143","webstory-image-wrapper":"_webstory-image-wrapper_1906r_163","webstory-image":"_webstory-image_1906r_163","webstory-text":"_webstory-text_1906r_184","webstory-link":"_webstory-link_1906r_208","tab-section":"_tab-section_1906r_215",texts:"_texts_1906r_219","inactive-tab":"_inactive-tab_1906r_224","active-tab":"_active-tab_1906r_234","article-scroll-wrapper":"_article-scroll-wrapper_1906r_244","article-arrow-btns":"_article-arrow-btns_1906r_251","article-arrow-btn":"_article-arrow-btn_1906r_251",left:"_left_1906r_284",right:"_right_1906r_288","article-box":"_article-box_1906r_292","webstories-box":"_webstories-box_1906r_307","video-title":"_video-title_1906r_322","create-summary-btn":"_create-summary-btn_1906r_365","webstories-label":"_webstories-label_1906r_387","video-box":"_video-box_1906r_406","video-thumbnail":"_video-thumbnail_1906r_421","video-responsive":"_video-responsive_1906r_425","image-popup-overlay":"_image-popup-overlay_1906r_447","image-popup-modal":"_image-popup-modal_1906r_460","image-popup-img":"_image-popup-img_1906r_471","image-popup-label":"_image-popup-label_1906r_483","image-popup-label_infographic":"_image-popup-label_infographic_1906r_505","carousel-progress-bar":"_carousel-progress-bar_1906r_527","progress-segment":"_progress-segment_1906r_543",active:"_active_1906r_234",rights:"_rights_1906r_559",lefts:"_lefts_1906r_563","video-section":"_video-section_1906r_567","video-tab":"_video-tab_1906r_571",icon:"_icon_1906r_580",text:"_text_1906r_219",line:"_line_1906r_596","video-list":"_video-list_1906r_603","info-title":"_info-title_1906r_611","video-row":"_video-row_1906r_630","video-col":"_video-col_1906r_638","video-title-col":"_video-title-col_1906r_644","video-link":"_video-link_1906r_652","voice-note-player":"_voice-note-player_1906r_668","voice-note-player-audio":"_voice-note-player-audio_1906r_684","voice-note-player-header":"_voice-note-player-header_1906r_688","voice-note-player-date":"_voice-note-player-date_1906r_694","voice-note-player-label":"_voice-note-player-label_1906r_699","voice-note-player-main":"_voice-note-player-main_1906r_707","voice-note-player-waveform":"_voice-note-player-waveform_1906r_715","voice-note-player-thumbnail":"_voice-note-player-thumbnail_1906r_725","voice-note-player-waveform-bars":"_voice-note-player-waveform-bars_1906r_737","voice-note-player-divider":"_voice-note-player-divider_1906r_746","voice-note-player-controls":"_voice-note-player-controls_1906r_752","voice-note-player-mute-btn":"_voice-note-player-mute-btn_1906r_759","voice-note-player-mute-icon":"_voice-note-player-mute-icon_1906r_768","voice-note-player-muted-icon":"_voice-note-player
121-muted-icon_1906r_773","voice-note-player-main-controls":"_voice-note-player-main-controls_1906r_783","voice-note-player-control-btn":"_voice-note-player-control-btn_1906r_791","voice-note-player-play-pause-btn":"_voice-note-player-play-pause-btn_1906r_798","voice-note-player-play-pause-icon":"_voice-note-player-play-pause-icon_1906r_812"},uB=({articles:e,videos:t,podcasts:n,webstories:r,infographics:i=[],discussion:o,testimonial:a=[],onViewSummary:l,onArticleClick:s})=>{let c=Array.isArray(t)?t.filter(e=>(e.media_url||e.url)&&("video"===e.content_type||!e.content_type)):[],u=(e,t=80)=>e?e.length>t?e.substring(0,t)+"...":e:"";(0,k.useState)(null),(0,k.useState)(null);let[d,h]=(0,k.useState)(null),[p,f]=(0,k.useState)(null),m=[{key:"articles",label:"Articles",data:e},{key:"discussion",label:"Discussion",data:o},{key:"videos",label:"Videos",data:c},{key:"testimonial",label:"Testimonial",data:a},{key:"podcasts",label:"Podcast",data:n},{key:"webstories",label:"Webstories",data:r},{key:"infographic",label:"Infographic",data:i}].filter(e=>e.data&&e.data.length>0).sort((e,t)=>t.data.length-e.data.length);(0,k.useState)(null),(0,k.useState)(null),(0,k.useState)(null),(0,k.useState)(0),(0,k.useState)([]);let g=()=>({width:180,height:220,objectFit:"cover",borderRadius:"8px 8px 0px 0px",boxShadow:"0 1px 8px rgba(0,0,0,0.2)",cursor:"pointer",display:"block",margin:"0 auto"}),y=(0,k.useRef)(null),v=(0,k.useRef)(null),b=(0,k.useRef)(null),x=(0,k.useRef)(null),[_,w]=(0,k.useState)(!1),[E,A]=(0,k.useState)(!1),[T,C]=(0,k.useState)(!1),[N,j]=(0,k.useState)(!1),[I,L]=(0,k.useState)(!1),[O,P]=(0,k.useState)(!1),[R,M]=(0,k.useState)(!1),[D,B]=(0,k.useState)(!1),[U,H]=(0,k.useState)(!1),[F,z]=(0,k.useState)(!1),G=(0,k.useRef)(null),W=(0,k.useRef)(new Map),[q,V]=(0,k.useState)(new Map),[Z,Y]=(0,k.useState)(new Map),[X,K]=(0,k.useState)(new Map),[$,J]=(0,k.useState)(new Map),Q=(0,k.useRef)(new Map);(0,k.useContext)(sQ);let ee=(e,t)=>{K(n=>new Map(n.set(e,t)))},et=(e,t)=>{J(n=>new Map(n.set(e,t)))},en=e=>{if(!Q.current.has(e)){let t=Array.from({length:70},()=>Math.floor(51*Math.random())+30);Q.current.set(e,t)}return Q.current.get(e)||[]},er=e=>{let t=X.get(e)||0,n=$.get(e)||0;return en(e).map((e,r)=>{let i=r/70<(t/n||0);return(0,S.jsx)("div",{className:`${uD["waveform-bar"]} ${i?uD["waveform-bar-played"]:uD["waveform-bar-unplayed"]}`,style:{height:e}},r)})};return(0,k.useEffect)(()=>{null!==d&&(h(null),l&&l({article_id:"",summary:""},{}))},[p]),(0,k.useEffect)(()=>{let e=v.current;e&&(L(e.scrollLeft>0),P(e.scrollLeft+e.clientWidth<e.scrollWidth-1))},[p,r.length]),(0,k.useEffect)(()=>{let e=G.current;e&&(M(e.scrollLeft>0),B(e.scrollLeft+e.clientWidth<e.scrollWidth-1))},[p,i.length]),(0,k.useEffect)(()=>{let e=x.current;e&&(w(e.scrollLeft>0),A(e.scrollLeft+e.clientWidth<e.scrollWidth-1))},[p,a.length]),(0,k.useEffect)(()=>{let e=[],t=[];return n.forEach((n,r)=>{let i=W.current.get(r);if(!i)return;let o=()=>ee(r,i.currentTime),a=()=>et(r,i.duration);i.addEventListener("timeupdate",o),i.addEventListener("loadedmetadata",a),e[r]=o,t[r]=a}),()=>{n.forEach((n,r)=>{let i=W.current.get(r);i&&(e[r]&&i.removeEventListener("timeupdate",e[r]),t[r]&&i.removeEventListener("loadedmetadata",t[r]))})}},[n,ee,et]),(0,k.useEffect)(()=>{let e=y.current;e&&(C(e.scrollLeft>0),j(e.scrollLeft+e.clientWidth<e.scrollWidth-1))},[p,e.length]),(0,k.useEffect)(()=>{let e=y.current;e&&(C(e.scrollLeft>0),j(e.scrollLeft+e.clientWidth<e.scrollWidth-1))},[p,e.length]),(0,k.useEffect)(()=>{let e=b.current;e&&(H(e.scrollLeft>0),z(e.scrollLeft+e.clientWidth<e.scrollWidth-1))},[p,o.length]),(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("div",{className:uD["tab-section"],children:(0,S.jsx)("div",{className:uD["tab-buttons"],children:m.map(e=>(0,S.jsx)("button",{className:p===e.key?uD["active-tab"]:uD["inactive-tab"],onClick:()=>f(p===e.key?null:e.key),children:(0,S.jsxs)("span",{className:uD.texts,children:[e.label," (",e.data.length,")"]})},e.key))})}),"articles"===p&&e.length>0&&(0,S.jsxs)("div",{className:uD["article-scroll-wrapper"],children:[T&&(0,S.jsx)("button",{type:"button","aria-label":"Scroll left",className:`${uD["article-arrow-btn"]} ${uD.left}`,onClick:()=>{let e=y.current;e&&e.scrollBy({left:-200,behavior:"smooth"})},children:(0,S.jsx)(sW,{className:uD["arrow-icon-white"]})}),(0,S.jsx)("div",{id:"article-scroll-container",ref:y,className:uD["article-scroll-container"],onScroll:()=>{let e=y.current;e&&(C(e.scrollLeft>0),j(e.scrollLeft+e.clientWidth<e.scrollWidth-2))},children:e.map((e,t)=>(0,S.jsx)("div",{className:uD["article-box"],children:(0,S.jsxs)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:uD["video-link"],onClick:()=>null==s?void 0:s(e),children:[(0,S.jsx)("div",{className:uD["article-image-wrapper"],children:(0,S.jsx)("img",{src:e.media_url?e.media_url:uM,alt:e.title||e.label||"Article Image",className:uD["article-image"]})}),(0,S.jsx)("div",{className:uD["video-title"],title:e.title||e.label,children:u(e.title||e.label,8
1210)})]})},e.articleId||t))}),N&&(0,S.jsx)("button",{type:"button","aria-label":"Scroll right",className:`${uD["article-arrow-btn"]} ${uD.right}`,onClick:()=>{let e=y.current;e&&e.scrollBy({left:200,behavior:"smooth"})},children:(0,S.jsx)(n9,{})})]}),"testimonial"===p&&a.length>0&&(0,S.jsxs)("div",{className:uD["article-scroll-wrapper"],children:[_&&(0,S.jsx)("button",{type:"button","aria-label":"Scroll left",className:`${uD["article-arrow-btn"]} ${uD.left}`,onClick:()=>{let e=x.current;e&&e.scrollBy({left:-200,behavior:"smooth"})},children:(0,S.jsx)(sW,{className:uD["arrow-icon-white"]})}),(0,S.jsx)("div",{ref:x,className:uD["article-scroll-container"],onScroll:()=>{let e=x.current;e&&(w(e.scrollLeft>0),A(e.scrollLeft+e.clientWidth<e.scrollWidth-2))},children:a.map((e,t)=>(0,S.jsxs)("div",{className:uD["article-box"],children:[(0,S.jsx)("div",{className:uD["article-image-wrapper"],children:(0,S.jsx)("img",{src:e.media_url||uM,alt:e.title||"Testimonial Image",className:uD["article-image"]})}),(0,S.jsx)("div",{className:uD["video-title"],title:e.title,children:(0,S.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:uD["video-link"],children:u(e.title,80)})})]},e.content_id||e.id||t))}),E&&(0,S.jsx)("button",{type:"button","aria-label":"Scroll right",className:`${uD["article-arrow-btn"]} ${uD.right}`,onClick:()=>{let e=x.current;e&&e.scrollBy({left:200,behavior:"smooth"})},children:(0,S.jsx)(n9,{})})]}),"discussion"===p&&o.length>0&&(0,S.jsxs)("div",{className:uD["article-scroll-wrapper"],children:[o.length>1&&U&&(0,S.jsx)("button",{type:"button","aria-label":"Scroll left",className:`${uD["article-arrow-btn"]} ${uD.left}`,onClick:()=>{let e=b.current;e&&e.scrollBy({left:-200,behavior:"smooth"})},children:(0,S.jsx)(sW,{className:uD["arrow-icon-white"]})}),(0,S.jsx)("div",{ref:b,className:uD["article-scroll-container"],onScroll:()=>{let e=b.current;e&&(H(e.scrollLeft>0),z(e.scrollLeft+e.clientWidth<e.scrollWidth-2))},children:o.map((e,t)=>(0,S.jsxs)("div",{className:uD["article-box"],children:[(0,S.jsx)("div",{className:uD["article-image-wrapper"],children:(0,S.jsx)("img",{src:e.media_url||uM,alt:e.title||e.label||"Discussion Image",className:uD["article-image"]})}),(0,S.jsx)("div",{className:uD["video-title"],title:e.title||e.label,children:(0,S.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:uD["video-link"],children:u(e.title||e.label,80)})})]},e.articleId||t))}),o.length>1&&F&&(0,S.jsx)("button",{type:"button","aria-label":"Scroll right",className:`${uD["article-arrow-btn"]} ${uD.right}`,onClick:()=>{let e=b.current;e&&e.scrollBy({left:200,behavior:"smooth"})},children:(0,S.jsx)(n9,{})})]}),"videos"===p&&c.length>0&&(0,S.jsx)("div",{className:uD["video-list"],children:c.map((e,t)=>{var n;let r=null==(n=e.media_url||e.url)?void 0:n.replace("/embed/","/watch?v="),i=e.title||e.label||"Video",o=e=>{if(!e)return null;try{let t=new URL(e);if("youtu.be"===t.hostname)return t.pathname.split("/").filter(Boolean)[0]||null;if(t.hostname.endsWith("youtube.com")){let e=t.searchParams.get("v");if(e)return e;let n=t.pathname.split("/").filter(Boolean);return n[n.length-1]||null}}catch{}return null};if("video"===e.content_type&&r){if(r.includes("youtube.com")||r.includes("youtu.be")){let n=(e=>{let t=o(e);return t?`https://img.youtube.com/vi/${t}/hqdefault.jpg`:null})(r);return(0,S.jsxs)("div",{className:uD["video-box"],children:[(0,S.jsx)("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:uD["video-thumb-link"],children:(0,S.jsx)("img",{src:e.thumbnail||n||"/video-placeholder.png",alt:i,className:uD["video-thumbnail"]})}),(0,S.jsx)("div",{className:uD["video-title"],title:i,children:(0,S.jsx)("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:uD["video-link"],children:u(i,80)})})]},e.content_id||t)}return(0,S.jsxs)("div",{className:uD["video-box"],children:[(0,S.jsx)("a",{href:r,target:"_blank",rel:"noopener noreferrer",children:(0,S.jsx)("video",{src:r,className:uD["video-thumbnail"],preload:"metadata"})}),(0,S.jsx)("div",{className:uD["video-title"],title:i,children:(0,S.jsx)("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:uD["video-link"],children:u(i,80)})})]},e.content_id||t)}return null})}),"webstories"===p&&r.length>0&&(0,S.jsxs)("div",{className:uD["article-scroll-wrapper"],children:[I&&(0,S.jsx)("button",{type:"button","aria-label":"Scroll left",className:`${uD["article-arrow-btn"]} ${uD.left}`,onClick:()=>{let e=v.current;e&&e.scrollBy({left:-200,behavior:"smooth"})},children:(0,S.jsx)(sW,{className:uD["arrow-icon-white"]})}),(0,S.jsx)("div",{id:"webstories-scroll-container",ref:v,className:uD["article-scroll-container"],onScroll:()=>{let e=v.current;e&&(L(e.scrollLeft>0),P(e.scrollLeft+e.clientWidth<e.scrollWidth-2))},children:r.map((e,t)=>(0,S.jsx)("div",{className:uD["webstory-card"],children:(0,S.jsx)("div",{className:uD["webstory-image-wrapper"],children:(0,S.jsxs)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:uD["webstory-link"],children:[(0,S.jsx)("img",{src:e.media_url?e.media_url.split("|")[0].trim():uM,alt:e.title||e.label||"Webstory Image",className:uD["webstory-image"]}),(0,S.jsx)("div",{className:uD["webstory-text"],title:e.media_text?e.media_text.split("|")[0].trim():e.title||e.label,children:u(e.media_text?e.media_text.split("|")[0].trim():e.title||e.label,8
1210)})]})})},e.storyId||t))}),O&&(0,S.jsx)("button",{type:"button","aria-label":"Scroll right",className:`${uD["article-arrow-btn"]} ${uD.right}`,onClick:()=>{let e=v.current;e&&e.scrollBy({left:200,behavior:"smooth"})},children:(0,S.jsx)(n9,{})})]}),"infographic"===p&&i.length>0&&(0,S.jsxs)("div",{className:uD["article-scroll-wrapper"],children:[i.length>1&&R&&(0,S.jsx)("button",{type:"button","aria-label":"Previous infographic",className:`${uD["article-arrow-btn"]} ${uD.left}`,onClick:()=>{let e=G.current;e&&e.scrollBy({left:-200,behavior:"smooth"})},children:(0,S.jsx)(sW,{className:uD["arrow-icon-white"]})}),(0,S.jsx)("div",{id:"infographic-scroll-container",className:uD["article-scroll-container"],style:{gap:24},ref:G,onScroll:()=>{let e=G.current;e&&(M(e.scrollLeft>0),B(e.scrollLeft+e.clientWidth<e.scrollWidth-2))},children:i.map((e,t)=>(0,S.jsx)("div",{className:uD["article-box"],style:{width:180,cursor:"pointer",padding:0,minHeight:0},children:(0,S.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:uD["webstory-link"],children:(0,S.jsx)("img",{src:e.media_url,alt:e.title,style:g()})})},e.imageId||e.infographicId||t))}),i.length>1&&D&&(0,S.jsx)("button",{type:"button","aria-label":"Next infographic",className:`${uD["article-arrow-btn"]} ${uD.right}`,onClick:()=>{let e=G.current;e&&e.scrollBy({left:200,behavior:"smooth"})},children:(0,S.jsx)(n9,{})})]}),"podcasts"===p&&n.length>0&&(0,S.jsx)("div",{className:uD["podcast-list"],children:n.map((e,t)=>{q.get(t),Z.get(t);let n=er(t);return(0,S.jsx)("div",{className:uD["voice-note-player"],children:(0,S.jsxs)("a",{href:null==e?void 0:e.url,target:"_blank",rel:"noopener noreferrer",onClick:e=>e.stopPropagation(),children:[(0,S.jsx)("div",{className:uD["voice-note-player-header"],children:(0,S.jsx)("span",{className:uD["voice-note-player-label"],children:(null==e?void 0:e.label)||(null==e?void 0:e.title)||""})}),(0,S.jsxs)("div",{className:uD["voice-note-player-main"],children:[(0,S.jsx)("div",{className:uD["voice-note-player-thumbnail"],children:(0,S.jsxs)("svg",{width:"80",height:"80",viewBox:"0 0 80 80",children:[(0,S.jsx)("rect",{x:"10",y:"30",width:"60",height:"30",rx:"8",fill:"#fff",fillOpacity:"0.7"}),(0,S.jsx)("circle",{cx:"25",cy:"55",r:"7",fill:"#60A5FA"}),(0,S.jsx)("circle",{cx:"40",cy:"55",r:"7",fill:"#FDBA74"}),(0,S.jsx)("circle",{cx:"55",cy:"55",r:"7",fill:"#6EE7B7"}),(0,S.jsx)("rect",{x:"20",y:"38",width:"40",height:"6",rx:"2",fill:"#2563EB",fillOpacity:"0.2"}),(0,S.jsx)("rect",{x:"35",y:"20",width:"10",height:"10",rx:"2",fill:"#2563EB",fillOpacity:"0.3"})]})}),(0,S.jsx)("div",{className:uD["voice-note-player-waveform"],children:(0,S.jsx)("div",{className:uD["voice-note-player-waveform-bars"],children:n})})]})]})},e.podcastId||t)})})]})},uU={container:"_container_8xqsl_9","modal-content":"_modal-content_8xqsl_22","close-icon":"_close-icon_8xqsl_28",content:"_content_8xqsl_42",section:"_section_8xqsl_48","section-title":"_section-title_8xqsl_54",select:"_select_8xqsl_59",info:"_info_8xqsl_72","info-icon":"_info-icon_8xqsl_81",textarea:"_textarea_8xqsl_86","char-count":"_char-count_8xqsl_104","textarea-container":"_textarea-container_8xqsl_113","min-chars":"_min-chars_8xqsl_116",disclaimer:"_disclaimer_8xqsl_121","disclaimer-icon":"_disclaimer-icon_8xqsl_131","toggle-row":"_toggle-row_8xqsl_137","toggle-label":"_toggle-label_8xqsl_142","toggle-input":"_toggle-input_8xqsl_151","toggle-round":"_toggle-round_8xqsl_154",actions:"_actions_8xqsl_182","cancel-btn":"_cancel-btn_8xqsl_188","send-btn":"_send-btn_8xqsl_203","header-divider":"_header-divider_8xqsl_218","query-divider":"_query-divider_8xqsl_224","post-divider":"_post-divider_8xqsl_230","disclaimer-text":"_disclaimer-text_8xqsl_236","confirmation-message":"_confirmation-message_8xqsl_240","existing-queries-list":"_existing-queries-list_8xqsl_247","existing-queries-title":"_existing-queries-title_8xqsl_252","queries-list":"_queries-list_8xqsl_259","query-item":"_query-item_8xqsl_268","read-more-link":"_read-more-link_8xqsl_284",fadeInAnimation:"_fadeInAnimation_8xqsl_1"},uH=({isOpen:e=!1,onClose:t})=>{let n=tM(),[r,i]=(0,k.useState)(""),[o,a]=(0,k.useState)(""),[l,s]=(0,k.useState)([]),[c,u]=(0,k.useState)(!1),[d,h]=(0,k.useState)(!1),[p,f]=(0,k.useState)(""),[m,g]=(0,k.useState)("default"),[y,v]=(0,k.useState)(!1),[b,x]=(0,k.useState)([]),[_,w]=(0,k.useState)(!1),E=()=>
121{if("u">typeof window){let e=window.document.getElementById("modalOverlayHoder");e&&(e.innerHTML="")}t()},A=new cg({apiUrl:""});(0,k.useEffect)(()=>{(async()=>{try{let e=await A.getSpecialities();s(e)}catch{s([])}})()},[]);let T=async e=>{e.preventDefault(),h(!0),f(""),g("default");try{let e=await A.searchExistingQueries(r),t=Array.isArray(e)?e:e&&e.results?e.results:[];t.length>0?(x(t),v(!0),w(!0),h(!1)):await C()}catch(e){f(e.message||"Failed to search existing queries."),g("error"),h(!1)}},C=async()=>{h(!0);try{let e=cu.getLoginId()||ch.getUserId()||cu.getHHAccessToken()||"";await A.submitAskToExpert({specialty:o,query:r,isAnonymous:c,postedBy:e}),f("Query submitted successfully!"),g("success"),i(""),a(""),u(!1),v(!1),w(!1),setTimeout(()=>{E()},1e3)}catch(e){f(e.message||"Failed to submit query."),g("error")}finally{h(!1)}},N=()=>{v(!1),w(!1),x([])};return uk(p,f),(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("div",{className:uU.container,children:(0,S.jsx)(sN,{open:e,align:"center",onCloseButtonClick:E,title:n.formatMessage({id:"asktoexpert.prompt.title",defaultMessage:"Ask an Expert"}),children:(0,S.jsxs)("div",{children:[(0,S.jsx)("hr",{className:uU["header-divider"]}),(0,S.jsx)("form",{onSubmit:T,children:(0,S.jsxs)("section",{className:uU["modal-content"],children:[(0,S.jsxs)("div",{className:uU.section,children:[(0,S.jsx)("label",{className:uU["section-title"],htmlFor:"specialty-select",children:n.formatMessage({id:"asktoexpert.choose.specialty"})}),(0,S.jsxs)("select",{id:"specialty-select",className:uU.select,value:o,onChange:e=>{a(e.target.value)},children:[(0,S.jsx)("option",{value:"",children:n.formatMessage({id:"asktoexpert.select.specialty"})}),l.map(e=>(0,S.jsx)("option",{value:e.id,children:e.name},e.id))]}),(0,S.jsxs)("p",{className:uU.info,children:[(0,S.jsx)("span",{className:uU["info-icon"],children:"â"}),n.formatMessage({id:"asktoexpert.specialty.unknown"})]})]}),(0,S.jsx)("hr",{className:uU["query-divider"]}),(0,S.jsxs)("div",{className:uU.section,children:[(0,S.jsx)("label",{className:uU["section-title"],htmlFor:"query-textarea",children:n.formatMessage({id:"asktoexpert.enter.query"})}),(0,S.jsxs)("div",{className:uU["textarea-container"],children:[(0,S.jsx)("textarea",{id:"query-textarea",className:uU.textarea,rows:4,maxLength:500,placeholder:n.formatMessage({id:"asktoexpert.query.placeholder"}),value:r,onChange:e=>{let t=e.target.value;t.length<=500?i(t):i(t.slice(0,500))}}),(0,S.jsxs)("div",{className:uU["char-count"],children:[r.length,"/",500]})]}),(0,S.jsx)("p",{className:uU["min-chars"],children:n.formatMessage({id:"asktoexpert.char.range"})})]}),(0,S.jsxs)("div",{className:uU.disclaimer,children:[(0,S.jsx)("span",{className:uU["disclaimer-icon"],children:"â"}),(0,S.jsx)("div",{className:uU["disclaimer-text"],children:(0,S.jsx)("strong",{children:n.formatMessage({id:"asktoexpert.disclaimer"})})})]}),(0,S.jsx)("div",{className:uU["toggle-row"],children:(0,S.jsxs)("label",{className:uU["toggle-label"],children:[(0,S.jsx)("input",{type:"checkbox",className:uU["toggle-input"],checked:c,onChange:e=>{u(e.target.checked)}}),(0,S.jsx)("span",{className:uU["toggle-round"]}),n.formatMessage({id:"asktoexpert.post.anonymously"})]})}),(0,S.jsx)("hr",{className:uU["post-divider"]}),(0,S.jsxs)("div",{className:uU.actions,children:[(0,S.jsx)("button",{className:uU["cancel-btn"],type:"button",onClick:E,disabled:d,children:n.formatMessage({id:"button.label.cancel"})}),(0,S.jsx)("button",{className:uU["send-btn"],type:"submit",disabled:d||r.length<30,children:n.formatMessage({id:"button.label.send"})})]}),p&&(0,S.jsx)(sR,{title:p,type:m})]})})]})})}),y&&(0,S.jsx)("div",{className:uU.container,children:(0,S.jsx)(sN,{open:y,align:"center",onCloseButtonClick:N,title:n.formatMessage({id:"asktoexpert.confirmation.title",defaultMessage:"Existing Queries Found"}),children:(0,S.jsxs)("div",{children:[(0,S.jsx)("hr",{className:uU["header-divider"]}),(0,S.jsxs)("section",{className:uU["modal-content"],children:[(0,S.jsx)("div",{className:uU.section,children:(0,S.jsx)("p",{className:uU["confirmation-message"],children:n.formatMessage({id:"asktoexpert.confirmation.message",defaultMessage:"There are existing queries similar to yours. Do you still want to submit your query?"})})}),b.length>0&&(0,S.jsxs)("div",{className:uU["existing-queries-list"],children:[(0,S.jsx)("h4",{className:uU["existing-queries-title"],children:n.formatMessage({id:"asktoexpert.existing.queries",defaultMessage:"Existing Queries:"})}),(0,S.jsx)("ul",{className:uU["queries-list"],children:b.slice(0,3).map((e,t)=>(0,S.jsxs)("li",{className:uU["query-item"],children:[(0,S.jsx)("p",{children:e.query||`Query ${t+1}`}),e.readMore&&(0,S.jsx)("a",{href:e.readMore,target:"_blank",rel:"noopener noreferrer",className:uU["read-more-link"],children:n.formatMessage({id:"asktoexpert.read.more",defaultMessage:"Read More"})})]},e.qid||t))})]}),(0,S.jsx)("hr",{className:uU["post-divider"]}),(0,S.jsxs)("div",{className:uU.actions,children:[(0,S.jsx)("button",{className:uU["cancel-btn"],type:"button",onClick:N,disabled:d,children:n.formatMessage({id:"button.label.no",defaultMessage:"No"})}),(0,S.jsx)("button",{className:uU["send-btn"],type:"button",onClick:()=>{v(!1),C()},disabled:d,children:n.formatMessage({id:"button.label.yes",defaultMessage:"Yes"})})]})]})]})})})]})}
121,uF=({userMessage:e,assistantMessage:t,isLoading:n,messageActions:r,interactionId:i,conversationId:o,isStreaming:a=!1,review:l,responseErrorData:s,shareTranscript:c,onAskToExpertClick:u})=>{var d,h,p,f,m,g,y,v,b,x,_;let[w,E]=(0,k.useState)(null),A=()=>{E(null)},T=Array.isArray(null==(d=null==t?void 0:t.content)?void 0:d.sources)&&(null==(h=null==t?void 0:t.content)?void 0:h.sources).length>0,C="object"==typeof(null==t?void 0:t.content)&&!T&&(null==t?void 0:t.content)!==null,N=C?null==t?void 0:t.intent:void 0;C&&(null==t||t.healthzinemessage),C&&(null==t?void 0:t.content).text;let[j,I]=(0,k.useState)(null),L=(null==(p=null==t?void 0:t.content)?void 0:p.text)||"",[O,P]=(0,k.useState)(null),[R,M]=(0,k.useState)(!1),D=[],B=[],U=[],H=[],F=[],z=[],G=[],W=Array.isArray(null==(f=null==t?void 0:t.content)?void 0:f.sources)?t.content.sources:[],q=Array.isArray(null==(m=null==t?void 0:t.content)?void 0:m.documents)?(null==t?void 0:t.content).documents:[],V=Array.isArray(N)?N.includes("document_request"):"document_request"===N,Z=q.some(({documentType:e})=>"report"===e||"prescription"===e||"invoice"===e),Y=Array.isArray(N)?N.includes("clarification"):"clarification"===N;D=W.filter(e=>{var t;return(null==(t=e.content_type)?void 0:t.toLowerCase())==="video"&&e.media_url||e.url}),B=W.filter(e=>{var t;return(null==(t=e.content_type)?void 0:t.toLowerCase())==="article"&&e.url}),U=W.filter(e=>{var t;return(null==(t=e.content_type)?void 0:t.toLowerCase())==="podcast"&&e.url}),H=W.filter(e=>{var t;return(null==(t=e.content_type)?void 0:t.toLowerCase())==="webstory"&&e.url}),F=W.filter(e=>{var t;return(null==(t=e.content_type)?void 0:t.toLowerCase())==="infographic"&&e.url}),z=W.filter(e=>{var t;return(null==(t=e.content_type)?void 0:t.toLowerCase())==="discussion"&&e.url}),G=W.filter(e=>{var t;return(null==(t=e.content_type)?void 0:t.toLowerCase())==="testimonial"&&e.url});let{apiUrlAiChat:X="",appConfig:K}=(0,k.useContext)(sQ),[$,J]=(0,k.useState)(""),[Q,ee]=(0,k.useState)("default"),[et,en]=(0,k.useState)(l),[er,ei]=(0,k.useState)(),[eo,ea]=(0,k.useState)(!1),[el,es]=(0,k.useState)(!1),[ec,eu]=(0,k.useState)(""),[ed,eh]=(0,k.useState)(!1),[ep,ef]=(0,k.useState)((null==l?void 0:l.rating)||0),[em,eg]=(0,k.useState)(uS.INITIAL),[ey,ev]=(0,k.useState)(!1),eb=tM(),[ex,e_]=(0,k.useState)(!1),ew=(0,k.useRef)(null),[eS,ek]=(0,k.useState)(!1),eE=(0,k.useRef)(null),[eA,eT]=(0,k.useState)(!1),[eC,eN]=(0,k.useState)(null),ej=e=>{let t="offline"===e.type;t?(ee("error"),J(eb.formatMessage({id:"message.internet_connection_lost"}))):(ee("success"),J(eb.formatMessage({id:"message.internet_connection_restored"}))),ei(t)};(0,k.useEffect)(()=>{if("u">typeof window&&"u">typeof navigator)return ei(!navigator.onLine),window.addEventListener("offline",ej),window.addEventListener("online",ej),()=>{window.removeEventListener("offline",ej),window.removeEventListener("online",ej)}},[]);let eI=async e=>{eg(uS.PROGRESS);let t=new cg({apiUrl:X});if(o&&i){ee("default");try{await t.sendInteractionFeedback(e,o,i),eg(uS.SUCCESS),ef(e.rating),eh(!1),J(eb.formatMessage({id:"feedback.submitted.successfully"})),en({rating:e.rating,comment:e.message,options:e.options})}catch{J(eb.formatMessage({id:"feedback.failed.to.submit.successfully"})),eg(uS.FAILURE)}}};uk($,J);let eL=[];null!=(g=null==t?void 0:t.references)&&g.length?eL=t.references:null!=(v=null==(y=null==t?void 0:t.content)?void 0:y.references)&&v.length&&(eL=null==(b=null==t?void 0:t.content)?void 0:b.references);let eO=()=>{if(e&&t){let n=new um,r={query:e.content.text,answer:null==t?void 0:t.content.text,references:eL},i=K.showSharingDisclaimer?K.sharingDisclaimer:"";s9()?n.doNativeChatShare(r,i,eb):(ea(!0),eu(n.getChatShareContent(r,i,eb)))}};(0,k.useEffect)(()=>{if("articles"===j){let e=ew.current;if(!e)return;let t=()=>{e_(e.scrollLeft>0)};return t(),e.addEventListener("scroll",t),()=>{e.removeEventListener("scroll",t)}}if("webstories"===j){let e=eE.current;if(!e)return;let t=()=>{ek(e.scrollLeft>0)};return t(),e.addEventListener("scroll",t),()=>{e.removeEventListener("scroll",t)}}},[j,B,H]);let eP=async e=>{try{M(!0);let t=await new cg({apiUrl:X}).downloadDocument({documentUrl:e.documentUrl}),n="encounter-report"===e.documentType||"report"===e.documentType?"Report":"encounter-prescription"===e.documentType||"prescription"===e.documentType?"Prescription":"Invoice",r=`${e.date} ${n}.pdf`,i=window.URL.createObjectURL(t),o=document.createElement("a");o.href=i,o.download=r,o.click(),window.URL.revokeObjectURL(i)}catch(e){console.error(e)}finally{M(!1)}},eR=async e=>{try{M(!0);let t=new cg({apiUrl:X}),n=e.documentType&&"invoice"!==e.documentType?e.documentType:void 0,r=await t.previewDocument(e.documentUrl,n),i=window.URL.createObjectURL(r);window.open(i,"_blank")?setTimeout(()=>window.URL.revokeObjectURL(i),6e4):window.URL.revokeObjectURL(i)}catch(e){console.error(e)}finally{M(!1)}};return(0,S.jsxs)("section",{className:`${uL.container} ${uL["relative-section"]}`,children:[$&&(0,S.jsx)(sR,{title:$,type:Q}),(0,S.jsx)("div",{className:`${uL["conversation-user-prompt"]} regular-text`,children:(0,S.jsx)("div",{className:uL["input-edit-row"],children:(0,S.jsx)("span",{className:uL["editable-text"],children:null==(x=null==e?void 0:e.content)?void 0:x.text})})}),n&&(0,S.jsx)("div",{className:uL["conversation-response"],children:er?(0,S.jsx)("div",{className:uL["connection-error"],
121children:(0,S.jsx)(tq,{id:"error.internet_connection_issue"})}):(0,S.jsx)(sO,{})}),!n&&(0,S.jsx)("div",{className:uL["conversation-response"],children:(0,S.jsxs)("div",{className:"regular-text",children:[!t&&!(null!=s&&s.key)&&(0,S.jsx)(tq,{id:"error.bot_unable_to_respond"}),!!s&&!!s.key&&(0,S.jsx)(S.Fragment,{children:uI(s)})]})}),!s&&!n&&(null==t?void 0:t.content)&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("div",{className:uL["conversation-response"],children:(0,S.jsx)("div",{children:(0,S.jsxs)("div",{className:a?uL["streaming-content"]:"",children:[(0,S.jsxs)("div",{className:uL["message-text"],children:[(0,S.jsx)("section",{className:uL["markdown-section"],children:(0,S.jsx)(sA,{children:ud.sanitize(L)})}),R&&(0,S.jsx)("div",{className:uL["doc-loader-overlay"],children:(0,S.jsx)(sO,{})}),q.length>0&&(0,S.jsx)("div",{className:uL["document-container"],children:q.map((e,t)=>{let n="encounter-report"===e.documentType||"report"===e.documentType?"Report":"encounter-prescription"===e.documentType||"prescription"===e.documentType?"Prescription":"Invoice";return e.documentType&&e.documentType,(0,S.jsxs)("div",{className:uL["document-card"],children:[(0,S.jsx)("div",{className:uL["doc-icon"],children:(0,S.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16.5",height:"20.661",viewBox:"0 0 16.5 20.661",children:(0,S.jsx)("path",{id:"pdf-svgrepo-com",d:"M13.258,13.479a2.55,2.55,0,0,1-1.018.025,4.851,4.851,0,0,1-1.286-.383,3.818,3.818,0,0,1,1.855.1A2.028,2.028,0,0,1,13.258,13.479Zm-4.242-.7-.092.025c-.2.056-.4.11-.6.158l-.259.066c-.52.132-1.052.266-1.578.426.2-.482.385-.968.567-1.444.135-.352.272-.712.414-1.068q.108.179.226.357A6.964,6.964,0,0,0,9.016,12.782ZM7.692,7.351A4.489,4.489,0,0,1,7.41,9.066a2.745,2.745,0,0,1-.05-2.031,1.166,1.166,0,0,1,.175-.281A1.317,1.317,0,0,1,7.692,7.351ZM4.976,14.878c-.13.233-.263.451-.4.657-.329.5-.866,1.025-1.142,1.025a.136.136,0,0,1-.108-.055.1.1,0,0,1-.034-.087,1.626,1.626,0,0,1,.6-.807A5.909,5.909,0,0,1,4.976,14.878ZM14.137,13.5c-.042-.606-1.063-1-1.073-1a3.867,3.867,0,0,0-1.311-.208,7.852,7.852,0,0,0-1.806.244,6.286,6.286,0,0,1-1.613-1.657c-.183-.279-.348-.557-.491-.829a6.147,6.147,0,0,0,.609-2.748c-.046-.809-.411-1.352-.907-1.352-.34,0-.633.252-.872.75a3.9,3.9,0,0,0,.332,3.377c-.232.546-.448,1.112-.657,1.659-.26.681-.528,1.384-.83,2.052A7.331,7.331,0,0,0,3.4,15.034a2.192,2.192,0,0,0-.864,1.346.86.86,0,0,0,.242.65.9.9,0,0,0,.66.292c.828,0,1.625-1.138,1.776-1.366a12.361,12.361,0,0,0,.868-1.56c.7-.254,1.452-.444,2.178-.627l.26-.066c.2-.05.4-.1.607-.162s.447-.121.678-.18a6,6,0,0,0,2.329.9,2.8,2.8,0,0,0,1.639-.166A.6.6,0,0,0,14.137,13.5Zm1.6,5.215A1.119,1.119,0,0,1,14.565,19.9H1.934A1.12,1.12,0,0,1,.759,18.72V1.94A1.119,1.119,0,0,1,1.934.759h8.532l0,0v3.33A1.864,1.864,0,0,0,12.4,6.026h3.308l.028.028ZM14.957,5.267H12.405A1.115,1.115,0,0,1,11.23,4.093V1.525ZM16.5,18.72V5.741L11.23.45V.425h-.025L10.782,0H1.934A1.868,1.868,0,0,0,0,1.941V18.72a1.868,1.868,0,0,0,1.934,1.94H14.566A1.868,1.868,0,0,0,16.5,18.72Z",fill:"#eb5757"})})}),(0,S.jsxs)("div",{className:uL["doc-text"],children:[e.date," | ",n]}),(0,S.jsxs)("div",{className:uL["doc-actions"],children:[(0,S.jsx)("span",{title:eb.formatMessage({id:"viewDocument",defaultMessage:"View PDF"}),onClick:()=>eR(e),children:(0,S.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,S.jsx)("path",{d:"M19 12.001V10.6578C19 9.84033 19 9.43158 18.8478 9.06404C18.6955 8.69649 18.4065 8.40746 17.8284 7.8294L13.0919 3.09286C12.593 2.59397 12.3436 2.34453 12.0345 2.19672C11.9702 2.16598 11.9044 2.1387 11.8372 2.11499C11.5141 2.00098 11.1614 2.00098 10.4558 2.00098C7.21082 2.00098 5.58831 2.00098 4.48933 2.88705C4.26731 3.06606 4.06508 3.26829 3.88607 3.49031C3 4.58928 3 6.2118 3 9.45682V14.001C3 17.7722 3 19.6578 4.17157 20.8294C5.34315 22.001 7.22876 22.001 11 22.001H13.0345M12 2.50098V3.00098C12 5.8294 12 7.24362 12.8787 8.1223C13.7574 9.00098 15.1716 9.00098 18 9.00098H18.5"}),(0,S.jsx)("path",{d:"M17.5 15.001L17.7579 15.698C18.0961 16.612 18.2652 17.069 18.5986 17.4024C18.932 17.7357 19.389 17.9048 20.303 18.2431L21 18.501L20.303 18.7589C19.389 19.0971 18.932 19.2662 18.5986 19.5996C18.2652 19.933 18.0961 20.39 17.7579 21.3039L17.5 22.001L17.2421 21.3039C16.9039 20.39 16.7348 19.933 16.4014 19.5996C16.068 19.2662 15.611 19.0971 14.697 18.7589L14 18.501L14.697 18.2431C15.611 17.9048 16.068 17.7357 16.4014 17.4024C16.7348 17.069 16.9039 16.612 17.2421 15.698L17.5 15.001Z"})]})}),(0,S.jsx)("span",{title:eb.formatMessage({id:"downloadDocument",defaultMessage:"Download"}),onClick:()=>eP(e),children:(0,S.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",color:"currentColor",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round",children:[(0,S.jsx)("path",{d:"M2.99969 17.0002C2.99969 17.9302 2.99969 18.3952 3.10192 18.7767C3.37932 19.8119 4.18796 20.6206 5.22324 20.898C5.60474 21.0002 6.06972 21.0002 6.99969 21.0002L16.9997 21.0002C17.9297 21.0002 18.3947 21.0002 18.7762 20.898C19.8114 20.6206 20.6201 19.8119 20.8975 18.7767C20.9997 18.3952 20.9997 17.9302 20.9997 17.0002"}),(0,S.jsx)("path",{d:"M16.4998 11.5002C16.4998 11.5002 13.1856 16.0002 11.9997 16.0002C10.8139 16.0002 7.49976 11.5002 7.49976 11.5002M11.9997 15.0002V3.00016"})]})})]})]},t)})}),eC&&(0,S.jsxs)("div",{className:uL["document-summary-container"],children:[(0,S.jsxs)("div",{className:uL["summary-title"],children:["Summary | ",eC.date," ",eC.name]}
121),(0,S.jsx)("div",{className:uL["summary-content"],children:(0,S.jsx)(sA,{children:ud.sanitize(eC.summary)})})]}),T&&(D.length>0||B.length>0||U.length>0||H.length>0||F.length>0||G.length>0)&&(0,S.jsx)(uB,{videos:D,articles:B,podcasts:U,webstories:H,infographics:F,discussion:z,testimonial:G,onViewSummary:(e,t)=>{if(!e.summary||""===e.summary.trim()){P(null);return}P({text:e.summary,articleId:e.article_id})},onArticleClick:e=>{if(!o||!i)return;let t=new cg({apiUrl:X}),{content_id:n="",title:r="",label:a="",url:l="",source_type:s="",content_type:c="",content_language:u="en"}=e,d={conversationId:o,interactionId:i,contentDetails:{label:a||r,source_type:s,content_type:c,content_language:u},contentLinkDetails:{content_id:n||0,user_timestamp:new Date().toISOString(),content_name:r||a,link:l}};t.trackArticleLinkClik(d)}}),O&&(0,S.jsxs)("div",{className:uL.container,children:[(0,S.jsx)("div",{className:uL["conversation-user-prompt"],children:(0,S.jsx)(tq,{id:"chatbot.summary.label",defaultMessage:"Summary"})}),(0,S.jsx)("div",{className:uL["message-texts"],children:O.text.split(` 122`).map((e,t)=>(0,S.jsx)("div",{style:{marginBottom:8},children:e},t))})]}),(Array.isArray(null==t?void 0:t.intent)&&t.intent.includes("ask-an-expert")||"string"==typeof(null==t?void 0:t.intent)&&"ask-an-expert"===t.intent)&&(0,S.jsx)("button",{className:eA?uL["active-tab"]:uL["inactive-tab"],type:"button",onClick:()=>eT(!0),style:{margin:"16px 0 0 0"},children:"Ask an Expert"}),a&&(0,S.jsx)(S.Fragment,{children:er?(0,S.jsx)("div",{className:uL["connection-error"],children:(0,S.jsx)(tq,{id:"error.internet_connection_issue"})}):(0,S.jsx)("i",{className:uL["end-cursor"]})})]}),!!(null!=eL&&eL.length)&&!a&&(0,S.jsx)("div",{className:uL["reference-list"],children:(0,S.jsx)("h6",{children:(0,S.jsx)(tq,{id:"chatbot.articles_for_reading"})})}),!!(null!=(_=null==t?void 0:t.healthzinemessage)&&_.length)&&!a&&(0,S.jsxs)("div",{className:uL["healthzin-message"],children:[(0,S.jsx)("hr",{}),(0,S.jsx)("div",{dangerouslySetInnerHTML:{__html:t.healthzinemessage}})]})]})})}),(0,S.jsx)("section",{className:uL["feedback-block"],children:!a&&!uC(null==t?void 0:t.intent)&&!uN(null==t?void 0:t.intent)&&!uj(null==t?void 0:t.intent)&&t.content.text&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)("div",{className:uL["message-actions"],children:[(0,S.jsx)("div",{className:uL["emotional-rating"],children:(0,S.jsx)(rf,{selected:ep,onSelect:e=>{ef(e),eh(!0)}})}),!!(null!=et&&et.rating)&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("span",{className:uL["v-sep"]}),(0,S.jsx)(ru,{onClick:()=>es(!0),ariaLabel:eb.formatMessage({id:"aria.label.view_feedback"}),children:(0,S.jsx)(ri,{})})]})]}),!(V||Z||Y)&&(0,S.jsxs)(S.Fragment,{children:[ey&&(0,S.jsx)(uR,{onItemClick:e=>{"share_answer"===e?eO():"share_transcript"===e&&c(),ev(!ey)}}),(0,S.jsx)(ru,{ariaLabel:eb.formatMessage({id:"aria.label.share_chat"}),onClick:()=>ev(!ey),children:(0,S.jsx)(rt,{})})]})]})})]}),eA&&(0,S.jsx)(uH,{isOpen:eA,onClose:()=>eT(!1)}),w&&(0,S.jsx)("div",{className:uL["image-popup-overlay"],onClick:A,children:(0,S.jsxs)("div",{className:uL["image-popup-modal"],onClick:A,children:[(0,S.jsx)("img",{src:w.url,alt:w.label,className:uL["image-popup-img"]}),(0,S.jsx)("div",{className:uL["image-popup-label"],children:w.label})]})}),(0,S.jsx)("div",{className:uL["feedback-form-wrapper"],children:(0,S.jsx)(sN,{open:ed,onCloseButtonClick:()=>{eh(!1),ef((null==et?void 0:et.rating)||0)},align:"center",children:(0,S.jsx)(uw,{ratingValue:ep,submiting:em===uS.PROGRESS,onSubmit:eI})})}),(0,S.jsx)(uv,{data:{title:eb.formatMessage({id:"share.chat.to.email.subject"}),content:ec},isOpen:eo,onClose:()=>ea(!1)}),et&&(0,S.jsx)(up,{isOpen:el,data:et,onClose:()=>es(!1)})]})},uz={container:"_container_p064a_9","conversation-content":"_conversation-content_p064a_12","conversation-sep-block":"_conversation-sep-block_p064a_18","welcome-message-block":"_welcome-message-block_p064a_19","progress-loader":"_progress-loader_p064a_26","conversation-item":"_conversation-item_p064a_32","date-block":"_date-block_p064a_38","bottom-controls-wrapper":"_bottom-control
122s-wrapper_p064a_45","bottom-controls":"_bottom-controls_p064a_45",fadeInAnimation:"_fadeInAnimation_p064a_1"},uG=({conversations:e=[],responseStatus:t,showWelcomeMessage:n=!1,conversationId:r,convMessageLoadingStatus:i,responseErrorData:o,shareTranscriptWhole:a,onAskToExpertClick:l})=>{let{appConfig:s}=(0,k.useContext)(sQ),[c,u]=(0,k.useState)(!1),[d,h]=(0,k.useState)(!1),p=(0,k.useRef)(null),f=(0,k.useRef)(null),m=(0,k.useRef)(null),g=tM();(0,k.useEffect)(()=>{null!=f&&f.current&&null!=p&&p.current&&(f.current.scrollIntoView({block:"start",behavior:"auto"}),h(p.current.scrollHeight>=p.current.clientHeight))},[e]),(0,k.useEffect)(()=>{i===uS.SUCCESS&&null!=p&&p.current&&null!=f&&f.current&&f.current.scrollIntoView({behavior:"smooth"})},[i]);let y=sV.filter(e=>e.active).map(e=>{let t=e.key.replace(/_/g,".").toLowerCase();return{...e,label:g.formatMessage({id:t})}}),v=()=>{a()};return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("div",{ref:p,onScroll:()=>{t!==uS.PROGRESS&&t!==uS.STREAMING&&u(ce(null==p?void 0:p.current))},className:uz.container,children:(0,S.jsxs)("div",{className:uz["conversation-content"],ref:m,children:[n&&(0,S.jsx)("div",{className:uz["welcome-message-block"],children:(0,S.jsx)(sI,{content:s.firstGreetingMessage||g.formatMessage({id:"chatbot.welcome.message"})})}),i===uS.PROGRESS&&(0,S.jsx)("div",{className:uz["progress-loader"],children:(0,S.jsx)(sO,{})}),e.map((n,i)=>{let{messages:a=[],interactionId:s,review:c}=n,u=a.find(({role:e})=>"user"===e),d=a.find(({role:e})=>"assistant"===e),h=e.length-1==i,p=h&&t===uS.STREAMING;return(0,S.jsxs)("div",{className:uz["conversation-item"],ref:h?f:null,children:[(0,S.jsx)(uF,{userMessage:u,assistantMessage:d,messageActions:y,review:c,isLoading:h&&t===uS.PROGRESS,isStreaming:p,conversationId:r||(null==d?void 0:d.conversationId),interactionId:s||(null==d?void 0:d.interactionId),responseErrorData:o,shareTranscript:v,onAskToExpertClick:l}),(h&&(null==u?void 0:u.timestamp)&&t!==uS.PROGRESS||!h&&(null==u?void 0:u.timestamp))&&(0,S.jsx)("div",{className:uz["date-block"],children:r_.formatToDateTime(null==u?void 0:u.timestamp)})]},`conversation-${i}`)})]})}),(0,S.jsx)("section",{className:uz["bottom-controls-wrapper"],children:(0,S.jsx)("div",{className:uz["bottom-controls"],children:!c&&d&&(0,S.jsx)(ru,{onClick:()=>{null!=f&&f.current&&f.current.scrollIntoView({block:"end",behavior:"smooth"})},ariaLabel:g.formatMessage({id:"button.aria.label.scroll_down"}),children:(0,S.jsx)(n3,{})})})})]})},uW=({})=>{let{apiUrlAiChat:e=""}=(0,k.useContext)(sQ),[t,n]=(0,k.useState)(cu.isLoggedInUser()),r=ni(),i=tM(),[o,a]=(0,k.useState)([]),[l,s]=(0,k.useState)(uS.INITIAL),c=new cg({apiUrl:e}),u=async()=>{if(!t)return!1;s(uS.PROGRESS);try{let e=(await c.getUserConversations()).map(e=>({id:e.conversationId||e.id,title:e.title,startDate:e.startDate?new Date(e.startDate).getTime():Date.now(),status:e.status,userName:e.userName,selected:!1}));console.log("Transformed conversations:",e),a(e),s(uS.SUCCESS)}catch(e){console.error("Error fetching conversations:",e),s(uS.FAILURE)}},d=()=>{u()};return(0,k.useEffect)(()=>{if("u">typeof document)return document.addEventListener("visibilitychange",d),()=>{document.removeEventListener("visibilitychange",d)}},[]),(0,k.useEffect)(()=>{let e=()=>{n(cu.isLoggedInUser())};return e(),window.addEventListener("focus",e),document.addEventListener("visibilitychange",e),()=>{window.removeEventListener("focus",e),document.removeEventListener("visibilitychange",e)}},[]),(0,k.useEffect)(()=>{u()},[t]),(0,S.jsxs)("div",{className:"_container_1amwo_9",children:[t&&(0,S.jsxs)(S.Fragment,{children:[l===uS.SUCCESS&&(null==o?void 0:o.length)===0&&(0,S.jsx)(sF,{title:i.formatMessage({id:"chat.history.no.data"}),Icon:(0,S.jsx)(n5,{width:30,height:30,color:"#838eab"})}),(0,S.jsx)(sD,{loading:l===uS.PROGRESS,onTitleClick:e=>{console.log("Conversation clicked with ID:",e),r(`/?convId=${e}`)},items:o})]}),!t&&(0,S.jsx)(sF,{title:i.formatMessage({id:"chat.history.signin_to_see_conversations"}),Icon:(0,S.jsx)(n5,{width:30,height:30,color:"#838eab"}),buttonLabel:i.formatMessage({id:"button.label.signin"}),onButtonClick:()=>{"u">typeof window&&window.open("/login","_blank")}}),l===uS.FAILURE&&(0,S.jsx)(sz,{title:i.formatMessage({id:"error.something_went_wrong"}),buttonLabel:i.formatMessage({id:"button.label.try_again"}),onHandlerButtonClick:()=>u()})]})}
122,uq={container:"_container_1sfb3_9","modal-content":"_modal-content_1sfb3_18","button-block":"_button-block_1sfb3_29",fadeInAnimation:"_fadeInAnimation_1sfb3_1"},uV=(0,k.memo)(({isOpen:e=!1,onClose:t,onConfirmNewChat:n})=>{let r=tM();return(0,S.jsx)("div",{className:"_container_1sfb3_9",children:(0,S.jsx)(sN,{open:e,align:"center",onCloseButtonClick:t,title:r.formatMessage({id:"chat.menu.new_chat_cofirm_title"}),children:(0,S.jsxs)("section",{className:uq["modal-content"],children:[(0,S.jsx)("p",{children:(0,S.jsx)(tq,{id:"chat.menu.new_chat_cofirm_description1"})}),(0,S.jsxs)("div",{className:uq["button-block"],children:[(0,S.jsx)(rc,{type:"button",onClick:n,children:(0,S.jsx)(tq,{id:"button.label.ok"})}),(0,S.jsx)(rc,{type:"button",onClick:t,variant:"outlined",children:(0,S.jsx)(tq,{id:"button.label.cancel"})})]}),(0,S.jsx)("p",{children:(0,S.jsx)(tq,{id:"chat.menu.new_chat_cofirm_description2"})}),(0,S.jsx)(rc,{variant:"outlined",type:"button",onClick:()=>{var e;if(typeof window>"u")return;let t=window.location.href,n=JSON.stringify({type:"LOGIN_REDIRECT",redirectUrl:t});if(null!=(e=window.FlutterChannel)&&e.postMessage){window.FlutterChannel.postMessage(n);return}window.location.href=`/login?redirectUrl=${t}`},children:(0,S.jsx)(tq,{id:"button.label.signin"})})]})})})}),uZ={container:"_container_a35rx_9","modal-content":"_modal-content_a35rx_20","disclaimer-overlay":"_disclaimer-overlay_a35rx_34",fadeInAnimation:"_fadeInAnimation_a35rx_1"},uY=(0,k.memo)(({isOpen:e=!1,content:t,onAccept:n})=>{let r=tM();return(0,S.jsxs)("div",{className:uZ.container,children:[(0,S.jsx)(sN,{open:e,align:"center",title:r.formatMessage({id:"disclaimer.prompt.title"}),children:(0,S.jsxs)("section",{className:uZ["modal-content"],children:[(0,S.jsx)("p",{children:t}),(0,S.jsx)(rc,{type:"button",onClick:n,children:(0,S.jsx)(tq,{id:"button.general.label.accept"})})]})}),e&&(0,S.jsx)("div",{className:uZ["disclaimer-overlay"]})]})}),uX=(e,t,n)=>{let r=[...e];r[r.length-1].messages.push(t),n(r)},uK=e=>{let t=[...e],n=t.length-1,r=t[n];return r&&(t[n]={...r,messages:r.messages.filter(e=>e.role!==cf.assistant)}),t},u$=(e,t,n,r)=>{var i,o;if(!e)return;let a=[...t],l=null==(i=a[a.length-1])?void 0:i.messages;if(!l)return;let s=l.slice(-1).find(e=>e.role===cf.assistant);if(e.type===cm.message&&(s?(s.content.text+=e.content,e.sources&&Array.isArray(e.sources)&&s&&(s.content.sources=e.sources)):a[a.length-1].messages.push({role:cf.assistant,conversationId:n,content:{text:e.content,sources:[]},references:[]})),e.type===cm.interactionId&&(s?s.interactionId=e.content:a[a.length-1].messages.push({role:cf.assistant,conversationId:n,interactionId:e.content,content:{text:"",sources:[]},references:[]})),e.type===cm.error){let t="string"==typeof e.content?e.content:(null==(o=e.content)?void 0:o.message)||"";s?s.content.text=t:a[a.length-1].messages.push({role:cf.assistant,conversationId:n,content:{text:t,sources:[]},references:[]})}e.type===cm.intent&&s&&(s.intent=e.content),e.type===cm.references&&s&&"string"!=typeof e.content&&(s.references=e.content),e.type===cm.healthzinemessage&&s&&"string"==typeof e.content&&(s.healthzinemessage=e.content),e.type===cm.sources&&s&&Array.isArray(e.content)&&(s.content.sources=e.content),e.type===cm.documents&&s&&Array.isArray(e.content)&&(s.content.documents=e.content),r(a)},uJ=async(e,t,n,r,i,o,a,l,s,c,u,d=!0)=>{let h=!1;r(uS.PROGRESS),s(null);try{let p=await c.askQuestion(e,sJ.chatResponseType,t,u,async e=>{var u,p;if(!e.trim())return;let f=JSON.parse(e);if(!h){if(f.type===cm.error&&401===Number(f.code)||f.error&&401===Number(f.status)){h=!0,null==(u=c.sseController)||u.abort(),c.markCurrentTokenUnauthorized();let e=f.type===cm.error?f:{...f,type:cm.error};u$(e,n,t,i);let o=!!s7.getLoginPromptDeniedStatus();if(o&&d){let e=await c.refreshAnonymousToken();if(e){c.useAnonymousTokenForNextRequest(e),i(uK(n)),l(!0);return}}o?r(uS.FAILURE):(r(uS.AWAITING_AUTH),window.dispatchEvent(new CustomEvent("chatbot:unauthorized")));return}if(f.type===cm.error){h=!0,u$(f,n,t,i),null==(p=c.sseController)||p.abort(),r(uS.FAILURE);return}if(f.error){429===Number(f.status)&&s(f.content||null),r(uS.FAILURE);return}switch(f&&u$(f,n,t,i),f.type){case cm.message:r(uS.STREAMING);break;case cm.end:r(uS.SUCCESS),c.sseController.abort();break;case cm.interactionId:c.interactionId=f.content,o(f.content);break;case cm.search_query:a(f.content)}}});p&&sJ.chatResponseType===sZ.single&&(uX(n,p,i),r(uS.SUCCESS))}catch{r(uS.FAILURE)}},uQ=(e,t,n,r,i,o,a,l,s,c,u)=>{let[d,h]=(0,k.useState)(!1);return(0,k.useEffect)(()=>{e&&n&&uJ(t,n,r,i,o,a,l,h,s,c,u)},[e]),(0,k.useEffect)(()=>{d&&e&&n&&(h(!1),uJ(t,n,r,i,o,a,l,h,s,c,u,!1))},[d]),{triggerRetry:()=>h(!0)}},u0=(e,t,n,r)=>{let i=new BroadcastChannel("hh-bot-main-state");(0,k.useEffect)(()=>{s7.storeOpenState(e)},[e]),(0,k.useEffect)(()=>{s7.storeSize(t)},[t]),(0,k.useEffect)(()=>{i.addEventListener("message",({data:e})=>{let{type:t,value:i}=e;switch(t){case"open":sY[i]&&n(i);break;case"size":sq[i]&&r(i)}})},[])},u1=(e,t)=>{(0,k.useEffect)(()=>{e&&s7.storeActiveConvId(e)},[e]),(0,k.useEffect)(()=>{let e=s7.getStoredStoreActiveConvId();e&&t(e)},[])},u2={container:"_container_zkt8q_1","content-section":"_content-section_zkt8q_11","without-bottom-block":"_without-bottom-block_zkt8q_20","with-bottom-block":"_with-bottom-block_zkt8q_23","size-lg":"_size-lg_zkt8q_26","size-sm":"_size-sm_zkt8q_29","bottom-section":"_bottom-section_zkt8q_32","chat-input-block":"_chat-input-block_zkt8q_41","chat-option-menu":"_chat-option-menu_zkt8q_44","disclaimer-section":"_disclaimer-section_zkt8q_47","bot-search-query":"_bot-search-query_zkt8q_54","disclaimer-text":"_disclaimer-text_zkt8q_68","size-xs":"_size-xs_zkt8q_78","size-fw":"_size-fw_zkt8q_93","position-br":"_position-br_zkt8q_96","position-bl":"_position-bl_zkt8q_100","position-tr":"_position-tr_zkt8q_104","position-tl":"_position-tl_zkt8q_108","response-disclaimer-modal-content":"_response-disclaimer-modal-content_zkt8q_112"},u3=({size:e,position:t,userId:n,onCloseChatBot:r,onBotSizeChange:i,botOpenState:o,onContinueWithoutLogin:a})=>{let{apiUrlAiChat:l="",appConfig:s}=(0,k.useContext)(sQ),c=uE(),u=nn(),d=tM(),h=ni(),[p,f]=(0,k.useState)(!1),[m,g]=(0,k.useState)(s7.getDisclaimerAcceptedStatus()),[y,v]=(0,k.useState)(!1),[b,x]=(0,k.useState)(e),[_,w]=(0,k.useState)(),[E,A]=(0,k.useState)(!1),[T,C]=(0,k.useState)(!1),[N,j]=(0,k.useState)(""),[I,L]=(0,k.useState)(c.get("convId")),[O,P]=(0,k.useState)(),[R,M]=(0,k.useState)(),[D,B]=(0,k.useState)(!1),U=(0,k.useRef)(!1),[H,F]=(0,k.useState)(""),[z,G]=(0,k.useState)(""),[W,q]=(0,k.useState)([]),[V,Z]=(0,k.useState)([]),[Y,X]=(0,k.useState)(null),[K,$]=(0,k.useState)(0),[J,Q]=(0,k.useState)(!1),[ee,et]=(0,k.useState)(!1);(0,k.useEffect)(()=>{x(e)},[e]),(0,k.useEffect)(()=>{let e=()=>{s7.getLoginPromptDeniedStatus()||v(!0)};return window.addEventListener("chatbot:unauthorized",e),()=>window.removeEventListener("chatbot:unauthorized",e)},[]),(0,k.useEffect)(()=>{let e=()=>{cu.isLoggedInUser()||s7.clearActiveConvId()};if(e(),"u">typeof document)return document.addEventListener("visibilitychange",e),window.addEventListener("focus",e),()=>{document.removeEventListener("visibilitychange",e),window.removeEventListener("focus",e)}},[]);let en=(0,k.useMemo)(()=>new cg({apiUrl:l}),[l]),[er,ei]=(0,k.useState)(uS.INITIAL),[eo,ea]=(0,k.useState)(uS.INITIAL),el=(0,k.useCallback)(async e=>{if(!e){Z([]),ea(uS.INITIAL);return}try{ea(uS.PROGRESS);let t=await en.getConversationMessages(e);if(U.current){ea(uS.INITIAL);return}if(t&&t.conversationId&&M(t.conversationId),t.interactions&&Array.isArray(t.interactions)){let e=t.interactions.map(e=>{let t=e.review,n=t?{...t,options:t.options??t.selectedOptions??t.feedbackOptions}:void 0;return{...e,review:n,messages:e.messages.map(t=>{var n,r,i,o,a;return{...t,intent:t.intent??(null==(n=t.content)?void 0:n.intent)??e.intent,content:{text:(null==(r=t.content)?void 0:r.text)||"",sources:(null==(i=t.content)?void 0:i.sources)||t.sources||[],references:(null==(o=t.content)?void 0:o.references)||t.references||[],documents:(null==(a=t.content)?void 0:a.documents)||[]}}})}});Z(e),ea(uS.SUCCESS)}else t.error?(console.error("Error fetching conversation messages:",t.error),ea(uS.FAILURE)):(Z([]),ea(uS.SUCCESS))}catch(e){console.error("Exception fetching conversation messages:",e),ea(uS.FAILURE)}},[en]),es=()=>C(!T),ec=(0,k.useMemo)(()=>c.get("convId"),[c]);(0,k.useEffect)(()=>{U.current=!1,B(!1),ec&&ec.trim()?(console.log("Conversation ID from query params:",ec),s7.storeActiveConvId(ec),L(ec),P(ec),el(ec)):(console.log("No conversation ID in query params"),L(null),Z([]))},[ec,el]),(0,k.useEffect)(()=>{!O||D||ec||"yes"===c.get("newChat")||(console.log("Fetching messages for conversation ID:",O),el(O))},[O,D,ec,el]);let eu=async()=>{_&&O&&await en.terminateStreaming(O,_),ei(uS.SUCCESS)},ed=()=>{cu.isLoggedInUser()?eh():f(!0)},eh=()=>{h("/?newChat=yes");let e=cl();P(e),s7.storeActiveConvId(e),Z([]),$(0)},ep=async()=>{s7.storeLoginPromptDeniedStatus(),v(!1);let e=er===uS.AWAITING_AUTH,t=await (null==a?void 0:a())||ch.getUserId();e&&t?(en.useAnonymousAccess(t),Z(e=>{let t=[...e],n=t[t.length-1];return n&&(t[t.length-1]={...n,messages:n.messages.filter(e=>e.role!==cf.assistant)}),t}),em()):t?en.useAnonymousAccess(t):e&&ei(uS.FAILURE)},ef=()=>{let e=new um,t=s.showSharingDisclaimer?s.sharingDisclaimer:"";s9()?e.doNativeConversationShare(V,t,d):(A(!0),j(e.getConversationShareContent(V,t,d)))},{triggerRetry:em}=uQ(K,H,O,V,ei,Z,w,q,X,en,z);u1(O,P);let eg="/conversationHistory"===u.pathname?"without-bottom-block":"with-bottom-block";return(0,S.jsxs)("section",{className:`${u2.container} ${u2[`size-${b}`]} ${u2[`position-${t}`]} ${u2[eg]}`,children:[(0,S.jsx)("div",{id:"modalOverlayHoder"}),(0,S.jsx)(cb,{chatWindowSize:b,onResize:e=>{let t=sq.xs===b?sq.sm:e;x(t),i(t)},onClose:r,onShare:ef,responseLoading:er===uS.PROGRESS||er===uS.STREAMING,conversationCount:V.length}),(0,S.jsx)("section",{className:u2["content-section"],children:(0,S.jsxs)(ng,{children:[(0,S.jsx)(nf,{path:"/",element:(0,S.jsx)(uG,{conversationId:R||O,conversations:V,responseStatus:er,showWelcomeMessage:!I,convMessageLoadingStatus:eo,responseErrorData:Y,shareTranscriptWhole:ef,onAskToExpertClick:()=>Q(!0)})}),(0,S.jsx)(nf,{path:"/conversationHistory",element:(0,S.jsx)(uW,{})})]})}),"/conversationHistory"!==u.pathname&&(0,S.jsxs)("section",{className:u2["bottom-section"],children:[(0,S.jsx)("div",{className:u2["chat-option-menu"],children:(0,S.jsx)(ck,{onItemClick:e=>{switch(e){case"chat_history":h("/conversationHistory");break;case"new_chat":ed()}},disabled:ee})}),(0,S.jsx)("div",{className:u2["chat-input-block"],children:(0,S.jsx)(c_,{onSubmit:(e,t)=>
122{e.trim()&&(O||P(cl()),F(e.trim()),t&&t.trim()?G(t):G(""),U.current=!0,B(!0),Z(t=>{let n=[...t,{messages:[{role:cf.user,content:{text:e},timestamp:Date.now()}]}];return $(n.length),n}))},onStop:eu,showStopButton:er===uS.STREAMING||er===uS.PROGRESS&&eo!==uS.PROGRESS,disabled:er===uS.STREAMING,botOpenState:o,showLoginPrompt:y,onRecordingChange:et})}),(0,S.jsx)("div",{className:u2["disclaimer-section"],children:s.showDisclaimerIconMessage&&(0,S.jsxs)("div",{className:u2["disclaimer-text"],children:[(0,S.jsx)("div",{dangerouslySetInnerHTML:{__html:s.disclaimerMessage||d.formatMessage({id:"chatbot.response.disclaimer_message"})}}),(0,S.jsx)(ru,{onClick:es,children:(0,S.jsx)(ra,{})})]})})]}),(0,S.jsx)(cA,{isOpen:y,onClose:()=>v(!1),onContinueWithoutLogin:ep}),(0,S.jsx)("div",{className:u2["main-overlay"]}),(0,S.jsx)(uv,{data:{title:d.formatMessage({id:"share.chat.to.email.subject"}),content:N},isOpen:E,onClose:()=>A(!1)}),(0,S.jsx)(sN,{open:T,onCloseButtonClick:es,children:(0,S.jsx)("section",{className:u2["response-disclaimer-modal-content"],children:(0,S.jsx)("strong",{children:s.disclaimerIconMessage?s.disclaimerIconMessage:(0,S.jsx)(tq,{id:"response.disclaimer.modal_content"})})})}),(0,S.jsx)(uV,{isOpen:p,onClose:()=>f(!1),onConfirmNewChat:()=>{f(!1),eh()}}),s.showDisclaimerAcceptance&&(0,S.jsx)(uY,{isOpen:!m,content:s.disclaimerAcceptance,onAccept:()=>{g(!0),s7.storeDisclaimerAcceptedStatus()}}),(0,S.jsx)("section",{children:(0,S.jsx)(uH,{isOpen:J,onClose:()=>Q(!1)})})]})},u6=(e,t)=>{let n=e[t];return n?"function"==typeof n?n():Promise.resolve(n):new Promise((e,n)=>{("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(n.bind(null,Error("Unknown variable dynamic import: "+t)))})},u4=e=>u6(Object.assign({
122"../lang/en.json":()=>n.e(4787)
122.then(n.bind(n,24787))}),`../lang/${e}.json`);class u8{constructor({apiUrl:e}){this.apiUrl=e;let t=ch.getUserId(),n=cu.isLoggedInUser()?cu.getAccessTokenString(cu.getHHAccessToken()):void 0;this.accessToken=n||t}async retryWith401Fallback(e){var t;try{return await e(this.accessToken)}catch(n){if(401===((null==(t=null==n?void 0:n.response)?void 0:t.status)||(null==n?void 0:n.status))){let t=ch.getUserId();if(t&&t!==this.accessToken)try{let n=await e(t);return this.accessToken=t,n}catch{}}throw n}}async getAppConfig(){return this.retryWith401Fallback(async e=>{let{api:t}=new iY(this.apiUrl,e),{data:n}=await t.get("/configuration/chat_config");return n})}}let u5=e=>{let{chatInputSize:t,defaultLocale:n,chatResponseType:r,chatWindowPosition:i,feedbackCategories:o,firstGreetingMessage:a,disclaimerMessage:l="",responseDisclaimer:s="",showResponseDisclaimer:c,sharingDisclaimer:u="",showSharingDisclaimer:d,showDisclaimerIconMessage:h,disclaimerAcceptance:p,showDisclaimerAcceptance:f,disclaimerIconMessage:m,showToolTipMessage:g,toolTipMessage:y}=e;return{chatInputSize:t||sJ.chatInputSize,defaultLocale:n||sJ.defaultLocale,chatResponseType:r||sJ.chatResponseType,chatWindowPosition:i||sJ.chatWindowPosition,feedbackCategories:o,firstGreetingMessage:a,disclaimerMessage:l,responseDisclaimer:s,showResponseDisclaimer:c,sharingDisclaimer:u,showSharingDisclaimer:d,showDisclaimerAcceptance:f,disclaimerAcceptance:p,showDisclaimerIconMessage:h,disclaimerIconMessage:m,showToolTipMessage:g,toolTipMessage:y}},{API_URL_AI_CHAT:u7=""}=T.env;function u9({apiUrlAiChat:e}){let{chatWindowPosition:t,defaultLocale:n,chatWindowSize:r}=sJ,[i,o]=(0,k.useState)(sJ),[a,l]=(0,k.useState)(),[s,c]=(0,k.useState)(uS.INITIAL),[u,d]=(0,k.useState)({}),h=s7.getStoredSize(),p="u">typeof window&&window.innerWidth<sX.sm?sY.hidden:s7.getOpenState(),[f,m]=(0,k.useState)(p||sY.hidden),[g,y]=(0,k.useState)(h||r),[v,b]=(0,k.useState)(ch.getUserId()),x=async()=>{try{let t=new cp({apiUrl:e||u7||""}),{encrypted_data:n}=await t.getAnonymousUserId();if(n)return ch.store(n),b(ch.getUserId()),n}catch{return}},_=async()=>{let t=new u8({apiUrl:e||u7||""});try{c(uS.PROGRESS),c(uS.PROGRESS);let e=await t.getAppConfig();o(u5(e)),c(uS.SUCCESS)}catch{c(uS.FAILURE)}};(0,k.useEffect)(()=>{_()},[v]),(0,k.useEffect)(()=>{cu.isLoggedInUser()&&ch.getUserId()||x()},[]),(0,k.useEffect)(()=>{u4(n).then(e=>d(e.default))},[n]);let w=e=>{m(e),(e===sY.closed||e===sY.hidden)&&s7.clearAllState()},E=()=>{v&&_()};return(0,k.useEffect)(()=>{if("u">typeof document)return document.addEventListener("visibilitychange",E),()=>{document.removeEventListener("visibilitychange",E)}},[]),u0(f,g,m,y),(0,k.useEffect)(()=>
122{l({apiUrlAiChat:e||u7,appConfig:i})},[i]),(0,k.useEffect)(()=>{s7.clearBotCoordinates()},[]),(0,S.jsx)("div",{className:"genai-ui-context-wrapper genai-primary-theme",children:(s===uS.SUCCESS||s===uS.FAILURE||i)&&a&&(0,S.jsx)(sQ.Provider,{value:a,children:u&&!!Object.keys(u).length&&(0,S.jsxs)(tG,{messages:u,locale:i.defaultLocale,defaultLocale:i.defaultLocale,children:[f!==sY.closed&&(0,S.jsx)("div",{className:f===sY.hidden?"hide":"",children:(0,S.jsx)(np,{children:(0,S.jsx)(u3,{userId:v,size:g,position:t,onCloseChatBot:()=>w(sY.hidden),onBotSizeChange:e=>{y(e)},botOpenState:f,onContinueWithoutLogin:x})})}),(0,S.jsx)("div",{children:(0,S.jsx)(cr,{onOpenChatBot:()=>w(f===sY.open?sY.hidden:sY.open)})})]})})})}(0,k.memo)(u9)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.