=48&&g<=57&&(x=w=!1),w&&x&&(w=v,x=b),w||x){if(x)for(k=S.length-1;k>=0&&(h=S[k],!(S[k].level=0;t--)"inline"===e.tokens[t].type&&a.test(e.tokens[t].content)&&u(e.tokens[t].children,e)}},9909:(e,t,n)=>{"use strict";var r=n(5699);function o(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}o.prototype.Token=r,e.exports=o},1116:e=>{"use strict";e.exports=function(e){var t,n,r,o,i,a,l=e.tokens;for(t=0,n=l.length;t{"use strict";var t=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,n=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;e.exports=function(e,r){var o,i,a,l,s,u,c=e.pos;if(60!==e.src.charCodeAt(c))return!1;for(s=e.pos,u=e.posMax;;){if(++c>=u)return!1;if(60===(l=e.src.charCodeAt(c)))return!1;if(62===l)break}return o=e.src.slice(s+1,c),n.test(o)?(i=e.md.normalizeLink(o),!!e.md.validateLink(i)&&(r||((a=e.push("link_open","a",1)).attrs=[["href",i]],a.markup="autolink",a.info="auto",(a=e.push("text","",0)).content=e.md.normalizeLinkText(o),(a=e.push("link_close","a",-1)).markup="autolink",a.info="auto"),e.pos+=o.length+2,!0)):!!t.test(o)&&(i=e.md.normalizeLink("mailto:"+o),!!e.md.validateLink(i)&&(r||((a=e.push("link_open","a",1)).attrs=[["href",i]],a.markup="autolink",a.info="auto",(a=e.push("text","",0)).content=e.md.normalizeLinkText(o),(a=e.push("link_close","a",-1)).markup="autolink",a.info="auto"),e.pos+=o.length+2,!0))}},7361:e=>{"use strict";e.exports=function(e,t){var n,r,o,i,a,l,s,u,c=e.pos;if(96!==e.src.charCodeAt(c))return!1;for(n=c,c++,r=e.posMax;c{"use strict";function t(e,t){var n,r,o,i,a,l,s,u,c={},d=t.length;if(d){var f=0,p=-2,h=[];for(n=0;na;r-=h[r]+1)if((i=t[r]).marker===o.marker&&i.open&&i.end<0&&(s=!1,(i.close||o.open)&&(i.length+o.length)%3==0&&(i.length%3==0&&o.length%3==0||(s=!0)),!s)){u=r>0&&!t[r-1].open?h[r-1]+1:0,h[n]=n-r+u,h[r]=u,o.open=!1,i.end=n,i.close=!1,l=-1,p=-2;break}-1!==l&&(c[o.marker][(o.open?3:0)+(o.length||0)%3]=l)}}}e.exports=function(e){var n,r=e.tokens_meta,o=e.tokens_meta.length;for(t(0,e.delimiters),n=0;n{"use strict";function t(e,t){var n,r,o,i,a,l;for(n=t.length-1;n>=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(o=t[r.end],l=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===o.token+1,a=String.fromCharCode(r.marker),(i=e.tokens[r.token]).type=l?"strong_open":"em_open",i.tag=l?"strong":"em",i.nesting=1,i.markup=l?a+a:a,i.content="",(i=e.tokens[o.token]).type=l?"strong_close":"em_close",i.tag=l?"strong":"em",i.nesting=-1,i.markup=l?a+a:a,i.content="",l&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}e.exports.w=function(e,t){var n,r,o=e.pos,i=e.src.charCodeAt(o);if(t)return!1;if(95!==i&&42!==i)return!1;for(r=e.scanDelims(e.pos,42===i),n=0;n{"use strict";var r=n(2949),o=n(6483).has,i=n(6483).isValidEntityCode,a=n(6483).fromCodePoint,l=/^((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,s=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,t){var n,u,c,d=e.pos,f=e.posMax;if(38!==e.src.charCodeAt(d))return!1;if(d+1>=f)return!1;if(35===e.src.charCodeAt(d+1)){if(u=e.src.slice(d).match(l))return t||(n="x"===u[1][0].toLowerCase()?parseInt(u[1].slice(1),16):parseInt(u[1],10),(c=e.push("text_special","",0)).content=i(n)?a(n):a(65533),c.markup=u[0],c.info="entity"),e.pos+=u[0].length,!0}else if((u=e.src.slice(d).match(s))&&o(r,u[1]))return t||((c=e.push("text_special","",0)).content=r[u[1]],c.markup=u[0],c.info="entity"),e.pos+=u[0].length,!0;return!1}},5677:(e,t,n)=>{"use strict";for(var r=n(6483).isSpace,o=[],i=0;i<256;i++)o.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){o[e.charCodeAt(0)]=1})),e.exports=function(e,t){var n,i,a,l,s,u=e.pos,c=e.posMax;if(92!==e.src.charCodeAt(u))return!1;if(++u>=c)return!1;if(10===(n=e.src.charCodeAt(u))){for(t||e.push("hardbreak","br",0),u++;u=55296&&n<=56319&&u+1=56320&&i<=57343&&(l+=e.src[u+1],u++),a="\\"+l,t||(s=e.push("text_special","",0),n<256&&0!==o[n]?s.content=l:s.content=a,s.markup=a,s.info="escape"),e.pos=u+1,!0}},3498:e=>{"use strict";e.exports=function(e){var t,n,r=0,o=e.tokens,i=e.tokens.length;for(t=n=0;t0&&r++,"text"===o[t].type&&t+1{"use strict";var r=n(6340).n;e.exports=function(e,t){var n,o,i,a,l,s=e.pos;return!(!e.md.options.html||(i=e.posMax,60!==e.src.charCodeAt(s)||s+2>=i||33!==(n=e.src.charCodeAt(s+1))&&63!==n&&47!==n&&!function(e){var t=32|e;return t>=97&&t<=122}(n)||!(o=e.src.slice(s).match(r))||(t||((a=e.push("html_inline","",0)).content=e.src.slice(s,s+o[0].length),l=a.content,/^\s]/i.test(l)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(a.content)&&e.linkLevel--),e.pos+=o[0].length,0)))}},2566:(e,t,n)=>{"use strict";var r=n(6483).normalizeReference,o=n(6483).isSpace;e.exports=function(e,t){var n,i,a,l,s,u,c,d,f,p,h,g,m,v="",b=e.pos,y=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(u=e.pos+2,(s=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((c=s+1)=y)return!1;for(m=c,(f=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok&&(v=e.md.normalizeLink(f.str),e.md.validateLink(v)?c=f.pos:v=""),m=c;c=y||41!==e.src.charCodeAt(c))return e.pos=b,!1;c++}else{if(void 0===e.env.references)return!1;if(c=0?l=e.src.slice(m,c++):c=s+1):c=s+1,l||(l=e.src.slice(u,s)),!(d=e.env.references[r(l)]))return e.pos=b,!1;v=d.href,p=d.title}return t||(a=e.src.slice(u,s),e.md.inline.parse(a,e.md,e.env,g=[]),(h=e.push("image","img",0)).attrs=n=[["src",v],["alt",""]],h.children=g,h.content=a,p&&n.push(["title",p])),e.pos=c,e.posMax=y,!0}},6368:(e,t,n)=>{"use strict";var r=n(6483).normalizeReference,o=n(6483).isSpace;e.exports=function(e,t){var n,i,a,l,s,u,c,d,f="",p="",h=e.pos,g=e.posMax,m=e.pos,v=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(s=e.pos+1,(l=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((u=l+1)=g)return!1;if(m=u,(c=e.md.helpers.parseLinkDestination(e.src,u,e.posMax)).ok){for(f=e.md.normalizeLink(c.str),e.md.validateLink(f)?u=c.pos:f="",m=u;u=g||41!==e.src.charCodeAt(u))&&(v=!0),u++}if(v){if(void 0===e.env.references)return!1;if(u=0?a=e.src.slice(m,u++):u=l+1):u=l+1,a||(a=e.src.slice(s,l)),!(d=e.env.references[r(a)]))return e.pos=h,!1;f=d.href,p=d.title}return t||(e.pos=s,e.posMax=l,e.push("link_open","a",1).attrs=n=[["href",f]],p&&n.push(["title",p]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)),e.pos=u,e.posMax=g,!0}},949:e=>{"use strict";var t=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;e.exports=function(e,n){var r,o,i,a,l,s,u;return!(!e.md.options.linkify||e.linkLevel>0||(r=e.pos)+3>e.posMax||58!==e.src.charCodeAt(r)||47!==e.src.charCodeAt(r+1)||47!==e.src.charCodeAt(r+2)||!(o=e.pending.match(t))||(i=o[1],!(a=e.md.linkify.matchAtStart(e.src.slice(r-i.length)))||(l=(l=a.url).replace(/\*+$/,""),s=e.md.normalizeLink(l),!e.md.validateLink(s)||(n||(e.pending=e.pending.slice(0,-i.length),(u=e.push("link_open","a",1)).attrs=[["href",s]],u.markup="linkify",u.info="auto",(u=e.push("text","",0)).content=e.md.normalizeLinkText(l),(u=e.push("link_close","a",-1)).markup="linkify",u.info="auto"),e.pos+=l.length-i.length,0))))}},3722:(e,t,n)=>{"use strict";var r=n(6483).isSpace;e.exports=function(e,t){var n,o,i,a=e.pos;if(10!==e.src.charCodeAt(a))return!1;if(n=e.pending.length-1,o=e.posMax,!t)if(n>=0&&32===e.pending.charCodeAt(n))if(n>=1&&32===e.pending.charCodeAt(n-1)){for(i=n-1;i>=1&&32===e.pending.charCodeAt(i-1);)i--;e.pending=e.pending.slice(0,i),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(a++;a{"use strict";var r=n(5699),o=n(6483).isWhiteSpace,i=n(6483).isPunctChar,a=n(6483).isMdAsciiPunct;function l(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}l.prototype.pushPending=function(){var e=new r("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},l.prototype.push=function(e,t,n){this.pending&&this.pushPending();var o=new r(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),o.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(i),o},l.prototype.scanDelims=function(e,t){var n,r,l,s,u,c,d,f,p,h=e,g=!0,m=!0,v=this.posMax,b=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;h{"use strict";function t(e,t){var n,r,o,i,a,l=[],s=t.length;for(n=0;n{"use strict";function t(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}e.exports=function(e,n){for(var r=e.pos;r{"use strict";function t(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}t.prototype.attrIndex=function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n=0&&(n=this.attrs[t][1]),n},t.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},e.exports=t},4837:e=>{"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"","InvisibleTimes":"","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"","NegativeThickSpace":"","NegativeThinSpace":"","NegativeVeryThinSpace":"","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":" ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"","zwnj":""}')}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var l=2&r&&n;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,o.d(i,a),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e={};o.r(e),o.d(e,{attentionMarkers:()=>Sf,contentInitial:()=>yf,disable:()=>Cf,document:()=>bf,flow:()=>wf,flowInitial:()=>Af,insideSpan:()=>Ef,string:()=>xf,text:()=>kf});var t={};function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}o.r(t),o.d(t,{boolean:()=>vp,booleanish:()=>bp,commaOrSpaceSeparated:()=>kp,commaSeparated:()=>xp,number:()=>Ap,overloadedBoolean:()=>yp,spaceSeparated:()=>wp});var i,a,l=o(7162),s=o.n(l),u=o(2784),c=o.t(u,2),d=o(8316),f="colors",p="sizes",h="space",g={gap:h,gridGap:h,columnGap:h,gridColumnGap:h,rowGap:h,gridRowGap:h,inset:h,insetBlock:h,insetBlockEnd:h,insetBlockStart:h,insetInline:h,insetInlineEnd:h,insetInlineStart:h,margin:h,marginTop:h,marginRight:h,marginBottom:h,marginLeft:h,marginBlock:h,marginBlockEnd:h,marginBlockStart:h,marginInline:h,marginInlineEnd:h,marginInlineStart:h,padding:h,paddingTop:h,paddingRight:h,paddingBottom:h,paddingLeft:h,paddingBlock:h,paddingBlockEnd:h,paddingBlockStart:h,paddingInline:h,paddingInlineEnd:h,paddingInlineStart:h,top:h,right:h,bottom:h,left:h,scrollMargin:h,scrollMarginTop:h,scrollMarginRight:h,scrollMarginBottom:h,scrollMarginLeft:h,scrollMarginX:h,scrollMarginY:h,scrollMarginBlock:h,scrollMarginBlockEnd:h,scrollMarginBlockStart:h,scrollMarginInline:h,scrollMarginInlineEnd:h,scrollMarginInlineStart:h,scrollPadding:h,scrollPaddingTop:h,scrollPaddingRight:h,scrollPaddingBottom:h,scrollPaddingLeft:h,scrollPaddingX:h,scrollPaddingY:h,scrollPaddingBlock:h,scrollPaddingBlockEnd:h,scrollPaddingBlockStart:h,scrollPaddingInline:h,scrollPaddingInlineEnd:h,scrollPaddingInlineStart:h,fontSize:"fontSizes",background:f,backgroundColor:f,backgroundImage:f,borderImage:f,border:f,borderBlock:f,borderBlockEnd:f,borderBlockStart:f,borderBottom:f,borderBottomColor:f,borderColor:f,borderInline:f,borderInlineEnd:f,borderInlineStart:f,borderLeft:f,borderLeftColor:f,borderRight:f,borderRightColor:f,borderTop:f,borderTopColor:f,caretColor:f,color:f,columnRuleColor:f,fill:f,outline:f,outlineColor:f,stroke:f,textDecorationColor:f,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:p,minBlockSize:p,maxBlockSize:p,inlineSize:p,minInlineSize:p,maxInlineSize:p,width:p,minWidth:p,maxWidth:p,height:p,minHeight:p,maxHeight:p,flexBasis:p,gridTemplateColumns:p,gridTemplateRows:p,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},m=(e,t)=>"function"==typeof t?{"()":Function.prototype.toString.call(t)}:t,v=()=>{const e=Object.create(null);return(t,n,...r)=>{const o=(e=>JSON.stringify(e,m))(t);return o in e?e[o]:e[o]=n(t,...r)}},b=Symbol.for("sxs.internal"),y=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),A=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:w}=Object.prototype,x=e=>e.includes("-")?e:e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),k=/\s+(?![^()]*\))/,E=e=>t=>e(..."string"==typeof t?String(t).split(k):[t]),S={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:E(((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e}))),marginInline:E(((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e}))),maxSize:E(((e,t)=>({maxBlockSize:e,maxInlineSize:t||e}))),minSize:E(((e,t)=>({minBlockSize:e,minInlineSize:t||e}))),paddingBlock:E(((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e}))),paddingInline:E(((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e})))},C=/([\d.]+)([^]*)/,_=(e,t)=>e.length?e.reduce(((e,n)=>(e.push(...t.map((e=>e.includes("&")?e.replace(/&/g,/[ +>|~]/.test(n)&&/&.*&/.test(e)?`:is(${n})`:n):n+" "+e))),e)),[]):t,T=(e,t)=>e in L&&"string"==typeof t?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,((t,n,r,o)=>n+("stretch"===r?`-moz-available${o};${x(e)}:${n}-webkit-fill-available`:`-moz-fit-content${o};${x(e)}:${n}fit-content`)+o)):String(t),L={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},D=e=>e?e+"-":"",O=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,((e,r,o,i,a)=>"$"==i==!!o?e:(r||"--"==i?"calc(":"")+"var(--"+("$"===i?D(t)+(a.includes("$")?"":D(n))+a.replace(/\$/g,"-"):a)+")"+(r||"--"==i?"*"+(r||"")+(o||"1")+")":""))),R=/\s*,\s*(?![^()]*\))/,B=Object.prototype.toString,N=(e,t,n,r,o)=>{let i,a,l;const s=(e,t,n)=>{let u,c;const d=e=>{for(u in e){const h=64===u.charCodeAt(0),g=h&&Array.isArray(e[u])?e[u]:[e[u]];for(c of g){const e=/[A-Z]/.test(p=u)?p:p.replace(/-[^]/g,(e=>e[1].toUpperCase())),g="object"==typeof c&&c&&c.toString===B&&(!r.utils[e]||!t.length);if(e in r.utils&&!g){const t=r.utils[e];if(t!==a){a=t,d(t(c)),a=null;continue}}else if(e in S){const t=S[e];if(t!==l){l=t,d(t(c)),l=null;continue}}if(h&&(f=u.slice(1)in r.media?"@media "+r.media[u.slice(1)]:u,u=f.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,((e,t,n,r,o,i)=>{const a=C.test(t),l=.0625*(a?-1:1),[s,u]=a?[r,t]:[t,r];return"("+("="===n[0]?"":">"===n[0]===a?"max-":"min-")+s+":"+("="!==n[0]&&1===n.length?u.replace(C,((e,t,r)=>Number(t)+l*(">"===n?1:-1)+r)):u)+(o?") and ("+(">"===o[0]?"min-":"max-")+s+":"+(1===o.length?i.replace(C,((e,t,n)=>Number(t)+l*(">"===o?-1:1)+n)):i):"")+")"}))),g){const e=h?n.concat(u):[...n],r=h?[...t]:_(t,u.split(R));void 0!==i&&o(P(...i)),i=void 0,s(c,r,e)}else void 0===i&&(i=[[],t,n]),u=h||36!==u.charCodeAt(0)?u:`--${D(r.prefix)}${u.slice(1).replace(/\$/g,"-")}`,c=g?c:"number"==typeof c?c&&e in M?String(c)+"px":String(c):O(T(e,null==c?"":c),r.prefix,r.themeMap[e]),i[0].push(`${h?`${u} `:`${x(u)}:`}${c}`)}}var f,p};d(e),void 0!==i&&o(P(...i)),i=void 0};s(e,t,n)},P=(e,t,n)=>`${n.map((e=>`${e}{`)).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,M={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},I=e=>String.fromCharCode(e+(e>25?39:97)),j=e=>(e=>{let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=I(t%52)+n;return I(t%52)+n})(((e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e})(5381,JSON.stringify(e))>>>0),F=["themed","global","styled","onevar","resonevar","allvar","inline"],q=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch(e){return!1}},H=e=>{let t;const n=()=>{const{cssRules:e}=t.sheet;return[].map.call(e,((n,r)=>{const{cssText:o}=n;let i="";if(o.startsWith("--sxs"))return"";if(e[r-1]&&(i=e[r-1].cssText).startsWith("--sxs")){if(!n.cssRules.length)return"";for(const e in t.rules)if(t.rules[e].group===n)return`--sxs{--sxs:${[...t.rules[e].cache].join(" ")}}${o}`;return n.cssRules.length?`${i}${o}`:""}return o})).join("")},r=()=>{if(t){const{rules:e,sheet:n}=t;if(!n.deleteRule){for(;3===Object(Object(n.cssRules)[0]).type;)n.cssRules.splice(0,1);n.cssRules=[]}for(const t in e)delete e[t]}const o=Object(e).styleSheets||[];for(const e of o)if(q(e)){for(let o=0,i=e.cssRules;i[o];++o){const a=Object(i[o]);if(1!==a.type)continue;const l=Object(i[o+1]);if(4!==l.type)continue;++o;const{cssText:s}=a;if(!s.startsWith("--sxs"))continue;const u=s.slice(14,-3).trim().split(/\s+/),c=F[u[0]];c&&(t||(t={sheet:e,reset:r,rules:{},toString:n}),t.rules[c]={group:l,index:o,cache:new Set(u)})}if(t)break}if(!t){const o=(e,t)=>({type:t,cssRules:[],insertRule(e,t){this.cssRules.splice(t,0,o(e,{import:3,undefined:1}[(e.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return"@media{}"===e?`@media{${[].map.call(this.cssRules,(e=>e.cssText)).join("")}}`:e}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:o("","text/css"),rules:{},reset:r,toString:n}}const{sheet:i,rules:a}=t;for(let e=F.length-1;e>=0;--e){const t=F[e];if(!a[t]){const n=F[e+1],r=a[n]?a[n].index:i.cssRules.length;i.insertRule("@media{}",r),i.insertRule(`--sxs{--sxs:${e}}`,r),a[t]={group:i.cssRules[r+1],index:r,cache:new Set([e])}}U(a[t])}};return r(),t},U=e=>{const t=e.group;let n=t.cssRules.length;e.apply=e=>{try{t.insertRule(e,n),++n}catch(e){}}},z=Symbol(),V=v(),W=(e,t)=>V(e,(()=>(...n)=>{let r={type:null,composers:new Set};for(const t of n)if(null!=t)if(t[b]){null==r.type&&(r.type=t[b].type);for(const e of t[b].composers)r.composers.add(e)}else t.constructor!==Object||t.$$typeof?null==r.type&&(r.type=t):r.composers.add(Q(t,e));return null==r.type&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),G(e,r,t)})),Q=({variants:e,compoundVariants:t,defaultVariants:n,...r},o)=>{const i=`${D(o.prefix)}c-${j(r)}`,a=[],l=[],s=Object.create(null),u=[];for(const e in n)s[e]=String(n[e]);if("object"==typeof e&&e)for(const t in e){c=s,d=t,w.call(c,d)||(s[t]="undefined");const n=e[t];for(const e in n){const r={[t]:String(e)};"undefined"===String(e)&&u.push(t);const o=n[e],i=[r,o,!A(o)];a.push(i)}}var c,d;if("object"==typeof t&&t)for(const e of t){let{css:t,...n}=e;t="object"==typeof t&&t||{};for(const e in n)n[e]=String(n[e]);const r=[n,t,!A(t)];l.push(r)}return[i,r,a,l,s,u]},G=(e,t,n)=>{const[r,o,i,a]=$(t.composers),l="function"==typeof t.type||t.type.$$typeof?(e=>{function t(){for(let n=0;nt.rules[e]={apply:n=>t[z].push([e,n])})),t})(n):null,s=(l||n).rules,u=`.${r}${o.length>1?`:where(.${o.slice(1).join(".")})`:""}`,c=c=>{c="object"==typeof c&&c||Z;const{css:d,...f}=c,p={};for(const e in i)if(delete f[e],e in c){let t=c[e];"object"==typeof t&&t?p[e]={"@initial":i[e],...t}:(t=String(t),p[e]="undefined"!==t||a.has(e)?t:i[e])}else p[e]=i[e];const h=new Set([...o]);for(const[r,o,i,a]of t.composers){n.rules.styled.cache.has(r)||(n.rules.styled.cache.add(r),N(o,[`.${r}`],[],e,(e=>{s.styled.apply(e)})));const t=Y(i,p,e.media),l=Y(a,p,e.media,!0);for(const o of t)if(void 0!==o)for(const[t,i,a]of o){const o=`${r}-${j(i)}-${t}`;h.add(o);const l=(a?n.rules.resonevar:n.rules.onevar).cache,u=a?s.resonevar:s.onevar;l.has(o)||(l.add(o),N(i,[`.${o}`],[],e,(e=>{u.apply(e)})))}for(const t of l)if(void 0!==t)for(const[o,i]of t){const t=`${r}-${j(i)}-${o}`;h.add(t),n.rules.allvar.cache.has(t)||(n.rules.allvar.cache.add(t),N(i,[`.${t}`],[],e,(e=>{s.allvar.apply(e)})))}}if("object"==typeof d&&d){const t=`${r}-i${j(d)}-css`;h.add(t),n.rules.inline.cache.has(t)||(n.rules.inline.cache.add(t),N(d,[`.${t}`],[],e,(e=>{s.inline.apply(e)})))}for(const e of String(c.className||"").trim().split(/\s+/))e&&h.add(e);const g=f.className=[...h].join(" ");return{type:t.type,className:g,selector:u,props:f,toString:()=>g,deferredInjector:l}};return y(c,{className:r,selector:u,[b]:t,toString:()=>(n.rules.styled.cache.has(r)||c(),r)})},$=e=>{let t="";const n=[],r={},o=[];for(const[i,,,,a,l]of e){""===t&&(t=i),n.push(i),o.push(...l);for(const e in a){const t=a[e];(void 0===r[e]||"undefined"!==t||l.includes(t))&&(r[e]=t)}}return[t,n,r,new Set(o)]},Y=(e,t,n,r)=>{const o=[];e:for(let[i,a,l]of e){if(l)continue;let e,s=0,u=!1;for(e in i){const r=i[e];let o=t[e];if(o!==r){if("object"!=typeof o||!o)continue e;{let e,t,i=0;for(const a in o){if(r===String(o[a])){if("@initial"!==a){const e=a.slice(1);(t=t||[]).push(e in n?n[e]:a.replace(/^@media ?/,"")),u=!0}s+=i,e=!0}++i}if(t&&t.length&&(a={["@media "+t.join(", ")]:a}),!e)continue e}}}(o[s]=o[s]||[]).push([r?"cv":`${e}-${i[e]}`,a,u])}return o},Z={},J=v(),K=(e,t)=>J(e,(()=>(...n)=>{const r=()=>{for(let r of n){r="object"==typeof r&&r||{};let n=j(r);if(!t.rules.global.cache.has(n)){if(t.rules.global.cache.add(n),"@import"in r){let e=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let n of[].concat(r["@import"]))n=n.includes('"')||n.includes("'")?n:`"${n}"`,t.sheet.insertRule(`@import ${n};`,e++);delete r["@import"]}N(r,[],[],e,(e=>{t.rules.global.apply(e)}))}}return""};return y(r,{toString:r})})),X=v(),ee=(e,t)=>X(e,(()=>n=>{const r=`${D(e.prefix)}k-${j(n)}`,o=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);const o=[];N(n,[],[],e,(e=>o.push(e)));const i=`@keyframes ${r}{${o.join("")}}`;t.rules.global.apply(i)}return r};return y(o,{get name(){return o()},toString:o})})),te=class{constructor(e,t,n,r){this.token=null==e?"":String(e),this.value=null==t?"":String(t),this.scale=null==n?"":String(n),this.prefix=null==r?"":String(r)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+D(this.prefix)+D(this.scale)+this.token}toString(){return this.computedValue}},ne=v(),re=(e,t)=>ne(e,(()=>(n,r)=>{r="object"==typeof n&&n||Object(r);const o=`.${n=(n="string"==typeof n?n:"")||`${D(e.prefix)}t-${j(r)}`}`,i={},a=[];for(const t in r){i[t]={};for(const n in r[t]){const o=`--${D(e.prefix)}${t}-${n}`,l=O(String(r[t][n]),e.prefix,t);i[t][n]=new te(n,l,t,e.prefix),a.push(`${o}:${l}`)}}const l=()=>{if(a.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const o=`${r===e.theme?":root,":""}.${n}{${a.join(";")}}`;t.rules.themed.apply(o)}return n};return{...i,get className(){return l()},selector:o,toString:l}})),oe=v(),ie=v(),ae=e=>{const t=(e=>{let t=!1;const n=oe(e,(e=>{t=!0;const n="prefix"in(e="object"==typeof e&&e||{})?String(e.prefix):"",r="object"==typeof e.media&&e.media||{},o="object"==typeof e.root?e.root||null:globalThis.document||null,i="object"==typeof e.theme&&e.theme||{},a={prefix:n,media:r,theme:i,themeMap:"object"==typeof e.themeMap&&e.themeMap||{...g},utils:"object"==typeof e.utils&&e.utils||{}},l=H(o),s={css:W(a,l),globalCss:K(a,l),keyframes:ee(a,l),createTheme:re(a,l),reset(){l.reset(),s.theme.toString()},theme:{},sheet:l,config:a,prefix:n,getCssText:l.toString,toString:l.toString};return String(s.theme=s.createTheme(i)),s}));return t||n.reset(),n})(e);return t.styled=(({config:e,sheet:t})=>ie(e,(()=>{const n=W(e,t);return(...e)=>{const t=n(...e),r=t[b].type,o=u.forwardRef(((e,n)=>{const o=e&&e.as||r,{props:i,deferredInjector:a}=t(e);return delete i.as,i.ref=n,a?u.createElement(u.Fragment,null,u.createElement(o,i),u.createElement(a,null)):u.createElement(o,i)}));return o.className=t.className,o.displayName=`Styled.${r.displayName||r.name||r}`,o.selector=t.selector,o.toString=()=>t.selector,o[b]=t[b],o}})))(t),t},le=()=>i||(i=ae()),se=(...e)=>le().createTheme(...e),ue=(...e)=>le().styled(...e);function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function de(e){for(var t=1;te.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function Ee(...e){return u.useCallback(ke(...e),e)}function Se(){return Se=Object.assign||function(e){for(var t=1;t{const{children:n,...r}=e;return u.Children.toArray(n).some(Le)?u.createElement(u.Fragment,null,u.Children.map(n,(e=>Le(e)?u.createElement(_e,Se({},r,{ref:t}),e.props.children):e))):u.createElement(_e,Se({},r,{ref:t}),n)}));Ce.displayName="Slot";const _e=u.forwardRef(((e,t)=>{const{children:n,...r}=e;return u.isValidElement(n)?u.cloneElement(n,{...De(r,n.props),ref:ke(t,n.ref)}):u.Children.count(n)>1?u.Children.only(null):null}));_e.displayName="SlotClone";const Te=({children:e})=>u.createElement(u.Fragment,null,e);function Le(e){return u.isValidElement(e)&&e.type===Te}function De(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?n[r]=(...e)=>{null==i||i(...e),null==o||o(...e)}:"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const Oe=["a","button","div","h2","h3","img","li","nav","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:u.forwardRef(((e,n)=>{const{asChild:r,...o}=e,i=r?Ce:t;return u.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),e.as&&console.error(Re),u.createElement(i,Se({},o,{ref:n}))}))})),{}),Re="Warning: The `as` prop has been removed in favour of `asChild`. For details, see https://radix-ui.com/docs/primitives/overview/styling#changing-the-rendered-element",Be="horizontal",Ne=["horizontal","vertical"],Pe=u.forwardRef(((e,t)=>{const{decorative:n,orientation:r=Be,...o}=e,i=Me(r)?r:Be,a=n?{role:"none"}:{"aria-orientation":"vertical"===i?i:void 0,role:"separator"};return u.createElement(Oe.div,Se({"data-orientation":i},a,o,{ref:t}))}));function Me(e){return Ne.includes(e)}Pe.propTypes={orientation(e,t,n){const r=e[t],o=String(r);return r&&!Me(r)?new Error(function(e,t){return`Invalid prop \`orientation\` of value \`${e}\` supplied to \`${t}\`, expected one of:\n - horizontal\n - vertical\n\nDefaulting to \`${Be}\`.`}(o,n)):null}};const Ie=Pe;var je=o(2322),Fe={alignment:{start:{alignItems:"flex-start"},center:{alignItems:"center"},end:{alignItems:"end"}},distribution:{around:{justifyContent:"space-around"},between:{justifyContent:"space-between"},evenly:{justifyContent:"space-evenly"},start:{justifyContent:"flex-start"},center:{justifyContent:"center"},end:{justifyContent:"flex-end"}}},qe=he("div",{}),He=he("span",{}),Ue=he("a",{}),ze=he("blockquote",{}),Ve=he(qe,{display:"flex",flexDirection:"row",variants:Fe,defaultVariants:{alignment:"start",distribution:"around"}}),We=he(qe,{display:"flex",flexDirection:"column",variants:Fe,defaultVariants:{alignment:"start",distribution:"around"}});function Qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(Array.from(document.querySelectorAll("p[data-omnivore-anchor-idx]")).reverse());try{for(i.s();!(r=i.n()).done;){var a=r.value,l=a.getBoundingClientRect();if(l.height>0&&l.top>=50&&l.bottom<=e.clientHeight){if(o&&o.getBoundingClientRect().tope.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0;)r();n.shift(),n.forEach((function(e,t){e.setAttribute("data-omnivore-anchor-idx",(t+1).toString())}))}(s.current),!(e.highlightHref.current||e.initialReadingProgress&&e.initialReadingProgress>=98))){var t=e.highlightHref.current?document.querySelector('[omnivore-highlight-id="'.concat(e.highlightHref.current,'"]')):document.querySelector("[data-omnivore-anchor-idx='".concat(e.initialAnchorIndex.toString(),"']"));if(t){var n=function(e){var t=0;if(e.offsetParent){do{t+=e.offsetTop}while(e=e.offsetParent);return t}return 0}(t);window.document.documentElement.scroll(0,n-100)}}}),[e.initialAnchorIndex,e.initialReadingProgress,a]),(0,u.useEffect)((function(){var e,t;"function"==typeof(null===(e=window)||void 0===e||null===(t=e.MathJax)||void 0===t?void 0:t.typeset)&&window.MathJax.typeset();var n=Array.from(document.getElementsByClassName("tweet-placeholder"));n.length>0&&it(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t="twttr",e.next=5,new Promise((function(e,n){rt().isDefined(t)||rt()("https://platform.twitter.com/widgets.js",t),rt().ready(t,{success:function(){var t;null!==(t=window.twttr)&&void 0!==t&&t.widgets?e(!0):e(!1)},error:function(){return n(new Error("Could not load remote twitter widgets js"))}})}));case 5:n.forEach((function(e){var t,n,r=e.getAttribute("data-tweet-id");r&&(null===(t=window.twttr)||void 0===t||null===(n=t.widgets)||void 0===n||n.createTweet(r,e,{theme:tt()?"dark":"light",align:"center",dnt:"true"}))}));case 6:case"end":return e.stop()}}),e)})))()}),[]),(0,u.useEffect)((function(){Array.from(document.querySelectorAll("img[data-omnivore-width]")).forEach((function(e){var t=e,n=Number(t.getAttribute("data-omnivore-width")),r=Number(t.getAttribute("data-omnivore-height"));console.log("width and height: ",n,r),!isNaN(n)&&!isNaN(r)&&n<100&&r<100&&(t.style.setProperty("width","".concat(n,"px")),t.style.setProperty("height","".concat(r,"px")),t.style.setProperty("max-width","unset"))})),Array.from(document.querySelectorAll("img[data-omnivore-original-src]")).forEach((function(e){var t=e,n=t.getAttribute("data-omnivore-original-src");n&&(t.onerror=function(){console.log("image falling back to original: ",n),t.onerror=null,t.src=n})}))}),[e.content]),(0,je.jsxs)(je.Fragment,{children:[(0,je.jsx)("link",{rel:"stylesheet",href:"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.4.0/styles/".concat(t,".min.css")}),(0,je.jsx)(qe,{ref:s,css:{maxWidth:"100%"},className:"article-inner-css","data-testid":"article-inner",dangerouslySetInnerHTML:{__html:e.content}})]})}var ut=he("p",{fontFamily:"Inter",fontWeight:"normal",lineHeight:"120%",color:"$grayTextContrast",variants:{style:{body:{fontSize:"$2",lineHeight:"1.25"},logoTitle:{fontFamily:"Inter",fontWeight:700,fontSize:"18px",textTransform:"uppercase",letterSpacing:"0.15em"},bodyBold:{fontWeight:"bold",fontSize:"$2",lineHeight:"1.25"},recommendedByline:{fontWeight:"bold",fontSize:"13.5px",paddingTop:"4px",mt:"0px",mb:"16px",color:"$grayTextContrast"},userName:{fontWeight:"600",fontSize:"13.5px",paddingTop:"4px",my:"6px",color:"$grayText"},userNote:{fontSize:"16px",paddingTop:"0px",marginTop:"0px",lineHeight:"1.5",color:"$grayTextContrast"},headline:{fontSize:"$4","@md":{fontSize:"$6"}},fixedHeadline:{fontSize:"24px",fontWeight:"500"},subHeadline:{fontSize:"24px",fontWeight:"500"},articleTitle:{fontWeight:"bold",fontSize:"35px","@mdDown":{fontSize:"25px"},margin:0},boldHeadline:{fontWeight:"bold",fontSize:"$4","@md":{fontSize:"$6"},margin:0},modalHeadline:{fontWeight:"600",fontFamily:"$display",fontSize:"20px",lineHeight:"20px",color:"$grayText",margin:0},modalTitle:{fontSize:"16px",fontWeight:"600",color:"$grayText",lineHeight:"1.50",margin:0},boldText:{fontWeight:"600",fontSize:"16px",lineHeight:"1",color:"$thTextContrast"},shareHighlightModalAnnotation:{fontSize:"18px",lineHeight:"23.4px",color:"$utilityTextSubtle",m:0},footnote:{fontSize:"$1"},shareTitle:{fontSize:"$1",fontWeight:"700",color:"$grayTextContrast"},shareSubtitle:{fontSize:"$1",color:"$grayText"},listTitle:{fontSize:"16px",fontWeight:"500",color:"$grayTextContrast",lineHeight:"1.5",wordBreak:"break-word"},caption:{color:"$grayText",fontSize:"12px",lineHeight:"1.5",wordBreak:"break-word"},captionLink:{fontSize:"$2",textDecoration:"underline",lineHeight:"1.5",cursor:"pointer"},action:{fontSize:"16px",fontWeight:"500",lineHeight:"1.5"},actionLink:{fontSize:"16px",fontWeight:"500",lineHeight:"1.5",textDecoration:"underline",cursor:"pointer"},navLink:{m:0,fontSize:"$1",fontWeight:400,color:"$graySolid",cursor:"pointer","&:hover":{opacity:.7}},controlButton:{color:"$grayText",fontWeight:"500",fontFamily:"inter",fontSize:"14px"},menuTitle:{pt:"0px",m:"0px",color:"$utilityTextDefault",fontSize:16,fontFamily:"inter",fontWeight:"500",lineHeight:"unset"},libraryHeader:{pt:"0px",m:"0px",fontSize:24,fontFamily:"inter",lineHeight:"unset",fontWeight:"bold",color:"$textSubtle"},aboutFooter:{pt:"0px",m:"0px",fontSize:24,fontFamily:"inter",lineHeight:"unset",fontWeight:"bold",color:"white"},displaySettingsLabel:{fontFamily:"$display",fontWeight:"500",fontSize:"12px",lineHeight:"20px",color:"$thTextSubtle2"},error:{color:"$error",fontSize:"$2",lineHeight:"1.25"}}},defaultVariants:{style:"footnote"}}),ct=(he("span",ut),he("li",{fontFamily:"Inter",fontWeight:"normal",lineHeight:"1.35",color:"$grayTextContrast"}),he("ul",{fontFamily:"Inter",fontWeight:"normal",lineHeight:"1.35",color:"$grayTextContrast"}),he("img",{}),he("a",{textDecoration:"none"}),he("mark",{}),Intl.DateTimeFormat().resolvedOptions().locale||"en-US"),dt=Intl.DateTimeFormat().resolvedOptions().timeZone;function ft(e){return new Intl.DateTimeFormat(ct,{timeStyle:"short",timeZone:dt}).format(new Date(e))}function pt(e){var t=e.style||"footnote",n=function(e,t){var n=new URL(e).origin,r=gt(e);if(t){var o="".concat(function(e){return"by ".concat("string"==typeof(t=e)?t.replace(/(<([^>]+)>)/gi,""):"");var t}(t));return r?o:"".concat(o,", ").concat(new URL(e).hostname)}if(!r)return n}(e.href,e.author);return(0,je.jsx)(qe,{children:(0,je.jsxs)(ut,{style:t,css:{wordBreak:"break-word"},children:[n," ",n&&(0,je.jsx)("span",{style:{bottom:1},children:"• "})," ",!e.hideButton&&!gt(e.href)&&(0,je.jsx)(je.Fragment,{children:(0,je.jsx)(Ue,{href:e.href,target:"_blank",rel:"noreferrer",css:{textDecoration:"underline",color:"$grayTextContrast"},children:"See original"})})]})})}function ht(e){var t,n,r;return(0,je.jsx)(qe,{children:(0,je.jsxs)(ut,{css:{wordBreak:"break-word",fontSize:"15",color:"$thTextSubtle2",fontFamily:"$inter"},children:[(r=e.rawDisplayDate,new Intl.DateTimeFormat(ct,{dateStyle:"long",timeZone:dt}).format(new Date(r)))," ",null!==(t=e.wordsCount)&&void 0!==t&&t?" • ".concat(Math.max(1,Math.round((null!==(n=e.wordsCount)&&void 0!==n?n:0)/235))," min read"):null]})})}function gt(e){var t=new URL(e).origin;return-1!=["https://storage.googleapis.com","https://omnivore.app"].indexOf(t)}var mt=o(1427);function vt(e,t){for(var n=0,r=e.length-1;n=e[l+1]))return l;n=l+1}}throw new Error("Unable to find text node")}var bt="omnivore-highlight-id",yt="omnivore-highlight-note-id";function At(e){return Array.from(document.querySelectorAll("[".concat(bt,"='").concat(e,"']")))}var wt="omnivore_highlight",xt="article-container",kt=/^(a|b|basefont|bdo|big|em|font|i|s|small|span|strike|strong|su[bp]|tt|u|code|mark)$/i,Et=new RegExp("<".concat(wt,">([\\s\\S]*)<\\/").concat(wt,">"),"i"),St=2e3;function Ct(e,t,n,r,o){var i,a=Ot({patch:e}),l=a.prefix,s=a.suffix,u=a.highlightTextStart,c=a.highlightTextEnd,d=a.textNodes,f=a.textNodeIndex,p="";if(Bt(t).length)return{prefix:l,suffix:s,quote:p,startLocation:u,endLocation:c};for(var h=function(){var e=Rt({textNodes:d,startingTextNodeIndex:f,highlightTextStart:u,highlightTextEnd:c}),a=e.node,l=e.textPartsToHighlight,s=e.startsParagraph,h=a.parentNode,g=a.nextSibling,m=!1,v=a instanceof HTMLElement?a:a.parentElement;v&&(m=window.getComputedStyle(v).whiteSpace.startsWith("pre")),null==h||h.removeChild(a),l.forEach((function(e,a){var l=e.highlight,u=e.text,c=m?u:u.replace(/\n/g,""),d=document.createTextNode(u);if(l){c&&(s&&!a&&p&&(p+="\n"),p+=c);var f=document.createElement("span");return f.className=n?"highlight_with_note":"highlight",f.setAttribute(bt,t),r&&f.setAttribute("style","background-color: ".concat(r," !important")),o&&f.setAttribute("title",o),f.appendChild(d),i=f,null==h?void 0:h.insertBefore(f,g)}return null==h?void 0:h.insertBefore(d,g)})),f++};c>d[f].startIndex;)h();if(n&&i){i.classList.add("last_element");var g=function(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");t.setAttribute("viewBox","0 0 14 14"),t.setAttribute("width","14"),t.setAttribute("height","14"),t.setAttribute("fill","none");var n=document.createElementNS(e,"path");return n.setAttribute("d","M1 5.66602C1 3.7804 1 2.83759 1.58579 2.2518C2.17157 1.66602 3.11438 1.66602 5 1.66602H9C10.8856 1.66602 11.8284 1.66602 12.4142 2.2518C13 2.83759 13 3.7804 13 5.66602V7.66601C13 9.55163 13 10.4944 12.4142 11.0802C11.8284 11.666 10.8856 11.666 9 11.666H4.63014C4.49742 11.666 4.43106 11.666 4.36715 11.6701C3.92582 11.6984 3.50632 11.8722 3.17425 12.1642C3.12616 12.2065 3.07924 12.2534 2.98539 12.3473V12.3473C2.75446 12.5782 2.639 12.6937 2.55914 12.7475C1.96522 13.1481 1.15512 12.8125 1.01838 12.1093C1 12.0148 1 11.8515 1 11.5249V5.66602Z"),n.setAttribute("stroke","rgba(255, 210, 52, 0.8)"),n.setAttribute("stroke-width","1.8"),n.setAttribute("stroke-linejoin","round"),t.appendChild(n),t}();g.setAttribute(yt,t);var m=document.createElement("div");m.className="highlight_note_button",m.appendChild(g),m.setAttribute(yt,t),m.setAttribute("width","14px"),m.setAttribute("height","14px"),i.appendChild(m)}return{prefix:l,suffix:s,quote:p,startLocation:u,endLocation:c}}function _t(e){var t=document.getElementById(xt);if(!t)throw new Error("Unable to find article content element");var n=new Range,r=new Range,o=new Range;o.selectNode(t),n.setStart(o.startContainer,o.startOffset),n.setEnd(e.startContainer,e.startOffset),r.setStart(e.endContainer,e.endOffset),r.setEnd(o.endContainer,o.endOffset);var i="".concat(n.toString(),"<").concat(wt,">").concat(e.toString(),"").concat(wt,">").concat(r.toString()),a=new mt.diff_match_patch,l=a.patch_toText(a.patch_make(o.toString(),i));if(!l)throw new Error("Invalid patch");return l}function Tt(e){var t=_t(e),n=Dt(t);return[n.highlightTextStart,n.highlightTextEnd]}var Lt=function(e){var t=(null==e?void 0:e.current)||document.getElementById(xt);if(!t)throw new Error("Unable to find article content element");var n=0,r="",o=!1,i=[];return t.childNodes.forEach((function e(t){var a;t.nodeType===Node.TEXT_NODE?(i.push({startIndex:n,node:t,startsParagraph:o}),n+=(null===(a=t.nodeValue)||void 0===a?void 0:a.length)||0,r+=t.nodeValue,o=!1):(kt.test(t.tagName)||(o=!0),t.childNodes.forEach(e))})),i.push({startIndex:n,node:document.createTextNode("")}),{textNodes:i,articleText:r}},Dt=function(e){if(!e)throw new Error("Invalid patch");var t,n=Lt().articleText,r=new mt.diff_match_patch,o=r.patch_apply(r.patch_fromText(e),n);if(o[1][0])t=Et.exec(o[0]);else{r.Match_Threshold=.5,r.Match_Distance=4e3;var i=r.patch_apply(r.patch_fromText(e),n);if(!i[1][0])throw new Error("Unable to find the highlight");t=Et.exec(i[0])}if(!t)throw new Error("Unable to find the highlight from patch");var a=t.index;return{highlightTextStart:a,highlightTextEnd:a+t[1].length,matchingHighlightContent:t}};function Ot(e){var t=e.patch;if(!t)throw new Error("Invalid patch");var n=Lt().textNodes,r=Dt(t),o=r.highlightTextStart,i=r.highlightTextEnd,a=vt(n.map((function(e){return e.startIndex})),o),l=vt(n.map((function(e){return e.startIndex})),i);return{prefix:Nt({textNodes:n,startingTextNodeIndex:a,startingOffset:o-n[a].startIndex,side:"prefix"}),suffix:Nt({textNodes:n,startingTextNodeIndex:l,startingOffset:i-n[l].startIndex,side:"suffix"}),highlightTextStart:o,highlightTextEnd:i,textNodes:n,textNodeIndex:a}}var Rt=function(e){var t=e.textNodes,n=e.startingTextNodeIndex,r=e.highlightTextStart,o=e.highlightTextEnd,i=t[n],a=i.node,l=i.startIndex,s=i.startsParagraph,u=a.nodeValue||"",c=r-l,d=o-l,f=[];return c>0&&f.push({text:u.substring(0,c),highlight:!1}),f.push({text:u.substring(c,d),highlight:!0}),d<=u.length&&f.push({text:u.substring(d),highlight:!1}),{node:a,textPartsToHighlight:f,startsParagraph:s}},Bt=function(e){return Array.from(document.querySelectorAll("[".concat(bt,"='").concat(e,"']")))},Nt=function(e){var t,n=e.textNodes,r=e.startingTextNodeIndex,o=e.startingOffset,i="prefix"===e.side,a=r,l=function e(){var t=n[a+=i?-1:1],r=t.node,o=t.startsParagraph,l=r.nodeValue||"";return i?o||l.length>St?l:e()+l:!n[a+1]||n[a+1].startsParagraph||l.length>St?l:l+e()},s=n[r],u=s.startsParagraph,c=s.node.nodeValue||"",d=i?c.substring(0,o):c.substring(o);return(t=i?u?d:l()+d:!n[a+1]||n[a+1].startsParagraph?d:d+l()).length<=St?t:i?t.slice(t.length-St):t.substring(0,St)},Pt=function(e){var t=Ot({patch:e}),n=t.highlightTextStart;return t.highlightTextEnd-n<6e3};function Mt(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function It(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Mt(i,r,o,a,l,"next",e)}function l(e){Mt(i,r,o,a,l,"throw",e)}a(void 0)}))}}function jt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ft(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ft(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0&&l<=0,u=i.startContainer===t.focusNode&&i.endOffset===t.anchorOffset,e.abrupt("return",s?{range:i,isReverseSelected:u,selection:t}:void 0);case 20:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Ut=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("undefined"==typeof window||!e)return{left:0,top:0,right:0,bottom:0,width:0,height:0};var n=e.getClientRects();if(!n||!n.length)return{left:0,top:0,right:0,bottom:0,width:0,height:0};var r=n[t?0:n.length-1];return{left:window.scrollX+r.left,top:window.scrollY+r.top-60,right:window.scrollX+r.right,bottom:window.scrollY+r.bottom+5,width:r.width,height:r.height}};function zt(){return navigator.userAgent.includes("Android")}function Vt(){return zt()||["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}var Wt=he("button",{fontFamily:"inter",fontSize:"$2",lineHeight:"1.25",color:"$grayText",variants:{style:{ctaYellow:{borderRadius:"$3",px:"$3",py:"$2",border:"1px solid $yellow3",bg:"$yellow3","&:hover":{bg:"$yellow4",border:"1px solid $grayBorderHover"}},ctaDarkYellow:{border:"1px solid transparent",fontSize:"13px",fontWeight:500,fontFamily:"Inter",borderRadius:"5px",cursor:"pointer",color:"#3D3D3D",bg:"#FFEA9F",p:"10px 15px","&:hover":{bg:"$omnivoreCtaYellow"},"&:focus":{border:"1px solid $omnivoreCtaYellow"}},cancelGeneric:{fontSize:"13px",fontWeight:500,fontFamily:"Inter",cursor:"pointer",color:"#6A6968",borderRadius:"5px",border:"1px solid transparent",p:"10px 15px",bg:"transparent","&:hover":{bg:"#EBEBEB"},"&:focus":{outline:"none !important",border:"1px solid $omnivoreCtaYellow"}},ctaOutlineYellow:{boxSizing:"border-box","-moz-box-sizing":"border-box","-webkit-box-sizing":"border-box",borderColor:"unset",border:"1px solid $omnivoreCtaYellow",fontSize:"14px",fontWeight:500,fontStyle:"normal",fontFamily:"Inter",borderRadius:"8px",cursor:"pointer",color:"$utilityTextDefault",bg:"transparent",p:"9px 12px"},ctaLightGray:{border:0,fontSize:"14px",fontWeight:500,fontStyle:"normal",fontFamily:"Inter",borderRadius:"8px",cursor:"pointer",color:"$grayTextContrast",p:"10px 12px",bg:"rgb(125, 125, 125, 0.1)","&:hover":{bg:"rgb(47, 47, 47, 0.1)",".ctaButtonIcon":{visibility:"visible"}},".ctaButtonIcon":{visibility:"hidden"}},ctaGray:{border:0,fontSize:"14px",fontWeight:500,fontStyle:"normal",fontFamily:"Inter",borderRadius:"8px",cursor:"pointer",color:"$omnivoreGray",bg:"$grayBgActive",p:"10px 12px"},ctaWhite:{borderRadius:"$3",px:"$3",py:"$2",gap:"5px",cursor:"pointer",border:"1px solid $grayBgSubtle",bg:"$grayBgSubtle","&:hover":{border:"1px solid $grayBorderHover"}},outline:{display:"flex",borderRadius:"5px",alignItems:"center",px:"15px",py:"5px",gap:"10px",fontSize:"12px",fontWeight:"600",fontFamily:"$inter",cursor:"pointer",border:"1px solid $thBorderColor",bg:"transparent","&:hover":{border:"1px solid $grayBorderHover"}},cancel:{display:"flex",borderRadius:"5px",alignItems:"center",px:"15px",py:"5px",gap:"10px",fontSize:"12px",fontWeight:"600",fontFamily:"$inter",cursor:"pointer",bg:"$thBackground4",border:"1px solid $thBackground4","&:hover":{border:"1px solid $grayBorderHover"}},modalOption:{style:"ghost",height:"52px",width:"100%",textAlign:"left",verticalAlign:"middle",color:"#0A0806",backgroundColor:"unset",outlineColor:"rgba(0, 0, 0, 0)",border:"1px solid rgba(0, 0, 0, 0.06)",cursor:"pointer","&:focus":{outline:"none"}},ctaModal:{height:"32px",verticalAlign:"middle",color:"$thTextContrast",backgroundColor:"$grayBase",fontWeight:"600",padding:"0px 12px",fontSize:"16px",border:"1px solid $grayBorder",cursor:"pointer",borderRadius:"8px","&:focus":{outline:"none"}},ctaSecondary:{color:"$grayText",border:"none",bg:"transparent","&:hover":{opacity:.8}},ctaPill:{borderRadius:"$3",px:"$3",py:"$2",border:"1px solid $grayBorder",bg:"$grayBgActive","&:hover":{bg:"$grayBgHover",border:"1px solid $grayBorderHover"}},link:{color:"$grayText",border:"none",bg:"transparent","&:hover":{opacity:.8}},circularIcon:{mx:"$1",display:"flex",alignItems:"center",fontWeight:500,height:44,width:44,borderRadius:"50%",justifyContent:"center",textAlign:"center",background:"$grayBase",cursor:"pointer",border:"none",opacity:.9,"&:hover":{opacity:1}},squareIcon:{mx:"$1",display:"flex",alignItems:"center",fontWeight:500,height:44,width:44,justifyContent:"center",textAlign:"center",background:"$grayBase",cursor:"pointer",border:"none",borderRight:"1px solid $grayText",opacity:.9,"&:hover":{opacity:1}},plainIcon:{bg:"transparent",border:"none",cursor:"pointer","&:hover":{opacity:.7}},articleActionIcon:{bg:"transparent",border:"none",cursor:"pointer",padding:"4px",borderRadius:"5px","&:hover":{opacity:.7}},hoverActionIcon:{bg:"transparent",border:"none",cursor:"pointer",padding:"4px",height:"100%",pt:"6px",minWidth:"25px","&:hover":{bg:"$grayBgHover"}},ghost:{color:"transparent",border:"none",bg:"transparent",cursor:"pointer","&:hover":{opacity:.8}},themeSwitch:{p:"0px",m:"0px",ml:"0px",width:"60px",height:"48px",fontSize:"14px",border:"unset",borderRadius:"6px","&:hover":{transform:"scale(1.1)",border:"2px solid #F9D354"},'&[data-state="selected"]':{border:"2px solid #F9D354"}}}},defaultVariants:{style:"ctaWhite"}});function Qt(){return(0,je.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,je.jsx)("path",{d:"M4.5 20.25H8.68934C8.78783 20.25 8.88536 20.2306 8.97635 20.1929C9.06735 20.1552 9.15003 20.1 9.21967 20.0303L18 11.25L12.75 6.00001L3.96967 14.7803C3.90003 14.85 3.84478 14.9327 3.80709 15.0237C3.80379 15.0316 3.80063 15.0396 3.79761 15.0477C3.76615 15.1317 3.75 15.2208 3.75 15.3107V19.5C3.75 19.6989 3.82902 19.8897 3.96967 20.0303C4.11032 20.171 4.30109 20.25 4.5 20.25Z",fill:"#FFD234"}),(0,je.jsx)("path",{d:"M15.2197 3.53034L12.75 6.00001L18 11.25L20.4697 8.78034C20.6103 8.63969 20.6893 8.44892 20.6893 8.25001C20.6893 8.0511 20.6103 7.86033 20.4697 7.71968L16.2803 3.53034C16.1397 3.38969 15.9489 3.31067 15.75 3.31067C15.5511 3.31067 15.3603 3.38969 15.2197 3.53034Z",fill:"#FFD234"}),(0,je.jsx)("path",{d:"M8.68934 20.25H4.5C4.30109 20.25 4.11032 20.171 3.96967 20.0303C3.82902 19.8897 3.75 19.6989 3.75 19.5V15.3107C3.75 15.2122 3.7694 15.1147 3.80709 15.0237C3.84478 14.9327 3.90003 14.85 3.96967 14.7803L15.2197 3.53034C15.3603 3.38969 15.5511 3.31067 15.75 3.31067C15.9489 3.31067 16.1397 3.38969 16.2803 3.53034L20.4697 7.71968C20.6103 7.86033 20.6893 8.0511 20.6893 8.25001C20.6893 8.44892 20.6103 8.63969 20.4697 8.78034L9.21967 20.0303C9.15003 20.1 9.06735 20.1552 8.97635 20.1929C8.88536 20.2306 8.78783 20.25 8.68934 20.25Z",stroke:"#0A0806",strokeOpacity:"0.8",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,je.jsx)("path",{d:"M12.75 6L18 11.25",stroke:"#0A0806",strokeOpacity:"0.8",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,je.jsx)("path",{d:"M8.95223 20.2021L3.79785 15.0477",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}he(Wt,{variants:{style:{ctaWhite:{color:"red",padding:"10px",display:"flex",justifyContent:"center",alignItems:"center",border:"1px solid $grayBorder",boxSizing:"border-box",borderRadius:6,width:40,height:40},searchButton:{cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",p:"0px",mr:"5px",width:"28px",height:"28px",color:"#898989",border:"unset",background:"transparent",boxSizing:"border-box",borderRadius:6}}}});var Gt=(0,u.createContext)({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),$t=function(e,t,n){var r=n.get(e);return r?r(t):(console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'),null)};function Yt(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var Zt=(0,u.forwardRef)((function(e,t){var n=e.alt,r=e.color,o=e.size,i=e.weight,a=e.mirrored,l=e.children,s=e.renderPath,c=Yt(e,["alt","color","size","weight","mirrored","children","renderPath"]),d=(0,u.useContext)(Gt),f=d.color,p=void 0===f?"currentColor":f,h=d.size,g=d.weight,m=void 0===g?"regular":g,v=d.mirrored,b=void 0!==v&&v,y=Yt(d,["color","size","weight","mirrored"]);return u.createElement("svg",Object.assign({ref:t,xmlns:"http://www.w3.org/2000/svg",width:null!=o?o:h,height:null!=o?o:h,fill:null!=r?r:p,viewBox:"0 0 256 256",transform:a||b?"scale(-1, 1)":void 0},y,c),!!n&&u.createElement("title",null,n),l,u.createElement("rect",{width:"256",height:"256",fill:"none"}),s(null!=i?i:m,null!=r?r:p))}));Zt.displayName="IconBase";const Jt=Zt;var Kt=new Map;Kt.set("bold",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"216",y1:"60",x2:"40",y2:"60",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),u.createElement("line",{x1:"104",y1:"104",x2:"104",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),u.createElement("line",{x1:"152",y1:"104",x2:"152",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),u.createElement("path",{d:"M200,60V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V60",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),u.createElement("path",{d:"M168,60V36a16,16,0,0,0-16-16H104A16,16,0,0,0,88,36V60",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),Kt.set("duotone",(function(e){return u.createElement(u.Fragment,null,u.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),u.createElement("line",{x1:"216",y1:"56",x2:"40",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("line",{x1:"104",y1:"104",x2:"104",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("line",{x1:"152",y1:"104",x2:"152",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("path",{d:"M168,56V40a16,16,0,0,0-16-16H104A16,16,0,0,0,88,40V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),Kt.set("fill",(function(){return u.createElement(u.Fragment,null,u.createElement("path",{d:"M216,48H176V40a24.1,24.1,0,0,0-24-24H104A24.1,24.1,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z"}))})),Kt.set("light",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"216",y1:"56",x2:"40",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),u.createElement("line",{x1:"104",y1:"104",x2:"104",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),u.createElement("line",{x1:"152",y1:"104",x2:"152",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),u.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),u.createElement("path",{d:"M168,56V40a16,16,0,0,0-16-16H104A16,16,0,0,0,88,40V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),Kt.set("thin",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"216",y1:"56",x2:"40",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),u.createElement("line",{x1:"104",y1:"104",x2:"104",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),u.createElement("line",{x1:"152",y1:"104",x2:"152",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),u.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),u.createElement("path",{d:"M168,56V40a16,16,0,0,0-16-16H104A16,16,0,0,0,88,40V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),Kt.set("regular",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"216",y1:"56",x2:"40",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("line",{x1:"104",y1:"104",x2:"104",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("line",{x1:"152",y1:"104",x2:"152",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("path",{d:"M168,56V40a16,16,0,0,0-16-16H104A16,16,0,0,0,88,40V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var Xt=function(e,t){return $t(e,t,Kt)},en=(0,u.forwardRef)((function(e,t){return u.createElement(Jt,Object.assign({ref:t},e,{renderPath:Xt}))}));en.displayName="Trash";const tn=en;var nn=new Map;nn.set("bold",(function(e){return u.createElement(u.Fragment,null,u.createElement("path",{d:"M122.7,25.9,42,42,25.9,122.7a8,8,0,0,0,2.2,7.2L132.5,234.3a7.9,7.9,0,0,0,11.3,0l90.5-90.5a7.9,7.9,0,0,0,0-11.3L129.9,28.1A8,8,0,0,0,122.7,25.9Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),u.createElement("circle",{cx:"84",cy:"84",r:"16"}))})),nn.set("duotone",(function(e){return u.createElement(u.Fragment,null,u.createElement("path",{d:"M122.7,25.9,42,42,25.9,122.7a8,8,0,0,0,2.2,7.2L132.5,234.3a7.9,7.9,0,0,0,11.3,0l90.5-90.5a7.9,7.9,0,0,0,0-11.3L129.9,28.1A8,8,0,0,0,122.7,25.9Z",opacity:"0.2"}),u.createElement("path",{d:"M122.7,25.9,42,42,25.9,122.7a8,8,0,0,0,2.2,7.2L132.5,234.3a7.9,7.9,0,0,0,11.3,0l90.5-90.5a7.9,7.9,0,0,0,0-11.3L129.9,28.1A8,8,0,0,0,122.7,25.9Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("circle",{cx:"84",cy:"84",r:"12"}))})),nn.set("fill",(function(){return u.createElement(u.Fragment,null,u.createElement("path",{d:"M240,126.9,135.5,22.4A15.9,15.9,0,0,0,121.1,18L40.4,34.2a7.9,7.9,0,0,0-6.2,6.2L18,121.1a15.9,15.9,0,0,0,4.4,14.4L126.9,240a15.9,15.9,0,0,0,22.6,0L240,149.5a15.9,15.9,0,0,0,0-22.6ZM84,96A12,12,0,1,1,96,84,12,12,0,0,1,84,96Z"}))})),nn.set("light",(function(e){return u.createElement(u.Fragment,null,u.createElement("path",{d:"M122.7,25.9,42,42,25.9,122.7a8,8,0,0,0,2.2,7.2L132.5,234.3a7.9,7.9,0,0,0,11.3,0l90.5-90.5a7.9,7.9,0,0,0,0-11.3L129.9,28.1A8,8,0,0,0,122.7,25.9Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),u.createElement("circle",{cx:"84",cy:"84",r:"10"}))})),nn.set("thin",(function(e){return u.createElement(u.Fragment,null,u.createElement("path",{d:"M122.7,25.9,42,42,25.9,122.7a8,8,0,0,0,2.2,7.2L132.5,234.3a7.9,7.9,0,0,0,11.3,0l90.5-90.5a7.9,7.9,0,0,0,0-11.3L129.9,28.1A8,8,0,0,0,122.7,25.9Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),u.createElement("circle",{cx:"84",cy:"84",r:"8"}))})),nn.set("regular",(function(e){return u.createElement(u.Fragment,null,u.createElement("path",{d:"M122.7,25.9,42,42,25.9,122.7a8,8,0,0,0,2.2,7.2L132.5,234.3a7.9,7.9,0,0,0,11.3,0l90.5-90.5a7.9,7.9,0,0,0,0-11.3L129.9,28.1A8,8,0,0,0,122.7,25.9Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("circle",{cx:"84",cy:"84",r:"12"}))}));var rn=function(e,t){return $t(e,t,nn)},on=(0,u.forwardRef)((function(e,t){return u.createElement(Jt,Object.assign({ref:t},e,{renderPath:rn}))}));on.displayName="Tag";const an=on;var ln=new Map;ln.set("bold",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"96",y1:"108",x2:"160",y2:"108",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),u.createElement("line",{x1:"96",y1:"148",x2:"116",y2:"148",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),u.createElement("path",{d:"M156.7,216H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H208a8,8,0,0,1,8,8V156.7a7.9,7.9,0,0,1-2.3,5.6l-51.4,51.4A7.9,7.9,0,0,1,156.7,216Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),u.createElement("polyline",{points:"215.3 156 156 156 156 215.3",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),ln.set("duotone",(function(e){return u.createElement(u.Fragment,null,u.createElement("polygon",{points:"216 160 160 160 160 216 216 160",opacity:"0.2"}),u.createElement("line",{x1:"96",y1:"96",x2:"160",y2:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("line",{x1:"96",y1:"128",x2:"160",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("line",{x1:"96",y1:"160",x2:"128",y2:"160",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("path",{d:"M156.7,216H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H208a8,8,0,0,1,8,8V156.7a7.9,7.9,0,0,1-2.3,5.6l-51.4,51.4A7.9,7.9,0,0,1,156.7,216Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("polyline",{points:"215.3 160 160 160 160 215.3",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),ln.set("fill",(function(){return u.createElement(u.Fragment,null,u.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H156.7a15.9,15.9,0,0,0,11.3-4.7L219.3,168a15.9,15.9,0,0,0,4.7-11.3V48A16,16,0,0,0,208,32ZM96,88h64a8,8,0,0,1,0,16H96a8,8,0,0,1,0-16Zm32,80H96a8,8,0,0,1,0-16h32a8,8,0,0,1,0,16ZM96,136a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm64,68.7V160h44.7Z"}))})),ln.set("light",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"96",y1:"96",x2:"160",y2:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),u.createElement("line",{x1:"96",y1:"128",x2:"160",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),u.createElement("line",{x1:"96",y1:"160",x2:"128",y2:"160",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),u.createElement("path",{d:"M156.7,216H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H208a8,8,0,0,1,8,8V156.7a7.9,7.9,0,0,1-2.3,5.6l-51.4,51.4A7.9,7.9,0,0,1,156.7,216Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),u.createElement("polyline",{points:"215.3 160 160 160 160 215.3",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),ln.set("thin",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"96",y1:"96",x2:"160",y2:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),u.createElement("line",{x1:"96",y1:"128",x2:"160",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),u.createElement("line",{x1:"96",y1:"160",x2:"128",y2:"160",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),u.createElement("path",{d:"M156.7,216H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H208a8,8,0,0,1,8,8V156.7a7.9,7.9,0,0,1-2.3,5.6l-51.4,51.4A7.9,7.9,0,0,1,156.7,216Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),u.createElement("polyline",{points:"215.3 160 160 160 160 215.3",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),ln.set("regular",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"96",y1:"96",x2:"160",y2:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("line",{x1:"96",y1:"128",x2:"160",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("line",{x1:"96",y1:"160",x2:"128",y2:"160",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("path",{d:"M156.7,216H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H208a8,8,0,0,1,8,8V156.7a7.9,7.9,0,0,1-2.3,5.6l-51.4,51.4A7.9,7.9,0,0,1,156.7,216Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("polyline",{points:"215.3 160 160 160 160 215.3",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var sn=function(e,t){return $t(e,t,ln)},un=(0,u.forwardRef)((function(e,t){return u.createElement(Jt,Object.assign({ref:t},e,{renderPath:sn}))}));un.displayName="Note";const cn=un;var dn=new Map;dn.set("bold",(function(e){return u.createElement(u.Fragment,null,u.createElement("polyline",{points:"168 168 216 168 216 40 88 40 88 88",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),u.createElement("rect",{x:"40",y:"88",width:"128",height:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),dn.set("duotone",(function(e){return u.createElement(u.Fragment,null,u.createElement("polygon",{points:"168 88 168 168 216 168 216 40 88 40 88 88 168 88",opacity:"0.2"}),u.createElement("polyline",{points:"168 168 216 168 216 40 88 40 88 88",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("rect",{x:"40",y:"88",width:"128",height:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),dn.set("fill",(function(){return u.createElement(u.Fragment,null,u.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z"}))})),dn.set("light",(function(e){return u.createElement(u.Fragment,null,u.createElement("polyline",{points:"168 168 216 168 216 40 88 40 88 88",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),u.createElement("rect",{x:"40",y:"88",width:"128",height:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),dn.set("thin",(function(e){return u.createElement(u.Fragment,null,u.createElement("polyline",{points:"168 168 216 168 216 40 88 40 88 88",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),u.createElement("rect",{x:"40",y:"88",width:"128",height:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),dn.set("regular",(function(e){return u.createElement(u.Fragment,null,u.createElement("polyline",{points:"168 168 216 168 216 40 88 40 88 88",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("rect",{x:"40",y:"88",width:"128",height:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var fn=function(e,t){return $t(e,t,dn)},pn=(0,u.forwardRef)((function(e,t){return u.createElement(Jt,Object.assign({ref:t},e,{renderPath:fn}))}));pn.displayName="Copy";const hn=pn;function gn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mn(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0,n=(_n[e[t+0]]+_n[e[t+1]]+_n[e[t+2]]+_n[e[t+3]]+"-"+_n[e[t+4]]+_n[e[t+5]]+"-"+_n[e[t+6]]+_n[e[t+7]]+"-"+_n[e[t+8]]+_n[e[t+9]]+"-"+_n[e[t+10]]+_n[e[t+11]]+_n[e[t+12]]+_n[e[t+13]]+_n[e[t+14]]+_n[e[t+15]]).toLowerCase();if(!Cn(n))throw TypeError("Stringified UUID is invalid");return n}(r)};let Dn=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),"");function On(e){var t=e.startContainer.nodeValue,n=e.endContainer.nodeValue,r=!!e.toString().match(/[\u1C88\u3131-\uD79D]/gi),o=r?e.startOffset:Bn(e.startOffset,!1,t),i=r?e.endOffset:Bn(e.endOffset,!0,n);try{e.setStart(e.startContainer,o),e.setEnd(e.endContainer,i)}catch(e){console.warn("Unable to snap selection to the next word")}}var Rn=function(e){return!!e&&/\u2014|\u2013|,|\s/.test(e)};function Bn(e,t,n){if(!n)return e;var r=n.split(""),o=e;if(t){if(Rn(r[o-1]))return o-1;for(;o0;){if(Rn(r[o-1]))return o;o--}}return o}function Nn(e){return function(e){if(Array.isArray(e))return Pn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Pn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pn(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0,o=t.selection,i=o.range,a=o.selection,On(i),(l=document.createElement("div")).appendChild(i.cloneContents()),s=Ln(),u=_t(i),Pt(u)){e.next=11;break}return e.abrupt("return",{errorMessage:"Highlight is too long"});case 11:if(a.isCollapsed||a.collapseToStart(),c=[],t.annotation&&c.push(t.annotation),r&&(t.selection.overlapHighlights.forEach((function(e){var n=t.existingHighlights.find((function(t){return t.id===e})),r=null==n?void 0:n.annotation;r&&c.push(r)})),wn(t.selection.overlapHighlights,t.highlightStartEndOffsets)),d=Ct(u,s,c.length>0),f={id:s,shortId:Dn(8),patch:u,prefix:d.prefix,suffix:d.suffix,quote:Un(l.innerHTML),html:l.innerHTML,annotation:c.length>0?c.join("\n"):void 0,articleId:t.articleId,highlightPositionPercent:t.highlightPositionPercent,highlightPositionAnchorIndex:t.highlightPositionAnchorIndex},h=t.existingHighlights,!r){e.next=25;break}return e.next=21,n.mergeHighlightMutation(In(In({},f),{},{overlapHighlightIdList:t.selection.overlapHighlights}));case 21:p=e.sent,h=t.existingHighlights.filter((function(e){return!t.selection.overlapHighlights.includes(e.id)})),e.next=28;break;case 25:return e.next=27,n.createHighlightMutation(f);case 27:p=e.sent;case 28:if(document.dispatchEvent(new Event("highlightsUpdated")),!p){e.next=34;break}return g=[].concat(Nn(h),[p]),e.abrupt("return",{highlights:g,newHighlightIndex:g.length>0?g.length-1:void 0});case 34:return e.abrupt("return",{highlights:t.existingHighlights,errorMessage:"Could not create highlight"});case 35:case"end":return e.stop()}}),e)}))),Vn.apply(this,arguments)}var Wn=new WeakMap,Qn=new WeakMap,Gn={},$n=0,Yn=function(){return Yn=Object.assign||function(e){for(var t,n=1,r=arguments.length;nr[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},pr=function(e,t){return"v"===e?function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)}(t):function(e){var t=window.getComputedStyle(e);return"range"===e.type||"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)}(t)},hr=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},gr=!1;if("undefined"!=typeof window)try{var mr=Object.defineProperty({},"passive",{get:function(){return gr=!0,!0}});window.addEventListener("test",mr,mr),window.removeEventListener("test",mr,mr)}catch(e){gr=!1}var vr=!!gr&&{passive:!1},br=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},yr=function(e){return[e.deltaX,e.deltaY]},Ar=function(e){return e&&"current"in e?e.current:e},wr=function(e){return"\n .block-interactivity-"+e+" {pointer-events: none;}\n .allow-interactivity-"+e+" {pointer-events: all;}\n"},xr=0,kr=[];const Er=(Sr=function(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(xr++)[0],i=u.useState((function(){return ir()}))[0],a=u.useRef(e);u.useEffect((function(){a.current=e}),[e]),u.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-"+o);var t=[e.lockRef.current].concat((e.shards||[]).map(Ar)).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-"+o)})),function(){document.body.classList.remove("block-interactivity-"+o),t.forEach((function(e){return e.classList.remove("allow-interactivity-"+o)}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=u.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var o,i=br(e),l=n.current,s="deltaX"in e?e.deltaX:l[0]-i[0],u="deltaY"in e?e.deltaY:l[1]-i[1],c=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v",f=fr(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=fr(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var i=r,a=n.target,l=t.contains(a),s=!1,u=i>0,c=0,d=0;do{var f=hr(e,a),p=f[0],h=f[1]-f[2]-p;(p||h)&&pr(e,a)&&(c+=h,d+=p),a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&(0===c||!1)||!u&&(0===d||!1))&&(s=!0),s}(p,t,e,"h"===p?s:u)}),[]),s=u.useCallback((function(e){var n=e;if(kr.length&&kr[kr.length-1]===i){var r="deltaY"in n?yr(n):br(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)}))[0];if(o&&o.should)n.preventDefault();else if(!o){var s=(a.current.shards||[]).map(Ar).filter(Boolean).filter((function(e){return e.contains(n.target)}));(s.length>0?l(n,s[0]):!a.current.noIsolation)&&n.preventDefault()}}}),[]),c=u.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),d=u.useCallback((function(e){n.current=br(e),r.current=void 0}),[]),f=u.useCallback((function(t){c(t.type,yr(t),t.target,l(t,e.lockRef.current))}),[]),p=u.useCallback((function(t){c(t.type,br(t),t.target,l(t,e.lockRef.current))}),[]);u.useEffect((function(){return kr.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",s,vr),document.addEventListener("touchmove",s,vr),document.addEventListener("touchstart",d,vr),function(){kr=kr.filter((function(e){return e!==i})),document.removeEventListener("wheel",s,vr),document.removeEventListener("touchmove",s,vr),document.removeEventListener("touchstart",d,vr)}}),[]);var h=e.removeScrollBar,g=e.inert;return u.createElement(u.Fragment,null,g?u.createElement(i,{styles:wr(o)}):null,h?u.createElement(dr,{gapMode:"margin"}):null)},er.useMedium(Sr),rr);var Sr,Cr=u.forwardRef((function(e,t){return u.createElement(nr,Yn({},e,{ref:t,sideCar:Er}))}));Cr.classNames=nr.classNames;const _r=Cr;let Tr=0;function Lr(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const Dr=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:u.forwardRef(((e,n)=>{const{asChild:r,...o}=e,i=r?Ce:t;return u.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),u.createElement(i,Se({},o,{ref:n}))}))})),{}),Or=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?u.useLayoutEffect:()=>{},Rr=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=u.useState(),r=u.useRef({}),o=u.useRef(e),i=u.useRef("none"),a=e?"mounted":"unmounted",[l,s]=function(e,t){return u.useReducer(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect((()=>{const e=Br(r.current);i.current="mounted"===l?e:"none"}),[l]),Or((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=Br(t);if(e)s("MOUNT");else if("none"===a||"none"===(null==t?void 0:t.display))s("UNMOUNT");else{const e=r!==a;s(n&&e?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,s]),Or((()=>{if(t){const e=e=>{const n=Br(r.current).includes(e.animationName);e.target===t&&n&&s("ANIMATION_END")},n=e=>{e.target===t&&(i.current=Br(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}s("ANIMATION_END")}),[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:u.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):u.Children.only(n),i=Ee(r.ref,o.ref);return"function"==typeof n||r.isPresent?u.cloneElement(o,{ref:i}):null};function Br(e){return(null==e?void 0:e.animationName)||"none"}Rr.displayName="Presence";const Nr=u.forwardRef(((e,t)=>{var n;const{container:r=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=e;return r?d.createPortal(u.createElement(Dr.div,Se({},o,{ref:t})),r):null}));function Pr(e){const t=u.useRef(e);return u.useEffect((()=>{t.current=e})),u.useMemo((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}const Mr={bubbles:!1,cancelable:!0},Ir=u.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[l,s]=u.useState(null),c=Pr(o),d=Pr(i),f=u.useRef(null),p=Ee(t,(e=>s(e))),h=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect((()=>{if(r){function e(e){if(h.paused||!l)return;const t=e.target;l.contains(t)?f.current=t:Hr(f.current,{select:!0})}function t(e){!h.paused&&l&&(l.contains(e.relatedTarget)||Hr(f.current,{select:!0}))}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}}),[r,l,h.paused]),u.useEffect((()=>{if(l){Ur.add(h);const e=document.activeElement;if(!l.contains(e)){const t=new Event("focusScope.autoFocusOnMount",Mr);l.addEventListener("focusScope.autoFocusOnMount",c),l.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Hr(r,{select:t}),document.activeElement!==n)return}(jr(l).filter((e=>"A"!==e.tagName)),{select:!0}),document.activeElement===e&&Hr(l))}return()=>{l.removeEventListener("focusScope.autoFocusOnMount",c),setTimeout((()=>{const t=new Event("focusScope.autoFocusOnUnmount",Mr);l.addEventListener("focusScope.autoFocusOnUnmount",d),l.dispatchEvent(t),t.defaultPrevented||Hr(null!=e?e:document.body,{select:!0}),l.removeEventListener("focusScope.autoFocusOnUnmount",d),Ur.remove(h)}),0)}}}),[l,c,d,h]);const g=u.useCallback((e=>{if(!n&&!r)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=jr(e);return[Fr(t,e),Fr(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&Hr(i,{select:!0})):(e.preventDefault(),n&&Hr(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,h.paused]);return u.createElement(Dr.div,Se({tabIndex:-1},a,{ref:p,onKeyDown:g}))}));function jr(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Fr(e,t){for(const n of e)if(!qr(n,{upTo:t}))return n}function qr(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Hr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const Ur=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=zr(e,t),e.unshift(t)},remove(t){var n;e=zr(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function zr(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}let Vr,Wr=0;function Qr(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}const Gr=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$r=u.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:l,...s}=e,c=u.useContext(Gr),[d,f]=u.useState(null),[,p]=u.useState({}),h=Ee(t,(e=>f(e))),g=Array.from(c.layers),[m]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(m),b=d?g.indexOf(d):-1,y=c.layersWithOutsidePointerEventsDisabled.size>0,A=b>=v,w=function(e){const t=Pr((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));A&&!n&&(null==o||o(e),null==a||a(e),e.defaultPrevented||null==l||l())})),n=u.useRef(!1);return u.useEffect((()=>{const e=e=>{e.target&&!n.current&&Zr("dismissableLayer.pointerDownOutside",t,{originalEvent:e}),n.current=!1},r=window.setTimeout((()=>{document.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(r),document.removeEventListener("pointerdown",e)}}),[t]),{onPointerDownCapture:()=>n.current=!0}}(),x=function(e){const t=Pr((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==i||i(e),null==a||a(e),e.defaultPrevented||null==l||l())})),n=u.useRef(!1);return u.useEffect((()=>{const e=e=>{e.target&&!n.current&&Zr("dismissableLayer.focusOutside",t,{originalEvent:e})};return document.addEventListener("focusin",e),()=>document.removeEventListener("focusin",e)}),[t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}();return function(e){const t=Pr((e=>{b===c.layers.size-1&&(null==r||r(e),e.defaultPrevented||null==l||l())}));u.useEffect((()=>{const e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[t])}(),function({disabled:e}){const t=u.useRef(!1);Or((()=>{if(e){function n(){Wr--,0===Wr&&(document.body.style.pointerEvents=Vr)}function r(e){t.current="mouse"!==e.pointerType}return 0===Wr&&(Vr=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Wr++,document.addEventListener("pointerup",r),()=>{t.current?document.addEventListener("click",n,{once:!0}):n(),document.removeEventListener("pointerup",r)}}}),[e])}({disabled:n}),u.useEffect((()=>{d&&(n&&c.layersWithOutsidePointerEventsDisabled.add(d),c.layers.add(d),Yr())}),[d,n,c]),u.useEffect((()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Yr())}),[d,c]),u.useEffect((()=>{const e=()=>p({});return document.addEventListener("dismissableLayer.update",e),()=>document.removeEventListener("dismissableLayer.update",e)}),[]),u.createElement(Dr.div,Se({},s,{ref:h,style:{pointerEvents:y?A?"auto":"none":void 0,...e.style},onFocusCapture:Qr(e.onFocusCapture,x.onFocusCapture),onBlurCapture:Qr(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:Qr(e.onPointerDownCapture,w.onPointerDownCapture)}))}));function Yr(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function Zr(e,t,n){const r=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});return t&&r.addEventListener(e,t,{once:!0}),!r.dispatchEvent(o)}const Jr=c["useId".toString()]||(()=>{});let Kr=0;function Xr(e){const[t,n]=u.useState(Jr());return Or((()=>{e||n((e=>null!=e?e:String(Kr++)))}),[e]),e||(t?`radix-${t}`:"")}function eo(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>u.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return u.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=u.createContext(r),i=n.length;function a(t){const{scope:n,children:r,...a}=t,l=(null==n?void 0:n[e][i])||o,s=u.useMemo((()=>a),Object.values(a));return u.createElement(l.Provider,{value:s},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){const l=(null==a?void 0:a[e][i])||o,s=u.useContext(l);if(s)return s;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},to(r,...t)]}function to(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return u.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}const[no,ro]=eo("Dialog"),[oo,io]=no("Dialog"),ao=u.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,o=io("DialogOverlay",e.__scopeDialog);return o.modal?u.createElement(Rr,{present:n||o.open},u.createElement(lo,Se({},r,{ref:t}))):null})),lo=u.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=io("DialogOverlay",n);return u.createElement(_r,{as:Ce,allowPinchZoom:o.allowPinchZoom,shards:[o.contentRef]},u.createElement(Dr.div,Se({"data-state":po(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))})),so=u.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,o=io("DialogContent",e.__scopeDialog);return u.createElement(Rr,{present:n||o.open},o.modal?u.createElement(uo,Se({},r,{ref:t})):u.createElement(co,Se({},r,{ref:t})))})),uo=u.forwardRef(((e,t)=>{const n=io("DialogContent",e.__scopeDialog),r=u.useRef(null),o=Ee(t,n.contentRef,r);return u.useEffect((()=>{const e=r.current;if(e)return function(e,t,n){void 0===t&&(t=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e)),void 0===n&&(n="data-aria-hidden");var r=Array.isArray(e)?e:[e];Gn[n]||(Gn[n]=new WeakMap);var o=Gn[n],i=[],a=new Set,l=function(e){e&&!a.has(e)&&(a.add(e),l(e.parentNode))};r.forEach(l);var s=function(e){!e||r.indexOf(e)>=0||Array.prototype.forEach.call(e.children,(function(e){if(a.has(e))s(e);else{var t=e.getAttribute("aria-hidden"),r=null!==t&&"false"!==t,l=(Wn.get(e)||0)+1,u=(o.get(e)||0)+1;Wn.set(e,l),o.set(e,u),i.push(e),1===l&&r&&Qn.set(e,!0),1===u&&e.setAttribute(n,"true"),r||e.setAttribute("aria-hidden","true")}}))};return s(t),a.clear(),$n++,function(){i.forEach((function(e){var t=Wn.get(e)-1,r=o.get(e)-1;Wn.set(e,t),o.set(e,r),t||(Qn.has(e)||e.removeAttribute("aria-hidden"),Qn.delete(e)),r||e.removeAttribute(n)})),--$n||(Wn=new WeakMap,Wn=new WeakMap,Qn=new WeakMap,Gn={})}}(e)}),[]),u.createElement(fo,Se({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Qr(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:Qr(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:Qr(e.onFocusOutside,(e=>e.preventDefault()))}))})),co=u.forwardRef(((e,t)=>{const n=io("DialogContent",e.__scopeDialog),r=u.useRef(!1);return u.createElement(fo,Se({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,i;null===(o=e.onCloseAutoFocus)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),r.current=!1},onInteractOutside:t=>{var o,i;null===(o=e.onInteractOutside)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current=!0);const a=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(a))&&t.preventDefault()}}))})),fo=u.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,l=io("DialogContent",n),s=Ee(t,u.useRef(null));return u.useEffect((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:Lr()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:Lr()),Tr++,()=>{1===Tr&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),Tr--}}),[]),u.createElement(u.Fragment,null,u.createElement(Ir,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},u.createElement($r,Se({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":po(l.open)},a,{ref:s,onDismiss:()=>l.onOpenChange(!1)}))),!1)}));function po(e){return e?"open":"closed"}const[ho,go]=function(e,t){const n=u.createContext(t);function r(e){const{children:t,...r}=e,o=u.useMemo((()=>r),Object.values(r));return u.createElement(n.Provider,{value:o},t)}return r.displayName=e+"Provider",[r,function(r){const o=u.useContext(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}("DialogTitleWarning",{contentName:"DialogContent",titleName:"DialogTitle",docsSlug:"dialog"}),mo=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=io("DialogPortal",t);return u.createElement(u.Fragment,null,u.Children.map(r,(e=>u.createElement(Rr,{present:n||i.open},u.createElement(Nr,{asChild:!0,container:o},e)))))},vo=ao,bo=so;var yo=new Map;yo.set("bold",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"200",y1:"56",x2:"56",y2:"200",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),u.createElement("line",{x1:"200",y1:"200",x2:"56",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),yo.set("duotone",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"200",y1:"56",x2:"56",y2:"200",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("line",{x1:"200",y1:"200",x2:"56",y2:"56",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),yo.set("fill",(function(){return u.createElement(u.Fragment,null,u.createElement("path",{d:"M139.3,128l66.4-66.3a8.1,8.1,0,0,0-11.4-11.4L128,116.7,61.7,50.3A8.1,8.1,0,0,0,50.3,61.7L116.7,128,50.3,194.3a8.1,8.1,0,0,0,0,11.4,8.2,8.2,0,0,0,11.4,0L128,139.3l66.3,66.4a8.2,8.2,0,0,0,11.4,0,8.1,8.1,0,0,0,0-11.4Z"}))})),yo.set("light",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"200",y1:"56",x2:"56",y2:"200",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),u.createElement("line",{x1:"200",y1:"200",x2:"56",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),yo.set("thin",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"200",y1:"56",x2:"56",y2:"200",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),u.createElement("line",{x1:"200",y1:"200",x2:"56",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),yo.set("regular",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"200",y1:"56",x2:"56",y2:"200",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("line",{x1:"200",y1:"200",x2:"56",y2:"56",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var Ao=function(e,t){return $t(e,t,yo)},wo=(0,u.forwardRef)((function(e,t){return u.createElement(Jt,Object.assign({ref:t},e,{renderPath:Ao}))}));wo.displayName="X";const xo=wo;function ko(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0,allowPinchZoom:l}=e,s=u.useRef(null),c=u.useRef(null),[d=!1,f]=function({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=u.useState(e),[r]=n,o=u.useRef(r),i=Pr(t);return u.useEffect((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,l=Pr(n);return[a,u.useCallback((t=>{if(i){const n=t,r="function"==typeof t?n(e):t;r!==e&&l(r)}else o(t)}),[i,e,o,l])]}({prop:r,defaultProp:o,onChange:i});return u.createElement(oo,{scope:t,triggerRef:s,contentRef:c,contentId:Xr(),titleId:Xr(),descriptionId:Xr(),open:d,onOpenChange:f,onOpenToggle:u.useCallback((()=>f((e=>!e))),[f]),modal:a,allowPinchZoom:l},n)}),{}),No=ve({"0%":{opacity:0},"100%":{opacity:1}}),Po=he(vo,{backgroundColor:"$overlay",width:"100vw",height:"100vh",position:"fixed",zIndex:10,inset:0,"@media (prefers-reduced-motion: no-preference)":{animation:"".concat(No," 150ms cubic-bezier(0.16, 1, 0.3, 1)")}}),Mo=he(bo,{backgroundColor:"$grayBg",borderRadius:6,boxShadow:ge.shadows.cardBoxShadow.toString(),position:"fixed","&:focus":{outline:"none"}}),Io=he(Mo,{top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"90vw",maxWidth:"450px",maxHeight:"85vh","@smDown":{maxWidth:"95%",width:"95%"},zIndex:"10"}),jo=function(e){return(0,je.jsxs)(Ve,{distribution:"between",alignment:"center",css:{height:"50px",width:"100%"},children:[(0,je.jsx)(ut,{style:"modalHeadline",children:e.title}),(0,je.jsx)(He,{css:{ml:"auto"},children:(0,je.jsx)(Eo,{close:function(){return e.onOpenChange(!1)}})})]})},Fo=function(e){return(0,je.jsxs)(Ve,{alignment:"center",distribution:"end",css:{gap:"10px",width:"100%",height:"80px","input:focus":{outline:"5px auto -webkit-focus-ring-color"},"button:focus":{outline:"5px auto -webkit-focus-ring-color"}},children:[(0,je.jsx)(Wt,{style:"cancelGeneric",type:"button",onClick:function(t){t.preventDefault(),e.onOpenChange(!1)},children:"Cancel"}),(0,je.jsx)(Wt,{style:"ctaDarkYellow",children:e.acceptButtonLabel||"Submit"})]})},qo=he("textarea",{outline:"none",border:"none",overflow:"auto",resize:"none",background:"unset",color:"$grayText",fontSize:"$3",fontFamily:"inter",lineHeight:"1.35","&::placeholder":{opacity:.7}}),Ho=(he(qo,{borderRadius:"6px",border:"1px solid $grayBorder",p:"$3",fontSize:"$1"}),o(6647)),Uo={prod:{webBaseURL:null!==(So=window.omnivoreEnv.NEXT_PUBLIC_BASE_URL)&&void 0!==So?So:"",serverBaseURL:null!==(Co=window.omnivoreEnv.NEXT_PUBLIC_SERVER_BASE_URL)&&void 0!==Co?Co:""},dev:{webBaseURL:null!==(_o=window.omnivoreEnv.NEXT_PUBLIC_DEV_BASE_URL)&&void 0!==_o?_o:"",serverBaseURL:null!==(To=window.omnivoreEnv.NEXT_PUBLIC_DEV_SERVER_BASE_URL)&&void 0!==To?To:""},demo:{webBaseURL:null!==(Lo=window.omnivoreEnv.NEXT_PUBLIC_DEMO_BASE_URL)&&void 0!==Lo?Lo:"",serverBaseURL:null!==(Do=window.omnivoreEnv.NEXT_PUBLIC_DEMO_SERVER_BASE_URL)&&void 0!==Do?Do:""},local:{webBaseURL:null!==(Oo=window.omnivoreEnv.NEXT_PUBLIC_LOCAL_BASE_URL)&&void 0!==Oo?Oo:"",serverBaseURL:null!==(Ro=window.omnivoreEnv.NEXT_PUBLIC_LOCAL_SERVER_BASE_URL)&&void 0!==Ro?Ro:""}};function zo(e){var t=Uo[Wo].serverBaseURL;if(0==t.length)throw new Error("Couldn't find environment variable for server base url in ".concat(e," environment"));return t}var Vo,Wo=window.omnivoreEnv.NEXT_PUBLIC_APP_ENV||"prod",Qo=(window.omnivoreEnv.SENTRY_DSN||window.omnivoreEnv.NEXT_PUBLIC_SENTRY_DSN,window.omnivoreEnv.NEXT_PUBLIC_PSPDFKIT_LICENSE_KEY,window.omnivoreEnv.SSO_JWT_SECRET,"".concat(Uo[Wo].serverBaseURL,"local"==Wo?"/api/auth/gauth-redirect-localhost":"/api/auth/vercel/gauth-redirect"),"".concat(Uo[Wo].serverBaseURL,"local"==Wo?"/api/auth/apple-redirect-localhost":"/api/auth/vercel/apple-redirect"),window.omnivoreEnv.NEXT_PUBLIC_INTERCOM_APP_ID,window.omnivoreEnv.NEXT_PUBLIC_SEGMENT_API_KEY,"prod"==Wo?window.omnivoreEnv.NEXT_PUBLIC_GOOGLE_ID:window.omnivoreEnv.NEXT_PUBLIC_DEV_GOOGLE_ID,"".concat(zo(Wo),"/api/graphql")),Go="".concat(zo(Wo),"/api");function $o(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Yo(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){$o(i,r,o,a,l,"next",e)}function l(e){$o(i,r,o,a,l,"throw",e)}a(void 0)}))}}function Zo(){var e,t,n=(null===(e=window)||void 0===e?void 0:e.localStorage.getItem("authToken"))||void 0,r=(null===(t=window)||void 0===t?void 0:t.localStorage.getItem("pendingUserAuth"))||void 0;return n?{authorization:n}:r?{pendingUserAuth:r}:{}}function Jo(e,t){return Ko(e,t,!1)}function Ko(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];n&&Xo();var r=new Ho.GraphQLClient(Qo,{credentials:"include",mode:"cors"});return r.request(e,t,Zo())}function Xo(){return ei.apply(this,arguments)}function ei(){return(ei=Yo(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("undefined"!=typeof window){e.next=2;break}return e.abrupt("return");case 2:if(!window.localStorage.getItem("authVerified")){e.next=4;break}return e.abrupt("return");case 4:return e.prev=4,e.next=7,fetch("".concat(Go,"/auth/verify"),{credentials:"include",mode:"cors",headers:Zo()});case 7:if(200===(t=e.sent).status){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,t.json();case 12:n=e.sent,r=n.authStatus,e.t0=r,e.next="AUTHENTICATED"===e.t0?17:"PENDING_USER"===e.t0?19:"NOT_AUTHENTICATED"===e.t0?21:22;break;case 17:return window.localStorage.setItem("authVerified","true"),e.abrupt("break",22);case 19:return"/confirm-profile"!==window.location.pathname&&(window.location.href="/confirm-profile"),e.abrupt("break",22);case 21:"/login"!==window.location.pathname&&(window.location.href="/login?errorCodes=AUTH_FAILED");case 22:e.next=27;break;case 24:return e.prev=24,e.t1=e.catch(4),e.abrupt("return");case 27:case"end":return e.stop()}}),e,null,[[4,24]])})))).apply(this,arguments)}function ti(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ni(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function ri(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ni(i,r,o,a,l,"next",e)}function l(e){ni(i,r,o,a,l,"throw",e)}a(void 0)}))}}function oi(e){return ii.apply(this,arguments)}function ii(){return ii=ri(regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(0,Ho.gql)(Vo||(Vo=ti(["\n mutation UpdateHighlight($input: UpdateHighlightInput!) {\n updateHighlight(input: $input) {\n ... on UpdateHighlightSuccess {\n highlight {\n id\n }\n }\n\n ... on UpdateHighlightError {\n errorCodes\n }\n }\n }\n "]))),e.prev=1,e.next=4,Ko(n,{input:t});case 4:return r=e.sent,o=r,e.abrupt("return",null==o?void 0:o.updateHighlight.highlight.id);case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",void 0);case 12:case"end":return e.stop()}}),e,null,[[1,9]])}))),ii.apply(this,arguments)}!function(e){if(0==Uo[Wo].webBaseURL.length)throw new Error("Couldn't find environment variable for web base url in ".concat(e," environment"))}(Wo);let ai,li,si,ui={data:""},ci=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||ui,di=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,fi=/\/\*[^]*?\*\/|\s\s+|\n/g,pi=(e,t)=>{let n="",r="",o="";for(let i in e){let a=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+a+";":r+="f"==i[1]?pi(a,i):i+"{"+pi(a,"k"==i[1]?"":t)+"}":"object"==typeof a?r+=pi(a,t?t.replace(/([^,])+/g,(e=>i.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=pi.p?pi.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},hi={},gi=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+gi(e[n]);return t}return e},mi=(e,t,n,r,o)=>{let i=gi(e),a=hi[i]||(hi[i]=(e=>{let t=0,n=11;for(;t>>0;return"go"+n})(i));if(!hi[a]){let t=i!==e?e:(e=>{let t,n=[{}];for(;t=di.exec(e.replace(fi,""));)t[4]?n.shift():t[3]?n.unshift(n[0][t[3]]=n[0][t[3]]||{}):n[0][t[1]]=t[2];return n[0]})(e);hi[a]=pi(o?{["@keyframes "+a]:t}:t,n?"":"."+a)}return((e,t,n)=>{-1==t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(hi[a],t,r),a},vi=(e,t,n)=>e.reduce(((e,r,o)=>{let i=t[o];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":pi(e,""):!1===e?"":e}return e+r+(null==i?"":i)}),"");function bi(e){let t=this||{},n=e.call?e(t.p):e;return mi(n.unshift?n.raw?vi(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,ci(t.target),t.g,t.o,t.k)}function yi(){return yi=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]i||setTimeout(r,l,o)},onDiscarded:fa,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Pa?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:Pa?5e3:3e3,compare:function(e,t){return xa(e)==xa(t)},isPaused:function(){return!1},cache:Wa,mutate:Qa,fallback:{}},Da),$a=function(e,t){var n=va(e,t);if(t){var r=e.use,o=e.fallback,i=t.use,a=t.fallback;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=va(o,a))}return n},Ya=(0,u.createContext)({}),Za=function(e){return ma(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},Ja=function(){return va(Ga,(0,u.useContext)(Ya))},Ka=function(e,t,n){var r=t[e]||(t[e]=[]);return r.push(n),function(){var e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},Xa={dedupe:!0},el=(ha.defineProperty((function(e){var t=e.value,n=$a((0,u.useContext)(Ya),t),r=t&&t.provider,o=(0,u.useState)((function(){return r?za(r(n.cache||Wa),t):pa}))[0];return o&&(n.cache=o[0],n.mutate=o[1]),Ba((function(){return o?o[2]:pa}),[]),(0,u.createElement)(Ya.Provider,va(e,{value:n}))}),"default",{value:Ga}),ca=function(e,t,n){var r=n.cache,o=n.compare,i=n.fallbackData,a=n.suspense,l=n.revalidateOnMount,s=n.refreshInterval,c=n.refreshWhenHidden,d=n.refreshWhenOffline,f=Ia.get(r),p=f[0],h=f[1],g=f[2],m=f[3],v=Ma(e),b=v[0],y=v[1],A=v[2],w=(0,u.useRef)(!1),x=(0,u.useRef)(!1),k=(0,u.useRef)(b),E=(0,u.useRef)(t),S=(0,u.useRef)(n),C=function(){return S.current},_=function(){return C().isVisible()&&C().isOnline()},T=function(e){return r.set(A,va(r.get(A),e))},L=r.get(b),D=ga(i)?n.fallback[b]:i,O=ga(L)?D:L,R=r.get(A)||{},B=R.error,N=!w.current,P=function(){return N&&!ga(l)?l:!C().isPaused()&&(a?!ga(O)&&n.revalidateIfStale:ga(O)||n.revalidateIfStale)},M=!(!b||!t)&&(!!R.isValidating||N&&P()),I=function(e,t){var n=(0,u.useState)({})[1],r=(0,u.useRef)(e),o=(0,u.useRef)({data:!1,error:!1,isValidating:!1}),i=(0,u.useCallback)((function(e){var i=!1,a=r.current;for(var l in e){var s=l;a[s]!==e[s]&&(a[s]=e[s],o.current[s]&&(i=!0))}i&&!t.current&&n({})}),[]);return Ba((function(){r.current=e})),[r,o.current,i]}({data:O,error:B,isValidating:M},x),j=I[0],F=I[1],q=I[2],H=(0,u.useCallback)((function(e){return sa(void 0,void 0,void 0,(function(){var t,i,a,l,s,u,c,d,f,p,h,v,A;return ua(this,(function(S){switch(S.label){case 0:if(t=E.current,!b||!t||x.current||C().isPaused())return[2,!1];l=!0,s=e||{},u=!m[b]||!s.dedupe,c=function(){return!x.current&&b===k.current&&w.current},d=function(){var e=m[b];e&&e[1]===a&&delete m[b]},f={isValidating:!1},p=function(){T({isValidating:!1}),c()&&q(f)},T({isValidating:!0}),q({isValidating:!0}),S.label=1;case 1:return S.trys.push([1,3,,4]),u&&(ja(r,b,j.current.data,j.current.error,!0),n.loadingTimeout&&!r.get(b)&&setTimeout((function(){l&&c()&&C().onLoadingSlow(b,n)}),n.loadingTimeout),m[b]=[t.apply(void 0,y),qa()]),A=m[b],i=A[0],a=A[1],[4,i];case 2:return i=S.sent(),u&&setTimeout(d,n.dedupingInterval),m[b]&&m[b][1]===a?(T({error:pa}),f.error=pa,h=g[b],!ga(h)&&(a<=h[0]||a<=h[1]||0===h[1])?(p(),u&&c()&&C().onDiscarded(b),[2,!1]):(o(j.current.data,i)?f.data=j.current.data:f.data=i,o(r.get(b),i)||r.set(b,i),u&&c()&&C().onSuccess(i,b,n),[3,4])):(u&&c()&&C().onDiscarded(b),[2,!1]);case 3:return v=S.sent(),d(),C().isPaused()||(T({error:v}),f.error=v,u&&c()&&(C().onError(v,b,n),("boolean"==typeof n.shouldRetryOnError&&n.shouldRetryOnError||ma(n.shouldRetryOnError)&&n.shouldRetryOnError(v))&&_()&&C().onErrorRetry(v,b,n,H,{retryCount:(s.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return l=!1,p(),c()&&u&&ja(r,b,f.data,f.error,!1),[2,!0]}}))}))}),[b]),U=(0,u.useCallback)(Ha.bind(pa,r,(function(){return k.current})),[]);if(Ba((function(){E.current=t,S.current=n})),Ba((function(){if(b){var e=b!==k.current,t=H.bind(pa,Xa),n=0,r=Ka(b,h,(function(e,t,n){q(va({error:t,isValidating:n},o(j.current.data,e)?pa:{data:e}))})),i=Ka(b,p,(function(e){if(0==e){var r=Date.now();C().revalidateOnFocus&&r>n&&_()&&(n=r+C().focusThrottleInterval,t())}else if(1==e)C().revalidateOnReconnect&&_()&&t();else if(2==e)return H()}));return x.current=!1,k.current=b,w.current=!0,e&&q({data:O,error:B,isValidating:M}),P()&&(ga(O)||Ra?t():(a=t,ya()&&typeof window.requestAnimationFrame!=ba?window.requestAnimationFrame(a):setTimeout(a,1))),function(){x.current=!0,r(),i()}}var a}),[b,H]),Ba((function(){var e;function t(){var t=ma(s)?s(O):s;t&&-1!==e&&(e=setTimeout(n,t))}function n(){j.current.error||!c&&!C().isVisible()||!d&&!C().isOnline()?t():H(Xa).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[s,c,d,H]),(0,u.useDebugValue)(O),a&&ga(O)&&b)throw E.current=t,S.current=n,x.current=!1,ga(B)?H(Xa):B;return{mutate:U,get data(){return F.data=!0,O},get error(){return F.error=!0,B},get isValidating(){return F.isValidating=!0,M}}},function(){for(var e=[],t=0;t0;)s=u[c](s);return s(o,i||l.fetcher,l)});function tl(){var e=(0,Ho.gql)(da||(da=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n query GetLabels {\n labels {\n ... on LabelsSuccess {\n labels {\n ...LabelFields\n }\n }\n ... on LabelsError {\n errorCodes\n }\n }\n }\n ","\n "])),ia),t=el(e,Jo),n=t.data,r=t.mutate,o=t.isValidating;try{var i;if(n)return{isValidating:o,labels:null===(i=n.labels)||void 0===i?void 0:i.labels,revalidate:function(){r()}}}catch(e){console.log("error",e)}return{isValidating:!1,labels:[],revalidate:function(){}}}var nl=new Map;nl.set("bold",(function(e){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),nl.set("duotone",(function(e){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"96",opacity:"0.2"}),u.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),nl.set("fill",(function(){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"104"}))})),nl.set("light",(function(e){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),nl.set("thin",(function(e){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),nl.set("regular",(function(e){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var rl=function(e,t){return $t(e,t,nl)},ol=(0,u.forwardRef)((function(e,t){return u.createElement(Jt,Object.assign({ref:t},e,{renderPath:rl}))}));ol.displayName="Circle";const il=ol;var al=new Map;al.set("bold",(function(e){return u.createElement(u.Fragment,null,u.createElement("polyline",{points:"216 72 104 184 48 128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),al.set("duotone",(function(e){return u.createElement(u.Fragment,null,u.createElement("polyline",{points:"216 72 104 184 48 128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),al.set("fill",(function(){return u.createElement(u.Fragment,null,u.createElement("path",{d:"M104,192a8.5,8.5,0,0,1-5.7-2.3l-56-56a8.1,8.1,0,0,1,11.4-11.4L104,172.7,210.3,66.3a8.1,8.1,0,0,1,11.4,11.4l-112,112A8.5,8.5,0,0,1,104,192Z"}))})),al.set("light",(function(e){return u.createElement(u.Fragment,null,u.createElement("polyline",{points:"216 72 104 184 48 128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),al.set("thin",(function(e){return u.createElement(u.Fragment,null,u.createElement("polyline",{points:"216 72 104 184 48 128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),al.set("regular",(function(e){return u.createElement(u.Fragment,null,u.createElement("polyline",{points:"216 72 104 184 48 128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var ll=function(e,t){return $t(e,t,al)},sl=(0,u.forwardRef)((function(e,t){return u.createElement(Jt,Object.assign({ref:t},e,{renderPath:ll}))}));sl.displayName="Check";const ul=sl;var cl=new Map;cl.set("bold",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"40",y1:"128",x2:"216",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),u.createElement("line",{x1:"128",y1:"40",x2:"128",y2:"216",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),cl.set("duotone",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"40",y1:"128",x2:"216",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("line",{x1:"128",y1:"40",x2:"128",y2:"216",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),cl.set("fill",(function(){return u.createElement(u.Fragment,null,u.createElement("path",{d:"M216,120H136V40a8,8,0,0,0-16,0v80H40a8,8,0,0,0,0,16h80v80a8,8,0,0,0,16,0V136h80a8,8,0,0,0,0-16Z"}))})),cl.set("light",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"40",y1:"128",x2:"216",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),u.createElement("line",{x1:"128",y1:"40",x2:"128",y2:"216",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),cl.set("thin",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"40",y1:"128",x2:"216",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),u.createElement("line",{x1:"128",y1:"40",x2:"128",y2:"216",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),cl.set("regular",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"40",y1:"128",x2:"216",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("line",{x1:"128",y1:"40",x2:"128",y2:"216",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var dl=function(e,t){return $t(e,t,cl)},fl=(0,u.forwardRef)((function(e,t){return u.createElement(Jt,Object.assign({ref:t},e,{renderPath:dl}))}));fl.displayName="Plus";const pl=fl;var hl;function gl(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ml(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function vl(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ml(i,r,o,a,l,"next",e)}function l(e){ml(i,r,o,a,l,"throw",e)}a(void 0)}))}}function bl(e,t,n){return yl.apply(this,arguments)}function yl(){return yl=vl(regeneratorRuntime.mark((function e(t,n,r){var o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=(0,Ho.gql)(hl||(hl=gl(["\n mutation CreateLabel($input: CreateLabelInput!) {\n createLabel(input: $input) {\n ... on CreateLabelSuccess {\n label {\n id\n name\n color\n description\n createdAt\n }\n }\n ... on CreateLabelError {\n errorCodes\n }\n }\n }\n "]))),e.prev=1,e.next=4,Ko(o,{input:{name:t,color:n,description:r}});case 4:return i=e.sent,e.abrupt("return",i.errorCodes?void 0:i.createLabel.label);case 8:return e.prev=8,e.t0=e.catch(1),console.log("createLabelMutation error",e.t0),e.abrupt("return",void 0);case 12:case"end":return e.stop()}}),e,null,[[1,8]])}))),yl.apply(this,arguments)}var Al={"#FF5D99":{colorName:"red",text:"#B20042",border:"#FF5D9966",background:"#FF5D990D"},"#7CFF7B":{colorName:"green",text:"#01A800",border:"#7CFF7B66",background:"#7CFF7B0D"},"#FFD234":{colorName:"yellow",text:"#947300",border:"#FFD23466",background:"#FFD2340D"},"#7BE4FF":{colorName:"blue",text:"#007E9E",border:"#7BE4FF66",background:"#7BE4FF0D"},"#CE88EF":{colorName:"purple",text:"#B759E3",border:"#CE88EF66",background:"#CE88EF0D"},"#EF8C43":{colorName:"orange",text:"#F37417",border:"#EF8C4366",background:"#EF8C430D"},"custom color":{colorName:"custom color",text:"#A5A4A1",border:"#D8D7D566",background:"#D8D7D50D"}},wl=function(){var e=Object.keys(Al).slice(0,-1);return e[Math.floor(Math.random()*e.length)]},xl=o(5632),kl=o(8726);function El(e){var t=tt(),n=t?"#FFEA9F":"$omnivoreGray",r=t?"transparent":"#DEDEDE",o=t?"#FFEA9F":ge.colors.omnivoreGray.toString(),i=t?"#6A6968":"#2A2A2A";return(0,je.jsx)(He,{css:{display:"inline-table",margin:"2px",fontSize:"11px",fontWeight:"500",fontFamily:"$inter",padding:"1px 7px",whiteSpace:"nowrap",cursor:"pointer",backgroundClip:"padding-box",borderRadius:"5px",borderWidth:"1px",borderStyle:"solid",color:t?"#EBEBEB":"#2A2A2A",borderColor:e.isSelected?n:r,backgroundColor:t?"#2A2A2A":"#F9F9F9"},children:(0,je.jsxs)(Ve,{alignment:"center",css:{gap:"7px"},children:[(0,je.jsx)(il,{size:14,color:e.color,weight:"fill"}),(0,je.jsx)(He,{css:{pt:"1px"},children:e.text}),(0,je.jsx)(Wt,{style:"ghost",css:{display:"flex",pt:"1px"},onClick:function(t){e.xAction(),t.preventDefault()},children:(0,je.jsx)(xo,{size:14,color:e.isSelected?o:i})})]})})}function Sl(e){var t=tt(),n=t?"#FFEA9F":"$omnivoreGray",r=t?"transparent":"#DEDEDE",o=(0,u.useMemo)((function(){var t=e.labels.map((function(e){return e.color}));if(t.length>7){var n=new Set(t);return Array.from(n).slice(0,7)}return t}),[e]);return(0,je.jsx)(He,{css:{display:"inline-table",margin:"2px",fontSize:"11px",fontWeight:"500",fontFamily:"$inter",padding:"1px 7px",whiteSpace:"nowrap",cursor:"pointer",backgroundClip:"padding-box",borderRadius:"5px",borderWidth:"1px",borderStyle:"solid",color:t?"#EBEBEB":"#2A2A2A",borderColor:e.isSelected?n:r,backgroundColor:t?"#2A2A2A":"#F9F9F9"},onClick:function(t){e.setExpanded(!0),t.preventDefault()},children:(0,je.jsxs)(Ve,{distribution:"center",alignment:"center",css:{gap:"7px",pl:"15px"},children:[o.map((function(e,t){return(0,je.jsx)(He,{css:{marginLeft:-15,height:"100%",display:"flex"},children:(0,je.jsx)(il,{size:14,color:e,weight:"fill"})},"label-color".concat(t))})),(0,je.jsx)(He,{css:{pt:"1px"},children:"".concat(e.labels.length," labels")})]})})}function Cl(e){return function(e){if(Array.isArray(e))return Tl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _l(e,t){if(e){if("string"==typeof e)return Tl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tl(e,t):void 0}}function Tl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(g(0),h(r[0].name))}}),[c,o,d,f,h,g,m]),b=(0,u.useCallback)((function(){g(-1),m("")}),[g,m]),y=(0,u.useMemo)((function(){return 0===p.length&&0===c.length}),[c,p]),A=(0,u.useMemo)((function(){return p.length>7&&!a}),[p.length,a]);return(0,je.jsxs)(qe,{css:{display:"inline-block",bg:"$thBackground2",border:"1px transparent solid",borderRadius:"6px",verticalAlign:"center",padding:"5px",lineHeight:"2",width:"100%",cursor:"text",color:"$thTextContrast2",fontSize:"12px",fontFamily:"$inter",input:{all:"unset",left:"0px",outline:"none",borderStyle:"none",marginLeft:"2px"},"&:focus-within":{outline:"none",border:"1px solid #898989"},">span":{marginTop:"0px",marginBottom:"0px"},">input":{fontSize:"16px"}},onMouseDown:function(t){var n,o,i,a;null===(n=r.current)||void 0===n||n.focus(),e.setHighlightLastLabel(!1),null===(o=r.current)||void 0===o||o.setSelectionRange(null===(i=r.current)||void 0===i?void 0:i.value.length,null===(a=r.current)||void 0===a?void 0:a.value.length),t.preventDefault()},onDoubleClick:function(t){var n,o,i;null===(n=r.current)||void 0===n||n.focus(),e.setHighlightLastLabel(!1),null===(o=r.current)||void 0===o||o.setSelectionRange(0,null===(i=r.current)||void 0===i?void 0:i.value.length),t.preventDefault()},children:[A?(0,je.jsx)(Sl,{labels:p,setExpanded:function(e){l(!0)},isSelected:e.highlightLastLabel}):e.selectedLabels.map((function(t,n){return(0,je.jsx)(El,{text:t.name,color:t.color,isSelected:e.highlightLastLabel&&n==e.selectedLabels.length-1,xAction:function(){var n=e.selectedLabels.findIndex((function(e){return e.id==t.id}));if(-1!==n){var r=e.selectedLabels;r.splice(n,1),e.dispatchLabels({type:"SAVE",labels:Cl(r)})}}},t.id)})),(0,je.jsx)(He,{css:{display:"inline-flex",height:"24px",paddingBottom:"20px",transform:"translateY(-2px)"},children:(0,je.jsx)(kl.Z,{placeholder:y?"Add Labels":void 0,inputRef:function(e){r.current=e},inputStyle:{fontSize:"16px",minWidth:0==e.inputValue.length&&0==e.selectedLabels.length?"100px":"2px"},onFocus:function(){e.onFocus&&e.onFocus()},minWidth:"2px",maxLength:48,value:e.inputValue,onClick:function(e){e.stopPropagation()},onKeyUp:function(t){switch(t.key){case"Escape":e.clearInputState();break;case"Enter":A&&e.highlightLastLabel?(l(!0),e.setHighlightLastLabel(!1)):e.selectOrCreateLabel(e.inputValue),t.preventDefault()}},onKeyDown:function(t){switch(t.key){case"Tab":v(),t.preventDefault();break;case"Delete":case"Backspace":b(),0===e.inputValue.length&&(A&&e.highlightLastLabel?(l(!0),e.setHighlightLastLabel(!1)):e.deleteLastLabel(),t.preventDefault())}},onChange:function(t){e.setInputValue(t.target.value)}})})]})};function Dl(e){return function(e){if(Array.isArray(e))return Nl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Bl(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ol(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Rl(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ol(i,r,o,a,l,"next",e)}function l(e){Ol(i,r,o,a,l,"throw",e)}a(void 0)}))}}function Bl(e,t){if(e){if("string"==typeof e)return Nl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nl(e,t):void 0}}function Nl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?(0,je.jsx)(Wt,{style:"modalOption",css:{pl:"26px",position:"relative",color:ge.colors.grayText.toString(),height:"42px",borderBottom:"1px solid $grayBorder",bg:e.focused?"$grayBgActive":"unset"},children:(0,je.jsxs)(Ve,{alignment:"center",distribution:"start",css:{gap:"8px",fontSize:"12px"},children:["available"===n&&(0,je.jsxs)(je.Fragment,{children:[(0,je.jsx)(ul,{size:18,color:ge.colors.grayText.toString()}),'Use Enter to add label "',e.filterText,'"']}),"none"===n&&(0,je.jsxs)(je.Fragment,{children:[(0,je.jsx)(pl,{size:18,color:ge.colors.grayText.toString()}),'Use Enter to create new label "',e.filterText,'"']})]})}):(0,je.jsx)(He,{css:{display:"flex",fontSize:"12px",padding:"33px",gap:"8px"}})})}function ql(e){var t,n,r=(0,xl.useRouter)(),o=e.inputValue,i=e.setInputValue,a=e.selectedLabels,l=e.setHighlightLastLabel,s=tl(),c=s.labels,d=s.revalidate,f=(t=(0,u.useState)(0),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(t,n)||Bl(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=f[0],h=f[1];(0,u.useEffect)((function(){console.log("setting focused index: ",o),h(void 0)}),[o]);var g=(0,u.useCallback)((function(e){return a.some((function(t){return t.id===e.id}))}),[a]);(0,u.useEffect)((function(){0===p&&l(!1)}),[l,p]);var m=(0,u.useCallback)(function(){var t=Rl(regeneratorRuntime.mark((function t(n){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:Dl(e.selectedLabels),r=g(n)?e.selectedLabels.filter((function(e){return e.id!==n.id})):[].concat(Dl(e.selectedLabels),[n]),e.dispatchLabels({type:"SAVE",labels:r}),e.clearInputState(),d();case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[g,e,d]),v=(0,u.useMemo)((function(){return c?c.filter((function(e){return e.name.toLowerCase().includes(o.toLowerCase())})).sort((function(e,t){return e.name.localeCompare(t.name)})):[]}),[c,o]),b=(0,u.useCallback)(function(){var e=Rl(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,bl(t,wl(),"");case 2:(n=e.sent)?($i("Created label ".concat(n.name),{position:"bottom-right"}),m(n)):Yi("Failed to create label",{position:"bottom-right"});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[m]),y=(0,u.useCallback)(function(){var e=Rl(regeneratorRuntime.mark((function e(t){var n,r,a,l,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=v.length+1,"ArrowUp"===t.key&&(t.preventDefault(),r=p,r=p?Math.max(0,p-1):void 0,p!==n||o||(r=n-2),h(r)),"ArrowDown"===t.key&&(t.preventDefault(),a=p,a=void 0===p?0:Math.min(n,p+1),p!==n-2||o||(a=n),h(a)),"Enter"!==t.key){e.next=12;break}if(t.preventDefault(),p!==n){e.next=11;break}return l=o,i(""),e.next=10,b(l);case 10:return e.abrupt("return");case 11:void 0!==p&&(s=v[p])&&m(s);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[o,i,v,p,b,r,m]);return(0,je.jsxs)(We,{distribution:"start",onKeyDown:y,css:{p:"0",width:"100%"},children:[(0,je.jsx)(Il,{focused:void 0===p,resetFocusedIndex:function(){return h(void 0)},inputValue:o,setInputValue:i,selectedLabels:e.selectedLabels,dispatchLabels:e.dispatchLabels,tabCount:e.tabCount,setTabCount:e.setTabCount,tabStartValue:e.tabStartValue,setTabStartValue:e.setTabStartValue,highlightLastLabel:e.highlightLastLabel,setHighlightLastLabel:e.setHighlightLastLabel,deleteLastLabel:e.deleteLastLabel,selectOrCreateLabel:e.selectOrCreateLabel,clearInputState:e.clearInputState}),(0,je.jsx)(qe,{css:{width:"100%",height:"15px",color:"#FF3B30",fontSize:"12px",fontFamily:"$inter",gap:"5px",display:"flex",alignItems:"center",justifyContent:"end",paddingRight:"15px",m:"0px"},children:e.errorMessage&&(0,je.jsxs)(je.Fragment,{children:[e.errorMessage,(0,je.jsx)(Fi,{color:"#FF3B30",size:15})]})}),(0,je.jsx)(We,{distribution:"start",alignment:"start",css:{mt:"10px",flexGrow:"1",width:"100%",height:"200px",overflowY:"scroll"},children:v.map((function(e,t){return(0,je.jsx)(jl,{label:e,focused:t===p,selected:g(e),toggleLabel:m},e.id)}))}),e.footer?e.footer:(0,je.jsx)(Fl,{filterText:o,selectedLabels:e.selectedLabels,availableLabels:c,focused:p===v.length+1})]})}function Hl(e){return function(e){if(Array.isArray(e))return Wl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Vl(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ul(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function zl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||Vl(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vl(e,t){if(e){if("string"==typeof e)return Wl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wl(e,t):void 0}}function Wl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=48?w(e):g===e&&m(void 0),n.length>0&&A(!1)}),[g,n,w]);var x=(0,u.useCallback)((function(){c(-1),r(""),p(""),A(!1)}),[]),k=(0,u.useCallback)((function(e,t){var n;(n=regeneratorRuntime.mark((function n(){var r,o,a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e,n.next=3,bl(t.name,t.color);case 3:o=n.sent,a=r.findIndex((function(e){return e.id===t.id})),o?($i("Created label ".concat(o.name),{position:"bottom-right"}),-1!==a?(r[a]=o,i({type:"SAVE",labels:Hl(r)})):i({type:"SAVE",labels:[].concat(Hl(r),[o])})):(w("Error creating label ".concat(t.name),5e3),-1!==a&&(r.splice(a,1),i({type:"SAVE",labels:Hl(r)})));case 6:case"end":return n.stop()}}),n)})),function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){Ul(i,r,o,a,l,"next",e)}function l(e){Ul(i,r,o,a,l,"throw",e)}a(void 0)}))})()}),[i,w]),E=(0,u.useCallback)((function(e){var t=null!=o?o:[],n=e.toLowerCase(),r=a.labels.find((function(e){return e.name.toLowerCase()==n}));if(!(n.length<1))if(r)o.find((function(e){return e.name.toLowerCase()==n}))?w("label ".concat(e," already added."),5e3):(i({type:"SAVE",labels:[].concat(Hl(t),[r])}),x());else{var l={id:Ln(),name:e,color:wl(),description:"",createdAt:new Date},s=[].concat(Hl(t),[l]);i({type:"TEMP",labels:s}),x(),k(s,l)}}),[a,o,i,x,k,w]),S=(0,u.useCallback)((function(){if(y){var e=o;e.pop(),i({type:"SAVE",labels:Hl(e)}),A(!1)}else A(!0)}),[y,o,i]);return(0,je.jsx)(Bo,{defaultOpen:!0,onOpenChange:e.onOpenChange,children:(0,je.jsxs)(mo,{children:[(0,je.jsx)(Po,{}),(0,je.jsx)(Io,{tabIndex:0,css:{border:"1px solid $grayBorder",backgroundColor:"$thBackground"},onPointerDownOutside:function(t){t.preventDefault(),e.onOpenChange(!1)},onEscapeKeyDown:function(t){e.onOpenChange(!1),t.preventDefault()},children:(0,je.jsxs)(We,{distribution:"start",css:{height:"100%"},children:[(0,je.jsx)(He,{css:{pt:"0px",px:"16px",width:"100%"},children:(0,je.jsx)(jo,{title:"Labels",onOpenChange:e.onOpenChange})}),(0,je.jsx)(ql,{inputValue:n,setInputValue:r,clearInputState:x,selectedLabels:e.selectedLabels,dispatchLabels:e.dispatchLabels,tabCount:s,setTabCount:c,tabStartValue:f,setTabStartValue:p,highlightLastLabel:y,setHighlightLastLabel:A,deleteLastLabel:S,selectOrCreateLabel:E,errorMessage:g})]})})]})})}function Gl(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function $l(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Yl(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){$l(i,r,o,a,l,"next",e)}function l(e){$l(i,r,o,a,l,"throw",e)}a(void 0)}))}}function Zl(e,t){return Jl.apply(this,arguments)}function Jl(){return Jl=Yl(regeneratorRuntime.mark((function e(t,n){var r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(0,Ho.gql)(Pl||(Pl=Gl(["\n mutation SetLabelsForHighlight($input: SetLabelsForHighlightInput!) {\n setLabelsForHighlight(input: $input) {\n ... on SetLabelsSuccess {\n labels {\n ...LabelFields\n }\n }\n ... on SetLabelsError {\n errorCodes\n }\n }\n }\n ","\n "])),ia),console.log("setting label for highlight id: ",t,"labelIds",n),e.prev=2,e.next=5,Ko(r,{input:{highlightId:t,labelIds:n}});case 5:return o=e.sent,console.log(" -- errorCodes",o.setLabelsForHighlight.errorCodes),e.abrupt("return",o.setLabelsForHighlight.errorCodes?void 0:o.setLabelsForHighlight.labels);case 10:return e.prev=10,e.t0=e.catch(2),console.log("setLabelsForHighlightInput error",e.t0),e.abrupt("return",void 0);case 14:case"end":return e.stop()}}),e,null,[[2,10]])}))),Jl.apply(this,arguments)}function Kl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0)for(var l,s=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ru(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ru(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n);!(l=s()).done;){var u=l.value;if(void 0!==a[u]&&!a[u])return!1}else if(a.metaKey||a.ctrlKey||a.shiftKey||a.altKey)return!1;return a.key?a.key===o:a.keyCode===r}function lu(e,t){var n=e.split("\n"),r=e.substr(0,t).split("\n"),o=r.length,i=r[r.length-1].length,a=n[r.length-1],l=r.length>1?r[r.length-2]:null,s=n.length>r.length?n[r.length]:null;return{line:o,col:i,beforeText:e.substr(0,t),afterText:e.substr(t),curLine:a,prevLine:l,nextLine:s}}for(var su={bold:["**","**"],italic:["*","*"],underline:["++","++"],strikethrough:["~~","~~"],quote:["\n> ","\n"],inlinecode:["`","`"],code:["\n```\n","\n```\n"]},uu=1;uu<=6;uu++)su["h"+uu]=["\n"+iu("#",uu)+" ","\n"];function cu(e){for(var t=e.row,n=void 0===t?2:t,r=e.col,o=void 0===r?2:r,i=["|"],a=["|"],l=["|"],s="",u=1;u<=o;u++)i.push(" Head |"),l.push(" --- |"),a.push(" Data |");for(var c=1;c<=n;c++)s+="\n"+a.join("");return i.join("")+"\n"+l.join("")+s}function du(e,t){var n=t;if("\n"!==n.substr(0,1)&&(n="\n"+n),"unordered"===e)return n.length>1?n.replace(/\n/g,"\n* ").trim():"* ";var r=1;return n.length>1?n.replace(/\n/g,(function(){return"\n"+r+++". "})).trim():"1. "}function fu(e,t){return{text:e,newBlock:t,selection:{start:e.length,end:e.length}}}const pu=function(e,t,n){if(void 0!==su[t])return{text:""+su[t][0]+e+su[t][1],selection:{start:su[t][0].length,end:su[t][0].length+e.length}};switch(t){case"tab":var r=1===n.tabMapValue?"\t":" ".repeat(n.tabMapValue),o=r+e.replace(/\n/g,"\n"+r),i=e.includes("\n")?e.match(/\n/g).length:0;return{text:o,selection:{start:n.tabMapValue,end:n.tabMapValue*(i+1)+e.length}};case"unordered":return fu(du("unordered",e),!0);case"order":return fu(du("order",e),!0);case"hr":return fu("---",!0);case"table":return{text:cu(n),newBlock:!0};case"image":return{text:"+")",selection:{start:2,end:e.length+2}};case"link":return{text:"["+e+"]("+(n.linkUrl||"")+")",selection:{start:1,end:e.length+1}}}return{text:e,selection:{start:0,end:e.length}}};function hu(e,t){var n={};return Object.keys(e).forEach((function(r){void 0!==t[r]?"object"!=typeof t[r]?n[r]=t[r]:Array.isArray(t[r])?n[r]=[].concat(t[r]):n[r]=hu(e[r],t[r]):n[r]=e[r]})),n}const gu=function(e,t){return{placeholder:pu("","image",{target:"Uploading_"+Ln(),imageUrl:""}).text,uploaded:new Promise((function(n){var r=!0,o=function(t){r&&console.warn("Deprecated: onImageUpload should return a Promise, callback will be removed in future"),n(pu("","image",{target:e.name,imageUrl:t}).text)},i=t(e,o);ou(i)&&(r=!1,i.then(o))}))}},mu={theme:"default",view:{menu:!0,md:!0,html:!0},canView:{menu:!0,md:!0,html:!0,both:!0,fullScreen:!0,hideMenu:!0},htmlClass:"",markdownClass:"",syncScrollMode:["rightFollowLeft","leftFollowRight"],imageUrl:"",imageAccept:"",linkUrl:"",loggerMaxSize:100,loggerInterval:600,table:{maxRow:4,maxCol:6},allowPasteImage:!0,onImageUpload:void 0,onCustomImageUpload:void 0,shortcuts:!0,onChangeTrigger:"both"};var vu=function(e){function t(){return e.apply(this,arguments)||this}qs(t,e);var n=t.prototype;return n.getHtml=function(){return"string"==typeof this.props.html?this.props.html:this.el.current?this.el.current.innerHTML:""},n.render=function(){return"string"==typeof this.props.html?u.createElement("div",{ref:this.el,dangerouslySetInnerHTML:{__html:this.props.html},className:this.props.className||"custom-html-style"}):u.createElement("div",{ref:this.el,className:this.props.className||"custom-html-style"},this.props.html)},t}(function(e){function t(t){var n;return(n=e.call(this,t)||this).el=u.createRef(),n}qs(t,e);var n=t.prototype;return n.getElement=function(){return this.el.current},n.getHeight=function(){return this.el.current?this.el.current.offsetHeight:0},t}(u.Component));function bu(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return yu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yu(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function yu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?n-1:0),o=1;o0&&c.length>0&&(a="\n"+a,l&&(l.start++,l.end++));var d=s.afterText;n.start!==n.end&&(d=lu(this.getMdValue(),n.end).afterText),""!==d.trim()&&"\n\n"!==d.substr(0,2)&&("\n"!==d.substr(0,1)&&(a+="\n"),a+="\n")}this.insertText(a,!0,l)},n.insertPlaceholder=function(e,t){var n=this;this.insertText(e,!0),t.then((function(t){var r=n.getMdValue().replace(e,t);n.setText(r)}))},n.insertText=function(e,t,n){void 0===e&&(e=""),void 0===t&&(t=!1);var r=this.state.text,o=this.getSelection(),i=r.slice(0,o.start),a=r.slice(t?o.end:o.start,r.length);this.setText(i+e+a,void 0,n?{start:n.start+i.length,end:n.end+i.length}:{start:o.start,end:o.start})},n.setText=function(e,t,n){var r=this;void 0===e&&(e="");var o=this.config.onChangeTrigger,i=void 0===o?"both":o,a=e.replace(/↵/g,"\n");if(this.state.text!==e){this.setState({text:a}),!this.props.onChange||"both"!==i&&"beforeRender"!==i||this.props.onChange({text:a,html:this.getHtmlValue()},t),this.emitter.emit(this.emitter.EVENT_CHANGE,e,t,void 0===t),n&&setTimeout((function(){return r.setSelection(n)})),this.hasContentChanged||(this.hasContentChanged=!0);var l=this.renderHTML(a);"both"!==i&&"afterRender"!==i||l.then((function(){r.props.onChange&&r.props.onChange({text:r.state.text,html:r.getHtmlValue()},t)}))}},n.getMdValue=function(){return this.state.text},n.getHtmlValue=function(){return"string"==typeof this.state.html?this.state.html:this.nodeMdPreview.current?this.nodeMdPreview.current.getHtml():""},n.onKeyboard=function(e){var t=this;Array.isArray(e)?e.forEach((function(e){return t.onKeyboard(e)})):this.keyboardListeners.includes(e)||this.keyboardListeners.push(e)},n.offKeyboard=function(e){var t=this;if(Array.isArray(e))e.forEach((function(e){return t.offKeyboard(e)}));else{var n=this.keyboardListeners.indexOf(e);n>=0&&this.keyboardListeners.splice(n,1)}},n.handleKeyDown=function(e){for(var t,n=bu(this.keyboardListeners);!(t=n()).done;){var r=t.value;if(au(e,r))return e.preventDefault(),void r.callback(e)}this.emitter.emit(this.emitter.EVENT_KEY_DOWN,e)},n.getEventType=function(e){switch(e){case"change":return this.emitter.EVENT_CHANGE;case"fullscreen":return this.emitter.EVENT_FULL_SCREEN;case"viewchange":return this.emitter.EVENT_VIEW_CHANGE;case"keydown":return this.emitter.EVENT_KEY_DOWN;case"editor_keydown":return this.emitter.EVENT_EDITOR_KEY_DOWN;case"blur":return this.emitter.EVENT_BLUR;case"focus":return this.emitter.EVENT_FOCUS;case"scroll":return this.emitter.EVENT_SCROLL}},n.on=function(e,t){var n=this.getEventType(e);n&&this.emitter.on(n,t)},n.off=function(e,t){var n=this.getEventType(e);n&&this.emitter.off(n,t)},n.setView=function(e){var t=this,n=Is({},this.state.view,e);this.setState({view:n},(function(){t.emitter.emit(t.emitter.EVENT_VIEW_CHANGE,n)}))},n.getView=function(){return Is({},this.state.view)},n.fullScreen=function(e){var t=this;this.state.fullScreen!==e&&this.setState({fullScreen:e},(function(){t.emitter.emit(t.emitter.EVENT_FULL_SCREEN,e)}))},n.registerPluginApi=function(e,t){this.pluginApis.set(e,t)},n.unregisterPluginApi=function(e){this.pluginApis.delete(e)},n.callPluginApi=function(e){var t=this.pluginApis.get(e);if(!t)throw new Error("API "+e+" not found");for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o0&&e.onImageChanged(t.target.files[0])}}))},t}(eu);Iu.pluginName="image";var ju=function(e){function t(t){var n;return(n=e.call(this,t)||this).handleKeyboard={key:"k",keyCode:75,aliasCommand:!0,withKey:["ctrlKey"],callback:function(){return n.editor.insertMarkdown("link")}},n}qs(t,e);var n=t.prototype;return n.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},n.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},n.render=function(){var e=this;return u.createElement("span",{className:"button button-type-link",title:Zs.get("btnLink"),onClick:function(){return e.editor.insertMarkdown("link")}},u.createElement(Hs,{type:"link"}))},t}(eu);ju.pluginName="link";var Fu=function(e){function t(t){var n;return(n=e.call(this,t)||this).handleKeyboard={key:"7",keyCode:55,withKey:["ctrlKey","shiftKey"],aliasCommand:!0,callback:function(){return n.editor.insertMarkdown("order")}},n}qs(t,e);var n=t.prototype;return n.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},n.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},n.render=function(){var e=this;return u.createElement("span",{className:"button button-type-ordered",title:Zs.get("btnOrdered"),onClick:function(){return e.editor.insertMarkdown("order")}},u.createElement(Hs,{type:"list-ordered"}))},t}(eu);Fu.pluginName="list-ordered";var qu=function(e){function t(t){var n;return(n=e.call(this,t)||this).handleKeyboard={key:"8",keyCode:56,withKey:["ctrlKey","shiftKey"],aliasCommand:!0,callback:function(){return n.editor.insertMarkdown("unordered")}},n}qs(t,e);var n=t.prototype;return n.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},n.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},n.render=function(){var e=this;return u.createElement("span",{className:"button button-type-unordered",title:Zs.get("btnUnordered"),onClick:function(){return e.editor.insertMarkdown("unordered")}},u.createElement(Hs,{type:"list-unordered"}))},t}(eu);qu.pluginName="list-unordered";const Hu=function(){function e(e){void 0===e&&(e={}),this.record=[],this.recycle=[],this.initValue="";var t=e.maxSize,n=void 0===t?100:t;this.maxSize=n}var t=e.prototype;return t.push=function(e){for(var t=this.record.push(e);this.record.length>this.maxSize;)this.record.shift();return t},t.get=function(){return this.record},t.getLast=function(){var e=this.record.length;return this.record[e-1]},t.undo=function(e){var t=this.record.pop();if(void 0===t)return this.initValue;if(t!==e)return this.recycle.push(t),t;var n=this.record.pop();return void 0===n?(this.recycle.push(t),this.initValue):(this.recycle.push(t),n)},t.redo=function(){var e=this.recycle.pop();if(void 0!==e)return this.push(e),e},t.cleanRedo=function(){this.recycle=[]},t.getUndoCount=function(){return this.undo.length},t.getRedoCount=function(){return this.recycle.length},e}();var Uu,zu=function(e){function t(t){var n;return(n=e.call(this,t)||this).handleKeyboards=[],n.lastPop=null,n.handleChange=n.handleChange.bind(js(n)),n.handleRedo=n.handleRedo.bind(js(n)),n.handleUndo=n.handleUndo.bind(js(n)),n.handleKeyboards=[{key:"y",keyCode:89,withKey:["ctrlKey"],callback:n.handleRedo},{key:"z",keyCode:90,withKey:["metaKey","shiftKey"],callback:n.handleRedo},{key:"z",keyCode:90,aliasCommand:!0,withKey:["ctrlKey"],callback:n.handleUndo}],n.logger=new Hu({maxSize:n.editorConfig.loggerMaxSize}),n.editor.registerPluginApi("undo",n.handleUndo),n.editor.registerPluginApi("redo",n.handleRedo),n}qs(t,e);var n=t.prototype;return n.handleUndo=function(){var e=this.logger.undo(this.editor.getMdValue());void 0!==e&&(this.pause(),this.lastPop=e,this.editor.setText(e),this.forceUpdate())},n.handleRedo=function(){var e=this.logger.redo();void 0!==e&&(this.lastPop=e,this.editor.setText(e),this.forceUpdate())},n.handleChange=function(e,t,n){var r=this;if(this.logger.getLast()!==e&&(null===this.lastPop||this.lastPop!==e)){if(this.logger.cleanRedo(),n)return this.logger.push(e),this.lastPop=null,void this.forceUpdate();this.timerId&&(window.clearTimeout(this.timerId),this.timerId=0),this.timerId=window.setTimeout((function(){r.logger.getLast()!==e&&(r.logger.push(e),r.lastPop=null,r.forceUpdate()),window.clearTimeout(r.timerId),r.timerId=0}),this.editorConfig.loggerInterval)}},n.componentDidMount=function(){var e=this;this.editor.on("change",this.handleChange),this.handleKeyboards.forEach((function(t){return e.editor.onKeyboard(t)})),this.logger.initValue=this.editor.getMdValue(),this.forceUpdate()},n.componentWillUnmount=function(){var e=this;this.timerId&&window.clearTimeout(this.timerId),this.editor.off("change",this.handleChange),this.editor.unregisterPluginApi("undo"),this.editor.unregisterPluginApi("redo"),this.handleKeyboards.forEach((function(t){return e.editor.offKeyboard(t)}))},n.pause=function(){this.timerId&&(window.clearTimeout(this.timerId),this.timerId=void 0)},n.render=function(){var e=this.logger.getUndoCount()>1||this.logger.initValue!==this.editor.getMdValue(),t=this.logger.getRedoCount()>0;return u.createElement(u.Fragment,null,u.createElement("span",{className:"button button-type-undo "+(e?"":"disabled"),title:Zs.get("btnUndo"),onClick:this.handleUndo},u.createElement(Hs,{type:"undo"})),u.createElement("span",{className:"button button-type-redo "+(t?"":"disabled"),title:Zs.get("btnRedo"),onClick:this.handleRedo},u.createElement(Hs,{type:"redo"})))},t}(eu);zu.pluginName="logger",function(e){e[e.SHOW_ALL=0]="SHOW_ALL",e[e.SHOW_MD=1]="SHOW_MD",e[e.SHOW_HTML=2]="SHOW_HTML"}(Uu||(Uu={}));var Vu=function(e){function t(t){var n;return(n=e.call(this,t)||this).handleClick=n.handleClick.bind(js(n)),n.handleChange=n.handleChange.bind(js(n)),n.state={view:n.editor.getView()},n}qs(t,e);var n=t.prototype;return n.handleClick=function(){switch(this.next){case Uu.SHOW_ALL:this.editor.setView({html:!0,md:!0});break;case Uu.SHOW_HTML:this.editor.setView({html:!0,md:!1});break;case Uu.SHOW_MD:this.editor.setView({html:!1,md:!0})}},n.handleChange=function(e){this.setState({view:e})},n.componentDidMount=function(){this.editor.on("viewchange",this.handleChange)},n.componentWillUnmount=function(){this.editor.off("viewchange",this.handleChange)},n.getDisplayInfo=function(){switch(this.next){case Uu.SHOW_ALL:return{icon:"view-split",title:"All"};case Uu.SHOW_HTML:return{icon:"visibility",title:"Preview"};default:return{icon:"keyboard",title:"Editor"}}},n.render=function(){if(this.isDisplay){var e=this.getDisplayInfo();return u.createElement("span",{className:"button button-type-mode",title:Zs.get("btnMode"+e.title),onClick:this.handleClick},u.createElement(Hs,{type:e.icon}))}return null},Xs(t,[{key:"isDisplay",get:function(){var e=this.editorConfig.canView;return!!e&&[e.html,e.md,e.both].filter((function(e){return e})).length>=2}},{key:"next",get:function(){var e=this.editorConfig.canView,t=this.state.view,n=[Uu.SHOW_ALL,Uu.SHOW_MD,Uu.SHOW_HTML];e&&(e.both||n.splice(n.indexOf(Uu.SHOW_ALL),1),e.md||n.splice(n.indexOf(Uu.SHOW_MD),1),e.html||n.splice(n.indexOf(Uu.SHOW_HTML),1));var r=Uu.SHOW_MD;if(t.html&&(r=Uu.SHOW_HTML),t.html&&t.md&&(r=Uu.SHOW_ALL),0===n.length)return r;if(1===n.length)return n[0];var o=n.indexOf(r);return oe.length){for(;i--;)if(47===e.charCodeAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let a=-1,l=t.length-1;for(;i--;)if(47===e.charCodeAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),l>-1&&(e.charCodeAt(i)===t.charCodeAt(l--)?l<0&&(o=i):(l=-1,o=a));return r===o?o=a:o<0&&(o=e.length),e.slice(r,o)},sc=function(e){if(fc(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.charCodeAt(0)?"/":".":1===n&&47===e.charCodeAt(0)?"//":e.slice(0,n)},uc=function(e){fc(e);let t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){const l=e.charCodeAt(n);if(47!==l)r<0&&(t=!0,r=n+1),46===l?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=n+1;break}}return i<0||r<0||0===a||1===a&&i===r-1&&i===o+1?"":e.slice(i,r)},cc=function(...e){let t,n=-1;for(;++n2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),a=s,l=0;continue}}else if(o.length>0){o="",i=0,a=s,l=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,s):o=e.slice(a+1,s),i=s-a-1;a=s,l=0}else 46===n&&l>-1?l++:l=-1}return o}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.charCodeAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},dc="/";function fc(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const pc=function(){return"/"};function hc(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}const gc=["history","path","basename","stem","extname","dirname"];class mc{constructor(e){let t;t=e?"string"==typeof e||function(e){return tc(e)}(e)?{value:e}:hc(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=pc(),this.value,this.stored,this.result,this.map;let n,r=-1;for(;++re.length){for(;i--;)if(47===e.charCodeAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let a=-1,l=t.length-1;for(;i--;)if(47===e.charCodeAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),l>-1&&(e.charCodeAt(i)===t.charCodeAt(l--)?l<0&&(o=i):(l=-1,o=a));return r===o?o=a:o<0&&(o=e.length),e.slice(r,o)},Cc=function(e){if(Dc(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.charCodeAt(0)?"/":".":1===n&&47===e.charCodeAt(0)?"//":e.slice(0,n)},_c=function(e){Dc(e);let t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){const l=e.charCodeAt(n);if(47!==l)r<0&&(t=!0,r=n+1),46===l?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=n+1;break}}return i<0||r<0||0===a||1===a&&i===r-1&&i===o+1?"":e.slice(i,r)},Tc=function(...e){let t,n=-1;for(;++n2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),a=s,l=0;continue}}else if(o.length>0){o="",i=0,a=s,l=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,s):o=e.slice(a+1,s),i=s-a-1;a=s,l=0}else 46===n&&l>-1?l++:l=-1}return o}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.charCodeAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},Lc="/";function Dc(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Oc=function(){return"/"};function Rc(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}const Bc=["history","path","basename","stem","extname","dirname"];class Nc{constructor(e){let t;t=e?"string"==typeof e||function(e){return wc(e)}(e)?{value:e}:Rc(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=Oc(),this.value,this.stored,this.result,this.map;let n,r=-1;for(;++rt.length;let a;i&&t.push(r);try{a=e.apply(this,t)}catch(e){const t=e;if(i&&n)throw t;return r(t)}i||(a instanceof Promise?a.then(o,r):a instanceof Error?r(a):o(a))};function r(e,...r){n||(n=!0,t(e,...r))}function o(e){r(null,e)}}(l,o)(...a):r(null,...a)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}(),n=[];let r,o={},i=-1;return a.data=function(e,t){return"string"==typeof e?2===arguments.length?(zc("data",r),o[e]=t,a):Fc.call(o,e)&&o[e]||null:e?(zc("data",r),o=e,a):o},a.Parser=void 0,a.Compiler=void 0,a.freeze=function(){if(r)return a;for(;++i{if(!e&&t&&n){const o=a.stringify(t,n);null==o||("string"==typeof(r=o)||wc(r)?n.value=o:n.result=o),i(e,n)}else i(e);var r}))}n(null,t)},a.processSync=function(e){let t;a.freeze(),Hc("processSync",a.Parser),Uc("processSync",a.Compiler);const n=Qc(e);return a.process(n,(function(e){t=!0,Ac(e)})),Wc("processSync","process",t),n},a;function a(){const t=e();let r=-1;for(;++ro?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),[].splice.apply(e,i);else for(n&&[].splice.apply(e,[t,n]);a0?(Yc(e,e.length,0,t),e):t}const Jc={}.hasOwnProperty;function Kc(e){const t={};let n=-1;for(;++ni))return;const n=t.events.length;let o,l,s=n;for(;s--;)if("exit"===t.events[s][0]&&"chunkFlow"===t.events[s][1].type){if(o){l=t.events[s][1].end;break}o=!0}for(v(a),e=n;er;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function b(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},vd={tokenize:function(e,t,n){return hd(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},bd={tokenize:function(e,t,n){return hd(e,(function(e){return null===e||ud(e)?t(e):n(e)}),"linePrefix")},partial:!0};function yd(e){const t={};let n,r,o,i,a,l,s,u=-1;for(;++u=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}},partial:!0},kd={tokenize:function(e){const t=this,n=e.attempt(bd,(function(r){if(null!==r)return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n;e.consume(r)}),e.attempt(this.parser.constructs.flowInitial,r,hd(e,e.attempt(this.parser.constructs.flow,r,e.attempt(wd,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}},Ed={resolveAll:Td()},Sd=_d("string"),Cd=_d("text");function _d(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i;function i(e){return s(e)?o(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),l;t.consume(e)}function l(e){return s(e)?(t.exit("data"),o(e)):(t.consume(e),l)}function s(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o-1&&(a[0]=a[0].slice(r)),i>0&&a.push(e[o].slice(0,i))),a}(a,e)}function h(){return Object.assign({},r)}function g(e){s=void 0,d=e,f=f(e)}function m(e,t){t.restore()}function v(e,t){return function(n,o,i){let a,d,f,p;return Array.isArray(n)?g(n):"tokenize"in n?g([n]):function(e){return function(t){const n=null!==t&&e[t],r=null!==t&&e.null;return g([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function g(e){return a=e,d=0,0===e.length?i:m(e[d])}function m(e){return function(n){return p=function(){const e=h(),t=c.previous,n=c.currentConstruct,o=c.events.length,i=Array.from(l);return{restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=o,l=i,y()},from:o}}(),f=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name)?b():e.tokenize.call(t?Object.assign(Object.create(c),t):c,u,v,b)(n)}}function v(t){return s=!0,e(f,p),o}function b(e){return s=!0,p.restore(),++du?n(o):(e.consume(o),h):41===o?c--?(e.consume(o),h):(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(r),t(o)):null===o||sd(o)?c?n(o):(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(r),t(o)):ld(o)?n(o):(e.consume(o),92===o?g:h)}function g(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function jd(e,t,n,r,o,i){const a=this;let l,s=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),u};function u(d){return null===d||91===d||93===d&&!l||94===d&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs||s>999?n(d):93===d?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):ud(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(t){return null===t||91===t||93===t||ud(t)||s++>999?(e.exit("chunkString"),u(t)):(e.consume(t),l=l||!cd(t),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function Fd(e,t,n,r,o,i){let a;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),a=40===t?41:t,l};function l(n){return n===a?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),s(n))}function s(t){return t===a?(e.exit(i),l(a)):null===t?n(t):ud(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),hd(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===a||null===t||ud(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?c:u)}function c(t){return t===a||92===t?(e.consume(t),u):u(t)}}function qd(e,t){let n;return function r(o){return ud(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):cd(o)?hd(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}function Hd(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ud={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),jd.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function i(t){return o=Hd(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),qd(e,Id(e,e.attempt(zd,hd(e,a,"whitespace"),hd(e,a,"whitespace")),n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):n(t)}function a(i){return null===i||ud(i)?(e.exit("definition"),r.parser.defined.includes(o)||r.parser.defined.push(o),t(i)):n(i)}}},zd={tokenize:function(e,t,n){return function(t){return sd(t)?qd(e,r)(t):n(t)};function r(t){return 34===t||39===t||40===t?Fd(e,hd(e,o,"whitespace"),n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t):n(t)}function o(e){return null===e||ud(e)?t(e):n(e)}},partial:!0},Vd={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),hd(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?l(t):ud(t)?e.attempt(Wd,i,l)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||ud(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}function l(n){return e.exit("codeIndented"),t(n)}}},Wd={tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):ud(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):hd(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):ud(e)?o(e):n(e)}},partial:!0},Qd={name:"headingAtx",tokenize:function(e,t,n){const r=this;let o=0;return function(t){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),i(t)};function i(l){return 35===l&&o++<6?(e.consume(l),i):null===l||sd(l)?(e.exit("atxHeadingSequence"),r.interrupt?t(l):a(l)):n(l)}function a(n){return 35===n?(e.enter("atxHeadingSequence"),l(n)):null===n||ud(n)?(e.exit("atxHeading"),t(n)):cd(n)?hd(e,a,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function l(t){return 35===t?(e.consume(t),l):(e.exit("atxHeadingSequence"),a(t))}function s(t){return null===t||35===t||sd(t)?(e.exit("atxHeadingText"),a(t)):(e.consume(t),s)}},resolve:function(e,t){let n,r,o=e.length-2,i=3;return"whitespace"===e[i][1].type&&(i+=2),o-2>i&&"whitespace"===e[o][1].type&&(o-=2),"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4),o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},Yc(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}},Gd={name:"setextUnderline",tokenize:function(e,t,n){const r=this;let o,i,a=r.events.length;for(;a--;)if("lineEnding"!==r.events[a][1].type&&"linePrefix"!==r.events[a][1].type&&"content"!==r.events[a][1].type){i="paragraph"===r.events[a][1].type;break}return function(t){return r.parser.lazy[r.now().line]||!r.interrupt&&!i?n(t):(e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),o=t,l(t))};function l(t){return t===o?(e.consume(t),l):(e.exit("setextHeadingLineSequence"),hd(e,s,"lineSuffix")(t))}function s(r){return null===r||ud(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const a={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[o][1].end)):e[n][1]=a,e.push(["exit",a,t]),e}},$d=["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","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Yd=["pre","script","style","textarea"],Zd={name:"htmlFlow",tokenize:function(e,t,n){const r=this;let o,i,a,l,s;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u};function u(l){return 33===l?(e.consume(l),c):47===l?(e.consume(l),p):63===l?(e.consume(l),o=3,r.interrupt?t:N):td(l)?(e.consume(l),a=String.fromCharCode(l),i=!0,h):n(l)}function c(i){return 45===i?(e.consume(i),o=2,d):91===i?(e.consume(i),o=5,a="CDATA[",l=0,f):td(i)?(e.consume(i),o=4,r.interrupt?t:N):n(i)}function d(o){return 45===o?(e.consume(o),r.interrupt?t:N):n(o)}function f(o){return o===a.charCodeAt(l++)?(e.consume(o),l===a.length?r.interrupt?t:C:f):n(o)}function p(t){return td(t)?(e.consume(t),a=String.fromCharCode(t),h):n(t)}function h(l){return null===l||47===l||62===l||sd(l)?47!==l&&i&&Yd.includes(a.toLowerCase())?(o=1,r.interrupt?t(l):C(l)):$d.includes(a.toLowerCase())?(o=6,47===l?(e.consume(l),g):r.interrupt?t(l):C(l)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(l):i?v(l):m(l)):45===l||od(l)?(e.consume(l),a+=String.fromCharCode(l),h):n(l)}function g(o){return 62===o?(e.consume(o),r.interrupt?t:C):n(o)}function m(t){return cd(t)?(e.consume(t),m):E(t)}function v(t){return 47===t?(e.consume(t),E):58===t||95===t||td(t)?(e.consume(t),b):cd(t)?(e.consume(t),v):E(t)}function b(t){return 45===t||46===t||58===t||95===t||od(t)?(e.consume(t),b):y(t)}function y(t){return 61===t?(e.consume(t),A):cd(t)?(e.consume(t),y):v(t)}function A(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,w):cd(t)?(e.consume(t),A):(s=null,x(t))}function w(t){return null===t||ud(t)?n(t):t===s?(e.consume(t),k):(e.consume(t),w)}function x(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||sd(t)?y(t):(e.consume(t),x)}function k(e){return 47===e||62===e||cd(e)?v(e):n(e)}function E(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return cd(t)?(e.consume(t),S):null===t||ud(t)?C(t):n(t)}function C(t){return 45===t&&2===o?(e.consume(t),D):60===t&&1===o?(e.consume(t),O):62===t&&4===o?(e.consume(t),P):63===t&&3===o?(e.consume(t),N):93===t&&5===o?(e.consume(t),B):!ud(t)||6!==o&&7!==o?null===t||ud(t)?_(t):(e.consume(t),C):e.check(Jd,P,_)(t)}function _(t){return e.exit("htmlFlowData"),T(t)}function T(t){return null===t?M(t):ud(t)?e.attempt({tokenize:L,partial:!0},T,M)(t):(e.enter("htmlFlowData"),C(t))}function L(e,t,n){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function D(t){return 45===t?(e.consume(t),N):C(t)}function O(t){return 47===t?(e.consume(t),a="",R):C(t)}function R(t){return 62===t&&Yd.includes(a.toLowerCase())?(e.consume(t),P):td(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),R):C(t)}function B(t){return 93===t?(e.consume(t),N):C(t)}function N(t){return 62===t?(e.consume(t),P):45===t&&2===o?(e.consume(t),N):C(t)}function P(t){return null===t||ud(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),P)}function M(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},Jd={tokenize:function(e,t,n){return function(r){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(bd,t,n)}},partial:!0},Kd={name:"codeFenced",tokenize:function(e,t,n){const r=this,o={tokenize:function(e,t,n){let r=0;return hd(e,(function(t){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),o(t)}),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function o(t){return t===s?(e.consume(t),r++,o):r1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;const d=Object.assign({},e[n][1].end),f=Object.assign({},e[c][1].start);ff(d,-l),ff(f,l),i={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[n][1].end)},a={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[c][1].start),end:f},o={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[c][1].start)},r={type:l>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},a.end)},e[n][1].end=Object.assign({},i.start),e[c][1].start=Object.assign({},a.end),s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=Zc(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=Zc(s,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),s=Zc(s,Dd(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),s=Zc(s,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,s=Zc(s,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,Yc(e,n-1,c-n+3,s),c=n+s.length-u-2;break}for(c=-1;++c13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535==(65535&n)||65534==(65535&n)||n>1114111?"�":String.fromCharCode(n)}const Lf=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Df(e){return e.replace(Lf,Of)}function Of(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return Tf(n.slice(t?2:1),t?16:10)}return ef(n)||e}const Rf={}.hasOwnProperty,Bf=function(t,n,r){return"string"!=typeof n&&(r=n,n=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(A),autolinkProtocol:f,autolinkEmail:f,atxHeading:a(v),blockQuote:a((function(){return{type:"blockquote",children:[]}})),characterEscape:f,characterReference:f,codeFenced:a(m),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:a(m,l),codeText:a((function(){return{type:"inlineCode",value:""}}),l),codeTextData:f,data:f,codeFlowValue:f,definition:a((function(){return{type:"definition",identifier:"",label:null,title:null,url:""}})),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:a((function(){return{type:"emphasis",children:[]}})),hardBreakEscape:a(b),hardBreakTrailing:a(b),htmlFlow:a(y,l),htmlFlowData:f,htmlText:a(y,l),htmlTextData:f,image:a((function(){return{type:"image",title:null,url:"",alt:null}})),label:l,link:a(A),listItem:a((function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}})),listItemValue:function(e){i("expectingFirstListItemValue")&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),o("expectingFirstListItemValue"))},listOrdered:a(w,(function(){o("expectingFirstListItemValue",!0)})),listUnordered:a(w),paragraph:a((function(){return{type:"paragraph",children:[]}})),reference:function(){o("referenceType","collapsed")},referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:a(v),strong:a((function(){return{type:"strong",children:[]}})),thematicBreak:a((function(){return{type:"thematicBreak"}}))},exit:{atxHeading:u(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}},autolink:u(),autolinkEmail:function(e){p.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){p.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:u(),characterEscapeValue:p,characterReferenceMarkerHexadecimal:g,characterReferenceMarkerNumeric:g,characterReferenceValue:function(e){const t=this.sliceSerialize(e),n=i("characterReferenceType");let r;n?(r=Tf(t,"characterReferenceMarkerNumeric"===n?10:16),o("characterReferenceType")):r=ef(t);const a=this.stack.pop();a.value+=r,a.position.end=Nf(e.end)},codeFenced:u((function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")})),codeFencedFence:function(){i("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:p,codeIndented:u((function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")})),codeText:u((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),codeTextData:p,data:p,definition:u(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Hd(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:u(),hardBreakEscape:u(h),hardBreakTrailing:u(h),htmlFlow:u((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),htmlFlowData:p,htmlText:u((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),htmlTextData:p,image:u((function(){const e=this.stack[this.stack.length-1];if(i("inReference")){const t=i("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;o("referenceType")})),label:function(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(o("inReference",!0),"link"===n.type){const t=e.children;n.children=t}else n.alt=t},labelText:function(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=Df(t),n.identifier=Hd(t).toLowerCase()},lineEnding:function(e){const n=this.stack[this.stack.length-1];if(i("atHardBreak"))return n.children[n.children.length-1].position.end=Nf(e.end),void o("atHardBreak");!i("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(n.type)&&(f.call(this,e),p.call(this,e))},link:u((function(){const e=this.stack[this.stack.length-1];if(i("inReference")){const t=i("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;o("referenceType")})),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Hd(this.sliceSerialize(e)).toLowerCase(),o("referenceType","full")},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){o("inReference")},setextHeading:u((function(){o("setextHeadingSlurpLineEnding")})),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2},setextHeadingText:function(){o("setextHeadingSlurpLineEnding",!0)},strong:u(),thematicBreak:u()}};Pf(t,(e||{}).mdastExtensions||[]);const n={};return function(e){let n={type:"root",children:[]};const a={stack:[n],tokenStack:[],config:t,enter:s,exit:c,buffer:l,resume:d,setData:o,getData:i},u=[];let f=-1;for(;++f0){const e=a.tokenStack[a.tokenStack.length-1];(e[1]||If).call(a,void 0,e[0])}for(n.position={start:Nf(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Nf(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},f=-1;++f{const n=this.data("settings");return Bf(t,Object.assign({},n,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})};function Ff(e){const t=[];let n=-1,r=0,o=0;for(;++n55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}const qf=function(e){if(null==e)return Uf;if("string"==typeof e)return t=e,Hf((function(e){return e&&e.type===t}));var t;if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n":"")+")"})}return c;function c(){let u,c,d,f=[];if((!t||o(a,l,s[s.length-1]||null))&&(f=function(e){return Array.isArray(e)?e:"number"==typeof e?[!0,e]:[e]}(n(a,s)),!1===f[0]))return f;if(a.children&&"skip"!==f[0])for(c=(r?a.children.length:-1)+i,d=s.concat(a);c>-1&&c