PageSourceSearch

https://chatsmith.io/_next/static/chunks/23854-9fef9432d62bb4c6.js

js chatsmith.io collected 2026-10-02 15:07:09 UTC 889,245 bytes, 289 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[23854],{33676:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BLANK_URL=t.relativeFirstCharacters=t.whitespaceEscapeCharsRegex=t.urlSchemeRegex=t.ctrlCharactersRegex=t.htmlCtrlEntityRegex=t.htmlEntitiesRegex=t.invalidProtocolRegex=void 0,t.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,t.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,t.htmlCtrlEntityRegex=/&(newline|tab);/gi,t.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,t.urlSchemeRegex=/^.+(:|&colon;)/gim,t.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,t.relativeFirstCharacters=[".","/"],t.BLANK_URL="about:blank"},7353:function(e,t,n){"use strict";t.N=function(e){if(!e)return r.BLANK_URL;var t,n=i(e.trim());do t=(n=i(n=n.replace(r.ctrlCharactersRegex,"").replace(r.htmlEntitiesRegex,function(e,t){return String.fromCharCode(t)}).replace(r.htmlCtrlEntityRegex,"").replace(r.ctrlCharactersRegex,"").replace(r.whitespaceEscapeCharsRegex,"").trim())).match(r.ctrlCharactersRegex)||n.match(r.htmlEntitiesRegex)||n.match(r.htmlCtrlEntityRegex)||n.match(r.whitespaceEscapeCharsRegex);while(t&&t.length>0);var a=n;if(!a)return r.BLANK_URL;if(r.relativeFirstCharacters.indexOf(a[0])>-1)return a;var o=a.trimStart(),s=o.match(r.urlSchemeRegex);if(!s)return a;var l=s[0].toLowerCase().trim();if(r.invalidProtocolRegex.test(l))return r.BLANK_URL;var u=o.replace(/\\/g,"/");if("mailto:"===l||l.includes("://"))return u;if("http:"===l||"https:"===l){if(!URL.canParse(u))return r.BLANK_URL;var c=new URL(u);return c.protocol=c.protocol.toLowerCase(),c.hostname=c.hostname.toLowerCase(),c.toString()}return u};var r=n(33676);function i(e){try{return decodeURIComponent(e)}catch(t){return e}}},6509:function(e){var t;t=function(){"use strict";var e="millisecond",t="second",n="minute",r="hour",i="week",a="month",o="quarter",s="year",l="date",u="Invalid Date",c=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},f="en",p={};p[f]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||"th")+"]"}};var g="$isDayjsObject",m=function(e){return e instanceof x||!(!e||!e[g])},y=function e(t,n,r){var i;if(!t)return f;if("string"==typeof t){var a=t.toLowerCase();p[a]&&(i=a),n&&(p[a]=n,i=a);var o=t.split("-");if(!i&&o.length>1)return e(o[0])}else{var s=t.name;p[s]=t,i=s}return!r&&i&&(f=i),i||!r&&f},b=function(e,t){if(m(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new x(n)},v={s:h,z:function(e){var t=-e.utcOffset(),n=Math.abs(t);return(t<=0?"+":"-")+h(Math.floor(n/60),2,"0")+":"+h(n%60,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,a),o=n-i<0,s=t.clone().add(r+(o?-1:1),a);return+(-(r+(n-i)/(o?i-s:s-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(u){return({M:a,y:s,w:i,d:"day",D:l,h:r,m:n,s:t,ms:e,Q:o})[u]||String(u||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};v.l=y,v.i=m,v.w=function(e,t){return b(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var x=function(){function h(e){this.$L=y(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[g]=!0}var f=h.prototype;return f.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(v.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(c);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},f.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},f.$utils=function(){return v},f.isValid=function(){return this.$d.toString()!==u},f.isSame=function(e,t){var n=b(e);return this.startOf(t)<=n&&n<=this.endOf(t)},f.isAfter=function(e,t){return b(e)<this.startOf(t)},f.isBefore=function(e,t){return this.endOf(t)<b(e)},f.$g=function(e,t,n){return v.u(e)?this[t]:this.set(n,e)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(e,o){var u=this,c=!!v.u(o)||o,d=v.p(e),h=function(e,t){var n=v.w(u.$u?Date.UTC(u.$y,t,e):new Date(u.$y,t,e),u);return c?n:n.endOf("day")},f=function(e,t){return v.w(u.toDate()[e].apply(u.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),u)},p=this.$W,g=this.$M,m=this.$D,y="set"+(this.$u?"UTC":"");switch(d){case s:return c?h(1,0):h(31,11);case a:return c?h(1,g):h(0,g+1);case i:var b=this.$locale().weekStart||0,x=(p<b?p+7:p)-b;return h(c?m-x:m+(6-x),g);case"day":case l:return f(y+"Hours",0);case r:return f(y+"Minutes",1);case n:return f(y+"Seconds",2);case t:return f(y+"Milliseconds",3);default:return this.clone()}},f.endOf=function(e){return this.startOf(e,!1)},f.$set=function(i,o){var u,c=v.p(i),d="set"+(this.$u?"UTC":""),h=((u={}).day=d+"Date",u[l]=d+"Date",u[a]=d+"Month",u[s]=d+"FullYear",u[r]=d+"Hours",u[n]=d+"Minutes",u[t]=d+"Seconds",u[e]=d+"Milliseconds",u)[c],f="day"===c?this.$D+(o-this.$W):o;if(c===a||c===s){var p=this.clone().set(l,1);p.$d[h](f),p.init(),this.$d=p.set(l,Math.min(this.$D,p.daysInMonth())).$d}else h&&this.$d[h](f);return this.init(),this},f.set=function(e,t){return this.clone().$set(e,t)},f.get=function(e){return this[v.p(e)]()},f.add=function(e,o){var l,u=this;e=Number(e);var c=v.p(o),d=function(t){var n=b(u);return v.w(n.date(n.date()+Math.round(t*e)),u)};if(c===a)return this.set(a,this.$M+e);if(c===s)return this.set(s,this.$y+e);if("day"===c)return d(1);if(c===i)return d(7);var h=((l={})[n]=6e4,l[r]=36e5,l[t]=1e3,l)[c]||1,f=this.$d.getTime()+e*h;return v.w(f,this)},f.subtract=function(e,t){return this.add(-1*e,t)},f.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||u;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=v.z(this),a=this.$H,o=this.$m,s=this.$M,l=n.weekdays,c=n.months,h=n.meridiem,f=function(e,n,i,a){return e&&(e[
1n]||e(t,r))||i[n].slice(0,a)},p=function(e){return v.s(a%12||12,e,"0")},g=h||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(d,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return v.s(t.$y,4,"0");case"M":return s+1;case"MM":return v.s(s+1,2,"0");case"MMM":return f(n.monthsShort,s,c,3);case"MMMM":return f(c,s);case"D":return t.$D;case"DD":return v.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return f(n.weekdaysMin,t.$W,l,2);case"ddd":return f(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(a);case"HH":return v.s(a,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return g(a,o,!0);case"A":return g(a,o,!1);case"m":return String(o);case"mm":return v.s(o,2,"0");case"s":return String(t.$s);case"ss":return v.s(t.$s,2,"0");case"SSS":return v.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},f.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},f.diff=function(e,l,u){var c,d=this,h=v.p(l),f=b(e),p=(f.utcOffset()-this.utcOffset())*6e4,g=this-f,m=function(){return v.m(d,f)};switch(h){case s:c=m()/12;break;case a:c=m();break;case o:c=m()/3;break;case i:c=(g-p)/6048e5;break;case"day":c=(g-p)/864e5;break;case r:c=g/36e5;break;case n:c=g/6e4;break;case t:c=g/1e3;break;default:c=g}return u?c:v.a(c)},f.daysInMonth=function(){return this.endOf(a).$D},f.$locale=function(){return p[this.$L]},f.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=y(e,t,!0);return r&&(n.$L=r),n},f.clone=function(){return v.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},h}(),k=x.prototype;return b.prototype=k,[["$ms",e],["$s",t],["$m",n],["$H",r],["$W","day"],["$M",a],["$y",s],["$D",l]].forEach(function(e){k[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),b.extend=function(e,t){return e.$i||(e(t,x,b),e.$i=!0),b},b.locale=y,b.isDayjs=m,b.unix=function(e){return b(1e3*e)},b.en=p[f],b.Ls=p,b.p={},b},e.exports=t()},55553:function(e,t,n){"use strict";n.d(t,{p8:function(){return eC}});var r,i,a,o,s,l,u,c,d,h,f,p=n(22839),g={},m=180/Math.PI,y=Math.PI/180,b=Math.atan2,v=/([A-Z])/g,x=/(left|right|width|margin|padding|x)/i,k=/[\s,\(]\S/,w={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},_=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},S=function(e,t){return t.set(t.t,t.p,1===e?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},C=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},M=function(e,t){return t.set(t.t,t.p,1===e?t.e:e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},A=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},E=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},T=function(e,t){return t.set(t.t,t.p,1!==e?t.b:t.e,t)},R=function(e,t,n){return e.style[t]=n},N=function(e,t,n){return e.style.setProperty(t,n)},P=function(e,t,n){return e._gsap[t]=n},L=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},I=function(e,t,n,r,i){var a=e._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},O=function(e,t,n,r,i){var a=e._gsap;a[t]=n,a.renderTransform(i,a)},$="transform",j=$+"Origin",D=function e(t,n){var r=this,i=this.target,a=i.style,o=i._gsap;if(t in g&&a){if(this.tfm=this.tfm||{},"transform"===t)return w.transform.split(",").forEach(function(t){return e.call(r,t,n)});if(~(t=w[t]||t).indexOf(",")?t.split(",").forEach(function(e){return r.tfm[e]=en(i,e)}):this.tfm[t]=o.x?o[t]:en(i,t),t===j&&(this.tfm.zOrigin=o.zOrigin),this.props.indexOf($)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(j,n,"")),t=$}(a||n)&&this.props.push(t,n,a[t])},F=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},B=function(){var e,t,n=this.props,r=this.target,i=r.style,a=r._gsap;for(e=0;e<n.length;e+=3)n[e+1]?2===n[e+1]?r[n[e]](n[e+2]):r[n[e]]=n[e+2]:n[e+2]?i[n[e]]=n[e+2]:i.removeProperty("--"===n[e].substr(0,2)?n[e]:n[e].replace(v,"-$1").toLowerCase());if(this.tfm){for(t in this.tfm)a[t]=this.tfm[t];a.svg&&(a.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),(e=h())&&e.isStart||i[$]||(F(i),a.zOrigin&&i[j]&&(i[j]+=" "+a.zOrigin+"px",a.zOrigin=0,a.renderTransform()),a.uncache=1)}},z=function(e,t){var n={target:e,props:[],revert:B,save:D};return e._gsap||p.p8.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach(function(e){return n.save(e)}),n},U=function(e,t){var n=s.createElementNS?s.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):s.createElement(e);return n&&n.style?n:s.createElement(e)},W=function e(t,n,r){var i=getComputedStyle(t);return i[n]||i.getPropertyValue(n.replace(v,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&e(t,q(n)||n,1)||""},H="O,Moz,ms,Ms,Webkit".split(","),q=function(e,t,n){var r=(t||c).style,i=5;if(e in r&&!n)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);i--&&!(H[i]+e in r););return i<0?null:(3===i?"ms":i>=0?H[i]:"")+e},G=function(){"undefined"!=typeof window&&window.document&&(l=(s=window.document).documentElement,c=U("div")||{style:{}},U("div"),j=($=q($))+"Origin",c.style.cssText="border-width:0;line-height:0;position:absolute;
1padding:0",f=!!q("perspective"),h=p.p8.core.reverting,u=1)},V=function(e){var t,n=e.ownerSVGElement,r=U("svg",n&&n.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=e.cloneNode(!0);i.style.display="block",r.appendChild(i),l.appendChild(r);try{t=i.getBBox()}catch(e){}return r.removeChild(i),l.removeChild(r),t},Z=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},Y=function(e){var t,n;try{t=e.getBBox()}catch(r){t=V(e),n=1}return t&&(t.width||t.height)||n||(t=V(e)),!t||t.width||t.x||t.y?t:{x:+Z(e,["x","cx","x1"])||0,y:+Z(e,["y","cy","y1"])||0,width:0,height:0}},X=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Y(e))},Q=function(e,t){if(t){var n,r=e.style;t in g&&t!==j&&(t=$),r.removeProperty?(("ms"===(n=t.substr(0,2))||"webkit"===t.substr(0,6))&&(t="-"+t),r.removeProperty("--"===n?t:t.replace(v,"-$1").toLowerCase())):r.removeAttribute(t)}},K=function(e,t,n,r,i,a){var o=new p.Fo(e._pt,t,n,0,1,a?T:E);return e._pt=o,o.b=r,o.e=i,e._props.push(n),o},J={deg:1,rad:1,turn:1},ee={grid:1,flex:1},et=function e(t,n,r,i){var a,o,l,u,d=parseFloat(r)||0,h=(r+"").trim().substr((d+"").length)||"px",f=c.style,m=x.test(n),y="svg"===t.tagName.toLowerCase(),b=(y?"client":"offset")+(m?"Width":"Height"),v="px"===i,k="%"===i;if(i===h||!d||J[i]||J[h])return d;if("px"===h||v||(d=e(t,n,r,"px")),u=t.getCTM&&X(t),(k||"%"===h)&&(g[n]||~n.indexOf("adius")))return a=u?t.getBBox()[m?"width":"height"]:t[b],(0,p.Pr)(k?d/a*100:d/100*a);if(f[m?"width":"height"]=100+(v?h:i),o="rem"!==i&&~n.indexOf("adius")||"em"===i&&t.appendChild&&!y?t:t.parentNode,u&&(o=(t.ownerSVGElement||{}).parentNode),o&&o!==s&&o.appendChild||(o=s.body),(l=o._gsap)&&k&&l.width&&m&&l.time===p.xr.time&&!l.uncache)return(0,p.Pr)(d/l.width*100);if(k&&("height"===n||"width"===n)){var w=t.style[n];t.style[n]=100+i,a=t[b],w?t.style[n]=w:Q(t,n)}else(k||"%"===h)&&!ee[W(o,"display")]&&(f.position=W(t,"position")),o===t&&(f.position="static"),o.appendChild(c),a=c[b],o.removeChild(c),f.position="absolute";return m&&k&&((l=(0,p.DY)(o)).time=p.xr.time,l.width=o[b]),(0,p.Pr)(v?a*d/100:a&&d?100/a*d:0)},en=function(e,t,n,r){var i;return u||G(),t in w&&"transform"!==t&&~(t=w[t]).indexOf(",")&&(t=t.split(",")[0]),g[t]&&"transform"!==t?(i=ep(e,r),i="transformOrigin"!==t?i[t]:i.svg?i.origin:eg(W(e,j))+" "+i.zOrigin+"px"):(!(i=e.style[t])||"auto"===i||r||~(i+"").indexOf("calc("))&&(i=es[t]&&es[t](e,t,n)||W(e,t)||(0,p.Ok)(e,t)||("opacity"===t?1:0)),n&&!~(i+"").trim().indexOf(" ")?et(e,t,i,n)+n:i},er=function(e,t,n,r){if(!n||"none"===n){var i=q(t,e,1),a=i&&W(e,i,1);a&&a!==n?(t=i,n=a):"borderColor"===t&&(n=W(e,"borderTopColor"))}var o,s,l,u,c,d,h,f,g,m,y,b=new p.Fo(this._pt,e.style,t,0,1,p.Ks),v=0,x=0;if(b.b=n,b.e=r,n+="","var(--"===(r+="").substring(0,6)&&(r=W(e,r.substring(4,r.indexOf(")")))),"auto"===r&&(d=e.style[t],e.style[t]=r,r=W(e,t)||r,d?e.style[t]=d:Q(e,t)),o=[n,r],(0,p.kr)(o),n=o[0],r=o[1],l=n.match(p.d4)||[],(r.match(p.d4)||[]).length){for(;s=p.d4.exec(r);)h=s[0],g=r.substring(v,s.index),c?c=(c+1)%5:("rgba("===g.substr(-5)||"hsla("===g.substr(-5))&&(c=1),h!==(d=l[x++]||"")&&(u=parseFloat(d)||0,y=d.substr((u+"").length),"="===h.charAt(1)&&(h=(0,p.cy)(u,h)+y),f=parseFloat(h),m=h.substr((f+"").length),v=p.d4.lastIndex-m.length,m||(m=m||p.Fc.units[t]||y,v!==r.length||(r+=m,b.e+=m)),y!==m&&(u=et(e,t,d,m)||0),b._pt={_next:b._pt,p:g||1===x?g:",",s:u,c:f-u,m:c&&c<4||"zIndex"===t?Math.round:0});b.c=v<r.length?r.substring(v,r.length):""}else b.r="display"===t&&"none"===r?T:E;return p.bQ.test(r)&&(b.e=0),this._pt=b,b},ei={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},ea=function(e){var t=e.split(" "),n=t[0],r=t[1]||"50%";return("top"===n||"bottom"===n||"left"===r||"right"===r)&&(e=n,n=r,r=e),t[0]=ei[n]||n,t[1]=ei[r]||r,t.join(" ")},eo=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var n,r,i,a=t.t,o=a.style,s=t.u,l=a._gsap;if("all"===s||!0===s)o.cssText="",r=1;else for(i=(s=s.split(",")).length;--i>-1;)g[n=s[i]]&&(r=1,n="transformOrigin"===n?j:$),Q(a,n);r&&(Q(a,$),l&&(l.svg&&a.removeAttribute("transform"),o.scale=o.rotate=o.translate="none",ep(a,1
1),l.uncache=1,F(o)))}},es={clearProps:function(e,t,n,r,i){if("isFromStart"!==i.data){var a=e._pt=new p.Fo(e._pt,t,n,0,0,eo);return a.u=r,a.pr=-10,a.tween=i,e._props.push(n),1}}},el=[1,0,0,1,0,0],eu={},ec=function(e){return"matrix(1, 0, 0, 1, 0, 0)"===e||"none"===e||!e},ed=function(e){var t=W(e,$);return ec(t)?el:t.substr(7).match(p.SI).map(p.Pr)},eh=function(e,t){var n,r,i,a,o=e._gsap||(0,p.DY)(e),s=e.style,u=ed(e);return o.svg&&e.getAttribute("transform")?"1,0,0,1,0,0"===(u=[(i=e.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?el:u:(u!==el||e.offsetParent||e===l||o.svg||(i=s.display,s.display="block",(n=e.parentNode)&&(e.offsetParent||e.getBoundingClientRect().width)||(a=1,r=e.nextElementSibling,l.appendChild(e)),u=ed(e),i?s.display=i:Q(e,"display"),a&&(r?n.insertBefore(e,r):n?n.appendChild(e):l.removeChild(e))),t&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},ef=function(e,t,n,r,i,a){var o,s,l,u,c=e._gsap,d=i||eh(e,!0),h=c.xOrigin||0,f=c.yOrigin||0,p=c.xOffset||0,g=c.yOffset||0,m=d[0],y=d[1],b=d[2],v=d[3],x=d[4],k=d[5],w=t.split(" "),_=parseFloat(w[0])||0,S=parseFloat(w[1])||0;n?d!==el&&(s=m*v-y*b)&&(l=v/s*_+-b/s*S+(b*k-v*x)/s,u=-y/s*_+m/s*S-(m*k-y*x)/s,_=l,S=u):(_=(o=Y(e)).x+(~w[0].indexOf("%")?_/100*o.width:_),S=o.y+(~(w[1]||w[0]).indexOf("%")?S/100*o.height:S)),r||!1!==r&&c.smooth?(x=_-h,k=S-f,c.xOffset=p+(x*m+k*b)-x,c.yOffset=g+(x*y+k*v)-k):c.xOffset=c.yOffset=0,c.xOrigin=_,c.yOrigin=S,c.smooth=!!r,c.origin=t,c.originIsAbsolute=!!n,e.style[j]="0px 0px",a&&(K(a,c,"xOrigin",h,_),K(a,c,"yOrigin",f,S),K(a,c,"xOffset",p,c.xOffset),K(a,c,"yOffset",g,c.yOffset)),e.setAttribute("data-svg-origin",_+" "+S)},ep=function(e,t){var n=e._gsap||new p.l1(e);if("x"in n&&!t&&!n.uncache)return n;var r,i,a,o,s,l,u,c,d,h,g,v,x,k,w,_,S,C,M,A,E,T,R,N,P,L,I,O,D,F,B,z,U=e.style,H=n.scaleX<0,q=getComputedStyle(e),G=W(e,j)||"0";return r=i=a=l=u=c=d=h=g=0,o=s=1,n.svg=!!(e.getCTM&&X(e)),q.translate&&(("none"!==q.translate||"none"!==q.scale||"none"!==q.rotate)&&(U[$]=("none"!==q.translate?"translate3d("+(q.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==q.rotate?"rotate("+q.rotate+") ":"")+("none"!==q.scale?"scale("+q.scale.split(" ").join(",")+") ":"")+("none"!==q[$]?q[$]:"")),U.scale=U.rotate=U.translate="none"),k=eh(e,n.svg),n.svg&&(n.uncache?(P=e.getBBox(),G=n.xOrigin-P.x+"px "+(n.yOrigin-P.y)+"px",N=""):N=!t&&e.getAttribute("data-svg-origin"),ef(e,N||G,!!N||n.originIsAbsolute,!1!==n.smooth,k)),v=n.xOrigin||0,x=n.yOrigin||0,k!==el&&(C=k[0],M=k[1],A=k[2],E=k[3],r=T=k[4],i=R=k[5],6===k.length?(o=Math.sqrt(C*C+M*M),s=Math.sqrt(E*E+A*A),l=C||M?b(M,C)*m:0,(d=A||E?b(A,E)*m+l:0)&&(s*=Math.abs(Math.cos(d*y))),n.svg&&(r-=v-(v*C+x*A),i-=x-(v*M+x*E))):(z=k[6],F=k[7],I=k[8],O=k[9],D=k[10],B=k[11],r=k[12],i=k[13],a=k[14],u=(w=b(z,D))*m,w&&(N=T*(_=Math.cos(-w))+I*(S=Math.sin(-w)),P=R*_+O*S,L=z*_+D*S,I=-(T*S)+I*_,O=-(R*S)+O*_,D=-(z*S)+D*_,B=-(F*S)+B*_,T=N,R=P,z=L),c=(w=b(-A,D))*m,w&&(N=C*(_=Math.cos(-w))-I*(S=Math.sin(-w)),P=M*_-O*S,L=A*_-D*S,B=E*S+B*_,C=N,M=P,A=L),l=(w=b(M,C))*m,w&&(N=C*(_=Math.cos(w))+M*(S=Math.sin(w)),P=T*_+R*S,M=M*_-C*S,R=R*_-T*S,C=N,T=P),u&&Math.abs(u)+Math.abs(l)>359.9&&(u=l=0,c=180-c),o=(0,p.Pr)(Math.sqrt(C*C+M*M+A*A)),s=(0,p.Pr)(Math.sqrt(R*R+z*z)),d=Math.abs(w=b(T,R))>2e-4?w*m:0,g=B?1/(B<0?-B:B):0),n.svg&&(N=e.getAttribute("transform"),n.forceCSS=e.setAttribute("transform","")||!ec(W(e,$)),N&&e.setAttribute("transform",N))),Math.abs(d)>90&&270>Math.abs(d)&&(H?(o*=-1,d+=l<=0?180:-180,l+=l<=0?180:-180):(s*=-1,d+=d<=0?180:-180)),t=t||n.uncache,n.x=r-((n.xPercent=r&&(!t&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-r)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+"px",n.y=i-((n.yPercent=i&&(!t&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-i)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+"px",n.z=a+"px",n.scaleX=(0,p.Pr)(o),n.scaleY=(0,p.Pr)(s),n.rotation=(0,p.Pr)(l)+"deg",n.rotationX=(0,p.Pr)(u)+"deg",n.rotationY=(0,p.Pr)(c)+"deg",n.skewX=d+"deg",n.skewY=h+"deg",n.transformPerspective=g+"px",(n.zOrigin=parseFloat(G.split(" ")[2])||!t&&n.zOrigin||0)&&(U[j]=eg(G)),n.xOffset=n.yOffset=0,n.force3D=p.Fc.force3D,n.renderTransform=n.svg?ex:f?ev:ey,n.uncache=0,n},eg=function(e){return(e=e.split(" "))[0]+" "+e[1]},em=function(e,t,n){var r=(0,p.Wy)(t);return(0,p.Pr)(parseFloat(t)+parseFloat(et(e,"x",n+"px",r)))+r},ey=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,ev(e,t)},eb="0deg",ev=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.z,l=n.rotation,u=n.rotationY,c=n.rotationX,d=n.skewX,h=n.skewY,f=n.scaleX,p=n.scaleY,g=n.transformPerspective,m=n.force3D,b=n.target,v=n.zOrigin,x="",k="auto"===m&&e&&1!==e||!0===m;if(v&&(c!==eb||u!==eb)){var w,_=parseFloat(u)*y,S=Math.sin(_),C=Math.cos(_);a=em(b,a,-(S*(w=Math.cos(_=parseFloat(c)*y))*v)),o=em(b,o,-(-Math.sin(_)*v)),s=em(b,s,-(C*w*v)+v)}"0px"!==g&&(x+="perspective("+g+") "),(r||i)&&(x+="translate("+r+"%, "+i+"%) "),(k||"0px"!==a||"0px"!==o||"0px"!==s)&&(x+="0px"!==s||k?"translate3d("+a+", "+o+", "+s+") ":"translate("+a+", "+o+") "),l!==eb&&(x+="rotate("+l+") "),u!==eb&&(x+="rotateY("+u+") "),c!==eb&&(x+="rotateX("+c+") "),(d!==eb||h!==eb)&&(x+="skew("+d+", "+h+") "),(1!==f||1!==p)&&
1(x+="scale("+f+", "+p+") "),b.style[$]=x||"translate(0, 0)"},ex=function(e,t){var n,r,i,a,o,s=t||this,l=s.xPercent,u=s.yPercent,c=s.x,d=s.y,h=s.rotation,f=s.skewX,g=s.skewY,m=s.scaleX,b=s.scaleY,v=s.target,x=s.xOrigin,k=s.yOrigin,w=s.xOffset,_=s.yOffset,S=s.forceCSS,C=parseFloat(c),M=parseFloat(d);h=parseFloat(h),f=parseFloat(f),(g=parseFloat(g))&&(f+=g=parseFloat(g),h+=g),h||f?(h*=y,f*=y,n=Math.cos(h)*m,r=Math.sin(h)*m,i=-(Math.sin(h-f)*b),a=Math.cos(h-f)*b,f&&(g*=y,i*=o=Math.sqrt(1+(o=Math.tan(f-g))*o),a*=o,g&&(n*=o=Math.sqrt(1+(o=Math.tan(g))*o),r*=o)),n=(0,p.Pr)(n),r=(0,p.Pr)(r),i=(0,p.Pr)(i),a=(0,p.Pr)(a)):(n=m,a=b,r=i=0),(C&&!~(c+"").indexOf("px")||M&&!~(d+"").indexOf("px"))&&(C=et(v,"x",c,"px"),M=et(v,"y",d,"px")),(x||k||w||_)&&(C=(0,p.Pr)(C+x-(x*n+k*i)+w),M=(0,p.Pr)(M+k-(x*r+k*a)+_)),(l||u)&&(o=v.getBBox(),C=(0,p.Pr)(C+l/100*o.width),M=(0,p.Pr)(M+u/100*o.height)),o="matrix("+n+","+r+","+i+","+a+","+C+","+M+")",v.setAttribute("transform",o),S&&(v.style[$]=o)},ek=function(e,t,n,r,i){var a,o,s=(0,p.r9)(i),l=parseFloat(i)*(s&&~i.indexOf("rad")?m:1)-r,u=r+l+"deg";return s&&("short"===(a=i.split("_")[1])&&(l%=360)!=l%180&&(l+=l<0?360:-360),"cw"===a&&l<0?l=(l+36e9)%360-360*~~(l/360):"ccw"===a&&l>0&&(l=(l-36e9)%360-360*~~(l/360))),e._pt=o=new p.Fo(e._pt,t,n,r,l,S),o.e=u,o.u="deg",e._props.push(n),o},ew=function(e,t){for(var n in t)e[n]=t[n];return e},e_=function(e,t,n){var r,i,a,o,s,l,u,c=ew({},n._gsap),d=n.style;for(i in c.svg?(a=n.getAttribute("transform"),n.setAttribute("transform",""),d[$]=t,r=ep(n,1),Q(n,$),n.setAttribute("transform",a)):(a=getComputedStyle(n)[$],d[$]=t,r=ep(n,1),d[$]=a),g)(a=c[i])!==(o=r[i])&&0>"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)&&(s=(0,p.Wy)(a)!==(u=(0,p.Wy)(o))?et(n,i,a,u):parseFloat(a),l=parseFloat(o),e._pt=new p.Fo(e._pt,r,i,s,l-s,_),e._pt.u=u||0,e._props.push(i));ew(r,c)};(0,p.fS)("padding,margin,Width,Radius",function(e,t){var n="Right",r="Bottom",i="Left",a=(t<3?["Top",n,r,i]:["Top"+i,"Top"+n,r+n,r+i]).map(function(n){return t<2?e+n:"border"+n+e});es[t>1?"border"+e:e]=function(e,t,n,r,i){var o,s;if(arguments.length<4)return 5===(s=(o=a.map(function(t){return en(e,t,n)})).join(" ")).split(o[0]).length?o[0]:s;o=(r+"").split(" "),s={},a.forEach(function(e,t){return s[e]=o[t]=o[t]||o[(t-1)/2|0]}),e.init(t,s,i)}});var eS={name:"css",register:G,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,r,i){var a,o,s,l,c,d,h,f,m,y,b,v,x,S,E,T,R,N=this._props,P=e.style,L=n.vars.startAt;for(h in u||G(),this.styles=this.styles||z(e),T=this.styles.props,this.tween=n,t)if("autoRound"!==h&&(o=t[h],!(p.$i[h]&&(0,p.if)(h,t,n,r,e,i)))){if(c=typeof o,d=es[h],"function"===c&&(c=typeof(o=o.call(n,r,e,i))),"string"===c&&~o.indexOf("random(")&&(o=(0,p.UI)(o)),d)d(this,e,h,o,n)&&(E=1);else if("--"===h.substr(0,2))a=(getComputedStyle(e).getPropertyValue(h)+"").trim(),o+="",p.GN.lastIndex=0,!p.GN.test(a)&&(f=(0,p.Wy)(a),(m=(0,p.Wy)(o))?f!==m&&(a=et(e,h,a,m)+m):f&&(o+=f)),this.add(P,"setProperty",a,o,r,i,0,0,h),N.push(h),T.push(h,0,P[h]);else if("undefined"!==c){if(L&&h in L?(a="function"==typeof L[h]?L[h].call(n,r,e,i):L[h],(0,p.r9)(a)&&~a.indexOf("random(")&&(a=(0,p.UI)(a)),(0,p.Wy)(a+"")||"auto"===a||(a+=p.Fc.units[h]||(0,p.Wy)(en(e,h))||""),"="===(a+"").charAt(1)&&(a=en(e,h))):a=en(e,h),l=parseFloat(a),(y="string"===c&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),s=parseFloat(o),h in w&&("autoAlpha"===h&&(1===l&&"hidden"===en(e,"visibility")&&s&&(l=0),T.push("visibility",0,P.visibility),K(this,P,"visibility",l?"inherit":"hidden",s?"inherit":"hidden",!s)),"scale"!==h&&"transform"!==h&&~(h=w[h]).indexOf(",")&&(h=h.split(",")[0])),b=h in g){if(this.styles.save(h),R=o,"string"===c&&"var(--"===o.substring(0,6)){if("calc("===(o=W(e,o.substring(4,o.indexOf(")")))).substring(0,5)){var I=e.style.perspective;e.style.perspective=o,o=W(e,"perspective"),I?e.style.perspective=I:Q(e,"perspective")}s=parseFloat(o)}if(v||((x=e._gsap).renderTransform&&!t.parseTransform||ep(e,t.parseTransform),S=!1!==t.smoothOrigin&&x.smooth,(v=this._pt=new p.Fo(this._pt,P,$,0,1,x.renderTransform,x,0,-1)).dep=1),"scale"===h)this._pt=new p.Fo(this._pt,x,"scaleY",x.scaleY,(y?(0,p.
1cy)(x.scaleY,y+s):s)-x.scaleY||0,_),this._pt.u=0,N.push("scaleY",h),h+="X";else if("transformOrigin"===h){T.push(j,0,P[j]),o=ea(o),x.svg?ef(e,o,0,S,0,this):((m=parseFloat(o.split(" ")[2])||0)!==x.zOrigin&&K(this,x,"zOrigin",x.zOrigin,m),K(this,P,h,eg(a),eg(o)));continue}else if("svgOrigin"===h){ef(e,o,1,S,0,this);continue}else if(h in eu){ek(this,x,h,l,y?(0,p.cy)(l,y+o):o);continue}else if("smoothOrigin"===h){K(this,x,"smooth",x.smooth,o);continue}else if("force3D"===h){x[h]=o;continue}else if("transform"===h){e_(this,o,e);continue}}else h in P||(h=q(h)||h);if(b||(s||0===s)&&(l||0===l)&&!k.test(o)&&h in P)f=(a+"").substr((l+"").length),s||(s=0),m=(0,p.Wy)(o)||(h in p.Fc.units?p.Fc.units[h]:f),f!==m&&(l=et(e,h,a,m)),this._pt=new p.Fo(this._pt,b?x:P,h,l,(y?(0,p.cy)(l,y+s):s)-l,b||"px"!==m&&"zIndex"!==h||!1===t.autoRound?_:A),this._pt.u=m||0,b&&R!==o?(this._pt.b=a,this._pt.e=R,this._pt.r=M):f!==m&&"%"!==m&&(this._pt.b=a,this._pt.r=C);else if(h in P)er.call(this,e,h,a,y?y+o:o);else if(h in e)this.add(e,h,a||e[h],y?y+o:o,r,i);else if("parseTransform"!==h){(0,p.lC)(h,o);continue}b||(h in P?T.push(h,0,P[h]):"function"==typeof e[h]?T.push(h,2,e[h]()):T.push(h,1,a||e[h])),N.push(h)}}E&&(0,p.JV)(this)},render:function(e,t){if(t.tween._time||!h())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:en,aliases:w,getSetter:function(e,t,n){var r=w[t];return r&&0>r.indexOf(",")&&(t=r),t in g&&t!==j&&(e._gsap.x||en(e,"x"))?n&&d===n?"scale"===t?L:P:(d=n||{},"scale"===t?I:O):e.style&&!(0,p.m2)(e.style[t])?R:~t.indexOf("-")?N:(0,p.S5)(e,t)},core:{_removeProperty:Q,_getMatrix:eh}};p.p8.utils.checkPrefix=q,p.p8.core.getStyleSaver=z,r="x,y,z,scale,scaleX,scaleY,xPercent,yPercent",i="rotation,rotationX,rotationY,skewX,skewY",a="0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",o=(0,p.fS)(r+","+i+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(e){g[e]=1}),(0,p.fS)(i,function(e){p.Fc.units[e]="deg",eu[e]=1}),w[o[13]]=r+","+i,(0,p.fS)(a,function(e){var t=e.split(":");w[t[1]]=o[t[0]]}),(0,p.fS)("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){p.Fc.units[e]="px"}),p.p8.registerPlugin(eS);var eC=p.p8.registerPlugin(eS)||p.p8;eC.core.Tween},9418:function(e,t,n){"use strict";function r(e,t,n){if(e&&e.length){let[r,i]=t,a=Math.PI/180*n,o=Math.cos(a),s=Math.sin(a);for(let t of e){let[e,n]=t;t[0]=(e-r)*o-(n-i)*s+r,t[1]=(e-r)*s+(n-i)*o+i}}}function i(e,t){var n;let i=t.hachureAngle+90,a=t.hachureGap;a<0&&(a=4*t.strokeWidth),a=Math.round(Math.max(a,.1));let o=1;return t.roughness>=1&&((null===(n=t.randomizer)||void 0===n?void 0:n.next())||Math.random())>.7&&(o=a),function(e,t,n,i=1){let a=e[0]&&e[0][0]&&"number"==typeof e[0][0]?[e]:e,o=[0,0];if(n)for(let e of a)r(e,o,n);let s=function(e,t,n){let r=[];for(let t of e){var i,a;let e=[...t];i=e[0],a=e[e.length-1],i[0]===a[0]&&i[1]===a[1]||e.push([e[0][0],e[0][1]]),e.length>2&&r.push(e)}let o=[];t=Math.max(t,.1);let s=[];for(let e of r)for(let t=0;t<e.length-1;t++){let n=e[t],r=e[t+1];if(n[1]!==r[1]){let e=Math.min(n[1],r[1]);s.push({ymin:e,ymax:Math.max(n[1],r[1]),x:e===n[1]?n[0]:r[0],islope:(r[0]-n[0])/(r[1]-n[1])})}}if(s.sort((e,t)=>e.ymin<t.ymin?-1:e.ymin>t.ymin?1:e.x<t.x?-1:e.x>t.x?1:e.ymax===t.ymax?0:(e.ymax-t.ymax)/Math.abs(e.ymax-t.ymax)),!s.length)return o;let l=[],u=s[0].ymin,c=0;for(;l.length||s.length;){if(s.length){let e=-1;for(let t=0;t<s.length&&!(s[t].ymin>u);t++)e=t;s.splice(0,e+1).forEach(e=>{l.push({s:u,edge:e})})}if((l=l.filter(e=>!(e.edge.ymax<=u))).sort((e,t)=>e.edge.x===t.edge.x?0:(e.edge.x-t.edge.x)/Math.abs(e.edge.x-t.edge.x)),(1!==n||c%t==0)&&l.length>1)for(let e=0;e<l.length;e+=2){let t=e+1;if(t>=l.length)break;let n=l[e].edge,r=l[t].edge;o.push([[Math.round(n.x),u],[Math.round(r.x),u]])}u+=n,l.forEach(e=>{e.edge.x=e.edge.x+n*e.edge.islope}),c++}return o}(a,Math.max(t,.1),i);if(n){for(let e of a)r(e,o,-n);!function(e,t,n){let i=[];e.forEach(e=>i.push(...e)),r(i,t,n)}(s,o,-n)}return s}(e,a,i,o||1)}n.d(t,{Z:function(){return Y}});class a{constructor(e){this.helper=e}fillPolygons(e,t){return this._fillPolygons(e,t)}_fillPolygons(e,t){let n=i(e,t);return{type:"fillSketch",ops:this.renderLines(n,t)}}renderLines(e,t){let n=[];for(let r of e)n.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],t));return n}}function o(e){let t=e[0],n=e[1];return Math.sqrt(Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2))}class s extends a{fillPolygons(e,t){let n=t.hachureGap;n<0&&(n=4*t.strokeWidth);let r=i(e,Object.assign({},t,{hachureGap:n=Math.max(n,.1)})),a=Math.PI/180*t.hachureAngle,s=[],l=.5*n*Math.cos(a),u=.5*n*Math.sin(a);for(let[e,t]of r)o([e,t])&&s.push([[e[0]-l,e[1]+u],[...t]],[[e[0]+l,e[1]-u],[...t]]);return{type:"fillSketch",ops:this.renderLines(s,t)}}}class l extends a{fillPolygons(e,t){let n=this._fillPolygons(e,t),r=Object.assign({},t,{hachureAngle:t.hachureAngle+90}),i=this._fillPolygons(e,r);return n.ops=n.ops.concat(i.ops),n}}class u{constructor(e){this.helper=e}fillPolygons(e,t){let n=i(e,t=Object.assign({},t,{hachureAngle:0}));return this.dotsOnLines(n,t)}dotsOnLines(e,t){let n=[],r=t.hachureGap;r<0&&(r=4*t.strokeWidth),r=Math.max(r,.1);let i=t.fillWeight;i<0&&(i=t.strokeWidth/2);let a=r/4;for(let s of e){let e=o(s),l=Math.ceil(e/r)-1,u=e-l*r,c=(s[0][0]+s[1][0])/2-r/4,d=Math.min(s[0][1],s[1][1]);for(let e=0;e<l;e++){let o=c-a+2*Math.random()*a,s=d+u+e*r-a+2*Math.random()*a,l=this.helper.ellipse(o,s,i,i,t);n.push(...l.ops)}}return{type:"fillSketch",ops:n}}}class c{constructor(e){this.helper=e}fillPolygons(e,t){let n=i(e,t);return{type:"fillSketch",ops:this.dashedLine(n,t)}}dashedLine(e,t){let n=t.dashOffset<0?t.hachureGap<0?4*t.strokeWidth:t.hachureGap:t.dashOffset,r=t.dashGap<0?t.hachureGap<0?4*t.strokeWidth:t.hachureGap:t.dashGap,i=[];
vendor: 1,127 bytes, line 1
1return e.forEach(e=>{let a=o(e),s=Math.floor(a/(n+r)),l=(a+r-s*(n+r))/2,u=e[0],c=e[1];u[0]>c[0]&&(u=e[1],c=e[0]);let d=Math.atan((c[1]-u[1])/(c[0]-u[0]));for(let e=0;e<s;e++){let a=e*(n+r),o=a+n,s=[u[0]+a*Math.cos(d)+l*Math.cos(d),u[1]+a*Math.sin(d)+l*Math.sin(d)],c=[u[0]+o*Math.cos(d)+l*Math.cos(d),u[1]+o*Math.sin(d)+l*Math.sin(d)];i.push(...this.helper.doubleLineOps(s[0],s[1],c[0],c[1],t))}}),i}}class d{constructor(e){this.helper=e}fillPolygons(e,t){let n=t.hachureGap<0?4*t.strokeWidth:t.hachureGap,r=t.zigzagOffset<0?n:t.zigzagOffset,a=i(e,t=Object.assign({},t,{hachureGap:n+r}));return{type:"fillSketch",ops:this.zigzagLines(a,r,t)}}zigzagLines(e,t,n){let r=[];return e.forEach(e=>{let i=Math.round(o(e)/(2*t)),a=e[0],s=e[1];a[0]>s[0]&&(a=e[1],s=e[0]);let l=Math.atan((s[1]-a[1])/(s[0]-a[0]));for(let e=0;e<i;e++){let i=2*e*t,o=2*(e+1)*t,s=Math.sqrt(2*Math.pow(t,2)),u=[a[0]+i*Math.cos(l),a[1]+i*Math.sin(l)],c=[a[0]+o*Math.cos(l),a[1]+o*Math.sin(l)],d=[u[0]+s*Math.cos(l+Math.PI/4),u[1]+s*Math.sin(l+Math.PI/4)];r.push(...this.helper.doubleLineOps(u[0],u[1],d[0],d[1],n),...this.helper.doubleLineOps(d[0],d[1],c[0],c[
11],n))}}),r}}let h={};class f{constructor(e){this.seed=e}next(){return this.seed?(2147483648-1&(this.seed=Math.imul(48271,this.seed)))/2147483648:Math.random()}}let p={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function g(e){let t=[],n=function(e){let t=[];for(;""!==e;)if(e.match(/^([ \t\r\n,]+)/))e=e.substr(RegExp.$1.length);else if(e.match(/^([aAcChHlLmMqQsStTvVzZ])/))t[t.length]={type:0,text:RegExp.$1},e=e.substr(RegExp.$1.length);else{if(!e.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];t[t.length]={type:1,text:`${parseFloat(RegExp.$1)}`},e=e.substr(RegExp.$1.length)}return t[t.length]={type:2,text:""},t}(e),r="BOD",i=0,a=n[0];for(;2!==a.type;){let o=0,s=[];if("BOD"===r){if("M"!==a.text&&"m"!==a.text)return g("M0,0"+e);i++,o=p[a.text],r=a.text}else 1===a.type?o=p[r]:(i++,o=p[a.text],r=a.text);if(!(i+o<n.length))throw Error("Path data ended short");for(let e=i;e<i+o;e++){let t=n[e];if(1!==t.type)throw Error("Param not a number: "+r+","+t.text);s[s.length]=+t.text}if("number"!=typeof p[r])throw Error("Bad segment: "+r);{let e={key:r,data:s};t.push(e),i+=o,a=n[i],"M"===r&&(r="L"),"m"===r&&(r="l")}}return t}function m(e){let t=0,n=0,r=0,i=0,a=[];for(let{key:o,data:s}of e)switch(o){case"M":a.push({key:"M",data:[...s]}),[t,n]=s,[r,i]=s;break;case"m":t+=s[0],n+=s[1],a.push({key:"M",data:[t,n]}),r=t,i=n;break;case"L":a.push({key:"L",data:[...s]}),[t,n]=s;break;case"l":t+=s[0],n+=s[1],a.push({key:"L",data:[t,n]});break;case"C":a.push({key:"C",data:[...s]}),t=s[4],n=s[5];break;case"c":{let e=s.map((e,r)=>r%2?e+n:e+t);a.push({key:"C",data:e}),t=e[4],n=e[5];break}case"Q":a.push({key:"Q",data:[...s]}),t=s[2],n=s[3];break;case"q":{let e=s.map((e,r)=>r%2?e+n:e+t);a.push({key:"Q",data:e}),t=e[2],n=e[3];break}case"A":a.push({key:"A",data:[...s]}),t=s[5],n=s[6];break;case"a":t+=s[5],n+=s[6],a.push({key:"A",data:[s[0],s[1],s[2],s[3],s[4],t,n]});break;case"H":a.push({key:"H",data:[...s]}),t=s[0];break;case"h":t+=s[0],a.push({key:"H",data:[t]});break;case"V":a.push({key:"V",data:[...s]}),n=s[0];break;case"v":n+=s[0],a.push({key:"V",data:[n]});break;case"S":a.push({key:"S",data:[...s]}),t=s[2],n=s[3];break;case"s":{let e=s.map((e,r)=>r%2?e+n:e+t);a.push({key:"S",data:e}),t=e[2],n=e[3];break}case"T":a.push({key:"T",data:[...s]}),t=s[0],n=s[1];break;case"t":t+=s[0],n+=s[1],a.push({key:"T",data:[t,n]});break;case"Z":case"z":a.push({key:"Z",data:[]}),t=r,n=i}return a}function y(e){let t=[],n="",r=0,i=0,a=0,o=0,s=0,l=0;for(let{key:u,data:c}of e){switch(u){case"M":t.push({key:"M",data:[...c]}),[r,i]=c,[a,o]=c;break;case"C":t.push({key:"C",data:[...c]}),r=c[4],i=c[5],s=c[2],l=c[3];break;case"L":t.push({key:"L",data:[...c]}),[r,i]=c;break;case"H":r=c[0],t.push({key:"L",data:[r,i]});break;case"V":i=c[0],t.push({key:"L",data:[r,i]});break;case"S":{let e=0,a=0;"C"===n||"S"===n?(e=r+(r-s),a=i+(i-l)):(e=r,a=i),t.push({key:"C",data:[e,a,...c]}),s=c[0],l=c[1],r=c[2],i=c[3];break}case"T":{let[e,a]=c,o=0,u=0;"Q"===n||"T"===n?(o=r+(r-s),u=i+(i-l)):(o=r,u=i);let d=r+2*(o-r)/3,h=i+2*(u-i)/3,f=e+2*(o-e)/3,p=a+2*(u-a)/3;t.push({key:"C",data:[d,h,f,p,e,a]}),s=o,l=u,r=e,i=a;break}case"Q":{let[e,n,a,o]=c,u=r+2*(e-r)/3,d=i+2*(n-i)/3,h=a+2*(e-a)/3,f=o+2*(n-o)/3;t.push({key:"C",data:[u,d,h,f,a,o]}),s=e,l=n,r=a,i=o;break}case"A":{let e=Math.abs(c[0]),n=Math.abs(c[1]),a=c[2],o=c[3],s=c[4],l=c[5],u=c[6];0===e||0===n?(t.push({key:"C",data:[r,i,l,u,l,u]}),r=l,i=u):(r!==l||i!==u)&&((function e(t,n,r,i,a,o,s,l,u,c){let d=Math.PI*s/180,h=[],f=0,p=0,g=0,m=0;if(c)[f,p,g,m]=c;else{[t,n]=b(t,n,-d),[r,i]=b(r,i,-d);let e=(t-r)/2,s=(n-i)/2,c=e*e/(a*a)+s*s/(o*o);c>1&&(a*=c=Math.sqrt(c),o*=c);let h=a*a,y=o*o,v=(l===u?-1:1)*Math.sqrt(Math.abs((h*y-h*s*s-y*e*e)/(h*s*s+y*e*e)));g=v*a*s/o+(t+r)/2,m=-(v*o)*e/a+(n+i)/2,f=Math.asin(parseFloat(((n-m)/o).toFixed(9))),p=Math.asin(parseFloat(((i-m)/o).toFixed(9))),t<g&&(f=Math.PI-f),r<g&&(p=Math.PI-p),f<0&&(f=2*Math.PI+f),p<0&&(p=2*Math.PI+p),u&&f>p&&(f-=2*Math.PI),!u&&p>f&&(p-=2*Math.PI)}let y=p-f;if(Math.abs(y)>120*Math.PI/180){let t=p,n=r,l=i;h=e(r=g+a*Math.cos(p=u&&p>f?f+120*Math.PI/180*1:f+-(120*Math.PI/180*1)),i=m+o*Math.sin(p),n,l,a,o,s,0,u,[p,t,g,m])}y=p-f;let v=Math.cos(f),x=Math.cos(p),k=Math.tan(y/4),w=4/3*a*k,_=4/3*o*k,S=[t,n],C=[t+w*Math.sin(f),n-_*v],M=[r+w*Math.sin(p),i-_*x],A=[r,i];if(C[0]=2*S[0]-C[0],C[1]=2*S[1]-C[1],c)return[C,M,A].concat(h);{h=[C,M,A].concat(h);let e=[];for(let t=0;t<h.length;t+=3){let n=b(h[t][0],h[t][1],d),r=b(h[t+1][0],h[t+1][1],d),i=b(h[t+2][0],h[t+2][1],d);e.push([n[0],n[1],r[0],r[1],i[0],i[1]])}return e}}
1)(r,i,l,u,e,n,a,o,s).forEach(function(e){t.push({key:"C",data:e})}),r=l,i=u);break}case"Z":t.push({key:"Z",data:[]}),r=a,i=o}n=u}return t}function b(e,t,n){return[e*Math.cos(n)-t*Math.sin(n),e*Math.sin(n)+t*Math.cos(n)]}let v={randOffset:function(e,t){return P(e,t)},randOffsetWithRange:function(e,t,n){return N(e,t,n)},ellipse:function(e,t,n,r,i){let a=_(n,r,i);return S(e,t,i,a).opset},doubleLineOps:function(e,t,n,r,i){return L(e,t,n,r,i,!0)}};function x(e,t,n,r,i){return{type:"path",ops:L(e,t,n,r,i)}}function k(e,t,n){let r=(e||[]).length;if(r>2){let i=[];for(let t=0;t<r-1;t++)i.push(...L(e[t][0],e[t][1],e[t+1][0],e[t+1][1],n));return t&&i.push(...L(e[r-1][0],e[r-1][1],e[0][0],e[0][1],n)),{type:"path",ops:i}}return 2===r?x(e[0][0],e[0][1],e[1][0],e[1][1],n):{type:"path",ops:[]}}function w(e,t){if(e.length){let n="number"==typeof e[0][0]?[e]:e,r=O(n[0],1*(1+.2*t.roughness),t),i=t.disableMultiStroke?[]:O(n[0],1.5*(1+.22*t.roughness),T(t));for(let e=1;e<n.length;e++){let a=n[e];if(a.length){let e=O(a,1*(1+.2*t.roughness),t),n=t.disableMultiStroke?[]:O(a,1.5*(1+.22*t.roughness),T(t));for(let t of e)"move"!==t.op&&r.push(t);for(let e of n)"move"!==e.op&&i.push(e)}}return{type:"path",ops:r.concat(i)}}return{type:"path",ops:[]}}function _(e,t,n){let r=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),i=2*Math.PI/Math.ceil(Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*r)),a=Math.abs(e/2),o=Math.abs(t/2),s=1-n.curveFitting;return a+=P(a*s,n),o+=P(o*s,n),{increment:i,rx:a,ry:o}}function S(e,t,n,r){let[i,a]=j(r.increment,e,t,r.rx,r.ry,1,r.increment*N(.1,N(.4,1,n),n),n),o=$(i,null,n);if(!n.disableMultiStroke&&0!==n.roughness){let[i]=j(r.increment,e,t,r.rx,r.ry,1.5,0,n),a=$(i,null,n);o=o.concat(a)}return{estimatedPoints:a,opset:{type:"path",ops:o}}}function C(e,t,n,r,i,a,o,s,l){let u=Math.abs(n/2),c=Math.abs(r/2);u+=P(.01*u,l),c+=P(.01*c,l);let d=i,h=a;for(;d<0;)d+=2*Math.PI,h+=2*Math.PI;h-d>2*Math.PI&&(d=0,h=2*Math.PI);let f=Math.min(2*Math.PI/l.curveStepCount/2,(h-d)/2),p=D(f,e,t,u,c,d,h,1,l);
vendor: 6,221 bytes, line 1
1if(!l.disableMultiStroke){let n=D(f,e,t,u,c,d,h,1.5,l);p.push(...n)}return o&&(s?p.push(...L(e,t,e+u*Math.cos(d),t+c*Math.sin(d),l),...L(e,t,e+u*Math.cos(h),t+c*Math.sin(h),l)):p.push({op:"lineTo",data:[e,t]},{op:"lineTo",data:[e+u*Math.cos(d),t+c*Math.sin(d)]})),{type:"path",ops:p}}function M(e,t){let n=y(m(g(e))),r=[],i=[0,0],a=[0,0];for(let{key:e,data:o}of n)switch(e){case"M":a=[o[0],o[1]],i=[o[0],o[1]];break;case"L":r.push(...L(a[0],a[1],o[0],o[1],t)),a=[o[0],o[1]];break;case"C":{let[e,n,i,s,l,u]=o;r.push(...function(e,t,n,r,i,a,o,s){let l=[],u=[s.maxRandomnessOffset||1,(s.maxRandomnessOffset||1)+.3],c=[0,0],d=s.disableMultiStroke?1:2,h=s.preserveVertices;for(let f=0;f<d;f++)0===f?l.push({op:"move",data:[o[0],o[1]]}):l.push({op:"move",data:[o[0]+(h?0:P(u[0],s)),o[1]+(h?0:P(u[0],s))]}),c=h?[i,a]:[i+P(u[f],s),a+P(u[f],s)],l.push({op:"bcurveTo",data:[e+P(u[f],s),t+P(u[f],s),n+P(u[f],s),r+P(u[f],s),c[0],c[1]]});return l}(e,n,i,s,l,u,a,t)),a=[l,u];break}case"Z":r.push(...L(a[0],a[1],i[0],i[1],t)),a=[i[0],i[1]]}return{type:"path",ops:r}}function A(e,t){let n=[];for(let r of e)if(r.length){let e=t.maxRandomnessOffset||0,i=r.length;if(i>2){n.push({op:"move",data:[r[0][0]+P(e,t),r[0][1]+P(e,t)]});for(let a=1;a<i;a++)n.push({op:"lineTo",data:[r[a][0]+P(e,t),r[a][1]+P(e,t)]})}}return{type:"fillPath",ops:n}}function E(e,t){return(function(e,t){let n=e.fillStyle||"hachure";if(!h[n])switch(n){case"zigzag":h[n]||(h[n]=new s(t));break;case"cross-hatch":h[n]||(h[n]=new l(t));break;case"dots":h[n]||(h[n]=new u(t));break;case"dashed":h[n]||(h[n]=new c(t));break;case"zigzag-line":h[n]||(h[n]=new d(t));break;default:h[n="hachure"]||(h[n]=new a(t))}return h[n]})(t,v).fillPolygons(e,t)}function T(e){let t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function R(e){return e.randomizer||(e.randomizer=new f(e.seed||0)),e.randomizer.next()}function N(e,t,n,r=1){return n.roughness*r*(R(n)*(t-e)+e)}function P(e,t,n=1){return N(-e,e,t,n)}function L(e,t,n,r,i,a=!1){let o=a?i.disableMultiStrokeFill:i.disableMultiStroke,s=I(e,t,n,r,i,!0,!1);if(o)return s;let l=I(e,t,n,r,i,!0,!0);return s.concat(l)}function I(e,t,n,r,i,a,o){let s=Math.pow(e-n,2)+Math.pow(t-r,2),l=Math.sqrt(s),u=1;u=l<200?1:l>500?.4:-.0016668*l+1.233334;let c=i.maxRandomnessOffset||0;c*c*100>s&&(c=l/10);let d=c/2,h=.2+.2*R(i),f=i.bowing*i.maxRandomnessOffset*(r-t)/200,p=i.bowing*i.maxRandomnessOffset*(e-n)/200;f=P(f,i,u),p=P(p,i,u);let g=[],m=()=>P(d,i,u),y=()=>P(c,i,u),b=i.preserveVertices;return a&&(o?g.push({op:"move",data:[e+(b?0:m()),t+(b?0:m())]}):g.push({op:"move",data:[e+(b?0:P(c,i,u)),t+(b?0:P(c,i,u))]})),o?g.push({op:"bcurveTo",data:[f+e+(n-e)*h+m(),p+t+(r-t)*h+m(),f+e+2*(n-e)*h+m(),p+t+2*(r-t)*h+m(),n+(b?0:m()),r+(b?0:m())]}):g.push({op:"bcurveTo",data:[f+e+(n-e)*h+y(),p+t+(r-t)*h+y(),f+e+2*(n-e)*h+y(),p+t+2*(r-t)*h+y(),n+(b?0:y()),r+(b?0:y())]}),g}function O(e,t,n){if(!e.length)return[];let r=[];r.push([e[0][0]+P(t,n),e[0][1]+P(t,n)]),r.push([e[0][0]+P(t,n),e[0][1]+P(t,n)]);for(let i=1;i<e.length;i++)r.push([e[i][0]+P(t,n),e[i][1]+P(t,n)]),i===e.length-1&&r.push([e[i][0]+P(t,n),e[i][1]+P(t,n)]);return $(r,null,n)}function $(e,t,n){let r=e.length,i=[];if(r>3){let a=[],o=1-n.curveTightness;i.push({op:"move",data:[e[1][0],e[1][1]]});for(let t=1;t+2<r;t++){let n=e[t];a[0]=[n[0],n[1]],a[1]=[n[0]+(o*e[t+1][0]-o*e[t-1][0])/6,n[1]+(o*e[t+1][1]-o*e[t-1][1])/6],a[2]=[e[t+1][0]+(o*e[t][0]-o*e[t+2][0])/6,e[t+1][1]+(o*e[t][1]-o*e[t+2][1])/6],a[3]=[e[t+1][0],e[t+1][1]],i.push({op:"bcurveTo",data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[3][1]]})}if(t&&2===t.length){let e=n.maxRandomnessOffset;i.push({op:"lineTo",data:[t[0]+P(e,n),t[1]+P(e,n)]})}}else 3===r?(i.push({op:"move",data:[e[1][0],e[1][1]]}),i.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):2===r&&i.push(...I(e[0][0],e[0][1],e[1][0],e[1][1],n,!0,!0));return i}function j(e,t,n,r,i,a,o,s){let l=[],u=[];if(0===s.roughness){e/=4,u.push([t+r*Math.cos(-e),n+i*Math.sin(-e)]);for(let a=0;a<=2*Math.PI;a+=e){let e=[t+r*Math.cos(a),n+i*Math.sin(a)];l.push(e),u.push(e)}u.push([t+1*r,n+0*i]),u.push([t+r*Math.cos(e),n+i*Math.sin(e)])}else{let c=P(.5,s)-Math.PI/2;u.push([P(a,s)+t+.9*r*Math.cos(c-e),P(a,s)+n+.9*i*Math.sin(c-e)]);let d=2*Math.PI+c-.01;for(let o=c;o<d;o+=e){let e=[P(a,s)+t+r*Math.cos(o),P(a,s)+n+i*Math.sin(o)];l.push(e),u.push(e)}u.push([P(a,s)+t+r*Math.cos(c+2*Math.PI+.5*o),P(a,s)+n+i*Math.sin(c+2*Math.PI+.5*o)]),u.push([P(a,s)+t+.98*r*Math.cos(c+o),P(a,s)+n+.98*i*Math.sin(c+o)]),u.push([P(a,s)+t+.9*r*Math.cos(c+.5*o),P(a,s)+n+.9*i*Math.sin(c+.5*o)])}return[u,l]}function D(e,t,n,r,i,a,o,s,l){let u=a+P(.1,l),c=[];c.push([P(s,l)+t+.9*r*Math.cos(u-e),P(s,l)+n+.9*i*Math.sin(u-e)]);for(let a=u;a<=o;a+=e)c.push([P(s,l)+t+r*Math.cos(a),P(s,l)+n+i*Math.sin(a)]);return c.push([t+r*Math.cos(o),n+i*Math.sin(o)]),c.push([t+r*Math.cos(o),n+i*Math.sin(o)]),$(c,null,l)}function F(e,t=0){let n=e.length;if(n<3)throw Error("A curve must have at least three points.");let r=[];if(3===n)r.push([...e[0]],[...e[1]],[...e[2]],[...e[2]]);else{let n=[];n.push(e[0],e[0]);for(let t=1;t<e.length;t++)n.push(e[t]),t===e.length-1&&n.push(e[t]);let i=[],a=1-t;r.push([...n[0]]);for(let e=1;e+2<n.length;e++){let t=n[e];i[0]=[t[0],t[1]],i[1]=[t[0]+(a*n[e+1][0]-a*n[e-1][0])/6,t[1]+(a*n[e+1][1]-a*n[e-1][1])/6],i[2]=[n[e+1][0]+(a*n[e][0]-a*n[e+2][0])/6,n[e+1][1]+(a*n[e][1]-a*n[e+2][1])/6],i[3]=[n[e+1][0],n[e+1][1]],r.push(i[1],i[2],i[3])}}return r}function B(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function z(e,t,n){return[e[0]+(t[0]-e[0])*n,e[1]+(t[1]-e[1])*n]}function U(e,t,n,r,i){let a=i||[],o=e[t],s=e[n-1],l=0,u=1;for(let r=t+1;r<n-1;++r){let t=function(e,t,n){let r=B(t,n);if(0===r)return B(e,t);let i=((e[0]-t[0])*(n[0]-t[0])+(e[1]-t[1])*(n[1]-t[1]))/r;return B(e,z(t,n,i=Math.max(0,Math.min(1,i))))}(e[r],o,s);t>l&&(l=t,u=r)}return Math.sqrt(l)>r?(U(e,t,u+1,r,a),U(e,u,n,r,a)):(a.length||a.push(o),a.push(s)),a}function W(e,t=.15,n){let r=[],i=(e.length-1)/3;for(let n=0;n<i;n++)!function e(t,n,r,i){let a=i||[];if(function(e,t){let n=e[t+0],r=e[t+1],i=e[t+2],a=e[t+3],o=3*r[0]-2*n[0]-a[0];o*=o;let s=3*r[1]-2*n[1]-a[1];s*=s;let l=3*i[0]-2*a[0]-n[0];l*=l;let u=3*i[1]-2*a[1]-n[1];
1return u*=u,o<l&&(o=l),s<u&&(s=u),o+s}(t,n)<r){let e=t[n+0];a.length?Math.sqrt(B(a[a.length-1],e))>1&&a.push(e):a.push(e),a.push(t[n+3])}else{let i=t[n+0],o=t[n+1],s=t[n+2],l=t[n+3],u=z(i,o,.5),c=z(o,s,.5),d=z(s,l,.5),h=z(u,c,.5),f=z(c,d,.5),p=z(h,f,.5);e([i,u,h,p],0,r,a),e([p,f,d,l],0,r,a)}return a}(e,3*n,t,r);return n&&n>0?U(r,0,r.length,n):r}let H="none";class q{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(2147483648*Math.random())}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,t,n){return{shape:e,sets:t||[],options:n||this.defaultOptions}}line(e,t,n,r,i){let a=this._o(i);return this._d("line",[x(e,t,n,r,a)],a)}rectangle(e,t,n,r,i){let a=this._o(i),o=[],s=k([[e,t],[e+n,t],[e+n,t+r],[e,t+r]],!0,a);if(a.fill){let i=[[e,t],[e+n,t],[e+n,t+r],[e,t+r]];"solid"===a.fillStyle?o.push(A([i],a)):o.push(E([i],a))}return a.stroke!==H&&o.push(s),this._d("rectangle",o,a)}ellipse(e,t,n,r,i){let a=this._o(i),o=[],s=_(n,r,a),l=S(e,t,a,s);if(a.fill){if("solid"===a.fillStyle){let n=S(e,t,a,s).opset;n.type="fillPath",o.push(n)}else o.push(E([l.estimatedPoints],a))}return a.stroke!==H&&o.push(l.opset),this._d("ellipse",o,a)}circle(e,t,n,r){let i=this.ellipse(e,t,n,n,r);return i.shape="circle",i}linearPath(e,t){let n=this._o(t);return this._d("linearPath",[k(e,!1,n)],n)}arc(e,t,n,r,i,a,o=!1,s){let l=this._o(s),u=[],c=C(e,t,n,r,i,a,o,!0,l);if(o&&l.fill){if("solid"===l.fillStyle){let o=Object.assign({},l);o.disableMultiStroke=!0;let s=C(e,t,n,r,i,a,!0,!1,o);s.type="fillPath",u.push(s)}else u.push(function(e,t,n,r,i,a,o){let s=Math.abs(n/2),l=Math.abs(r/2);s+=P(.01*s,o),l+=P(.01*l,o);let u=i,c=a;for(;u<0;)u+=2*Math.PI,c+=2*Math.PI;c-u>2*Math.PI&&(u=0,c=2*Math.PI);let d=(c-u)/o.curveStepCount,h=[];for(let n=u;n<=c;n+=d)h.push([e+s*Math.cos(n),t+l*Math.sin(n)]);return h.push([e+s*Math.cos(c),t+l*Math.sin(c)]),h.push([e,t]),E([h],o)}(e,t,n,r,i,a,l))}return l.stroke!==H&&u.push(c),this._d("arc",u,l)}curve(e,t){let n=this._o(t),r=[],i=w(e,n);if(n.fill&&n.fill!==H){if("solid"===n.fillStyle){let t=w(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(t.ops)})}else{let t=[];if(e.length)for(let r of"number"==typeof e[0][0]?[e]:e)r.length<3?t.push(...r):3===r.length?t.push(...W(F([r[0],r[0],r[1],r[2]]),10,(1+n.roughness)/2)):t.push(...W(F(r),10,(1+n.roughness)/2));t.length&&r.push(E([t],n))}}return n.stroke!==H&&r.push(i),this._d("curve",r,n)}polygon(e,t){let n=this._o(t),r=[],i=k(e,!0,n);return n.fill&&("solid"===n.fillStyle?r.push(A([e],n)):r.push(E([e],n))),n.stroke!==H&&r.push(i),this._d("polygon",r,n)}path(e,t){let n=this._o(t),r=[];if(!e)return this._d("path",r,n);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let i=n.fill&&"transparent"!==n.fill&&n.fill!==H,a=n.stroke!==H,o=!!(n.simplification&&n.simplification<1),s=function(e,t,n){let r=y(m(g(e))),i=[],a=[],o=[0,0],s=[],l=()=>{s.length>=4&&a.push(...W(s,1)),s=[]},u=()=>{l(),a.length&&(i.push(a),a=[])};for(let{key:e,data:t}of r)switch(e){case"M":u(),o=[t[0],t[1]],a.push(o);break;case"L":l(),a.push([t[0],t[1]]);break;case"C":if(!s.length){let e=a.length?a[a.length-1]:o;s.push([e[0],e[1]])}s.push([t[0],t[1]]),s.push([t[2],t[3]]),s.push([t[4],t[5]]);break;case"Z":l(),a.push([o[0],o[1]])}if(u(),!n)return i;let c=[];for(let e of i){let t=U(e,0,e.length,n);t.length&&c.push(t)}return c}(e,0,o?4-4*(n.simplification||1):(1+n.roughness)/2),l=M(e,n);if(i){if("solid"===n.fillStyle){if(1===s.length){let t=M(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(t.ops)})}else r.push(A(s,n))}else r.push(E(s,n))}
1return a&&(o?s.forEach(e=>{r.push(k(e,!1,n))}):r.push(l)),this._d("path",r,n)}opsToPath(e,t){let n="";for(let r of e.ops){let e="number"==typeof t&&t>=0?r.data.map(e=>+e.toFixed(t)):r.data;switch(r.op){case"move":n+=`M${e[0]} ${e[1]} `;break;case"bcurveTo":n+=`C${e[0]} ${e[1]}, ${e[2]} ${e[3]}, ${e[4]} ${e[5]} `;break;case"lineTo":n+=`L${e[0]} ${e[1]} `}}return n.trim()}toPaths(e){let t=e.sets||[],n=e.options||this.defaultOptions,r=[];for(let e of t){let t=null;switch(e.type){case"path":t={d:this.opsToPath(e),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:H};break;case"fillPath":t={d:this.opsToPath(e),stroke:H,strokeWidth:0,fill:n.fill||H};break;case"fillSketch":t=this.fillSketch(e,n)}t&&r.push(t)}return r}fillSketch(e,t){let n=t.fillWeight;return n<0&&(n=t.strokeWidth/2),{d:this.opsToPath(e),stroke:t.fill||H,strokeWidth:n,fill:H}}_mergedShape(e){return e.filter((e,t)=>0===t||"move"!==e.op)}}class G{constructor(e,t){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new q(t)}draw(e){let t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.ctx,i=e.options.fixedDecimalPlaceDigits;for(let a of t)switch(a.type){case"path":r.save(),r.strokeStyle="none"===n.stroke?"transparent":n.stroke,r.lineWidth=n.strokeWidth,n.strokeLineDash&&r.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(r.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(r,a,i),r.restore();break;case"fillPath":{r.save(),r.fillStyle=n.fill||"";let t="curve"===e.shape||"polygon"===e.shape||"path"===e.shape?"evenodd":"nonzero";this._drawToContext(r,a,i,t),r.restore();break}case"fillSketch":this.fillSketch(r,a,n)}}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2),e.save(),n.fillLineDash&&e.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(e.lineDashOffset=n.fillLineDashOffset),e.strokeStyle=n.fill||"",e.lineWidth=r,this._drawToContext(e,t,n.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,t,n,r="nonzero"){for(let r of(e.beginPath(),t.ops)){let t="number"==typeof n&&n>=0?r.data.map(e=>+e.toFixed(n)):r.data;switch(r.op){case"move":e.moveTo(t[0],t[1]);break;case"bcurveTo":e.bezierCurveTo(t[0],t[1],t[2],t[3],t[4],t[5]);break;case"lineTo":e.lineTo(t[0],t[1])}}"fillPath"===t.type?e.fill(r):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,t,n,r,i){let a=this.gen.line(e,t,n,r,i);return this.draw(a),a}rectangle(e,t,n,r,i){let a=this.gen.rectangle(e,t,n,r,i);return this.draw(a),a}ellipse(e,t,n,r,i){let a=this.gen.ellipse(e,t,n,r,i);return this.draw(a),a}circle(e,t,n,r){let i=this.gen.circle(e,t,n,r);return this.draw(i),i}linearPath(e,t){let n=this.gen.linearPath(e,t);return this.draw(n),n}polygon(e,t){let n=this.gen.polygon(e,t);return this.draw(n),n}arc(e,t,n,r,i,a,o=!1,s){let l=this.gen.arc(e,t,n,r,i,a,o,s);return this.draw(l),l}curve(e,t){let n=this.gen.curve(e,t);return this.draw(n),n}path(e,t){let n=this.gen.path(e,t);return this.draw(n),n}}let V="http://www.w3.org/2000/svg";class Z{constructor(e,t){this.svg=e,this.gen=new q(t)}draw(e){let t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.svg.ownerDocument||window.document,i=r.createElementNS(V,"g"),a=e.options.fixedDecimalPlaceDigits;for(let o of t){let t=null;switch(o.type){case"path":(t=r.createElementNS(V,"path")).setAttribute("d",this.opsToPath(o,a)),t.setAttribute("stroke",n.stroke),t.setAttribute("stroke-width",n.strokeWidth+""),t.setAttribute("fill","none"),n.strokeLineDash&&t.setAttribute("stroke-dasharray",n.strokeLineDash.join(" ").trim()),n.strokeLineDashOffset&&t.setAttribute("stroke-dashoffset",`${n.strokeLineDashOffset}`);break;case"fillPath":(t=r.createElementNS(V,"path")).setAttribute("d",this.opsToPath(o,a)),t.setAttribute("stroke","none"),t.setAttribute("stroke-width","0"),t.setAttribute("fill",n.fill||""),"curve"!==e.shape&&"polygon"!==e.shape||t.setAttribute("fill-rule","evenodd");break;case"fillSketch":t=this.fillSketch(r,o,n)}t&&i.appendChild(t)}return i}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2);let i=e.createElementNS(V,"path");return i.setAttribute("d",this.opsToPath(t,n.fixedDecimalPlaceDigits)),i.setAttribute("stroke",n.fill||""),i.setAttribute("stroke-width",r+""),i.setAttribute("fill","none"),n.fillLineDash&&i.setAttribute("stroke-dasharray",n.fillLineDash.join(" ").trim()),n.fillLineDashOffset&&i.setAttribute("stroke-dashoffset",`${n.fillLineDashOffset}`),i}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,t){return this.gen.opsToPath(e,t)}line(e,t,n,r,i){let a=this.gen.line(e,t,n,r,i);return this.draw(a)}rectangle(e,t,n,r,i){let a=this.gen.rectangle(e,t,n,r,i);return this.draw(a)}ellipse(e,t,n,r,i){let a=this.gen.ellipse(e,t,n,r,i);return this.draw(a)}circle(e,t,n,r){let i=this.gen.circle(e,t,n,r);return this.draw(i)}linearPath(e,t){let n=this.gen.linearPath(e,t);return this.draw(n)}polygon(e,t){let n=this.gen.polygon(e,t);return this.draw(n)}arc(e,t,n,r,i,a,o=!1,s){let l=this.gen.arc(e,t,n,r,i,a,o,s);return this.draw(l)}curve(e,t){let n=this.gen.curve(e,t);return this.draw(n)}path(e,t){let n=this.gen.path(e,t);return this.draw(n)}}var Y={canvas:(e,t)=>new G(e,t),svg:(e,t)=>new Z(e,t),generator:e=>new q(e),newSeed:()=>q.newSeed()}},14221:function(e,t,n){"use strict";var r=n(28113),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,o=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),o(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},48240:function(e,t,n){"use strict";var r=n(28113),i=n(64218),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=i.useSyncExternalStore,s=r.useRef,l=r.useEffect,u=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;var f=o(e,(d=u(function(){function e(e){if(!l){if(l=!0,o=e,e=r(e),void 0!==i&&h.hasValue){var t=h.value;if(i(t,e))return s=t}return s=e}if(t=s,a(o,e))return t;var n=r(e);return void 0!==i&&i(t,n)?(o=e,t):(o=e,s=n)}var o,s,l=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,n,r,i]))[0],d[1]);return l(function(){h.hasValue=!0,h.value=f},[f]),c(f),f}},64218:function(e,t,n){"use strict";e.exports=n(14221)},10345:function(e,t,n){"use strict";e.exports=n(48240)},2933:function(e,t,n){"use strict";n.d(t,{z:function(){return o}});var r=n(28113),i=n(43166),a=n(99952);let o=r.forwardRef(function(e,t){let{render:n,className:r,disabled:o=!1,focusableWhenDisabled:s=!1,nativeButton:l=!0,style:u,...c}=e,{getButtonProps:d,buttonRef:h}=(0,i.U)({disabled:o,focusableWhenDisabled:s,native:l});return(0,a.E)("button",e,{state:{disabled:o},ref:[t,h],props:[c,d]})})},36798:function(e,t,n){"use strict";n.d(t,{m:function(){return M}});var r,i=n(28113),a=n(61780),o=n(34113),s=n(99952),l=n(55230),u=n(20390),c=n(22905),d=n(50891),h=n(82254),f=n(14802),p=n(94952),g=n(67178),m=n(86620),y=n(58808),b=n(20396),v=n(43764),x=n(48783);let k={height:void 0,width:void 0};function w(e){return{height:e.scrollHeight,width:e.scrollWidth}}function _(e){return e.split(",").map(e=>e.trim()).some(e=>""!==e&&Number.parseFloat(e)>0)}function S(e,t,n){let r=e.style.getPropertyValue(t),i=e.style.getPropertyPriority(t);return e.style.setProperty(t,n),()=>{if(""===r){e.style.removeProperty(t);return}e.style.setProperty(t,r,i)}}let C=((r={}).collapsiblePanelHeight="--collapsible-panel-height",r.collapsiblePanelWidth="--collapsible-panel-width",r),M=i.forwardRef(function(e,t){let{className:n,hiddenUntilFound:r,keepMounted:M,render:A,id:E,style:T,...R}
1=e,{mounted:N,onOpenChange:P,open:L,panelId:I,setMounted:O,setPanelIdState:$,setOpen:j,state:D,transitionStatus:F}=(0,l.g)();(0,a.W)(()=>{if(E)return $(E),()=>{$(void 0)}},[E,$]);let{height:B,props:z,ref:U,shouldPreventOpenAnimation:W,shouldRender:H,transitionStatus:q,width:G}=function(e){let{externalRef:t,hiddenUntilFound:n,id:r,keepMounted:o,mounted:s,onOpenChange:l,open:u,setMounted:C,setOpen:M,transitionStatus:A}=e,E=i.useRef(null),T=i.useRef(null),[R,N]=i.useState(k),P=i.useRef(k),L=i.useRef(!1),I=i.useRef(u),O=i.useRef(!1),[$,j]=i.useState(!1),D=i.useRef(null),F=(0,d.r)(t,E),B=(0,p.B)({mounted:s,open:u}),z=(0,v.P)(E,!1,!1),U=!u&&!s,W=$?"idle":A,H=u&&(I.current||O.current),q=!u&&s&&"css-animation"===T.current&&void 0===R.height&&void 0===R.width?P.current:R,G=n&&U&&"css-animation"!==T.current,V=(0,f.R)(function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];t&&(P.current=e),N(e)}),Z=(0,f.R)(()=>{var e;null===(e=D.current)||void 0===e||e.call(D),D.current=null}),Y=(0,f.R)(e=>{Z(),D.current=()=>{D.current=null,e()}}),X=(0,f.R)(()=>{u&&s&&"css-animation"===T.current&&(O.current=!0)});(0,a.W)(()=>{$&&"starting"!==A&&j(!1)},[$,A]),i.useEffect(()=>()=>{X(),Z()},[X,Z]),(0,a.W)(()=>{var e,t;let n=E.current;if(!n)return;!u&&D.current&&Z();let r=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,g.Jj)(e).getComputedStyle(e),r=(n.animationName.split(",").map(e=>e.trim()).some(e=>""!==e&&"none"!==e)||t)&&_(n.animationDuration),i=_(n.transitionDuration);return r&&i||i?"css-transition":r?"css-animation":"none"}(n,H);if(T.current=r,u&&"idle"===A&&I.current&&"css-animation"===r){P.current=w(n);return}if(u&&"starting"===A){let e=L.current;if(L.current=!1,"none"===r){V(w(n)),j(!0);return}if("css-transition"===r){let t=function(e){let t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};function n(){Object.entries(t).forEach(t=>{let[n,r]=t;if(""===r){e.style.removeProperty(n);return}e.style.setProperty(n,r)})}Object.keys(t).forEach(t=>{e.style.setProperty(t,"initial","important")});let r=h.$.request(n);return()=>{h.$.cancel(r),n()}}(n);return V(w(n)),e&&(Y(S(n,"transition-duration","0s")),j(!0)),t}if("css-animation"===r){if(V(w(n)),!e){S(n,"animation-name","none")();return}let t=S(n,"animation-name","none"),r=S(n,"animation-duration","0s");t(),Y(r),j(!0);return}}if(!u&&s&&("idle"===A||"starting"===A)){if(I.current=!1,O.current=!1,"none"===r){V(k,!1),C(!1);return}V(w(n));return}if("ending"!==A)return;if("none"===r){C(!1);return}let i=w(n);if(!((null!==(e=i.height)&&void 0!==e?e:0)>0||(null!==(t=i.width)&&void 0!==t?t:0)>0)){C(!1);return}V(i),"css-animation"===r&&S(n,"animation-name","none")()},[s,u,Z,V,C,Y,H,A]),(0,b.s)({enabled:u&&s&&"idle"===W,open:!0,ref:E,onComplete(){u&&V(k,!1)}}),i.useEffect(()=>{if(u||!s||"ending"!==W||!E.current)return;let e=new AbortController,t=-1;function n(){B.current.open||(C(!1),V(k,!1))}return t=h.$.request(()=>{e.signal.aborted||z(n,e.signal)}),()=>{h.$.cancel(t),e.abort()}},[B,s,u,W,z,V,C]),(0,a.W)(()=>{let e=E.current;e&&n&&U&&e.setAttribute("hidden","until-found")},[U,n]),i.useEffect(function(){let e=E.current;if(e)return(0,c.O)(e,"beforematch",function(e){let t=(0,m.e)(y.YP,e);l(!0,t),t.isCanceled||(L.current=!0,M(!0))})},[l,M]);let Q=o||n||s||u;return{height:q.height,props:{...G?{[x.M.startingStyle]:""}:void 0,hidden:U,id:r},ref:F,shouldPreventOpenAnimation:H,shouldRender:Q,transitionStatus:W,width:q.width}}({externalRef:t,hiddenUntilFound:null!=r&&r,id:I,keepMounted:null!=M&&M,mounted:N,onOpenChange:P,open:L,setMounted:O,setOpen:j,transitionStatus:F}),V={...D,transitionStatus:q},Z=(0,o.C)(T,V),Y=(0,s.E)("div",{...e,style:void 0},{state:V,ref:U,props:[z,{style:{[C.collapsiblePanelHeight]:void 0===B?"auto":"".concat(B,"px"),[C.collapsiblePanelWidth]:void 0===G?"auto":"".concat(G,"px")}},R,Z?{style:Z}:void 0,W?{style:{animationName:"none"}}:void 0],stateAttributesMapping:u.B});return H?Y:null})},48783:function(e,t,n){"use strict";n.d(t,{M:function(){return a}});var r,i=n(99974);let a=((r={}).open="data-open",r.closed="data-closed",r[r.startingStyle=i.C.startingStyle]="startingStyle",r[r.endingStyle=i.C.endingStyle]="endingStyle",r)},74998:function(e,t,n){"use strict";n.d(t,{K:function(){return p}});var r=n(28113),i=n(14802),a=n(99952),o=n(23857),s=n(91532),l=n(86620),u=n(58808),c=n(71467),d=n(55230),h=n(20390),f=n(22087);let p=r.forwardRef(function(e,t){let{render:n,className:p,defaultOpen:g=!1,disabled:m=!1,onOpenChange:y,open:b,style:v,...x}=e,k=(0,i.R)(y),w=function(e){let{open:t,defaultOpen:n,onOpenChange:a,disabled:d}=e,[h,f]=(0,o.u)({controlled:t,default:n,name:"Collapsible",state:"open"}),{mounted:p,setMounted:g,transitionStatus:m}=(0,c.h)(h,!0,!0),y=(0,s.L)(),[b,v]=r.useState(),x=null!=b?b:y,k=(0,i.R)(e=>{let t=!h,n=(0,l.e)(u._j,e.nativeEvent);a(t,n),n.isCanceled||f(t)});return r.useMemo(()=>({disabled:d,handleTrigger:k,mounted:p,open:h,panelId:x,setMounted:g,setOpen:f,setPanelIdState:v,transitionStatus:m}),[d,k,p,h,x,g,f,v,m])}({open:b,defaultOpen:g,onOpenChange:k,disabled:m}),_=r.useMemo(()=>({open:w.open,disabled:w.disabled,transitionStatus:w.transitionStatus}),[w.open,w.disabled,w.transitionStatus]),S=r.useMemo(()=>({...w,onOpenChange:k,state:_}),[w,k,_]),C=(0,a.E)("div",e,{state:_,ref:t,props:x,stateAttributesMapping:h.B});return(0,f.jsx)(d.$.Provider,{value:S,children:C})})},55230:function(e,t,n){"use strict";n.d(t,{$:function(){return a},g:function(){return o}});var r=n(64104),i=n(28113);let a=i.createContext(void 0);function o(){let e=i.useContext(a);if(void 0===e)throw Error((0,r.Z)(15));return e}},20390:function(e,t,n){"use strict";n.d(t,{B:function(){return a}});var r=n(91705),i=n(99974);let a={...r.m,...i.l}},25540:function(e,t,n){"use strict";n.d(t,{w:function(){return c}});var r=n(28113),i=n(91705),a=n(99974),o=n(99952),s=n(43166),l=n(55230);let u={...i.w,...a.l},c=r.forwardRef(function(e,t){let{panelId:n,open:r,handleTrigger:i,state:a,disabled:c}=(0,l.g)(),{className:d,disabled:h=c,render:f,nativeButton:p=!0,style:g,...m}=e,{getButtonProps:y,buttonRef:b}=(0,s.U)({disabled:h,focusableWhenDisabled:!0,native:p});return(0,o.E)("button",e,{state:a,ref:[t,b],props:[{"aria-controls":r?n:void 0,"aria-expanded":r,onClick:i},m,y],stateAttributesMapping:u})})},15873:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(28113),i=n(77597),a=n(99952),o=n(52443),s=n(99974);let l={...o.SD,...s.l},u=r.forwardRef(function(e,t){let{render:n,className:r,style:o,forceRender:s=!1,...u}=e,{store:c}=(0,i.xc)(),d=c.useState("open"),h=c.useState("nested"),f=c.useState("mounted"),p=c.useState("transitionStatus");return(0,a.E)("div",e,{state:{open:d,transitionStatus:p},ref:[c.context.backdropRef,t],stateAttributesMapping:l,props:[{role:"presentation",hidden:!f,style:{userSelect:"none",WebkitUserSelect:"none"}},u],enabled:s||!h})})},17326:function(e,t,n){"use strict";n.d(t,{G:function(){return u}});var r=n(28113),i=n(77597),a=n(99952),o=n(43166),s=n(86620),l=n(58808);let u=r.forwardRef(function(e,t){let{render:n,className:r,style:u,disabled:c=!1,nativeButton:d=!0,...h}=e,{store:f}=(0,i.xc)(),p=f.useState("open"),{getButtonProps:g,buttonRef:m}=(0,o.U)({disabled:c,native:d});return(0,a.E)("button",e,{state:{disabled:c},ref:[t,m],props:[{onClick:function(e){p&&f.setOpen(!1,(0,s.e)(l.Sk,e.nativeEvent))}},h,g]})})},64393:function(e,t,n){"use strict";n.d(t,{t:function(){return v}});var r,i,a=n(28113),o=n(94037),s=n(77597),l=n(99952),u=n(52443),c=n(99974);let d=((r={}).nestedDialogs="--nested-dialogs",r),h=((i={})[i.open=u.IZ.open]="open",i[i.closed=u.IZ.closed]="closed",i[i.startingStyle=u.IZ.startingStyle]="startingStyle",i[i.endingStyle=u.IZ.endingStyle]="endingStyle",i.nested="data-nested",i.nestedDialogOpen="data-nested-dialog-open",i);var f=n(63651),p=n(20396),g=n(73705),m=n(74149),y=n(22087);let b={...u.SD,...c.l,nestedDialogOpen:e=>e?{[h.nestedDialogOpen]:""}:null},v=a.forwardRef(function(e,t){var n;let{render:r,className:i,style:a,finalFocus:u,initialFocus:c,...h}=e,{store:v}=(0,s.xc)(),x=v.useState("descriptionElementId"),k=v.useState("disablePointerDismissal"),w=v.useState("floatingRootContext"),_=v.useState("popupProps"),S=v.useState("modal"),C=v.useState("mounted"),M=v.useState("nested"),A=v.useState("nestedOpenDialogCount"),E=v.useState("open"),T=v.useState("openMethod"),R=v.useState("titleElementId"),N=v.useState("transitionStatus"),P=v.useState("role"),L=w.useState("floatingId"),I=null!==(n=h.id)&&void 0!==n?n:L;(0,f.D)(),(0,p.s)({open:E,ref:v.context.popupRef,onComplete(){if(E){var e,t;null===(e=(t=v.context).onOpenChangeComplete)||void 0===e||e.call(t,!0)}}});let O=void 0===c?(0,m.lf)(v.context.popupRef):c,$=v.useStateSetter("popupElement"),j=(0,l.E)("div",e,{state:{open:E,nested:M,transitionStatus:N,nestedDialogOpen:A>0},props:[_,{id:I,"aria-labelledby":null!=R?R:void 0,"aria-describedby":null!=x?x:void 0,role:P,...m.J_,hidden:!C,onKeyDown(e){g.dT.has(e.key)&&e.stopPropagation()},style:{[d.nestedDialogs]:A}},h],ref:[t,v.context.popupRef,$],stateAttributesMapping:b});return(0,y.jsx)(o.w,{context:w,openInteractionType:T,disabled:!C,closeOnFocusOut:!k,initialFocus:O,returnFocus:u,modal:!1!==S,restoreFocus:"popup",children:j})})},28937:function(e,t,n){"use strict";n.d(t,{P:function(){return c}});var r=n(28113),i=n(61254),a=n(84328),o=n(77597),s=n(63651),l=n(37538),u=n(22087);let c=r.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:c}=(0,o.xc)(),d=c.useState("mounted"),h=c.useState("modal"),f=c.useState("open");return d||n?(0,u.jsx)(s.o.Provider,{value:n,children:(0,u.jsxs)(a.ll,{ref:t,...r,children:[d&&!0===h&&(0,u.jsx)(l.C,{ref:c.context.
1internalBackdropRef,inert:(0,i.P)(!f)}),e.children]})}):null})},63651:function(e,t,n){"use strict";n.d(t,{D:function(){return o},o:function(){return a}});var r=n(64104),i=n(28113);let a=i.createContext(void 0);function o(){let e=i.useContext(a);if(void 0===e)throw Error((0,r.Z)(26));return e}},59162:function(e,t,n){"use strict";n.d(t,{G:function(){return k}});var r=n(28113),i=n(77597),a=n(15763),o=n(51713),s=n(32083),l=n(55833),u=n(95027),c=n(86620),d=n(58808),h=n(74149);function f(e){var t,n,i;let{store:a,parentContext:c,isDrawer:d}=e,f=a.useState("open"),p=a.useState("disablePointerDismissal"),g=a.useState("modal"),m=a.useState("popupElement"),y=a.useState("floatingRootContext"),[b,v]=r.useState(0),[x,k]=r.useState(0),w=0===b,_=(0,l.b)(y,{outsidePressEvent:()=>a.context.internalBackdropRef.current||a.context.backdropRef.current?"intentional":{mouse:"trap-focus"===g?"sloppy":"intentional",touch:"sloppy"},outsidePress(e){if(!a.context.outsidePressEnabledRef.current||"button"in e&&0!==e.button||"touches"in e&&1!==e.touches.length)return!1;let t=(0,u.U9)(e);return!!w&&!p&&(!g||!a.context.internalBackdropRef.current&&!a.context.backdropRef.current||a.context.internalBackdropRef.current===t||a.context.backdropRef.current===t||(0,u.r3)(t,m)&&!(null==t?void 0:t.hasAttribute("data-base-ui-portal")))},escapeKey:w});(0,o.P)(f&&!0===g,m),a.useContextCallback("onNestedDialogOpen",(e,t)=>{v(e),k(t)}),a.useContextCallback("onNestedDialogClose",()=>{v(0),k(0)}),r.useEffect(()=>((null==c?void 0:c.onNestedDialogOpen)&&f&&c.onNestedDialogOpen(b+1,x+(d?1:0)),(null==c?void 0:c.onNestedDialogClose)&&!f&&c.onNestedDialogClose(),()=>{(null==c?void 0:c.onNestedDialogClose)&&f&&c.onNestedDialogClose()}),[d,f,b,x,c]);let S=null!==(t=_.reference)&&void 0!==t?t:s.Nu,C=null!==(n=_.trigger)&&void 0!==n?n:s.Nu,M=null!==(i=_.floating)&&void 0!==i?i:s.Nu;return(0,h.wN)(a,{activeTriggerProps:S,inactiveTriggerProps:C,popupProps:M,nestedOpenDialogCount:b,nestedOpenDrawerCount:x}),null}var p=n(96705),g=n(78632),m=n(72485),y=n(10067);let b={...m.L$,modal:(0,p.P)(e=>e.modal),nested:(0,p.P)(e=>e.nested),nestedOpenDialogCount:(0,p.P)(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:(0,p.P)(e=>e.nestedOpenDrawerCount),disablePointerDismissal:(0,p.P)(e=>e.disablePointerDismissal),openMethod:(0,p.P)(e=>e.openMethod),descriptionElementId:(0,p.P)(e=>e.descriptionElementId),titleElementId:(0,p.P)(e=>e.titleElementId),viewportElement:(0,p.P)(e=>e.viewportElement),role:(0,p.P)(e=>e.role)};class v extends g.u{constructor(e,t,n=!1){let i=new y.b,a=function(e={}){return{...(0,m.dP)(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e}}(e);a.floatingRootContext=(0,m.Rl)(i,t,n),super(a,{popupRef:r.createRef(),backdropRef:r.createRef(),internalBackdropRef:r.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:i,onOpenChange:void 0,onOpenChangeComplete:void 0},b)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},e||null!=t.trigger||null==this.state.activeTriggerId||(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let n={open:e};(0,h.RG)(n,e,t.trigger),this.update(n)};static useStore(e,t){return(0,h.bd)(e,(e,n)=>new v(t,e,n),!0).store}}var x=n(22087);function k(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dialog",{children:n,open:o,defaultOpen:s=!1,onOpenChange:l,onOpenChangeComplete:u,disablePointerDismissal:p=!1,modal:g=!0,actionsRef:m,handle:y,triggerId:b,defaultTriggerId:k=null}=e,w="alert-dialog"===t,_=(0,i.xc)(!0),S={modal:!!w||g,disablePointerDismissal:w||p,nested:!!_,role:w?"alertdialog":"dialog"},C=v.useStore(null==y?void 0:y.store,{open:s,openProp:o,activeTriggerId:k,triggerIdProp:b,...S});(0,a.h)(()=>{let e=void 0===o&&!1===C.state.open&&!0===s?{open:!0,activeTriggerId:k}:null;w?C.update(e?{...S,...e}:S):e&&C.update(e)}),C.useControlledProp("openProp",o),C.useControlledProp("triggerIdProp",b),C.useSyncedValues(S),C.useContextCallback("onOpenChange",l),C.useContextCallback("onOpenChangeComplete",u);let M=C.useState("open"),A=C.useState("mounted"),E=C.useState("payload");!function(e){let{store:t,actionsRef:n}=e,i=t.useState("open");(0,h.ex)(t,i),(0,h.zf)(t);let{forceUnmount:a}=(0,h.Rp)(i,t),o=r.useCallback(()=>{t.setOpen(!1,(0,c.e)(d.bK))},[t]);r.useImperativeHandle(n,()=>({unmount:a,close:o}),[a,o])}({store:C,actionsRef:m});let T=r.useMemo(()=>({store:C}),[C]);return(0,x.jsx)(i.Om.Provider,{value:!1,children:(0,x.jsxs)(i.CD.Provider,{value:T,children:[(M||A)&&(0,x.jsx)(f,{store:C,parentContext:null==_?void 0:_.store.context,isDrawer:"drawer"===t}),"function"==typeof n?n({payload:E}):n]})})}(e,r.useContext(i.Om)?"drawer":"dialog")}},77597:function(e,t,n){"use strict";n.d(t,{CD:function(){return o},Om:function(){return a},xc:function(){return s}});var r=n(64104),i=n(28113);let a=i.createContext(!1),o=i.createContext(void 0);function s(e){let t=i.useContext(o);if(!1===e&&void 0===t)throw Error((0,r.Z)(27));return t}},30102:function(e,t,n){"use strict";n.d(t,{$:function(){return s}});var r=n(28113),i=n(77597),a=n(99952),o=n(91532);let s=r.forwardRef(function(e,t){let{render:n,className:r,style:s,id:l,...u}=e,{store:c}=(0,i.xc)(),d=(0,o.L)(l);
1return c.useSyncedValueWithCleanup("titleElementId",d),(0,a.E)("h2",e,{ref:t,props:[{id:d},u]})})},94037:function(e,t,n){"use strict";n.d(t,{w:function(){return q}});var r=n(28113),i=n(67178),a=n(22905),o=n(45845),s=n(50891),l=n(94952),u=n(14802),c=n(61780),d=n(94573),h=n(53e3),f=n(82254),p=n(84321),g=n(56518),m=n(95027),y=n(53819),b=n(7739),v=n(81997),x=n(10602),k=n(45680),w=n(86620),_=n(58808),S=n(25587),C=n(83131);let M={inert:new WeakMap,"aria-hidden":new WeakMap},A="data-base-ui-inert",E={inert:new WeakSet,"aria-hidden":new WeakSet},T=new WeakMap,R=0,N=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=function e(t){return t?(0,i.Zq)(t)?t.host:e(t.parentNode):null}(t);return e.contains(n)?n:null}).filter(e=>null!=e),P=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},L=(e,t,n)=>{let r=[],a=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{"script"!==(0,i.wk)(e)&&(t.has(e)?a(e):r.push(e))})};return a(e),r};function I(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0}=t,a=(0,p.P)(e[0]).body;return function(e,t,n,r,{mark:i=!0}){let a=null;r?a="inert":n&&(a="aria-hidden");let o=null,s=null,l=N(t,e),u=i?L(t,P(l),new Set(l)):[],c=[],d=[];if(a){let e=M[a],n=E[a];s=n,o=e;let r=N(t,Array.from(t.querySelectorAll("[aria-live]"))),i=l.concat(r);L(t,P(i),new Set(i)).forEach(t=>{let r=t.getAttribute(a),i=null!==r&&"false"!==r,o=(e.get(t)||0)+1;e.set(t,o),c.push(t),1===o&&i&&n.add(t),i||t.setAttribute(a,"inert"===a?"":"true")})}return i&&u.forEach(e=>{let t=(T.get(e)||0)+1;T.set(e,t),d.push(e),1===t&&e.setAttribute(A,"")}),R+=1,()=>{o&&c.forEach(e=>{let t=(o.get(e)||0)-1;o.set(e,t),t||(!s?.has(e)&&a&&e.removeAttribute(a),s?.delete(e))}),i&&d.forEach(e=>{let t=(T.get(e)||0)-1;T.set(e,t),t||e.removeAttribute(A)}),(R-=1)||(M.inert=new WeakMap,M["aria-hidden"]=new WeakMap,E.inert=new WeakSet,E["aria-hidden"]=new WeakSet,T=new WeakMap)}}(e,a,n,r,{mark:i})}var O=n(84328),$=n(55538),j=n(64615),D=n(82216),F=n(22087);let B=[];function z(){B=B.filter(e=>{var t;return null===(t=e.deref())||void 0===t?void 0:t.isConnected})}function U(e){z(),e&&"body"!==(0,i.wk)(e)&&(B.push(new WeakRef(e)),B.length>20&&(B=B.slice(-20)))}function W(){var e;return z(),null===(e=B[B.length-1])||void 0===e?void 0:e.deref()}function H(e){var t;if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!(null===(t=e.getAttribute("role"))||void 0===t?void 0:t.includes("dialog")))return;let n=(0,v.KW)(e).filter(e=>{let t=e.getAttribute("data-tabindex")||"";return(0,v.Wq)(e)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),r=e.getAttribute("tabindex");0===n.length?"0"!==r&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):("-1"!==r||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function q(e){let{context:t,children:n,disabled:M=!1,initialFocus:A=!0,returnFocus:E=!0,restoreFocus:T=!1,modal:R=!0,closeOnFocusOut:N=!0,openInteractionType:P="",nextFocusableElement:L,previousFocusableElement:B,beforeContentFocusGuardRef:q,externalTree:G,getInsideElements:V}=e,Z="rootStore"in t?t.rootStore:t,Y=Z.useState("open"),X=Z.useState("domReferenceElement"),Q=Z.useState("floatingElement"),{events:K,dataRef:J}=Z.context,ee=(0,u.R)(()=>{var e;return null===(e=J.current.floatingContext)||void 0===e?void 0:e.nodeId}),et=(0,y.Ie)(X)&&!1===A,en=(0,l.B)(A),er=(0,l.B)(E),ei=(0,l.B)(P),ea=(0,l.B)(Y),eo=(0,$.ay)(G),es=(0,O.B7)(),el=r.useRef(!1),eu=r.useRef(!1),ec=r.useRef(!1),ed=r.useRef(null),eh=r.useRef(""),ef=r.useRef(""),ep=r.useRef(null),eg=r.useRef(null),em=(0,s.r)(ep,q,null==es?void 0:es.beforeInsideRef),ey=(0,s.r)(eg,null==es?void 0:es.afterInsideRef),eb=(0,d.K)(),ev=(0,d.K)(),ex=(0,f.p)(),ek=null!=es,ew=(0,y.zd)(Q),e_=(0,u.R)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ew;return e?(0,v.ht)(e):[]}),eS=(0,u.R)(()=>{var e;return null!==(e=null==V?void 0:V().filter(e=>null!=e))&&void 0!==e?e:[]});r.useEffect(()=>{if(M||!R)return;let e=(0,p.P)(ew);return(0,a.O)(e,"keydown",function(e){"Tab"===e.key&&(0,m.r3)(ew,(0,m.AW)((0,p.P)(ew)))&&0===e_().length&&!et&&(0,b.p7)(e)})},[M,ew,R,et,e_]),r.useEffect(()=>{if(M||!Y)return;let e=(0,p.P)(ew);function t(){ec.current=!1}return(0,o.y)((0,a.O)(e,"pointerdown",function(e){let t=(0,m.U9)(e),n=eS(),r=(0,m.r3)(Q,t)||(0,m.r3)(X,t)||(0,m.r3)(null==es?void 0:es.portalNode,t)||n.some(e=>e===t||(0,m.r3)(e,t));
1ec.current=!r,ef.current=e.pointerType||"keyboard",(null==t?void 0:t.closest("[".concat(j.Ly,"]")))&&(eu.current=!0,ev.start(0,()=>{eu.current=!1}))},!0),(0,a.O)(e,"pointerup",t,!0),(0,a.O)(e,"pointercancel",t,!0),(0,a.O)(e,"keydown",function(){ef.current="keyboard"},!0),t)},[M,Q,X,ew,Y,es,ev,eS]),r.useEffect(()=>{if(M||!N)return;let e=(0,p.P)(ew);function t(t){let n=t.relatedTarget,r=t.currentTarget,a=(0,m.U9)(t);R&&null==n&&null!=a&&(0,m.r3)(Q,a)&&U(a),queueMicrotask(()=>{let o=ee(),s=Z.context.triggerElements,l=eS(),u=(null==n?void 0:n.hasAttribute((0,S.J)("focus-guard")))&&[ep.current,eg.current,null==es?void 0:es.beforeInsideRef.current,null==es?void 0:es.afterInsideRef.current,null==es?void 0:es.beforeOutsideRef.current,null==es?void 0:es.afterOutsideRef.current,(0,D.q)(B),(0,D.q)(L)].includes(n),c=!((0,m.r3)(X,n)||(0,m.r3)(Q,n)||(0,m.r3)(n,Q)||(0,m.r3)(null==es?void 0:es.portalNode,n)||l.some(e=>e===n||(0,m.r3)(e,n))||null!=n&&s.hasElement(n)||s.hasMatchingElement(e=>(0,m.r3)(e,n))||u||eo&&((0,x.El)(eo.nodesRef.current,o).find(e=>{var t,r;return(0,m.r3)(null===(t=e.context)||void 0===t?void 0:t.elements.floating,n)||(0,m.r3)(null===(r=e.context)||void 0===r?void 0:r.elements.domReference,n)})||(0,x.C1)(eo.nodesRef.current,o).find(e=>{var t,r,i;return[null===(t=e.context)||void 0===t?void 0:t.elements.floating,(0,y.zd)(null===(r=e.context)||void 0===r?void 0:r.elements.floating)].includes(n)||(null===(i=e.context)||void 0===i?void 0:i.elements.domReference)===n})));if(r===X&&ew&&H(ew),T&&r!==X&&!(0,k.Jv)(a)&&(0,m.AW)(e)===e.body){if((0,i.Re)(ew)&&(ew.focus(),"popup"===T)){ex.request(()=>{ew.focus()});return}let e=e_(),t=ed.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||ew;(0,i.Re)(n)&&n.focus()}if(J.current.insideReactTree){J.current.insideReactTree=!1;return}(et||!R)&&n&&c&&!eu.current&&(et||n!==W())&&(el.current=!0,Z.setOpen(!1,(0,w.e)(_.su,t)))})}let n=(0,i.Re)(X)?X:null;if(Q||n)return(0,o.y)(n&&(0,a.O)(n,"focusout",t),n&&(0,a.O)(n,"pointerdown",function(){eu.current=!0,ev.start(0,()=>{eu.current=!1})}),Q&&(0,a.O)(Q,"focusin",function(e){let t=(0,m.U9)(e);(0,v.Wq)(t)&&(ed.current=t)}),Q&&(0,a.O)(Q,"focusout",t),Q&&es&&(0,a.O)(Q,"focusout",function(){ec.current||(J.current.insideReactTree=!0,eb.start(0,()=>{J.current.insideReactTree=!1}))},!0))},[M,X,Q,ew,R,eo,es,Z,N,T,e_,et,ee,J,eb,ev,ex,L,B,eS]),r.useEffect(()=>{var e,t,n;if(M||!Q||!Y)return;let r=Array.from((null==es?void 0:null===(e=es.portalNode)||void 0===e?void 0:e.querySelectorAll("[".concat((0,S.J)("portal"),"]")))||[]),i=null===(n=(eo?(0,x.C1)(eo.nodesRef.current,ee()):[]).find(e=>{var t;return(0,y.Ie)((null===(t=e.context)||void 0===t?void 0:t.elements.domReference)||null)}))||void 0===n?void 0:null===(t=n.context)||void 0===t?void 0:t.elements.domReference,a=I([Q,...r,ep.current,eg.current,null==es?void 0:es.beforeOutsideRef.current,null==es?void 0:es.afterOutsideRef.current,...eS(),i,(0,D.q)(B),(0,D.q)(L),et?X:null].filter(e=>null!=e),{ariaHidden:R||et,mark:!1}),o=I([Q,...r].filter(e=>null!=e));return()=>{o(),a()}},[Y,M,X,Q,R,es,et,eo,ee,L,B,eS]),(0,c.W)(()=>{if(!Y||M||!(0,i.Re)(ew))return;let e=(0,p.P)(ew),t=(0,m.AW)(e);queueMicrotask(()=>{let n;let r=en.current,i="function"==typeof r?r(ei.current||""):r;if(void 0===i||!1===i||(0,m.r3)(ew,t))return;let a=null,o=()=>(null==a&&(a=e_(ew)),a[0]||ew);n=(n=!0===i||null===i?o():(0,D.q)(i))||o();let s=(0,m.r3)(ew,(0,m.AW)(e));(0,C.g)(n,{preventScroll:n===ew,shouldFocus(){if(!ea.current)return!1;if(s)return!0;let t=(0,m.AW)(e);return!(t!==n&&(0,m.r3)(ew,t))}})})},[M,Y,ew,e_,en,ei,ea]),(0,c.W)(()=>{if(M||!ew)return;let e=(0,p.P)(ew),t=(0,m.AW)(e),n=null==ei.current;function r(e){if(e.open||(eh.current=function(e,t){let n=(0,i.Jj)((0,m.U9)(e));return e instanceof n.KeyboardEvent?"keyboard":e instanceof n.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof n.MouseEvent?t||(0===e.detail?"keyboard":"mouse"):""}(e.nativeEvent,ef.current)),e.reason===_.rC&&"mouseleave"===e.nativeEvent.type&&(el.current=!0),e.reason===_.Fh){if(e.nested)el.current=!1;else if((0,b.Zj)(e.nativeEvent)||(0,b.cr)(e.nativeEvent))el.current=!1;else{let e=!1;(0,p.P)(ew).createElement("div").focus({get preventScroll(){return e=!0,!1}}),e?el.current=!1:el.current=!0}}}return U(t),K.on("openchange",r),()=>{K.off("openchange",r);let a=(0,m.AW)(e),o=eS(),s=(0,m.r3)(Q,a)||o.some(e=>e===a||(0,m.r3)(e,a))||eo&&(0,x.El)(eo.nodesRef.current,ee(),!1).some(e=>{var t;return(0,m.r3)(null===(t=e.context)||void 0===t?void 0:t.elements.floating,a)}),l=er.current,u=function(){let e=er.current,r="function"==typeof e?e(eh.current):e;if(void 0===r||!1===r)return null;null===r&&(r=!0);let a=(null==X?void 0:X.isConnected)?X:null,o=(null==t?void 0:t.isConnected)&&"body"!==(0,i.wk)(t)?t:null,s=n?o||a:a||o;return(s||(s=W()||null),"boolean"==typeof r)?s:(0,D.q)(r)||s||null}();queueMicrotask(()=>{let t=u?(0,v.Wq)(u)?u:(0,v.ht)(u)[0]||u:null;l&&!el.current&&(0,i.Re)(t)&&("boolean"!=typeof l||t===a||a===e.body||s)&&t.focu
1s({preventScroll:!0}),el.current=!1})}},[M,Q,ew,er,ei,K,eo,X,ee,eS]),(0,c.W)(()=>{if(!h.a0||Y||!Q)return;let e=(0,m.AW)((0,p.P)(Q));(0,i.Re)(e)&&(0,y.j7)(e)&&(0,m.r3)(Q,e)&&e.blur()},[Y,Q]),(0,c.W)(()=>{if(!M&&es)return es.setFocusManagerState({modal:R,closeOnFocusOut:N,open:Y,onOpenChange:Z.setOpen,domReference:X}),()=>{es.setFocusManagerState(null)}},[M,es,R,Y,Z,N,X]),(0,c.W)(()=>{if(!M&&ew)return H(ew),()=>{queueMicrotask(z)}},[M,ew]);let eC=!M&&(!R||!et)&&(ek||R);return(0,F.jsxs)(r.Fragment,{children:[eC&&(0,F.jsx)(g.O,{"data-type":"inside",ref:em,onFocus:e=>{if(R){let e=e_();(0,C.g)(e[e.length-1])}else if(null==es?void 0:es.portalNode){if(el.current=!1,(0,v.dE)(e,es.portalNode)){let e=(0,v.k0)(X);null==e||e.focus()}else{var t;null===(t=(0,D.q)(null!=B?B:es.beforeOutsideRef))||void 0===t||t.focus()}}}}),n,eC&&(0,F.jsx)(g.O,{"data-type":"inside",ref:ey,onFocus:e=>{if(R)(0,C.g)(e_()[0]);else if(null==es?void 0:es.portalNode){if(N&&(el.current=!0),(0,v.dE)(e,es.portalNode)){let e=(0,v.e8)(X);null==e||e.focus()}else{var t;null===(t=(0,D.q)(null!=L?L:es.afterOutsideRef))||void 0===t||t.focus()}}}})]})}},84328:function(e,t,n){"use strict";n.d(t,{B7:function(){return k},GH:function(){return _},ll:function(){return S}});var r=n(28113),i=n(37421),a=n(67178),o=n(22905),s=n(45845),l=n(50778),u=n(61780),c=n(14802),d=n(32083),h=n(56518),f=n(81997),p=n(86620),g=n(58808),m=n(25587),y=n(99952),b=n(64615),v=n(22087);let x=r.createContext(null),k=()=>r.useContext(x),w=(0,m.J)("portal");function _(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{ref:t,container:n,componentProps:o=d.Nu,elementProps:s}=e,h=(0,l.M)(),f=k(),p=null==f?void 0:f.portalNode,[g,m]=r.useState(null),[b,v]=r.useState(null),x=(0,c.R)(e=>{null!==e&&v(e)}),_=r.useRef(null);(0,u.W)(()=>{var e,t;if(null===n){_.current&&(_.current=null,v(null),m(null));return}if(null==h)return;let r=null!==(t=null!==(e=n&&((0,a.UG)(n)?n:n.current))&&void 0!==e?e:p)&&void 0!==t?t:document.body;if(null==r){_.current&&(_.current=null,v(null),m(null));return}_.current!==r&&(_.current=r,v(null),m(r))},[n,p,h]);let S=(0,y.E)("div",o,{ref:[t,x],props:[{id:h,[w]:""},s]});return{portalNode:b,portalSubtree:g&&S?i.createPortal(S,g):null}}let S=r.forwardRef(function(e,t){let{render:n,className:a,style:l,children:c,container:d,renderGuards:m,...y}=e,{portalNode:k,portalSubtree:w}=_({container:d,ref:t,componentProps:e,elementProps:y}),S=r.useRef(null),C=r.useRef(null),M=r.useRef(null),A=r.useRef(null),[E,T]=r.useState(null),R=r.useRef(!1),N=null==E?void 0:E.modal,P=null==E?void 0:E.open,L="boolean"==typeof m?m:!!E&&!E.modal&&E.open&&!!k;r.useEffect(()=>{if(k&&!N)return(0,s.y)((0,o.O)(k,"focusin",e,!0),(0,o.O)(k,"focusout",e,!0));function e(e){k&&e.relatedTarget&&(0,f.dE)(e)&&("focusin"===e.type?R.current&&((0,f.NX)(k),R.current=!1):((0,f.N6)(k),R.current=!0))}},[k,N]),(0,u.W)(()=>{k&&!0===P&&R.current&&((0,f.NX)(k),R.current=!1)},[P,k]);let I=r.useMemo(()=>({beforeOutsideRef:S,afterOutsideRef:C,beforeInsideRef:M,afterInsideRef:A,portalNode:k,setFocusManagerState:T}),[k]);return(0,v.jsxs)(r.Fragment,{children:[w,(0,v.jsxs)(x.Provider,{value:I,children:[L&&k&&(0,v.jsx)(h.O,{"data-type":"outside",ref:S,onFocus:e=>{if((0,f.dE)(e,k)){var t;null===(t=M.current)||void 0===t||t.focus()}else{let e=E?E.domReference:null,t=(0,f.e8)(e);null==t||t.focus()}}}),L&&k&&(0,v.jsx)("span",{"aria-owns":k.id,style:b.lX}),k&&i.createPortal(c,k),L&&k&&(0,v.jsx)(h.O,{"data-type":"outside",ref:C,onFocus:e=>{if((0,f.dE)(e,k)){var t;null===(t=A.current)||void 0===t||t.focus()}else{let t=E?E.domReference:null,n=(0,f.k0)(t);null==n||n.focus(),(null==E?void 0:E.closeOnFocusOut)&&(null==E||E.onOpenChange(!1,(0,p.e)(g.su,e.nativeEvent)))}}})]})]})})},21543:function(e,t,n){"use strict";n.d(t,{k:function(){return s}});var r=n(96705),i=n(78632),a=n(7739);let o={open:(0,r.P)(e=>e.open),transitionStatus:(0,r.P)(e=>e.transitionStatus),domReferenceElement:(0,r.P)(e=>e.domReferenceElement),referenceElement:(0,r.P)(e=>e.positionReference??e.referenceElement),floatingElement:(0,r.P)(e=>e.floatingElement),floatingId:(0,r.P)(e=>e.floatingId)};class s extends i.u{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:function(){let e=new Map;
1return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}(),nested:n,triggerElements:i},o),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||null!=t&&(0,a.Du)(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit("openchange",n)};setOpen=(e,t)=>{if(this.syncOnly){this.context.onOpenChange?.(e,t);return}this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}}},55538:function(e,t,n){"use strict";n.d(t,{Zm:function(){return o},ay:function(){return s}});var r=n(28113);n(22087);let i=r.createContext(null),a=r.createContext(null),o=()=>{var e;return(null===(e=r.useContext(i))||void 0===e?void 0:e.id)||null},s=e=>{let t=r.useContext(a);return null!=e?e:t}},55833:function(e,t,n){"use strict";n.d(t,{b:function(){return x}});var r=n(28113),i=n(22905),a=n(45845),o=n(84321),s=n(14802),l=n(94573),u=n(67178),c=n(53e3),d=n(55538),h=n(86620),f=n(58808),p=n(25587),g=n(53819),m=n(95027),y=n(7739),b=n(10602);function v(){return!1}function x(e){var t,n;let x=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{enabled:k=!0,escapeKey:w=!0,outsidePress:_=!0,outsidePressEvent:S="sloppy",referencePress:C=v,bubbles:M,externalTree:A}=x,E="rootStore"in e?e.rootStore:e,T=E.useState("open"),R=E.useState("floatingElement"),{dataRef:N}=E.context,P=(0,d.ay)(A),L=(0,s.R)("function"==typeof _?_:()=>!1),I="function"==typeof _?L:_,O=!1!==I,$=(0,s.R)(()=>S),{escapeKey:j,outsidePress:D}={escapeKey:"boolean"==typeof M?M:null!==(t=null==M?void 0:M.escapeKey)&&void 0!==t&&t,outsidePress:"boolean"==typeof M?M:null===(n=null==M?void 0:M.outsidePress)||void 0===n||n},F=r.useRef(!1),B=r.useRef(!1),z=r.useRef(!1),U=r.useRef(!1),W=r.useRef(""),H=r.useRef(null),q=(0,l.K)(),G=(0,l.K)(),V=(0,s.R)(()=>{G.clear(),N.current.insideReactTree=!1}),Z=(0,s.R)(e=>{var t;let n=null===(t=N.current.floatingContext)||void 0===t?void 0:t.nodeId;return(P?(0,b.El)(P.nodesRef.current,n):[]).some(t=>{var n;return(null===(n=t.context)||void 0===n?void 0:n.open)&&!t.context.dataRef.current[e]})}),Y=(0,s.R)(e=>(0,g.Pe)(e,E.select("floatingElement"))||(0,g.Pe)(e,E.select("domReferenceElement"))),X=(0,s.R)(e=>{C()&&E.setOpen(!1,(0,h.e)(f._j,e.nativeEvent))}),Q=(0,s.R)(e=>{if(!T||!k||!w||"Escape"!==e.key||U.current||!j&&Z("__escapeKeyBubbles"))return;let t=(0,y.MM)(e)?e.nativeEvent:e,n=(0,h.e)(f.tv,t);E.setOpen(!1,n),n.isCanceled||e.preventDefault(),j||n.isPropagationAllowed||e.stopPropagation()}),K=(0,s.R)(()=>{N.current.insideReactTree=!0,G.start(0,V)}),J=(0,s.R)(e=>{if(!T||!k||0!==e.button)return;let t=(0,m.U9)(e.nativeEvent);(0,m.r3)(E.select("floatingElement"),t)&&(F.current||(F.current=!0,B.current=!1))}),ee=(0,s.R)(e=>{T&&k&&(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&F.current&&(B.current=!0)});r.useEffect(()=>{if(!T||!k)return;N.current.__escapeKeyBubbles=j,N.current.__outsidePressBubbles=D;let e=new l.V,t=new l.V;function n(){z.current=!0,t.start(0,()=>{z.current=!1})}function r(){F.current=!1,B.current=!1}function s(){let e=W.current,t=$(),n="function"==typeof t?t():t;return"string"==typeof n?n:n["pen"!==e&&e?e:"mouse"]}function d(e){var t;let n=null===(t=N.current.floatingContext)||void 0===t?void 0:t.nodeId,r=P&&(0,b.El)(P.nodesRef.current,n).some(t=>{var n;return(0,g.Pe)(e,null===(n=t.context)||void 0===n?void 0:n.elements.floating)});return Y(e)||r}function y(e){if(function(e){let t=s();return"intentional"===t&&"click"!==e.type||"sloppy"===t&&"click"===e.type}(e)){"click"===e.type||Y(e)||(t.clear(),z.current=!1),V();return}if(N.current.insideReactTree){V();return}let n=(0,m.U9)(e),r="[".concat((0,p.J)("inert"),"]"),i=(0,u.kK)(n)?n.getRootNode():null,a=Array.from(((0,u.Zq)(i)?i:(0,o.P)(E.select("floatingElement"))).querySelectorAll(r)),l=E.context.triggerElements;if(n&&(l.hasElement(n)||l.hasMatchingElement(e=>(0,m.r3)(e,n))))return;let c=(0,u.kK)(n)?n:null;for(;c&&!(0,u.Py)(c);){let e=(0,u.Ow)(c);if((0,u.Py)(e)||!(0,u.kK)(e))break;c=e}if(!(a.length&&(0,u.kK)(n)&&!(0,g.ex)(n)&&!(0,m.r3)(n,E.select("floatingElement"))&&a.every(e=>!(0,m.r3)(c,e)))){if((0,u.Re)(n)&&!("touches"in e)){let t=(0,u.Py)(n),r=(0,u.Dx)(n),i=/auto|scroll/,a=t||i.test(r.overflowX),o=t||i.test(r.overflowY),s=a&&n.clientWidth>0&&n.scrollWidth>n.clientWidth,l=o&&n.clientHeight>0&&n.scrollHeight>n.clientHeight,c="rtl"===r.direction,d=l&&(c?e.offsetX<=n.offsetWidth-n.clientWidth:e.offsetX>n.clientWidth),h=s&&e.offsetY>n.clientHeight;if(d||h)return}if(!d(e)){if("intentional"===s()&&z.current){t.clear(),z.current=!1;return}"function"==typeof I&&!I(e)||Z("__outsidePressBubbles")||(E.setOpen(!1,(0,h.e)(f.Fh,e)),V())}}}function v(e){if("sloppy"!==s()||!E.select("open")||!k||Y(e))return;let t=e.touches[0];t&&(H.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},q.start(1e3,()=>{H.current&&(H.current.dismissOnTouchEnd=!1,H.current.dismissOnMouseDown=!1)}))}function x(e,t){let n=(0,m.U9)(e);if(!n)return;let r=(0,i.O)(n,e.type,()=>{t(e),r()})}function _(e){q.clear(),"pointerdown"===e.type&&(W.current=e.pointerType),("mousedown"!==e.type||!H.current||H.current.dismissOnMouseDown)&&x(e,e=>{"pointerdown"===e.type&&("sloppy"!==s()||"touch"===e.pointerType||!E.select("open")||!k||Y(e))||y(e)})}function S(e){if(!F.current)return;let i=B.current;if(r(),"intentional"===s()){if("pointercancel"===e.type){i&&n();return}if(!d(e)){if(i){n();return}("function"!=typeof I||I(e))&&(t.clear(),z.current=!0,V())}}}function C(e){if("sloppy"!==s()||!H.current||Y(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-H.current.startX),r=Math.abs(t.clientY-H.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(H.current.dismissOnTouchEnd=!0),i>10&&(y(e),q.clear(),H.current=null)}function M(e){"sloppy"!==s()||!H.current||Y(e)||(H.current.dismissOnTouchEnd&&y(e),q.clear(),H.current=null)}let A=(0,o.P)(R),L=(0,a.y)(w&&(0,a.y)((0,i.O)(A,"keydown",Q),(0,i.O)(A,"compositionstart",function(){e.clear(),U.current=!0}),(0,i.O)(A,"compositionend",function(){e.start(c.a0?5:0,()=>{U.current=!1})}
1)),O&&(0,a.y)((0,i.O)(A,"click",_,!0),(0,i.O)(A,"pointerdown",_,!0),(0,i.O)(A,"pointerup",S,!0),(0,i.O)(A,"pointercancel",S,!0),(0,i.O)(A,"mousedown",_,!0),(0,i.O)(A,"mouseup",S,!0),(0,i.O)(A,"touchstart",function(e){W.current="touch",x(e,v)},!0),(0,i.O)(A,"touchmove",function(e){x(e,C)},!0),(0,i.O)(A,"touchend",function(e){x(e,M)},!0)));return()=>{L(),e.clear(),t.clear(),r(),z.current=!1}},[N,R,w,O,I,T,k,j,D,Q,V,$,Z,Y,P,E,q]),r.useEffect(V,[I,V]);let et=r.useMemo(()=>({onKeyDown:Q,onPointerDown:X,onClick:X}),[Q,X]),en=r.useMemo(()=>({onKeyDown:Q,onPointerDown:ee,onMouseDown:ee,onClickCapture:K,onMouseDownCapture(e){K(),J(e)},onPointerDownCapture(e){K(),J(e)},onMouseUpCapture:K,onTouchEndCapture:K,onTouchMoveCapture:K}),[Q,K,J,ee]);return r.useMemo(()=>k?{reference:et,floating:en,trigger:et}:{},[k,et,en])}},57572:function(e,t,n){"use strict";n.d(t,{$:function(){return c}});var r=n(67178),i=n(50778),a=n(61780),o=n(43116),s=n(10067),l=n(55538),u=n(21543);function c(e){let{open:t=!1,onOpenChange:n,elements:c={}}=e,d=(0,i.M)(),h=null!=(0,l.Zm)(),f=(0,o.B)(()=>{var e,r;return new u.k({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:null!==(e=c.reference)&&void 0!==e?e:null,floatingElement:null!==(r=c.floating)&&void 0!==r?r:null,triggerElements:new s.b,floatingId:d,syncOnly:!1,nested:h})}).current;return(0,a.W)(()=>{let e={open:t,floatingId:d};void 0!==c.reference&&(e.referenceElement=c.reference,e.domReferenceElement=(0,r.kK)(c.reference)?c.reference:null),void 0!==c.floating&&(e.floatingElement=c.floating),f.update(e)},[t,d,c.reference,c.floating,f]),f.context.onOpenChange=n,f.context.nested=h,f}},45680:function(e,t,n){"use strict";n.d(t,{Jv:function(){return u},Nm:function(){return l},VP:function(){return i},aF:function(){return s},h$:function(){return a},zc:function(){return o}});var r=n(67178);function i(e,t){return t<0||t>=e.length}function a(e,t){return s(e.current,{disabledIndices:t})}function o(e,t){return s(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function s(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&l(e,a,r));return a}function l(e,t,n){if("function"==typeof n?n(t):n?.includes(t)??!1)return!0;let r=e[t];return!!r&&(!u(r)||!n&&(r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")))}function u(e,t=e?(0,r.Dx)(e):null){var n;return!!e&&!!e.isConnected&&!!t&&"hidden"!==(n=t).visibility&&"collapse"!==n.visibility&&("function"==typeof e.checkVisibility?e.checkVisibility():"none"!==t.display&&"contents"!==t.display)}},57162:function(e,t,n){"use strict";n.d(t,{Ft:function(){return o},NF:function(){return s},Ou:function(){return r},pe:function(){return a},qN:function(){return l},zr:function(){return i}});let r="data-base-ui-focusable",i="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",a="ArrowLeft",o="ArrowRight",s="ArrowUp",l="ArrowDown"},25587:function(e,t,n){"use strict";function r(e){return`data-base-ui-${e}`}n.d(t,{J:function(){return r}})},53819:function(e,t,n){"use strict";n.d(t,{Ie:function(){return h},Pe:function(){return l},WL:function(){return f},ZK:function(){return s},ex:function(){return u},j7:function(){return c},jF:function(){return d},zd:function(){return p}});var r=n(67178),i=n(60267),a=n(57162),o=n(95027);function s(e,t){if(!(0,r.kK)(e))return!1;if(t.hasElement(e))return!e.hasAttribute("data-trigger-disabled");for(let[,n]of t.entries())if((0,o.r3)(n,e))return!n.hasAttribute("data-trigger-disabled");return!1}function l(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}function u(e){return e.matches("html,body")}function c(e){return(0,r.Re)(e)&&e.matches(a.zr)}function d(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${a.zr}`)!=null}function h(e){return!!e&&"combobox"===e.getAttribute("role")&&c(e)}function f(e){if(!e||i.J)return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}function p(e){return e?e.hasAttribute(a.Ou)?e:e.querySelector(`[${a.Ou}]`)||e:null}},83131:function(e,t,n){"use strict";n.d(t,{g:function(){return a}});var r=n(32083);let i=0;function a(e,t={}){let{preventScroll:n=!1,sync:a=!1,shouldFocus:o}=t;function s(){(!o||o())&&e?.focus({preventScroll:n})}if(cancelAnimationFrame(i),a)return s(),r.dG;let l=requestAnimationFrame(s);return i=l,()=>{i===l&&(cancelAnimationFrame(l),i=0)}}},7739:function(e,t,n){"use strict";n.d(t,{Du:function(){return c},MM:function(){return o},Zj:function(){return s},cr:function(){return l},p7:function(){return a}
1,r:function(){return u}});var r=n(43883),i=n(60267);function a(e){e.preventDefault(),e.stopPropagation()}function o(e){return"nativeEvent"in e}function s(e){return""===e.pointerType&&!!e.isTrusted||(r.tW&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function l(e){return!i.J&&(!r.tW&&0===e.width&&0===e.height||r.tW&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function u(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function c(e){let t=e.type;return"click"===t||"mousedown"===t||"keydown"===t||"keyup"===t}},10602:function(e,t,n){"use strict";function r(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}n.d(t,{C1:function(){return r},El:function(){return function e(t,n,r=!0){return t.filter(e=>e.parentId===n).flatMap(n=>[...!r||n.context?.open?[n]:[],...e(t,n.id,r)])}}})},81997:function(e,t,n){"use strict";n.d(t,{KW:function(){return p},N6:function(){return x},NX:function(){return k},Wq:function(){return f},dE:function(){return v},e8:function(){return b},ht:function(){return g},k0:function(){return y}});var r=n(67178),i=n(84321),a=n(95027),o=n(45680);function s(e){for(let t of Array.from(e.children))if("summary"===(0,r.wk)(t))return t;return null}function l(e){let t=e?(0,r.wk)(e):"";return null!=e&&e.matches('a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]')&&("summary"!==t||null!=e.parentElement&&"details"===(0,r.wk)(e.parentElement)&&s(e.parentElement)===e)&&("details"!==t||null==s(e))&&("input"!==t||"hidden"!==e.type)}function u(e){if(!l(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=function(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return(0,r.Zq)(n)?n.host:null}(t)){let n=t!==e,i="slot"===(0,r.wk)(t);if(t.hasAttribute("inert")||n&&"details"===(0,r.wk)(t)&&!t.open&&!function(e,t){let n=s(t);return!!n&&(e===n||(0,a.r3)(n,e))}(e,t)||t.hasAttribute("hidden")||!i&&!function(e,t){let n=(0,r.Dx)(e);return t?"none"!==n.display:(0,o.Jv)(e,n)}(t,n))return!1}return!0}function c(e){let t=e.tabIndex;if(t<0){let t=(0,r.wk)(e);if("details"===t||"audio"===t||"video"===t||(0,r.Re)(e)&&e.isContentEditable)return 0}return t}function d(e){return"input"!==(0,r.wk)(e)?null:"radio"===e.type&&""!==e.name?e:null}function h(e){if((0,r.Re)(e)&&"slot"===(0,r.wk)(e)){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return(0,r.Re)(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function f(e){return u(e)&&c(e)>=0}function p(e){let t=[];return!function e(t,n){h(t).forEach(t=>{l(t)&&n.push(t),e(t,n)})}(e,t),t.filter(u)}function g(e){let t=p(e);return t.filter(e=>c(e)>=0&&function(e,t){let n=d(e);if(!n)return!0;let r=t.find(e=>{let t=d(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=d(e);return t?.name===n.name&&t.form===n.form})===n}(e,t))}function m(e,t){let n=g(e),r=n.length;if(0===r)return;let o=(0,a.AW)((0,i.P)(e)),s=n.indexOf(o);return n[-1===s?1===t?0:r-1:s+t]}function y(e){return m((0,i.P)(e).body,1)||e}function b(e){return m((0,i.P)(e).body,-1)||e}function v(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!(0,a.r3)(n,r)}function x(e){g(e).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function k(e){let t=[];!function e(t,n,i){h(t).forEach(t=>{(0,r.Re)(t)&&t.matches(n)&&i.push(t),e(t,n,i)})}(e,"[data-tabindex]",t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}},7672:function(e,t,n){"use strict";n.d(t,{I:function(){return x}});var r=n(28113),i=n(23857),a=n(61780),o=n(84321),s=n(14802),l=n(72643),u=n(613),c=n(50371),d=n(8902),h=n(93394),f=n(9645),p=n(99952),g=n(86620),m=n(58808),y=n(95027);let b=r.forwardRef(function(e,t){let{render:n,className:b,id:v,name:x,value:k,disabled:w=!1,onValueChange:_,defaultValue:S,autoFocus:C=!1,style:M,...A}=e,{state:E,name:T,disabled:R,setTouched:N,setDirty:P,validityData:L,setFocused:I,setFilled:O,validationMode:$,validation:j}=(0,l.T5)(),{clearErrors:D}=(0,c.G)(),F=R||w,B=null!=T?T:x,z={...E,disabled:F},{labelId:U}=(0,d.Q)(),W=(0,h.J)({id:v});(0,a.W)(()=>{var e;let t=null!=k;(null===(e=j.inputRef.current)||void 0===e?void 0:e.value)||t&&""!==k?O(!0):t&&""===k&&O(!1)},[j.inputRef,O,k]);let H=r.useRef(null);(0,a.W)(()=>{C&&H.current===(0,y.AW)((0,o.P)(H.current))&&I(!0)},[C,I]);let[q]=(0,i.u)({controlled:k,default:S,name:"FieldControl",state:"value"}),G=void 0!==k,V=G?q:void 0,Z=(0,s.R)(()=>{var e;return null===(e=j.inputRef.current)||void 0===e?void 0:e.value});return(0,u.H)(j.inputRef,W,V,Z,!F,x),(0,p.E)("input",e,{ref:[t,H],state:z,props:[{id:W,disabled:F,name:B,ref:j.inputRef,"aria-labelledby":U,autoFocus:C,...G?{value:V}:{defaultValue:S},onChange(e){let t=e.currentTarget.value;
1null==_||_(t,(0,g.e)(m.YP,e.nativeEvent)),P(t!==L.initialValue),O(""!==t),e.nativeEvent.defaultPrevented||(D(B),j.change(t))},onFocus(){I(!0)},onBlur(e){N(!0),I(!1),"onBlur"===$&&j.commit(e.currentTarget.value)},onKeyDown(e){"INPUT"===e.currentTarget.tagName&&"Enter"===e.key&&(N(!0),j.commit(e.currentTarget.value))}},A,e=>j.getValidationProps(F,e)],stateAttributesMapping:f.Wl})});var v=n(22087);let x=r.forwardRef(function(e,t){return(0,v.jsx)(b,{ref:t,...e})})},6184:function(e,t,n){"use strict";function r(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}n.d(t,{u:function(){return r}})},73705:function(e,t,n){"use strict";n.d(t,{Ft:function(){return s},NF:function(){return i},Pc:function(){return f},Sd:function(){return l},Uf:function(){return c},Zl:function(){return p},dT:function(){return g},gk:function(){return y},n5:function(){return b},nl:function(){return m},pe:function(){return o},q:function(){return d},qN:function(){return a},tc:function(){return h},uR:function(){return u}});var r=n(67178);let i="ArrowUp",a="ArrowDown",o="ArrowLeft",s="ArrowRight",l="Home",u="End",c=new Set([o,s]),d=new Set([o,s,l,u]),h=new Set([i,a]),f=new Set([i,a,l,u]),p=new Set([...c,...h]),g=new Set([...p,l,u]),m=new Set(["Shift","Control","Alt","Meta"]);function y(e){return!!((0,r.Re)(e)&&"INPUT"===e.tagName&&null!=e.selectionStart||(0,r.Re)(e)&&"TEXTAREA"===e.tagName)}function b(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,a=e.scrollTop,o=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight;if(o&&"vertical"!==r){let r=v(e,t,"left"),a=x(e),o=x(t);"ltr"===n&&(r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight?i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight:r-o.scrollMarginLeft<e.scrollLeft+a.scrollPaddingLeft&&(i=r-o.scrollMarginLeft-a.scrollPaddingLeft)),"rtl"===n&&(r-o.scrollMarginRight<e.scrollLeft+a.scrollPaddingLeft?i=r-o.scrollMarginLeft-a.scrollPaddingLeft:r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight&&(i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight))}if(s&&"horizontal"!==r){let n=v(e,t,"top"),r=x(e),i=x(t);n-i.scrollMarginTop<e.scrollTop+r.scrollPaddingTop?a=n-i.scrollMarginTop-r.scrollPaddingTop:n+t.offsetHeight+i.scrollMarginBottom>e.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(a=n+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:i,top:a,behavior:"auto"})}function v(e,t,n){let r="left"===n?"offsetLeft":"offsetTop",i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function x(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}},38172:function(e,t,n){"use strict";n.d(t,{e:function(){return r}});let r="data-composite-item-active"},28739:function(e,t,n){"use strict";n.d(t,{h:function(){return u}});var r=n(28113),i=n(43116),a=n(14802),o=n(61780),s=n(28286),l=n(22087);function u(e){let{children:t,elementsRef:n,labelsRef:u,onMapChange:f}=e,p=(0,a.R)(f),g=r.useRef(0),m=(0,i.B)(d).current,y=(0,i.B)(c).current,[b,v]=r.useState(0),x=r.useRef(b),k=(0,a.R)((e,t)=>{y.set(e,null!=t?t:null),x.current+=1,v(x.current)}),w=(0,a.R)(e=>{y.delete(e),x.current+=1,v(x.current)}),_=r.useMemo(()=>{let e=new Map;return Array.from(y.keys()).filter(e=>e.isConnected).sort(h).forEach((t,n)=>{var r;let i=null!==(r=y.get(t))&&void 0!==r?r:{};e.set(t,{...i,index:n})}),e},[y,b]);(0,o.W)(()=>{if("function"!=typeof MutationObserver||0===_.size)return;let e=new MutationObserver(e=>{let t=new Set,n=e=>t.has(e)?t.delete(e):t.add(e);e.forEach(e=>{e.removedNodes.forEach(n),e.addedNodes.forEach(n)}),0===t.size&&(x.current+=1,v(x.current))});return _.forEach((t,n)=>{n.parentElement&&e.observe(n.parentElement,{childList:!0})}),()=>{e.disconnect()}},[_]),(0,o.W)(()=>{x.current===b&&(n.current.length!==_.size&&(n.current.length=_.size),u&&u.current.length!==_.size&&(u.current.length=_.size),g.current=_.size),p(_)},[p,_,n,u,b]),(0,o.W)(()=>()=>{n.current=[]},[n]),(0,o.W)(()=>()=>{u&&(u.current=[])},[u]);let S=(0,a.R)(e=>(m.add(e),()=>{m.delete(e)}));(0,o.W)(()=>
1{m.forEach(e=>e(_))},[m,_]);let C=r.useMemo(()=>({register:k,unregister:w,subscribeMapChange:S,elementsRef:n,labelsRef:u,nextIndexRef:g}),[k,w,S,n,u,g]);return(0,l.jsx)(s.t.Provider,{value:C,children:t})}function c(){return new Map}function d(){return new Set}function h(e,t){let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}},28286:function(e,t,n){"use strict";n.d(t,{M:function(){return a},t:function(){return i}});var r=n(28113);let i=r.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function a(){return r.useContext(i)}},73216:function(e,t,n){"use strict";n.d(t,{R:function(){return l},p:function(){return s}});var r,i=n(28113),a=n(61780),o=n(28286);let s=((r={})[r.None=0]="None",r[r.GuessFromOrder=1]="GuessFromOrder",r);function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{label:t,metadata:n,textRef:r,indexGuessBehavior:l,index:u}=e,{register:c,unregister:d,subscribeMapChange:h,elementsRef:f,labelsRef:p,nextIndexRef:g}=(0,o.M)(),m=i.useRef(-1),[y,b]=i.useState(null!=u?u:l===s.GuessFromOrder?()=>{if(-1===m.current){let e=g.current;g.current+=1,m.current=e}return m.current}:-1),v=i.useRef(null),x=i.useCallback(e=>{if(v.current=e,-1!==y&&null!==e&&(f.current[y]=e,p)){var n,i;let a=void 0!==t;p.current[y]=a?t:null!==(i=null==r?void 0:null===(n=r.current)||void 0===n?void 0:n.textContent)&&void 0!==i?i:e.textContent}},[y,f,p,t,r]);return(0,a.W)(()=>{if(null!=u)return;let e=v.current;if(e)return c(e,n),()=>{d(e)}},[u,c,d,n]),(0,a.W)(()=>{if(null==u)return h(e=>{var t;let n=v.current?null===(t=e.get(v.current))||void 0===t?void 0:t.index:null;null!=n&&b(n)})},[u,h,b]),{ref:x,index:y}}},95251:function(e,t,n){"use strict";n.d(t,{Z:function(){return a},s:function(){return o}});var r=n(64104),i=n(28113);let a=i.createContext(void 0);function o(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=i.useContext(a);if(void 0===t&&!e)throw Error((0,r.Z)(16));return t}},64615:function(e,t,n){"use strict";n.d(t,{Bj:function(){return r},Ly:function(){return i},OP:function(){return o},Yj:function(){return a},lX:function(){return s}});let r={style:{transition:"none"}},i="data-base-ui-click-trigger",a={fallbackAxisSide:"none"},o={fallbackAxisSide:"end"},s={clipPath:"inset(50%)",position:"fixed",top:0,left:0}},86620:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var r=n(32083);function i(e,t,n,i){let a=!1,o=!1,s=i??r.Nu;return{reason:e,event:t??new Event("base-ui"),cancel(){a=!0},allowPropagation(){o=!0},get isCanceled(){return a},get isPropagationAllowed(){return o},trigger:n,...s}}},95634:function(e,t,n){"use strict";n.d(t,{d:function(){return o}});var r=n(28113);let i=r.createContext(void 0),a={disableStyleElements:!1};function o(){var e;return null!==(e=r.useContext(i))&&void 0!==e?e:a}},3711:function(e,t,n){"use strict";n.d(t,{g:function(){return a}});var r=n(28113);let i=r.createContext(void 0);function a(){var e;let t=r.useContext(i);return null!==(e=null==t?void 0:t.direction)&&void 0!==e?e:"ltr"}},9645:function(e,t,n){"use strict";var r;n.d(t,{Jx:function(){return s},hW:function(){return o},Wd:function(){return a},Wl:function(){return l}});let i=((r={}).disabled="data-disabled",r.valid="data-valid",r.invalid="data-invalid",r.touched="data-touched",r.dirty="data-dirty",r.filled="data-filled",r.focused="data-focused",r),a={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},o={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},s={disabled:!1,...o},l={valid:e=>null===e?null:e?{[i.valid]:""}:{[i.invalid]:""}}},613:function(e,t,n){"use strict";n.d(t,{H:function(){return o}});var r=n(28113),i=n(61780),a=n(72643);function o(e,t,n,o){let s=!(arguments.length>4)||void 0===arguments[4]||arguments[4],l=arguments.length>5?arguments[5]:void 0,{registerFieldControl:u}=(0,a.T5)(),c=r.useRef(null);c.current||(c.current=Symbol()),(0,i.W)(()=>{let r=c.current;if(r&&s)return u(r,{controlRef:e,getValue:o,id:t,name:l,value:n}),()=>{u(r,void 0)}},[e,s,o,t,l,u,n])}},72643:function(e,t,n){"use strict";n.d(t,{T5:function(){return u}});var r=n(64104),i=n(28113),a=n(32083),o=n(9645);let s={invalid:void 0,name:void 0,validityData:{state:o.Wd,errors:[],error:"",value:"",initialValue:null},setValidityData:a.dG,disabled:void 0,touched:o.hW.touched,setTouched:a.dG,dirty:o.hW.dirty,setDirty:a.dG,filled:o.hW.filled,setFilled:a.dG,focused:o.hW.focused,setFocused:a.dG,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:o.Jx,markedDirtyRef:{current:!1},registerFieldControl:a.dG,validation:{getValidationProps:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.Nu;return t},inputRef:{current:null},registerInput:a.dG,commit:async()=>{},change:a.dG}},l=i.createContext(s);function u(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=i.useContext(l);if(t.setValidityData===a.dG&&!e)throw Error((0,r.Z)(28));return t}},50371:function(e,t,n){"use strict";n.d(t,{G:function(){return o}});var r=n(28113),i=n(32083);let a=r.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:i.dG,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});function o(){return r.useContext(a)}},91475:function(e,t,n){"use strict";n.d(t,{Ul:function(){return a},Zg:function(){return r},cl:function(){return s},jN:function(){return i},my:function(){return o}});let r=(e,t)=>Object.is(e,t);function i(e,t,n){return null==e||null==t?Object.is(e,t):n(e,t)}function a(e,t,n){return!!e&&0!==e.length&&e.some(e=>void 0!==e&&i(t,e,n))}function o(e,t,n){return e&&0!==e.length?e.findIndex(e=>
1void 0!==e&&i(e,t,n)):-1}function s(e,t,n){return e.filter(e=>!i(t,e,n))}},8902:function(e,t,n){"use strict";n.d(t,{Q:function(){return o}});var r=n(28113),i=n(32083);let a=r.createContext({controlId:void 0,registerControlId:i.dG,labelId:void 0,setLabelId:i.dG,messageIds:[],setMessageIds:i.dG,getDescriptionProps:e=>e});function o(){return r.useContext(a)}},93394:function(e,t,n){"use strict";n.d(t,{J:function(){return d}});var r=n(28113),i=n(61780),a=n(14802),o=n(43116),s=n(67178),l=n(32083),u=n(91532),c=n(8902);function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{id:t,implicit:n=!1,controlRef:d}=e,{controlId:h,registerControlId:f}=(0,c.Q)(),p=(0,u.L)(t),g=n?h:void 0,m=(0,o.B)(()=>Symbol("labelable-control")),y=r.useRef(!1),b=r.useRef(null!=t),v=(0,a.R)(()=>{y.current&&f!==l.dG&&(y.current=!1,f(m.current,void 0))});return(0,i.W)(()=>{let e;if(f!==l.dG){if(n){let n=null==d?void 0:d.current;e=(0,s.kK)(n)&&null!=n.closest("label")?null!=t?t:null:null!=g?g:p}else if(null!=t)b.current=!0,e=t;else if(b.current)e=p;else{v();return}if(void 0===e){v();return}y.current=!0,f(m.current,e)}},[t,d,g,f,n,p,m,v]),r.useEffect(()=>v,[v]),null!=h?h:p}},58808:function(e,t,n){"use strict";n.d(t,{Fh:function(){return s},JU:function(){return p},Qr:function(){return b},Sk:function(){return u},YP:function(){return r},_j:function(){return i},bK:function(){return y},fT:function(){return l},nH:function(){return o},nn:function(){return m},rC:function(){return a},su:function(){return c},tv:function(){return d},wb:function(){return g},x_:function(){return f},xx:function(){return h}});let r="none",i="trigger-press",a="trigger-hover",o="trigger-focus",s="outside-press",l="item-press",u="close-press",c="focus-out",d="escape-key",h="list-navigation",f="cancel-open",p="disabled",g="missing",m="initial",y="imperative-action",b="window-resize"},78601:function(e,t,n){"use strict";n.d(t,{VU:function(){return s},zt:function(){return d},m3:function(){return c},lQ:function(){return l},Du:function(){return u}});var r=n(28113);function i(e){if(null==e)return"";if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}var a=n(22087);function o(e){return null!=e&&e.length>0&&"object"==typeof e[0]&&null!=e[0]&&"items"in e[0]}function s(e){if(!Array.isArray(e))return null!=e&&"null"in e;if(o(e)){for(let t of e)for(let e of t.items)if(e&&null==e.value&&null!=e.label)return!0;return!1}for(let t of e)if(t&&null==t.value&&null!=t.label)return!0;return!1}function l(e,t){if(t&&null!=e){var n;return null!==(n=t(e))&&void 0!==n?n:""}if(e&&"object"==typeof e){if("label"in e&&null!=e.label)return String(e.label);if("value"in e)return String(e.value)}return i(e)}function u(e,t){if(t&&null!=e){var n;return null!==(n=t(e))&&void 0!==n?n:""}return e&&"object"==typeof e&&"value"in e&&"label"in e?i(e.value):i(e)}function c(e,t,n){if(n&&null!=e)return n(e);if(e&&"object"==typeof e&&"label"in e&&null!=e.label)return e.label;if(t&&!Array.isArray(t)){var r;return null!==(r=t[e])&&void 0!==r?r:l(e,n)}if(Array.isArray(t)){let r=o(t)?t.flatMap(e=>e.items):t;if(null==e||"object"!=typeof e){let t=r.find(t=>t.value===e);return t&&null!=t.label?t.label:l(e,n)}if("value"in e){let t=r.find(t=>t&&t.value===e.value);if(t&&null!=t.label)return t.label}}return l(e,n)}function d(e,t,n){return e.reduce((e,i,o)=>(o>0&&e.push(", "),e.push((0,a.jsx)(r.Fragment,{children:c(i,t,n)},o)),e),[])}},95027:function(e,t,n){"use strict";n.d(t,{AW:function(){return i},U9:function(){return o},r3:function(){return a}});var r=n(67178);function i(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function a(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&(0,r.Zq)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function o(e){return"composedPath"in e?e.composedPath()[0]:e.target}},99974:function(e,t,n){"use strict";var r;n.d(t,{C:function(){return i},l:function(){return s}});let i=((r={}).startingStyle="data-starting-style",r.endingStyle="data-ending-style",r),a={[i.startingStyle]:""},o={[i.endingStyle]:""},s={transitionStatus:e=>"starting"===e?a:"ending"===e?o:null}},43166:function(e,t,n){"use strict";n.d(t,{U:function(){return u}});var r=n(28113),i=n(67178),a=n(14802),o=n(61780),s=n(49274),l=n(95251);function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{disabled:t=!1,focusableWhenDisabled:n,tabIndex:i=0,native:u=!0,composite:d}=e,h=r.useRef(null),f=(0,l.s)(!0),p=null!=d?d:void 0!==f,{props:g}=function(e){let{focusableWhenDisabled:t,disabled:n,composite:i=!1,tabIndex:a=0,isNativeButton:o}=e,s=i&&!1!==t,l=i&&!1===t;return{props:r.useMemo(()=>{let e={onKeyDown(e){n&&t&&"Tab"!==e.key&&e.preventDefault()}};
1return i||(e.tabIndex=a,o||!n||(e.tabIndex=t?a:-1)),(o&&(t||s)||!o&&n)&&(e["aria-disabled"]=n),o&&(!t||l)&&(e.disabled=n),e},[i,n,t,s,l,o,a])}}({focusableWhenDisabled:n,disabled:t,composite:p,tabIndex:i,isNativeButton:u}),m=r.useCallback(()=>{let e=h.current;c(e)&&p&&t&&void 0===g.disabled&&e.disabled&&(e.disabled=!1)},[t,g.disabled,p]);return(0,o.W)(m,[m]),{getButtonProps:r.useCallback(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{onClick:n,onMouseDown:r,onKeyUp:i,onKeyDown:a,onPointerDown:o,...l}=e;return(0,s.dG)({onClick(e){if(t){e.preventDefault();return}null==n||n(e)},onMouseDown(e){t||null==r||r(e)},onKeyDown(e){if(t||((0,s.QK)(e),null==a||a(e),e.baseUIHandlerPrevented))return;let r=e.target===e.currentTarget,i=e.currentTarget,o=c(i),l=!u&&!!((null==i?void 0:i.tagName)==="A"&&(null==i?void 0:i.href)),d=r&&(u?o:!l),h="Enter"===e.key,f=" "===e.key,g=i.getAttribute("role"),m=(null==g?void 0:g.startsWith("menuitem"))||"option"===g||"gridcell"===g;if(r&&p&&f){if(e.defaultPrevented&&m)return;e.preventDefault(),l||u&&o?(i.click(),e.preventBaseUIHandler()):d&&(null==n||n(e),e.preventBaseUIHandler());return}d&&(!u&&(f||h)&&e.preventDefault(),!u&&h&&(null==n||n(e)))},onKeyUp(e){if(!t){if((0,s.QK)(e),null==i||i(e),e.target===e.currentTarget&&u&&p&&c(e.currentTarget)&&" "===e.key){e.preventDefault();return}!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||u||p||" "!==e.key||null==n||n(e))}},onPointerDown(e){if(t){e.preventDefault();return}null==o||o(e)}},u?{type:"button"}:{role:"button"},g,l)},[t,g,p,u]),buttonRef:(0,a.R)(e=>{h.current=e,m()})}}function c(e){return(0,i.Re)(e)&&"BUTTON"===e.tagName}},43764:function(e,t,n){"use strict";n.d(t,{P:function(){return l}});var r=n(37421),i=n(82254),a=n(14802),o=n(82216),s=n(99974);function l(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],l=(0,i.p)();return(0,a.R)(function(i){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;l.cancel();let u=(0,o.q)(e);if(null==u)return;let c=()=>{r.flushSync(i)};if("function"!=typeof u.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function d(){Promise.all(u.getAnimations().map(e=>e.finished)).then(()=>{(null==a?void 0:a.aborted)||c()}).catch(()=>{if(n){(null==a?void 0:a.aborted)||c();return}let e=u.getAnimations();!(null==a?void 0:a.aborted)&&e.length>0&&e.some(e=>e.pending||"finished"!==e.playState)&&d()})}if(t){let e=s.C.startingStyle;if(!u.hasAttribute(e)){l.request(d);return}let t=new MutationObserver(()=>{u.hasAttribute(e)||(t.disconnect(),d())});t.observe(u,{attributes:!0,attributeFilter:[e]}),null==a||a.addEventListener("abort",()=>t.disconnect(),{once:!0});return}l.request(d)})}},91532:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(50778);function i(e){return(0,r.M)(e,"base-ui")}},20396:function(e,t,n){"use strict";n.d(t,{s:function(){return o}});var r=n(28113),i=n(14802),a=n(43764);function o(e){let{enabled:t=!0,open:n,ref:o,onComplete:s}=e,l=(0,i.R)(s),u=(0,a.P)(o,n,!1);r.useEffect(()=>{if(!t)return;let e=new AbortController;return u(l,e.signal),()=>{e.abort()}},[t,n,l,u])}},99952:function(e,t,n){"use strict";n.d(t,{E:function(){return h}});var r=n(64104),i=n(28113),a=n(50891),o=n(23674);function s(e){if(!i.isValidElement(e))return null;let t=e.props;return((0,o.c)(19)?t?.ref:e.ref)??null}var l=n(22922),u=n(32083),c=n(34113),d=n(49274);function h(e,t,n={}){let o=t.render,h=function(e,t={}){let{className:n,style:r,render:i}=e,{state:o=u.Nu,ref:h,props:f,stateAttributesMapping:p,enabled:g=!0}=t,m=g?"function"==typeof n?n(o):n:void 0,y=g?(0,c.C)(r,o):void 0,b=g?function(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);null!=e&&Object.assign(n,e);continue}!0===i?n[`data-${r.toLowerCase()}`]="":i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}(o,p):u.Nu,v=g&&f?Array.isArray(f)?(0,d.wu)(f):(0,d.dG)(void 0,f):void 0,x=g?(0,l.P)(b,v)??{}:u.Nu;return("undefined"!=typeof document&&(g?Array.isArray(h)?x.ref=(0,a.j)([x.ref,s(i),...h]):x.ref=(0,a.r)(x.ref,s(i),h):(0,a.r)(null,null)),g)?(void 0!==m&&(x.className=(0,d.Ez)(x.className,m)),void 0!==y&&(x.style=(0,l.P)(x.style,y)),x):u.Nu}(t,n);return!1===n.enabled?null:function(e,t,n,a){if(t){if("function"==typeof t)return t(n,a);let e=(0,d.dG)(n,t.props);e.ref=n.ref;let r=t;return r?.$$typeof===f&&(r=i.Children.toArray(t)[0]),i.cloneElement(r,e)}if(e&&"string"==typeof e)return"button"===e?(0,i.createElement)("button",{type:"button",...n,key:n.key}):"img"===e?(0,i.createElement)("img",{alt:"",...n,key:n.key}):i.createElement(e,n);throw Error((0,r.Z)(8))}(e,o,h,n.state??u.Nu)}let f=Symbol.for("react.lazy")},71467:function(e,t,n){"use strict";n.d(t,{h:function(){return o}});var r=n(28113),i=n(61780),a=n(82254);function o(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],[o,s]=r.useState(e&&t?"idle":void 0),[l,u]=r.useState(e);return e&&!l&&(u(!0),s("starting")),e||!l||"ending"===o||n||s("ending"),e||l||"ending"!==o||s(void 0),(0,i.W)(()=>
1{if(!e&&l&&"ending"!==o&&n){let e=a.$.request(()=>{s("ending")});return()=>{a.$.cancel(e)}}},[e,l,o,n]),(0,i.W)(()=>{if(!e||t)return;let n=a.$.request(()=>{s(void 0)});return()=>{a.$.cancel(n)}},[t,e]),(0,i.W)(()=>{if(!e||!t)return;e&&l&&"idle"!==o&&s("starting");let n=a.$.request(()=>{s("idle")});return()=>{a.$.cancel(n)}},[t,e,l,o]),{mounted:l,setMounted:u,transitionStatus:o}}},49274:function(e,t,n){"use strict";n.d(t,{Ez:function(){return p},QK:function(){return f},dG:function(){return a},wu:function(){return o}});var r=n(22922);let i={};function a(e,t,n,r,i){if(!n&&!r&&!i&&!e)return s(t);let a=s(e);return t&&(a=l(a,t)),n&&(a=l(a,n)),r&&(a=l(a,r)),i&&(a=l(a,i)),a}function o(e){if(0===e.length)return i;if(1===e.length)return s(e[0]);let t=s(e[0]);for(let n=1;n<e.length;n+=1)t=l(t,e[n]);return t}function s(e){return c(e)?{...d(e,i)}:function(e){let t={...e};for(let e in t){let n=t[e];u(e,n)&&(t[e]=h(n))}return t}(e)}function l(e,t){return c(t)?d(t,e):function(e,t){if(!t)return e;for(let n in t){let i=t[n];switch(n){case"style":e[n]=(0,r.P)(e.style,i);break;case"className":e[n]=p(e.className,i);break;default:u(n,i)?e[n]=function(e,t){return t?e?(...n)=>{let r=n[0];if(g(r)){f(r);let i=t(...n);return r.baseUIHandlerPrevented||e?.(...n),i}let i=t(...n);return e?.(...n),i}:h(t):e}(e[n],i):e[n]=i}}return e}(e,t)}function u(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return 111===n&&110===r&&i>=65&&i<=90&&("function"==typeof t||void 0===t)}function c(e){return"function"==typeof e}function d(e,t){return c(e)?e(t):e??i}function h(e){return e?(...t)=>{let n=t[0];return g(n)&&f(n),e(...t)}:e}function f(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function p(e,t){return t?e?t+" "+e:t:e}function g(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}},70559:function(e,t,n){"use strict";n.d(t,{D:function(){return s}});var r=n(28113);let i=r.createContext(void 0);var a=n(99952),o=n(22087);let s=r.forwardRef(function(e,t){let{render:n,className:s,style:l,...u}=e,[c,d]=r.useState(),h=r.useMemo(()=>({labelId:c,setLabelId:d}),[c,d]),f=(0,a.E)("div",e,{ref:t,props:[{role:"group","aria-labelledby":c},u]});return(0,o.jsx)(i.Provider,{value:h,children:f})})},20767:function(e,t,n){"use strict";n.d(t,{G:function(){return u}});var r=n(28113),i=n(18604),a=n(99952),o=n(58001),s=n(52443),l=n(97586);let u=r.forwardRef(function(e,t){let{render:n,className:r,style:u,...c}=e,{store:d}=(0,o.LK)(),h=(0,i.o)(d,l.w.open);return(0,a.E)("span",e,{state:{open:h},ref:t,props:[{"aria-hidden":!0,children:"▼"},c],stateAttributesMapping:s.wC})})},66866:function(e,t,n){"use strict";n.d(t,{o:function(){return c}});var r=n(28113),i=n(13965),a=n(71467),o=n(20396),s=n(99952),l=n(99974),u=n(22087);let c=r.forwardRef(function(e,t){var n;let r=null!==(n=e.keepMounted)&&void 0!==n&&n,{selected:a}=(0,i.s)();return r||a?(0,u.jsx)(d,{...e,ref:t}):null}),d=r.memo(r.forwardRef((e,t)=>{let{render:n,className:u,style:c,keepMounted:d,...h}=e,{selected:f}=(0,i.s)(),p=r.useRef(null),{transitionStatus:g,setMounted:m}=(0,a.h)(f),y=(0,s.E)("span",e,{ref:[t,p],state:{selected:f,transitionStatus:g},props:[{"aria-hidden":!0,children:"✔️"},h],stateAttributesMapping:l.l});return(0,o.s)({open:f,ref:p,onComplete(){f||m(!1)}}),y}))},25600:function(e,t,n){"use strict";n.d(t,{S:function(){return s}});var r=n(28113),i=n(58001),a=n(13965),o=n(99952);let s=r.memo(r.forwardRef(function(e,t){let{index:n,textRef:s,selectedByFocus:l,hasRegistered:u}=(0,a.s)(),{firstItemTextRef:c,selectedItemTextRef:d}=(0,i.LK)(),{render:h,className:f,style:p,...g}=e,m=r.useCallback(e=>{e&&(u&&0===n&&(c.current=e),u&&l&&(d.current=e))},[c,d,n,l,u]);return(0,o.E)("div",e,{ref:[m,t,s],props:g})}))},6097:function(e,t,n){"use strict";n.d(t,{Q:function(){return y}});var r=n(28113),i=n(61780),a=n(18604),o=n(58001),s=n(73216),l=n(99952),u=n(13965),c=n(97586),d=n(43166),h=n(86620),f=n(58808),p=n(91475),g=n(7739),m=n(22087);let y=r.memo(r.forwardRef(function(e,t){let{render:n,className:y,style:b,value:v=null,label:x,disabled:k=!1,nativeButton:w=!1,..._}=e,S=r.useRef(null),C=(0,s.R)({label:x,textRef:S,indexGuessBehavior:s.p.GuessFromOrder}),{store:M,itemProps:A,setOpen:E,setValue:T,selectionRef:R,typingRef:N,valuesRef:P,multiple:L,selectedItemTextRef:I,disabled:O,readOnly:$}=(0,o.LK)(),j=(0,a.o)(M,c.w.isActive,C.index),D=(0,a.o)(M,c.w.open),F=(0,a.o)(M,c.w.isSelected,v),B=(0,a.o)(M,c.w.isSelectedByFocus,C.index),z=(0,a.o)(M,c.w.isItemEqualToValue),U=C.index,W=-1!==U,H=r.useRef(null);(0,i.W)(()=>
1{if(!W)return;let e=P.current;return e[U]=v,()=>{delete e[U]}},[W,U,v,P]),(0,i.W)(()=>{if(!W)return;let e=M.state.value,t=e;L&&Array.isArray(e)&&(t=e.length>0?e[e.length-1]:void 0),void 0!==t&&(0,p.jN)(v,t,z)&&(M.set("selectedIndex",U),S.current&&(I.current=S.current))},[W,U,L,z,M,v,I]);let q=r.useRef(null),G=r.useRef("mouse"),V=r.useRef(!1),{getButtonProps:Z,buttonRef:Y}=(0,d.U)({disabled:k,focusableWhenDisabled:!0,native:w,composite:!0});function X(){R.current.dragY=0}let Q=(0,l.E)("div",e,{ref:[Y,t,C.ref,H],state:{disabled:k,selected:F,highlighted:j},props:[A,{role:"option","aria-selected":F,tabIndex:D&&j?0:-1,onKeyDown(e){q.current=e.key,M.set("activeIndex",U)," "===e.key&&N.current&&e.preventDefault()},onClick(e){let t="click"===e.type&&"touch"!==G.current,n=e.nativeEvent.pointerType,r=t&&(0,g.Zj)(e.nativeEvent)&&(void 0!==n||j),i=t&&!r&&!V.current;V.current=!1,"keydown"===e.type&&null===q.current||k||"keydown"===e.type&&" "===q.current&&N.current||i||(q.current=null,function(e){if(O||$)return;let t=M.state.value;if(L){let n=Array.isArray(t)?t:[];T(F?(0,p.cl)(n,v,z):[...n,v],(0,h.e)(f.fT,e))}else T(v,(0,h.e)(f.fT,e)),E(!1,(0,h.e)(f.fT,e))}(e.nativeEvent))},onPointerEnter(e){G.current=e.pointerType},onPointerMove(e){if("mouse"===e.pointerType&&1===e.buttons){let t=R.current;t.dragY+=e.movementY,t.dragY**2>=64&&(t.allowUnselectedMouseUp=!0)}},onPointerDown(e){G.current=e.pointerType,V.current=!0,X()},onMouseUp(){var e;if(X(),k||"touch"===G.current||V.current)return;let t=!R.current.allowSelectedMouseUp&&F,n=!R.current.allowUnselectedMouseUp&&!F;t||n||(V.current=!0,null===(e=H.current)||void 0===e||e.click(),V.current=!1)}},_,Z]}),K=r.useMemo(()=>({selected:F,index:U,textRef:S,selectedByFocus:B,hasRegistered:W}),[F,U,S,B,W]);return(0,m.jsx)(u.k.Provider,{value:K,children:Q})}))},13965:function(e,t,n){"use strict";n.d(t,{k:function(){return a},s:function(){return o}});var r=n(64104),i=n(28113);let a=i.createContext(void 0);function o(){let e=i.useContext(a);if(!e)throw Error((0,r.Z)(57));return e}},1241:function(e,t,n){"use strict";n.d(t,{E:function(){return h}});var r=n(28113),i=n(14802),a=n(18604),o=n(58001),s=n(26648),l=n(99952),u=n(11687),c=n(64384),d=n(97586);let h=r.forwardRef(function(e,t){let{render:n,className:r,style:h,...f}=e,{store:p,scrollHandlerRef:g}=(0,o.LK)(),{alignItemWithTriggerActive:m}=(0,s.Z)(),y=(0,a.o)(p,d.w.hasScrollArrows),b=(0,a.o)(p,d.w.openMethod),v=(0,a.o)(p,d.w.multiple),x=(0,a.o)(p,d.w.id),k={id:"".concat(x,"-list"),role:"listbox","aria-multiselectable":v||void 0,onScroll(e){var t;null===(t=g.current)||void 0===t||t.call(g,e.currentTarget)},...m&&{style:c.E},className:y&&"touch"!==b?u.d.className:void 0},w=(0,i.R)(e=>{p.set("listElement",e)});return(0,l.E)("div",e,{ref:[t,w],props:[k,f]})})},12056:function(e,t,n){"use strict";n.d(t,{h:function(){return $}});var r=n(28113),i=n(99752),a=n(22905),o=n(53e3),s=n(14802),l=n(84321),u=n(67178),c=n(61780),d=n(18604),h=n(82254),f=n(94037),p=n(319),g=n(58001),m=n(52443),y=n(26648),b=n(11687),v=n(99974),x=n(20396),k=n(99952),w=n(97586),_=n(64384),S=n(86620),C=n(58808),M=n(64104);let A=r.createContext(void 0);var E=n(73705),T=n(84591),R=n(6184),N=n(79811),P=n(95634),L=n(3711),I=n(22087);let O={...m.SD,...v.l},$=r.forwardRef(function(e,t){let{render:n,className:i,style:p,finalFocus:m,...v}=e,{store:$,popupRef:U,onOpenChangeComplete:W,setOpen:H,valueRef:q,firstItemTextRef:G,selectedItemTextRef:V,multiple:Z,handleScrollArrowVisibility:Y,scrollHandlerRef:X,listRef:Q,highlightItemOnHover:K}=(0,g.LK)(),{side:J,align:ee,alignItemWithTriggerActive:et,isPositioned:en,setControlledAlignItemWithTrigger:er}=(0,y.Z)(),ei=null!=function(e){let t=r.useContext(A);if(void 0===t&&!e)throw Error((0,M.Z)(69));return t}(!0),ea=(0,g.mm)(),eo=(0,L.g)(),{nonce:es,disableStyleElements:el}=(0,P.d)(),eu=(0,d.o)($,w.w.id),ec=(0,d.o)($,w.w.open),ed=(0,d.o)($,w.w.openMethod),eh=(0,d.o)($,w.w.mounted),ef=(0,d.o)($,w.w.popupProps),ep=(0,d.o)($,w.w.transitionStatus),eg=(0,d.o)($,w.w.triggerElement),em=(0,d.o)($,w.w.positionerElement),ey=(0,d.o)($,w.w.listElement),eb=r.useRef(!1),ev=r.useRef(!1),ex=r.useRef({}),ek=(0,h.p)(),ew=(0,s.R)(e=>{if(!em||!U.current||!ev.current)return;if(eb.current||!et){Y();return}let t="0px"===em.style.top,n="0px"===em.style.bottom;if(!t&&!n){Y();return}let r=F(em),i=em.getBoundingClientRect().height/r.y,a=(0,l.P)(em),o=(0,u.Jj)(em),s=o.getComputedStyle(em),c=parseFloat(s.marginTop),d=parseFloat(s.marginBottom),h=j(o.getComputedStyle(U.current)),f=Math.min(a.documentElement.clientHeight-c-d,h),p=e.scrollTop,g=D(e),m=0,y=null,b=!1,v=!1,x=e=>{em.style.height="".concat(e,"px")},k=t?g-p:p,w=Math.min(i+k,f);if(m=w,k<=N.I2){((t,n)=>{let r=(0,R.u)(t,0,f-i);r>0&&x(i+r),e.scrollTop=n,f-(i+r)<=N.I2&&(eb.current=!0),Y()})(k,t?g:0);return}if(f-w>N.I2)t?v=!0:y=0;else if(b=!0,n&&p<g){let e=i+k-f;y=p-(k-e)}if(0!==(m=Math.ceil(m))&&x(m),v||null!=y){let t=D(e),n=v?t:(0,R.u)(y,0,t);Math.abs(e.scrollTop-n)>N.I2&&(e.scrollTop=n)}(b||m>=f-N.I2)&&(eb.current=!0),Y()});r.useImperativeHandle(X,()=>
1ew,[ew]),(0,x.s)({open:ec,ref:U,onComplete(){ec&&(null==W||W(!0))}}),(0,c.W)(()=>{em&&U.current&&!Object.keys(ex.current).length&&(ex.current={top:em.style.top||"0",left:em.style.left||"0",right:em.style.right,height:em.style.height,bottom:em.style.bottom,minHeight:em.style.minHeight,maxHeight:em.style.maxHeight,marginTop:em.style.marginTop,marginBottom:em.style.marginBottom})},[U,em]),(0,c.W)(()=>{ec||et||(ev.current=!1,eb.current=!1,(0,_.f)(em,ex.current))},[ec,et,em,U]),(0,c.W)(()=>{let e=U.current;if(!ec||!eg||!em||!e||et&&!en||"ending"===$.state.transitionStatus)return;if(!et){ev.current=!0,ek.request(Y),e.style.removeProperty("--transform-origin");return}let t=function(e){let{style:t}=e,n={};for(let[e,r]of z)n[e]=t.getPropertyValue(e),t.setProperty(e,r,"important");return()=>{for(let[e]of z){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}(e);e.style.removeProperty("--transform-origin");try{var n,r,i;let t;let a=V.current;(null==a?void 0:a.isConnected)||(a=!w.w.hasSelectedValue($.state)&&(null===(r=G.current)||void 0===r?void 0:r.isConnected)?G.current:null);let s=q.current,c=(0,u.Jj)(em),d=c.getComputedStyle(em),h=c.getComputedStyle(e),f=(0,l.P)(eg),p=F(eg),g=B(eg.getBoundingClientRect(),p),m=B(em.getBoundingClientRect(),p),y=g.height,b=ey||e,v=b.scrollHeight,x=parseFloat(h.borderBottomWidth),k=parseFloat(d.marginTop)||10,S=parseFloat(d.marginBottom)||10,C=parseFloat(d.minHeight)||100,M=j(h),A=f.documentElement.clientHeight-k-S,E=f.documentElement.clientWidth,T=A-g.bottom+y,P="rtl"===eo?g.right-m.width:g.left,L=0;if(a&&s){let e=B(s.getBoundingClientRect(),p);t=B(a.getBoundingClientRect(),p),P=m.left+("rtl"===eo?e.right-t.right:e.left-t.left);let n=e.top-g.top+e.height/2;L=t.top-m.top+t.height/2-n}let I=T+L+S+x,O=Math.min(A,I),z=A-k-S,U=I-O;em.style.left="".concat((0,R.u)(P,5,E-5-m.width),"px"),em.style.height="".concat(O,"px"),em.style.maxHeight="none",em.style.marginTop="".concat(k,"px"),em.style.marginBottom="".concat(S,"px"),e.style.height="100%";let W=D(b),H=U>=W-N.I2;H&&(O=Math.min(A,m.height)-(U-W));let Z=g.top<20||g.bottom>A-20||Math.ceil(O)+N.I2<Math.min(v,C),X=(null!==(i=null===(n=c.visualViewport)||void 0===n?void 0:n.scale)&&void 0!==i?i:1)!==1&&o.a0;if(Z||X){ev.current=!0,(0,_.f)(em,ex.current),er(!1);return}let J=Math.max(C,O);if(H?(em.style.top=m.height>=z?"0":"".concat(Math.max(0,A-I),"px"),em.style.height="".concat(O,"px"),b.scrollTop=D(b)):(em.style.bottom="0",b.scrollTop=U),t){let n=m.top,r=m.height,i=t.top+t.height/2,a=(0,R.u)(r>0?(i-n)/r*100:50,0,100);e.style.setProperty("--transform-origin","50% ".concat(a,"%"))}(J===A||O>=M)&&(eb.current=!0),Y(),K&&null===$.state.selectedIndex&&null===$.state.activeIndex&&null!=Q.current[0]&&$.set("activeIndex",0),ev.current=!0}finally{t()}},[$,ec,em,eg,q,G,V,U,Y,et,er,ek,ey,Q,K,eo,en]),r.useEffect(()=>{if(!et||!em||!ec)return;let e=(0,u.Jj)(em);return(0,a.O)(e,"resize",function(e){H(!1,(0,S.e)(C.Qr,e))})},[H,et,em,ec]);let e_={...ey?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":Z||void 0,id:"".concat(eu,"-list")},onKeyDown(e){ei&&E.dT.has(e.key)&&e.stopPropagation()},onScroll(e){ey||ew(e.currentTarget)},...et&&{style:ey?{height:"100%"}:_.E}},eS=(0,k.E)("div",e,{ref:[t,U],state:{open:ec,transitionStatus:ep,side:J,align:ee},stateAttributesMapping:O,props:[ef,e_,(0,T.g)(ep),{className:!ey&&et?b.d.className:void 0},v]});return(0,I.jsxs)(r.Fragment,{children:[!el&&b.d.getElement(es),(0,I.jsx)(f.w,{context:ea,modal:!1,disabled:!eh,openInteractionType:ed,returnFocus:m,restoreFocus:!0,children:eS})]})});function j(e){let t=e.maxHeight||"";return t.endsWith("px")&&parseFloat(t)||1/0}function D(e){return(0,N.Y0)(e.scrollHeight,e.clientHeight)}function F(e){return p.Jv.getScale(e)}function B(e,t){return(0,i.JB)({x:e.x/t.x,y:e.y/t.y,width:e.width/t.x,height:e.height/t.y})}let z=[["transform","none"],["scale","1"],["translate","0 0"]]},64384:function(e,t,n){"use strict";function r(e,t){e&&Object.assign(e.style,t)}n.d(t,{E:function(){return i},f:function(){return r}});let i={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"}},55054:function(e,t,n){"use strict";n.d(t,{u:function(){return c}});var r=n(28113),i=n(18604),a=n(84328);let o=r.createContext(void 0);var s=n(58001),l=n(97586),u=n(22087);let c=r.forwardRef(function(e,t){let{store:n}=(0,s.LK)(),r=(0,i.o)(n,l.w.mounted),c=(0,i.o)(n,l.w.forceMount);return r||c?(0,u.jsx)(o.Provider,{value:!0,children:(0,u.jsx)(a.ll,{ref:t,...e})}):null})},29614:function(e,t,n){"use strict";n.d(t,{$:function(){return S}});var r=n(28113),i=n(61254),a=n(61780),o=n(14802),s=n(18604),l=n(58001),u=n(28739),c=n(50579),d=n(26648),h=n(37538),f=n(64615),p=n(64384),g=n(97586),m=n(86620),y=n(58808),b=n(91475
1),v=n(25376),x=n(84321),k=n(51713),w=n(22087);let _={position:"fixed"},S=r.forwardRef(function(e,t){let{anchor:n,positionMethod:S="absolute",className:C,render:M,side:A="bottom",align:E="center",sideOffset:T=0,alignOffset:R=0,collisionBoundary:N="clipping-ancestors",collisionPadding:P,arrowPadding:L=5,sticky:I=!1,disableAnchorTracking:O,alignItemWithTrigger:$=!0,collisionAvoidance:j=f.Yj,style:D,...F}=e,{store:B,listRef:z,labelsRef:U,alignItemWithTriggerActiveRef:W,selectedItemTextRef:H,valuesRef:q,initialValueRef:G,popupRef:V,setValue:Z}=(0,l.LK)(),Y=(0,l.mm)(),X=(0,s.o)(B,g.w.open),Q=(0,s.o)(B,g.w.mounted),K=(0,s.o)(B,g.w.modal),J=(0,s.o)(B,g.w.value),ee=(0,s.o)(B,g.w.openMethod),et=(0,s.o)(B,g.w.positionerElement),en=(0,s.o)(B,g.w.triggerElement),er=(0,s.o)(B,g.w.isItemEqualToValue),ei=(0,s.o)(B,g.w.transitionStatus),ea=r.useRef(null),eo=r.useRef(null),[es,el]=r.useState($),eu=Q&&es&&"touch"!==ee;Q||es===$||el($),(0,a.W)(()=>{!Q&&(g.w.scrollUpArrowVisible(B.state)&&B.set("scrollUpArrowVisible",!1),g.w.scrollDownArrowVisible(B.state)&&B.set("scrollDownArrowVisible",!1))},[B,Q]),r.useImperativeHandle(W,()=>eu),function(e,t,n,i){let[o,s]=r.useState(!1);(0,a.W)(()=>{if(!e||!t||null==n){s(!1);return}let r=(0,x.P)(n).documentElement.clientWidth,i=n.offsetWidth;s(r>0&&i>0&&i>=r-20)},[e,t,n]),(0,k.P)(e&&(!t||o),i)}((eu||K)&&X,"touch"===ee,et,en);let ec=(0,c.Z)({anchor:n,floatingRootContext:Y,positionMethod:S,mounted:Q,side:A,sideOffset:T,align:E,alignOffset:R,arrowPadding:L,collisionBoundary:N,collisionPadding:P,sticky:I,disableAnchorTracking:null!=O?O:eu,collisionAvoidance:j,keepMounted:!0}),ed=eu?"none":ec.side,eh=eu?_:ec.positionerStyles,ef={open:X,side:ed,align:ec.align,anchorHidden:ec.anchorHidden};(0,a.W)(()=>{B.set("popupSide",ec.side)},[B,ec.side]);let ep=(0,o.R)(e=>{B.set("positionerElement",e)}),eg=(0,v.G)(e,ef,{styles:eh,transitionStatus:ei,props:F,refs:[t,ep],hidden:!Q,inert:!X}),em=r.useRef(0),ey=(0,o.R)(e=>{if(0===e.size&&0===em.current||0===q.current.length)return;let t=em.current;if(em.current=e.size,e.size===t)return;let n=(0,m.e)(y.YP);if(0!==t&&!B.state.multiple&&null!==J&&-1===(0,b.my)(q.current,J,er)){let e=G.current,t=null!=e&&-1!==(0,b.my)(q.current,e,er)?e:null;Z(t,n),null===t&&(B.set("selectedIndex",null),H.current=null)}if(0!==t&&B.state.multiple&&Array.isArray(J)){let e=e=>-1!==(0,b.my)(q.current,e,er),t=J.filter(t=>e(t));(t.length!==J.length||t.some(e=>!(0,b.Ul)(J,e,er)))&&(Z(t,n),0===t.length&&(B.set("selectedIndex",null),H.current=null))}if(X&&eu){B.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:""};(0,p.f)(et,e),(0,p.f)(V.current,e)}}),eb=r.useMemo(()=>({...ec,side:ed,alignItemWithTriggerActive:eu,setControlledAlignItemWithTrigger:el,scrollUpArrowRef:ea,scrollDownArrowRef:eo}),[ec,ed,eu,el]);return(0,w.jsx)(u.h,{elementsRef:z,labelsRef:U,onMapChange:ey,children:(0,w.jsxs)(d.C.Provider,{value:eb,children:[Q&&K&&(0,w.jsx)(h.C,{inert:(0,i.P)(!X),cutout:en}),eg]})})})},26648:function(e,t,n){"use strict";n.d(t,{C:function(){return a},Z:function(){return o}});var r=n(64104),i=n(28113);let a=i.createContext(void 0);function o(){let e=i.useContext(a);if(!e)throw Error((0,r.Z)(59));return e}},22255:function(e,t,n){"use strict";n.d(t,{f:function(){return X}});var r=n(28113),i=n(37901),a=n(50891),o=n(43116),s=n(15763),l=n(93645),u=n(23857),c=n(61780),d=n(14802),h=n(94952),f=n(65253),p=n(18604),g=n(32083),m=n(57572),y=n(82254),b=n(94573),v=n(95027),x=n(53819),k=n(7739),w=n(86620),_=n(58808),S=n(55833),C=n(84321),M=n(67178),A=n(55538),E=n(45680),T=n(57162),R=n(83131);function N(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function P(e,t){return N(t,e===T.NF||e===T.qN,e===T.pe||e===T.Ft)}function L(e,t,n){return N(t,e===T.qN,n?e===T.pe:e===T.Ft)||"Enter"===e||" "===e||""===e}var I=n(58001),O=n(72643),$=n(613),j=n(93394),D=n(71467),F=n(97586),B=n(20396),z=n(50371),U=n(78601),W=n(91475);function H(e,t){let n=r.useRef(e),i=(0,d.R)(t);(0,c.W)(()=>{n.current!==e&&i(n.current)},[e,i]),(0,c.W)(()=>{n.current=e},[e])}var q=n(43883),G=n(79811),V=n(74149),Z=n(49274),Y=n(22087);function X(e){var t,n;let{id:X,value:Q,defaultValue:K=null,onValueChange:J,open:ee,defaultOpen:et=!1,onOpenChange:en,name:er,form:ei,autoComplete:ea,disabled:eo=!1,readOnly:es=!1,required:el=!1,modal:eu=!0,actionsRef:ec,inputRef:ed,onOpenChangeComplete:eh,items:ef,multiple:ep=!1,itemToStringLabel:eg,itemToStringValue:em,isItemEqualToValue:ey=W.Zg,highlightItemOnHover:eb=!0,children:ev}=e,{clearErrors:ex}=(0,z.G)(),{setDirty:ek,setTouched:ew,setFocused:e_,validityData:eS,setFilled:eC,name:eM,disabled:eA,validation:eE,validationMode:eT}=(0,O.T5)(),eR=(0,j.J)({id:X}),eN=eA||eo,eP=null!=eM?eM:er,[eL,eI]=(0,u.u)({controlled:Q,default:ep?null!=K?K:g.LZ:K,name:"Select",state:"value"}),[eO,e$]=(0,u.u)({controlled:ee,default:et,name:"Select",state:"open"}),ej=r.useRef([]),eD=r.useRef([]),eF=r.useRef(null),eB=r.useRef(null),ez=r.useRef(0),eU=r.useRef(null),eW=r.useRef([]),eH=r.useRef(!1),eq=r.useRef(null),eG=r.useRef(null),eV=r.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),eZ=r.useRef(!1),{mounted:eY,setMounted:eX,transitionStatus:eQ}=(0,D.h)(eO),{openMethod:eK,triggerProps:eJ}=function(e){let[t,n]=r.useState(null),i=function(e,t){let{onClick:n,onPointerDown:i}=function(e){let t=r.useRef(""),n=r.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:r.useCallback(n=>{if(0===n.detail){e(n,"keyboard");return}"pointerType"in n?e(n,n.pointerType):e(n,t.current),t.current=""},[e]),onPointerDown:n}}((0,d.R)((n,r)=>{("function"==typeof e?e():e)||t(r||(q.vF?"touch":""))}));return r.useMemo(()=>({onClick:n,onPointerDown:i}),[n,i])}
1(e,n);return H(e,t=>{t&&!e&&n(null)}),r.useMemo(()=>({openMethod:t,triggerProps:i}),[t,i])}(eO),e0=(0,o.B)(()=>new f.y({id:eR,labelId:void 0,modal:eu,multiple:ep,itemToStringLabel:eg,itemToStringValue:em,isItemEqualToValue:ey,value:eL,open:eO,mounted:eY,transitionStatus:eQ,items:ef,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,e1=(0,p.o)(e0,F.w.activeIndex),e2=(0,p.o)(e0,F.w.selectedIndex),e5=(0,p.o)(e0,F.w.triggerElement),e3=(0,p.o)(e0,F.w.positionerElement),e6=function(e){let[t,n]=r.useState({current:e,previous:null});return e!==t.current&&n({current:e,previous:t.current}),t.previous}(eK),e8=null!==(t=null!=eK?eK:e6)&&void 0!==t?t:null,e9=r.useMemo(()=>ep?"":(0,U.Du)(eL,em),[ep,eL,em]),e7=r.useMemo(()=>ep&&Array.isArray(eL)?eL.map(e=>(0,U.Du)(e,em)):(0,U.Du)(eL,em),[ep,eL,em]),e4=(0,h.B)(e0.state.triggerElement),te=(0,d.R)(()=>e7);(0,$.H)(e4,eR,eL,te,!eN,er);let tt=r.useRef(eL),tn=ep?Array.isArray(eL)&&eL.length>0:null!=eL&&""!==(0,U.Du)(eL,em);(0,c.W)(()=>{eL!==tt.current&&e0.set("forceMount",!0)},[e0,eL]),(0,c.W)(()=>{eC(tn)},[tn,eC]),(0,c.W)(function(){let e;let t=eW.current;if(ep){let n=Array.isArray(eL)?eL:[];if(0===n.length)e=null;else{let r=n[n.length-1],i=(0,W.my)(t,r,ey);e=-1===i?null:i}}else{let n=(0,W.my)(t,eL,ey);e=-1===n?null:n}null===e&&(eG.current=null),eO||e0.set("selectedIndex",e)},[tn,ep,eO,eL,eW,ey,e0,eG]),H(eL,()=>{ex(eP),ek(function(e){let t=eS.initialValue;return Array.isArray(e)&&Array.isArray(t)?!function(e,t,n=(e,t)=>e===t){return e.length===t.length&&e.every((e,r)=>n(e,t[r]))}(e,t,(e,t)=>(0,W.jN)(e,t,ey)):e!==t}(eL)),eE.change(eL)});let tr=(0,d.R)((e,t)=>{null==en||en(e,t),!t.isCanceled&&(e$(e),e||t.reason!==_.su&&t.reason!==_.Fh||(ew(!0),e_(!1),"onBlur"===eT&&eE.commit(eL)))}),ti=(0,d.R)(()=>{eX(!1),e0.update({activeIndex:null,openMethod:null}),null==eh||eh(!1)});(0,B.s)({enabled:!ec,open:eO,ref:eF,onComplete(){eO||ti()}}),r.useImperativeHandle(ec,()=>({unmount:ti}),[ti]);let ta=(0,d.R)((e,t)=>{null==J||J(e,t),t.isCanceled||eI(e)}),to=(0,d.R)(()=>{let e=e0.state.listElement||eF.current;if(!e)return;let t=(0,G.Y0)(e.scrollHeight,e.clientHeight),n=(0,G.C3)(e.scrollTop,t),r=n>0,i=n<t;e0.state.scrollUpArrowVisible!==r&&e0.set("scrollUpArrowVisible",r),e0.state.scrollDownArrowVisible!==i&&e0.set("scrollDownArrowVisible",i)}),ts=(0,m.$)({open:eO,onOpenChange:tr,elements:{reference:e5,floating:e3}}),tl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{enabled:n=!0,event:i="click",toggle:a=!0,ignoreMouse:o=!1,stickIfOpen:s=!0,touchOpenDelay:l=0,reason:u=_._j}=t,c="rootStore"in e?e.rootStore:e,d=c.context.dataRef,h=r.useRef(void 0),f=(0,y.p)(),p=(0,b.K)(),m=r.useMemo(()=>{function e(e,t,n,r){let i=(0,w.e)(u,t,n);e&&"touch"===r&&l>0?p.start(l,()=>{c.setOpen(!0,i)}):c.setOpen(e,i)}function t(e,t,n){let r=d.current.openEvent,i=c.select("domReferenceElement")!==t;return!!e&&!!i||!e||!a||!!r&&!!s&&!n(r.type)}return{onPointerDown(e){h.current=e.pointerType},onMouseDown(n){let r=h.current,a=n.nativeEvent,s=c.select("open");if(0!==n.button||"click"===i||(0,k.r)(r,!0)&&o)return;let l=t(s,n.currentTarget,e=>"click"===e||"mousedown"===e),u=(0,v.U9)(a);if((0,x.j7)(u)){e(l,a,u,r);return}let d=n.currentTarget;f.request(()=>{e(l,a,d,r)})},onClick(n){if("mousedown-only"===i)return;let r=h.current;if("mousedown"===i&&r){h.current=void 0;return}(0,k.r)(r,!0)&&o||e(t(c.select("open"),n.currentTarget,e=>"click"===e||"mousedown"===e||"keydown"===e||"keyup"===e),n.nativeEvent,n.currentTarget,r)},onKeyDown(){h.current=void 0}}},[d,i,o,u,c,s,a,f,p,l]);return r.useMemo(()=>n?{reference:m}:g.Nu,[n,m])}(ts,{enabled:!es&&!eN,event:"mousedown"}),tu=(0,S.b)(ts),tc=function(e,t){let{listRef:n,activeIndex:i,onNavigate:a=()=>{},enabled:o=!0,selectedIndex:s=null,allowEscape:l=!1,loopFocus:u=!1,nested:f=!1,rtl:p=!1,virtual:g=!1,focusItemOnOpen:m="auto",focusItemOnHover:b=!0,openOnArrowKeyDown:S=!0,disabledIndices:I,orientation:O="vertical",parentOrientation:$,i
1d:j,resetOnPointerLeave:D=!0,externalTree:F,grid:B}=t,z=null!=B,U="rootStore"in e?e.rootStore:e,W=U.useState("open"),H=U.useState("floatingElement"),q=U.useState("domReferenceElement"),G=U.context.dataRef,V=(0,x.zd)(H),Z=(0,x.Ie)(q),Y=(0,h.B)(V),X=(0,A.Zm)(),Q=(0,A.ay)(F),K=r.useRef(m),J=r.useRef(null!=s?s:-1),ee=r.useRef(null),et=r.useRef(!0),en=(0,d.R)(e=>{a(-1===J.current?null:J.current,e)}),er=r.useRef(!!H),ei=r.useRef(W),ea=r.useRef(!1),eo=r.useRef(!1),es=r.useRef(null),el=(0,h.B)(I),eu=(0,h.B)(W),ec=(0,h.B)(s),ed=(0,h.B)(D),eh=(0,y.p)(),ef=(0,y.p)(),ep=(0,d.R)(()=>{function e(e){g?null==Q||Q.events.emit("virtualfocus",e):es.current=(0,R.g)(e,{sync:ea.current,preventScroll:!0})}let t=n.current[J.current],r=eo.current;t&&e(t),(ea.current?e=>e():e=>eh.request(e))(()=>{let i=n.current[J.current]||t;if(i&&(t||e(i),ex&&(r||!et.current))){var a;null===(a=i.scrollIntoView)||void 0===a||a.call(i,{block:"nearest",inline:"nearest"})}})});(0,c.W)(()=>{G.current.orientation=O},[G,O]),(0,c.W)(()=>{o&&(W&&H?(J.current=null!=s?s:-1,K.current&&null!=s&&(eo.current=!0,en())):er.current&&(J.current=-1,en()))},[o,W,H,s,en]),(0,c.W)(()=>{if(o){if(!W){ea.current=!1;return}if(H){if(null==i){if(ea.current=!1,null!=ec.current)return;if(er.current&&(J.current=-1,ep()),(!ei.current||!er.current)&&K.current&&(null!=ee.current||!0===K.current&&null==ee.current)){let e=0,t=()=>{null==n.current[0]?(e<2&&(e?e=>ef.request(e):queueMicrotask)(t),e+=1):(J.current=null==ee.current||L(ee.current,O,p)||f?(0,E.h$)(n):(0,E.zc)(n),ee.current=null,en())};t()}}else(0,E.VP)(n.current,i)||(J.current=i,ep(),eo.current=!1)}}},[o,W,H,i,ec,f,n,O,p,en,ep,ef]),(0,c.W)(()=>{var e,t,n;if(!o||H||!Q||g||!er.current)return;let r=Q.nodesRef.current,i=null===(t=r.find(e=>e.id===X))||void 0===t?void 0:null===(e=t.context)||void 0===e?void 0:e.elements.floating,a=(0,v.AW)((0,C.P)(null!==(n=null!=q?q:i)&&void 0!==n?n:null)),s=r.some(e=>e.context&&(0,v.r3)(e.context.elements.floating,a));i&&!s&&et.current&&i.focus({preventScroll:!0})},[o,H,q,Q,X,g]),(0,c.W)(()=>{ei.current=W,er.current=!!H}),(0,c.W)(()=>{W||(ee.current=null,K.current=m)},[W,m]);let eg=null!=i,em=(0,d.R)(e=>{if(!eu.current)return;let t=n.current.indexOf(e.currentTarget);-1!==t&&(J.current!==t||i!==t)&&(J.current=t,en(e))}),ey=(0,d.R)(()=>{var e,t,n;return null!=$?$:null==Q?void 0:null===(n=Q.nodesRef.current.find(e=>e.id===X))||void 0===n?void 0:null===(t=n.context)||void 0===t?void 0:null===(e=t.dataRef)||void 0===e?void 0:e.current.orientation}),eb=(0,d.R)(()=>(0,E.h$)(n,el.current)),ev=(0,d.R)(e=>{if(et.current=!1,ea.current=!0,229===e.which||!eu.current&&e.currentTarget===Y.current)return;if(f&&function(e,t,n,r){let i=n?e===T.Ft:e===T.pe,a=e===T.NF;return"both"===t||"horizontal"===t&&r?"Escape"===e:N(t,i,a)}(e.key,O,p,z)){P(e.key,ey())||(0,k.p7)(e),U.setOpen(!1,(0,w.e)(_.xx,e.nativeEvent)),(0,M.Re)(q)&&(g?null==Q||Q.events.emit("virtualfocus",q):q.focus());return}let t=J.current,r=(0,E.h$)(n,I),i=(0,E.zc)(n,I);if(Z||("Home"===e.key&&((0,k.p7)(e),J.current=r,en(e)),"End"===e.key&&((0,k.p7)(e),J.current=i,en(e))),null!=B){let t=B(e,J.current,n,O,u,p,I,r,i);if(null!=t&&(J.current=t,en(e)),"both"===O)return}if(P(e.key,O)){if((0,k.p7)(e),W&&!g&&(0,v.AW)(e.currentTarget.ownerDocument)===e.currentTarget){J.current=L(e.key,O,p)?r:i,en(e);return}L(e.key,O,p)?u?t>=i?l&&t!==n.current.length?J.current=-1:(ea.current=!1,J.current=r):J.current=(0,E.aF)(n.current,{startingIndex:t,disabledIndices:I}):J.current=Math.min(i,(0,E.aF)(n.current,{startingIndex:t,disabledIndices:I})):u?t<=r?l&&-1!==t?J.current=n.current.length:(ea.current=!1,J.current=i):J.current=(0,E.aF)(n.current,{startingIndex:t,decrement:!0,disabledIndices:I}):J.current=Math.max(r,(0,E.aF)(n.current,{startingIndex:t,decrement:!0,disabledIndices:I})),(0,E.VP)(n.current,J.current)&&(J.current=-1),en(e)}}),ex=r.useMemo(()=>({onFocus(e){ea.current=!0,em(e)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},onMouseMove(e){ea.current=!0,eo.current=!1,b&&em(e)},onPointerLeave(e){var t;if(!eu.current||!et.current||"touch"===e.pointerType)return;ea.current=!0;let r=e.relatedTarget;if(!(!b||n.current.includes(r))&&ed.current&&(null===(t=es.current)||void 0===t||t.call(es),es.current=null,J.current=-1,en(e),!g)){let e=Y.current,t=(0,v.AW)((0,C.P)(e));e&&(0,v.r3)(e,t)&&e.focus({preventScroll:!0})}}}),[em,eu,Y,b,n,en,ed,g]),ek=r.useMemo(()=>g&&W&&eg&&{"aria-activedescendant":"".concat(j,"-").concat(i)},[g,W,eg,j,i]),ew=r.useMemo(()=>({"aria-orientation":"both"===O?void 0:O,...Z?{}:ek,onKeyDown(e){if("Tab"===e.key&&e.shiftKey&&W&&!g){let t=(0,v.U9)(e.nativeEvent);if(t&&!(0,v.r3)(Y.current,t))return;(0,k.p7)(e),U.setOpen(!1,(0,w.e)(_.su,e.nativeEvent)),(0,M.Re)(q)&&q.focus();return}ev(e)},onPointerMove(){et.current=!0}}),[ek,ev,Y,O,Z,U,W,g,q]),e_=r.useMemo(()=>{function e(e){U.setOpen(!0,(0,w.e)(_.xx,e.nativeEvent,e.currentTarget))}function t(e){"auto"===m&&(0,k.Zj)(e.nativeEvent)&&(K.current=!g)}function n(e){K.current=m,"auto"===m&&(0,k.cr)(e.nativeEvent)&&(K.current=!0)}return{onKeyDown(t){var n;let r=U.select("open");et.current=!1;let i=t.key.startsWith("Arrow"),a=(n=t.key,N(ey(),p?n===T.pe:n===T.Ft,n===T.qN)),o=P(t.key,O),s=(f?a:o)||"Enter"===t.key||""===t.key.trim();if(g&&r)return ev(t);if(r||S||!i){if(s){let e=P(t.key,ey());ee.current=f&&e?null:t.key}if(f){a&&((0,k.p7)(t),r?(J.current=eb(),en(t)):e(t));return}o&&(null!=ec.current&&(J.current=ec.current),(0,k.p7)(t),!r&&S?e(t):ev(t),r&&en(t))}},onFocus(e){U.select("open")&&!g&&(J.current=-1,en(e))},onPointerDown:n,onPointerEnter:n,onMouseDown:t,onClick:t}},[ev,m,eb,f,en,U,S,O,ey,p,ec,g]),eS=r.useMemo(()=>({...ek,...e_}),[ek,e_]);return r.useMemo(()=>o?{reference:eS,floating:ew,item:ex,trigger:e_}:{},[o,eS,ew,e_,ex])}(ts,{enabled:!es&&!eN,listRef:ej,activeIndex:e1,selectedIndex:e2,disabledIndices:g.LZ,onNavigate(e){(null!==e||eO)&&e0.set("activeIndex",e)},focusItemOnHover:eb}),td=function(e,t){var n;let{listRef:i,elementsRef:a,activeIndex:o,onMatch:s,disabledIndices:l,onTyping:u,enabled:h=!0,resetMs:f=750,selectedIndex:p=null}=t,m="rootStore"in e?e.rootStore:e,y=m.useState("open"),x=(0,b.K)(),w=r.useRef(""),_=r.useRef(null!==(n=null!=p?p:o)&&void 0!==n?n:-1),S=r.useRef(null),C=(0,d.R)(e=>{var t,n;function r(e){return!!function(e){let t=null==a?void 0:a.current[e];return!t||(0,E.Jv)(t)}(e)&&(null==l||!(0,E.Nm)(g.LZ,e,l))}function c(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(0===e.length)return -1;let i=(n%e.length+e.length)%e.length,a=t.toLowerCase();for(let t=0;t<e.length;t+=1){let n=(i+t)%e.length,o=e[n];if((null==o?void 0:o.toLowerCase().startsWith(a))&&r(n))return n}return -1}let d=i.current;if(w.current.length>0&&" "===e.key&&((0,k.p7)(e),null==u||u(!0)),w.current.length>0&&" "!==w.current[0]&&-1===c(d,w.current)&&" "!==e.key&&(null==u||u(!1)),null==d||1!==e.ke
1y.length||e.ctrlKey||e.metaKey||e.altKey)return;y&&" "!==e.key&&((0,k.p7)(e),null==u||u(!0));let h=""===w.current;h&&(_.current=null!==(t=null!=p?p:o)&&void 0!==t?t:-1),d.every((e,t)=>{var n,i;return!(e&&r(t))||(null===(n=e[0])||void 0===n?void 0:n.toLowerCase())!==(null===(i=e[1])||void 0===i?void 0:i.toLowerCase())})&&w.current===e.key&&(w.current="",_.current=S.current),w.current+=e.key,x.start(f,()=>{w.current="",_.current=S.current,null==u||u(!1)});let m=h?null!==(n=null!=p?p:o)&&void 0!==n?n:-1:_.current,b=c(d,w.current,(null!=m?m:0)+1);-1!==b?(null==s||s(b),S.current=b):" "!==e.key&&(w.current="",null==u||u(!1))}),M=(0,d.R)(e=>{let t=e.relatedTarget,n=m.select("domReferenceElement"),r=m.select("floatingElement");(0,v.r3)(n,t)||(0,v.r3)(r,t)||(x.clear(),w.current="",_.current=S.current,null==u||u(!1))});(0,c.W)(()=>{(y||null===p)&&(x.clear(),S.current=null,""!==w.current&&(w.current=""))},[y,p,x]),(0,c.W)(()=>{if(y&&""===w.current){var e;_.current=null!==(e=null!=p?p:o)&&void 0!==e?e:-1}},[y,p,o]);let A=r.useMemo(()=>({onKeyDown:C,onBlur:M}),[C,M]);return r.useMemo(()=>h?{reference:A,floating:A}:{},[h,A])}(ts,{enabled:!es&&!eN&&(eO||!ep),listRef:eD,activeIndex:e1,selectedIndex:e2,disabledIndices:e=>(0,l.R)(ej.current[e]),onMatch(e){eO?e0.set("activeIndex",e):ta(eW.current[e],(0,w.e)("none"))},onTyping(e){eH.current=e}}),th=r.useMemo(()=>{let e=(0,Z.dG)(td.reference,tc.reference,tu.reference,tl.reference,eJ);return eR&&(e.id=eR),e},[tl.reference,td.reference,tc.reference,tu.reference,eJ,eR]),tf=r.useMemo(()=>(0,Z.dG)(V.J_,td.floating,tc.floating,tu.floating),[td.floating,tc.floating,tu.floating]),tp=null!==(n=tc.item)&&void 0!==n?n:g.Nu;(0,s.h)(()=>{e0.update({popupProps:tf,triggerProps:th})}),(0,c.W)(()=>{e0.update({id:eR,modal:eu,multiple:ep,value:eL,open:eO,mounted:eY,transitionStatus:eQ,popupProps:tf,triggerProps:th,items:ef,itemToStringLabel:eg,itemToStringValue:em,isItemEqualToValue:ey,openMethod:e8})},[e0,eR,eu,ep,eL,eO,eY,eQ,tf,th,ef,eg,em,ey,e8]);let tg=r.useMemo(()=>({store:e0,name:eP,required:el,disabled:eN,readOnly:es,multiple:ep,highlightItemOnHover:eb,setValue:ta,setOpen:tr,listRef:ej,popupRef:eF,scrollHandlerRef:eB,handleScrollArrowVisibility:to,scrollArrowsMountedCountRef:ez,itemProps:tp,valueRef:eU,valuesRef:eW,labelsRef:eD,typingRef:eH,selectionRef:eV,firstItemTextRef:eq,selectedItemTextRef:eG,validation:eE,onOpenChangeComplete:eh,alignItemWithTriggerActiveRef:eZ,initialValueRef:tt}),[e0,eP,el,eN,es,ep,eb,ta,tr,tp,eE,eh,to]),tm=(0,a.r)(ed,eE.inputRef),ty=ep&&Array.isArray(eL)&&eL.length>0,tb=ep?void 0:eP,tv=r.useMemo(()=>ep&&Array.isArray(eL)&&eP?eL.map(e=>{let t=(0,U.Du)(e,em);return(0,Y.jsx)("input",{type:"hidden",form:ei,name:eP,value:t,disabled:eN},t)}):null,[ep,eL,ei,eP,em,eN]);return(0,Y.jsx)(I.Zi.Provider,{value:tg,children:(0,Y.jsxs)(I.LR.Provider,{value:ts,children:[ev,(0,Y.jsx)("input",{...eE.getValidationProps(eN,{onFocus(){var e;null===(e=e0.state.triggerElement)||void 0===e||e.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented||eN||es)return;let t=e.currentTarget.value,n=(0,w.e)(_.YP,e.nativeEvent);e0.set("forceMount",!0),queueMicrotask(function(){if(ep)return;let e=t.toLowerCase(),r=eW.current.findIndex(t=>(0,U.Du)(t,em).toLowerCase()===e||(0,U.lQ)(t,eg).toLowerCase()===e);-1===r&&(r=eW.current.findIndex((t,n)=>{let r=eD.current[n];return null!=r&&r.toLowerCase()===e}));let i=-1===r?void 0:eW.current[r];null!=i&&ta(i,n)})}}),id:eR&&null==tb?"".concat(eR,"-hidden-input"):void 0,form:ei,name:tb,autoComplete:ea,value:e9,disabled:eN,required:el&&!ty,readOnly:es,ref:tm,style:eP?i.Q:i.j,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),tv]})})}},58001:function(e,t,n){"use strict";n.d(t,{LK:function(){return s},LR:function(){return o},Zi:function(){return a},mm:function(){return l}});var r=n(64104),i=n(28113);let a=i.createContext(null),o=i.createContext(null);function s(){let e=i.useContext(a);if(null===e)throw Error((0,r.Z)(60));return e}function l(){let e=i.useContext(o);if(null===e)throw Error((0,r.Z)(61));return e}},82504:function(e,t,n){"use strict";n.d(t,{F:function(){return g}});var r=n(28113),i=n(94573),a=n(18604),o=n(61780),s=n(58001),l=n(26648),u=n(71467),c=n(20396),d=n(99952),h=n(99974),f=n(79811),p=n(97586);let g=r.forwardRef(function(e,t){let{render:n,className:r,style:g,direction:m,keepMounted:y=!1,...b}=e,v="up"===m,{store:x,popupRef:k,listRef:w,handleScrollArrowVisibility:_,scrollArrowsMountedCountRef:S}=(0,s.LK)(),{side:C,scrollDownArrowRef:M,scrollUpArrowRef:A}=(0,l.Z)(),E=v?p.w.scrollUpArrowVisible:p.w.scrollDownArrowVisible,T=(0,a.o)(x,E),R=(0,a.o)(x,p.w.openMethod),N=T&&"touch"!==R,P=(0,i.K)(),L=v?A:M,{mounted:I,transitionStatus:O,setMounted:$}=(0,u.h)(N);(0,o.W)(()=>(S.current+=1,x.state.hasScrollArrows||x.set("hasScrollArrows",!0),()=>{S.current=Math.max(0,S.current-1),0===S.current&&x.state.hasScrollArrows&&x.set("hasScrollArrows",!1)}),[x,S]),(0,c.s)({open:N,ref:L,onComplete(){N||$(!1)}});let j=(0,d.E)("div",e,{ref:[t,L],state:{direction:m,visible:N,side:C,transitionStatus:O}
1,props:[{"aria-hidden":!0,children:v?"▲":"▼",style:{position:"absolute"},onMouseMove(e){0===e.movementX&&0===e.movementY||P.isStarted()||(x.set("activeIndex",null),P.start(40,function e(){var t,n;let r=null!==(t=x.state.listElement)&&void 0!==t?t:k.current;if(!r)return;x.set("activeIndex",null),_();let i=(0,f.Y0)(r.scrollHeight,r.clientHeight),a=(0,f.C3)(r.scrollTop,i),o=a===(v?0:i),s=w.current;if(a!==r.scrollTop&&(r.scrollTop=a),0===s.length&&x.set(v?"scrollUpArrowVisible":"scrollDownArrowVisible",!o),o){P.clear();return}if(s.length>0){let e=(null===(n=L.current)||void 0===n?void 0:n.offsetHeight)||0;r.scrollTop=function(e,t,n,r,i,a){if(t){let t=0,r=n+i-f.I2;for(let n=0;n<e.length;n+=1){let i=e[n];if(i&&i.offsetTop>=r){t=n;break}}let o=Math.max(0,t-1),s=e[o];return o<t&&s?(0,f.C3)(s.offsetTop-i,a):0}let o=e.length-1,s=n+r-i+f.I2;for(let t=0;t<e.length;t+=1){let n=e[t];if(n&&n.offsetTop+n.offsetHeight>s){o=Math.max(0,t-1);break}}let l=Math.min(e.length-1,o+1),u=e[l];return l>o&&u?(0,f.C3)(u.offsetTop+u.offsetHeight-r+i,a):a}(s,v,a,r.clientHeight,e,i)}P.start(40,e)}))},onMouseLeave(){P.clear()}},b],stateAttributesMapping:h.l});return I||y?j:null})},56146:function(e,t,n){"use strict";n.d(t,{W:function(){return o}});var r=n(28113),i=n(82504),a=n(22087);let o=r.forwardRef(function(e,t){return(0,a.jsx)(i.F,{...e,ref:t,direction:"down"})})},24641:function(e,t,n){"use strict";n.d(t,{E:function(){return o}});var r=n(28113),i=n(82504),a=n(22087);let o=r.forwardRef(function(e,t){return(0,a.jsx)(i.F,{...e,ref:t,direction:"up"})})},97586:function(e,t,n){"use strict";n.d(t,{w:function(){return o}});var r=n(96705),i=n(91475),a=n(78601);let o={id:(0,r.P)(e=>e.id),labelId:(0,r.P)(e=>e.labelId),modal:(0,r.P)(e=>e.modal),multiple:(0,r.P)(e=>e.multiple),items:(0,r.P)(e=>e.items),itemToStringLabel:(0,r.P)(e=>e.itemToStringLabel),itemToStringValue:(0,r.P)(e=>e.itemToStringValue),isItemEqualToValue:(0,r.P)(e=>e.isItemEqualToValue),value:(0,r.P)(e=>e.value),hasSelectedValue:(0,r.P)(e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return null!=t&&(n&&Array.isArray(t)?t.length>0:""!==(0,a.Du)(t,r))}),hasNullItemLabel:(0,r.P)((e,t)=>!!t&&(0,a.VU)(e.items)),open:(0,r.P)(e=>e.open),mounted:(0,r.P)(e=>e.mounted),forceMount:(0,r.P)(e=>e.forceMount),transitionStatus:(0,r.P)(e=>e.transitionStatus),openMethod:(0,r.P)(e=>e.openMethod),activeIndex:(0,r.P)(e=>e.activeIndex),selectedIndex:(0,r.P)(e=>e.selectedIndex),isActive:(0,r.P)((e,t)=>e.activeIndex===t),isSelected:(0,r.P)((e,t)=>{let n=e.isItemEqualToValue,r=e.value;return e.multiple?Array.isArray(r)&&r.some(e=>(0,i.jN)(t,e,n)):(0,i.jN)(t,r,n)}),isSelectedByFocus:(0,r.P)((e,t)=>e.selectedIndex===t),popupProps:(0,r.P)(e=>e.popupProps),triggerProps:(0,r.P)(e=>e.triggerProps),triggerElement:(0,r.P)(e=>e.triggerElement),positionerElement:(0,r.P)(e=>e.positionerElement),listElement:(0,r.P)(e=>e.listElement),popupSide:(0,r.P)(e=>e.popupSide),scrollUpArrowVisible:(0,r.P)(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:(0,r.P)(e=>e.scrollDownArrowVisible),hasScrollArrows:(0,r.P)(e=>e.hasScrollArrows)}},20810:function(e,t,n){"use strict";n.d(t,{i:function(){return M}});var r=n(28113),i=n(84321),a=n(94573),o=n(14802),s=n(94952),l=n(18604),u=n(58001),c=n(72643),d=n(8902),h=n(52443),f=n(9645),p=n(99952),g=n(97586),m=n(67178),y=n(60267),b=n(53819),v=n(95027),x=n(49274),k=n(43166),w=n(86620),_=n(58808),S=n(93394);let C={...h.oL,...f.Wl,popupSide:e=>e?{"data-popup-side":e}:null,value:()=>null},M=r.forwardRef(function(e,t){var n,h;let{render:f,className:M,id:A,disabled:E=!1,nativeButton:T=!0,style:R,...N}=e,{setTouched:P,setFocused:L,validationMode:I,state:O,disabled:$}=(0,c.T5)(),{labelId:j}=(0,d.Q)(),{store:D,setOpen:F,selectionRef:B,validation:z,readOnly:U,required:W,alignItemWithTriggerActiveRef:H,disabled:q}=(0,u.LK)(),G=$||q||E,V=(0,l.o)(D,g.w.open),Z=(0,l.o)(D,g.w.mounted),Y=(0,l.o)(D,g.w.value),X=(0,l.o)(D,g.w.triggerProps),Q=(0,l.o)(D,g.w.positionerElement),K=(0,l.o)(D,g.w.listElement),J=(0,l.o)(D,g.w.popupSide),ee=(0,l.o)(D,g.w.id),et=(0,l.o)(D,g.w.labelId),en=(0,l.o)(D,g.w.hasSelectedValue),er=Z&&Q?J:null,ei=null!=A?A:ee;(0,S.J)({id:ei});let ea=(0,s.B)(Q),eo=r.useRef(null),{getButtonProps:es,buttonRef:el}=(0,k.U)({disabled:G,native:T}),eu=(0,o.R)(e=>{D.set("triggerElement",e)}),ec=(0,a.K)(),ed=(0,a.K)(),eh=(0,a.K)();r.useEffect(()=>{if(V)return eh.start(400,()=>
1{B.current.allowUnselectedMouseUp=!0,B.current.allowSelectedMouseUp=!0}),()=>{eh.clear()};B.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},ed.clear()},[V,B,ed,eh]);let ef=(0,x.dG)(X,{id:ei,role:"combobox","aria-expanded":V?"true":"false","aria-haspopup":"listbox","aria-controls":V?null!==(h=null==K?void 0:K.id)&&void 0!==h?h:null===(n=(0,b.zd)(Q))||void 0===n?void 0:n.id:void 0,"aria-labelledby":null!=j?j:et,"aria-readonly":U||void 0,"aria-required":W||void 0,tabIndex:G?-1:0,onFocus(e){L(!0),V&&H.current&&F(!1,(0,w.e)(_.YP,e.nativeEvent)),ec.start(0,()=>{D.set("forceMount",!0)})},onBlur(e){(0,v.r3)(Q,e.relatedTarget)||(P(!0),L(!1),"onBlur"===I&&z.commit(Y))},onMouseDown(e){if(V)return;let t=(0,i.P)(e.currentTarget);function n(e){if(!eo.current)return;let t=e.target;if((0,v.r3)(eo.current,t)||(0,v.r3)(ea.current,t))return;let n=function(e){let t=e.getBoundingClientRect(),n=(0,m.Jj)(e);if(y.J)return t;let r=n.getComputedStyle(e,"::before"),i=n.getComputedStyle(e,"::after");if(!("none"!==r.content||"none"!==i.content))return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,l=parseFloat(i.height)||0,u=Math.max(t.width,a,s),c=Math.max(t.height,o,l),d=u-t.width,h=c-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-h/2,bottom:t.bottom+h/2}}(eo.current);e.clientX>=n.left-2&&e.clientX<=n.right+2&&e.clientY>=n.top-2&&e.clientY<=n.bottom+2||F(!1,(0,w.e)(_.x_,e))}ed.start(0,()=>{t.addEventListener("mouseup",n,{once:!0})})}},N,es),ep=z.getValidationProps(G,ef);ep.role="combobox";let eg={...O,open:V,disabled:G,value:Y,readOnly:U,popupSide:er,placeholder:!en};return(0,p.E)("button",e,{ref:[t,eo,el,eu],state:eg,stateAttributesMapping:C,props:ep})})},85668:function(e,t,n){"use strict";n.d(t,{k:function(){return c}});var r=n(28113),i=n(18604),a=n(99952),o=n(58001),s=n(78601),l=n(97586);let u={value:()=>null},c=r.forwardRef(function(e,t){let{className:n,render:r,children:c,placeholder:d,style:h,...f}=e,{store:p,valueRef:g}=(0,o.LK)(),m=(0,i.o)(p,l.w.value),y=(0,i.o)(p,l.w.items),b=(0,i.o)(p,l.w.itemToStringLabel),v=(0,i.o)(p,l.w.hasSelectedValue),x=(0,i.o)(p,l.w.hasNullItemLabel,!v&&null!=d&&null==c),k=null;return k="function"==typeof c?c(m):null!=c?c:v||null==d||x?Array.isArray(m)?(0,s.zt)(m,y,b):(0,s.m3)(m,y,b):d,(0,a.E)("span",e,{state:{value:m,placeholder:!v},ref:[t,g],props:[{children:k},f],stateAttributesMapping:u})})},1038:function(e,t,n){"use strict";n.d(t,{N:function(){return k}});var r,i=n(28113),a=n(99952),o=n(99752),s=n(67178);function l(e){let t=(0,s.Dx)(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=(0,s.Re)(e),a=i?e.offsetWidth:n,l=i?e.offsetHeight:r;return((0,o.NM)(n)!==a||(0,o.NM)(r)!==l)&&(n=a,r=l),{width:n,height:r}}var u=n(64218),c=n(32083);function d(){return c.dG}function h(){return!1}function f(){return!0}var p=n(37618),g=n(22164),m=n(65055);let y=((r={}).activeTabLeft="--active-tab-left",r.activeTabRight="--active-tab-right",r.activeTabTop="--active-tab-top",r.activeTabBottom="--active-tab-bottom",r.activeTabWidth="--active-tab-width",r.activeTabHeight="--active-tab-height",r);var b=n(95634),v=n(22087);let x={...g.c,activeTabPosition:()=>null,activeTabSize:()=>null},k=i.forwardRef(function(e,t){let{className:n,render:r,renderBeforeHydration:o=!1,style:s,...c}=e,{nonce:g}=(0,b.d)(),{getTabElementBySelectedValue:k,orientation:w,tabActivationDirection:_,value:S}=(0,p.I)(),{tabsListElement:C,registerIndicatorUpdateListener:M}=(0,m.y)(),A=(0,u.useSyncExternalStore)(d,h,f),E=function(){let[,e]=i.useState({});return i.useCallback(()=>{e({})},[])}();i.useEffect(()=>M(E),[M,E]);let T=0,R=0,N=0,P=0,L=0,I=0,O=!1;if(null!=S&&null!=C){let e=k(S);if(null!=e){O=!0;let{width:t,height:n}=l(e),{width:r,height:i}=l(C),a=e.getBoundingClientRect(),o=C.getBoundingClientRect(),s=r>0?o.width/r:1,u=i>0?o.height/i:1;if(Math.abs(s)>Number.EPSILON&&Math.abs(u)>Number.EPSILON){let e=a.left-o.left,t=a.top-o.top;T=e/s+C.scrollLeft-C.clientLeft,N=t/u+C.scrollTop-C.clientTop}else T=e.offsetLeft,N=e.offsetTop;L=t,I=n,R=C.scrollWidth-T-L,P=C.scrollHeight-N-I}}let $=O?{left:T,right:R,top:N,bottom:P}:null,j=O?{width:L,height:I}:null,D=O?{[y.activeTabLeft]:"".concat(T,"px"),[y.activeTabRight]:"".concat(R,"px"),[y.activeTabTop]:"".concat(N,"px"),[y.activeTabBottom]:"".concat(P,"px"),[y.activeTabWidth]:"".concat(L,"px"),[y.activeTabHeight]:"".concat(I,"px")}:void 0,F=O&&L>0&&I>0,B=(0,a.E)("span",e,{state:{orientation:w,activeTabPosition:$,activeTabSize:j,tabActivationDirection:_},ref:t,props:[{role:"presentation",style:D,hidden:!F},c,{suppressHydrationWarning:!0}],stateAttributesMapping:x});return null==S?null:(0,v.jsxs)(i.Fragment,{children:[B,A&&o&&(0,v.jsx)("script",{nonce:g,dangerouslySetInnerHTML:{__html:'!function(){const t=document.currentScript.previousElementSibling;if(!t)return;const e=t.closest(\'[role="tablist"]\');if(!e)return;const i=e.querySelector("[data-active]");if(!i)return;if(0===i.offsetWidth||0===e.offsetWidth)return;let o=0,n=0,h=0,l=0,r=0,f=0;function s(t){const e=getComputedStyle(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;return(Math.round(i)!==t.offsetWidth||Math.round(o)!==t.offsetHeight)&&(i=t.offsetWidth,o=t.offsetHeight),{width:i,height:o}}if(null!=i&&null!=e){const{width:t,height:c}=s(i),{width:u,height:d}=s(e),a=i.getBoundingClientRect(),g=e.getBoundingClientRect(),p=u>0?g.width/u:1,b=d>0?g.height/d:1;if(Math.abs(p)>Number.EPSILON&&Math.abs(b)>Number.EPSILON){const t=a.left-g.left,i=a.top-g.top;o=t/p+e.scrollLeft-e.clientLeft,h=i/b+e.scrollTop-e.clientTop}else o=i.offsetLeft,h=i.offsetTop;r=t,f=c,n=e.scrollWidth-o-r,l=e.scrollHeight-h-f}function c(e,i){t.style.setProperty(`--active-tab-${e}`,`${i}px`)}c("left",o),c("right",n),c("top",h),c("bottom",l),c("width",r),c("height",f),r>0&&f>0&&t.removeAttribute("hidden")}();'},suppressHydrationWarning:!0})]})})},5312:function(e,t,n){"use strict";n.d(t,{d:function(){return _}});var r=n(28113),i=n(14802),a=n(61780),o=n(32083),s=n(28739),l=n(93645),u=n(50891),c=n(73705),d=n(45680),h=n(38172),f=n(95027);let p=[];var g=n(95251),m=n(99952),y=n(3711),b=n(22087);function v(e){let{render:t,className:n,style:v,refs:x=o.LZ,props:k=o.LZ,state:w=o.Nu,stateAttributesMapping:_,highlightedIndex:S,on
1HighlightedIndexChange:C,orientation:M,grid:A,loopFocus:E,onLoop:T,enableHomeAndEndKeys:R,onMapChange:N,stopEventPropagation:P=!0,rootRef:L,disabledIndices:I,modifierKeys:O,highlightItemOnHover:$=!1,tag:j="div",...D}=e,{props:F,highlightedIndex:B,onHighlightedIndexChange:z,elementsRef:U,onMapChange:W,relayKeyboardEvent:H}=function(e){let{loopFocus:t=!0,orientation:n="both",grid:o,onLoop:s,direction:g,highlightedIndex:m,onHighlightedIndexChange:y,rootRef:b,enableHomeAndEndKeys:v=!1,stopEventPropagation:x=!1,disabledIndices:k,modifierKeys:w=p}=e,[_,S]=r.useState(0),C=null!=o,M=r.useRef(null),A=(0,u.r)(M,b),E=r.useRef([]),T=r.useRef(!1),R=null!=m?m:_,N=(0,i.R)(function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((null!=y?y:S)(e),t){let t=E.current[e];(0,c.n5)(M.current,t,g,n)}}),P=(0,i.R)(e=>{var t;if(0===e.size||T.current)return;T.current=!0;let r=Array.from(e.keys()),i=null!==(t=r.find(e=>null==e?void 0:e.hasAttribute(h.e)))&&void 0!==t?t:null,a=i?r.indexOf(i):-1;if(-1!==a)N(a);else if((0,d.Nm)(r,R,k)){let e=(0,d.aF)(r,{disabledIndices:k});(0,d.VP)(r,e)||N(e)}(0,c.n5)(M.current,i,g,n)});(0,a.W)(()=>{if(null==k||null!=m||!T.current)return;let e=E.current;if((0,d.Nm)(e,R,k)){let t=(0,d.aF)(e,{disabledIndices:k});(0,d.VP)(e,t)||N(t)}},[k,m,R,E,N]);let L=(0,i.R)((e,t,n)=>s?s(e,t,n,E):n),I=(0,i.R)(e=>{let r=v?c.dT:c.Zl;if(!r.has(e.key)||function(e,t){for(let n of c.nl.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}(e,w)||!M.current)return;let i="rtl"===g,a=i?c.pe:c.Ft,u={horizontal:a,vertical:c.qN,both:a}[n],h=i?c.Ft:c.pe,p={horizontal:h,vertical:c.NF,both:h}[n],m=(0,f.U9)(e.nativeEvent);if(null!=m&&(0,c.gk)(m)&&!(0,l.R)(m)){var y;let t=m.selectionStart,n=m.selectionEnd,r=null!==(y=m.value)&&void 0!==y?y:"";if(null==t||e.shiftKey||t!==n||e.key!==p&&t<r.length||e.key!==u&&t>0)return}let b=R,_=(0,d.h$)(E,k),S=(0,d.zc)(E,k);null!=o&&(b=o({disabledIndices:k,elementsRef:E,event:e,highlightedIndex:R,loopFocus:t,maxIndex:S,minIndex:_,onLoop:L,orientation:n,rtl:i}));
1let A={horizontal:[a],vertical:[c.qN],both:[a,c.qN]}[n],T={horizontal:[h],vertical:[c.NF],both:[h,c.NF]}[n],P=C?r:({horizontal:v?c.q:c.Uf,vertical:v?c.Pc:c.tc,both:r})[n];v&&(e.key===c.Sd?b=_:e.key===c.uR&&(b=S)),b===R&&(A.includes(e.key)||T.includes(e.key))&&(t&&b===S&&A.includes(e.key)?(b=_,s&&(b=s(e,R,b,E))):t&&b===_&&T.includes(e.key)?(b=S,s&&(b=s(e,R,b,E))):b=(0,d.aF)(E.current,{startingIndex:b,decrement:T.includes(e.key),disabledIndices:k})),b===R||(0,d.VP)(E.current,b)||(x&&e.stopPropagation(),P.has(e.key)&&e.preventDefault(),N(b,!0),queueMicrotask(()=>{var e;null===(e=E.current[b])||void 0===e||e.focus()}))});return{props:{ref:A,onFocus(e){var t;let n=M.current,r=(0,f.U9)(e.nativeEvent);n&&null!=r&&(0,c.gk)(r)&&r.setSelectionRange(0,null!==(t=r.value.length)&&void 0!==t?t:0)},onKeyDown:I},highlightedIndex:R,onHighlightedIndexChange:N,elementsRef:E,disabledIndices:k,onMapChange:P,relayKeyboardEvent:I}}({grid:A,loopFocus:E,onLoop:T,orientation:M,highlightedIndex:S,onHighlightedIndexChange:C,rootRef:L,stopEventPropagation:P,enableHomeAndEndKeys:R,direction:(0,y.g)(),disabledIndices:I,modifierKeys:O}),q=(0,m.E)(j,e,{state:w,ref:x,props:[F,...k,D],stateAttributesMapping:_}),G=r.useMemo(()=>({highlightedIndex:B,onHighlightedIndexChange:z,highlightItemOnHover:$,relayKeyboardEvent:H}),[B,z,$,H]);return(0,b.jsx)(g.Z.Provider,{value:G,children:(0,b.jsx)(s.h,{elementsRef:U,onMapChange:e=>{null==N||N(e),W(e)},children:q})})}var x=n(22164),k=n(37618),w=n(65055);let _=r.forwardRef(function(e,t){let{activateOnFocus:n=!1,className:s,loopFocus:l=!0,render:u,style:c,...d}=e,{onValueChange:h,orientation:f,value:p,setTabMap:g,tabActivationDirection:m}=(0,k.I)(),[y,_]=r.useState(0),[S,C]=r.useState(null),M=r.useRef(new Set),A=r.useRef(new Set),E=r.useRef(null);(0,a.W)(()=>{if("undefined"==typeof ResizeObserver)return;let e=new ResizeObserver(()=>{M.current.forEach(e=>{e()})});return E.current=e,S&&e.observe(S),A.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),E.current=null}},[S]);let T=(0,i.R)(e=>(M.current.add(e),()=>{M.current.delete(e)})),R=(0,i.R)(e=>{var t;return A.current.add(e),null===(t=E.current)||void 0===t||t.observe(e),()=>{var t;A.current.delete(e),null===(t=E.current)||void 0===t||t.unobserve(e)}}),N=(0,i.R)((e,t)=>{e!==p&&h(e,t)}),P=r.useMemo(()=>({activateOnFocus:n,highlightedTabIndex:y,registerIndicatorUpdateListener:T,registerTabResizeObserverElement:R,onTabActivation:N,setHighlightedTabIndex:_,tabsListElement:S}),[n,y,T,R,N,_,S]);return(0,b.jsx)(w.t.Provider,{value:P,children:(0,b.jsx)(v,{render:u,className:s,style:c,state:{orientation:f,tabActivationDirection:m},refs:[t,C],props:[{"aria-orientation":"vertical"===f?"vertical":void 0,role:"tablist"},d],stateAttributesMapping:x.c,highlightedIndex:y,enableHomeAndEndKeys:!0,loopFocus:l,orientation:f,onHighlightedIndexChange:_,onMapChange:g,disabledIndices:o.LZ})})})},65055:function(e,t,n){"use strict";n.d(t,{t:function(){return a},y:function(){return o}});var r=n(64104),i=n(28113);let a=i.createContext(void 0);function o(){let e=i.useContext(a);if(void 0===e)throw Error((0,r.Z)(65));return e}},6553:function(e,t,n){"use strict";n.d(t,{U:function(){return p}});var r=n(28113),i=n(23857),a=n(61780),o=n(14802),s=n(99952),l=n(28739),u=n(37618),c=n(22164),d=n(86620),h=n(58808),f=n(22087);let p=r.forwardRef(function(e,t){let{className:n,defaultValue:p=0,onValueChange:m,orientation:y="horizontal",render:b,value:v,style:x,...k}=e,w=void 0!==e.defaultValue,_=r.useRef([]),[S,C]=r.useState(()=>new Map),[M,A]=(0,i.u)({controlled:v,default:p,name:"Tabs",state:"value"}),E=void 0!==v,[T,R]=r.useState(()=>new Map),N=r.useRef(void 0),P=r.useCallback(e=>{if(void 0===e)return null;for(let[n,r]of T.entries()){var t;if(null!=r&&e===(null!==(t=r.value)&&void 0!==t?t:r.index))return n}return null},[T]),[L,I]=r.useState(()=>({previousValue:M,tabActivationDirection:"none"})),{previousValue:O,tabActivationDirection:$}=L,j=$,D=!1;O!==M&&(j=g(O,M,y,T),D=null!=O&&null!=M&&null==P(M));let F=D?O:M,B=O!==F||$!==j;(0,a.W)(()=>{B&&I({previousValue:F,tabActivationDirection:j})},[F,B,j]);let z=(0,o.R)((e,t)=>{let n=g(M,e,y,T);t.activationDirection=n,null==m||m(e,t),t.isCanceled||A(e)}),U=(0,o.R)((e,t)=>{null==m||m(e,(0,d.e)(t,void 0,void 0,{activationDirection:"none"}))}),W=(0,o.R)((e,t)=>{C(n=>
1{if(n.get(e)===t)return n;let r=new Map(n);return r.set(e,t),r})}),H=(0,o.R)((e,t)=>{C(n=>{if(!n.has(e)||n.get(e)!==t)return n;let r=new Map(n);return r.delete(e),r})}),q=r.useCallback(e=>S.get(e),[S]),G=r.useCallback(e=>{for(let t of T.values())if(e===(null==t?void 0:t.value))return null==t?void 0:t.id},[T]),V=r.useMemo(()=>({getTabElementBySelectedValue:P,getTabIdByPanelValue:G,getTabPanelIdByValue:q,onValueChange:z,orientation:y,registerMountedTabPanel:W,setTabMap:R,unregisterMountedTabPanel:H,tabActivationDirection:j,value:M}),[P,G,q,z,y,W,R,H,j,M]),Z=r.useMemo(()=>{for(let e of T.values())if(null!=e&&e.value===M)return e},[T,M]),Y=r.useMemo(()=>{for(let e of T.values())if(null!=e&&!e.disabled)return e.value},[T]),X=r.useRef(!w),Q=r.useRef(p),K=r.useRef(w),J=r.useRef(!1);(0,a.W)(()=>{if(E)return;function e(e,t){A(e),I(t=>t.previousValue===e&&"none"===t.tabActivationDirection?t:{previousValue:e,tabActivationDirection:"none"}),U(e,t),X.current=!1}if(0===T.size){var t;!J.current||null===M||(null===(t=N.current)||void 0===t?void 0:t.isConnected)||e(null,h.wb);return}J.current=!0,N.current=T.keys().next().value;let n=null==Z?void 0:Z.disabled,r=null==Z&&null!==M;if(n||M!==Q.current||(K.current=!1),K.current&&n&&M===Q.current)return;let i=X.current;if(n||r){let t=null!=Y?Y:null;if(M===t){X.current=!1;return}let r=h.wb;i?r=h.nn:n&&(r=h.JU),e(t,r);return}i&&null!=Z&&(U(M,h.nn),X.current=!1)},[Y,E,U,Z,A,T,M]);let ee={orientation:y,tabActivationDirection:j},et=(0,s.E)("div",e,{state:ee,ref:t,props:k,stateAttributesMapping:c.c});return(0,f.jsx)(u.a.Provider,{value:V,children:(0,f.jsx)(l.h,{elementsRef:_,children:et})})});function g(e,t,n,r){if(null==e||null==t)return"none";let i=null,a=null;for(let[n,s]of r.entries()){var o;if(null==s)continue;let r=null!==(o=s.value)&&void 0!==o?o:s.index;if(e===r&&(i=n),t===r&&(a=n),null!=i&&null!=a)break}if(null==i||null==a)return i!==a&&("number"==typeof e||"string"==typeof e)&&typeof e==typeof t?"horizontal"===n?t>e?"right":"left":t>e?"down":"up":"none";let s=i.getBoundingClientRect(),l=a.getBoundingClientRect();if("horizontal"===n){if(l.left<s.left)return"left";if(l.left>s.left)return"right"}else{if(l.top<s.top)return"up";if(l.top>s.top)return"down"}return"none"}},37618:function(e,t,n){"use strict";n.d(t,{I:function(){return o},a:function(){return a}});var r=n(64104),i=n(28113);let a=i.createContext(void 0);function o(){let e=i.useContext(a);if(void 0===e)throw Error((0,r.Z)(64));return e}},22164:function(e,t,n){"use strict";var r;n.d(t,{c:function(){return a}});let i=((r={}).activationDirection="data-activation-direction",r.orientation="data-orientation",r),a={tabActivationDirection:e=>({[i.activationDirection]:e})}},28030:function(e,t,n){"use strict";n.d(t,{n:function(){return v}});var r=n(28113),i=n(84321),a=n(61780),o=n(91532),s=n(99952),l=n(43166),u=n(38172),c=n(50891),d=n(95251),h=n(73216),f=n(37618),p=n(22164),g=n(65055),m=n(86620),y=n(58808),b=n(95027);let v=r.forwardRef(function(e,t){let{className:n,disabled:v=!1,render:x,value:k,id:w,nativeButton:_=!0,style:S,...C}=e,{value:M,getTabPanelIdByValue:A,orientation:E,tabActivationDirection:T}=(0,f.I)(),{activateOnFocus:R,highlightedTabIndex:N,onTabActivation:P,registerTabResizeObserverElement:L,setHighlightedTabIndex:I,tabsListElement:O}=(0,g.y)(),$=(0,o.L)(w),{compositeProps:j,compositeRef:D,index:F}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:i}=(0,d.s)(),{ref:a,index:o}=(0,h.R)(e),s=n===o,l=r.useRef(null),u=(0,c.r)(a,l);return{compositeProps:{tabIndex:s?0:-1,onFocus(){i(o)},onMouseMove(){let e=l.current;if(!t||!e)return;let n=e.hasAttribute("disabled")||"true"===e.ariaDisabled;s||n||e.focus()}},compositeRef:u,index:o}}({metadata:r.useMemo(()=>({disabled:v,id:$,value:k}),[v,$,k])}),B=k===M,z=r.useRef(!1),U=r.useRef(null);(0,a.W)(()=>{let e=U.current;if(e)return L(e)},[L]),(0,a.W)(()=>{if(z.current){z.current=!1;return}if(B&&F>-1&&N!==F){if(null!=O){let e=(0,b.AW)((0,i.P)(O));if(e&&(0,b.r3)(O,e))return}v||I(F)}},[B,F,N,I,v,O]);let{getButtonProps:W,buttonRef:H}=(0,l.U)({disabled:v,native:_,focusableWhenDisabled:!0}),q=A(k),G=r.useRef(!1),V=r.useRef(!1);return(0,s.E)("button",e,{state:{disabled:v,active:B,orientation:E,tabActivationDirection:T},ref:[t,H,D,U],props:[j,{role:"tab","aria-controls":q,"aria-selected":B,id:$,onClick:function(e){B||v||P(k,(0,m.e)(y.YP,e.nativeEvent,void 0,{activationDirection:"none"}))},onFocus:function(e){!B&&(F>-1&&!v&&I(F),!v&&R&&(!G.current||G.current&&V.current)&&P(k,(0,m.e)(y.YP,e.nativeEvent,void 0,{activationDirection:"none"})))},onPointerDown:function(e){B||v||(G.current=!0,e.button&&0!==e.button||(V.current=!0,(0,i.P)(e.currentTarget).addEventListener("pointerup",function(){G.current=!1,V.current=!1},{once:!0})))},[u.e]:B?"":void 0,onKeyDownCapture(){z.current=!0}},C,W],stateAttributesMapping:p.c})})},11536:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(99952);function i(e){return(0,r.E)(e.defaultTagName??"div",e,e)}},56518:function(e,t,n){"use strict";n.d(t,{O:function(){return u}});var r=n(28113),i=n(61780);let a=n(43883).W3;var o=n(53e3),s=n(37901),l=n(22087);let u=r.forwardRef(function(e,t){let[n,u]=r.useState();return(0,i.W)(()=>{a&&o.a0&&u("button")},[]),(0,l.jsx)("span",{...e,ref:t,style:s.j,"aria-hidden":!n||void 0,tabIndex:0,role:n,"data-base-ui-focus-guard":""})})},37538:function(e,t,n){"use strict";n.d(t,{C:function(){return a}});var r=n(28113),i=n(22087);let a=r.forwardRef(function(e,t){let n;let{cutout:r,...a}=e;if(r){let e=r.getBoundingClientRect();n=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,i.jsx)("div",{ref:t,role:"presentation","data-base-ui-inert":"",...a,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:n}})})},50895:function(e,t,n){"use strict";n.d(t,{Q:function(){return o},X:function(){return s}});var r=n(67178),i=n(84321),a=n(99752);let o={sideX:"left",sideY:"top"}
1,s={name:"adaptiveOrigin",async fn(e){let{x:t,y:n,rects:{floating:s},elements:{floating:l},platform:u,strategy:c,placement:d}=e,h=(0,r.Jj)(l),f=h.getComputedStyle(l);if(!("0s"!==f.transitionDuration&&""!==f.transitionDuration))return{x:t,y:n,data:o};let p=await u.getOffsetParent?.(l),g={width:0,height:0};if("fixed"===c&&h?.visualViewport)g={width:h.visualViewport.width,height:h.visualViewport.height};else if(p===h){let e=(0,i.P)(l);g={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await u.isElement?.(p)&&(g=await u.getDimensions(p));let m=(0,a.k3)(d),y=t,b=n;return"left"===m&&(y=g.width-(t+s.width)),"top"===m&&(b=g.height-(n+s.height)),{x:y,y:b,data:{sideX:"left"===m?"right":o.sideX,sideY:"top"===m?"bottom":o.sideY}}}}},91705:function(e,t,n){"use strict";n.d(t,{m:function(){return u},w:function(){return l}});var r,i=n(48783);let a=((r={}).panelOpen="data-panel-open",r),o={[i.M.open]:""},s={[i.M.closed]:""},l={open:e=>e?{[a.panelOpen]:""}:null},u={open:e=>e?o:s}},84591:function(e,t,n){"use strict";n.d(t,{g:function(){return a}});var r=n(32083),i=n(64615);function a(e){return"starting"===e?i.Bj:r.Nu}},52443:function(e,t,n){"use strict";n.d(t,{IZ:function(){return o},SD:function(){return g},o0:function(){return s},oL:function(){return p},wC:function(){return f}});var r,i,a=n(99974);let o=((r={}).open="data-open",r.closed="data-closed",r[r.startingStyle=a.C.startingStyle]="startingStyle",r[r.endingStyle=a.C.endingStyle]="endingStyle",r.anchorHidden="data-anchor-hidden",r.side="data-side",r.align="data-align",r),s=((i={}).popupOpen="data-popup-open",i.pressed="data-pressed",i),l={[s.popupOpen]:""},u={[s.popupOpen]:"",[s.pressed]:""},c={[o.open]:""},d={[o.closed]:""},h={[o.anchorHidden]:""},f={open:e=>e?l:null},p={open:e=>e?u:null},g={open:e=>e?c:d,anchorHidden:e=>e?h:null}},74149:function(e,t,n){"use strict";n.d(t,{J_:function(){return b},CD:function(){return w},lf:function(){return v},RG:function(){return k},zf:function(){return C},v7:function(){return _},Rp:function(){return M},wN:function(){return A},ex:function(){return E},bd:function(){return x},_Y:function(){return S}});var r=n(28113),i=n(37421),a=n(32083),o=n(50778),s=n(14802),l=n(61780),u=n(15763),c=n(57162),d=n(55538),h=n(67178),f=n(21543),p=n(71467),g=n(20396),m=n(86620),y=n(58808);let b={tabIndex:-1,[c.Ou]:""};function v(e){return t=>"touch"!==t||e.current}function x(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=(0,o.M)(),a=null!=(0,d.Zm)(),s=r.useRef(null);void 0===e&&null===s.current&&(s.current=t(i,a));let u=null!=e?e:s.current;return!function(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:i,floatingId:a,nested:o,onOpenChange:s}=e,u=t.useState("open"),c=t.useState("activeTriggerElement"),d=t.useState(n?"popupElement":"positionerElement"),p=t.context.triggerElements,g=r.useRef(null);void 0===i&&null===g.current&&(g.current=new f.k({open:u,transitionStatus:void 0,referenceElement:c,floatingElement:d,triggerElements:p,onOpenChange:s,floatingId:a,syncOnly:!0,nested:o}));let m=null!=i?i:g.current;t.useSyncedValue("floatingId",a),(0,l.W)(()=>{let e={open:u,floatingId:a,referenceElement:c,floatingElement:d};(0,h.kK)(c)&&(e.domReferenceElement=c),m.state.positionReference===m.state.referenceElement&&(e.positionReference=c),m.update(e)},[u,a,c,d,m]),m.context.onOpenChange=s,m.context.nested=o}({popupStore:u,treatPopupAsFloatingElement:n,floatingRootContext:u.state.floatingRootContext,floatingId:i,nested:a,onOpenChange:u.setOpen}),{store:u,internalStore:s.current}}function k(e,t,n){var r;let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t?e.preventUnmountingOnClose=!1:i&&(e.preventUnmountingOnClose=!0);let a=null!==(r=null==n?void 0:n.id)&&void 0!==r?r:null;(a||t)&&(e.activeTriggerId=a,e.activeTriggerElement=null!=n?n:null)}function w(e,t,n){var r,a,o;let s;let l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=n.reason,c=u===y.rC,d=t&&u===y.nH,h=!t&&(u===y._j||u===y.tv),f=(s=!1,n.preventUnmountOnClose=()=>{s=!0},()=>s);if(null===(r=(a=e.context).onOpenChange)||void 0===r||r.call(a,t,n),n.isCanceled)return;null===(o=l.onBeforeDispatch)||void 0===o||o.call(l),e.state.floatingRootContext.dispatchOpenChange(t,n);let p=()=>{let r={...l.extraState,open:t};d?r.instantType="focus":h?r.instantType="dismiss":c&&(r.instantType=void 0),k(r,t,n.trigger,f()),e.update(r)};c?i.flushSync(p):p()}function _(e,t,n,r){(0,u.h)(()=>{void 0===t&&!1===e.state.open&&n&&(e.state={...e.state,open:!0,activeTriggerId:r,preventUnmountingOnClose:!1})})}function S(e,t,n,i){let a=n.useState("isMountedByTrigger",e),o=function(e,t){let n=r.useRef(null),i=r.useRef(null);return r.useCallback(r=>
1{if(void 0===e)return;let a=!1;if(null!==n.current){let e=n.current,r=i.current,o=t.context.triggerElements.getById(e);r&&o===r&&(t.context.triggerElements.delete(e),a=!0),n.current=null,i.current=null}if(null!==r&&(n.current=e,i.current=r,t.context.triggerElements.add(e,r),a=!0),a){let e=t.context.triggerElements.size;t.select("open")&&t.state.triggerCount!==e&&t.set("triggerCount",e)}},[t,e])}(e,n),u=(0,s.R)(t=>{if(o(t),!t)return;let r=n.select("open"),a=n.select("activeTriggerId");if(a===e){n.update({activeTriggerElement:t,...r?i:null});return}null==a&&r&&n.update({activeTriggerId:e,activeTriggerElement:t,...i})});return(0,l.W)(()=>{a&&n.update({activeTriggerElement:t.current,...i})},[a,n,t,...Object.values(i)]),{registerTrigger:u,isMountedByThisTrigger:a}}function C(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{closeOnActiveTriggerUnmount:n=!1}=t,r=e.useState("open"),i=e.useState("triggerCount");(0,l.W)(()=>{if(!r){0!==e.state.triggerCount&&e.set("triggerCount",0);return}let t=e.context.triggerElements.size,i={};e.state.triggerCount!==t&&(i.triggerCount=t);let a=e.select("activeTriggerId"),o=null;if(a){let t=e.context.triggerElements.getById(a);t?t!==e.state.activeTriggerElement&&(i.activeTriggerElement=t):o=a}if(!o&&!a&&1===t){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;i.activeTriggerId=e,i.activeTriggerElement=n}}(void 0!==i.triggerCount||void 0!==i.activeTriggerId||void 0!==i.activeTriggerElement)&&e.update(i),o&&n&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===o&&!e.context.triggerElements.getById(o)){let t=(0,m.e)(y.YP);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[r,e,i,n])}function M(e,t,n){let{mounted:r,setMounted:i,transitionStatus:a}=(0,p.h)(e),o=t.useState("preventUnmountingOnClose"),l=!e&&o;t.useSyncedValues({mounted:r,transitionStatus:a,preventUnmountingOnClose:l});let u=(0,s.R)(()=>{var e,r;i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),null==n||n(),null===(e=(r=t.context).onOpenChangeComplete)||void 0===e||e.call(r,!1)});return(0,g.s)({enabled:r&&!e&&!l,open:e,ref:t.context.popupRef,onComplete(){e||u()}}),{forceUnmount:u,transitionStatus:a}}function A(e,t){e.useSyncedValues(t),(0,l.W)(()=>()=>{e.update({activeTriggerProps:a.Nu,inactiveTriggerProps:a.Nu,popupProps:a.Nu})},[e])}function E(e,t){(0,l.W)(()=>{t||null===e.state.openMethod||e.set("openMethod",null)},[t,e]),(0,l.W)(()=>()=>{null!==e.state.openMethod&&e.set("openMethod",null)},[e])}},10067:function(e,t,n){"use strict";n.d(t,{b:function(){return r}});class r{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(void 0!==n&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}},72485:function(e,t,n){"use strict";n.d(t,{dP:function(){return s},Rl:function(){return l},L$:function(){return f}});var r=n(96705),i=n(32083),a=n(21543),o=n(10067);function s(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new a.k({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new o.b,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0}),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:i.Nu,inactiveTriggerProps:i.Nu,popupProps:i.Nu}}function l(e,t,n=!1){return new a.k({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}let u=(0,r.P)(e=>e.triggerIdProp??e.activeTriggerId),c=(0,r.P)(e=>e.openProp??e.open),d=(0,r.P)(e=>(e.popupElement?.id??e.floatingId)||void 0);function h(e,t){return void 0!==t&&c(e)&&u(e)===t}let f={open:c,mounted:(0,r.P)(e=>e.mounted),transitionStatus:(0,r.P)(e=>e.transitionStatus),floatingRootContext:(0,r.P)(e=>e.floatingRootContext),triggerCount:(0,r.P)(e=>e.triggerCount),preventUnmountingOnClose:(0,r.P)(e=>e.preventUnmountingOnClose),payload:(0,r.P)(e=>e.payload),activeTriggerId:u,activeTriggerElement:(0,r.P)(e=>e.mounted?e.activeTriggerElement:null),popupId:d,isTriggerActive:(0,r.P)((e,t)=>void 0!==t&&u(e)===t),isOpenedByTrigger:(0,r.P)((e,t)=>h(e,t)),isMountedByTrigger:(0,r.P)((e,t)=>void 0!==t&&u(e)===t&&e.mounted),triggerProps:(0,r.P)((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:(0,r.P)((e,t)=>h(e,t)||void 0!==t&&c(e)&&null==u(e)&&1===e.triggerCount?d(e):void 0),popupProps:(0,r.P)(e=>e.popupProps),popupElement:(0,r.P)(e=>e.popupElement),positionerElement:(0,r.P)(e=>e.positionerElement)}},82216:function(e,t,n){"use strict";function r(e){return null==e?e:"current"in e?e.current:e}n.d(t,{q:function(){return r}})},34113:function(e,t,n){"use strict";function r(e,t){return"function"==typeof e?e(t):e}n.d(t,{C:function(){return r}})},79811:function(e,t,n){"use strict";n.d(t,{C3:function(){return o},I2:function(){return i},Y0:function(){return a}});var r=n(6184);let i=1;function a(e,t){return Math.max(0,e-t)}function o(e,t){if(t<=0)return 0;let n=(0,r.u)(e,0,t),a=t-n,o=n<=i,s=a<=i;return o&&s?n<=a?0:t:o?0:s?t:n}},11687:function(e,t,n){"use strict";n.d(t,{d:function(){return a}});var r=n(22087);let i="base-ui-disable-scrollbar",a={className:i,getElement:e=>(0,r.jsx)("style",{nonce:e,href:i,precedence:"base-ui:low",children:`.${i}{scrollbar-width:none}.${i}::-webkit-scrollbar{display:none}`})}},50579:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(28113),i=n(99752),a=n(84321),o=n(67178),s=n(61780),l=n(94952),u=n(14802),c=n(89069),d=n(55538),h=n(57572),f=n(319),p=n(3711);let g=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:a,rects:o,platform:s,elements:l,middlewareData:u}=t,{element:c,padding:d=0,offsetParent:h="real"}=(0,i.ku)(e,t)||{};if(null==c)return{};let f=(0,i.yd)(d),p={x:n,y:r},g=(0,i.Wh)(a),m=(0,i.I4)(g),y=await s.getDimensions(c),b="y"===g,v=b?"clientHeight":"clientWidth",x=o.reference[m]+o.reference[g]-
1p[g]-o.floating[m],k=p[g]-o.reference[g],w="real"===h?await s.getOffsetParent?.(c):l.floating,_=l.floating[v]||o.floating[m];_&&await s.isElement?.(w)||(_=l.floating[v]||o.floating[m]);let S=_/2-y[m]/2-1,C=Math.min(f[b?"top":"left"],S),M=Math.min(f[b?"bottom":"right"],S),A=_-y[m]-M,E=_/2-y[m]/2+(x/2-k/2),T=(0,i.uZ)(C,E,A),R=!u.arrow&&null!=(0,i.hp)(a)&&E!==T&&o.reference[m]/2-(E<C?C:M)-y[m]/2<0,N=R?E<C?E-C:E-A:0;return{[g]:p[g]+N,data:{[g]:T,centerOffset:E-T-N,...R&&{alignmentOffset:N}},reset:R}}}),m=(e,t)=>({...g(e),options:[e,t]}),y=(0,c.Cp)().fn,b={name:"hide",async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=await y(e);return{data:{referenceHidden:a.data?.referenceHidden||0===t&&0===n&&0===r&&0===i}}}};var v=n(50895);function x(e,t,n){let r="inline-start"===e||"inline-end"===e;return({top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"})[t]}function k(e,t,n){let{rects:r,placement:a}=e;return{side:x(t,(0,i.k3)(a),n),align:(0,i.hp)(a)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function w(e){var t,n;let{anchor:g,positionMethod:y="absolute",side:w="bottom",sideOffset:S=0,align:C="center",alignOffset:M=0,collisionBoundary:A,collisionPadding:E=5,sticky:T=!1,arrowPadding:R=5,disableAnchorTracking:N=!1,inline:P,keepMounted:L=!1,floatingRootContext:I,mounted:O,collisionAvoidance:$,shiftCrossAxis:j=!1,nodeId:D,adaptiveOrigin:F,lazyFlip:B=!1,externalTree:z}=e,[U,W]=r.useState(null);O||null===U||W(null);let H=$.side||"flip",q=$.align||"flip",G=$.fallbackAxisSide||"end",V="function"==typeof g?g:void 0,Z=(0,u.R)(V),Y=V?Z:g,X=(0,l.B)(g),Q=(0,l.B)(O),K="rtl"===(0,p.g)(),J=U||({top:"top",right:"right",bottom:"bottom",left:"left","inline-end":K?"left":"right","inline-start":K?"right":"left"})[w],ee="center"===C?J:"".concat(J,"-").concat(C),et=E,en="bottom"===w?1:0,er="top"===w?1:0,ei="right"===w?1:0,ea="left"===w?1:0;"number"==typeof et?et={top:et+en,right:et+ea,bottom:et+er,left:et+ei}:et&&(et={top:(et.top||0)+en,right:(et.right||0)+ea,bottom:(et.bottom||0)+er,left:(et.left||0)+ei});let eo={boundary:"clipping-ancestors"===A?"clippingAncestors":A,padding:et},es=r.useRef(null),el=(0,l.B)(S),eu=(0,l.B)(M),ec="function"!=typeof S?S:0,ed="function"!=typeof M?M:0,eh=[];P&&eh.push(P),eh.push((0,c.cv)(e=>{let t=k(e,w,K),n="function"==typeof el.current?el.current(t):el.current,r="function"==typeof eu.current?eu.current(t):eu.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},[ec,ed,K,w]));let ef="none"===q&&"shift"!==H,ep=!ef&&(T||j||"shift"===H),eg="none"===H?null:(0,c.RR)({...eo,padding:{top:et.top+1,right:et.right+1,bottom:et.bottom+1,left:et.left+1},mainAxis:!j&&"flip"===H,crossAxis:"flip"===q&&"alignment",fallbackAxisSideDirection:G}),em=ef?null:(0,c.uY)(e=>{let t=(0,a.P)(e.elements.floating).documentElement;return{...eo,rootBoundary:j?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:"none"!==q,crossAxis:ep,limiter:T||j?void 0:(0,c.dr)(e=>{if(!es.current)return{};let{width:t,height:n}=es.current.getBoundingClientRect(),r=(0,i.Qq)((0,i.k3)(e.placement)),a="y"===r?et.left+et.right:et.top+et.bottom;return{offset:("y"===r?t:n)/2+a/2}})}},[eo,T,j,et,q]);"shift"===H||"shift"===q||"center"===C?eh.push(em,eg):eh.push(eg,em),eh.push((0,c.dp)({...eo,apply(e){let{elements:{floating:t},availableWidth:n,availableHeight:r,rects:i}=e;if(!Q.current)return;let a=t.style;a.setProperty("--available-width","".concat(n,"px")),a.setProperty("--available-height","".concat(r,"px"));let s=(0,o.Jj)(t).devicePixelRatio||1,{x:l,y:u,width:c,height:d}=i.reference,h=(Math.round((l+c)*s)-Math.round(l*s))/s,f=(Math.round((u+d)*s)-Math.round(u*s))/s;a.setProperty("--anchor-width","".concat(h,"px")),a.setProperty("--anchor-height","".concat(f,"px"))}}),m(e=>({element:es.current||(0,a.P)(e.elements.floating).createElement("div"),padding:R,offsetParent:"floating"}),[R]),{name:"transformOrigin",fn(e){var t,n,r;let{elements:a,middlewareData:o,placement:s,rects:l,y:u}
1=e,c=(0,i.k3)(s),d=(0,i.Qq)(c),h=es.current,f=(null===(t=o.arrow)||void 0===t?void 0:t.x)||0,p=(null===(n=o.arrow)||void 0===n?void 0:n.y)||0,g=(null==h?void 0:h.clientWidth)||0,m=(null==h?void 0:h.clientHeight)||0,y=f+g/2,b=p+m/2,v=Math.abs((null===(r=o.shift)||void 0===r?void 0:r.y)||0),x=l.reference.height/2,_="function"==typeof S?S(k(e,w,K)):S,C=v>_,M={top:"".concat(y,"px calc(100% + ").concat(_,"px)"),bottom:"".concat(y,"px ").concat(-_,"px"),left:"calc(100% + ".concat(_,"px) ").concat(b,"px"),right:"".concat(-_,"px ").concat(b,"px")}[c],A="".concat(y,"px ").concat(l.reference.y+x-u,"px");return a.floating.style.setProperty("--transform-origin",ep&&"y"===d&&C?A:M),{}}},b,F),(0,s.W)(()=>{!O&&I&&I.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[O,I]);let ey=r.useMemo(()=>({elementResize:!N&&"undefined"!=typeof ResizeObserver,layoutShift:!N&&"undefined"!=typeof IntersectionObserver}),[N]),{refs:eb,elements:ev,x:ex,y:ek,middlewareData:ew,update:e_,placement:eS,context:eC,isPositioned:eM,floatingStyles:eA}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{nodeId:t,externalTree:n}=e,i=(0,h.$)(e),a=e.rootContext||i,l=a.useState("referenceElement"),u=a.useState("floatingElement"),f=a.useState("domReferenceElement"),p=a.useState("open"),g=a.useState("floatingId"),[m,y]=r.useState(null),[b,v]=r.useState(void 0),[x,k]=r.useState(void 0),w=r.useRef(null),_=(0,d.ay)(n),S=r.useMemo(()=>({reference:l,floating:u,domReference:f}),[l,u,f]),C=(0,c.YF)({...e,elements:{...S,...m&&{reference:m}}}),M=(0,o.kK)(b)?b:null,A=void 0===x?a.state.floatingElement:x;a.useSyncedValue("referenceElement",null!=b?b:null),a.useSyncedValue("domReferenceElement",void 0===b?f:M),a.useSyncedValue("floatingElement",A);let E=r.useCallback(e=>{let t=(0,o.kK)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;y(t),C.refs.setReference(t)},[C.refs]),T=r.useCallback(e=>{((0,o.kK)(e)||null===e)&&(w.current=e,v(e)),((0,o.kK)(C.refs.reference.current)||null===C.refs.reference.current||null!==e&&!(0,o.kK)(e))&&C.refs.setReference(e)},[C.refs,v]),R=r.useCallback(e=>{k(e),C.refs.setFloating(e)},[C.refs]),N=r.useMemo(()=>({...C.refs,setReference:T,setFloating:R,setPositionReference:E,domReference:w}),[C.refs,T,R,E]),P=r.useMemo(()=>({...C.elements,domReference:f}),[C.elements,f]),L=r.useMemo(()=>({...C,dataRef:a.context.dataRef,open:p,onOpenChange:a.setOpen,events:a.context.events,floatingId:g,refs:N,elements:P,nodeId:t,rootStore:a}),[C,N,P,t,a,p,g]);return(0,s.W)(()=>{f&&(w.current=f)},[f]),(0,s.W)(()=>{a.context.dataRef.current.floatingContext=L;let e=null==_?void 0:_.nodesRef.current.find(e=>e.id===t);e&&(e.context=L)}),r.useMemo(()=>({...C,context:L,refs:N,elements:P,rootStore:a}),[C,N,P,L,a])}({rootContext:I,open:L?O:void 0,placement:ee,middleware:eh,strategy:y,whileElementsMounted:L?void 0:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,f.Me)(...t,ey)},nodeId:D,externalTree:z}),{sideX:eE,sideY:eT}=ew.adaptiveOrigin||v.Q,eR=eM?y:"fixed",eN=r.useMemo(()=>{let e=F?{position:eR,[eE]:ex,[eT]:ek}:{position:eR,...eA};return eM||(e.opacity=0),e},[F,eR,eE,ex,eT,ek,eA,eM]),eP=r.useRef(null);(0,s.W)(()=>{if(!O)return;let e=X.current,t="function"==typeof e?e():e,n=(_(t)?t.current:t)||null;n!==eP.current&&(eb.setPositionReference(n),eP.current=n)},[O,eb,Y,X]),r.useEffect(()=>{if(!O)return;let e=X.current;"function"!=typeof e&&_(e)&&e.current!==eP.current&&(eb.setPositionReference(e.current),eP.current=e.current)},[O,eb,Y,X]),r.useEffect(()=>{if(L&&O&&ev.reference&&ev.floating)return(0,f.Me)(ev.reference,ev.floating,e_,ey)},[L,O,ev,e_,ey]);let eL=(0,i.k3)(eS),eI=x(w,eL,K),eO=(0,i.hp)(eS)||"center",e$=!!(null===(t=ew.hide)||void 0===t?void 0:t.referenceHidden);(0,s.W)(()=>{B&&O&&eM&&W(eL)},[B,O,eM,eL]);let ej=r.useMemo(()=>{var e,t;return{position:"absolute",top:null===(e=ew.arrow)||void 0===e?void 0:e.y,left:null===(t=ew.arrow)||void 0===t?void 0:t.x}},[ew.arrow]),eD=(null===(n=ew.arrow)||void 0===n?void 0:n.centerOffset)!==0;return r.useMemo(()=>({positionerStyles:eN,arrowStyles:ej,arrowRef:es,arrowUncentered:eD,side:eI,align:eO,physicalSide:eL,anchorHidden:e$,refs:eb,context:eC,isPositioned:eM,update:e_}),[eN,ej,es,eD,eI,eO,eL,e$,eb,eC,eM,e_])}function _(e){return null!=e&&"current"in e}},25376:function(e,t,n){"use strict";n.d(t,{G:function(){return o}});var r=n(52443),i=n(99952),a=n(84591);function o(e,t,n){let{styles:o,transitionStatus:s,props:l,refs:u,hidden:c,inert:d=!1}=n,h={...o};return d&&(h.pointerEvents="none"),(0,i.E)("div",e,{state:t,ref:u,props:[{role:"presentation",hidden:c,style:h},(0,a.g)(s),l],stateAttributesMapping:r.SD})}},22905:function(e,t,n){"use strict";function r(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}n.d(t,{O:function(){return r}})},32083:function(e,t,n){"use strict";function r(){}n.d(t,{LZ:function(){return i},Nu:function(){return a},dG:function(){return r}});let i=Object.freeze([]),a=Object.freeze({})},44037:function(e,t,n){"use strict";let r;n.d(t,{$6:function(){return u},IR:function(){return c},s8:function(){return s},z2:function(){return l}});var i=n(28113),a=n(43116);let o=[];function s(){return r}function l(e){o.push(e)}function u(e){let t=(t,n)=>{let i;let s=(0,a.B)(d).current;try{for(let e of(r=s,o))e.before(s);for(let r of(i=e(t,n),o))r.after(s);s.didInitialize=!0}finally{r=void 0}return i};return t.displayName=e.displayName||e.name,t}function c(e){return i.forwardRef(u(e))}function d(){return{didInitialize:!1}}},64104:function(e,t,n){"use strict";var r;let i=(r="https://base-ui.com/production-error",function(e,...t){let n=new URL(r);
1return n.searchParams.set("code",e.toString()),t.forEach(e=>n.searchParams.append("args[]",e)),`Base UI error #${e}; visit ${n} for the full message.`});t.Z=i},61254:function(e,t,n){"use strict";n.d(t,{P:function(){return i}});var r=n(23674);function i(e){return(0,r.c)(19)?e:e?"true":void 0}},93645:function(e,t,n){"use strict";function r(e){return null==e||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled")}n.d(t,{R:function(){return r}})},45845:function(e,t,n){"use strict";function r(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}n.d(t,{y:function(){return r}})},22922:function(e,t,n){"use strict";function r(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}n.d(t,{P:function(){return r}})},84321:function(e,t,n){"use strict";function r(e){return e?.ownerDocument||document}n.d(t,{P:function(){return r}})},53e3:function(e,t,n){"use strict";n.d(t,{a0:function(){return i}});var r=n(33949);let i="undefined"!=typeof CSS&&!!CSS.supports?.("-webkit-backdrop-filter:none");i||r.G_.includes("firefox"),i||r.G_.includes("chrom")},60267:function(e,t,n){"use strict";n.d(t,{J:function(){return i}});var r=n(33949);let i=/jsdom|happydom/.test(r.G_)},43883:function(e,t,n){"use strict";n.d(t,{OB:function(){return s},W3:function(){return l},tW:function(){return o},vF:function(){return i}});var r=n(33949);let i=/^i(os$|p)/.test(r.V7)||"macintel"===r.V7&&r.Rq>1,a="android",o=r.V7===a||r.G_.includes(a),s=!i&&r.V7.startsWith("mac");r.V7.startsWith("win"),o||/^(linux|chrome os)/.test(r.V7);let l=s||i},33949:function(e,t,n){"use strict";n.d(t,{G_:function(){return o},Rq:function(){return a},V7:function(){return s}});let{userAgent:r,platform:i,maxTouchPoints:a}="undefined"==typeof navigator?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0},o=r.toLowerCase(),s=i.toLowerCase()},23674:function(e,t,n){"use strict";n.d(t,{c:function(){return i}});let r=parseInt(n(28113).version,10);function i(e){return r>=e}},1988:function(e,t,n){"use strict";n.d(t,{w:function(){return a}});var r,i=n(28113);let a={...r||(r=n.t(i,2))}},78632:function(e,t,n){"use strict";n.d(t,{u:function(){return u}});var r=n(28113),i=n(65253),a=n(18604),o=n(14802),s=n(61780),l=n(32083);class u extends i.y{useSyncedValue(e,t){r.useDebugValue(e);let n=this;(0,s.W)(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;(0,s.W)(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this,n=Object.values(e);(0,s.W)(()=>{t.update(e)},[t,...n])}useControlledProp(e,t){r.useDebugValue(e);let n=this,i=void 0!==t;(0,s.W)(()=>{i&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,i])}select(e,t,n,r){return(0,this.selectors[e])(this.state,t,n,r)}useState(e,t,n,i){return r.useDebugValue(e),(0,a.o)(this,this.selectors[e],t,n,i)}useContextCallback(e,t){r.useDebugValue(e);let n=(0,o.R)(null!=t?t:l.dG);this.context[e]=n}useStateSetter(e){let t=r.useRef(void 0);return void 0===t.current&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;let r=(n="function"==typeof e?e:this.selectors[e])(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}constructor(e,t={},n){super(e),this.context=t,this.selectors=n}}},65253:function(e,t,n){"use strict";n.d(t,{y:function(){return i}});var r=n(18604);class i{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,i){return(0,r.o)(this,e,t,n,i)}}},96705:function(e,t,n){"use strict";n.d(t,{P:function(){return i}});var r=n(64104);let i=(e,t,n,i,a,o,...s)=>{let l;if(s.length>0)throw Error((0,r.Z)(1));if(e&&t&&n&&i&&a&&o)l=(r,s,l,u)=>{let c=e(r,s,l,u),d=t(r,s,l,u);return o(c,d,n(r,s,l,u),i(r,s,l,u),a(r,s,l,u),s,l,u)};else if(e&&t&&n&&i&&a)l=(r,o,s,l)=>{let u=e(r,o,s,l);return a(u,t(r,o,s,l),n(r,o,s,l),i(r,o,s,l),o,s,l)};else if(e&&t&&n&&i)l=(r,a,o,s)=>i(e(r,a,o,s),t(r,a,o,s),n(r,a,o,s),a,o,s);else if(e&&t&&n)l=(r,i,a,o)=>n(e(r,i,a,o),t(r,i,a,o),i,a,o);else if(e&&t)l=(n,r,i,a)=>t(e(n,r,i,a),r,i,a);else if(e)l=e;else throw Error("Missing arguments");return l}},18604:function(e,t,n){"use strict";n.d(t,{o:function(){return u}});var r=n(28113),i=n(64218),a=n(10345),o=n(23674),s=n(44037);let l=(0,o.c)(19)?function(e,t,n,a,o){let l;let u=(0,s.s8)();if(!u)return function(e,t,n,a,o){let s=r.useCallback(()=>t(e.getSnapshot(),n,a,o),[e,t,n,a,o]);return(0,i.useSyncExternalStore)(e.subscribe,s,s)}(e,t,n,a,o);let c=u.syncIndex;return u.syncIndex+=1,u.didInitialize?(l=u.syncHooks[c]).store===e&&l.selector===t&&Object.is(l.a1,n)&&Object.is(l.a2,a)&&Object.is(l.a3,o)||(l.store!==e&&(u.didChangeStore=!0),l.store=e,l.selector=t,l.a1=n,l.a2=a,l.a3=o,l.value=t(e.getSnapshot(),n,a,o)):(l={store:e,selector:t,a1:n,a2:a,a3:o,value:t(e.getSnapshot(),n,a,o)},u.syncHooks.push(l)),l.value}:function(e,t,n,r,i){return(0,a.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))};function u(e,t,n,r,i){return l(e,t,n,r,i)}(0,s.z2)({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(t=!0,r.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}
1),(0,i.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}})},82254:function(e,t,n){"use strict";n.d(t,{$:function(){return s},p:function(){return l}});var r=n(43116),i=n(67320);class a{request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,this.callbacksCount-=1)}constructor(){this.callbacks=[],this.callbacksCount=0,this.nextId=1,this.startId=1,this.isScheduled=!1,this.tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1){var r;null===(r=t[n])||void 0===r||r.call(t,e)}}}}let o=new a;class s{static create(){return new s}static request(e){return o.request(e)}static cancel(e){return o.cancel(e)}request(e){this.cancel(),this.currentId=o.request(()=>{this.currentId=null,e()})}constructor(){this.currentId=null,this.cancel=()=>{null!==this.currentId&&(o.cancel(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.cancel}}function l(){let e=(0,r.B)(s.create).current;return(0,i.F)(e.disposeEffect),e}},23857:function(e,t,n){"use strict";n.d(t,{u:function(){return i}});var r=n(28113);function i(e){let{controlled:t,default:n,name:i,state:a="value"}=e,{current:o}=r.useRef(void 0!==t),[s,l]=r.useState(n),u=r.useCallback(e=>{o||l(e)},[]);return[o?t:s,u]}},50778:function(e,t,n){"use strict";n.d(t,{M:function(){return s}});var r=n(28113),i=n(1988);let a=0,o=i.w.useId;function s(e,t){if(void 0!==o){let n=o();return null!=e?e:t?"".concat(t,"-").concat(n):n}return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mui",[n,i]=r.useState(e),o=e||n;return r.useEffect(()=>{null==n&&(a+=1,i("".concat(t,"-").concat(a)))},[n,t]),o}(e,t)}},61780:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(28113);let i="undefined"!=typeof document?r.useLayoutEffect:()=>{}},50891:function(e,t,n){"use strict";n.d(t,{j:function(){return a},r:function(){return i}});var r=n(43116);function i(e,t,n,i){let a=(0,r.B)(o).current;return(a.refs[0]!==e||a.refs[1]!==t||a.refs[2]!==n||a.refs[3]!==i)&&s(a,[e,t,n,i]),a.callback}function a(e){let t=(0,r.B)(o).current;return(t.refs.length!==e.length||t.refs.some((t,n)=>t!==e[n]))&&s(t,e),t.callback}function o(){return{callback:null,cleanup:null,refs:[]}}function s(e,t){if(e.refs=t,t.every(e=>null==e)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=n){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(null!=i)switch(typeof i){case"function":{let t=i(n);"function"==typeof t&&(r[e]=t);break}case"object":i.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(null!=n)switch(typeof n){case"function":{let t=r[e];"function"==typeof t?t():n(null);break}case"object":n.current=null}}}}}}},15763:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var r=n(28113);function i(e){let t=r.useRef(!0);t.current&&(t.current=!1,e())}},67320:function(e,t,n){"use strict";n.d(t,{F:function(){return a}});var r=n(28113);let i=[];function a(e){r.useEffect(e,i)}},43116:function(e,t,n){"use strict";n.d(t,{B:function(){return a}});var r=n(28113);let i={};function a(e,t){let n=r.useRef(i);return n.current===i&&(n.current=e(t)),n}},51713:function(e,t,n){"use strict";n.d(t,{P:function(){return y}});var r=n(67178),i=n(22905),a=n(53e3),o=n(43883),s=n(84321),l=n(61780),u=n(94573),c=n(82254),d=n(32083);let h={},f={},p="";class g{acquire(e){return this.lockCount+=1,1===this.lockCount&&null===this.restore&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}lock(e){if(0===this.lockCount||null!==this.restore)return;let t=(0,s.P)(e).documentElement,n=(0,r.Jj)(t).getComputedStyle(t).overflowY;if("hidden"===n||"clip"===n){this.restore=d.dG;return}let l=o.vF||!function(e){if("undefined"==typeof document)return!1;let t=(0,s.P)(e);return(0,r.Jj)(t).innerWidth-t.documentElement.clientWidth>0}(e);this.restore=l?function(e){let t=(0,s.P)(e),n=t.documentElement,i=t.body,a=(0,r.ao)(n)?n:i,o={overflowY:a.style.overflowY,overflowX:a.style.overflowX};return Object.assign(a.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(a.style,o)}}(e):function(e){var t,n;let o=(0,s.P)(e),l=o.documentElement,u=o.body,d=(0,r.Jj)(l),g=0,m=0,y=!1,b=c.$.create();
1if(a.a0&&(null!==(n=null===(t=d.visualViewport)||void 0===t?void 0:t.scale)&&void 0!==n?n:1)!==1)return()=>{};function v(){let t=d.getComputedStyle(l),n=d.getComputedStyle(u),i=(t.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";g=l.scrollTop,m=l.scrollLeft,h={scrollbarGutter:l.style.scrollbarGutter,overflowY:l.style.overflowY,overflowX:l.style.overflowX},p=l.style.scrollBehavior,f={position:u.style.position,height:u.style.height,width:u.style.width,boxSizing:u.style.boxSizing,overflowY:u.style.overflowY,overflowX:u.style.overflowX,scrollBehavior:u.style.scrollBehavior};let a=l.scrollHeight>l.clientHeight,o=l.scrollWidth>l.clientWidth,c="scroll"===t.overflowY||"scroll"===n.overflowY,b="scroll"===t.overflowX||"scroll"===n.overflowX,v=Math.max(0,d.innerWidth-u.clientWidth),x=Math.max(0,d.innerHeight-u.clientHeight),k=parseFloat(n.marginTop)+parseFloat(n.marginBottom),w=parseFloat(n.marginLeft)+parseFloat(n.marginRight),_=(0,r.ao)(l)?l:u;if(y=function(e){if(!("undefined"!=typeof CSS&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||"undefined"==typeof document)return!1;let t=(0,s.P)(e),n=t.documentElement,i=t.body,a=(0,r.ao)(n)?n:i,o=a.style.overflowY,l=n.style.scrollbarGutter;n.style.scrollbarGutter="stable",a.style.overflowY="scroll";let u=a.offsetWidth;a.style.overflowY="hidden";let c=a.offsetWidth;return a.style.overflowY=o,n.style.scrollbarGutter=l,u===c}(e)){l.style.scrollbarGutter=i,_.style.overflowY="hidden",_.style.overflowX="hidden";return}Object.assign(l.style,{scrollbarGutter:i,overflowY:"hidden",overflowX:"hidden"}),(a||c)&&(l.style.overflowY="scroll"),(o||b)&&(l.style.overflowX="scroll"),Object.assign(u.style,{position:"relative",height:k||x?"calc(100dvh - ".concat(k+x,"px)"):"100dvh",width:w||v?"calc(100vw - ".concat(w+v,"px)"):"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),u.scrollTop=g,u.scrollLeft=m,l.setAttribute("data-base-ui-scroll-locked",""),l.style.scrollBehavior="unset"}function x(){Object.assign(l.style,h),Object.assign(u.style,f),y||(l.scrollTop=g,l.scrollLeft=m,l.removeAttribute("data-base-ui-scroll-locked"),l.style.scrollBehavior=p)}v();let k=(0,i.O)(d,"resize",function(){x(),b.request(v)});return()=>{b.cancel(),x(),"function"==typeof d.removeEventListener&&k()}}(e)}constructor(){this.lockCount=0,this.restore=null,this.timeoutLock=u.V.create(),this.timeoutUnlock=u.V.create(),this.release=()=>{this.lockCount-=1,0===this.lockCount&&this.restore&&this.timeoutUnlock.start(0,this.unlock)},this.unlock=()=>{if(0===this.lockCount&&this.restore){var e;null===(e=this.restore)||void 0===e||e.call(this),this.restore=null}}}}let m=new g;function y(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,l.W)(()=>{if(e)return m.acquire(t)},[e,t])}},14802:function(e,t,n){"use strict";n.d(t,{R:function(){return s}});var r=n(1988),i=n(43116);let a=r.w.useInsertionEffect,o=a&&a!==r.w.useLayoutEffect?a:e=>e();function s(e){let t=(0,i.B)(l).current;return t.next=e,o(t.effect),t.trampoline}function l(){let e={next:void 0,callback:u,trampoline:function(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return null===(t=e.callback)||void 0===t?void 0:t.call(e,...r)},effect:()=>{e.callback=e.next}};return e}function u(){}},94573:function(e,t,n){"use strict";n.d(t,{K:function(){return o},V:function(){return a}});var r=n(43116),i=n(67320);class a{static create(){return new a}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}}function o(){let e=(0,r.B)(a.create).current;return(0,i.F)(e.disposeEffect),e}},94952:function(e,t,n){"use strict";n.d(t,{B:function(){return a}});var r=n(61780),i=n(43116);function a(e){let t=(0,i.B)(o,e).current;return t.next=e,(0,r.W)(t.effect),t}function o(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}},37901:function(e,t,n){"use strict";n.d(t,{Q:function(){return a},j:function(){return i}});
1let r={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},i={...r,position:"fixed",top:0,left:0},a={...r,position:"absolute"}},22345:function(e,t,n){"use strict";n.d(t,{T:function(){return f}});var r=n(28113),i=n.t(r,2),a=n(55331),o=Object.defineProperty,s=i[" useEffectEvent ".trim().toString()],l=i[" useInsertionEffect ".trim().toString()];function u(e){if("function"==typeof s)return s(e);let t=r.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof l?l(()=>{t.current=e}):(0,a.b)(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}o(u,"name",{value:"useEffectEvent",configurable:!0});var c=Object.defineProperty,d=(e,t)=>c(e,"name",{value:t,configurable:!0}),h=i[" useInsertionEffect ".trim().toString()]||a.b;function f({prop:e,defaultProp:t,onChange:n=d(()=>{},"onChange"),caller:i}){let[a,o,s]=p({defaultProp:t,onChange:n}),l=void 0!==e;return[l?e:a,r.useCallback(t=>{if(l){let n=g(t)?t(e):t;n!==e&&s.current?.(n)}else o(t)},[l,e,o,s])]}function p({defaultProp:e,onChange:t}){let[n,i]=r.useState(e),a=r.useRef(n),o=r.useRef(t);return h(()=>{o.current=t},[t]),r.useEffect(()=>{a.current!==n&&(o.current?.(n),a.current=n)},[n,a]),[n,i,o]}function g(e){return"function"==typeof e}d(f,"useControllableState"),d(p,"useUncontrolledState"),d(g,"isFunction");var m=Symbol("RADIX:SYNC_STATE");d(function(e,t,n,i){let{prop:a,defaultProp:o,onChange:s,caller:l}=t,c=void 0!==a,d=u(s),h=[{...n,state:o}];i&&h.push(i);let[f,p]=r.useReducer((t,n)=>{if(n.type===m)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&d(r.state),r},...h),g=f.state,y=r.useRef(g);r.useEffect(()=>{y.current===g||(y.current=g,c||d(g))},[g,y,c]);let b=r.useMemo(()=>void 0!==a?{...f,state:a}:f,[f,a]);return r.useEffect(()=>{c&&!Object.is(a,f.state)&&p({type:m,state:a})},[a,f.state,c]),[b,p]},"useControllableStateReducer")},55331:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(28113),i=globalThis?.document?r.useLayoutEffect:()=>{}},67496:function(e,t,n){"use strict";let r,i,a,o;n.d(t,{I:function(){return eB}});let s={data:"data",characterEscape:"characterEscape",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",strong:"strong",strongSequence:"strongSequence",strongText:"strongText"},l={eof:null,asterisk:42,underscore:95,tilde:126};var u,c=n(56720);function d(e){return!!(e&&e>=55296&&e<=56319)}function h(e){return!!(e&&e>=56320&&e<=57343)}function f(e,t,n){if(t._bufferIndex<2)return e;let r=n({start:{...t,_bufferIndex:t._bufferIndex-2},end:t}).codePointAt(0);return r&&r>=65536?r:e}var p=class{cachedValue=void 0;constructor(e,t,n){this.previousCode=e,this.nowPoint=t,this.sliceSerialize=n}value(){return void 0===this.cachedValue&&(this.cachedValue=function(e,t,n){let r=e>=65536?2:1;if(t._bufferIndex<1+r)return null;let i=t._bufferIndex-r-2,a=n({start:{...t,_bufferIndex:i>=0?i:0},end:{...t,_bufferIndex:t._bufferIndex-r}}),o=a.charCodeAt(a.length-1);if(Number.isNaN(o))return null;if(a.length<2||o<56320||57343<o)return o;let s=a.codePointAt(0);return s&&s>=65536?s:o}(this.previousCode,this.nowPoint,this.sliceSerialize)),this.cachedValue}};function g(e,t,n){let r=n({start:t,end:{...t,_bufferIndex:t._bufferIndex+2}}).codePointAt(0);return r&&r>=65536?r:e}let m=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9
1618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],y=[12288,12288,65281,65376,65504,65510],b=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],v=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],x=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141],k=(e,t)=>{let n=0,r=Math.floor(e.length/2)-1;for(;n<=r;){let i=Math.floor((n+r)/2),a=2*i;if(t<e[a])r=i-1;else{if(!(t>e[a+1]))return!0;n=i+1}}return!1},[w,_]=function(e){let t=e[0],n=e[1];for(let r=0;r<e.length;r+=2){let i=e[r],a=e[r+1];if(19968>=i&&19968<=a)return[i,a];a-i>n-t&&(t=i,n=a)}return[t,n]}(x),S=e=>!(e<161)&&!(e>1114109)&&k(m,e),C=e=>!(e<12288)&&!(e>65510)&&k(y,e),M=e=>!(e<8361)&&!(e>65518)&&k(b,e),A=e=>!(e<32)&&!(e>10630)&&k(v,e),E=e=>e>=w&&e<=_||!(e<4352)&&!(e>262141)&&k(x,e),T=N(/\p{P}|\p{S}/u),R=N(/\s/);function N(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCodePoint(t))}}let P={attentionSideAfter:2,characterGroupPunctuation:2,characterGroupWhitespace:1};function L(e){return!!(e&P.characterGroupWhitespace)}function I(e){return(e&r.cjkPunctuation)===P.characterGroupPunctuation}function O(e){return!!(e&r.cjk)}function $(e){return!!(e&r.cjkOrIvs)}function j(e){return e===r.nonEmojiGeneralUseVS}function D(e){return!!(e&r.spaceOrPunctuation)}var F=n(48581);function B(e){if(e===l.eof||(0,F.z3)(e)||R(e))return P.characterGroupWhitespace;let t=0;if(e>=4352){if(null!==e&&e>=65024&&e<=65038)return r.nonEmojiGeneralUseVS;switch(function(e){if(!e||e<4352)return!1;switch(!function(e){if(!Number.isSafeInteger(e))throw TypeError(`Expected a code point, got \`${typeof e}\`.`)}(e),S(e)?"ambiguous":C(e)?"fullwidth":M(e)?"halfwidth":A(e)?"narrow":E(e)?"wide":"neutral"){case"fullwidth":case"halfwidth":return!0;case"wide":return!/^\p{Emoji_Presentation}/u.test(String.fromCodePoint(e));case"narrow":return!1;case"ambiguous":return 917760<=e&&e<=917999&&null;case"neutral":return/^\p{sc=Hangul}/u.test(String.fromCodePoint(e))}}(e)){case null:return r.ivs;case!0:t|=r.cjk}}return T(e)&&(t|=P.characterGroupPunctuation),t}function z(e,t,n){if(!j(e))return e;let i=t(),a=B(i);return!i||L(a)?e:65025===n&&i&&!(i<8216)&&(8216===i||8217===i||8220===i||8221===i)?r.cjkPunctuation:a&~r.ivs}(u=r||(r={})).spaceOrPunctuation=3,u.cjk=4096,u.cjkPunctuation=4098,u.ivs=8192,u.cjkOrIvs=12288,u.nonEmojiGeneralUseVS=16384,u.variationSelector=24576,u.ivsToCjkRightShift=1;var U=n(51425),W=n(75736);let H={name:"attention",resolveAll:function(e,t){let n,r,i,a,o,l,u,d,h=-1;for(;++h<e.length;)if("enter"===e[h][0]&&"attentionSequence"===e[h][1].type&&e[h][
11]._close){for(n=h;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[h][1]).charCodeAt(0)){if((e[n][1]._close||e[h][1]._open)&&(e[h][1].end.offset-e[h][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[h][1].end.offset-e[h][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[h][1].end.offset-e[h][1].start.offset>1?2:1;let f={...e[n][1].end},p={...e[h][1].start};q(f,-l),q(p,l),a={type:l>1?s.strongSequence:s.emphasisSequence,start:f,end:{...e[n][1].end}},o={type:l>1?s.strongSequence:s.emphasisSequence,start:{...e[h][1].start},end:p},i={type:l>1?s.strongText:s.emphasisText,start:{...e[n][1].end},end:{...e[h][1].start}},r={type:l>1?s.strong:s.emphasis,start:{...a.start},end:{...o.end}},e[n][1].end={...a.start},e[h][1].start={...o.end},u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=(0,U.V)(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=(0,U.V)(u,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",i,t]]),(0,c.ok)(t.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated"),u=(0,U.V)(u,(0,W.C)(t.parser.constructs.insideSpan.null,e.slice(n+1,h),t)),u=(0,U.V)(u,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[h][1].end.offset-e[h][1].start.offset?(d=2,u=(0,U.V)(u,[["enter",e[h][1],t],["exit",e[h][1],t]])):d=0,(0,U.d)(e,n-1,h-n+3,u),h=n+u.length-d-2;break}}for(h=-1;++h<e.length;)"attentionSequence"===e[h][1].type&&(e[h][1].type="data");return e},tokenize:function(e,t){let n;let r=this.parser.constructs.attentionMarkers.null,{now:i,sliceSerialize:a,previous:o}=this,s=h(o)?f(o,i(),a):o,u=B(s),m=new p(s,i(),a),y=z(u,m.value.bind(m),s);return function(o){return(0,c.ok)(o===l.asterisk||o===l.underscore,"expected asterisk or underscore"),n=o,e.enter("attentionSequence"),function o(u){if(u===n)return e.consume(u),o;let h=e.exit("attentionSequence"),f=B(d(u)?g(u,i(),a):u);(0,c.ok)(r,"expected `attentionMarkers` to be populated");let p=I(y),m=p||L(y),b=I(f),v=b||L(f),x=$(y),k=!v||b&&(m||x)||r.includes(u),w=!m||p&&(v||O(f))||r.includes(s);return h._open=!!(n===l.asterisk?k:k&&(D(y)||!w)),h._close=!!(n===l.asterisk?w:w&&(D(f)||!k)),t(u)}(o)}}};function q(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}function G(){let e=this.data();(e.micromarkExtensions||(e.micromarkExtensions=[])).push({text:{[l.asterisk]:H,[l.underscore]:H},insideSpan:{null:[H]}})}let V=";".codePointAt(0)??l.eof,Z="&".codePointAt(0)??l.eof;function Y(e,t,n,r){return J(e,t,n,r,Q(e,t,n),1)}function X(e,t,n,r){return J(e,t,n,r,K(e,t,n),2)}function Q(e,t,n){return n.options.emphasis||"*"}function K(e,t,n){return n.options.strong||"*"}function J(e,t,n,r,i,a){let o=i.repeat(a),s=n.enter(1===a?"emphasis":"strong"),u=n.createTracker(r),c=u.move(o),d=u.move(n.containerPhrasing(e,{after:i,before:c,...u.current()})),h=function(e,t,n,r){var i,a,o;let s=ec(r),u=el(r);if(null!==(i=s)&&56320<=i&&i<=57343||(a=s,o=u,j(B(a))&&(null===o||o===l.eof))){let r=eo(e,t,n,-1);r&&(s=ec(r),u=el(r))}return{current:s,previous:u}}(e,t,n,r.before),f=function(e,t,n,r){let i=eu(r);if(!(null!==i&&55296<=i&&i<=56319))return i;let a=eo(e,t,n,1);return a?eu(a):i}(e,t,n,r.after),p=et(h,eu(d),i,"open");p.inside&&d&&(d=function(e){let[t=""]=[...e];return es(t.codePointAt(0)??l.eof)+e.slice(t.length)}(d));let g=et({current:ec(d),previous:el(d)},f,i,"close");g.inside&&d&&(d=function(e){let t=[...e],n=t.pop();return`${t.join("")}${es(n?.codePointAt(0)??l.eof)}`}(d));let m=u.move(o);s();let y=g.outside&&function(e,t){if(!e)return!1;let n=t.indexStack.at(-1);if("number"!=typeof n)return!1;let r=e.children[n+1];return r?.type==="text"&&(eu(r.value)??0)>65535}(t,n);return n.attentionEncodeSurroundingInfo={after:g.outside&&!y,before:p.outside},n.cjkFriendlyEncodeAfterSupplementaryText=y,c+d+m}function ee(e,t,n,r){if(!n.cjkFriendlyEncodeAfterSupplementaryText)return n.safe(e.value,r);n.cjkFriendlyEncodeAfterSupplementaryText=!1;let[i=""]=[...e.value],a=e.value.slice(i.length);return`${es(i.codePointAt(0)??l.eof)}${n.safe(a,{...r,before:";"})}`}function et(e,t,n,r){let i=ea(e),a=B(t);
1if(!$(i)&&!$(a))return"open"===r?en(i,a,n):en(a,i,n);let o={inside:!0,outside:!0};for(let i of[{inside:!1,outside:!1},{inside:!0,outside:!1},{inside:!1,outside:!0},o]){let a="open"===r?i.outside?ed:e:i.inside?ed:e,o="open"===r?i.inside?eh:t:i.outside?eh:t;if("open"===r?function(e,t,n){let r=ea(t),{close:i,open:a}=er(r,B(n));return"_"===e?a&&(D(r)||!i):a}(n,a,o):function(e,t,n){let r=B(n),{close:i,open:a}=er(ea(t),r);return"_"===e?i&&(D(r)||!a):i}(n,a,o))return i}return o}function en(e,t,n){return ei(e)?ei(t)?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:L(t)?{inside:!0,outside:!0}:{inside:!1,outside:!0}:L(e)?ei(t)?{inside:!1,outside:!1}:L(t)?{inside:!0,outside:!0}:{inside:!1,outside:!1}:L(t)?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function er(e,t){let n=I(e),r=n||L(e),i=I(t),a=i||L(t);return{open:!a||i&&(r||$(e)),close:!r||n&&(a||O(t))}}function ei(e){return!L(e)&&!I(e)}function ea(e){let t=B(e.current);return null!==e.current&&j(t)?z(t,()=>e.previous,e.current):t}function eo(e,t,n,r){if(!t)return;let i=n.indexStack.at(-1),a=t.children,o="number"==typeof i?i:a.indexOf(e);if(!(o<0))return function e(t){return t&&"object"==typeof t?"value"in t&&"string"==typeof t.value?t.value:"alt"in t&&"string"==typeof t.alt?t.alt:"children"in t&&Array.isArray(t.children)?t.children.map(e).join(""):"":""}(a[o+r])||void 0}function es(e){return`&#x${(e??0).toString(16).toUpperCase()};`}function el(e){let t=[...e];return t.pop(),t.at(-1)?.codePointAt(0)??l.eof}function eu(e){return e.codePointAt(0)??l.eof}function ec(e){return[...e].at(-1)?.codePointAt(0)??l.eof}Y.peek=Q,X.peek=K;let ed={current:V,previous:l.eof},eh=Z;function ef(){let e=this.data();(e.toMarkdownExtensions||(e.toMarkdownExtensions=[])).push({handlers:{emphasis:Y,strong:X,text:ee}})}function ep(e){let t=this.data();(t.micromarkExtensions||(t.micromarkExtensions=[])).push(function(e){let t=(e||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,i){let{now:a,sliceSerialize:o,previous:u}=this,m=h(u)?f(u,a(),o):u,y=B(m),b=new p(m,a(),o),v=z(y,b.value.bind(b),m),x=this.events,k=0;return function(u){return((0,c.ok)(u===l.tilde,"expected `~`"),m===l.tilde&&x[x.length-1][1].type!==s.characterEscape)?i(u):(e.enter("strikethroughSequenceTemporary"),function s(u){let c=B(m);if(u===l.tilde)return k>1?i(u):(e.consume(u),k++,s);if(k<2&&!t)return i(u);let h=e.exit("strikethroughSequenceTemporary"),f=B(d(u)?g(u,a(),o):u),p=I(v)||L(v),y=I(f)||L(f),b=O(v)||c===r.ivs;return h._open=!y||f===P.attentionSideAfter&&(p||b),h._close=!p||c===P.attentionSideAfter&&(y||O(f)),n(u)}(u))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",a,t]],s=t.parser.constructs.insideSpan.null;s&&(0,U.d)(o,o.length,0,(0,W.C)(s,e.slice(r+1,n),t)),(0,U.d)(o,o.length,0,[["exit",a,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),(0,U.d)(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type=s.data);return e}};return null==t&&(t=!0),{text:{[l.tilde]:n},insideSpan:{null:[n]},attentionMarkers:{null:[l.tilde]}}}(e))}let eg=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],em=";".codePointAt(0)??l.eof,ey="&".codePointAt(0)??l.eof;function eb(e,t,n,r){let i=n.enter("strikethrough"),a=n.createTracker(r),o=a.move("~~"),s=a.move(n.containerPhrasing(e,{after:"~",before:o,...a.current()})),u=function(e,t,n,r){var i,a,o;let s=eT(r),u=eA(r);if(null!==(i=s)&&56320<=i&&i<=57343||(a=s,o=u,j(B(a))&&(null===o||o===l.eof))){let r=eC(e,t,n,-1);r&&(s=eT(r),u=eA(r))}return{current:s,previous:u}}(e,t,n,r.before),c=function(e,t,n,r){let i=eE(r);if(!(null!==i&&55296<=i&&i<=56319))return i;let a=eC(e,t,n,1);return a?eE(a):i}(e,t,n,r.after),d=ex(u,eE(s),"open");d.inside&&s&&(s=function(e){let[t=""]=[...e];return eM(t.codePointAt(0)??l.eof)+e.slice(t.length)}(s));
1let h=ex({current:eT(s),previous:eA(s)},c,"close");h.inside&&s&&(s=function(e){let t=[...e],n=t.pop();return`${t.join("")}${eM(n?.codePointAt(0)??l.eof)}`}(s));let f=a.move("~~");i();let p=h.outside&&function(e,t){if(!e)return!1;let n=t.indexStack.at(-1);if("number"!=typeof n)return!1;let r=e.children[n+1];return r?.type==="text"&&(eE(r.value)??0)>65535}(t,n);return n.attentionEncodeSurroundingInfo={after:h.outside&&!p,before:d.outside},n.cjkFriendlyEncodeAfterSupplementaryText=p,o+s+f}function ev(e,t,n,r){if(!n.cjkFriendlyEncodeAfterSupplementaryText)return n.safe(e.value,r);n.cjkFriendlyEncodeAfterSupplementaryText=!1;let[i=""]=[...e.value],a=e.value.slice(i.length);return`${eM(i.codePointAt(0)??l.eof)}${n.safe(a,{...r,before:";"})}`}function ex(e,t,n){let r=eS(e),i=B(t);if(!$(r)&&!$(i))return"open"===n?ek(r,i):ek(i,r);let a={inside:!0,outside:!0};for(let r of[{inside:!1,outside:!1},{inside:!0,outside:!1},{inside:!1,outside:!0},a]){let i="open"===n?r.outside?eR:e:r.inside?eR:e,a="open"===n?r.inside?eN:t:r.outside?eN:t;if("open"===n?function(e,t){let{open:n}=ew(eS(e),B(t));return n}(i,a):function(e,t){let n=B(t),{close:r}=ew(eS(e),n);return r}(i,a))return r}return a}function ek(e,t){return e_(e)?e_(t)?{inside:!1,outside:!1}:L(t)?{inside:!0,outside:!0}:{inside:!1,outside:!0}:L(e)?e_(t)?{inside:!1,outside:!1}:L(t)?{inside:!0,outside:!0}:{inside:!1,outside:!1}:L(t)?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function ew(e,t){let n=I(e),r=n||L(e),i=I(t),a=i||L(t);return{open:!a||i&&(r||$(e)),close:!r||n&&(a||O(t))}}function e_(e){return!L(e)&&!I(e)}function eS(e){let t=B(e.current);return null!==e.current&&j(t)?z(t,()=>e.previous,e.current):t}function eC(e,t,n,r){if(!t)return;let i=n.indexStack.at(-1),a=t.children,o="number"==typeof i?i:a.indexOf(e);if(!(o<0))return function e(t){return t&&"object"==typeof t?"value"in t&&"string"==typeof t.value?t.value:"alt"in t&&"string"==typeof t.alt?t.alt:"children"in t&&Array.isArray(t.children)?t.children.map(e).join(""):"":""}(a[o+r])||void 0}function eM(e){return`&#x${(e??0).toString(16).toUpperCase()};`}function eA(e){let t=[...e];return t.pop(),t.at(-1)?.codePointAt(0)??l.eof}function eE(e){return e.codePointAt(0)??l.eof}function eT(e){return[...e].at(-1)?.codePointAt(0)??l.eof}eb.peek=function(){return"~"};let eR={current:em,previous:l.eof},eN=ey;function eP(){let e=this.data();(e.toMarkdownExtensions||(e.toMarkdownExtensions=[])).push({unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:eg}],handlers:{delete:eb,text:ev}})}var eL=n(56556),eI=new Set(["。",".",",","、","?","!",":",";","(",")","【","】","「","」","『","』","〈","〉","《","》"]),eO=/^(https?:\/\/|mailto:|www\.)/i,e$=e=>{if(1!==e.children.length)return!1;let t=e.children[0];return"text"===t.type&&t.value===e.url},ej=e=>{let t=0;for(let n of e){if(eI.has(n))return t;t+=n.length}return null},eD=(e,t)=>({...t,url:e,children:[{type:"text",value:e}]}),eF=e=>({type:"text",value:e}),eB=(o=[...i=[function(){G.call(this),ef.call(this)}],...a=[()=>e=>{(0,eL.Vn)(e,"link",(e,t,n)=>{if(!n||"number"!=typeof t||!e$(e)||!eO.test(e.url))return;let r=ej(e.url);if(null===r||0===r)return;let i=e.url.slice(0,r),a=e.url.slice(r),o=eD(i,e),s=eF(a);return n.children.splice(t,1,o,s),t+1})},function(e){ep.call(this,e),eP.call(this)}]],{name:"cjk",type:"cjk",remarkPluginsBefore:i,remarkPluginsAfter:a,remarkPlugins:o})},35033:function(e,t,n){"use strict";let r,i;n.d(t,{T:function(){return ii}});let a=[{id:"abap",name:"ABAP",import:()=>n.e(89165).then(n.bind(n,89165))},{id:"actionscript-3",name:"ActionScript",import:()=>n.e(72902).then(n.bind(n,72902))},{id:"ada",name:"Ada",import:()=>n.e(28747).then(n.bind(n,28747))},{id:"angular-html",name:"Angular HTML",import:()=>Promise.all([n.e(86665),n.e(79321),n.e(2614),n.e(92732)]).then(n.bind(n,92732))},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.all([n.e(86665),n.e(44952),n.e(79321),n.e(2614),n.e(12102),n.e(37626)]).then(n.bind(n,74756))},{id:"apache",name:"Apache Conf",import:()=>n.e(13328).then(n.bind(n,13328))},{id:"apex",name:"Apex",import:()=>n.e(47883).then(n.bind(n,47883))},{id:"apl",name:"APL",import:()=>Promise.all([n.e(86665),n.e(79321),n.e(2614),n.e(76367),n.e(83597)]).then(n.bind(n,83597))},{id:"applescript",name:"AppleScript",import:()=>n.e(27363).then(n.bind(n,76902))},{id:"ara",name:"Ara",import:()=>n.e(17059).then(n.bind(n,17059))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>n.e(28248).then(n.bind(n,28248))},{id:"asm",name:"Assembly",import:()=>n.e(22530).then(n.bind(n,22530))},{id:"astro",name:"Astro",import:()=>Promise.all([n.e(86665),n.e(87028),n.e(51470),n.e(79321),n.e(60493)]).then(n.bind(n,60493))},{id:"awk",name:"AWK",import:()=>n.e(55192).then(n.bind(n,55192))},{id:"ballerina",name:"Ballerina",import:()=>n.e(99138).then(n.bind(n,99138))},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>n.e(90111).then(n.bind(n,90111))},{id:"beancount",name:"Beancount",import:()=>n.e(83460).then(n.bind(n,83460))},{id:"berry",name:"Berry",aliases:["be"],import:()=>n.e(66827).then(n.bind(n,66827))},{id:"bibtex",name:"BibTeX",import:()=>n.e(97675).then(n.bind(n,97675))},{id:"bicep",name:"Bicep",import:()=>n.e(69606).then(n.bind(n,69606))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:()=>n.e(18198).then(n.bind(n,18198))},{id:"blade",name:"Blade",import:()=>Promise.all([n.e(86665),n.e(79321),n.e(2614),n.e(76367),n.e(99591),n.e(51216)]).then(n.bind(n,51216))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>n.e(41966).then(n.bind(n,41966))},{id:"c",name:"C",import:()=>n.e(97859).then(n.bind(n,97859))},{id:"c3",name:"C3",import:()=>n.e(56218).then(n.bind(n,56218))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>n.e(31668).then(n.bind(n,31668))},{id:"cairo",name:"Cairo",import:()=>Promise.all([n.e(83361),n.e(65160)]).then(n.bind(n,65160))},{id:"clarity",name:"Clarity",import:()=>n.e(75102).then(n.bind(n,75102))},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>n.e(64412).then(n.bind(n,64412))},{id:"cmake",name:"CMake",import:()=>n.e(6550).then(n.bind(n,6550))},{id:"cobol",name:"COBOL",import:()=>Promise.all([n.e(86665),n.e(79321),n.e(2614),n.e(76367),n.e(71430)]).then(n.bind(n,71430))},{id:"codeowners",name:"CODEOWNERS",import:()=>n.e(29555).then(n.bind(n,29555))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>n.e(16074).then(n.bind(n,16074))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.all([n.e(86665),n.e(74544)]).then(n.bind(n,74544))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>n.e(9030).then(n.bind(n,9030))},{id:"coq",name:"Coq",import:()=>n.e(10874).then(n.bind(n,10874))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.all([n.e(51345),n.e(29201),n.e(99591),n.e(97859),n.e(40528)]).then(n.bind(n,10765))},{id:"crystal",name:"Crystal",import:()=>Promise.all([n.e(86665),n.e(79321),n.e(2614),n.e(99591),n.e(97859),n.e(10199),n.e(87328)]).then(n.bind(n,87328))}
1,{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>n.e(65458).then(n.bind(n,65458))},{id:"css",name:"CSS",import:()=>n.e(79321).then(n.bind(n,79321))},{id:"csv",name:"CSV",import:()=>n.e(91329).then(n.bind(n,91329))},{id:"cue",name:"CUE",import:()=>n.e(86492).then(n.bind(n,86492))},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>n.e(10698).then(n.bind(n,10698))},{id:"d",name:"D",import:()=>n.e(36297).then(n.bind(n,36297))},{id:"dart",name:"Dart",import:()=>n.e(20786).then(n.bind(n,20786))},{id:"dax",name:"DAX",import:()=>n.e(89463).then(n.bind(n,35646))},{id:"desktop",name:"Desktop",import:()=>n.e(52735).then(n.bind(n,52735))},{id:"diff",name:"Diff",import:()=>n.e(82056).then(n.bind(n,82056))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>n.e(98896).then(n.bind(n,98896))},{id:"dotenv",name:"dotEnv",import:()=>n.e(81789).then(n.bind(n,81789))},{id:"dream-maker",name:"Dream Maker",import:()=>n.e(54188).then(n.bind(n,54188))},{id:"edge",name:"Edge",import:()=>Promise.all([n.e(86665),n.e(87028),n.e(79321),n.e(2614),n.e(47e3)]).then(n.bind(n,47e3))},{id:"elixir",name:"Elixir",import:()=>Promise.all([n.e(86665),n.e(79321),n.e(2614),n.e(40387)]).then(n.bind(n,40387))},{id:"elm",name:"Elm",import:()=>Promise.all([n.e(97859),n.e(71657)]).then(n.bind(n,71657))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>n.e(35562).then(n.bind(n,58059))},{id:"erb",name:"ERB",import:()=>Promise.all([n.e(86665),n.e(87028),n.e(51470),n.e(97886),n.e(51345),n.e(29201),n.e(79321),n.e(2614),n.e(76367),n.e(99591),n.e(97859),n.e(10199),n.e(10470),n.e(58798),n.e(38816)]).then(n.bind(n,38816))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>Promise.all([n.e(49236),n.e(98632)]).then(n.bind(n,98632))},{id:"fennel",name:"Fennel",import:()=>n.e(9848).then(n.bind(n,9848))},{id:"fish",name:"Fish",import:()=>n.e(11431).then(n.bind(n,11431))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>n.e(52305).then(n.bind(n,52305))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>Promise.all([n.e(23626),n.e(7597)]).then(n.bind(n,7597))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>n.e(23626).then(n.bind(n,23626))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>Promise.all([n.e(49236),n.e(47733)]).then(n.bind(n,47733))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:()=>n.e(29973).then(n.bind(n,29973))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:()=>n.e(16927).then(n.bind(n,16927))},{id:"gdshader",name:"GDShader",import:()=>n.e(531).then(n.bind(n,531))},{id:"genie",name:"Genie",import:()=>n.e(32741).then(n.bind(n,32741))},{id:"gherkin",name:"Gherkin",import:()=>n.e(71377).then(n.bind(n,71377))},{id:"git-commit",name:"Git Commit Message",import:()=>n.e(8158).then(n.bind(n,8158))},{id:"git-rebase",name:"Git Rebase Message",import:()=>Promise.all([n.e(10199),n.e(21554)]).then(n.bind(n,21554))},{id:"gleam",name:"Gleam",import:()=>n.e(13495).then(n.bind(n,13495))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>Promise.all([n.e(86665),n.e(87028),n.e(79321),n.e(2614),n.e(71668)]).then(n.bind(n,71668))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>Promise.all([n.e(86665),n.e(87028),n.e(79321),n.e(2614),n.e(19956)]).then(n.bind(n,19956))},{id:"glsl",name:"GLSL",import:()=>Promise.all([n.e(97859),n.e(84051)]).then(n.bind(n,58798))},{id:"gn",name:"GN",import:()=>n.e(4916).then(n.bind(n,4916))},{id:"gnuplot",name:"Gnuplot",import:()=>n.e(67450).then(n.bind(n,67450))},{id:"go",name:"Go",import:()=>n.e(97852).then(n.bind(n,97852))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.all([n.e(86665),n.e(87028),n.e(51470),n.e(97886),n.e(10470)]).then(n.bind(n,10470))},{id:"groovy",name:"Groovy",import:()=>n.e(9111).then(n.bind(n,9111))},{id:"hack",name:"Hack",import:()=>Promise.all([n.e(86665),n.e(79321),n.e(2614),n.e(99591),n.e(98619)]).then(n.bind(n,23818))},{id:"haml",name:"Ruby Haml",import:()=>Promise.all([n.e(86665),n.e(79321),n.e(77153)]).then(n.bind(n,77153))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.all([n.e(86665),n.e(79321),n.e(2614),n.e(91761)]).then(n.bind(n,91761))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>n.e(49976).then(n.bind(n,49976))},{id:"haxe",name:"Haxe",import:()=>n.e(90920).then(n.bind(n,90920))},{id:"hcl",name:"HashiCorp HCL",import:()=>n.e(42704).then(n.bind(n,42704))}
1,{id:"hjson",name:"Hjson",import:()=>n.e(62453).then(n.bind(n,62453))},{id:"hlsl",name:"HLSL",import:()=>n.e(81605).then(n.bind(n,81605))},{id:"html",name:"HTML",import:()=>Promise.all([n.e(86665),n.e(79321),n.e(2614)]).then(n.bind(n,2614))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>Promise.all([n.e(86665),n.e(79321),n.e(2614),n.e(30077)]).then(n.bind(n,30077))},{id:"http",name:"HTTP",import:()=>Promise.all([n.e(86665),n.e(87028),n.e(51470),n.e(97886),n.e(76367),n.e(10199),n.e(10470),n.e(41318)]).then(n.bind(n,41318))},{id:"hurl",name:"Hurl",import:()=>Promise.all([n.e(86665),n.e(87028),n.e(51470),n.e(97886),n.e(76367),n.e(10470),n.e(53964)]).then(n.bind(n,53964))},{id:"hxml",name:"HXML",import:()=>n.e(85197).then(n.bind(n,85197))},{id:"hy",name:"Hy",import:()=>n.e(33358).then(n.bind(n,33358))},{id:"imba",name:"Imba",import:()=>n.e(69453).then(n.bind(n,69453))},{id:"ini",name:"INI",aliases:["properties"],import:()=>n.e(9983).then(n.bind(n,9983))},{id:"java",name:"Java",import:()=>n.e(76367).then(n.bind(n,76367))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:()=>n.e(86665).then(n.bind(n,40169))},{id:"jinja",name:"Jinja",import:()=>Promise.all([n.e(86665),n.e(79321),n.e(2614),n.e(17196)]).then(n.bind(n,17196))},{id:"jison",name:"Jison",import:()=>Promise.all([n.e(86665),n.e(44575)]).then(n.bind(n,44575))},{id:"json",name:"JSON",import:()=>n.e(97559).then(n.bind(n,97559))},{id:"json5",name:"JSON5",import:()=>n.e(16420).then(n.bind(n,16420))},{id:"jsonc",name:"JSON with Comments",import:()=>n.e(87463).then(n.bind(n,87463))},{id:"jsonl",name:"JSON Lines",import:()=>n.e(15004).then(n.bind(n,15004))},{id:"jsonnet",name:"Jsonnet",import:()=>n.e(33071).then(n.bind(n,33071))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>n.e(51582).then(n.bind(n,51582))},{id:"jsx",name:"JSX",import:()=>n.e(97886).then(n.bind(n,3558))},{id:"julia",name:"Julia",aliases:["jl"],import:()=>Promise.all([n.e(86665),n.e(51345),n.e(29201),n.e(99591),n.e(97859),n.e(83361),n.e(39290)]).then(n.bind(n,76974))},{id:"just",name:"Just",import:()=>Promise.all([n.e(86665),n.e(87028),n.e(51470),n.e(97886),n.e(51345),n.e(29201),n.e(79321),n.e(2614),n.e(76367),n.e(99591),n.e(97859),n.e(10199),n.e(10470),n.e(83361),n.e(58798),n.e(62800),n.e(58337)]).then(n.bind(n,58337))},{id:"kdl",name:"KDL",import:()=>n.e(61535).then(n.bind(n,61535))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>n.e(12695).then(n.bind(n,12695))},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>n.e(66468).then(n.bind(n,66468))},{id:"latex",name:"LaTeX",import:()=>n.e(83859).then(n.bind(n,83859))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>n.e(64509).then(n.bind(n,64509))},{id:"less",name:"Less",import:()=>n.e(59902).then(n.bind(n,59902))},{id:"liquid",name:"Liquid",import:()=>Promise.all([n.e(86665),n.e(79321),n.e(2614),n.e(33403)]).then(n.bind(n,33403))},{id:"llvm",name:"LLVM IR",import:()=>n.e(62299).then(n.bind(n,62299))},{id:"log",name:"Log file",import:()=>n.e(50710).then(n.bind(n,50710))},{id:"logo",name:"Logo",import:()=>n.e(54798).then(n.bind(n,54798))},{id:"lua",name:"Lua",import:()=>Promise.all([n.e(97859),n.e(2792)]).then(n.bind(n,2792))},{id:"luau",name:"Luau",import:()=>n.e(62365).then(n.bind(n,62365))},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>n.e(83922).then(n.bind(n,83922))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>n.e(49236).then(n.bind(n,49236))},{id:"marko",name:"Marko",import:()=>Promise.all([n.e(87028),n.e(79321),n.e(12102),n.e(59902),n.e(63999)]).then(n.bind(n,63999))},{id:"matlab",name:"MATLAB",import:()=>n.e(31501).then(n.bind(n,31501))},{id:"mdc",name:"MDC",import:()=>Promise.all([n.e(86665),n.e(79321),n.e(2614),n.e(49236),n.e(77912)]).then(n.bind(n,77912))},{id:"mdx",name:"MDX",import:()=>n.e(38138).then(n.bind(n,38138))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>n.e(60334).then(n.bind(n,60334))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>n.e(61427).then(n.bind(n,61427))},{id:"mojo",name:"Mojo",import:()=>n.e(79858).then(n.bind(n,79858))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:()=>n.e(99740).then(n.bind(n,99740))},{id:"move",name:"Move",import:()=>n.e(76727).then(n.bind(n,76727))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>n.e(31173).then(n.bind(n,31173))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>n.e(12295).then(n.bind(n,12295))},{id:"nextflow-groovy",name:"nextflow-groovy",import:()=>n.e(5592).then(n.bind(n,5592))},{id:"nginx",name:"Nginx",import:()=>Promise.all([n.e(97859),n.e(58152)]).then(n.bind(n,58152))},{id:"nim",name:"Nim",import:()=>Promise.all([n.e(86665),n.e(79321),n.e(2614),n.e(76367),n.e(97859),n.e(49236),n.e(97883)]).then(n.bind(n,97883))},{id:"nix",name:"Nix",import:()=>n.e(46481).then(n.bind(n,46481))},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>n.e(83778).then(n.bind(n,83778))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>n.e(60695).then(n.bind(n,60695))},{id:"objective-cpp",name:"Objective-C++",import:()=>n.e(98517).then(n.bind(n,17087))},{id:"ocaml",name:"OCaml",import:()=>n.e(29878).then(n.bind(n,29878))},{id:"odin",name:"Odin",import:()=>n.e(338).then(n.bind(n,338))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:()=>n.e(62834).then(n.bind(n,62834))},{id:"pascal",name:"Pascal",import:()=>n.e(96367).then(n.bind(n,96367))},{id:"perl",name:"Perl",import:()=>Promise.all([n.e(86665),n.e(79321),n.e(2614),n.e(76367),n.e(99591),n.e(62800),n.e(45683)]).then(n.bind(n,62800))},{id:"php",name:"PHP",import:()=>Promise.all([n.e(86665),n.e(79321),n.e(2614),n.e(76367),n.e(99591),n.e(98939),n.e(29116)]).then(n.bind(n,98939))},{id:"pkl",name:"Pkl",import:()=>n.e(8928).then(n.bind(n,8928))},{id:"plsql",name:"PL/SQL",import:()=>n.e(31351).then(n.bind(n,31351))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>n.e(71384).then(n.bind(n,71384))},{id:"polar",name:"Polar",import:()=>n.e(74616).then(n.bind(n,74616))},{id:"postcss",name:"PostCSS",import:()=>n.e(4938).then(n.bind(n,4938))},{id:"powerquery",name:"PowerQuery",import:()=>n.e(23505).then(n.bind(n,23505))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>n.e(64657).then(n.bind(n,64657))},{id:"prisma",name:"Prisma",import:()=>
1n.e(26907).then(n.bind(n,26907))},{id:"prolog",name:"Prolog",import:()=>n.e(40042).then(n.bind(n,40042))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>n.e(55098).then(n.bind(n,55098))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.all([n.e(86665),n.e(79321),n.e(2614),n.e(21771)]).then(n.bind(n,21771))},{id:"puppet",name:"Puppet",import:()=>n.e(78536).then(n.bind(n,78536))},{id:"purescript",name:"PureScript",import:()=>n.e(64593).then(n.bind(n,64593))},{id:"python",name:"Python",aliases:["py"],import:()=>n.e(83361).then(n.bind(n,83361))},{id:"qml",name:"QML",import:()=>Promise.all([n.e(86665),n.e(9073)]).then(n.bind(n,9073))},{id:"qmldir",name:"QML Directory",import:()=>n.e(53109).then(n.bind(n,53109))},{id:"qss",name:"Qt Style Sheets",import:()=>n.e(21216).then(n.bind(n,21216))},{id:"r",name:"R",import:()=>n.e(51765).then(n.bind(n,51765))},{id:"racket",name:"Racket",import:()=>n.e(45007).then(n.bind(n,45007))},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>n.e(72573).then(n.bind(n,72573))},{id:"razor",name:"ASP.NET Razor",import:()=>Promise.all([n.e(86665),n.e(79321),n.e(2614),n.e(65458),n.e(17851)]).then(n.bind(n,17851))},{id:"reg",name:"Windows Registry Script",import:()=>n.e(43453).then(n.bind(n,43453))},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>n.e(66960).then(n.bind(n,91340))},{id:"rel",name:"Rel",import:()=>n.e(66751).then(n.bind(n,66751))},{id:"riscv",name:"RISC-V",import:()=>n.e(15612).then(n.bind(n,15612))},{id:"ron",name:"RON",import:()=>n.e(74260).then(n.bind(n,74260))},{id:"rosmsg",name:"ROS Interface",import:()=>n.e(10642).then(n.bind(n,10642))},{id:"rst",name:"reStructuredText",import:()=>Promise.all([n.e(86665),n.e(87028),n.e(51470),n.e(97886),n.e(51345),n.e(29201),n.e(79321),n.e(2614),n.e(76367),n.e(99591),n.e(97859),n.e(10199),n.e(10470),n.e(83361),n.e(58798),n.e(68975)]).then(n.bind(n,68975))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>Promise.all([n.e(86665),n.e(87028),n.e(51470),n.e(97886),n.e(51345),n.e(29201),n.e(79321),n.e(2614),n.e(76367),n.e(99591),n.e(97859),n.e(10199),n.e(10470),n.e(58798)]).then(n.bind(n,74171))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>n.e(41440).then(n.bind(n,41440))},{id:"sas",name:"SAS",import:()=>Promise.all([n.e(99591),n.e(68435)]).then(n.bind(n,68435))},{id:"sass",name:"Sass",import:()=>n.e(70788).then(n.bind(n,70788))},{id:"scala",name:"Scala",import:()=>n.e(18724).then(n.bind(n,18724))},{id:"scheme",name:"Scheme",import:()=>n.e(12147).then(n.bind(n,12147))},{id:"scss",name:"SCSS",import:()=>Promise.all([n.e(79321),n.e(12102)]).then(n.bind(n,12102))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>n.e(40371).then(n.bind(n,40371))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>n.e(91340).then(n.bind(n,60256))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>n.e(10199).then(n.bind(n,10199))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>Promise.all([n.e(10199),n.e(5404)]).then(n.bind(n,5404))},{id:"smalltalk",name:"Smalltalk",import:()=>n.e(25277).then(n.bind(n,25277))},{id:"solidity",name:"Solidity",import:()=>n.e(8927).then(n.bind(n,8927))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>Promise.all([n.e(86665),n.e(79321),n.e(2614),n.e(95904)]).then(n.bind(n,95904))},{id:"sparql",name:"SPARQL",import:()=>n.e(93003).then(n.bind(n,93003))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>n.e(23611).then(n.bind(n,23611))},{id:"sql",name:"SQL",import:()=>n.e(99591).then(n.bind(n,99591))},{id:"ssh-config",name:"SSH Config",import:()=>n.e(31567).then(n.bind(n,31567))},{id:"stata",name:"Stata",import:()=>Promise.all([n.e(99591),n.e(96383)]).then(n.bind(n,96383))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>n.e(8710).then(n.bind(n,8710))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:()=>Promise.all([n.e(86665),n.e(44906)]).then(n.bind(n,44906))},{id:"svelte",name:"Svelte",import:()=>Promise.all([n.e(86665),n.e(87028),n.e(79321),n.e(47231)]).then(n.bind(n,47231))},{id:"swift",name:"Swift",import:()=>n.e(93212).then(n.bind(n,93212))},{id:"system-verilog",name:"SystemVerilog",import:()=>n.e(64932).then(n.bind(n,64932))},{id:"systemd",name:"Systemd Units",import:()=>n.e(47272).then(n.bind(n,47272))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>n.e(13411).then(n.bind(n,13411))},{id:"tasl",name:"Tasl",import:()=>n.e(64915).then(n.bind(n,64915))},{id:"tcl",name:"Tcl",import:()=>n.e(55240).then(n.bind(n,55240))}
1,{id:"templ",name:"Templ",import:()=>Promise.all([n.e(86665),n.e(79321),n.e(97852),n.e(48687)]).then(n.bind(n,48687))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>n.e(33599).then(n.bind(n,33599))},{id:"tex",name:"TeX",import:()=>n.e(73549).then(n.bind(n,73549))},{id:"toml",name:"TOML",import:()=>n.e(97806).then(n.bind(n,97806))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>Promise.all([n.e(86665),n.e(87028),n.e(79321),n.e(2614),n.e(76367),n.e(99591),n.e(97859),n.e(41504)]).then(n.bind(n,41504))},{id:"tsv",name:"TSV",import:()=>n.e(25312).then(n.bind(n,25312))},{id:"tsx",name:"TSX",import:()=>n.e(51470).then(n.bind(n,57260))},{id:"turtle",name:"Turtle",import:()=>n.e(3404).then(n.bind(n,3404))},{id:"twig",name:"Twig",import:()=>Promise.all([n.e(86665),n.e(87028),n.e(51470),n.e(97886),n.e(51345),n.e(29201),n.e(79321),n.e(2614),n.e(76367),n.e(99591),n.e(97859),n.e(10199),n.e(10470),n.e(83361),n.e(58798),n.e(12102),n.e(98939),n.e(10334)]).then(n.bind(n,10334))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:()=>n.e(87028).then(n.bind(n,95612))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>n.e(75837).then(n.bind(n,75837))},{id:"typst",name:"Typst",aliases:["typ"],import:()=>n.e(79013).then(n.bind(n,79013))}
1,{id:"v",name:"V",import:()=>n.e(2059).then(n.bind(n,4355))},{id:"vala",name:"Vala",import:()=>n.e(36702).then(n.bind(n,36702))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>n.e(14291).then(n.bind(n,14291))},{id:"verilog",name:"Verilog",import:()=>n.e(56317).then(n.bind(n,56317))},{id:"vhdl",name:"VHDL",import:()=>n.e(44316).then(n.bind(n,44316))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>n.e(29724).then(n.bind(n,29724))},{id:"vue",name:"Vue",import:()=>Promise.all([n.e(86665),n.e(87028),n.e(79321),n.e(2614),n.e(28352)]).then(n.bind(n,28352))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.all([n.e(86665),n.e(66879)]).then(n.bind(n,66879))},{id:"vue-vine",name:"Vue Vine",import:()=>Promise.all([n.e(86665),n.e(2352),n.e(79321),n.e(12102),n.e(59902),n.e(5298)]).then(n.bind(n,56015))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>n.e(89087).then(n.bind(n,89087))},{id:"wasm",name:"WebAssembly",import:()=>n.e(44881).then(n.bind(n,44881))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>n.e(32770).then(n.bind(n,32770))},{id:"wgsl",name:"WGSL",import:()=>n.e(8355).then(n.bind(n,8355))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>n.e(3039).then(n.bind(n,3039))},{id:"wit",name:"WebAssembly Interface Types",import:()=>n.e(21630).then(n.bind(n,21630))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>n.e(44218).then(n.bind(n,75308))},{id:"xml",name:"XML",import:()=>Promise.all([n.e(76367),n.e(43881)]).then(n.bind(n,45683))},{id:"xsl",name:"XSL",import:()=>Promise.all([n.e(76367),n.e(19143)]).then(n.bind(n,19143))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>n.e(73344).then(n.bind(n,73344))},{id:"zenscript",name:"ZenScript",import:()=>n.e(41339).then(n.bind(n,41339))},{id:"zig",name:"Zig",import:()=>n.e(77219).then(n.bind(n,77219))}],o=Object.fromEntries(a.map(e=>[e.id,e.import])),s=Object.fromEntries(a.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),l={...o,...s};class u extends Error{constructor(e){super(e),this.name="ShikiError"}}var c,d,h=n(32608);function f(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}var p=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,g=class{static hasCaptures(e){return null!==e&&(p.lastIndex=0,p.test(e))}static replaceCaptures(e,t,n){return e.replace(p,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(a){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function m(e,t){if(null===e&&null===t)return 0;if(!e)return -1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){var i,a;let n=(i=e[r])<(a=t[r])?-1:i>a?1:0;if(0!==n)return n}return 0}return n-r}function y(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function b(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var v=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},x=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(function(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i,a=t[e];if(!a.settings)continue;if("string"==typeof a.scope){let e=a.scope;i=(e=(e=e.replace(/^[,]+/,"")).replace(/[,]+$/,"")).split(",")}else i=Array.isArray(a.scope)?a.scope:[""];let o=-1;if("string"==typeof a.settings.fontStyle){o=0;let e=a.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":o|=1;break;case"bold":o|=2;break;case"underline":o|=4;break;case"strikethrough":o|=8}}let s=null;"string"==typeof a.settings.foreground&&y(a.settings.foreground)&&(s=a.settings.foreground);let l=null;"string"==typeof a.settings.background&&y(a.settings.background)&&(l=a.settings.background);for(let t=0,a=i.length;t<a;t++){let a=i[t].trim().split(" "),u=a[a.length-1],c=null;a.length>1&&(c=a.slice(0,a.length-1)).reverse(),n[r++]=new _(u,c,e,o,s,l)}}return n}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort((e,t)=>
1{var n,r;let i=(n=e.scope)<(r=t.scope)?-1:n>r?1:0;return 0!==i||0!==(i=m(e.parentScopes,t.parentScopes))?i:e.index-t.index});let n=0,r="#000000",i="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(i=t.background)}let a=new C(t),o=new w(n,a.getId(r),a.getId(i)),s=new E(new A(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new x(a,o,s)}(e,t)}_cachedMatchRoot=new v(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>(function(e,t){if(0===t.length)return!0;for(let i=0;i<t.length;i++){var n,r;let a=t[i],o=!1;if(">"===a){if(i===t.length-1)return!1;a=t[++i],o=!0}for(;e&&(n=e.scopeName,!((r=a)===n||n.startsWith(r)&&"."===n[r.length]));){if(o)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return n?new w(n.fontStyle,n.foreground,n.background):null}},k=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}},w=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}},_=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},S=((c=S||{})[c.NotSet=-1]="NotSet",c[c.None=0]="None",c[c.Italic=1]="Italic",c[c.Bold=2]="Bold",c[c.Underline=4]="Underline",c[c.Strikethrough=8]="Strikethrough",c),C=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},M=Object.freeze([]),A=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||M,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==r&&(this.background=r)}},E=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;">"===e.parentScopes[n]&&n++,">"===t.parentScopes[r]&&r++,!(n>=e.parentScopes.length)&&!(r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(0!==i)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(""!==t){let e,n,r=t.indexOf(".");if(-1===r?(e=t,n=""):(e=t.substring(0,r),n=t.substring(r+1)),this._children.hasOwnProperty(e))return this._children[e].match(n)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){let s,l,u;if(""===n){this._doInsertHere(t,r,i,a,o);return}let c=n.indexOf(".");-1===c?(s=n,l=""):(s=n.substring(0,c),l=n.substring(c+1)),this._children.hasOwnProperty(s)?u=this._children[s]:(u=new e(this._mainRule.clone(),A.cloneArr(this._rulesWithParentScopes)),this._children[s]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(null===t){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(0===m(o.parentScopes,t)){o.acceptOverwrite(e,n,r,i);return}}-1===n&&(n=this._mainRule.fontStyle),0===r&&(r=this._mainRule.foreground),0===i&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new A(e,t,n,r,i))}},T=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}
1static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t);console.log({languageId:n,tokenType:r,fontStyle:e.getFontStyle(t),foreground:e.getForeground(t),background:e.getBackground(t)})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static set(t,n,r,i,a,o,s){let l=e.getLanguageId(t),u=e.getTokenType(t),c=e.containsBalancedBrackets(t)?1:0,d=e.getFontStyle(t),h=e.getForeground(t),f=e.getBackground(t);return 0!==n&&(l=n),8!==r&&(u=r),null!==i&&(c=i?1:0),-1!==a&&(d=a),0!==o&&(h=o),0!==s&&(f=s),(l<<0|u<<8|c<<10|d<<11|h<<15|f<<24)>>>0}};function R(e,t){let n,r;let i=[],a=(r=(n=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(e),{next:()=>{if(!r)return null;let t=r[0];return r=n.exec(e),t}}),o=a.next();for(;null!==o;){let e=0;if(2===o.length&&":"===o.charAt(1)){switch(o.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=a.next()}let t=l();if(i.push({matcher:t,priority:e}),","!==o)break;o=a.next()}return i;function s(){if("-"===o){o=a.next();let e=s();return t=>!!e&&!e(t)}if("("===o){o=a.next();let e=function(){let e=[],t=l();for(;t&&(e.push(t),"|"===o||","===o);){do o=a.next();while("|"===o||","===o);t=l()}return t=>e.some(e=>e(t))}();return")"===o&&(o=a.next()),e}if(N(o)){let e=[];do e.push(o),o=a.next();while(N(o));return n=>t(e,n)}return null}function l(){let e=[],t=s();for(;t;)e.push(t),t=s();return t=>e.every(e=>e(t))}}function N(e){return!!e&&!!e.match(/[\w\.:]+/)}var P=((d=P||{})[d.None=0]="None",d[d.NotBeginString=1]="NotBeginString",d[d.NotEndString=2]="NotEndString",d[d.NotBeginPosition=4]="NotBeginPosition",d[d.DebugCall=8]="DebugCall",d);function L(e){"function"==typeof e.dispose&&e.dispose()}var I=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},O=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},$=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},j=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new I(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new $;for(let n of e)!function(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof I?F({baseGrammar:a,selfGrammar:i},r):D(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new I(e))}(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof I){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function D(e,t,n){t.repository&&t.repository[e]&&B([t.repository[e]],t,n)}function F(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&B(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&B(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function B(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?f({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&B(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=G(i);switch(a.kind){case 0:F({...t,selfGrammar:t.baseGrammar},n);break;case 1:F(t,n);break;case 2:D(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let o=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(o){let r={baseGrammar:t.baseGrammar,selfGrammar:o,repository:e};4===a.kind?D(a.ruleName,r,n):F(r,n)}else 4===a.kind?n.add(new O(a.scopeName,a.ruleName)):n.add(new I(a.scopeName))}}}var z=class{kind=0},U=class{kind=1},W=class{constructor(e){this.ruleName=e}kind=2},H=class{constructor(e){this.scopeName=e}kind=3},q=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};
1function G(e){if("$base"===e)return new z;if("$self"===e)return new U;let t=e.indexOf("#");return -1===t?new H(e):0===t?new W(e.substring(1)):new q(e.substring(0,t),e.substring(t+1))}var V=/\\(\d+)/,Z=/\\(\d+)/g;Symbol("RuleId");var Y=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=g.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=g.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${function e(t){let n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(~n+1)}(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?g.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?g.replaceCaptures(this._contentName,e,t):this._contentName}},X=class extends Y{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error("Not supported!")}compile(e,t){throw Error("Not supported!")}compileAG(e,t,n,r){throw Error("Not supported!")}},Q=class extends Y{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new en(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new er,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},K=class extends Y{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new er,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},J=class extends Y{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,l,u){super(e,t,n,r),this._begin=new en(i,this.id),this.beginCaptures=a,this._end=new en(o||"ï¿¿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=l||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){for(let t of(this._cachedCompiledPatterns=new er,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},ee=class extends Y{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,l){super(e,t,n,r),this._begin=new en(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=ne
1w en(o,-2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)for(let t of(this._cachedCompiledPatterns=new er,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new er,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"ï¿¿"),this._cachedCompiledWhilePatterns}
1},et=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new X(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new Q(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(void 0===t.begin){t.repository&&(r=f({},r,t.repository));let i=t.patterns;return void 0===i&&t.include&&(i=[{include:t.include}]),new K(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new ee(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new J(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if("$vscodeTextmateLocation"===e)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if("$vscodeTextmateLocation"===a)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=G(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,l=4===t.kind?t.ruleName:null,u=n.getExternalGrammar(a,r);if(u){if(l){let t=u.repository[l];t&&(s=e.getCompiledRuleId(t,n,u.repository))}else s=e.getCompiledRuleId(u.repository.$self,n,u.repository)}}}else s=e.getCompiledRuleId(o,n,r);if(-1!==s){let e=n.getRule(s),t=!1;if((e instanceof K||e instanceof J||e instanceof ee)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},en=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&"string"==typeof e){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if("\\"===e.charAt(a)&&a+1<t){let t=e.charAt(a+1);"z"===t?(r.push(e.substring(n,a)),r.push("$(?!\\n)(?<!\\n)"),n=a+2):("A"===t||"G"===t)&&(i=!0),a++}this.hasAnchor=i,0===n?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,"string"==typeof this.source?this.hasBackReferences=V.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let n=t.map(t=>e.substring(t.start,t.end));return Z.lastIndex=0,this.source.replace(Z,(e,t)=>b(n[parseInt(t,10)]||""))}_buildAnchorCache(){let e,t,n,r;if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let i=[],a=[],o=[],s=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),i[e]=n,a[e]=n,o[e]=n,s[e]=n,"\\"===n&&e+1<t&&("A"===(r=this.source.charAt(e+1))?(i[e+1]="ï¿¿",a[e+1]="ï¿¿",o[e+1]="A",s[e+1]="A"):"G"===r?(i[e+1]="ï¿¿",a[e+1]="G",o[e+1]="ï¿¿",s[e+1]="G"):(i[e+1]=r,a[e+1]=r,o[e+1]=r,s[e+1]=r),e++);return{A0_G0:i.join(""),A0_G1:a.join(""),A1_G0:o.join(""),A1_G1:s.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache&&"string"==typeof this.source?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}},er=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}
1push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new ei(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){return new ei(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},ei=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},ea=class{constructor(e,t){this.languageId=e,this.tokenType=t}},eo=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new ea(e,8),this._embeddedLanguagesMatcher=new es(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return null===t?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new ea(0,0);_getBasicScopeAttributes=new v(e=>new ea(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},es=class{values;scopesRegExp;constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>b(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};void 0!==h&&h.env.VSCODE_TEXTMATE_DEBUG;var el=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function eu(e,t,n,r,i,a,o,s){let l=t.content.length,u=!1,c=-1;if(o){let o=function(e,t,n,r,i,a){let o=i.beginRuleCapturedEOL?0:-1,s=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof ee&&s.push({rule:n,stack:t})}for(let h=s.pop();h;h=s.pop()){var l,u,c,d;let{ruleScanner:s,findOptions:f}=(l=h.rule,u=h.stack.endRule,c=n,d=r===o,{ruleScanner:l.compileWhileAG(e,u,c,d),findOptions:0}),p=s.findNextMatchSync(t,r,f);if(p){if(-2!==p.ruleId){i=h.stack.pop();break}p.captureIndices&&p.captureIndices.length&&(a.produce(h.stack,p.captureIndices[0].start),ed(e,t,n,h.stack,a,h.rule.whileCaptures,p.captureIndices),a.produce(h.stack,p.captureIndices[0].end),o=p.captureIndices[0].end,p.captureIndices[0].end>r&&(r=p.captureIndices[0].end,n=!1))}else{i=h.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}(e,t,n,r,i,a);i=o.stack,r=o.linePos,n=o.isFirstLine,c=o.anchorPosition}let d=Date.now();for(;!u;){if(0!==s&&Date.now()-d>s)return new el(i,!0);!function(){let o=function(e,t,n,r,i,a){let o=function(e,t,n,r,i,a){let{ruleScanner:o,findOptions:s}=ec(i.getRule(e),e,i.endRule,n,r===a),l=o.findNextMatchSync(t,r,s);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}(e,t,n,r,i,a),s=e.getInjections();if(0===s.length)return o;let l=function(e,t,n,r,i,a,o){let s,l=Number.MAX_VALUE,u=null,c=0,d=a.contentNameScopesList.getScopeNames();for(let a=0,h=e.length;a<h;a++){let h=e[a];if(!h.matcher(d))continue;let{ruleScanner:f,findOptions:p}=ec(t.getRule(h.ruleId),t,null,r,i===o),g=f.findNextMatchSync(n,i,p);if(!g)continue;let m=g.captureIndices[0].start;if(!(m>=l)&&(l=m,u=g.captureIndices,s=g.ruleId,c=h.priority,l===i))break}return u?{priorityMatch:-1===c,captureIndices:u,matchedRuleId:s}:null}(s,e,t,n,r,i,a);if(!l)return o;if(!o)return l;let u=o.captureIndices[0].start,c=l.captureIndices[0].start;return c<u||l.priorityMatch&&c===u?l:o}(e,t,n,r,i,c);if(!o){a.produce(i,l),u=!0;return}let s=o.captureIndices,d=o.matchedRuleId,h=!!s&&s.length>0&&s[0].end>r;if(-1===d){let o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),ed(e,t,n,i,a,o.endCaptures,s),a.produce(i,s[0].end);let d=i;if(i=i.parent,c=d.getAnchorPos(),!h&&d.getEnterPos()===r){i=d,a.produce(i,l),u=!0;return}}else{let o=e.getRule(d);a.produce(i,s[0].start);let f=i,p=o.getName(t.content,s),g=i.contentNameScopesList.pushAttributed(p,e);if(i=i.push(d,r,c,s[0].end===l,null,g,g),o instanceof J){ed(e,t,n,i,a,o.beginCaptures,s),a.produce(i,s[0].end),c=s[0].end;let r=o.getContentName(t.content,s),d=g.pushAttributed(r,e);if(i=i.withContentNameScopesList(d),o.endHasBackReferences&&(i=i.withEndRule(o.getEndWithResolvedBackReferences(t.content,s))),!h&&f.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),u=!0;return}}else if(o instanceof ee){ed(e,t,n,i,a,o.beginCaptures,s),a.produce(i,s[0].end),c=s[0].end;let r=o.getContentName(t.content,s),d=g.pushAttributed(r,e);if(i=i.withContentNameScopesList(d),o.whileHasBackReferences&&(i=i.withEndRule(o.getWhileWithRes
1olvedBackReferences(t.content,s))),!h&&f.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),u=!0;return}}else if(ed(e,t,n,i,a,o.captures,s),a.produce(i,s[0].end),i=i.pop(),!h){i=i.safePop(),a.produce(i,l),u=!0;return}}s[0].end>r&&(r=s[0].end,n=!1)}()}return new el(i,!1)}function ec(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function ed(e,t,n,r,i,a,o){if(0===a.length)return;let s=t.content,l=Math.min(a.length,o.length),u=[],c=o[0].end;for(let t=0;t<l;t++){let l=a[t];if(null===l)continue;let d=o[t];if(0===d.length)continue;if(d.start>c)break;for(;u.length>0&&u[u.length-1].endPos<=d.start;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?i.produceFromScopes(u[u.length-1].scopes,d.start):i.produce(r,d.start),l.retokenizeCapturedWithRuleId){let t=l.getName(s,o),a=r.contentNameScopesList.pushAttributed(t,e),u=l.getContentName(s,o),c=a.pushAttributed(u,e),h=r.push(l.retokenizeCapturedWithRuleId,d.start,-1,!1,null,a,c),f=e.createOnigString(s.substring(0,d.end));eu(e,f,n&&0===d.start,d.start,h,i,!1,0),L(f);continue}let h=l.getName(s,o);if(null!==h){let t=(u.length>0?u[u.length-1].scopes:r.contentNameScopesList).pushAttributed(h,e);u.push(new eh(t,d.end))}}for(;u.length>0;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var eh=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function ef(e,t,n,r,i){let a=R(t,ep),o=et.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:o,grammar:i,priority:n.priority})}function ep(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(function(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}(t[r],e))return n=r+1,!0;return!1})}var eg=class{constructor(e,t,n,r,i,a,o,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new eo(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=em(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i))for(let t of R(e,ep))this._tokenTypeMatchers.push({matcher:t.matcher,type:i[e]})}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e=[],t=this._rootScopeName,n=({lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)}).lookup(t);if(n){let r=n.injections;if(r)for(let t in r)ef(e,t,r[t],this,n);let i=this._grammarRepository.injections(t);i&&i.forEach(t=>{let n=this.getExternalGrammar(t);if(n){let t=n.injectionSelector;t&&ef(e,t,n,this,n)}})}return e.sort((e,t)=>e.priority-t.priority),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=em(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){let r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){let i;if(-1===this._rootId&&(this._rootId=et.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==eb.NULL)i=!1,t.reset();else{let e;i=!0;let n=this._basicScopeAttributesProvider.getDefaultAttributes(),r=this.themeProvider.getDefaults(),a=T.set(0,n.languageId,n.tokenType,null,r.fontStyle,r.foregroundId,r.backgroundId),o=this.getRule(this._rootId).getName(null,null);e=o?ey.createRootAndLookUpScopeName(o,a,this):ey.createRoot("unknown",a),t=new eb(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let a=this.createOnigString(e),o=a.content.length,s=new ex(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=eu(this,a,i,0,t,s,!0,r);return L(a),{lineLength:o,lineTokens:s,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function em(e,t){return(e=function e(t){return Array.isArray(t)?function(t){let n=[];for(let r=0,i=t.length;r<i;r++)n[r]=e(t[r]);return n}(t):t instanceof RegExp?t:"object"==typeof t?function(t){let n={};for(let r in t)n[r]=e(t[r]);return n}(t):t}(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName}
1,e.repository.$base=t||e.repository.$self,e}var ey=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(let t of n)r=new e(r,i=k.push(i,t.scopeNames),t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new k(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new k(null,t),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(n,i,o);return new e(null,a,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return e.equals(this,t)}static equals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return null!==n&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),T.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(null===t)return this;if(-1===t.indexOf(" "))return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(t.tokenAttributes,i,o);return new e(t,a,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},eb=class e{constructor(e,t,n,r,i,a,o,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return null!==t&&e._equals(this,t)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&ey.equals(e.contentNameScopesList,t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,o,s){return new e(this,t,n,r,i,a,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let r=ey.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,ey.fromExtension(r,n.contentNameScopesList))}},ev=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):R(e,ep).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>R(e,ep).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},ex=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>
10||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=T.set(n,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=T.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},ek=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,new eg(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},ew=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new ek(x.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(x.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new ev(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new j(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}},e_=eb.NULL,eS=n(87112),eC=n(88112),eM=n(70979);let eA=/["&'<>`]/g,eE=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,eT=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,eR=/[|\\{}()[\]^$+*?.]/g,eN=new WeakMap,eP=/[\dA-Fa-f]/,eL=/\d/;var eI=n(83029);let eO={nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",A
1circ:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub
1:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},e$=["cent","copy","divide","gt","lt","not","para","times"],ej={}.hasOwnProperty,eD={};for(r in eO)ej.call(eO,r)&&(eD[eO[r]]=r);let eF=/[^\dA-Za-z]/;function eB(e,t,n){let r,i=function(e,t,n){let r="&#x"+e.toString(16).toUpperCase();return n&&t&&!eP.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(r=function(e,t,n,r){let i=String.fromCharCode(e);if(ej.call(eD,i)){let e=eD[i],a="&"+e;return n&&eI.K.includes(e)&&!e$.includes(e)&&(!r||t&&61!==t&&eF.test(String.fromCharCode(t)))?a:a+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){let r=function(e,t,n){let r="&#"+String(e);return n&&t&&!eL.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);r.length<i.length&&(i=r)}return r&&(!n.useShortestReferences||r.length<i.length)?r:i}function ez(e,t){return function(e,t){var n;let r;if(e=e.replace(t.subset?(n=t.subset,(r=eN.get(n))||(r=function(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(eR,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(n),eN.set(n,r)),r):eA,i),t.subset||t.escapeOnly)return e;return e.replace(eE,function(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}).replace(eT,i);function i(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}(e,Object.assign({format:eB},t))}let eU=/^>|^->|<!--|-->|--!>|<!-$/g,eW=[">"],eH=["<",">"];var eq=n(70355),eG=n(46017),eV=n(37879),eZ=n(2360),eY=n(97961);let eX=eJ(1),eQ=eJ(-1),eK=[];function eJ(e){return function(t,n,r){let i=t?t.children:eK,a=(n||0)+e,o=i[a];if(!r)for(;o&&(0,eY.Q)(o);)a+=e,o=i[a];return o}}let e0={}.hasOwnProperty;function e1(e){return function(t,n,r){return e0.call(e,t.tagName)&&e[t.tagName](t,n,r)}}let e2=e1({body:function(e,t,n){let r=eX(n,t);return!r||"comment"!==r.type},caption:e5,colgroup:e5,dd:function(e,t,n){let r=eX(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){let r=eX(n,t);return!!(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:e5,html:function(e,t,n){let r=eX(n,t);return!r||"comment"!==r.type},li:function(e,t,n){let r=eX(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){let r=eX(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){let r=eX(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){let r=eX(n,t);return r?"element"===r.type&&("address"===r.tagName||"article"===r.tagName||"aside"===r.tagName||"blockquote"===r.tagName||"details"===r.tagName||"div"===r.tagName||"dl"===r.tagName||"fieldset"===r.tagName||"figcaption"===r.tagName||"figure"===r.tagName||"footer"===r.tagName||"form"===r.tagName||"h1"===r.tagName||"h2"===r.tagName||"h3"===r.tagName||"h4"===r.tagName||"h5"===r.tagName||"h6"===r.tagName||"header"===r.tagName||"hgroup"===r.tagName||"hr"===r.tagName||"main"===r.tagName||"menu"===r.tagName||"nav"===r.tagName||"ol"===r.tagName||"p"===r.tagName||"pre"===r.tagName||"section"===r.tagName||"table"===r.tagName||"ul"===r.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName))},rp:e3,rt:e3,tbody:function(e,t,n){let r=eX(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:e6,tfoot:function(e,t,n){return!eX(n,t)},th:e6,thead:function(e,t,n){let r=eX(n,t);return!!(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){let r=eX(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});function e5(e,t,n){let r=eX(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&(0,eY.Q)(r.value.charAt(0)))}function e3(e,t,n){let r=eX(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function e6(e,t,n){let r=eX(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}let e8=e1({body:function(e){let t=eX(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&(0,eY.Q)(t.value.charAt(0)))&&!("element"===t.type&&("meta"===t.tagName||"link"===t.tagName||"script"===t.tagName||"style"===t.tagName||"template"===t.tagName))},colgroup:function(e,t,n){let r=eQ(n,t),i=eX(e,-1,!0);return!(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&e2(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"col"===i.tagName)},head:function(e){let t=new Set;for(let n of e.children)if("element"===n.type&&("base"===n.tagName||"title"===n.tagName)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||"element"===n.type},html:function(e){let t=eX(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){let r=eQ(n,t),i=eX(e,-1);return!(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&e2(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"tr"===i.tagName)}}),e9={name:[["	\n\f\r &/=>".split(""),"	\n\f\r \"&'/=>
1`".split("")],["\0	\n\f\r \"&'/<=>".split(""),"\0	\n\f\r \"&'/<=>`".split("")]],unquoted:[["	\n\f\r &>".split(""),"\0	\n\f\r \"&'<=>`".split("")],["\0	\n\f\r \"&'<=>`".split(""),"\0	\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]},e7=["<","&"];function e4(e,t,n,r){return n&&"element"===n.type&&("script"===n.tagName||"style"===n.tagName)?e.value:ez(e.value,Object.assign({},r.settings.characterReferences,{subset:e7}))}let te=(0,eM.z)("type",{invalid:function(e){throw Error("Expected node, not `"+e+"`")},unknown:function(e){throw Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,n,r){return r.settings.bogusComments?"<?"+ez(e.value,Object.assign({},r.settings.characterReferences,{subset:eW}))+">":"<!--"+e.value.replace(eU,function(e){return ez(e,Object.assign({},r.settings.characterReferences,{subset:eH}))})+"-->"},doctype:function(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,n,r){let i;let a=r.schema,o="svg"!==a.space&&r.settings.omitOptionalTags,s="svg"===a.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),l=[];"html"===a.space&&"svg"===e.tagName&&(r.schema=eC.YP);let u=function(e,t){let n;let r=[],i=-1;if(t){for(n in t)if(null!==t[n]&&void 0!==t[n]){let i=function(e,t,n){let r;let i=(0,eV.s)(e.schema,t),a=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,o=e.settings.allowDangerousCharacters?0:1,s=e.quote;if(i.overloadedBoolean&&(n===i.attribute||""===n)?n=!0:(i.boolean||i.overloadedBoolean)&&("string"!=typeof n||n===i.attribute||""===n)&&(n=!!n),null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";let l=ez(i.attribute,Object.assign({},e.settings.characterReferences,{subset:e9.name[a][o]}));return!0===n?l:(n=Array.isArray(n)?(i.commaSeparated?eG.P:eZ.P)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(r=ez(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:e9.unquoted[a][o]}))),r!==n&&(e.settings.quoteSmart&&(0,eq.w)(n,s)>(0,eq.w)(n,e.alternative)&&(s=e.alternative),r=s+ez(n,Object.assign({},e.settings.characterReferences,{subset:("'"===s?e9.single:e9.double)[a][o],attribute:!0}))+s),l+(r?"="+r:r))}(e,n,t[n]);i&&r.push(i)}}for(;++i<r.length;){let t=e.settings.tightAttributes?r[i].charAt(r[i].length-1):void 0;i!==r.length-1&&'"'!==t&&"'"!==t&&(r[i]+=" ")}return r.join("")}(r,e.properties),c=r.all("html"===a.space&&"template"===e.tagName?e.content:e);return r.schema=a,c&&(s=!1),!u&&o&&e8(e,t,n)||(l.push("<",e.tagName,u?" "+u:""),s&&("svg"===a.space||r.settings.closeSelfClosing)&&(i=u.charAt(u.length-1),(!r.settings.tightSelfClosing||"/"===i||i&&'"'!==i&&"'"!==i)&&l.push(" "),l.push("/")),l.push(">")),l.push(c),s||o&&e2(e,t,n)||l.push("</"+e.tagName+">"),l.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:e4(e,t,n,r)},root:function(e,t,n,r){return r.all(e)},text:e4}}),tt={},tn={},tr=[];function ti(e,t,n){return te(e,t,n,this)}function ta(e){let t=[],n=e&&e.children||tr,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function to(e,t){let n="string"==typeof e?{}:{...e.colorReplacements},r="string"==typeof e?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))"string"==typeof i?n[e]=i:e===r&&Object.assign(n,i);return n}function ts(e,t){return e&&t?.[e?.toLowerCase()]||e}async function tl(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function tu(e){return!e||["plaintext","txt","text","plain"].includes(e)}function tc(e){return"ansi"===e||tu(e)}function td(e){return"none"===e}function th(e,t){if(!t)return e;for(let n of(e.properties||={},e.properties.class||=[],"string"==typeof e.properties.class&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]),Array.isArray(t)?t:t.split(/\s+/g)))n&&!e.properties.class.includes(n)&&e.properties.class.push(n);return e}function tf(e,t=!1){if(0===e.length)return[["",0]];let n=e.split(/(\r?\n)/g),r=0,i=[];for(let e=0;e<n.length;e+=2){let a=t?n[e]+(n[e+1]||""):n[e];i.push([a,r]),r+=n[e].length+(n[e+1]?.length||0)}return i}let tp="light-dark()",tg=["color","background-color"];function tm(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&S.Italic&&(t["font-style"]="italic"),e.fontStyle&S.Bold&&(t["font-weight"]="bold");let n=[];e.fontStyle&S.Underline&&n.push("underline"),e.fontStyle&S.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function ty(e){return"string"==typeof e?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}let tb=new WeakMap;function tv(e,t){tb.set(e,t)}function tx(e){return tb.get(e)}class tk{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,t){return new tk(Object.fromEntries((Array.isArray(t)?t:[t]).map(e=>[e,e_])),e)}constructor(...e){if(2===e.length){let[t,n]=e;this.lang=n,this._stacks=t}else{let[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return function(e){let t=[],n=new Set;return!function e(r){if(n.has(r))return;n.add(r);let i=r?.nameScopesList?.scopeName;i&&t.push(i),r.parent&&e(r.parent)}(e),t}(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}let tw=[function(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let n=function(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new u(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...r.indexToPos(e),offset:e}}{let t=r.lines[e.line];if(void 0===t)throw new u(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${r.lines.length}`);let n=e.character;if(n<0&&(n=t.length+n),n<0||n>t.length)throw new u(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:n,offset:r.posToIndex(e.line,n)}}},r=function(e){let t=tf(e,!0).map(([e])=>e);return{lines:t,indexToPos:function(n){if(n===e.length)return{line:t.length-1,character:t[t.length-1].length};let r=n,i=0;for(let e of t){if(r<e.length)break;r-=e.length,i++}return{line:i,character:r}},posToIndex:function(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+n}}}(t.source),i=(t.options.decorations||[]).map(e=>({...e,start:n(e.start),end:n(e.end)}));(function(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new u(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){let t=e[r],i=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,a=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,o=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,s=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;
1if(i||a||o||s){if(i&&a||o&&s||o&&n.start.offset===n.end.offset||a&&t.start.offset===t.end.offset)continue;throw new u(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}})(i),e.set(t.meta,{decorations:i,converter:r,source:t.source})}return e.get(t.meta)}return{name:"shiki:decorations",tokens(e){if(this.options.decorations?.length)return function(e,t){let n=Array.from(t instanceof Set?t:new Set(t)).sort((e,t)=>e-t);return n.length?e.map(e=>e.flatMap(e=>{let t=n.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);return t.length?function(e,t){let n=0,r=[];for(let i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}(e,t):e})):e}(e,t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))},code(e){if(!this.options.decorations?.length)return;let n=t(this),r=Array.from(e.children).filter(e=>"element"===e.type&&"span"===e.tagName);if(r.length!==n.converter.lines.length)throw new u(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(e,t,n,i){let o=r[e],s="",l=-1,c=-1;if(0===t&&(l=0),0===n&&(c=0),n===Number.POSITIVE_INFINITY&&(c=o.children.length),-1===l||-1===c)for(let e=0;e<o.children.length;e++)s+=function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""}(o.children[e]),-1===l&&s.length===t&&(l=e+1),-1===c&&s.length===n&&(c=e+1);if(-1===l)throw new u(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(-1===c)throw new u(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let d=o.children.slice(l,c);if(i.alwaysWrap||d.length!==o.children.length){if(i.alwaysWrap||1!==d.length||"element"!==d[0].type){let e={type:"element",tagName:"span",properties:{},children:d};a(e,i,"wrapper"),o.children.splice(l,d.length,e)}else a(d[0],i,"token")}else a(o,i,"line")}function a(e,t,n){let r=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||"span",e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&th(e,t.properties.class),e=i(e,n)||e}let o=[];for(let e of n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset)){let{start:t,end:n}=e;if(t.line===n.line)i(t.line,t.character,n.character,e);else if(t.line<n.line){i(t.line,t.character,Number.POSITIVE_INFINITY,e);for(let i=t.line+1;i<n.line;i++)o.unshift(()=>{var t;r[t=i]=a(r[t],e,"line")});i(n.line,0,n.character,e)}}o.forEach(e=>e())}}}()];function t_(e){let t=function(e){let t=[],n=[],r=[];for(let i of e)switch(i.enforce){case"pre":t.push(i);break;case"post":n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...tw]}var tS=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],tC={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function tM(e){let t=e.shift();if("2"===t){let t=e.splice(0,3).map(e=>Number.parseInt(e));if(3!==t.length||t.some(e=>Number.isNaN(e)))return;return{type:"rgb",rgb:t}}if("5"===t){let t=e.shift();if(t)return{type:"table",index:Number(t)}}}var tA={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};let tE={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function tT(e,t,n={}){let{theme:r=e.getLoadedThemes()[0]}=n,i=e.resolveLangAlias(n.lang||"text");if(tu(i)||td(r))return tf(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:a,colorMap:o}=e.setTheme(r);if("ansi"===i)return function(e,t,n){let r,i,a;let o=to(e,n),s=tf(t),l=function(e=tA){let t;function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join("")}`}return{value:function(r){switch(r.type){case"named":return e[r.name];case"rgb":return n(r.rgb);case"table":var i;return i=r.index,function(){if(t)return t;t=[];for(let n=0;n<tS.length;n++)t.push(e[tS[n]]);
1let r=[0,95,135,175,215,255];for(let e=0;e<6;e++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)t.push(n([r[e],r[i],r[a]]));let i=8;for(let e=0;e<24;e++,i+=10)t.push(n([i,i,i]));return t}()[i]}}}}(Object.fromEntries(tS.map(t=>{let n=`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;return[t,e.colors?.[n]||tE[t]]}))),u=(r=null,i=null,a=new Set,{parse(e){let t=[],n=0;do{let o=function(e,t){let n=e.indexOf("\x1b",t);if(-1!==n&&"["===e[n+1]){let t=e.indexOf("m",n);if(-1!==t)return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}(e,n),s=o.sequence?e.substring(n,o.startPosition):e.substring(n);if(s.length>0&&t.push({value:s,foreground:r,background:i,decorations:new Set(a)}),o.sequence){let e=function(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r)){if(0===r)t.push({type:"resetAll"});else if(r<=9)tC[r]&&t.push({type:"setDecoration",value:tC[r]});else if(r<=29){let e=tC[r-20];e&&(t.push({type:"resetDecoration",value:e}),"dim"===e&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:tS[r-30]}});else if(38===r){let n=tM(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===r)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:tS[r-40]}});else if(48===r){let n=tM(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===r?t.push({type:"resetBackgroundColor"}):53===r?t.push({type:"setDecoration",value:"overline"}):55===r?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:tS[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:tS[r-100+8]}})}}return t}(o.sequence);for(let t of e)"resetAll"===t.type?(r=null,i=null,a.clear()):"resetForegroundColor"===t.type?r=null:"resetBackgroundColor"===t.type?i=null:"resetDecoration"===t.type&&a.delete(t.value);for(let t of e)"setForegroundColor"===t.type?r=t.value:"setBackgroundColor"===t.type?i=t.value:"setDecoration"===t.type&&a.add(t.value)}n=o.position}while(n<e.length);return t}});return s.map(t=>u.parse(t[0]).map(n=>{let r,i;n.decorations.has("reverse")?(r=n.background?l.value(n.background):e.bg,i=n.foreground?l.value(n.foreground):e.fg):(r=n.foreground?l.value(n.foreground):e.fg,i=n.background?l.value(n.background):void 0),r=ts(r,o),i=ts(i,o),n.decorations.has("dim")&&(r=function(e){let t=e.match(/#([0-9a-f]{3,8})/i);if(t){let e=t[1];if(8===e.length){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${e.slice(0,6)}${t}`}if(6===e.length)return`#${e}80`;if(4===e.length){let t=e[0],n=e[1],r=e[2],i=e[3],a=Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,"0");return`#${t}${t}${n}${n}${r}${r}${a}`}if(3===e.length){let t=e[0],n=e[1],r=e[2];return`#${t}${t}${n}${n}${r}${r}80`}}let n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(r));let a=S.None;return n.decorations.has("bold")&&(a|=S.Bold),n.decorations.has("italic")&&(a|=S.Italic),n.decorations.has("underline")&&(a|=S.Underline),n.decorations.has("strikethrough")&&(a|=S.Strikethrough),{content:n.value,offset:t[1],color:r,bgColor:i,fontStyle:a}}))}(a,t,n);let s=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==s.name)throw new u(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${s.name}"`);if(!n.grammarState.themes.includes(a.name))throw new u(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return function(e,t,n,r,i){let a=tR(e,t,n,r,i),o=new tk(a.stateStack,t.name,n.name);return tv(a.tokens,o),a.tokens}(t,s,a,o,n)}function tR(e,t,n,r,i){let a=to(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500}=i,l=tf(e),c=i.grammarState?function(e,t){if(!(e instanceof tk))throw new u("Invalid grammar state");return e.getInternalStack(t)}(i.grammarState,n.name)??e_:null!=i.grammarContextCode?tR(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:e_,d=[],h=[];for(let e=0,u=l.length;e<u;e++){let u,f;let[p,g]=l[e];
1if(""===p){d=[],h.push([]);continue}if(o>0&&p.length>=o){d=[],h.push([{content:p,offset:g,color:"",fontStyle:0}]);continue}i.includeExplanation&&(u=t.tokenizeLine(p,c,s).tokens,f=0);let m=t.tokenizeLine2(p,c,s),y=m.tokens.length/2;for(let e=0;e<y;e++){let t=m.tokens[2*e],o=e+1<y?m.tokens[2*e+2]:p.length;if(t===o)continue;let s=m.tokens[2*e+1],l=ts(r[T.getForeground(s)],a),c=T.getFontStyle(s),h={content:p.substring(t,o),offset:g+t,color:l,fontStyle:c};if(i.includeExplanation){let e=[];if("scopeName"!==i.includeExplanation)for(let t of n.settings){let n;switch(typeof t.scope){case"string":n=t.scope.split(/,/).map(e=>e.trim());break;case"object":n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(/ /))})}h.explanation=[];let r=0;for(;t+r<o;){let t=u[f],n=p.substring(t.startIndex,t.endIndex);r+=n.length,h.explanation.push({content:n,scopes:"scopeName"===i.includeExplanation?t.scopes.map(e=>({scopeName:e})):function(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:function(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(function(e,t,n){if(!tN(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)tN(e[r],n[i])&&(r-=1),i-=1;return -1===r}(e,t,n)){r.push(a);break}return r}(e,i,t.slice(0,r))}}return n}(e,t.scopes)}),f+=1}}d.push(h)}h.push(d),d=[],c=m.ruleStack}return{tokens:h,stateStack:c}}function tN(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function tP(e,t,n){let r=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),i=r.map(r=>{let i=tT(e,t,{...n,theme:r.theme}),a=tx(i);return{tokens:i,state:a,theme:"string"==typeof r.theme?r.theme:r.theme.name}}),a=function(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let i=e.map(e=>e[r]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let o=i.map(()=>0),s=i.map(e=>e[0]);for(;s.every(e=>e);){let e=Math.min(...s.map(e=>e.content.length));for(let t=0;t<n;t++){let n=s[t];n.content.length===e?(a[t].push(n),o[t]+=1,s[t]=i[t][o[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),s[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}(...i.map(e=>e.tokens)),o=a[0].map((e,t)=>e.map((e,i)=>{let o={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in n&&n.includeExplanation&&(o.explanation=e.explanation),a.forEach((e,n)=>{let{content:a,explanation:s,offset:l,...u}=e[t][i];o.variants[r[n].color]=u}),o})),s=i[0].state?new tk(Object.fromEntries(i.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),i[0].state.lang):void 0;return s&&tv(o,s),o}function tL(e,t,n){let r,i,a,o,s,l;if("themes"in n){let{defaultColor:c="light",cssVariablePrefix:d="--shiki-",colorsRendering:h="css-vars"}=n,f=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===c?-1:t.color===c?1:0);if(0===f.length)throw new u("`themes` option must not be empty");let p=tP(e,t,n);if(l=tx(p),c&&tp!==c&&!f.find(e=>e.color===c))throw new u(`\`themes\` option must contain the defaultColor key \`${c}\``);let g=f.map(t=>e.getTheme(t.theme)),m=f.map(e=>e.color);a=p.map(e=>e.map(e=>(function(e,t,n,r,i="css-vars"){let a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>tm(e.variants[t])),s=new Set(o.flatMap(e=>Object.keys(e))),l={},c=(e,r)=>{let i="color"===r?"":"background-color"===r?"-bg":`-${r}`;
1return n+t[e]+("color"===r?"":i)};return o.forEach((e,n)=>{for(let a of s){let s=e[a]||"inherit";if(0===n&&r&&tg.includes(a)){if(r===tp&&o.length>1){let e=t.findIndex(e=>"light"===e),r=t.findIndex(e=>"dark"===e);if(-1===e||-1===r)throw new u('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let d=o[e][a]||"inherit",h=o[r][a]||"inherit";l[a]=`light-dark(${d}, ${h})`,"css-vars"===i&&(l[c(n,a)]=s)}else l[a]=s}else"css-vars"===i&&(l[c(n,a)]=s)}}),a.htmlStyle=l,a})(e,m,d,c,h))),l&&tv(a,l);let y=f.map(e=>to(e.theme,n));i=tI(f,g,y,d,c,"fg",h),r=tI(f,g,y,d,c,"bg",h),o=`shiki-themes ${g.map(e=>e.name).join(" ")}`,s=c?void 0:[i,r].join(";")}else if("theme"in n){let s=to(n.theme,n);a=tT(e,t,n);let u=e.getTheme(n.theme);r=ts(u.bg,s),i=ts(u.fg,s),o=u.name,l=tx(a)}else throw new u("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:r,themeName:o,rootStyle:s,grammarState:l}}function tI(e,t,n,r,i,a,o){return e.map((s,l)=>{let c=ts(t[l][a],n[l])||"inherit",d=`${r+s.color}${"bg"===a?"-bg":""}:${c}`;if(0===l&&i){if(i===tp&&e.length>1){let r=e.findIndex(e=>"light"===e.color),i=e.findIndex(e=>"dark"===e.color);if(-1===r||-1===i)throw new u('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let o=ts(t[r][a],n[r])||"inherit",s=ts(t[i][a],n[i])||"inherit";return`light-dark(${o}, ${s});${d}`}return c}return"css-vars"===o?d:null}).filter(e=>!!e).join(";")}function tO(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>tO(e,t,n),codeToTokens:(t,n)=>tL(e,t,n)}){let i=t;for(let e of t_(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:o,bg:s,themeName:l,rootStyle:u,grammarState:c}=tL(e,i,n),{mergeWhitespaces:d=!0,mergeSameStyleTokens:h=!1}=n;!0===d?a=a.map(e=>{let t;let n=[],r="";return e.forEach((i,a)=>{let o=!(i.fontStyle&&(i.fontStyle&S.Underline||i.fontStyle&S.Strikethrough));o&&i.content.match(/^\s+$/)&&e[a+1]?(void 0===t&&(t=i.offset),r+=i.content):r?(o?n.push({...i,offset:t,content:r+i.content}):n.push({content:r,offset:t},i),t=void 0,r=""):n.push(i)}),n}):"never"===d&&(a=a.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;let t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;let[,n,r,i]=t;if(!n&&!i)return e;let a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a}))),h&&(a=a.map(e=>{let t=[];for(let n of e){if(0===t.length){t.push({...n});continue}let e=t[t.length-1],r=ty(e.htmlStyle||tm(e)),i=ty(n.htmlStyle||tm(n)),a=e.fontStyle&&(e.fontStyle&S.Underline||e.fontStyle&S.Strikethrough),o=n.fontStyle&&(n.fontStyle&S.Underline||n.fontStyle&S.Strikethrough);a||o||r!==i?t.push({...n}):e.content+=n.content}return t}));let f={...r,get source(){return i}};for(let e of t_(n))a=e.tokens?.call(f,a)||a;return function(e,t,n,r=tx(e)){let i=t_(t),a=[],o={type:"root",children:[]},{structure:s="classic",tabindex:l="0"}=t,u={class:`shiki ${t.themeName||""}`};for(let[e,n]of(!1!==t.rootStyle&&(null!=t.rootStyle?u.style=t.rootStyle:u.style=`background-color:${t.bg};color:${t.fg}`),!1!==l&&null!=l&&(u.tabindex=l.toString()),Object.entries(t.meta||{})))e.startsWith("_")||(u[e]=n);let c={type:"element",tagName:"pre",properties:u,children:[],data:t.data},d={type:"element",tagName:"code",properties:{},children:a},h=[],f={...n,structure:s,addClassToHast:th,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return o},get pre(){return c},get code(){return d},get lines(){return h}};if(e.forEach((e,t)=>{t&&("inline"===s?o.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===s&&a.push({type:"text",value:"\n"}));let n={type:"element",tagName:"span",properties:{class:"line"},children:[]},r=0;for(let a of e){let e={type:"element",tagName:"span",properties:{...a.htmlAttrs},children:[{type:"text",value:a.content}]},l=ty(a.htmlStyle||tm(a));for(let o of(l&&(e.properties.style=l),i))e=o?.span?.call(f,e,t+1,r,n,a)||e;"inline"===s?o.children.push(e):"classic"===s&&n.children.push(e),r+=a.content.length}if("classic"===s){for(let e of i)n=e?.line?.call(f,n,t+1)||n;h.push(n),a.push(n)}else"inline"===s&&h.push(n)}),"classic"===s){for(let e of i)d=e?.code?.call(f,d)||d;for(let e of(c.children.push(d),i))c=e?.pre?.call(f,c)||c;o.children.push(c)}else if("inline"===s){let e=[],t={type:"element",tagName:"span",properties:{class:"line"}
1,children:[]};for(let n of o.children)"element"===n.type&&"br"===n.tagName?(e.push(t),t={type:"element",tagName:"span",properties:{class:"line"},children:[]}):("element"===n.type||"text"===n.type)&&t.children.push(n);e.push(t);let n={type:"element",tagName:"code",properties:{},children:e};for(let e of i)n=e?.code?.call(f,n)||n;o.children=[];for(let e=0;e<n.children.length;e++){e>0&&o.children.push({type:"element",tagName:"br",properties:{},children:[]});let t=n.children[e];"element"===t.type&&o.children.push(...t.children)}}let p=o;for(let e of i)p=e?.root?.call(f,p)||p;return r&&tv(p,r),p}(a,{...n,fg:o,bg:s,themeName:l,rootStyle:!1!==n.rootStyle&&(n.rootStyle??u)},f,c)}let t$=function(e,t){let n=t||tt,r=n.quote||'"';if('"'!==r&&"'"!==r)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return({one:ti,all:ta,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||eS.z,characterReferences:n.characterReferences||tn,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?eC.YP:eC.dy,quote:r,alternative:'"'===r?"'":'"'}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)},tj={light:"#333333",dark:"#bbbbbb"},tD={light:"#fffffe",dark:"#1e1e1e"},tF="__shiki_resolved";function tB(e){if(e?.[tF])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r="light"===t.type?tj.light:tj.dark),n||(n="light"===t.type?tD.light:tD.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0,a=new Map;function o(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?o(e):(a.set(e,n),n)}for(let e of(t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith("#"),r=e.settings?.background&&!e.settings.background.startsWith("#");if(!n&&!r)return e;let i={...e,settings:{...e.settings}};if(n){let n=o(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=o(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i}),Object.keys(t.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!t.colors[e]?.startsWith("#")){let n=o(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,tF,{enumerable:!1,writable:!1,value:!0}),t}async function tz(e){return Array.from(new Set((await Promise.all(e.filter(e=>!tc(e)).map(async e=>await tl(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function tU(e){return(await Promise.all(e.map(async e=>td(e)?null:tB(await tl(e))))).filter(e=>!!e)}class tW extends Error{constructor(e){super(e),this.name="ShikiError"}}function tH(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new tW(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return e}class tq extends ew{constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=tB(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=x.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=tH(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEac
1h(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=Array.from(this._langGraph.entries()),n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>{if(!t)return!1;let r=t.embeddedLanguages||t.embeddedLangs;return r?.some(e=>n.map(([e])=>e).includes(e))}).filter(e=>!n.includes(e));throw new tW(`Missing languages ${n.map(([e])=>`\`${e}\``).join(", ")}, required by ${e.map(([e])=>`\`${e}\``).join(", ")}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}}class tG{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(".");n=[...n,...this._injections.get(r)||[]]}return n}}let tV=0;async function tZ(e){e.engine||function(e,t=3){t>3||console.trace(`[SHIKI DEPRECATE]: ${e}`)}("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([tU(e.themes||[]),tz(e.langs||[]),e.engine]);return function(e){let t;tV+=1,!1!==e.warnings&&tV>=10&&tV%10==0&&console.warn(`[Shiki] ${tV} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let n=!1;if(!e.engine)throw new tW("`engine` option is required for synchronous mode");let r=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(tB),a=new tq(new tG(e.engine,r),i,r,e.langAlias);function o(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};u();let t=a.getTheme(e);if(!t)throw new tW(`Theme \`${e}\` not found, you may need to load it first`);return t}function s(...e){u(),a.loadLanguages(e.flat(1))}function l(...e){for(let t of(u(),e.flat(1)))a.loadTheme(t)}function u(){if(n)throw new tW("Shiki instance has been disposed")}function c(){n||(n=!0,a.dispose(),tV-=1)}return{setTheme:function(e){u();let n=o(e);return t!==e&&(a.setTheme(n),t=e),{theme:n,colorMap:a.getColorMap()}},getTheme:o,getLanguage:function(e){u();let t=a.getGrammar("string"==typeof e?e:e.name);if(!t)throw new tW(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return u(),a.getLoadedThemes()},getLoadedLanguages:function(){return u(),a.getLoadedLanguages()},resolveLangAlias:function(t){return tH(t,e.langAlias)},loadLanguage:async function(...e){return s(await tz(e))},loadLanguageSync:s,loadTheme:async function(...e){return u(),l(await tU(e))},loadThemeSync:l,dispose:c,[Symbol.dispose]:c}}({...e,themes:t,langs:n,engine:r})}async function tY(e){let t=await tZ(e);return{getLastGrammarState:(...e)=>(function(...e){if(2===e.length)return tx(e[1]);let[t,n,r={}]=e,{lang:i="text",theme:a=t.getLoadedThemes()[0]}=r;if(tu(i)||td(a))throw new u("Plain language does not have grammar state");if("ansi"===i)throw new u("ANSI language does not have grammar state");
1let{theme:o,colorMap:s}=t.setTheme(a),l=t.getLanguage(i);return new tk(tR(n,l,o,s,r).stateStack,l.name,o.name)})(t,...e),codeToTokensBase:(e,n)=>tT(t,e,n),codeToTokensWithThemes:(e,n)=>tP(t,e,n),codeToTokens:(e,n)=>tL(t,e,n),codeToHast:(e,n)=>tO(t,e,n),codeToHtml:(e,n)=>(function(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>tO(e,t,n),codeToTokens:(t,n)=>tL(e,t,n)},i=t$(tO(e,t,n,r));for(let e of t_(n))i=e.postprocess?.call(r,i,n)||i;return i})(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}let tX=Object.fromEntries([{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>n.e(91860).then(n.bind(n,91860))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>n.e(41740).then(n.bind(n,41740))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>n.e(95266).then(n.bind(n,95266))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:()=>n.e(31663).then(n.bind(n,31663))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:()=>n.e(60228).then(n.bind(n,60228))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xe9",type:"dark",import:()=>n.e(59496).then(n.bind(n,59496))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>n.e(90893).then(n.bind(n,90893))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>n.e(86169).then(n.bind(n,86169))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>n.e(24203).then(n.bind(n,24203))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>n.e(62484).then(n.bind(n,62484))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>n.e(71933).then(n.bind(n,71933))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>n.e(60954).then(n.bind(n,60954))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>n.e(77152).then(n.bind(n,77152))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>n.e(49969).then(n.bind(n,49969))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>n.e(86170).then(n.bind(n,86170))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>n.e(28373).then(n.bind(n,28373))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>n.e(17239).then(n.bind(n,17239))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>n.e(22958).then(n.bind(n,22958))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>n.e(37805).then(n.bind(n,37805))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>n.e(71537).then(n.bind(n,71537))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>n.e(75181).then(n.bind(n,75181))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>n.e(76155).then(n.bind(n,76155))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>n.e(29073).then(n.bind(n,29073))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>n.e(67666).then(n.bind(n,67666))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>n.e(22135).then(n.bind(n,22135))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>n.e(26111).then(n.bind(n,26111))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>n.e(17502).then(n.bind(n,17502))},{id:"horizon",displayName:"Horizon",type:"dark",import:()=>n.e(86213).then(n.bind(n,86213))},{id:"horizon-bright",displayName:"Horizon Bright",type:"dark",import:()=>n.e(80917).then(n.bind(n,80917))},{id:"houston",displayName:"Houston",type:"dark",import:()=>n.e(11443).then(n.bind(n,11443))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>n.e(75202).then(n.bind(n,75202))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>n.e(78572).then(n.bind(n,78572))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>n.e(51390).then(n.bind(n,51390))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>n.e(53469).then(n.bind(n,53469))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>n.e(72890).then(n.bind(n,72890))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>n.e(75754).then(n.bind(n,75754))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>n.e(39293).then(n.bind(n,39293))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>n.e(83709).then(n.bind(n,83709))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>n.e(58718).then(n.bind(n,58718))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>n.e(14282).then(n.bind(n,14282))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>n.e(88122).then(n.bind(n,88122))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>n.e(78929).then(n.bind(n,78929))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>n.e(26061).then(n.bind(n,26061))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>n.e(9093).then(n.bind(n,9093))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:()=>n.e(31408).then(n.bind(n,31408))},{id:"nord",displayName:"Nord",type:"dark",import:()=>n.e(37591).then(n.bind(n,37591))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>n.e(38617).then(n.bind(n,38617))},{id:"one-light",displayName:"One Light",type:"light",import:()=>n.e(50924).then(n.bind(n,50924))},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>n.e(35958).then(n.bind(n,35958))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>n.e(69244).then(n.bind(n,69244))},{id:"red",displayName:"Red",type:"dark",import:()=>n.e(43543).then(n.bind(n,43543))},{id:"rose-pine",displayName:"Ros\xe9 Pine",type:"dark",import:()=>n.e(1064).then(n.bind(n,1064))},{id:"rose-pine-dawn",displayName:"Ros\xe9 Pine Dawn",type:"light",import:()=>n.e(89760).then(n.bind(n,89760))},{id:"rose-pine-moon",displayName:"Ros\xe9 Pine Moon",type:"dark",import:()=>n.e(15081).then(n.bind(n,15081))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>n.e(80055).then(n.bind(n,80055))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>n.e(49422).then(n.bind(n,49422))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>n.e(81981).then(n.bind(n,81981))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>n.e(93589).then(n.bind(n,93589))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>n.e(28416).then(n.bind(n,28416))}
1,{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>n.e(51700).then(n.bind(n,51700))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>n.e(80811).then(n.bind(n,94722))},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>n.e(58019).then(n.bind(n,58019))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>n.e(66487).then(n.bind(n,66487))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>n.e(50993).then(n.bind(n,50993))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>n.e(94611).then(n.bind(n,94611))}].map(e=>[e.id,e.import]));var tQ=n(47961).lW;class tK extends Error{constructor(e){super(e),this.name="ShikiError"}}function tJ(){return"undefined"!=typeof performance?performance.now():Date.now()}let t0=(e,t)=>e+(t-e%t)%t;async function t1(e){let t,n;let r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}let a="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function o(e,t){return e?function(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&a)return a.decode(e.subarray(t,i));let o="";for(;t<i;){let n=e[t++];if(!(128&n)){o+=String.fromCharCode(n);continue}let r=63&e[t++];if((224&n)==192){o+=String.fromCharCode((31&n)<<6|r);continue}let i=63&e[t++];if((n=(240&n)==224?(15&n)<<12|r<<6|i:(7&n)<<18|r<<12|i<<6|63&e[t++])<65536)o+=String.fromCharCode(n);else{let e=n-65536;o+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return o}(r.HEAPU8,e,t):""}let s={emscripten_get_now:tJ,emscripten_memcpy_big:function(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){let a=r.HEAPU8.length;if((e>>>=0)>2147483648)return!1;for(let r=1;r<=4;r*=2){let o=a*(1+.2/r);if(o=Math.min(o,e+100663296),function(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}(Math.min(2147483648,t0(Math.max(e,o),65536))))return!0}return!1},fd_write:()=>0};async function l(){let n=await e({env:s,wasi_snapshot_preview1:s});i((t=n.memory).buffer),Object.assign(r,n),r.UTF8ToString=o}return await l(),r}var t2=Object.defineProperty,t5=(e,t,n)=>t in e?t2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,t3=(e,t,n)=>t5(e,"symbol"!=typeof t?t+"":t,n);let t6=null;class t8{constructor(e){t3(this,"utf16Length"),t3(this,"utf8Length"),t3(this,"utf16Value"),t3(this,"utf8Value"),t3(this,"utf16OffsetToUtf8"),t3(this,"utf8OffsetToUtf16");let t=e.length,n=t8._utf8ByteLength(e),r=n!==t,i=r?new Uint32Array(t+1):null;r&&(i[t]=n);let a=r?new Uint32Array(n+1):null;r&&(a[n]=t);let o=new Uint8Array(n),s=0;for(let n=0;n<t;n++){let l=e.charCodeAt(n),u=l,c=!1;if(l>=55296&&l<=56319&&n+1<t){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(u=(l-55296<<10)+65536|t-56320,c=!0)}r&&(i[n]=s,c&&(i[n+1]=s),u<=127?a[s+0]=n:u<=2047?(a[s+0]=n,a[s+1]=n):u<=65535?(a[s+0]=n,a[s+1]=n,a[s+2]=n):(a[s+0]=n,a[s+1]=n,a[s+2]=n,a[s+3]=n)),u<=127?o[s++]=u:(u<=2047?o[s++]=192|(1984&u)>>>6:(u<=65535?o[s++]=224|(61440&u)>>>12:(o[s++]=240|(1835008&u)>>>18,o[s++]=128|(258048&u)>>>12),o[s++]=128|(4032&u)>>>6),o[s++]=128|(63&u)>>>0),c&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=a}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}let t9=class e{constructor(t){if(t3(this,"id",++e.LAST_ID),t3(this,"_onigBinding"),t3(this,"content"),t3(this,"utf16Length"),t3(this,"utf8Length"),t3(this,"utf16OffsetToUtf8"),t3(this,"utf8OffsetToUtf16"),t3(this,"ptr"),!t6)throw new tK("Must invoke loadWasm first.");this._onigBinding=t6,this.content=t;let n=new t8(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=t6.omalloc(1e4)),e._sharedPtrInUse=!0,t6.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(t6)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};t3(t9,"LAST_ID",0),t3(t9,"_sharedPtr",0),t3(t9,"_sharedPtrInUse",!1);class t7{constructor(e){if(t3(this,"_onigBinding"),t3(this,"_ptr"),!t6)throw new tK("Must invoke loadWasm first.");let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new t8(e[r]);t[r]=i.createString(t6),n[r]=i.utf8Length}let r=t6.omalloc(4*e.length);t6.HEAPU32.set(t,r/4);let i=t6.omalloc(4*e.length);t6.HEAPU32.set(n,i/4);let a=t6.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)t6.ofree(t[n]);t6.ofree(i),t6.ofree(r),0===a&&function(e){throw new tK(e.UTF8ToString(e.getLastO
1nigError()))}(t6),this._onigBinding=t6,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if("number"==typeof n&&(r=n),"string"==typeof e){e=new t9(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(0===a)return null;let o=i.HEAPU32,s=a/4,l=o[s++],u=o[s++],c=[];for(let t=0;t<u;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);c[t]={start:n,end:r,length:r-n}}return{index:l,captureIndices:c}}}function t4(e){return t=>WebAssembly.instantiate(e,t)}async function ne(e){return e&&await (i||(i=async function(){t6=await t1(async t=>{let n=e;if("function"==typeof(n=await n)&&(n=await n(t)),"function"==typeof n&&(n=await n(t)),"function"==typeof n.instantiator)n=await n.instantiator(t);else if("function"==typeof n.default)n=await n.default(t);else{var r,i,a,o;(void 0!==n.data&&(n=n.data),r=n,"undefined"!=typeof Response&&r instanceof Response)?"function"==typeof WebAssembly.instantiateStreaming?n=await (a=n,e=>WebAssembly.instantiateStreaming(a,e))(t):n=await (o=n,async e=>{let t=await o.arrayBuffer();return WebAssembly.instantiate(t,e)})(t):(i=n,"undefined"!=typeof ArrayBuffer&&(i instanceof ArrayBuffer||ArrayBuffer.isView(i))||void 0!==tQ&&tQ.isBuffer?.(i)||"undefined"!=typeof SharedArrayBuffer&&i instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&i instanceof Uint32Array)?n=await t4(n)(t):n instanceof WebAssembly.Module?n=await t4(n)(t):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await t4(n.default)(t))}return"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}())),{createScanner:e=>new t7(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new t9(e)}}let nt=function(e){let t=e.langs,n=e.themes,r=e.engine;return async function(e){function i(n){if("string"==typeof n){if(tc(n=e.langAlias?.[n]||n))return[];let r=t[n];if(!r)throw new u(`Language \`${n}\` is not included in this bundle. You may want to load it from external source.`);return r}return n}function a(e){if(td(e))return"none";if("string"==typeof e){let t=n[e];if(!t)throw new u(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let o=(e.themes??[]).map(e=>a(e)),s=(e.langs??[]).map(e=>i(e)),l=await tY({engine:e.engine??r(),...e,themes:o,langs:s});return{...l,loadLanguage:(...e)=>l.loadLanguage(...e.map(i)),loadTheme:(...e)=>l.loadTheme(...e.map(a)),getBundledLanguages:()=>t,getBundledThemes:()=>n}}}({langs:l,themes:tX,engine:()=>ne(Promise.all([n.e(69747),n.e(60405)]).then(n.bind(n,60405)))}),{codeToHtml:nn,codeToHast:nr,codeToTokens:ni,codeToTokensBase:na,codeToTokensWithThemes:no,getSingletonHighlighter:ns,getLastGrammarState:nl}=function(e,t){let n;let r=async function(t={}){if(n){let e=await n;return await Promise.all([e.loadTheme(...t.themes||[]),e.loadLanguage(...t.langs||[])]),e}{n=e({...t,themes:[],langs:[]});let r=await n;return await Promise.all([r.loadTheme(...t.themes||[]),r.loadLanguage(...t.langs||[])]),r}};async function i(e,n){let i=await r({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)}),a=await t?.guessEmbeddedLanguages?.(e,n.lang,i);return a&&await i.loadLanguage(...a),i}return{getSingletonHighlighter:e=>r(e),codeToHtml:async(e,t)=>(await i(e,t)).codeToHtml(e,t),codeToHast:async(e,t)=>(await i(e,t)).codeToHast(e,t),codeToTokens:async(e,t)=>(await i(e,t)).codeToTokens(e,t),codeToTokensBase:async(e,t)=>(await i(e,t)).codeToTokensBase(e,t),codeToTokensWithThemes:async(e,t)=>(await i(e,t)).codeToTokensWithThemes(e,t),getLastGrammarState:async(e,t)=>(await r({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}(nt,{guessEmbeddedLanguages:function(e,t,n){let r=new Set;for(let t of e.matchAll(/:?lang=["']([^"']+)["']/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/(?:```|~~~)([\w-]+)/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/\\begin\{([\w-]+)\}/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)){let e=t[1].toLowerCase().trim(),n=e.includes("/")?e.split("/").pop():e;n&&r.add(n)}if(!n)return Array.from(r);let i=n.getBundledLanguages();return Array.from(r).filter(e=>e&&i[e])}});function nu(e){if(1!=[...e].length)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}let nc=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),nd=String.raw;function nh(e,t){if(null==e)throw Error(t??"Value expected");return e}let nf=nd`\[\^?`,np=`c.? | C(?:-.?)?|${nd`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${nd`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${nd`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${nd`o\{[^\}]*\}?`}|${nd`\d{1,3}`}`,ng=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,nm=RegExp(nd`
2  \\ (?:
3    ${np}
4    | [gk]<[^>]*>?
5    | [gk]'[^']*'?
6    | .
7  )
8  | \( (?:
9    \? (?:
10      [:=!>({]
11      | <[=!]
12      | <[^>]*>
13      | '[^']*'
14      | ~\|?
15      | #(?:[^)\\]|\\.?)*
16      | [^:)]*[:)]
17    )?
18    | \*[^\)]*\)?
19  )?
20  | (?:${ng.source})+
21  | ${nf}
22  | .
23`.replace(/\s+/g,""),"gsu"),ny=RegExp(nd`
24  \\ (?:
25    ${np}
26    | .
27  )
28  | \[:(?:\^?\p{Alpha}+|\^):\]
29  | ${nf}
30  | &&
31  | .
32`.replace(/\s+/g,""),"gsu");function nb(e,{inCharClass:t}){let n=e[1];if("c"===n||"C"===n)return function(e){let t="c"===e[1]?e[2]:e[3];
32if(!t||!/[A-Za-z]/.test(t))throw Error(`Unsupported control character "${e}"`);return nk(nu(t.toUpperCase())-64,e)}(e);if("dDhHsSwW".includes(n))return function(e){let t=e[1].toLowerCase();return n_({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}(e);if(e.startsWith(nd`\o{`))throw Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(3===e.length)throw Error(`Incomplete or invalid Unicode property "${e}"`);return function(e){let{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return n_("property",e,{value:r,negate:"P"===t&&!n||"p"===t&&!!n})}(e)}if(/^\\x[89A-Fa-f]\p{AHex}/u.test(e))try{let t=e.split(/\\x/).slice(1).map(e=>parseInt(e,16)),n=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(t)),r=new TextEncoder;return[...n].map(e=>{let t=[...r.encode(e)].map(e=>`\\x${e.toString(16)}`).join("");return nk(nu(e),t)})}catch{throw Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if("u"===n||"x"===n)return nk(function(e){if(/^(?:\\u(?!\p{AHex}{4})|\\x(?!\p{AHex}{1,2}|\{\p{AHex}{1,8}\}))/u.test(e))throw Error(`Incomplete or invalid escape "${e}"`);return parseInt("{"===e[2]?/^\\x\{\s*(?<hex>\p{AHex}+)/u.exec(e).groups.hex:e.slice(2),16)}(e),e);if(nA.has(n))return nk(nA.get(n),e);if(/\d/.test(n))return{type:"EscapedNumber",inCharClass:t,raw:e};if("\\"===e)throw Error(nd`Incomplete escape "\"`);if("M"===n)throw Error(`Unsupported meta "${e}"`);if(2==[...e].length)return nk(e.codePointAt(1),e);throw Error(`Unexpected escape "${e}"`)}function nv(e,t){return{type:"Assertion",kind:e,raw:t}}function nx(e){return{type:"Backreference",raw:e}}function nk(e,t){return{type:"Character",value:e,raw:t}}function nw(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function n_(e,t,n={}){return{type:"CharacterSet",kind:e,...n,raw:t}}function nS(e,t,n={}){return"keep"===e?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:nh(n.flags),raw:t}}function nC(e,t,n={}){return{type:"GroupOpen",kind:e,...n,raw:t}}let nM=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),nA=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function nE(e){let t=null,n,r;if("{"===e[0]){let{minStr:i,maxStr:a}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups;if(+i>1e5||a&&+a>1e5)throw Error("Quantifier value unsupported in Oniguruma");if((n=+i)>(r=void 0===a?+i:""===a?1/0:+a)&&(t="possessive",[n,r]=[r,n]),e.endsWith("?")){if("possessive"===t)throw Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else n="+"===e[0]?1:0,r="?"===e[0]?1:1/0,t="+"===e[1]?"possessive":"?"===e[1]?"lazy":"greedy";return{type:"Quantifier",kind:t,min:n,max:r,raw:e}}function nT(e){let t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function nR(e,t){if(!Array.isArray(e.body))throw Error("Expected node with body array");if(1!==e.body.length)return!1;let n=e.body[0];return!t||Object.keys(t).every(e=>t[e]===n[e])}let nN=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function nP(e,t={}){var n;let r={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},i=function(e,t={}){let n={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if("string"!=typeof e)throw Error("String expected as pattern");let r=function(e){let t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<e.length;n++){let r=e[n];if(!"imxDPSWy".includes(r))throw Error(`Invalid flag "${r}"`);if("y"===r){if(!/^y{[gw]}/.test(e.slice(n)))throw Error('Invalid or unspecified flag "y" mode');t.textSegmentMode="g"===e[n+2]?"grapheme":"word",n+=3;continue}t[({i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"})[r]]=!0}return t}(n.flags),i=[r.extended],a={captureGroup:n.rules.captureGroup,getCurrentModX:()=>i.at(-1),numOpenGroups:0,popModX(){i.pop()},pushModX(e){i.push(e)},replaceCurrentModX(e){i[i.length-1]=e},singleline:n.rules.singleline},o=[],s;for(nm.lastIndex=0;s=nm.exec(e);){let t=function(e,t,n,r){let[i,a]=n;if("["===n||"[^"===n){let e=function(e,t,n){let r=[nw("^"===t[1],t)],i=1,a;for(ny.lastIndex=n;a=ny.exec(e);){let e=a[0];if("["===e[0]&&":"!==e[1])i++,r.push(nw("^"===e[1],e));else if("]"===e){if("CharacterClassOpen"===r.at(-1).type)r.push(nk(93,e));else if(i--,r.push({type:"CharacterClassClose",raw:e}),!i)break}else{let t=function(e){if("\\"===e[0])return nb(e,{inCharClass:!0});if("["===e[0]){let t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!nc.has(t.groups.name))throw Error(`Invalid POSIX class "${e}"`);return n_("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return"-"===e?{type:"CharacterClassHyphen",raw:e}:"&&"===e?{type:"CharacterClassIntersector",raw:e}:nk(nu(e),e)}(e);Array.isArray(t)?r.push(...t):r.push(t)}}return{tokens:r,lastIndex:ny.lastIndex||e.length}}(t,n,r);return{tokens:e.tokens,lastIndex:e.lastIndex}}if("\\"===i){if("AbBGyYzZ".includes(a))return{token:nv(n,n)};
32if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw Error(`Invalid group name "${n}"`);return{token:{type:"Subroutine",raw:n}}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw Error(`Invalid group name "${n}"`);return{token:nx(n)}}if("K"===a)return{token:nS("keep",n)};if("N"===a||"R"===a)return{token:n_("newline",n,{negate:"N"===a})};if("O"===a)return{token:n_("any",n)};if("X"===a)return{token:n_("text_segment",n)};let e=nb(n,{inCharClass:!1});return Array.isArray(e)?{tokens:e}:{token:e}}if("("===i){if("*"===a)return{token:function(e){let t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw Error(`Incomplete or invalid named callout "${e}"`);let{name:n,tag:r,args:i}=t.groups;if(!n)throw Error(`Invalid named callout "${e}"`);if(""===r)throw Error(`Named callout tag with empty value not allowed "${e}"`);let a=i?i.split(",").filter(e=>""!==e).map(e=>/^[+-]?\d+$/.test(e)?+e:e):[],[o,s,l]=a,u=nM.has(n)?n.toLowerCase():"custom";switch(u){case"fail":case"mismatch":case"skip":if(a.length>0)throw Error(`Named callout arguments not allowed "${a}"`);break;case"error":if(a.length>1)throw Error(`Named callout allows only one argument "${a}"`);if("string"==typeof o)throw Error(`Named callout argument must be a number "${o}"`);break;case"max":if(!a.length||a.length>2)throw Error(`Named callout must have one or two arguments "${a}"`);if("string"==typeof o&&!/^[A-Za-z_]\w*$/.test(o))throw Error(`Named callout argument one must be a tag or number "${o}"`);if(2===a.length&&("number"==typeof s||!/^[<>X]$/.test(s)))throw Error(`Named callout optional argument two must be '<', '>', or 'X' "${s}"`);break;case"count":case"total_count":if(a.length>1)throw Error(`Named callout allows only one argument "${a}"`);if(1===a.length&&("number"==typeof o||!/^[<>X]$/.test(o)))throw Error(`Named callout optional argument must be '<', '>', or 'X' "${o}"`);break;case"cmp":if(3!==a.length)throw Error(`Named callout must have three arguments "${a}"`);if("string"==typeof o&&!/^[A-Za-z_]\w*$/.test(o))throw Error(`Named callout argument one must be a tag or number "${o}"`);if("number"==typeof s||!/^(?:[<>!=]=|[<>])$/.test(s))throw Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${s}"`);if("string"==typeof l&&!/^[A-Za-z_]\w*$/.test(l))throw Error(`Named callout argument three must be a tag or number "${l}"`);break;case"custom":throw Error(`Undefined callout name "${n}"`);default:throw Error(`Unexpected named callout kind "${u}"`)}return{type:"NamedCallout",kind:u,tag:r??null,arguments:i?.split(",")??null,raw:e}}(n)};if("(?{"===n)throw Error(`Unsupported callout "${n}"`);if(n.startsWith("(?#")){if(")"!==t[r])throw Error('Unclosed comment group "(?#"');return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:function(e,t){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;r??="";let i=(t.getCurrentModX()||n.includes("x"))&&!r.includes("x"),a=nT(n),o=nT(r),s={};if(a&&(s.enable=a),o&&(s.disable=o),e.endsWith(")"))return t.replaceCurrentModX(i),nS("flags",e,{flags:s});if(e.endsWith(":"))return t.pushModX(i),t.numOpenGroups++,nC("group",e,{...(a||o)&&{flags:s}});throw Error(`Unexpected flag modifier "${e}"`)}(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,"("===n&&!e.captureGroup||"(?:"===n)return{token:nC("group",n)};if("(?>"===n)return{token:nC("atomic",n)};if("(?="===n||"(?!"===n||"(?<="===n||"(?<!"===n)return{token:nC("<"===n[2]?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if("("===n&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:nC("capturing",n,{..."("!==n&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if("(?~|"===n)throw Error(`Unsupported absence function kind "${n}"`);return{token:nC("absence_repeater",n)}}throw"(?("===n?Error(`Unsupported conditional "${n}"`):Error(`Invalid or unsupported group option "${n}"`)}if(")"===n){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw Error('Unmatched ")"');return{token:{type:"GroupClose",raw:n}}}if(e.getCurrentModX()){if("#"===n){let e=t.indexOf(`
33`,r);return{lastIndex:-1===e?t.length:e}}if(/^\s$/.test(n)){let e=/\s+/y;return e.lastIndex=r,{lastIndex:e.exec(t)?e.lastIndex:r}}}return"."===n?{token:n_("dot",n)}:"^"===n||"$"===n?{token:nv(e.singleline?({"^":nd`\A`,$:nd`\Z`})[n]:n,n)}:"|"===n?{token:{type:"Alternator",raw:n}}:ng.test(n)?{tokens:function(e){let t;let n=[],r=RegExp(ng,"gy");for(;t=r.exec(e);){let e=t[0];if("{"===e[0]){let t=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(e);if(t){let{min:i,max:a}=t.groups;if(+i>
33+a&&e.endsWith("?")){r.lastIndex--,n.push(nE(e.slice(0,-1)));continue}}}n.push(nE(e))}return n}(n)}:{token:nk(nu(n),n)}}(a,e,s[0],nm.lastIndex);t.tokens?o.push(...t.tokens):t.token&&o.push(t.token),void 0!==t.lastIndex&&(nm.lastIndex=t.lastIndex)}let l=[],u=0;o.filter(e=>"GroupOpen"===e.type).forEach(e=>{"capturing"===e.kind?e.number=++u:"("===e.raw&&l.push(e)}),u||l.forEach((e,t)=>{e.kind="capturing",e.number=t+1});let c=u||l.length;return{tokens:o.map(e=>"EscapedNumber"===e.type?function(e,t){let{raw:n,inCharClass:r}=e,i=n.slice(1);if(!r&&("0"!==i&&1===i.length||"0"!==i[0]&&+i<=t))return[nx(n)];let a=[],o=i.match(/^[0-7]+|\d/g);for(let e=0;e<o.length;e++){let t;let r=o[e];if(0===e&&"8"!==r&&"9"!==r){if((t=parseInt(r,8))>127)throw Error(nd`Octal encoded byte above 177 unsupported "${n}"`)}else t=nu(r);a.push(nk(t,(0===e?"\\":"")+r))}return a}(e,c):e).flat(),flags:r}}(e,{flags:r.flags,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline}}),a=(e,t)=>{let n=i.tokens[o.nextIndex];switch(o.parent=e,o.nextIndex++,n.type){case"Alternator":return nL();case"Assertion":return function({kind:e}){return nI(nh({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===nd`\B`||e===nd`\Y`})}(n);case"Backreference":return function({raw:e},t){let n=/^\\k[<']/.test(e),r=n?e.slice(3,-1):e.slice(1),i=(n,r=!1)=>{let i=t.capturingGroups.length,a=!1;if(n>i){if(t.skipBackrefValidation)a=!0;else throw Error(`Not enough capturing groups defined to the left "${e}"`)}return t.hasNumberedRef=!0,nO(r?i+1-n:n,{orphan:a})};if(n){let n=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(n)return i(+n.groups.num,!!n.groups.sign);if(/[-+]/.test(r))throw Error(`Invalid backref name "${e}"`);
33if(!t.namedGroupsByName.has(r))throw Error(`Group name not defined to the left "${e}"`);return nO(r)}return i(+r)}(n,o);case"Character":return nj(n.value,{useLastValid:!!t.isCheckingRangeEnd});case"CharacterClassHyphen":return function(e,t,n){let{tokens:r,walk:i}=t,a=t.parent,o=a.body.at(-1),s=r[t.nextIndex];if(!n.isCheckingRangeEnd&&o&&"CharacterClass"!==o.type&&"CharacterClassRange"!==o.type&&s&&"CharacterClassOpen"!==s.type&&"CharacterClassClose"!==s.type&&"CharacterClassIntersector"!==s.type){let e=i(a,{...n,isCheckingRangeEnd:!0});if("Character"===o.type&&"Character"===e.type)return a.body.pop(),function(e,t){if(t.value<e.value)throw Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}(o,e);throw Error("Invalid character class range")}return nj(nu("-"))}(0,o,t);case"CharacterClassOpen":return function({negate:e},t,n){let{tokens:r,walk:i}=t,a=[nD()],o=r[t.nextIndex],s=nX(o);for(;"CharacterClassClose"!==s.type;){if("CharacterClassIntersector"===s.type)a.push(nD()),t.nextIndex++;else{let e=a.at(-1);e.body.push(i(e,n))}s=nX(r[t.nextIndex],o)}let l=nD({negate:e});return 1===a.length?l.body=a[0].body:(l.kind="intersection",l.body=a.map(e=>1===e.body.length?e.body[0]:e)),t.nextIndex++,l}(n,o,t);case"CharacterSet":return function({kind:e,negate:t,value:n},r){let{normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:o}=r;if("property"===e){let r=nY(n);if(!nc.has(r)||o?.has(r))return nH(n,{negate:t,normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:o});e="posix",n=r}return"posix"===e?function(e,t){let n=!!t?.negate;if(!nc.has(e))throw Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:n}}(n,{negate:t}):nF(e,{negate:t})}(n,o);case"Directive":return function(e,t={}){if("keep"===e)return{type:"Directive",kind:e};if("flags"===e)return{type:"Directive",kind:e,flags:nh(t.flags)};throw Error(`Unexpected directive kind "${e}"`)}(n.kind,{flags:n.flags});case"GroupOpen":return function(e,t,n){var r,i;let{tokens:a,capturingGroups:o,namedGroupsByName:s,skipLookbehindValidation:l,walk:u}=t,c=function({flags:e,kind:t,name:n,negate:r,number:i}){switch(t){case"absence_repeater":return function(e,t){if("repeater"!==e)throw Error(`Unexpected absence function kind "${e}"`);return{type:"AbsenceFunction",kind:e,body:nq(void 0)}}("repeater");case"atomic":return nB({atomic:!0});case"capturing":return n$(i,{name:n});case"group":return nB({flags:e});case"lookahead":case"lookbehind":return nz({behind:"lookbehind"===t,negate:r});default:throw Error(`Unexpected group kind "${t}"`)}}(e),d="AbsenceFunction"===c.type,h=nZ(c),f=h&&c.negate;if("CapturingGroup"===c.type&&(o.push(c),c.name&&(r=c.name,i=[],s.has(r)||s.set(r,i),s.get(r)).push(c)),d&&n.isInAbsenceFunction)throw Error("Nested absence function not supported by Oniguruma");let p=nQ(a[t.nextIndex]);for(;"GroupClose"!==p.type;){if("Alternator"===p.type)c.body.push(nL()),t.nextIndex++;else{let e=c.body.at(-1),t=u(e,{...n,isInAbsenceFunction:n.isInAbsenceFunction||d,isInLookbehind:n.isInLookbehind||h,isInNegLookbehind:n.isInNegLookbehind||f});if(e.body.push(t),(h||n.isInLookbehind)&&!l){let e="Lookbehind includes a pattern not allowed by Oniguruma";if(f||n.isInNegLookbehind){if(nV(t)||"CapturingGroup"===t.type)throw Error(e)}else if(nV(t)||nZ(t)&&t.negate)throw Error(e)}}p=nQ(a[t.nextIndex])}return t.nextIndex++,c}(n,o,t);case"NamedCallout":var r;return r=n.kind,{type:"NamedCallout",kind:r,tag:n.tag,arguments:n.arguments};case"Quantifier":return function({kind:e,min:t,max:n},r){let i=r.parent,a=i.body.at(-1);if(!a||!nN.has(a.type))throw Error("Quantifier requires a repeatable token");let o=nU(e,t,n,a);return i.body.pop(),o}(n,o);
33case"Subroutine":return function({raw:e},t){let{capturingGroups:n,subroutines:r}=t,i=e.slice(3,-1),a=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);if(a){let e=+a.groups.num,r=n.length;if(t.hasNumberedRef=!0,(i=({"":e,"+":r+e,"-":r+1-e})[a.groups.sign])<1)throw Error("Invalid subroutine number")}else"0"===i&&(i=0);let o=nW(i);return r.push(o),o}(n,o);default:throw Error(`Unexpected token type "${n.type}"`)}},o={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:r.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:r.skipBackrefValidation,skipLookbehindValidation:r.skipLookbehindValidation,skipPropertyNameValidation:r.skipPropertyNameValidation,subroutines:[],tokens:i.tokens,unicodePropertyMap:r.unicodePropertyMap,walk:a},s=(n={type:"Flags",...i.flags},{type:"Regex",body:nq(void 0),flags:n}),l=s.body[0];for(;o.nextIndex<i.tokens.length;){let e=a(l,{});"Alternative"===e.type?(s.body.push(e),l=e):l.body.push(e)}let{capturingGroups:u,hasNumberedRef:c,namedGroupsByName:d,subroutines:h}=o;if(c&&d.size&&!r.rules.captureGroup)throw Error("Numbered backref/subroutine not allowed when using named capture");for(let{ref:e}of h)if("number"==typeof e){if(e>u.length)throw Error("Subroutine uses a group number that's not defined");e&&(u[e-1].isSubroutined=!0)}else if(d.has(e)){if(d.get(e).length>1)throw Error(nd`Subroutine uses a duplicate group name "\g<${e}>"`);d.get(e)[0].isSubroutined=!0}else throw Error(nd`Subroutine uses a group name that's not defined "\g<${e}>"`);return s}function nL(e){return{type:"Alternative",body:nG(e?.body)}}function nI(e,t){let n={type:"Assertion",kind:e};return("word_boundary"===e||"text_segment_boundary"===e)&&(n.negate=!!t?.negate),n}function nO(e,t){let n=!!t?.orphan;return{type:"Backreference",ref:e,...n&&{orphan:n}}}function n$(e,t){var n;let r={name:void 0,isSubroutined:!1,...t};if(void 0!==r.name&&(n=r.name,!/^[\p{Alpha}\p{Pc}][^)]*$/u.test(n)))throw Error(`Group name "${r.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...r.name&&{name:r.name},...r.isSubroutined&&{isSubroutined:r.isSubroutined},body:nq(t?.body)}}function nj(e,t){let n={useLastValid:!1,...t};if(e>1114111){let t=e.toString(16);if(n.useLastValid)e=1114111;else throw e>1310719?Error(`Invalid code point out of range "\\x{${t}}"`):Error(`Invalid code point out of range in JS "\\x{${t}}"`)}return{type:"Character",value:e}}function nD(e){let t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:nG(e?.body)}}function nF(e,t){let n=!!t?.negate,r={type:"CharacterSet",kind:e};return("digit"===e||"hex"===e||"newline"===e||"space"===e||"word"===e)&&(r.negate=n),"text_segment"!==e&&("newline"!==e||n)||(r.variableLength=!0),r}function nB(e){let t=e?.atomic,n=e?.flags;if(t&&n)throw Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...n&&{flags:n},body:nq(e?.body)}}function nz(e){let t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:nq(e?.body)}}function nU(e,t,n,r){if(t>n)throw Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:n,body:r}}function nW(e){return{type:"Subroutine",ref:e}}function nH(e,t){let n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t},r=n.unicodePropertyMap?.get(nY(e));if(!r){if(n.normalizeUnknownPropertyNames)r=e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,e=>e[0].toUpperCase()+e.slice(1).toLowerCase());else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw Error(nd`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:r??e,negate:n.negate}}function nq(e){if(void 0===e)e=[nL()];else if(!Array.isArray(e)||!e.length||!e.every(e=>"Alternative"===e.type))throw Error("Invalid body; expected array of one or more Alternative nodes");return e}function nG(e){if(void 0===e)e=[];else if(!Array.isArray(e)||!e.every(e=>!!e.type))throw Error("Invalid body; expected array of nodes");return e}function nV(e){return"LookaroundAssertion"===e.type&&"lookahead"===e.kind}function nZ(e){return"LookaroundAssertion"===e.type&&"lookbehind"===e.kind}function nY(e){return e.replace(/[- _]+/g,"").toLowerCase()}function nX(e,t){return nh(e,`Unclosed character class${t?.type==="Character"&&93===t.value&&"]"===t.raw?' (started with "]")':""}`)}function nQ(e){return nh(e,"Unclosed group")}function nK(e,t,n=null){function r(e,t){for(let n=0;n<e.length;n++){let r=i(e[n],t,n,e);n=Math.max(-1,n+r)}}function i(a,o=null,s=null,l=null){let u=0,c=!1,d={node:a,parent:o,key:s,container:l,root:e,remove(){nJ(l).splice(Math.max(0,n0(s)+u),1),u--,c=!0},removeAllNextSiblings:()=>nJ(l).splice(n0(s)+1),removeAllPrevSiblings(){let e=n0(s)+u;return u-=e,nJ(l).splice(0,Math.max(0,e))},replaceWith(e,t={}){let n=!!t.traverse;l?l[Math.max(0,n0(s)+u)]=e:nh(o,"Can't replace root node")[s]=e,n&&i(e,o,s,l),c=!0},replaceWithMultiple(e,t={}){let n=!!t.traverse;if(nJ(l).splice(Math.max(0,n0(s)+u),1,...e),u+=e.length-1,n){let t=0;for(let n=0;n<e.length;n++)t+=i(e[n],o,n0(s)+n+t,l)}c=!0},skip(){c=!0}},{type:h}=a,f=t["*"],p=t[h],g="function"==typeof f?f:f?.enter,m="function"==typeof p?p:p?.enter;if(g?.(d,n),m?.(d,n),!c)switch(h){case"AbsenceFunction":case"Alternative":case"CapturingGroup":case"CharacterClass":case"Group":case"LookaroundAssertion":r(a.body,a);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subrout
33ine":break;case"CharacterClassRange":i(a.min,a,"min"),i(a.max,a,"max");break;case"Quantifier":i(a.body,a,"body");break;case"Regex":r(a.body,a),i(a.flags,a,"flags");break;default:throw Error(`Unexpected node type "${h}"`)}return p?.exit?.(d,n),f?.exit?.(d,n),u}return i(e),e}function nJ(e){if(!Array.isArray(e))throw Error("Container expected");return e}function n0(e){if("number"!=typeof e)throw Error("Numeric key expected");return e}let n1=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`,n2=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function n5(e,t,n,r){let i=RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),a=[!1],o=0,s="";for(let t of e.matchAll(i)){let{0:e,groups:{$skip:i}}=t;if(!i&&(!r||r===n2.DEFAULT==!o)){n instanceof Function?s+=n(t,{context:o?n2.CHAR_CLASS:n2.DEFAULT,negated:a[a.length-1]}):s+=n;continue}"["===e[0]?(o++,a.push("^"===e[1])):"]"===e&&o&&(o--,a.pop()),s+=e}return s}function n3(e,t,n){return!!function(e,t,n=0,r){let i;if(!RegExp(t,"su").test(e))return null;let a=RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");a.lastIndex=n;let o=0;for(;i=a.exec(e);){let{0:e,groups:{$skip:t}}=i;if(!t&&(!r||r===n2.DEFAULT==!o))return i;"["===e?o++:"]"===e&&o&&o--,a.lastIndex==i.index&&a.lastIndex++}return null}(e,t,0,n)}let n6=RegExp(String.raw`(?<noncapturingStart>${n1})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu"),n8=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,n9=RegExp(String.raw`
34\\(?: \d+
35  | c[A-Za-z]
36  | [gk]<[^>]+>
37  | [pPu]\{[^\}]+\}
38  | u[A-Fa-f\d]{4}
39  | x[A-Fa-f\d]{2}
40  )
41| \((?: \? (?: [:=!>]
42  | <(?:[=!]|[^>]+>)
43  | [A-Za-z\-]+:
44  | \(DEFINE\)
45  ))?
46| (?<qBase>${n8})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
47| \\?.
48`.replace(/\s+/g,""),"gsu"),n7=String.raw,n4=n7`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,re=n7`\(\?R=(?<rDepth>[^\)]+)\)|${n4}`,rt=n7`\(\?<(?![=!])(?<captureName>[^>]+)>`,rn=n7`${rt}|(?<unnamed>\()(?!\?)`,rr=RegExp(n7`${rt}|${re}|\(\?|\\?.`,"gsu"),ri="Cannot use multiple overlapping recursions";function ra(e){let t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e)||(e=+e)<2||e>100)throw Error(t)}function ro(e,t,n,r,i,a,o){let s=new Set;r&&n5(e+t,rt,({groups:{captureName:e}})=>{s.add(e)},n2.DEFAULT);let l=[n,r?s:null,i,a,o];return`${e}${rs(`(?:${e}`,"forward",...l)}(?:)${rs(`${t})`,"backward",...l)}${t}`}function rs(e,t,n,r,i,a,o){let s=e=>"forward"===t?e+2:n-e+2-1,l="";for(let t=0;t<n;t++){let n=s(t);l+=n5(e,n7`${rn}|\\k<(?<backref>[^>]+)>`,({0:e,groups:{captureName:t,unnamed:s,backref:l}})=>{if(l&&r&&!r.has(l))return e;let u=`_$${n}`;if(s||t){let n=o+a.length+1;return a.push(n),function(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}(i,n),s?e:`(?<${t}${u}>`}return n7`\k<${l}${u}>`},n2.DEFAULT)}return l}function rl(e,t,n,r,i,a){if(e.size&&r){let o=0;n5(t,rn,()=>o++,n2.DEFAULT);let s=a-o+i,l=new Map;return e.forEach((e,t)=>{let i=(r-o*n)/n,a=o*n,u=t>s+o?t+r:t,c=[];for(let t of e)if(t<=s)c.push(t);else if(t>s+o+i)c.push(t+r);else if(t<=s+o)for(let e=0;e<=n;e++)c.push(t+o*e);else for(let e=0;e<=n;e++)c.push(t+a+i*e);l.set(u,c)}),l}return e}var ru=String.fromCodePoint,rc=String.raw,rd={},rh=globalThis.RegExp;function rf(e,{enable:t,disable:n}){return{dotAll:!n?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!n?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function rp(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}rd.flagGroups=(()=>{try{new rh("(?i:)")}catch{return!1}return!0})(),rd.unicodeSets=(()=>{try{new rh("[[]]","v")}catch{return!1}return!0})(),rd.bugFlagVLiteralHyphenIsRange=!!rd.unicodeSets&&(()=>{try{new rh(rc`[\d\-a]`,"v")}catch{return!0}return!1})(),rd.bugNestedClassIgnoresNegation=rd.unicodeSets&&new rh("[[^a]]","v").test("a");var rg={ES2025:2025,ES2024:2024,ES2018:2018},rm={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function ry(e={}){if("[object Object]"!==({}).toString.call(e))throw Error("Unexpected options");
48if(void 0!==e.target&&!rm[e.target])throw Error(`Unexpected target "${e.target}"`);let t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return"auto"===t.target&&(t.target=rd.flagGroups?"ES2025":rd.unicodeSets?"ES2024":"ES2018"),t}var rb=new Set([ru(304),ru(305)]),rv=rc`[\p{L}\p{M}\p{N}\p{Pc}]`;function rx(e){if(rb.has(e))return[e];let t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),i=rS.get(n),a=rw.get(n),o=r_.get(n);return 1==[...r].length&&t.add(r),o&&t.add(o),i&&t.add(i),t.add(n),a&&t.add(a),[...t]}var rk=new Map(`C Other
49Cc Control cntrl
50Cf Format
51Cn Unassigned
52Co Private_Use
53Cs Surrogate
54L Letter
55LC Cased_Letter
56Ll Lowercase_Letter
57Lm Modifier_Letter
58Lo Other_Letter
59Lt Titlecase_Letter
60Lu Uppercase_Letter
61M Mark Combining_Mark
62Mc Spacing_Mark
63Me Enclosing_Mark
64Mn Nonspacing_Mark
65N Number
66Nd Decimal_Number digit
67Nl Letter_Number
68No Other_Number
69P Punctuation punct
70Pc Connector_Punctuation
71Pd Dash_Punctuation
72Pe Close_Punctuation
73Pf Final_Punctuation
74Pi Initial_Punctuation
75Po Other_Punctuation
76Ps Open_Punctuation
77S Symbol
78Sc Currency_Symbol
79Sk Modifier_Symbol
80Sm Math_Symbol
81So Other_Symbol
82Z Separator
83Zl Line_Separator
84Zp Paragraph_Separator
85Zs Space_Separator
86ASCII
87ASCII_Hex_Digit AHex
88Alphabetic Alpha
89Any
90Assigned
91Bidi_Control Bidi_C
92Bidi_Mirrored Bidi_M
93Case_Ignorable CI
94Cased
95Changes_When_Casefolded CWCF
96Changes_When_Casemapped CWCM
97Changes_When_Lowercased CWL
98Changes_When_NFKC_Casefolded CWKCF
99Changes_When_Titlecased CWT
100Changes_When_Uppercased CWU
101Dash
102Default_Ignorable_Code_Point DI
103Deprecated Dep
104Diacritic Dia
105Emoji
106Emoji_Component EComp
107Emoji_Modifier EMod
108Emoji_Modifier_Base EBase
109Emoji_Presentation EPres
110Extended_Pictographic ExtPict
111Extender Ext
112Grapheme_Base Gr_Base
113Grapheme_Extend Gr_Ext
114Hex_Digit Hex
115IDS_Binary_Operator IDSB
116IDS_Trinary_Operator IDST
117ID_Continue IDC
118ID_Start IDS
119Ideographic Ideo
120Join_Control Join_C
121Logical_Order_Exception LOE
122Lowercase Lower
123Math
124Noncharacter_Code_Point NChar
125Pattern_Syntax Pat_Syn
126Pattern_White_Space Pat_WS
127Quotation_Mark QMark
128Radical
129Regional_Indicator RI
130Sentence_Terminal STerm
131Soft_Dotted SD
132Terminal_Punctuation Term
133Unified_Ideograph UIdeo
134Uppercase Upper
135Variation_Selector VS
136White_Space space
137XID_Continue XIDC
138XID_Start XIDS`.split(/\s/).map(e=>[nY(e),e])),rw=new Map([["s",ru(383)],[ru(383),"s"]]),r_=new Map([[ru(223),ru(7838)],[ru(107),ru(8490)],[ru(229),ru(8491)],[ru(969),ru(8486)]]),rS=new Map([rM(453),rM(456),rM(459),rM(498),...rA(8072,8079),...rA(8088,8095),...rA(8104,8111),rM(8124),rM(8140),rM(8188)]),rC=new Map([["alnum",rc`[\p{Alpha}\p{Nd}]`],["alpha",rc`\p{Alpha}`],["ascii",rc`\p{ASCII}`],["blank",rc`[\p{Zs}\t]`],["cntrl",rc`\p{Cc}`],["digit",rc`\p{Nd}`],["graph",rc`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",rc`\p{Lower}`],["print",rc`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",rc`[\p{P}\p{S}]`],["space",rc`\p{space}`],["upper",rc`\p{Upper}`],["word",rc`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",rc`\p{AHex}`]]);function rM(e){let t=ru(e);return[t.toLowerCase(),t]}function rA(e,t){return(function(e,t){let n=[];for(let r=e;r<=t;r++)n.push(r);return n})(e,t).map(e=>rM(e))}var rE=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]),rT={AbsenceFunction({node:e,parent:t,replaceWith:n}){let{body:r,kind:i}=e;if("repeater"===i){let e=nB();e.body[0].body.push(nz({negate:!0,body:r}),nH("Any"));let i=nB();i.body[0].body.push(nU("greedy",0,1/0,e)),n(rz(i,t),{traverse:!0})}else throw Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){let i=e.body.filter(e=>"flags"===e.kind);for(let e=n+1;e<t.body.length;e++)rp(r,t.body[e],[]).push(...i)},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){let n=rO(t.get(e));if(n){let t=nB({flags:n});t.body[0].body=e.body,e.body=[rz(t,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:i,remove:a,replaceWith:o},s){let{kind:l,negate:u}=e,{asciiWordBoundaries:c,avoidSubclass:d,supportedGNodes:h,wordIsAscii:f}=s;if("text_segment_boundary"===l)throw Error(`Unsupported text segment boundary "\\${u?"Y":"y"}"`);if("line_end"===l)o(rz(nz({body:[nL({body:[nI("string_end")]}),nL({body:[nj(10)]})]}),t));else if("line_start"===l)o(rz(rD(rc`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if("search_start"===l){if(h.has(e))i.flags.sticky=!0,a();else{let e=r[n-1];if(e&&function(e){let t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||"Quantifier"===e.type&&e.min&&t.includes(e.body.type)}(e))o(rz(nz({negate:!0}),t));else if(d)throw Error(rc`Uses "\G" in a way that requires a subclass`);else o(rB(nI("string_start"),t)),s.strategy="clip_search"}}else if("string_end"===l||"string_start"===l);else if("string_end_newline"===l)o(rz(rD(rc`(?=\n?\z)`),t));else if("word_boundary"===l){if(!f&&!c){let e=`(?:(?<=${rv})(?!${rv})|(?<!${rv})(?=${rv}))`,n=`(?:(?<=${rv})(?=${rv})|(?<!${rv})(?!${rv}))`;o(rz(rD(u?n:e),t))}}else throw Error(`Unexpected assertion kind "${l}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;"string"!=typeof n||rj(n)||(n=rI(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!rj(r)&&(r=rI(r,t),e.name=r),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){"intersection"===t.kind&&n(rz(nD({body:[e]}),t),{traverse:!0})},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:i,digitIsAscii:a,spaceIsAscii:o,wordIsAscii:s}){let{kind:l,negate:u,value:c}=e;if(a&&("digit"===l||"digit"===c)){n(rB(nF("digit",{negate:u}),t));return}
138if(o&&("space"===l||"space"===c)){n(rz(rF(rD("[	-\r ]"),u),t));return}if(s&&("word"===l||"word"===c)){n(rB(nF("word",{negate:u}),t));return}if("any"===l)n(rB(nH("Any"),t));else if("digit"===l)n(rB(nH("Nd",{negate:u}),t));else if("dot"===l);else if("text_segment"===l){if("strict"===r)throw Error(rc`Use of "\X" requires non-strict accuracy`);let e="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",a=rc`\p{RI}{2}|${e}(?:\u200D${e})*`;n(rz(rD(rc`(?>\r\n|${i?rc`\p{RGI_Emoji}`:a}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if("hex"===l)n(rB(nH("AHex",{negate:u}),t));else if("newline"===l)n(rz(rD(u?"[^\n]":"(?>\r\n?|[\n\v\f\x85\u2028\u2029])"),t));else if("posix"===l){if(i||"graph"!==c&&"print"!==c)n(rz(rF(rD(rC.get(c)),u),t));else{if("strict"===r)throw Error(`POSIX class "${c}" requires min target ES2024 or non-strict accuracy`);let e={graph:"!-~",print:" -~"}[c];u&&(e=`\0-${ru(e.codePointAt(0)-1)}${ru(e.codePointAt(2)+1)}-\u{10FFFF}`),n(rz(rD(`[${e}]`),t))}}else if("property"===l)rk.has(nY(c))||(e.key="sc");else if("space"===l)n(rB(nH("space",{negate:u}),t));else if("word"===l)n(rz(rF(rD(rv),u),t));else throw Error(`Unexpected character set kind "${l}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:i,removeAllPrevSiblings:a,removeAllNextSiblings:o}){let{kind:s,flags:l}=e;if("flags"===s){if(l.enable||l.disable){let e=nB({flags:l});e.body[0].body=o(),i(rz(e,t),{traverse:!0})}else r()}else if("keep"===s){let e=n.body[0],r=1===n.body.length&&nR(e,{type:"Group"})&&1===e.body[0].body.length?e.body[0]:n;if(t.parent!==r||r.body.length>1)throw Error(rc`Uses "\K" in a way that's unsupported`);let o=nz({behind:!0});o.body[0].body=a(),i(rz(o,t))}else throw Error(`Unexpected directive kind "${s}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw Error('Unsupported flag "P"');if("word"===e.textSegmentMode)throw Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(t=>delete e[t]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;let{enable:t,disable:n}=e.flags;t?.extended&&delete t.extended,n?.extended&&delete n.extended,t?.dotAll&&n?.dotAll&&delete t.dotAll,t?.ignoreCase&&n?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,e.flags.enable||e.flags.disable||delete e.flags},LookaroundAssertion({node:e},t){let{kind:n}=e;"lookbehind"===n&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){let{kind:r}=e;if("fail"===r)n(rz(nz({negate:!0}),t));else throw Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if("Quantifier"===e.body.type){let t=nB();t.body[0].body.push(e.body),e.body=rz(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let n=[],r=!1,i=!1;for(let t of e.body)if(1===t.body.length&&"search_start"===t.body[0].kind)t.body.pop();else{let e=function e(t){let n=t.find(e=>"search_start"===e.kind||function(e,t){let n={negate:null,...t};return"LookaroundAssertion"===e.type&&(null===n.negate||e.negate===n.negate)&&1===e.body.length&&nR(e.body[0],{type:"Assertion",kind:"search_start"})}(e,{negate:!1})||!function({type:e}){return"Assertion"===e||"Directive"===e||"LookaroundAssertion"===e}(e));if(!n)return null;if("search_start"===n.kind)return n;if("LookaroundAssertion"===n.type)return n.body[0].body[0];if("CapturingGroup"===n.type||"Group"===n.type){let t=[];for(let r of n.body){let n=e(r.body);if(!n)return null;Array.isArray(n)?t.push(...n):t.push(n)}return t}return null}(t.body);e?(r=!0,Array.isArray(e)?n.push(...e):n.push(e)):i=!0}r&&!i&&n.forEach(e=>t.add(e))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if("strict"===t&&n&&r)throw Error(rc`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;"string"!=typeof n||rj(n)||(n=rI(n,t),e.ref=n)}},rR={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){let{orphan:r,ref:i}=e;r||n.set(e,[...t.get(i).map(({node:e})=>e)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:i,groupsByName:a,multiplexCapturesToLeftByRef:o,openRefs:s,reffedNodesByReferencer:l}){let u=i.get(e);if(u&&s.has(e.number)){let r=rB(rL(e.number),t);l.set(r,s.get(e.number)),n(r);return}s.set(e.number,e),o.set(e.number,[]),e.name&&rp(o,e.name,[]);let c=o.get(e.name??e.number);for(let t=0;t<c.length;t++){let n=c[t];if(u===n.node||u&&u===n.origin||e===n.origin){c.splice(t,1);break}}if(o.get(e.number).push({node:e,origin:u}),e.name&&o.get(e.name).push({node:e,origin:u}),e.name){let t=rp(a,e.name,new Map),n=!1;if(u)n=!0;else for(let e of t.values())if(!e.hasDuplicateNameToRemove){n=!0;break}a.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:n})}}
138,exit({node:e},{openRefs:t}){t.get(e.number)===e&&t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=rf(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){let{isRecursive:i,ref:a}=e;if(i){let n=t;for(;(n=n.parent)&&("CapturingGroup"!==n.type||n.name!==a&&n.number!==a););r.reffedNodesByReferencer.set(e,n);return}let o=r.subroutineRefMap.get(a),s=0===a,l=s?rL(0):function e(t,n,r,i){let a=Array.isArray(t)?[]:{};for(let[o,s]of Object.entries(t))"parent"===o?a.parent=Array.isArray(r)?i:r:s&&"object"==typeof s?a[o]=e(s,n,a,r):("type"===o&&"CapturingGroup"===s&&n.set(a,n.get(t)??t),a[o]=s);return a}(o,r.groupOriginByCopy,null),u=l;if(!s){var c;let e=rO(function(e,t){let n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}(o,e=>"Group"===e.type&&!!e.flags)),t=e?rf(r.globalFlags,e):r.globalFlags;c=r.currentFlags,t.dotAll===c.dotAll&&t.ignoreCase===c.ignoreCase||(u=nB({flags:function({dotAll:e,ignoreCase:t}){let n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),e&&t||(n.disable={},e||(n.disable.dotAll=!0),t||(n.disable.ignoreCase=!0)),n}(t)})).body[0].body.push(l)}n(rz(u,t),{traverse:!s})}},rN={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}let i=r.reffedNodesByReferencer.get(e).filter(t=>(function(e,t){let n=t;do{if("Regex"===n.type)return!1;if("Alternative"===n.type)continue;if(n===e)return!1;for(let t of r$(n.parent)){if(t===n)break;if(t===e||function e(t,n){for(let r of r$(t)??[])if(r===n||e(r,n))return!0;return!1}(t,e))return!0}}while(n=n.parent);throw Error("Unexpected path")})(t,e));i.length?i.length>1?n(rz(nB({atomic:!0,body:i.reverse().map(e=>nL({body:[nO(e.number)]}
138))}),t)):e.ref=i[0].number:n(rz(nz({negate:!0}),t))},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){let n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let t=0;t<n;t++){let t=n$();e.body.at(-1).body.push(t)}}},Subroutine({node:e},t){e.isRecursive&&0!==e.ref&&(e.ref=t.reffedNodesByReferencer.get(e).number)}};function rP(e){nK(e,{"*"({node:e,parent:t}){e.parent=t}})}function rL(e){let t=nW(e);return t.isRecursive=!0,t}function rI(e,t){if(t.has(e))return t.get(e);let n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,n),n}function rO(e){let t=["dotAll","ignoreCase"],n={enable:{},disable:{}};return(e.forEach(({flags:e})=>{t.forEach(t=>{e.enable?.[t]&&(delete n.disable[t],n.enable[t]=!0),e.disable?.[t]&&(n.disable[t]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable)?n:null}function r$(e){if(!e)throw Error("Node expected");let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function rj(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function rD(e,t){let n=nP(e,{...t,unicodePropertyMap:rk}).body;return n.length>1||n[0].body.length>1?nB({body:n}):n[0].body[0]}function rF(e,t){return e.negate=t,e}function rB(e,t){return e.parent=t,e}function rz(e,t){return rP(e),e.parent=t,e}var rU={"*":{enter({node:e},t){if(rK(e)){let n=t.getCurrentModI();t.pushModI(e.flags?rf({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){rK(e)&&t.popModI()}}
138,Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){rY(ru(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),rX(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){"property"===e.kind&&rE.has(e.value)&&t.setHasCasedChar()}},rW={Alternative:({body:e},t,n)=>e.map(n).join(""),Assertion({kind:e,negate:t}){if("string_end"===e)return"$";if("string_start"===e)return"^";if("word_boundary"===e)return t?rc`\B`:rc`\b`;throw Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if("number"!=typeof e)throw Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&"strict"===t.accuracy&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,n){let{body:r,name:i,number:a}=e,o={ignoreCase:t.currentFlags.ignoreCase},s=t.originMap.get(e);return s&&(o.hidden=!0,a>s.number&&(o.transferTo=s.number)),t.captureMap.set(a,o),`(${i?`?<${i}>`:""}${r.map(n).join("|")})`},Character({value:e},t){let n=ru(e),r=rQ(e,{escDigit:"Backreference"===t.lastNode.type,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&rY(n)){let e=rx(n);return t.inCharClass?e.join(""):e.length>1?`[${e.join("")}]`:e[0]}return n},CharacterClass(e,t,n){let{kind:r,negate:i,parent:a}=e,{body:o}=e;if("intersection"===r&&!t.useFlagV)throw Error("Use of character class intersection requires min target ES2024");rd.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&o.some(rJ)&&(o=[nj(45),...o.filter(e=>!rJ(e))]);let s=()=>`[${i?"^":""}${o.map(n).join("intersection"===r?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||rd.bugNestedClassIgnoresNegation)&&!i){let t=o.filter(e=>"CharacterClass"===e.type&&"union"===e.kind&&e.negate);if(t.length){let r=nB(),i=r.body[0];return r.parent=a,i.parent=r,o=o.filter(e=>!t.includes(e)),e.body=o,o.length?(e.parent=i,i.body.push(e)):r.body.pop(),t.forEach(e=>{let t=nL({body:[e]});e.parent=t,t.parent=r,r.body.push(t)}),n(r)}}t.inCharClass=!0;let r=s();return t.inCharClass=!1,r}let l=o[0];if("union"===r&&!i&&l&&((!t.useFlagV||!t.verbose)&&"union"===a.kind&&!(rd.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&"intersection"===a.kind&&1===o.length&&"CharacterClassRange"!==l.type))return o.map(n).join("");if(!t.useFlagV&&"CharacterClass"===a.type)throw Error("Uses nested character class in a way that requires min target ES2024");return s()},CharacterClassRange(e,t){let n=e.min.value,r=e.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},a=rQ(n,i),o=rQ(r,i),s=new Set;return t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&(function(e){let t=e.map(e=>e.codePointAt(0)).sort((e,t)=>e-t),n=[],r=null;for(let e=0;e<t.length;e++)t[e+1]===t[e]+1?r??=t[e]:null===r?n.push(t[e]):(n.push([r,t[e]]),r=null);return n})(rX(e)).forEach(e=>{s.add(Array.isArray(e)?`${rQ(e[0],i)}-${rQ(e[1],i)}`:rQ(e,i))}),`${a}-${o}${[...s].join("")}`},CharacterSet({kind:e,negate:t,value:n,key:r},i){if("dot"===e)return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?".":"[^]":rc`[^\n]`;if("digit"===e)return t?rc`\D`:rc`\d`;if("property"===e){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&rE.has(n))throw Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?rc`\P`:rc`\p`}{${r?`${r}=`:""}${n}}`}if("word"===e)return t?rc`\W`:rc`\w`;throw Error(`Unexpected character set kind "${e}"`)},Flags:(e,t)=>(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":""),Group({atomic:e,body:t,flags:n,parent:r},i,a){let o=i.currentFlags;n&&(i.currentFlags=rf(o,n));let s=t.map(a).join("|"),l=i.verbose||1!==t.length||"Quantifier"===r.type||e||i.useFlagMods&&n?`(?${function(e,t,n){if(e)return">";let r="";if(t&&n){let{enable:e,disable:n}=t;r=(e?.ignoreCase?"i":"")+(e?.dotAll?"s":"")+(n?"-":"")+(n?.ignoreCase?"i":"")+(n?.dotAll?"s":"")}return`${r}:`}(e,n,i.useFlagMods)}${s})`:s;return i.currentFlags=o,l},LookaroundAssertion({body:e,kind:t,negate:n},r,i){let a=`${"lookahead"===t?"":"<"}${n?"!":"="}`;return`(?${a}${e.map(i).join("|")})`},Quantifier:(e,t,n)=>n(e.body)+function({kind:e,max:t,min:n}){return(n||1!==t?n||t!==1/0?1===n&&t===1/0?"+":n===t?`{${n}}`:`{${n},${t===1/0?"":t}}`:"*":"?")+({greedy:"",lazy:"?",possessive:"+"})[e]}(e),Subroutine({isRecursive:e,ref:t},n){if(!e)throw Error("Unexpected non-recursive subroutine in transformed AST");let r=n.recursionLimit;return 0===t?`(?R=${r})`:rc`\g<${t}&R=${r}>`}},rH=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),rq=new Set(["-","\\","]","^","["]),rG=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),rV=new Map([[9,rc`\t`],[10,rc`\n`],[11,rc`\v`],[12,rc`\f`],[13,rc`\r`],[8232,rc`\u2028`],[8233,rc`\u2029`],[65279,rc`\uFEFF`]]),rZ=/^\p{Cased}$/u;function rY(e){return rZ.test(e)}function rX(e,t){let n=!!t?.firstOnly,r=e.min.value,i=e.max.value,a=[];if(r<65&&(65535===i||i>=131071)||65536===r&&i>=131071)return a;for(let e=r;e<=i;e++){let t=ru(e);if(!rY(t))continue;let o=rx(t).filter(e=>{let t=e.codePointAt(0);return t<r||t>i});if(o.length&&(a.push(...o),n))break}return a}function rQ(e,{escDigit:t,inCharClass:n,useFlagV:r}){var i;if(rV.has(e))return rV.get(e);if(e<32||e>126&&e<160||e>262143||t&&(i=e)>47&&i<58)return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;let a=ru(e);return((n?r?rG:rq:rH).has(a)?"\\":"")+a}function rK({type:e}){return"CapturingGroup"===e||"Group"===e||"LookaroundAssertion"===e}function rJ({type:e,value:t}){return"Character"===e&&45===t}var r0=class e extends RegExp{#e=new Map;#t=null;#n;#r=null;#i=null;rawOptions={};get source(){return this.#n||"(?:)"}constructor(t,n,r){let i=!!r?.lazyCompile;
138if(t instanceof RegExp){if(r)throw Error("Cannot provide options when copying a regexp");super(t,n),this.#n=t.source,t instanceof e&&(this.#e=t.#e,this.#r=t.#r,this.#i=t.#i,this.rawOptions=t.rawOptions)}else{let e={hiddenCaptures:[],strategy:null,transfers:[],...r};super(i?"":t,n),this.#n=t,this.#e=function(e,t){let n=new Map;for(let t of e)n.set(t,{hidden:!0});for(let[e,r]of t)for(let t of r)rp(n,t,{}).transferTo=e;return n}(e.hiddenCaptures,e.transfers),this.#i=e.strategy,this.rawOptions=r??{}}i||(this.#t=this)}exec(t){if(!this.#t){let{lazyCompile:t,...n}=this.rawOptions;this.#t=new e(this.#n,this.flags,n)}let n=this.global||this.sticky,r=this.lastIndex;if("clip_search"===this.#i&&n&&r){this.lastIndex=0;let e=this.#a(t.slice(r));return e&&(function(e,t,n,r){if(e.index+=t,e.input=n,r){let n=e.indices;for(let e=0;e<n.length;e++){let r=n[e];r&&(n[e]=[r[0]+t,r[1]+t])}let r=n.groups;r&&Object.keys(r).forEach(e=>{let n=r[e];n&&(r[e]=[n[0]+t,n[1]+t])})}}(e,r,t,this.hasIndices),this.lastIndex+=r),e}return this.#a(t)}#a(e){let t;this.#t.lastIndex=this.lastIndex;let n=super.exec.call(this.#t,e);if(this.lastIndex=this.#t.lastIndex,!n||!this.#e.size)return n;let r=[...n];n.length=1,this.hasIndices&&(t=[...n.indices],n.indices.length=1);let i=[0];for(let e=1;e<r.length;e++){let{hidden:a,transferTo:o}=this.#e.get(e)??{};if(a?i.push(null):(i.push(n.length),n.push(r[e]),this.hasIndices&&n.indices.push(t[e])),o&&void 0!==r[e]){let a=i[o];if(!a)throw Error(`Invalid capture transfer to "${a}"`);if(n[a]=r[e],this.hasIndices&&(n.indices[a]=t[e]),n.groups){this.#r||(this.#r=function(e){let t;let n=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,r=new Map,i=0,a=0;for(;t=n.exec(e);){let{0:e,groups:{capture:n,name:o}}=t;"["===e?i++:i?"]"===e&&i--:n&&(a++,o&&r.set(a,o))}return r}(this.source));let i=this.#r.get(o);i&&(n.groups[i]=r[e],this.hasIndices&&(n.indices.groups[i]=t[e]))}}}return n}};class r1{constructor(e,t={}){this.patterns=e,this.options=t;let{forgiving:n=!1,cache:r,regexConstructor:i}=t;if(!i)throw Error("Option `regexConstructor` is not provided");this.regexps=e.map(e=>{if("string"!=typeof e)return e;let t=r?.get(e);if(t){if(t instanceof RegExp)return t;if(n)return null;throw t}try{let t=i(e);return r?.set(e,t),t}catch(t){if(r?.set(e,t),n)return null;throw t}})}regexps;findNextMatchSync(e,t,n){let r="string"==typeof e?e:e.content,i=[];function a(e,t,n=0){return{index:e,captureIndices:t.indices.map(e=>null==e?{start:4294967295,end:4294967295,length:0}:{start:e[0]+n,end:e[1]+n,length:e[1]-e[0]})}}for(let e=0;e<this.regexps.length;e++){let n=this.regexps[e];if(n)try{n.lastIndex=t;let o=n.exec(r);if(!o)continue;if(o.index===t)return a(e,o,0);i.push([e,o,0])}catch(e){if(this.options.forgiving)continue;throw e}}if(i.length){let e=Math.min(...i.map(e=>e[1].index));for(let[t,n,r]of i)if(n.index===e)return a(t,n,r)}return null}}var r2=function(e={}){let t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=e=>(function(e,t){let n=function(e,t){let n=ry(t),r=function(e,t){let n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};rP(e);let r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:rg[n.bestEffortTarget]>=rg.ES2024,passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};nK(e,rT,r);let i={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},a={currentFlags:i,prevFlags:null,globalFlags:i,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};return nK(e,rR,a),nK(e,rN,{groupsByName:a.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:a.reffedNodesByReferencer}),e._originMap=a.groupOriginByCopy,e._strategy=r.strategy,e}(nP(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:rk}),{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),i=function(e,t){let n=ry(t),r=rg[n.target]>=rg.ES2024,i=rg[n.target]>=rg.ES2025,a=n.rules.recursionLimit;if(!Number.isInteger(a)||a<2||a>20)throw Error("Invalid recursionLimit; use 2-20");let o=null,s=null;if(!i){let t=[e.flags.ignoreCase];nK(e,rU,{getCurrentModI:()=>
138t.at(-1),popModI(){t.pop()},pushModI(e){t.push(e)},setHasCasedChar(){t.at(-1)?o=!0:s=!0}})}let l={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||o)&&!s)},u=e,c={accuracy:n.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:u,originMap:e._originMap,recursionLimit:a,useAppliedIgnoreCase:!!(!i&&o&&s),useFlagMods:i,useFlagV:r,verbose:n.verbose};function d(e){return c.lastNode=u,u=e,(function(e,t){if(null==e)throw Error(t??"Value expected");return e})(rW[e.type],`Unexpected node type "${e.type}"`)(e,c,d)}let h={pattern:e.body.map(d).join("|"),flags:d(e.flags),options:{...e.options}};return r||(delete h.options.force.v,h.options.disable.v=!0,h.options.unicodeSetsPlugin=null),h._captureTransfers=new Map,h._hiddenCaptures=[],c.captureMap.forEach((e,t)=>{e.hidden&&h._hiddenCaptures.push(t),e.transferTo&&rp(h._captureTransfers,e.transferTo,[]).push(t)}),h}(r,n),a=function(e,t){let n;let{hiddenCaptures:r,mode:i}={hiddenCaptures:[],mode:"plugin",...t},a=t?.captureTransfers??new Map;if(!RegExp(re,"su").test(e))return{pattern:e,captureTransfers:a,hiddenCaptures:r};if("plugin"===i&&n3(e,n7`\(\?\(DEFINE\)`,n2.DEFAULT))throw Error("DEFINE groups cannot be used with recursion");let o=[],s=n3(e,n7`\\[1-9]`,n2.DEFAULT),l=new Map,u=[],c=!1,d=0,h=0;for(rr.lastIndex=0;n=rr.exec(e);){let{0:t,groups:{captureName:f,rDepth:p,gRNameOrNum:g,gRDepth:m}}=n;if("["===t)d++;else if(d)"]"===t&&d--;else{if(p){if(ra(p),c)throw Error(ri);if(s)throw Error(`${"external"===i?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);let t=e.slice(0,n.index),l=e.slice(rr.lastIndex);if(n3(l,re,n2.DEFAULT))throw Error(ri);let u=+p-1;e=ro(t,l,u,!1,r,o,h),a=rl(a,t,u,o.length,0,h);break}if(g){ra(m);let d=!1;for(let e of u)if(e.name===g||e.num===+g){if(d=!0,e.hasRecursedWithin)throw Error(ri);break}if(!d)throw Error(n7`Recursive \g cannot be used outside the referenced group "${"external"===i?g:n7`\g<${g}&R=${m}>`}"`);let f=l.get(g),p=function(e,t){let n;let r=/\\?./gsu;r.lastIndex=t;let i=e.length,a=0,o=1;for(;n=r.exec(e);){let[e]=n;if("["===e)a++;else if(a)"]"===e&&a--;else if("("===e)o++;else if(")"===e&&!--o){i=n.index;break}}return e.slice(t,i)}(e,f);if(s&&n3(p,n7`${rt}|\((?!\?)`,n2.DEFAULT))throw Error(`${"external"===i?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);let y=e.slice(f,n.index),b=p.slice(y.length+t.length),v=o.length,x=+m-1,k=ro(y,b,x,!0,r,o,h);a=rl(a,y,x,o.length-v,v,h);let w=e.slice(0,f),_=e.slice(f+p.length);e=`${w}${k}${_}`,rr.lastIndex+=k.length-t.length-y.length-b.length,u.forEach(e=>e.hasRecursedWithin=!0),c=!0}else if(f)h++,l.set(String(h),rr.lastIndex),l.set(f,rr.lastIndex),u.push({num:h,name:f});else if("("===t[0]){let e="("===t;e&&(h++,l.set(String(h),rr.lastIndex)),u.push(e?{num:h}:{})}else")"===t&&u.pop()}}return r.push(...o),{pattern:e,captureTransfers:a,hiddenCaptures:r}}(i.pattern,{captureTransfers:i._captureTransfers,hiddenCaptures:i._hiddenCaptures,mode:"external"}),o=function(e,t){let n;let r=t?.hiddenCaptures??[],i=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:i,hiddenCaptures:r};let a="(?:(?=(",o=[0],s=[],l=0,u=0,c=NaN;do{let t;n=!1;let d=0,h=0,f=!1;for(n6.lastIndex=Number.isNaN(c)?0:c+a.length;t=n6.exec(e);){let{0:p,index:g,groups:{capturingStart:m,noncapturingStart:y}}=t;if("["===p)d++;else if(d)"]"===p&&d--;else if("(?>"!==p||f){if(f&&y)h++;else if(m)f?h++:(l++,o.push(l+u));else if(")"===p&&f){if(!h){let t=l+ ++u;if(e=`${e.slice(0,c)}${a}${e.slice(c+3,g)}))<$$${t}>)${e.slice(g+1)}`,n=!0,s.push(t),function(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}(r,t),i.size){let e=new Map;i.forEach((n,r)=>{e.set(r>=t?r+1:r,n.map(e=>e>=t?e+1:e))}),i=e}break}h--}}else c=g,f=!0}}while(n);return r.push(...s),{pattern:e=n5(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:e,groups:{backrefNum:t,wrappedBackrefNum:n}})=>{if(t){let n=+t;if(n>o.length-1)throw Error(`Backref "${e}" greater than number of captures`);return`\\${o[n]}`}return`\\${n}`},n2.DEFAULT),captureTransfers:i,hiddenCaptures:r}}(function(e){let t;if(!RegExp(`${n8}\\+`).test(e))return{pattern:e};let n=[],r=null,i=null,a="",o=0;for(n9.lastIndex=0;t=n9.exec(e);){let{0:u,index:c,groups:{qBase:d,qMod:h,invalidQ:f}}=t;if("["===u)o||(i=c),o++;else if("]"===u)o?o--:i=null;else if(!o){if("+"===h&&a&&!a.startsWith("(")){if(f)throw Error(`Invalid quantifier "${u}"`);let t=-1;
138if(/^\{\d+\}$/.test(d)){var s,l;s=e,l=c+d.length,e=s.slice(0,l)+""+s.slice(l+h.length)}else{if(")"===a||"]"===a){let t=")"===a?r:i;if(null===t)throw Error(`Invalid unmatched "${a}"`);e=`${e.slice(0,t)}(?>${e.slice(t,c)}${d})${e.slice(c+u.length)}`}else e=`${e.slice(0,c-a.length)}(?>${a}${d})${e.slice(c+u.length)}`;t+=4}n9.lastIndex+=t}else"("===u[0]?n.push(c):")"===u&&(r=n.length?n.pop():null)}a=u}return{pattern:e}}(a.pattern).pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),s={pattern:o.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${i.flags}${i.options.disable.v?"u":"v"}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw Error("Lazy compilation requires subclass")}else{let e=o.hiddenCaptures.sort((e,t)=>e-t),t=Array.from(o.captureTransfers),i=r._strategy,a=s.pattern.length>=n.lazyCompileLength;(e.length||t.length||i||a)&&(s.options={...e.length&&{hiddenCaptures:e},...t.length&&{transfers:t},...i&&{strategy:i},...a&&{lazyCompile:a}})}return s}(e,t);return n.options?new r0(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)})(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},target:t.target}),{createScanner:e=>new r1(e,t),createString:e=>({content:e})}}({forgiving:!0}),r5=Object.fromEntries(a.flatMap(e=>{var t;return(null!=(t=e.aliases)?t:[]).map(t=>[t,e.id])})),r3=new Set(Object.keys(l)),r6=e=>{let t=e.trim().toLowerCase();return r5[t]||(r3.has(t),t)},r8=new Map,r9=new Map,r7=new Map,r4=e=>{var t;return"string"==typeof e?e:null!=(t=e.name)?t:"custom"},ie=(e,t)=>`${e}-${r4(t[0])}-${r4(t[1])}`,it=(e,t,n)=>{let r=e.slice(0,100),i=e.length>100?e.slice(-100):"";return`${t}:${n[0]}:${n[1]}:${e.length}:${r}:${i}`},ir=(e,t)=>{let n=ie(e,t);if(r8.has(n))return r8.get(n);let r=nt({themes:t,langs:[e],engine:r2});return r8.set(n,r),r},ii=function(e={}){var t;let n=null!=(t=e.themes)?t:["github-light","github-dark"];return{name:"shiki",type:"code-highlighter",supportsLanguage(e){let t=r6(e);return r3.has(t)},getSupportedLanguages:()=>Array.from(r3),getThemes:()=>n,highlight({code:e,language:t,themes:n},r){let i=r6(t),a=[r4(n[0]),r4(n[1])],o=it(e,i,a);return r9.has(o)?r9.get(o):(r&&(r7.has(o)||r7.set(o,new Set),r7.get(o).add(r)),ir(r3.has(i)?i:"text",n).then(t=>{let n=t.getLoadedLanguages().includes(i)?i:"text",r=t.codeToTokens(e,{lang:n,themes:{light:a[0],dark:a[1]}});r9.set(o,r);let s=r7.get(o);if(s){for(let e of s)e(r);r7.delete(o)}}).catch(e=>{console.error("[Streamdown Code] Failed to highlight code:",e),r7.delete(o)}),null)}}}()},88570:function(e,t,n){"use strict";n.d(t,{m:function(){return a}});var r=n(72978),i=n(29735),a=function(e={}){var t,n;return{name:"katex",type:"math",remarkPlugin:[i.Z,{singleDollarTextMath:null!=(t=e.singleDollarTextMath)&&t}],rehypePlugin:[r.Z,{errorColor:null!=(n=e.errorColor)?n:"var(--color-muted-foreground)"}],getStyles:()=>"katex/dist/katex.min.css"}}()},39267:function(e,t,n){"use strict";n.d(t,{k:function(){return n3}});var r=n(70683),i=n(5453),a=n(33627);n(99530),n(88426),n(87169),n(43544),n(95138),n(77176);var o=n(34167),s=n(86444),l=n(62052),u=n(69571),c=n(69972),d=n(51862),h=n(15026),f="comm",p="rule",g="decl",m="@keyframes",y="@layer",b=Math.abs,v=String.fromCharCode;function x(e,t,n){return e.replace(t,n)}function k(e,t){return 0|e.charCodeAt(t)}function w(e,t,n){return e.slice(t,n)}function _(e){return e.length}function S(e,t){return t.push(e),e}function C(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function M(e,t,n,r){switch(e.type){case y:if(e.children.length)break;case"@import":case"@namespace":case g:return e.return=e.return||e.value;case f:return"";case m:return e.return=e.value+"{"+C(e.children,r)+"}";case p:if(!_(e.value=e.props.join(",")))return""}return _(n=C(e.children,r))?e.return=e.value+"{"+n+"}":""}var A=1,E=1,T=0,R=0,N=0,P="";function L(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:A,column:E,length:o,return:"",siblings:s}}function I(){return N=R<T?k(P,R++):0,E++,10===N&&(E=1,A++),N}function O(){return k(P,R)}function $(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function j(e){var t,n;return(t=R-1,n=function e(t){for(;I();)switch(N){case t:return R;case 34:case 39:34!==t&&39!==t&&e(N);break;case 40:41===t&&e(t);break;case 92:I()}return R}(91===e?e+2:40===e?e+1:e),w(P,t,n)).trim()}function D(e,t,n,r,i,a,o,s,l,u,c,d){for(var h=i-1,f=0===i?a:[""],g=f.length,m=0,y=0,v=0;m<r;++m)for(var k=0,_=w(e,h+1,h=b(y=o[m])),S=e;k<g;++k)(S=(y>0?f[k]+" "+_:x(_,/&\f/g,f[k])).trim())&&(l[v++]=S);return L(e,t,n,0===i?p:s,l,u,c,d)}function F(e,t,n,r,i){return L(e,t,n,g,w(e,0,r),w(e,r+1,-1),r,i)}var B=n(7841),z=n(9628),U=n(68743),W=n(5604),H=n(11725);function q(e){if(null==e)return!0;
138if((0,U.z)(e))return!!("function"==typeof e.splice||"string"==typeof e||(0,z.z)(e)||(0,H.f)(e)||(0,W.O)(e))&&0===e.length;if("object"==typeof e||"function"==typeof e){if(e instanceof Map||e instanceof Set)return 0===e.size;let t=Object.keys(e);return!function(e){let t=e?.constructor;return e===("function"==typeof t?t.prototype:Object.prototype)}(e)?0===t.length:0===t.filter(e=>"constructor"!==e).length}return!0}var G={id:"c4",detector:(0,c.e)(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),loader:(0,c.e)(async()=>{let{diagram:e}=await n.e(5757).then(n.bind(n,5757));return{id:"c4",diagram:e}},"loader")},V="flowchart",Z=(0,c.e)((e,t)=>t?.flowchart?.defaultRenderer!=="dagre-wrapper"&&t?.flowchart?.defaultRenderer!=="elk"&&/^\s*graph/.test(e),"detector"),Y=(0,c.e)(async()=>{let{diagram:e}=await Promise.all([n.e(50660),n.e(76332)]).then(n.bind(n,76332));return{id:V,diagram:e}},"loader"),X={id:V,detector:Z,loader:Y},Q="flowchart-v2",K=(0,c.e)((e,t)=>t?.flowchart?.defaultRenderer!=="dagre-d3"&&(t?.flowchart?.defaultRenderer==="elk"&&(t.layout="elk"),!!/^\s*graph/.test(e)&&t?.flowchart?.defaultRenderer==="dagre-wrapper"||/^\s*flowchart/.test(e)),"detector"),J=(0,c.e)(async()=>{let{diagram:e}=await Promise.all([n.e(50660),n.e(76332)]).then(n.bind(n,76332));return{id:Q,diagram:e}},"loader"),ee={id:Q,detector:K,loader:J},et="swimlane",en=(0,c.e)(e=>/^\s*swimlane-beta\b/.test(e),"detector"),er=(0,c.e)(async()=>{let{diagram:e}=await Promise.all([n.e(50660),n.e(18531)]).then(n.bind(n,18531));return{id:et,diagram:e}},"loader"),ei={id:et,detector:en,loader:er},ea={id:"er",detector:(0,c.e)(e=>/^\s*erDiagram/.test(e),"detector"),loader:(0,c.e)(async()=>{let{diagram:e}=await n.e(91205).then(n.bind(n,91205));return{id:"er",diagram:e}},"loader")},eo="gitGraph",es=(0,c.e)(e=>/^\s*gitGraph/.test(e),"detector"),el=(0,c.e)(async()=>{let{diagram:e}=await Promise.all([n.e(29157),n.e(50739),n.e(33624)]).then(n.bind(n,33624));return{id:eo,diagram:e}},"loader"),eu={id:eo,detector:es,loader:el},ec="gantt",ed=(0,c.e)(e=>/^\s*gantt/.test(e),"detector"),eh=(0,c.e)(async()=>{let{diagram:e}=await n.e(72574).then(n.bind(n,72574));return{id:ec,diagram:e}},"loader"),ef={id:ec,detector:ed,loader:eh},ep="info",eg=(0,c.e)(e=>/^\s*info/.test(e),"detector"),em=(0,c.e)(async()=>{let{diagram:e}=await Promise.all([n.e(29157),n.e(50739),n.e(94143)]).then(n.bind(n,94143));return{id:ep,diagram:e}},"loader"),ey={id:ep,detector:eg,loader:em},eb={id:"pie",detector:(0,c.e)(e=>/^\s*pie/.test(e),"detector"),loader:(0,c.e)(async()=>{let{diagram:e}=await Promise.all([n.e(29157),n.e(50739),n.e(79055)]).then(n.bind(n,79055));return{id:"pie",diagram:e}},"loader")},ev="quadrantChart",ex=(0,c.e)(e=>/^\s*quadrantChart/.test(e),"detector"),ek=(0,c.e)(async()=>{let{diagram:e}=await n.e(76044).then(n.bind(n,76044));return{id:ev,diagram:e}},"loader"),ew={id:ev,detector:ex,loader:ek},e_="xychart",eS=(0,c.e)(e=>/^\s*xychart(-beta)?/.test(e),"detector"),eC=(0,c.e)(async()=>{let{diagram:e}=await n.e(64652).then(n.bind(n,64652));return{id:e_,diagram:e}},"loader"),eM={id:e_,detector:eS,loader:eC},eA="requirement",eE=(0,c.e)(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),eT=(0,c.e)(async()=>{let{diagram:e}=await n.e(1219).then(n.bind(n,1219));return{id:eA,diagram:e}},"loader"),eR={id:eA,detector:eE,loader:eT},eN="sequence",eP=(0,c.e)(e=>/^\s*sequenceDiagram/.test(e),"detector"),eL=(0,c.e)(async()=>{let{diagram:e}=await Promise.all([n.e(40022),n.e(41653)]).then(n.bind(n,26641));return{id:eN,diagram:e}},"loader"),eI={id:eN,detector:eP,loader:eL},eO="class",e$=(0,c.e)((e,t)=>t?.class?.defaultRenderer!=="dagre-wrapper"&&/^\s*classDiagram/.test(e),"detector"),ej=(0,c.e)(async()=>{let{diagram:e}=await Promise.all([n.e(68122),n.e(94782)]).then(n.bind(n,94782));return{id:eO,diagram:e}},"loader"),eD={id:eO,detector:e$,loader:ej},eF="classDiagram",eB=(0,c.e)((e,t)=>!!/^\s*classDiagram/.test(e)&&t?.class?.defaultRenderer==="dagre-wrapper"||/^\s*classDiagram-v2/.test(e),"detector"),ez=(0,c.e)(async()=>{let{diagram:e}=await Promise.all([n.e(68122),n.e(51222)]).then(n.bind(n,51222));return{id:eF,diagram:e}},"loader"),eU={id:eF,detector:eB,loader:ez},eW="state",eH=(0,c.e)((e,t)=>t?.state?.defaultRenderer!=="dagre-wrapper"&&/^\s*stateDiagram/.test(e),"detector"),eq=(0,
138c.e)(async()=>{let{diagram:e}=await Promise.all([n.e(25535),n.e(17814),n.e(15270),n.e(88874)]).then(n.bind(n,88874));return{id:eW,diagram:e}},"loader"),eG={id:eW,detector:eH,loader:eq},eV="stateDiagram",eZ=(0,c.e)((e,t)=>!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&t?.state?.defaultRenderer==="dagre-wrapper"),"detector"),eY=(0,c.e)(async()=>{let{diagram:e}=await Promise.all([n.e(15270),n.e(28259)]).then(n.bind(n,28259));return{id:eV,diagram:e}},"loader"),eX={id:eV,detector:eZ,loader:eY},eQ="journey",eK=(0,c.e)(e=>/^\s*journey/.test(e),"detector"),eJ=(0,c.e)(async()=>{let{diagram:e}=await n.e(82045).then(n.bind(n,82045));return{id:eQ,diagram:e}},"loader"),e0={id:eQ,detector:eK,loader:eJ},e1={draw:(0,c.e)((e,t,n)=>{u.c.debug("rendering svg for syntax error\n");let i=(0,r.P)(t),a=i.append("g");i.attr("viewBox","0 0 2412 512"),(0,l.v2)(i,100,512,!0),a.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),a.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),a.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),a.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.
138164-16,16v32c0,8.836 7.156,16 16,16z"),a.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),a.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),a.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),a.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${n}`)},"draw")},e2={db:{},renderer:e1,parser:{parse:(0,c.e)(()=>{},"parse")}},e5="flowchart-elk",e3=(0,c.e)((e,t={})=>!!(/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&t?.flowchart?.defaultRenderer==="elk")&&(t.layout="elk",!0),"detector"),e6=(0,c.e)(async()=>{let{diagram:e}=await Promise.all([n.e(50660),n.e(76332)]).then(n.bind(n,76332));return{id:e5,diagram:e}},"loader"),e8={id:e5,detector:e3,loader:e6},e9="timeline",e7=(0,c.e)(e=>/^\s*timeline/.test(e),"detector"),e4=(0,c.e)(async()=>{let{diagram:e}=await n.e(35755).then(n.bind(n,35755));return{id:e9,diagram:e}},"loader"),te={id:e9,detector:e7,loader:e4},tt="mindmap",tn=(0,c.e)(e=>/^\s*mindmap/.test(e),"detector"),tr=(0,c.e)(async()=>{let{diagram:e}=await n.e(77556).then(n.bind(n,77556));return{id:tt,diagram:e}},"loader"),ti={id:tt,detector:tn,loader:tr},ta="kanban",to=(0,c.e)(e=>/^\s*kanban/.test(e),"detector"),ts=(0,c.e)(async()=>{let{diagram:e}=await n.e(29131).then(n.bind(n,29131));return{id:ta,diagram:e}},"loader"),tl={id:ta,detector:to,loader:ts},tu="sankey",tc=(0,c.e)(e=>/^\s*sankey(-beta)?/.test(e),"detector"),td=(0,c.e)(async()=>{let{diagram:e}=await n.e(42160).then(n.bind(n,42160));return{id:tu,diagram:e}},"loader"),th={id:tu,detector:tc,loader:td},tf="packet",tp=(0,c.e)(e=>/^\s*packet(-beta)?/.test(e),"detector"),tg=(0,c.e)(async()=>{let{diagram:e}=await Promise.all([n.e(29157),n.e(50739),n.e(25593)]).then(n.bind(n,25593));return{id:tf,diagram:e}},"loader"),tm={id:tf,detector:tp,loader:tg},ty="radar",tb=(0,c.e)(e=>/^\s*radar-beta/.test(e),"detector"),tv=(0,c.e)(async()=>{let{diagram:e}=await Promise.all([n.e(29157),n.e(50739),n.e(53814)]).then(n.bind(n,53814));return{id:ty,diagram:e}},"loader"),tx={id:ty,detector:tb,loader:tv},tk="block",tw=(0,c.e)(e=>/^\s*block(-beta)?/.test(e),"detector"),t_=(0,c.e)(async()=>{let{diagram:e}=await Promise.all([n.e(25535),n.e(2551)]).then(n.bind(n,2551));return{id:tk,diagram:e}},"loader"),tS={id:tk,detector:tw,loader:t_},tC="treeView",tM=(0,c.e)(e=>/^\s*treeView-beta/.test(e),"detector"),tA=(0,c.e)(async()=>{let{diagram:e}=await Promise.all([n.e(29157),n.e(50739),n.e(18197)]).then(n.bind(n,18197));return{id:tC,diagram:e}},"loader"),tE={id:tC,detector:tM,loader:tA},tT="architecture",tR=(0,c.e)(e=>/^\s*architecture/.test(e),"detector"),tN=(0,c.e)(async()=>{let{diagram:e}=await Promise.all([n.e(29157),n.e(2620),n.e(50739),n.e(7004)]).then(n.bind(n,7004));return{id:tT,diagram:e}},"loader"),tP={id:tT,detector:tR,loader:tN},tL="eventmodeling",tI=(0,c.e)(e=>/^\s*eventmodeling/.test(e),"detector"),tO=(0,c.e)(async()=>{let{diagram:e}=await Promise.all([n.e(29157),n.e(50739),n.e(94028)]).then(n.bind(n,94028));return{id:tL,diagram:e}},"loader"),t$={id:tL,detector:tI,loader:tO},tj="ishikawa",tD=(0,c.e)(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),tF=(0,c.e)(async()=>{let{diagram:e}=await n.e(69388).then(n.bind(n,69388));return{id:tj,diagram:e}},"loader"),tB={id:tj,detector:tD,loader:tF},tz="venn",tU=(0,c.e)(e=>/^\s*venn-beta/.test(e),"detector"),tW=(0,c.e)(async()=>{let{diagram:e}=await n.e(68941).then(n.bind(n,68941));return{id:tz,diagram:e}},"loader"),tH={id:tz,detector:tU,loader:tW},tq="treemap",tG=(0,c.e)(e=>/^\s*treemap/.test(e),"detector"),tV=(0,c.e)(async()=>{let{diagram:e}=await Promise.all([n.e(29157),n.e(50739),n.e(86933)]).then(n.bind(n,86933));return{id:tq,diagram:e}},"loader"),tZ={id:tq,detector:tG,loader:tV},tY="wardley",tX=(0,c.e)(e=>/^\s*wardley-beta/i.test(e),"detector"),tQ=(0,c.e)(async()=>{let{diagram:e}=await Promise.all([n.e(29157),n.e(50739),n.e(70436)]).then(n.bind(n,70436));return{id:tY,diagram:e}},"loader"),tK={id:tY,detector:tX,loader:tQ},tJ="cynefin",t0=(0,c.e)(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),"detector"),t1=(0,c.e)(async()=>{let{diagram:e}=await Promise.all([n.e(29157),n.e(50739),n.e(32510)]).then(n.bind(n,32510));return{id:tJ,diagram:e}}
138,"loader"),t2={id:tJ,detector:t0,loader:t1},t5="railroad",t3=(0,c.e)(e=>/^\s*railroad-beta/i.test(e),"detector"),t6=(0,c.e)(async()=>{let{diagram:e}=await Promise.all([n.e(29157),n.e(50739),n.e(1934),n.e(94511)]).then(n.bind(n,94511));return{id:t5,diagram:e}},"loader"),t8={id:t5,detector:t3,loader:t6},t9="railroadEbnf",t7=(0,c.e)(e=>/^\s*railroad-ebnf-beta/i.test(e),"detector"),t4=(0,c.e)(async()=>{let{diagram:e}=await Promise.all([n.e(29157),n.e(50739),n.e(1934),n.e(63306)]).then(n.bind(n,63306));return{id:t9,diagram:e}},"loader"),ne={id:t9,detector:t7,loader:t4},nt="railroadAbnf",nn=(0,c.e)(e=>/^\s*railroad-abnf-beta/i.test(e),"detector"),nr=(0,c.e)(async()=>{let{diagram:e}=await Promise.all([n.e(29157),n.e(50739),n.e(1934),n.e(24639)]).then(n.bind(n,24639));return{id:nt,diagram:e}},"loader"),ni={id:nt,detector:nn,loader:nr},na="railroadPeg",no=(0,c.e)(e=>/^\s*railroad-peg-beta/i.test(e),"detector"),ns=(0,c.e)(async()=>{let{diagram:e}=await Promise.all([n.e(29157),n.e(50739),n.e(1934),n.e(62815)]).then(n.bind(n,62815));return{id:na,diagram:e}},"loader"),nl={id:na,detector:no,loader:ns},nu=!1,nc=(0,c.e)(()=>{nu||(nu=!0,(0,l.Cq)("error",e2,e=>"error"===e.toLowerCase().trim()),(0,l.Cq)("---",{db:{clear:(0,c.e)(()=>{},"clear")},styles:{},renderer:{draw:(0,c.e)(()=>{},"draw")},parser:{parse:(0,c.e)(()=>{throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:(0,c.e)(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),(0,l.KO)(e8,ti,tP),(0,l.KO)(G,tl,eU,eD,ea,ef,ey,eb,eR,eI,ei,ee,X,te,eu,eX,eG,e0,ew,th,tm,eM,tS,t$,tE,tx,tB,tZ,t8,ne,ni,nl,tH,tK,t2))},"addDiagrams"),nd=(0,c.e)(async()=>{u.c.debug("Loading registered diagrams");let e=(await Promise.allSettled(Object.entries(l.Bf).map(async([e,{detector:t,loader:n}])=>{if(n)try{(0,l._7)(e)}catch{try{let{diagram:e,id:r}=await n();(0,l.Cq)(r,e,t)}catch(t){throw u.c.error(`Failed to load external diagram with key ${e}. Removing from detectors.`),delete l.Bf[e],t}}}))).filter(e=>"rejected"===e.status);if(e.length>0){for(let t of(u.c.error(`Failed to load ${e.length} external diagrams`),e))u.c.error(t);throw Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams");function nh(e,t){e.attr("role","graphics-document document"),""!==t&&e.attr("aria-roledescription",t)}function nf(e,t,n,r){if(void 0!==e.insert){if(n){let t=`chart-desc-${r}`;e.attr("aria-describedby",t),e.insert("desc",":first-child").attr("id",t).text(n)}
138if(t){let n=`chart-title-${r}`;e.attr("aria-labelledby",n),e.insert("title",":first-child").attr("id",n).text(t)}}}(0,c.e)(nh,"setA11yDiagramInfo"),(0,c.e)(nf,"addSVGa11yTitleDescription");var np=class e{constructor(e,t,n,r,i){this.type=e,this.text=t,this.db=n,this.parser=r,this.renderer=i}static{(0,c.e)(this,"Diagram")}static async fromText(t,n={}){let r=(0,l.iE)(),i=(0,l.Vg)(t,r);t=(0,s.Vy)(t)+"\n";try{(0,l._7)(i)}catch{let e=(0,l.cq)(i);if(!e)throw new l.cj(`Diagram ${i} not found.`);let{id:t,diagram:n}=await e();(0,l.Cq)(t,n)}let{db:a,parser:o,renderer:u,init:c}=(0,l._7)(i);return o.parser&&(o.parser.yy=a),a.clear?.(),c?.(r),n.title&&a.setDiagramTitle?.(n.title),await o.parse(t),new e(i,t,a,o,u)}async render(e,t){await this.renderer.draw(this.text,e,t,this)}getParser(){return this.parser}getType(){return this.type}},ng=[],nm=(0,c.e)(()=>{ng.forEach(e=>{e()}),ng=[]},"attachFunctions"),ny=(0,c.e)(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function nb(e){let t=e.match(l.M6);if(!t)return{text:e,metadata:{}};let n=t[1],r=n?t[2].split("\n").map(e=>e.startsWith(n)?e.slice(n.length):e).join("\n"):t[2],a=(0,i.z)(r,{schema:i.A})??{};a="object"!=typeof a||Array.isArray(a)?{}:a;let o={};return a.displayMode&&(o.displayMode=a.displayMode.toString()),a.title&&(o.title=a.title.toString()),a.config&&(o.config=a.config),{text:e.slice(t[0].length),metadata:o}}(0,c.e)(nb,"extractFrontMatter");var nv=(0,c.e)(e=>e.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(e,t,n)=>"<"+t+n.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),nx=(0,c.e)(e=>{let{text:t,metadata:n}=nb(e),{displayMode:r,title:i,config:a={}}=n;return r&&(a.gantt||(a.gantt={}),a.gantt.displayMode=r),{title:i,config:a,text:t}},"processFrontmatter"),nk=(0,c.e)(e=>{let t=s.w8.detectInit(e)??{},n=s.w8.detectDirective(e,"wrap");return Array.isArray(n)?t.wrap=n.some(({type:e})=>"wrap"===e):n?.type==="wrap"&&(t.wrap=!0),{text:(0,s.tf)(e),directive:t}},"processDirectives");function nw(e){let t=nx(nv(e)),n=nk(t.text),r=(0,s.Rb)(t.config,n.directive);return{code:e=ny(n.text),title:t.title,config:r}}function n_(e){return btoa(Array.from(new TextEncoder().encode(e),e=>String.fromCodePoint(e)).join(""))}(0,c.e)(nw,"preprocessDiagram"),(0,c.e)(n_,"toBase64");var nS=["foreignobject"],nC=["dominant-baseline"];function nM(e){let t=nw(e);return(0,l.mc)(),(0,l.XV)(t.config??{}),t}async function nA(e,t){nc();try{let{code:t,config:n}=nM(e);return{diagramType:(await nF(t)).type,config:n}}catch(e){if(t?.suppressErrors)return!1;throw e}}(0,c.e)(nM,"processAndSetConfigs"),(0,c.e)(nA,"parse");var nE=(0,c.e)((e,t,n=[])=>{let r=(0,l.nb)(`{ ${n.join(" !important; ")} !important; }`);return`.${e} ${t} ${r}`},"cssImportantStyles"),nT=(0,c.e)((e,t=new Map)=>{let n=new CSSStyleSheet;if(void 0!==e.fontFamily&&n.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,n.cssRules.length),void 0!==e.altFontFamily&&n.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,n.cssRules.length),t instanceof Map){let r=(0,l._X)(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(e=>{q(e.styles)||r.forEach(t=>{n.insertRule(nE(e.id,t,e.styles),n.cssRules.length)}),q(e.textStyles)||n.insertRule(nE(e.id,"tspan",(e?.textStyles||[]).map(e=>e.replace("color","fill"))),n.cssRules.length)})}let r="";if(void 0!==e.themeCSS){if("function"==typeof n.replaceSync){let t=new CSSStyleSheet;t.replaceSync(e.themeCSS),r=(0,l.GR)(t)+"\n"}else r+=`${e.themeCSS}
139`}return r+(0,l.GR)(n)},"createCssStyles"),nR=(0,c.e)((e,t)=>{var n,r,i,a,o;return C((i=function e(t,n,r,i,a,o,s,l,u){for(var c,d=0,h=0,p=s,g=0,m=0,y=0,b=1,C=1,M=1,T=0,B=0,z="",U=a,W=o,H=i,q=z;C;)switch(y=B,B=I()){case 40:108!=y&&58==k(q,p-1)?(T++,q+="("):q+=j(B);break;case 41:T--,q+=")";break;case 34:case 39:case 91:q+=j(B);break;case 9:case 10:case 13:case 32:if(T>0){q+=v(B);break}q+=function(e){for(;N=O();)if(N<33)I();else break;return $(e)>2||$(N)>3?"":" "}(y);break;case 92:q+=function(e,t){for(var n;--t&&I()&&!(N<48)&&!(N>102)&&(!(N>57)||!(N<65))&&(!(N>70)||!(N<97)););return n=R+(t<6&&32==O()&&32==I()),w(P,e,n)}(R-1,7);continue;case 47:switch(O()){case 42:case 47:S(L(c=function(e,t){for(;I();)if(e+N===57)break;else if(e+N===84&&47===O())break;return"/*"+w(P,t,R-1)+"*"+v(47===e?e:I())}(I(),R),n,r,f,v(N),w(c,2,-2),0,u),u),(5==$(y||1)||5==$(O()||1))&&_(q)&&" "!==w(q,-1,void 0)&&(q+=" ");break;default:q+="/"}break;case 123*b:l[d++]=_(q)*M;case 125*b:case 59:case 0:if(T>0&&B){q+=v(B);break}switch(B){case 0:case 125:C=0;case 59+h:-1==M&&(q=x(q,/\f/g,"")),m>0&&(_(q)-p||0===b)&&S(m>32?F(q+";",i,r,p-1,u):F(x(q," ","")+";",i,r,p-2,u),u);break;case 59:q+=";";
139default:if(S(H=D(q,n,r,d,h,a,l,z,U=[],W=[],p,o),o),123===B){if(0===h)e(q,n,H,H,U,o,p,l,W);else{switch(g){case 99:if(110===k(q,3))break;case 108:if(97===k(q,2))break;default:h=0;case 100:case 109:case 115:}h?e(t,H,H,i&&S(D(t,H,H,0,0,a,l,z,a,U=[],p,W),W),a,W,p,l,i?U:W):e(q,H,H,H,[""],W,0,l,W)}}}d=h=m=0,b=M=1,z=q="",p=s;break;case 58:p=1+_(q),m=y;default:if(b<1){if(123==B)--b;else if(125==B&&0==b++&&125==(N=R>0?k(P,--R):0,E--,10===N&&(E=1,A--),N))continue}switch(q+=v(B),B*b){case 38:M=h>0?1:(q+="\f",-1);break;case 44:if(T>0)break;l[d++]=(_(q)-1)*M,M=1;break;case 64:45===O()&&(q+=j(I())),g=O(),h=p=_(z=q+=function(e){for(;!$(O());)I();return w(P,e,R)}(R)),B++;break;case 45:45===y&&2==_(q)&&(b=0)}}return o}("",null,null,null,[""],(r=n=`${e}{${t}}`,A=E=1,T=_(P=r),R=0,n=[]),0,[0],n),P="",i),(o=(a=[(0,c.e)(function(t,n,r,i){"rule"===t.type&&Array.isArray(t.props)?t.parent&&t.parent.type===m||(t.props=t.props.map(t=>t.startsWith(e)?t:`${e} ${t}`)):t.type.startsWith("@")&&!["@media","@supports",y,"@scope","@container","@starting-style",m].includes(t.type)&&(u.c.warn(`Removing unsupported at-rule ${t.type} from CSS`),t.type=f)},"addNamespace"),M]).length,function(e,t,n,r){for(var i="",s=0;s<o;s++)i+=a[s](e,t,n,r)||"";return i}))},"compileCSS"),nN=(0,c.e)((e,t,n,r)=>{let i=nT(e,n),a=(0,l.Ee)(t,i,{...e.themeVariables,theme:e.theme,look:e.look},r);return nR(r,a)},"createUserStyles"),nP=(0,c.e)((e="",t,n)=>{let r=e;return n||t||(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=(r=(0,s.SH)(r)).replace(/<br>/g,"<br/>")},"cleanUpSvgCode"),nL=(0,c.e)((e="",t)=>{let n=t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+"px":"100%",r=n_(`<body style="margin:0">${e}</body>`);return`<iframe style="width:100%;height:${n};border:0;margin:0;" src="data:text/html;charset=UTF-8;base64,${r}" sandbox="allow-top-navigation-by-user-activation allow-popups">
140  The "iframe" tag is not supported by your browser.
141</iframe>`},"putIntoIFrame"),nI=(0,c.e)((e,t,n,r,i)=>{let a=e.append("div");a.attr("id",n),r&&a.attr("style",r);let o=a.append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return i&&o.attr("xmlns:xlink",i),o.append("g"),e},"appendDivSvgG");function nO(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,c.e)(nO,"sandboxedIframe");var n$=(0,c.e)((e,t,n,r)=>{e.getElementById(t)?.remove(),e.getElementById(n)?.remove(),e.getElementById(r)?.remove()},"removeExistingElements"),nj=(0,c.e)(async function(e,t,n){let r,i;nc();let a=nM(t);t=a.code;let o=(0,l.iE)();u.c.debug(o),t.length>(o?.maxTextSize??5e4)&&(t="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");let s=`#${e}`,d="i"+e,f="#"+d,p="d"+e,g="#"+p,m=(0,c.e)(()=>{let e=b?f:g,t=(0,h.Ys)(e).node();t&&"remove"in t&&t.remove()},"removeTempElements"),y=(0,h.Ys)(document.body),b="sandbox"===o.securityLevel,v="loose"===o.securityLevel,x=o.fontFamily;if(void 0!==n){if(n&&(n.innerHTML=""),b){let e=nO((0,h.Ys)(n),d);(y=(0,h.Ys)(e.nodes()[0].contentDocument.body)).node().style.margin="0"}else y=(0,h.Ys)(n);nI(y,e,p,`font-family: ${x}`,"http://www.w3.org/1999/xlink")}else{if(n$(document,e,p,d),b){let e=nO((0,h.Ys)(document.body),d);(y=(0,h.Ys)(e.nodes()[0].contentDocument.body)).node().style.margin="0"}else y=(0,h.Ys)("body");nI(y,e,p)}try{r=await np.fromText(t,{title:a.title})}catch(e){if(o.suppressErrorRendering)throw m(),e;r=await np.fromText("error"),i=e}let k=y.select(g).node(),w=r.type,_=k.firstChild,S=_.firstChild,C=nN(o,w,r.renderer.getClasses?.(t,r),s),M=document.createElement("style");M.innerHTML=C,_.insertBefore(M,S);try{await r.renderer.draw(t,e,"11.16.0",r)}catch(n){throw o.suppressErrorRendering?m():e1.draw(t,e,"11.16.0"),n}nB(w,y.select(`${g} svg`),r.db.getAccTitle?.(),r.db.getAccDescription?.()),y.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let A=y.select(g).node().innerHTML;if(u.c.debug("config.arrowMarkerAbsolute",o.arrowMarkerAbsolute),A=nP(A,b,(0,l.ku)(o.arrowMarkerAbsolute)),b?A=nL(A,y.select(g+" svg").node()):v||(A=B.Z.sanitize(A,{ADD_TAGS:nS,ADD_ATTR:nC,HTML_INTEGRATION_POINTS:{foreignobject:!0}})),nm(),i)throw i;return m(),{diagramType:w,svg:A,bindFunctions:r.db.bindFunctions}},"render");function nD(e={}){let t=(0,l.Yc)({},e);
141t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),(0,l.dY)(t),t?.theme&&t.theme in l._j?t.themeVariables=l._j[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=l._j.default.getThemeVariables(t.themeVariables));let n="object"==typeof t?(0,l.Yn)(t):(0,l.ZD)();(0,u.U)(n.logLevel),nc()}(0,c.e)(nD,"initialize");var nF=(0,c.e)((e,t={})=>{let{code:n}=nw(e);return np.fromText(n,t)},"getDiagramFromText");function nB(e,t,n,r){nh(t,e),nf(t,n,r,t.attr("id"))}(0,c.e)(nB,"addA11yInfo");var nz=Object.freeze({render:nj,parse:nA,getDiagramFromText:nF,initialize:nD,getConfig:l.iE,setConfig:l.v6,getSiteConfig:l.ZD,updateSiteConfig:l.Tb,reset:(0,c.e)(()=>{(0,l.mc)()},"reset"),globalReset:(0,c.e)(()=>{(0,l.mc)(l.u_)},"globalReset"),defaultConfig:l.u_});(0,u.U)((0,l.iE)().logLevel),(0,l.mc)((0,l.iE)());var nU=(0,c.e)((e,t,n)=>{u.c.warn(e),(0,s.bZ)(e)?(n&&n(e.str,e.hash),t.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),nW=(0,c.e)(async function(e={querySelector:".mermaid"}){try{await nH(e)}catch(t){if((0,s.bZ)(t)&&u.c.error(t.str),n2.parseError&&n2.parseError(t),!e.suppressErrors)throw u.c.error("Use the suppressErrors option to suppress these errors"),t}},"run"),nH=(0,c.e)(async function({postRenderCallback:e,querySelector:t,nodes:n}={querySelector:".mermaid"}){let r,i;let a=nz.getConfig();if(u.c.debug(`${e?"":"No "}Callback function found`),n)r=n;else if(t)r=document.querySelectorAll(t);else throw Error("Nodes and querySelector are both undefined");u.c.debug(`Found ${r.length} diagrams`),a?.startOnLoad!==void 0&&(u.c.debug("Start On Load: "+a?.startOnLoad),nz.updateSiteConfig({startOnLoad:a?.startOnLoad}));let o=new s.w8.InitIDGenerator(a.deterministicIds,a.deterministicIDSeed),l=[];for(let t of Array.from(r)){if(u.c.info("Rendering diagram: "+t.id),t.getAttribute("data-processed"))continue;t.setAttribute("data-processed","true");let n=`mermaid-${o.next()}`;i=t.innerHTML,i=(0,d.Z)(s.w8.entityDecode(i)).trim().replace(/<br\s*\/?>/gi,"<br/>");let r=s.w8.detectInit(i);r&&u.c.debug("Detected early reinit: ",r);try{let{svg:r,bindFunctions:a}=await n0(n,i,t);t.innerHTML=r,e&&await e(n),a&&a(t)}catch(e){nU(e,l,n2.parseError)}}if(l.length>0)throw l[0]},"runThrowsErrors"),nq=(0,c.e)(function(e){nz.initialize(e)},"initialize"),nG=(0,c.e)(async function(e,t,n){u.c.warn("mermaid.init is deprecated. Please use run instead."),e&&nq(e);let r={postRenderCallback:n,querySelector:".mermaid"};"string"==typeof t?r.querySelector=t:t&&(t instanceof HTMLElement?r.nodes=[t]:r.nodes=t),await nW(r)},"init"),nV=(0,c.e)(async(e,{lazyLoad:t=!0}={})=>{nc(),(0,l.KO)(...e),!1===t&&await nd()},"registerExternalDiagrams"),nZ=(0,c.e)(function(){if(n2.startOnLoad){let{startOnLoad:e}=nz.getConfig();e&&n2.run().catch(e=>u.c.error("Mermaid failed to initialize",e))}},"contentLoaded");"undefined"!=typeof document&&window.addEventListener("load",nZ,!1);var nY=(0,c.e)(function(e){n2.parseError=e},"setParseErrorHandler"),nX=[],nQ=!1,nK=(0,c.e)(async()=>{if(!nQ){for(nQ=!0;nX.length>0;){let e=nX.shift();if(e)try{await e()}catch(e){u.c.error("Error executing queue",e)}}nQ=!1}},"executeQueue"),nJ=(0,c.e)(async(e,t)=>new Promise((n,r)=>{let i=(0,c.e)(()=>new Promise((i,a)=>{nz.parse(e,t).then(e=>{i(e),n(e)},e=>{u.c.error("Error parsing",e),n2.parseError?.(e),a(e),r(e)})}),"performCall");nX.push(i),nK().catch(r)}),"parse"),n0=(0,c.e)((e,t,n)=>new Promise((r,i)=>{let a=(0,c.e)(()=>new Promise((a,o)=>{nz.render(e,t,n).then(e=>{a(e),r(e)},e=>{u.c.error("Error parsing",e),n2.parseError?.(e),o(e),i(e)})}),"performCall");nX.push(a),nK().catch(i)}),"render"),n1=(0,c.e)(()=>Object.keys(l.Bf).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),n2={startOnLoad:!0,mermaidAPI:nz,parse:nJ,render:n0,init:nG,run:nW,registerExternalDiagrams:nV,registerLayoutLoaders:a.jM,initialize:nq,parseError:void 0,contentLoaded:nZ,setParseErrorHandler:nY,detectType:l.Vg,registerIconPacks:o.ef,getRegisteredDiagramsMetadata:n1},n5={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0},n3=function(e={}){let t=!1,n={...n5,...e.config},r={initialize(r){n={...n5,...e.config,...r},n2.initialize(n),t=!0},render:async(e,r)=>(t||(n2.initialize(n),t=!0),await n2.render(e,r))};return{name:"mermaid",type:"diagram",language:"mermaid",getMermaid:e=>(e&&r.initialize(e),r)}}()},61037:function(e,t,n){"use strict";n.d(t,{HydrationBoundary:function(){return o}});var r=n(28113),i=n(83834),a=n(9395),o=e=>{let{children:t,options:n={},state:o,queryClient:s}=e,l=(0,a.useQueryClient)(s),u=r.useRef(n);r.useEffect(()=>{u.current=n});let c=r.useMemo(()=>
141{if(o){if("object"!=typeof o)return;let e=l.getQueryCache(),t=o.queries||[],n=[],r=[];for(let i of t){let t=e.get(i.queryHash);t?(i.state.dataUpdatedAt>t.state.dataUpdatedAt||i.promise&&"pending"!==t.state.status&&"fetching"!==t.state.fetchStatus&&void 0!==i.dehydratedAt&&i.dehydratedAt>t.state.dataUpdatedAt)&&r.push(i):n.push(i)}if(n.length>0&&(0,i.ZB)(l,{queries:n},u.current),r.length>0)return r}},[l,o]);return r.useEffect(()=>{c&&(0,i.ZB)(l,{queries:c},u.current)},[l,c]),t}},87104:function(e,t,n){"use strict";n.d(t,{useIsFetching:function(){return o}});var r=n(28113),i=n(36701),a=n(9395);function o(e,t){let n=(0,a.useQueryClient)(t),o=n.getQueryCache();return r.useSyncExternalStore(r.useCallback(e=>o.subscribe(i.Vr.batchCalls(e)),[o]),()=>n.isFetching(e),()=>n.isFetching(e))}},63040:function(e,t,n){"use strict";n.d(t,{useQueries:function(){return g}});var r=n(28113),i=n(36701),a=n(89429),o=n(53353),s=n(70273);function l(e,t){let n=new Set(t);return e.filter(e=>!n.has(e))}var u=class extends o.l{#o;#s;#l;#u;#c;#d;#h;#f;#p;#g=[];constructor(e,t,n){super(),this.#o=e,this.#u=n,this.#l=[],this.#c=[],this.#s=[],this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.#c.forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#c.forEach(e=>{e.destroy()})}setQueries(e,t){this.#l=e,this.#u=t,i.Vr.batch(()=>{let e=this.#c,t=this.#y(this.#l);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let n=t.map(e=>e.observer),r=n.map(e=>e.getCurrentResult()),i=e.length!==n.length,a=n.some((t,n)=>t!==e[n]),o=i||a,u=!!o||r.some((e,t)=>{let n=this.#s[t];return!n||!(0,s.VS)(e,n)});(o||u)&&(o&&(this.#g=t,this.#c=n),this.#s=r,this.hasListeners()&&(o&&(l(e,n).forEach(e=>{e.destroy()}),l(n,e).forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})),this.#b()))})}getCurrentResult(){return this.#s}getQueries(){return this.#c.map(e=>e.getCurrentQuery())}getObservers(){return this.#c}getOptimisticResult(e,t){let n=this.#y(e),r=n.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),i=n.map(e=>e.defaultedQueryOptions.queryHash);return[r,e=>this.#v(e??r,t,i),()=>this.#x(r,n)]}#x(e,t){return t.map((n,r)=>{let i=e[r];return n.defaultedQueryOptions.notifyOnChangeProps?i:n.observer.trackResult(i,e=>{t.forEach(t=>{t.observer.trackProp(e)})})})}#v(e,t,n){if(t){let r=this.#p,i=void 0!==n&&void 0!==r&&(r.length!==n.length||n.some((e,t)=>e!==r[t]));return(!this.#d||this.#s!==this.#f||i||t!==this.#h)&&(this.#h=t,this.#f=this.#s,void 0!==n&&(this.#p=n),this.#d=(0,s.Q$)(this.#d,t(e))),this.#d}return e}#k(){return this.#u?.combine!==void 0&&this.#c.some((e,t)=>e.options.suspense&&this.#s[t]?.data===void 0)}#y(e){let t=new Map;this.#c.forEach(e=>{let n=e.options.queryHash;if(!n)return;let r=t.get(n);r?r.push(e):t.set(n,[e])});let n=[];return e.forEach(e=>{let r=this.#o.defaultQueryOptions(e),i=t.get(r.queryHash)?.shift()??new a.z(this.#o,r);n.push({defaultedQueryOptions:r,observer:i})}),n}#m(e,t){let n=this.#c.indexOf(e);-1!==n&&(this.#s=function(e,t,n){let r=e.slice(0);return r[t]=n,r}(this.#s,n,t),this.#b())}#b(){if(this.hasListeners()){let e=this.#x(this.#s,this.#g),t=this.#k(),n=this.#d,r=t?n:this.#v(e,this.#u?.combine);(t||n!==r)&&i.Vr.batch(()=>{this.listeners.forEach(e=>{e(this.#s)})})}}},c=n(9395),d=n(14472),h=n(48873),f=n(4925),p=n(53884);function g(e,t){let{queries:n,...o}=e,l=(0,c.useQueryClient)(t),g=(0,d.useIsRestoring)(),m=(0,h.useQueryErrorResetBoundary)(),y=r.useMemo(()=>n.map(e=>{let t=l.defaultQueryOptions(e);return t._optimisticResults=g?"isRestoring":"optimistic",t}),[n,l,g]);y.forEach(e=>{(0,p.A8)(e);let t=l.getQueryCache().get(e.queryHash);(0,f.pf)(e,m,t)}),(0,f.JN)(m);let[b]=r.useState(()=>new u(l,y,o)),[v,x,k]=b.getOptimisticResult(y,o.combine),w=!g&&!1!==o.subscribed;r.useSyncExternalStore(r.useCallback(e=>w?b.subscribe(i.Vr.batchCalls(e)):s.ZT,[b,w]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),r.useEffect(()=>{b.setQueries(y,o)},[y,o,b]);let _=v.some((e,t)=>(0,p.SB)(y[t],e))?v.flatMap((e,t)=>{let n=y[t];if(n&&(0,p.SB)(n,e)){let e=new a.z(l,n);return(0,p.j8)(n,e,m)}return[]}):[];if(_.length>0)throw Promise.all(_);let S=v.find((e,t)=>{let n=y[t];return n&&(0,f.KJ)({result:e,errorResetBoundary:m,throwOnError:n.throwOnError,query:l.getQueryCache().get(n.queryHash),suspense:n.suspense})});if(null==S?void 0:S.error)throw S.error;return x(k())}},22387:function(e,t,n){"use strict";n.d(t,{useSuspenseInfiniteQuery:function(){return o}});var r=n(86423),i=n(55624),a=n(53884);function o(e,t){return(0,i.r)({...e,enabled:!0,suspense:!0,throwOnError:a.Ct},r.c,t)}},53556:function(e,t,n){"use strict";n.d(t,{useSuspenseQueries:function(){return a}});var r=n(63040),i=n(53884);function a(e,t){return(0,r.useQueries)({...e,queries:e.queries.map(e=>({...e,suspense:!0,throwOnError:i.Ct,enabled:!0,placeholderData:void 0}))},t)}},39457:function(e,t,n){"use strict";n.d(t,{useSuspenseQuery:function(){return o}});var r=n(89429),i=n(55624),a=n(53884);function o(e,t){return(0,i.r)({...e,enabled:!0,suspense:!0,throwOnError:a.Ct,placeholderData:void 0},r.z,t)}},83029:function(e,t,n){"use strict";n.d(t,{K:function(){return r}});let r=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslas
141h","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"]},42924:function(e,t,n){"use strict";n.d(t,{j:function(){return o}});var r=n(59129);let i=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=r.W,o=(e,t)=>n=>{var r;if((null==t?void 0:t.variants)==null)return a(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:o,defaultVariants:s}=t,l=Object.keys(o).map(e=>{let t=null==n?void 0:n[e],r=null==s?void 0:s[e];if(null===t)return null;let a=i(t)||i(r);return o[e][a]}),u=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return a(e,l,null==t?void 0:null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...s,...u}[t]):({...s,...u})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},15026:function(e,t,n){"use strict";function r(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function i(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function a(e){return e}function o(e){return"translate("+e+",0)"}function s(e){return"translate(0,"+e+")"}function l(){return!this.__axis}function u(e,t){var n=[],r=null,i=null,u=6,c=6,d=3,h="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,f=1===e||4===e?-1:1,p=4===e||2===e?"x":"y",g=1===e||3===e?o:s;function m(o){var s=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,m=null==i?t.tickFormat?t.tickFormat.apply(t,n):a:i,y=Math.max(u,0)+d,b=t.range(),v=+b[0]+h,x=+b[b.length-1]+h,k=(t.bandwidth?function(e,t){return t=Math.max(0,e.bandwidth()-2*t)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}:function(e){return t=>+e(t)})(t.copy(),h),w=o.selection?o.selection():o,_=w.selectAll(".domain").data([null]),S=w.selectAll(".tick").data(s,t).order(),C=S.exit(),M=S.enter().append("g").attr("class","tick"),A=S.select("line"),E=S.select("text");_=_.merge(_.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),S=S.merge(M),A=A.merge(M.append("line").attr("stroke","currentColor").attr(p+"2",f*u)),E=E.merge(M.append("text").attr("fill","currentColor").attr(p,f*y).attr("dy",1===e?"0em":3===e?"0.71em":"0.32em")),o!==w&&(_=_.transition(o),S=S.transition(o),A=A.transition(o),E=E.transition(o),C=C.transition(o).attr("opacity",1e-6).attr("transform",function(e){return isFinite(e=k(e))?g(e+h):this.getAttribute("transform")}),M.attr("opacity",1e-6).attr("transform",function(e){var t=this.parentNode.__axis;return g((t&&isFinite(t=t(e))?t:k(e))+h)})),C.remove(),_.attr("d",4===e||2===e?c?"M"+f*c+","+v+"H"+h+"V"+x+"H"+f*c:"M"+h+","+v+"V"+x:c?"M"+v+","+f*c+"V"+h+"H"+x+"V"+f*c:"M"+v+","+h+"H"+x),S.attr("opacity",1).attr("transform",function(e){return g(k(e)+h)}),A.attr(p+"2",f*u),E.attr(p,f*y).text(m),w.filter(l).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===e?"start":4===e?"end":"middle"),w.each(function(){this.__axis=k})}return m.scale=function(e){return arguments.length?(t=e,m):t},m.ticks=function(){return n=Array.from(arguments),m},m.tickArguments=function(e){return arguments.length?(n=null==e?[]:Array.from(e),m):n.slice()},m.tickValues=function(e){return arguments.length?(r=null==e?null:Array.from(e),m):r&&r.slice()},m.tickFormat=function(e){return arguments.length?(i=e,m):i},m.tickSize=function(e){return arguments.length?(u=c=+e,m):u},m.tickSizeInner=function(e){return arguments.length?(u=+e,m):u},m.tickSizeOuter=function(e){return arguments.length?(c=+e,m):c},m.tickPadding=function(e){return arguments.length?(d=+e,m):d},m.offset=function(e){return arguments.length?(h=+e,m):h},m}function c(e){return u(1,e)}function d(e){return u(3,e)}function h(){}function f(e){return null==e?h:function(){return this.querySelector(e)}}function p(){return[]}function g(e){return null==e?p:function(){return this.querySelectorAll(e)}}function m(e){return function(){return this.matches(e)}}function y(e){return function(t){return t.matches(e)}}n.d(t,{Nb1:function(){return iV},LLu:function(){return d},F5q:function(){return c},$0Z:function(){return i8},Dts:function(){return i7},WQY:function(){return ae},qpX:function(){return an},u93:function(){return ar},tFB:function(){return aa},YY7:function(){return al},OvA:function(){return ac},dCK:function(){return ah},zgE:function(){return ag},fGX:function(){return ay},$m7:function(){return av},c_6:function(){return iX},fxm:function(){return ak},FdL:function(){return aE},ak_:function(){return aT},SxZ:function(){return aP},eA_:function(){return aI},jsv:function(){return a$},iJ:function(){return aO},WUZ:function(){return eo},bT9:function(){return tU},JHv:function(){return na},jvg:function(){return iJ},Fp7:function(){return r},VV$:function(){return i},ve8:function(){return i2},tiA:function(){return function e(){var t,n,r=nd().unknown(void 0),i=r.domain,a=r.range,o=0,s=1,l=!1,u=0,c=0,d=.5;function h(){var e=i().length,r=s<o,h=r?s:o,f=r?o:s;t=(f-h)/Math.max(1,e-u+2*c),l&&(t=Math.floor(t)),h+=(f-h-t*(e-u))*d,n=t*(1-u),l&&(h=Math.round(h),n=Math.round(n));var p=(function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),a=Array(i);++r<i;)a[r]=e+r*n;return a})(e).map(function(e){return h+t*e});return a(r?p.reverse():p)}return delete r.unknown,r.domain=function(e){return arguments.length?(i(e),h()):i()},r.range=function(e){return arguments.length?([o,s]=e,o=+o,s=+s,h()):[o,s]},r.rangeRound=function(e){return[o,s]=e,o=+o,s=+s,l=!0,h()},r.bandwidth=function(){return n},r.step=function(){return t},r.round=function(e){return arguments.length?(l=!!e,h()):l},r.padding=function(e){return arguments.length?(u=Math.min(1,c=+e),h()):u},r.paddingInner=function(e){return arguments.length?(u=Math.min(1,e),h()):u},r.paddingOuter=function(e){return arguments.length?(c=+e,h()):c},r.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),h()):d},r.copy=function(){return e(i(),[o,s]).round(l).paddingInner(u).paddingOuter(c).align(d)},no.apply(h(),arguments)}},BYU:function(){return function e(){var t,n=nP();return n.copy=function(){return nN(n,e())},no.apply(n,arguments),t=n.domain,n.ticks=function(e){var n=t();return function(e,t,n){if(t=+t,e=+e,!((n=+n)>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?ng(t,e,n):ng(e,t,n);if(!(a>=i))return[];let s=a-i+1,l=Array(s);if(r){if(o<0)for(let e=0;e<s;++e)l[e]=-((a-e)/o);else for(let e=0;e<s;++e)l[e]=(a-e)*o}else if(o<0)for(let e=0;e<s;++e)l[e]=-((i+e)/o);else for(let e=0;e<s;++e)l[e]=(i+e)*o;return l}(n[0],n[n.length-1],null==e?10:e)}
141,n.tickFormat=function(e,n){var r=t();return function(e,t,n,r){var i,a,o=ny(e,t,n);switch((r=tI(null==r?",f":r)).type){case"s":var s=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(a=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(tP(s)/3)))-tP(Math.abs(o))))||(r.precision=a),es(r,s);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(a=Math.max(0,tP(Math.abs(Math.max(Math.abs(e),Math.abs(t)))-(i=Math.abs(i=o)))-tP(i))+1)||(r.precision=a-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(a=Math.max(0,-tP(Math.abs(o))))||(r.precision=a-("%"===r.type)*2)}return eo(r)}(r[0],r[r.length-1],null==e?10:e,n)},n.nice=function(e){null==e&&(e=10);var r,i,a=t(),o=0,s=a.length-1,l=a[o],u=a[s],c=10;for(u<l&&(i=l,l=u,u=i,i=o,o=s,s=i);c-- >0;){if((i=nm(l,u,e))===r)return a[o]=l,a[s]=u,t(a);if(i>0)l=Math.floor(l/i)*i,u=Math.ceil(u/i)*i;else if(i<0)l=Math.ceil(l*i)/i,u=Math.floor(u*i)/i;else break;r=i}return n},n}},PKp:function(){return nd},Xf:function(){return ix},K2I:function(){return ik},Ys:function(){return iw},rr1:function(){return nU},i$Z:function(){return eu},y2j:function(){return nQ},WQD:function(){return nB},U8T:function(){return n$},Z_i:function(){return nD},Ox9:function(){return nV},F0B:function(){return n9},LqH:function(){return nK},S1K:function(){return nj},Zyz:function(){return nG},Igq:function(){return nX},YDX:function(){return nZ},EFj:function(){return nY},pNI:function(){return tK}});var b=Array.prototype.find;function v(){return this.firstElementChild}var x=Array.prototype.filter;function k(){return Array.from(this.children)}function w(e){return Array(e.length)}function _(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function S(e,t,n,r,i,a){for(var o,s=0,l=t.length,u=a.length;s<u;++s)(o=t[s])?(o.__data__=a[s],r[s]=o):n[s]=new _(e,a[s]);for(;s<l;++s)(o=t[s])&&(i[s]=o)}function C(e,t,n,r,i,a,o){var s,l,u,c=new Map,d=t.length,h=a.length,f=Array(d);for(s=0;s<d;++s)(l=t[s])&&(f[s]=u=o.call(l,l.__data__,s,t)+"",c.has(u)?i[s]=l:c.set(u,l));for(s=0;s<h;++s)u=o.call(e,a[s],s,a)+"",(l=c.get(u))?(r[s]=l,l.__data__=a[s],c.delete(u)):n[s]=new _(e,a[s]);for(s=0;s<d;++s)(l=t[s])&&c.get(f[s])===l&&(i[s]=l)}function M(e){return e.__data__}function A(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}_.prototype={constructor:_,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var E="http://www.w3.org/1999/xhtml",T={svg:"http://www.w3.org/2000/svg",xhtml:E,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function R(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),T.hasOwnProperty(t)?{space:T[t],local:e}:e}function N(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function P(e,t){return e.style.getPropertyValue(t)||N(e).getComputedStyle(e,null).getPropertyValue(t)}function L(e){return e.trim().split(/^|\s+/)}function I(e){return e.classList||new O(e)}function O(e){this._node=e,this._names=L(e.getAttribute("class")||"")}function $(e,t){for(var n=I(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function j(e,t){for(var n=I(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function D(){this.textContent=""}function F(){this.innerHTML=""}function B(){this.nextSibling&&this.parentNode.appendChild(this)}function z(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function U(e){var t=R(e);return(t.local?function(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}:function(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===E&&t.documentElement.namespaceURI===E?t.createElement(e):t.createElementNS(n,e)}})(t)}function W(){return null}function H(){var e=this.parentNode;e&&e.removeChild(this)}function q(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function G(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function V(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,a=t.length;r<a;++r)(n=t[r],e.type&&n.type!==e.type||n.name!==e.name)?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function Z(e,t,n){return function(){var r,i=this.__on,a=function(e){t.call(this,e,this.__data__)};if(i){for(var o=0,s=i.length;o<s;++o)if((r=i[o]).type===e.type&&r.name===e.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=a,r.options=n),r.value=t;return}}this.addEventListener(e.type,a,n),r={type:e.type,name:e.name,value:t,listener:a,options:n},i?i.push(r):this.__on=[r]}}function Y(e,t,n){var r=N(e),i=r.CustomEvent;"function"==typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}O.prototype={add:function(e){0>this._names.indexOf(e)&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var X=[null];function Q(e,t){this._groups=e,this._parents=t}function K(){return new Q([[document.documentElement]],X)}Q.prototype=K.prototype={constructor:Q,select:function(e){"function"!=typeof e&&(e=f(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a,o,s=t[i],l=s.length,u=r[i]=Array(l),c=0;c<l;++c)(a=s[c])&&(o=e.call(a,a.__data__,c,s))&&("__data__"in a&&(o.__data__=a.__data__),u[c]=o);return new Q(r,this._parents)},selectAll:function(e){if("function"==typeof e){var t;t=e,e=function(){var e;return e=t.apply(this,arguments),null==e?[]:Array.isArray(e)?e:Array.from(e)}}else e=g(e);for(var n=this._groups,r=n.length,i=[],a=[],o=0;o<r;++o)for(var s,l=n[o],u=l.length,c=0;c<u;++c)(s=l[c])&&(i.push(e.call(s,s.__data__,c,l)),a.push(s));return new Q(i,a)},selectChild:function(e){var t;return this.select(null==e?v:(t="function"==typeof e?e:y(e),function(){return b.call(this.children,t)}))},selectChildren:function(e){var t;return this.selectAll(null==e?k:(t="function"==typeof e?e:y(e),function(){return x.call(this.children,t)}))},filter:function(e){"function"!=typeof e&&(e=m(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a,o=t[i],s=o.length,l=r[i]=[],u=0;u<s;++u)(a=o[u])&&e.call(a,a.__data__,u,o)&&l.push(a);return new Q(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,M);var n=t?C:S,r=this._parents,i=this._groups;"function"!=typeof e&&(b=e,e=function(){return b});for(var a=i.length,o=Array(a),s=Array(a),l=Array(a),u=0;u<a;++u){var c=r[u],d=i[u],h=d.length,f="object"==typeof(y=e.call(c,c&&c.__data__,u,r))&&"length"in y?y:Array.from(y),p=f.length,g=s[u]=Array(p),m=o[u]=Array(p);n(c,d,g,m,l[u]=Array(h),f,t);for(var y,b,v,x,k=0,w=0;k<p;++k)if(v=g[k]){for(k>=w&&(w=k+1);!(x=m[w])&&++w<p;);v._next=x||null}}return(o=new Q(o,r))._enter=s,o._exit=l,o},enter:function(){return new Q(this._enter||this._groups.map(w),this._parents)},exit:function(){return new Q(this._exit||this._groups.map(w),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,a=this.exit();return"function"==typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(i=t(i))&&(i=i.selection()),null==n?a.remove():n(a),r&&i?r.merge(i).order():i},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),l=0;l<o;++l)for(var u,c=n[l],d=r[l],h=c.length,f=s[l]=Array(h),p=0;p<h;++p)(u=c[p]||d[p])&&(f[p]=u);for(;l<i;++l)s[l]=n[l];return new Q(s,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],a=i.length-1,o=i[a];--a>=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=A);for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o,s=n[a],l=s.length,u=i[a]=Array(l),c=0;c<l;++c)(o=s[c])&&(u[c]=o);u.sort(t)}return new Q(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null},size:function(){let e=0;for(let t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,a=t[n],o=0,s=a.length;o<s;++o)(i=a[o])&&e.call(i,i.__data__,o,a);return this},attr:function(e,t){var n=R(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}}:"function"==typeof t?n.local?function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}:function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}:n.local?function(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}:function(e,t){return function(){this.setAttribute(e,t)}})(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?function(e){return function(){this.style.removeProperty(e)}}:"function"==typeof t?function(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}:function(e,t,n){return function(){this.style.setProperty(e,t,n)}})(e,t,null==n?"":n)):P(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?function(e){return function(){delete this[e]}}:"function"==typeof t?function(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}:function(e,t){return function(){this[e]=t}})(e,t)):this.node()[e]},classed:function(e,t){var n=L(e+"");if(arguments.length<2){for(var r=I(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?function(e,t){return function(){(t.apply(this,arguments)?$:j)(this,e)}}:t?function(e){return function(){$(this,e)}}:function(e){return function(){j(this,e)}})(n,t))},text:function(e){return arguments.length?this.each(null==e?D:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}:function(e){return function(){this.textContent=e}})(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?F:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}:function(e){return function(){this.innerHTML=e}})(e)):this.node().innerHTML},raise:function(){return this.each(B)},lower:function(){return this.each(z)},append:function(e){var t="function"==typeof e?e:U(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n="function"==typeof e?e:U(e),r=null==t?W:"function"==typeof t?t:f(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(H)},clone:function(e){return this.select(e?G:q)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,a=(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}),o=a.length;if(arguments.length<2){var s=this.node().__on;if(s){for(var l,u=0,c=s.length;u<c;++u)for(r=0,l=s[u];r<o;++r)if((i=a[r]).type===l.type&&i.name===l.name)return l.value}return}for(r=0,s=t?Z:V;r<o;++r)this.each(s(a[r],t,n));return this},dispatch:function(e,t){return this.each(("function"==typeof t?function(e,t){return function(){return Y(this,e,t.apply(this,arguments))}}:function(e,t){return function(){return Y(this,e,t)}})(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,i=e[t],a=0,o=i.length;a<o;++a)(r=i[a])&&(yield r)}};var J={value:()=>{}};function ee(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw Error("illegal type: "+e);r[e]=[]}return new et(r)}function et(e){this._=e}
141function en(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=J,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}et.prototype=ee.prototype={constructor:et,on:function(e,t){var n,r=this._,i=(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw Error("unknown type: "+e);return{type:e,name:t}}),a=-1,o=i.length;if(arguments.length<2){for(;++a<o;)if((n=(e=i[a]).type)&&(n=function(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}(r[n],e.name)))return n;return}if(null!=t&&"function"!=typeof t)throw Error("invalid callback: "+t);for(;++a<o;)if(n=(e=i[a]).type)r[n]=en(r[n],e.name,t);else if(null==t)for(n in r)r[n]=en(r[n],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new et(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(r=this._[e],a=0,n=r.length;a<n;++a)r[a].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};var er,ei,ea,eo,es,el,eu,ec,ed,eh=0,ef=0,ep=0,eg=0,em=0,ey=0,eb="object"==typeof performance&&performance.now?performance:Date,ev="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function ex(){return em||(ev(ek),em=eb.now()+ey)}function ek(){em=0}function ew(){this._call=this._time=this._next=null}function e_(e,t,n){var r=new ew;return r.restart(e,t,n),r}function eS(){em=(eg=eb.now())+ey,eh=ef=0;try{!function(){ex(),++eh;for(var e,t=ec;t;)(e=em-t._time)>=0&&t._call.call(void 0,e),t=t._next;--eh}()}finally{eh=0,function(){for(var e,t,n=ec,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:ec=t);ed=e,eM(r)}(),em=0}}function eC(){var e=eb.now(),t=e-eg;t>1e3&&(ey-=t,eg=e)}function eM(e){!eh&&(ef&&(ef=clearTimeout(ef)),e-em>24?(e<1/0&&(ef=setTimeout(eS,e-eb.now()-ey)),ep&&(ep=clearInterval(ep))):(ep||(eg=eb.now(),ep=setInterval(eC,1e3)),eh=1,ev(eS)))}function eA(e,t,n){var r=new ew;return t=null==t?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}ew.prototype=e_.prototype={constructor:ew,restart:function(e,t,n){if("function"!=typeof e)throw TypeError("callback is not a function");n=(null==n?ex():+n)+(null==t?0:+t),this._next||ed===this||(ed?ed._next=this:ec=this,ed=this),this._call=e,this._time=n,eM()},stop:function(){this._call&&(this._call=null,this._time=1/0,eM())}};var eE=ee("start","end","cancel","interrupt"),eT=[];function eR(e,t,n,r,i,a){var o=e.__transition;if(o){if(n in o)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function a(l){var u,c,d,h;if(1!==n.state)return s();for(u in i)if((h=i[u]).name===n.name){if(3===h.state)return eA(a);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete i[u]):+u<t&&(h.state=6,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete i[u])}if(eA(function(){3===n.state&&(n.state=4,n.timer.restart(o,n.delay,n.time),o(l))}),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(u=0,n.state=3,r=Array(d=n.tween.length),c=-1;u<d;++u)(h=n.tween[u].value.call(e,e.__data__,n.index,n.group))&&(r[++c]=h);r.length=c+1}}function o(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(s),n.state=5,1),a=-1,o=r.length;++a<o;)r[a].call(e,i);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=e_(function(e){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=e&&a(e-n.delay)},0,n.time)}(e,n,{name:t,index:r,group:i,on:eE,tween:eT,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function eN(e,t){var n=eL(e,t);if(n.state>0)throw Error("too late; already scheduled");return n}function eP(e,t){var n=eL(e,t);if(n.state>3)throw Error("too late; already running");return n}function eL(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error("transition not found");return n}function eI(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var eO=180/Math.PI,e$={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ej(e,t,n,r,i,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r<t*n&&(e=-e,t=-t,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*eO,skewX:Math.atan(l)*eO,scaleX:o,scaleY:s}}function eD(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(a,o){var s,l,u,c,d=[],h=[];
141return a=e(a),o=e(o),!function(e,r,i,a,o,s){if(e!==i||r!==a){var l=o.push("translate(",null,t,null,n);s.push({i:l-4,x:eI(e,i)},{i:l-2,x:eI(r,a)})}else(i||a)&&o.push("translate("+i+t+a+n)}(a.translateX,a.translateY,o.translateX,o.translateY,d,h),(s=a.rotate)!==(l=o.rotate)?(s-l>180?l+=360:l-s>180&&(s+=360),h.push({i:d.push(i(d)+"rotate(",null,r)-2,x:eI(s,l)})):l&&d.push(i(d)+"rotate("+l+r),(u=a.skewX)!==(c=o.skewX)?h.push({i:d.push(i(d)+"skewX(",null,r)-2,x:eI(u,c)}):c&&d.push(i(d)+"skewX("+c+r),!function(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:eI(e,n)},{i:s-2,x:eI(t,r)})}else(1!==n||1!==r)&&a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,d,h),a=o=null,function(e){for(var t,n=-1,r=h.length;++n<r;)d[(t=h[n]).i]=t.x(e);return d.join("")}}}var eF=eD(function(e){let t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?e$:ej(t.a,t.b,t.c,t.d,t.e,t.f)},"px, ","px)","deg)"),eB=eD(function(e){return null==e?e$:(er||(er=document.createElementNS("http://www.w3.org/2000/svg","g")),er.setAttribute("transform",e),e=er.transform.baseVal.consolidate())?ej((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):e$},", ",")",")");function ez(e,t,n){var r=e._id;return e.each(function(){var e=eP(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)}),function(e){return eL(e,r).value[t]}}function eU(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function eW(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function eH(){}var eq="\\s*([+-]?\\d+)\\s*",eG="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",eV="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",eZ=/^#([0-9a-f]{3,8})$/,eY=RegExp(`^rgb\\(${eq},${eq},${eq}\\)$`),eX=RegExp(`^rgb\\(${eV},${eV},${eV}\\)$`),eQ=RegExp(`^rgba\\(${eq},${eq},${eq},${eG}\\)$`),eK=RegExp(`^rgba\\(${eV},${eV},${eV},${eG}\\)$`),eJ=RegExp(`^hsl\\(${eG},${eV},${eV}\\)$`),e0=RegExp(`^hsla\\(${eG},${eV},${eV},${eG}\\)$`),e1={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function e2(){return this.rgb().formatHex()}function e5(){return this.rgb().formatRgb()}function e3(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=eZ.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?e6(t):3===n?
141new e4(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?e8(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?e8(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=eY.exec(e))?new e4(t[1],t[2],t[3],1):(t=eX.exec(e))?new e4(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=eQ.exec(e))?e8(t[1],t[2],t[3],t[4]):(t=eK.exec(e))?e8(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=eJ.exec(e))?ta(t[1],t[2]/100,t[3]/100,1):(t=e0.exec(e))?ta(t[1],t[2]/100,t[3]/100,t[4]):e1.hasOwnProperty(e)?e6(e1[e]):"transparent"===e?new e4(NaN,NaN,NaN,0):null}function e6(e){return new e4(e>>16&255,e>>8&255,255&e,1)}function e8(e,t,n,r){return r<=0&&(e=t=n=NaN),new e4(e,t,n,r)}function e9(e){return(e instanceof eH||(e=e3(e)),e)?new e4((e=e.rgb()).r,e.g,e.b,e.opacity):new e4}function e7(e,t,n,r){return 1==arguments.length?e9(e):new e4(e,t,n,null==r?1:r)}function e4(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function te(){return`#${ti(this.r)}${ti(this.g)}${ti(this.b)}`}function tt(){let e=tn(this.opacity);return`${1===e?"rgb(":"rgba("}${tr(this.r)}, ${tr(this.g)}, ${tr(this.b)}${1===e?")":`, ${e})`}`}function tn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function tr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ti(e){return((e=tr(e))<16?"0":"")+e.toString(16)}function ta(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ts(e,t,n,r)}function to(e){if(e instanceof ts)return new ts(e.h,e.s,e.l,e.opacity);if(e instanceof eH||(e=e3(e)),!e)return new ts;if(e instanceof ts)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,l=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new ts(o,s,l,e.opacity)}function ts(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function tl(e){return(e=(e||0)%360)<0?e+360:e}function tu(e){return Math.max(0,Math.min(1,e||0))}function tc(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function td(e,t,n,r,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*r+o*i)/6}eU(eH,e3,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:e2,formatHex:e2,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return to(this).formatHsl()},formatRgb:e5,toString:e5}),eU(e4,e7,eW(eH,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new e4(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new e4(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new e4(tr(this.r),tr(this.g),tr(this.b),tn(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:te,formatHex:te,formatHex8:function(){return`#${ti(this.r)}${ti(this.g)}${ti(this.b)}${ti((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:tt,toString:tt})),eU(ts,function(e,t,n,r){return 1==arguments.length?to(e):new ts(e,t,n,null==r?1:r)},eW(eH,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new ts(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ts(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new e4(tc(e>=240?e-240:e+120,i,r),tc(e,i,r),tc(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ts(tl(this.h),tu(this.s),tu(this.l),tn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=tn(this.opacity);return`${1===e?"hsl(":"hsla("}${tl(this.h)}, ${100*tu(this.s)}%, ${100*tu(this.l)}%${1===e?")":`, ${e})`}`}}));var th=e=>()=>e;function tf(e,t){return function(n){return e+n*t}}function tp(e,t){var n=t-e;return n?tf(e,n):th(isNaN(e)?t:e)}var tg=function e(t){var n,r=1==(n=+(n=t))?tp:function(e,t){var r,i,a;return t-e?(r=e,i=t,r=Math.pow(r,a=n),i=Math.pow(i,a)-r,a=1/a,function(e){return Math.pow(r+e*i,a)}):th(isNaN(e)?t:e)};function i(e,t){var n=r((e=e7(e)).r,(t=e7(t)).r),i=r(e.g,t.g),a=r(e.b,t.b),o=tp(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+""}}return i.gamma=e,i}(1);function tm(e){return function(t){var n,r,i=t.length,a=Array(i),o=Array(i),s=Array(i);for(n=0;n<i;++n)r=e7(t[n]),a[n]=r.r||0,o[n]=r.g||0,s[n]=r.b||0;return a=e(a),o=e(o),s=e(s),r.opacity=1,function(e){return r.r=a(e),r.g=o(e),r.b=s(e),r+""}}}tm(function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],a=e[r+1],o=r>0?e[r-1]:2*i-a,s=r<t-1?e[r+2]:2*a-i;return td((n-r/t)*t,o,i,a,s)}}
141),tm(function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],a=e[r%t],o=e[(r+1)%t],s=e[(r+2)%t];return td((n-r/t)*t,i,a,o,s)}});var ty=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,tb=RegExp(ty.source,"g");function tv(e,t){var n,r,i,a,o,s=ty.lastIndex=tb.lastIndex=0,l=-1,u=[],c=[];for(e+="",t+="";(i=ty.exec(e))&&(a=tb.exec(t));)(o=a.index)>s&&(o=t.slice(s,o),u[l]?u[l]+=o:u[++l]=o),(i=i[0])===(a=a[0])?u[l]?u[l]+=a:u[++l]=a:(u[++l]=null,c.push({i:l,x:eI(i,a)})),s=tb.lastIndex;return s<t.length&&(o=t.slice(s),u[l]?u[l]+=o:u[++l]=o),u.length<2?c[0]?(n=c[0].x,function(e){return n(e)+""}):(r=t,function(){return r}):(t=c.length,function(e){for(var n,r=0;r<t;++r)u[(n=c[r]).i]=n.x(e);return u.join("")})}function tx(e,t){var n;return("number"==typeof t?eI:t instanceof e3?tg:(n=e3(t))?(t=n,tg):tv)(e,t)}var tk=K.prototype.constructor;function tw(e){return function(){this.style.removeProperty(e)}}var t_=0;function tS(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}var tC=K.prototype;tS.prototype=(function(e){return K().transition(e)}).prototype={constructor:tS,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=f(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s,l,u=r[o],c=u.length,d=a[o]=Array(c),h=0;h<c;++h)(s=u[h])&&(l=e.call(s,s.__data__,h,u))&&("__data__"in s&&(l.__data__=s.__data__),d[h]=l,eR(d[h],t,n,h,d,eL(s,n)));return new tS(a,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=g(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var l,u=r[s],c=u.length,d=0;d<c;++d)if(l=u[d]){for(var h,f=e.call(l,l.__data__,d,u),p=eL(l,n),m=0,y=f.length;m<y;++m)(h=f[m])&&eR(h,t,n,m,f,p);a.push(f),o.push(l)}return new tS(a,o,t,n)},selectChild:tC.selectChild,selectChildren:tC.selectChildren,filter:function(e){"function"!=typeof e&&(e=m(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a,o=t[i],s=o.length,l=r[i]=[],u=0;u<s;++u)(a=o[u])&&e.call(a,a.__data__,u,o)&&l.push(a);return new tS(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var l,u=t[s],c=n[s],d=u.length,h=o[s]=Array(d),f=0;f<d;++f)(l=u[f]||c[f])&&(h[f]=l);for(;s<r;++s)o[s]=t[s];return new tS(o,this._parents,this._name,this._id)},selection:function(){return new tk(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=++t_,r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],l=s.length,u=0;u<l;++u)if(o=s[u]){var c=eL(o,t);eR(o,e,n,u,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new tS(r,this._parents,e,n)},call:tC.call,nodes:tC.nodes,node:tC.node,size:tC.size,empty:tC.empty,each:tC.each,on:function(e,t){var n,r,i,a=this._id;return arguments.length<2?eL(this.node(),a).on.on(e):this.each((i=(e+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e})?eN:eP,function(){var o=i(this,a),s=o.on;s!==n&&(r=(n=s).copy()).on(e,t),o.on=r}))},attr:function(e,t){var n=R(e),r="transform"===n?eB:tx;return this.attrTween(e,"function"==typeof t?(n.local?function(e,t,n){var r,i,a;return function(){var o,s,l=n(this);return null==l?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local))===(s=l+"")?null:o===r&&s===i?a:(i=s,a=t(r=o,l))}}:function(e,t,n){var r,i,a;return function(){var o,s,l=n(this);return null==l?void this.removeAttribute(e):(o=this.getAttribute(e))===(s=l+"")?null:o===r&&s===i?a:(i=s,a=t(r=o,l))}})(n,r,ez(this,"attr."+e,t)):null==t?(n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}})(n):(n.local?function(e,t,n){var r,i,a=n+"";return function(){var o=this.getAttributeNS(e.space,e.local);return o===a?null:o===r?i:i=t(r=o,n)}}:function(e,t,n){var r,i,a=n+"";return function(){var o=this.getAttribute(e);return o===a?null:o===r?i:i=t(r=o,n)}})(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw Error();var r=R(e);return this.tween(n,(r.local?function(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t){this.setAttributeNS(e.space,e.local,i.call(this,t))}),n}return i._value=t,i}:function(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t){this.setAttribute(e,i.call(this,t))}),n}return i._value=t,i})(r,t))},style:function(e,t,n){var r,i,a,o,s,l,u,c,d,h,f,p,g,m,y,b,v,x,k,w,_,S="transform"==(e+="")?eF:tx;return null==t?this.styleTween(e,(r=e,function(){var e=P(this,r),t=(this.style.removeProperty(r),P(this,r));return e===t?null:e===i&&t===a?o:o=S(i=e,a=t)})).on("end.style."+e,tw(e)):"function"==typeof t?this.styleTween(e,(s=e,l=ez(this,"style."+e,t),function(){var e=P(this,s),t=l(this),n=t+"";return null==t&&(this.style.removeProperty(s),n=t=P(this,s)),e===n?null:e===u&&n===c?d:(c=n,d=S(u=e,t))})).each((h=this._id,v="end."+(b="style."+(f=e)),function(){var e=eP(this,h),t=e.on,n=null==e.value[b]?y||
141(y=tw(f)):void 0;(t!==p||m!==n)&&(g=(p=t).copy()).on(v,m=n),e.on=g})):this.styleTween(e,(x=e,_=t+"",function(){var e=P(this,x);return e===_?null:e===k?w:w=S(k=e,t)}),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw Error();return this.tween(r,function(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&function(t){this.style.setProperty(e,a.call(this,t),n)}),r}return a._value=t,a}(e,t,null==n?"":n))},text:function(e){var t,n;return this.tween("text","function"==typeof e?(t=ez(this,"text",e),function(){var e=t(this);this.textContent=null==e?"":e}):(n=null==e?"":e+"",function(){this.textContent=n}))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw Error();return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){this.textContent=r.call(this,e)}),t}return r._value=e,r}(e))},remove:function(){var e;return this.on("end.remove",(e=this._id,function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=eL(this.node(),n).tween,a=0,o=i.length;a<o;++a)if((r=i[a]).name===e)return r.value;return null}return this.each((null==t?function(e,t){var n,r;return function(){var i=eP(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){(r=r.slice()).splice(o,1);break}}i.tween=r}}:function(e,t,n){var r,i;if("function"!=typeof n)throw Error();return function(){var a=eP(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},l=0,u=i.length;l<u;++l)if(i[l].name===t){i[l]=s;break}l===u&&i.push(s)}a.tween=i}})(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){eN(this,e).delay=+t.apply(this,arguments)}}:function(e,t){return t=+t,function(){eN(this,e).delay=t}})(t,e)):eL(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){eP(this,e).duration=+t.apply(this,arguments)}}:function(e,t){return t=+t,function(){eP(this,e).duration=t}})(t,e)):eL(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw Error();return function(){eP(this,e).ease=t}}(t,e)):eL(this.node(),t).ease},easeVarying:function(e){var t;if("function"!=typeof e)throw Error();return this.each((t=this._id,function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw Error();eP(this,t).ease=n}))},end:function(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},l={value:function(){0==--i&&a()}};n.each(function(){var n=eP(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),n.on=t}),0===i&&a()})},[Symbol.iterator]:tC[Symbol.iterator]};var tM={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};K.prototype.interrupt=function(e){return this.each(function(){!function(e,t){var n,r,i,a=e.__transition,o=!0;if(a){for(i in t=null==t?null:t+"",a){if((n=a[i]).name!==t){o=!1;continue}r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete a[i]}o&&delete e.__transition}}(this,e)})},K.prototype.transition=function(e){var t,n;e instanceof tS?(t=e._id,e=e._name):(t=++t_,(n=tM).time=ex(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],l=s.length,u=0;u<l;++u)(o=s[u])&&eR(o,e,t,u,s,n||function(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}(o,t));return new tS(r,this._parents,e,t)};let{abs:tA,max:tE,min:tT}=Math;function tR(e){return{type:e}}function tN(e,t){if(!isFinite(e)||0===e)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function tP(e){return(e=tN(Math.abs(e)))?e[1]:NaN}["w","e"].map(tR),["n","s"].map(tR),["n","w","e","s","nw","ne","sw","se"].map(tR);var tL=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function tI(e){var t;if(!(t=tL.exec(e)))throw Error("invalid format: "+e);return new tO({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function tO(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function t$(e,t){var n=tN(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+Array(i-r.length+2).join("0")}tI.prototype=tO.prototype,tO.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?""
141:Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var tj={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>t$(100*e,t),r:t$,s:function(e,t){var n=tN(e,t);if(!n)return ei=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(ei=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+Array(1-a).join("0")+tN(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function tD(e){return e}var tF=Array.prototype.map,tB=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function tz(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function tU(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=tH)):void 0===t&&(t=tW);for(var n,r,i,a,o,s=new tV(e),l=[s];n=l.pop();)if((i=t(n.data))&&(o=(i=Array.from(i)).length))for(n.children=i,a=o-1;a>=0;--a)l.push(r=i[a]=new tV(i[a])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(tG)}function tW(e){return e.children}function tH(e){return Array.isArray(e)?e[1]:null}function tq(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function tG(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function tV(e){this.data=e,this.depth=this.height=0,this.parent=null}function tZ(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}eo=(ea=function(e){var t,n,r,i=void 0===e.grouping||void 0===e.thousands?tD:(t=tF.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,a=[],o=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[o=(o+1)%t.length];return a.reverse().join(n)}),a=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",s=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?tD:(r=tF.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return r[+e]})}),u=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",d=void 0===e.nan?"NaN":e.nan+"";function h(e,t){var n=(e=tI(e)).fill,r=e.align,h=e.sign,f=e.symbol,p=e.zero,g=e.width,m=e.comma,y=e.precision,b=e.trim,v=e.type;"n"===v?(m=!0,v="g"):tj[v]||(void 0===y&&(y=12),b=!0,v="g"),(p||"0"===n&&"="===r)&&(p=!0,n="0",r="=");var x=(t&&void 0!==t.prefix?t.prefix:"")+("$"===f?a:"#"===f&&/[boxX]/.test(v)?"0"+v.toLowerCase():""),k=("$"===f?o:/[%p]/.test(v)?u:"")+(t&&void 0!==t.suffix?t.suffix:""),w=tj[v],_=/[defgprs%]/.test(v);function S(e){var t,a,o,u=x,f=k;if("c"===v)f=w(e)+f,e="";else{var S=(e=+e)<0||1/e<0;
141if(e=isNaN(e)?d:w(Math.abs(e),y),b&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==h&&(S=!1),u=(S?"("===h?h:c:"-"===h||"("===h?"":h)+u,f=("s"!==v||isNaN(e)||void 0===ei?"":tB[8+ei/3])+f+(S&&"("===h?")":""),_){for(t=-1,a=e.length;++t<a;)if(48>(o=e.charCodeAt(t))||o>57){f=(46===o?s+e.slice(t+1):e.slice(t))+f,e=e.slice(0,t);break}}}m&&!p&&(e=i(e,1/0));var C=u.length+e.length+f.length,M=C<g?Array(g-C+1).join(n):"";switch(m&&p&&(e=i(M+e,M.length?g-f.length:1/0),M=""),r){case"<":e=u+e+f+M;break;case"=":e=u+M+e+f;break;case"^":e=M.slice(0,C=M.length>>1)+u+e+f+M.slice(C);break;default:e=M+u+e+f}return l(e)}return y=void 0===y?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),S.toString=function(){return e+""},S}return{format:h,formatPrefix:function(e,t){var n=3*Math.max(-8,Math.min(8,Math.floor(tP(t)/3))),r=Math.pow(10,-n),i=h(((e=tI(e)).type="f",e),{suffix:tB[8+n/3]});return function(e){return i(r*e)}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,es=ea.formatPrefix,tV.prototype=tU.prototype={constructor:tV,count:function(){return this.eachAfter(tz)},each:function(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,a=this,o=[a],s=[],l=-1;a=o.pop();)if(s.push(a),n=a.children)for(r=0,i=n.length;r<i;++r)o.push(n[r]);for(;a=s.pop();)e.call(t,a,++l,this);return this},eachBefore:function(e,t){for(var n,r,i=this,a=[i],o=-1;i=a.pop();)if(e.call(t,i,++o,this),n=i.children)for(r=n.length-1;r>=0;--r)a.push(n[r]);return this},find:function(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)r.push(t=t.parent);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return tU(this).eachBefore(tq)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,a=[i];do for(e=a.reverse(),a=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)a.push(t[n]);while(a.length)}};var tY=function e(t){function n(e,n,r,i,a){!function(e,t,n,r,i,a){for(var o,s,l,u,c,d,h,f,p,g,m,y=[],b=t.children,v=0,x=0,k=b.length,w=t.value;v<k;){l=i-n,u=a-r;do c=b[x++].value;while(!c&&x<k);for(d=h=c,p=Math.max(h/(m=c*c*(g=Math.max(u/l,l/u)/(w*e))),m/d);x<k;++x){if(c+=s=b[x].value,s<d&&(d=s),s>h&&(h=s),(f=Math.max(h/(m=c*c*g),m/d))>p){c-=s;break}p=f}y.push(o={value:c,dice:l<u,children:b.slice(v,x)}),o.dice?function(e,t,n,r,i){for(var a,o=e.children,s=-1,l=o.length,u=e.value&&(r-t)/e.value;++s<l;)(a=o[s]).y0=n,a.y1=i,a.x0=t,a.x1=t+=a.value*u}(o,n,r,i,w?r+=u*c/w:a):function(e,t,n,r,i){for(var a,o=e.children,s=-1,l=o.length,u=e.value&&(i-n)/e.value;++s<l;)(a=o[s]).x0=t,a.x1=r,a.y0=n,a.y1=n+=a.value*u}(o,n,r,w?n+=l*c/w:i,a),w-=c,v=x}}(t,e,n,r,i,a)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}((1+Math.sqrt(5))/2);function tX(){return 0}function tQ(e){return function(){return e}}function tK(){var e=tY,t=!1,n=1,r=1,i=[0],a=tX,o=tX,s=tX,l=tX,u=tX;function c(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),i=[0],t&&e.eachBefore(tZ),e}function d(t){var n=i[t.depth],r=t.x0+n,c=t.y0+n,d=t.x1-n,h=t.y1-n;d<r&&(r=d=(r+d)/2),h<c&&(c=h=(c+h)/2),t.x0=r,t.y0=c,t.x1=d,t.y1=h,t.children&&(n=i[t.depth+1]=a(t)/2,r+=u(t)-n,c+=o(t)-n,d-=s(t)-n,h-=l(t)-n,d<r&&(r=d=(r+d)/2),h<c&&(c=h=(c+h)/2),e(t,r,c,d,h))}
141return c.round=function(e){return arguments.length?(t=!!e,c):t},c.size=function(e){return arguments.length?(n=+e[0],r=+e[1],c):[n,r]},c.tile=function(t){return arguments.length?(e=function(e){if("function"!=typeof e)throw Error();return e}(t),c):e},c.padding=function(e){return arguments.length?c.paddingInner(e).paddingOuter(e):c.paddingInner()},c.paddingInner=function(e){return arguments.length?(a="function"==typeof e?e:tQ(+e),c):a},c.paddingOuter=function(e){return arguments.length?c.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):c.paddingTop()},c.paddingTop=function(e){return arguments.length?(o="function"==typeof e?e:tQ(+e),c):o},c.paddingRight=function(e){return arguments.length?(s="function"==typeof e?e:tQ(+e),c):s},c.paddingBottom=function(e){return arguments.length?(l="function"==typeof e?e:tQ(+e),c):l},c.paddingLeft=function(e){return arguments.length?(u="function"==typeof e?e:tQ(+e),c):u},c}let tJ=Math.PI/180,t0=180/Math.PI,t1=4/29,t2=6/29,t5=6/29*3*(6/29),t3=6/29*(6/29)*(6/29);function t6(e){if(e instanceof t8)return new t8(e.l,e.a,e.b,e.opacity);if(e instanceof nn)return nr(e);e instanceof e4||(e=e9(e));var t,n,r=ne(e.r),i=ne(e.g),a=ne(e.b),o=t9((.2225045*r+.7168786*i+.0606169*a)/1);return r===i&&i===a?t=n=o:(t=t9((.4360747*r+.3850649*i+.1430804*a)/.96422),n=t9((.0139322*r+.0971045*i+.7141733*a)/.82521)),new t8(116*o-16,500*(t-o),200*(o-n),e.opacity)}function t8(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function t9(e){return e>t3?Math.pow(e,1/3):e/t5+t1}function t7(e){return e>t2?e*e*e:t5*(e-t1)}function t4(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ne(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function nt(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof nn)return new nn(e.h,e.c,e.l,e.opacity);if(e instanceof t8||(e=t6(e)),0===e.a&&0===e.b)return new nn(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*t0;return new nn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new nn(e,t,n,null==r?1:r)}function nn(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function nr(e){if(isNaN(e.h))return new t8(e.l,0,0,e.opacity);var t=e.h*tJ;return new t8(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}function ni(e){return function(t,n){var r=e((t=nt(t)).h,(n=nt(n)).h),i=tp(t.c,n.c),a=tp(t.l,n.l),o=tp(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=a(e),t.opacity=o(e),t+""}}}eU(t8,function(e,t,n,r){return 1==arguments.length?t6(e):new t8(e,t,n,null==r?1:r)},eW(eH,{brighter(e){return new t8(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new t8(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new e4(t4(3.1338561*(t=.96422*t7(t))-1.6168667*(e=1*t7(e))-.4906146*(n=.82521*t7(n))),t4(-.9787684*t+1.9161415*e+.033454*n),t4(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),eU(nn,nt,eW(eH,{brighter(e){return new nn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new nn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return nr(this).rgb()}}));var na=ni(function(e,t){var n=t-e;return n?tf(e,n>180||n<-180?n-360*Math.round(n/360):n):th(isNaN(e)?t:e)});function no(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}ni(tp);class ns extends Map{constructor(e,t=nu){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(nl(this,e))}has(e){return super.has(nl(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}(this,e))}}function nl({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function nu(e){return null!==e&&"object"==typeof e?e.valueOf():e}let nc=Symbol("implicit");function nd(){var e=new ns,t=[],n=[],r=nc;function i(i){let a=e.get(i);if(void 0===a){if(r!==nc)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();for(let r of(t=[],e=new ns,n))e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return nd(t,n).unknown(r)},no.apply(i,arguments),i}let nh=Math.sqrt(50),nf=Math.sqrt(10),np=Math.sqrt(2);function ng(e,t,n){let r,i,a;let o=(t-e)/Math.max(0,n),s=Math.floor(Math.log10(o)),l=o/Math.pow(10,s),u=l>=nh?10:l>=nf?5:l>=np?2:1;return(s<0?(r=Math.round(e*(a=Math.pow(10,-s)/u)),i=Math.round(t*a),r/a<e&&++r,i/a>t&&--i,a=-a):(r=Math.round(e/(a=Math.pow(10,s)*u)),i=Math.round(t/a),r*a<e&&++r,i*a>t&&--i),i<r&&.5<=n&&n<2)?ng(e,t,2*n):[r,i,a]}function nm(e,t,n){return ng(e=+e,t=+t,n=+n)[2]}function ny(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?nm(t,e,n):nm(e,t,n);return(r?-1:1)*(i<0?-(1/i):i)}function nb(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function nv(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function nx(e){let t,n,r;
141function i(e,r,i=0,a=e.length){if(i<a){if(0!==t(r,r))return a;do{let t=i+a>>>1;0>n(e[t],r)?i=t+1:a=t}while(i<a)}return i}return 2!==e.length?(t=nb,n=(t,n)=>nb(e(t),n),r=(t,n)=>e(t)-n):(t=e===nb||e===nv?e:nk,n=e,r=e),{left:i,center:function(e,t,n=0,a=e.length){let o=i(e,t,n,a-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o},right:function(e,r,i=0,a=e.length){if(i<a){if(0!==t(r,r))return a;do{let t=i+a>>>1;0>=n(e[t],r)?i=t+1:a=t}while(i<a)}return i}}}function nk(){return 0}let nw=nx(nb),n_=nw.right;function nS(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function nC(e){return+e}nw.left,nx(function(e){return null===e?NaN:+e}).center;var nM=[0,1];function nA(e){return e}function nE(e,t){var n;return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n})}function nT(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=nE(i,r),a=n(o,a)):(r=nE(r,i),a=n(a,o)),function(e){return a(r(e))}}function nR(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=nE(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=n_(e,t,1,r)-1;return a[n](i[n](t))}}function nN(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function nP(){return(function(){var e,t,n,r,i,a,o=nM,s=nM,l=function e(t,n){var r,i,a=typeof n;return null==n||"boolean"===a?th(n):("number"===a?eI:"string"===a?(i=e3(n))?(n=i,tg):tv:n instanceof e3?tg:n instanceof Date?function(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}:!ArrayBuffer.isView(r=n)||r instanceof DataView?Array.isArray(n)?function(t,n){var r,i=n?n.length:0,a=t?Math.min(i,t.length):0,o=Array(a),s=Array(i);for(r=0;r<a;++r)o[r]=e(t[r],n[r]);for(;r<i;++r)s[r]=n[r];return function(e){for(r=0;r<a;++r)s[r]=o[r](e);return s}}:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?function(t,n){var r,i={},a={};for(r in(null===t||"object"!=typeof t)&&(t={}),(null===n||"object"!=typeof n)&&(n={}),n)r in t?i[r]=e(t[r],n[r]):a[r]=n[r];return function(e){for(r in i)a[r]=i[r](e);return a}}:eI:function(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(a){for(n=0;n<r;++n)i[n]=e[n]*(1-a)+t[n]*a;return i}})(t,n)},u=nA;function c(){var e,t,n,l=Math.min(o.length,s.length);return u!==nA&&(e=o[0],t=o[l-1],e>t&&(n=e,e=t,t=n),u=function(n){return Math.max(e,Math.min(t,n))}),r=l>2?nR:nT,i=a=null,d}function d(t){return null==t||isNaN(t=+t)?n:(i||(i=r(o.map(e),s,l)))(e(u(t)))}return d.invert=function(n){return u(t((a||(a=r(s,o.map(e),eI)))(n)))},d.domain=function(e){return arguments.length?(o=Array.from(e,nC),c()):o.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),c()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=nS,c()},d.clamp=function(e){return arguments.length?(u=!!e||nA,c()):u!==nA},d.interpolate=function(e){return arguments.length?(l=e,c()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,c()}})()(nA,nA)}let nL=new Date,nI=new Date;function nO(e,t,n,r){function i(t){return e(t=0==arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o;let s=[];if(n=i.ceil(n),a=null==a?1:Math.floor(a),!(n<r)||!(a>0))return s;do s.push(o=new Date(+n)),t(n,a),e(n);while(o<n&&n<r);return s},i.filter=n=>nO(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e){if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}}),n&&(i.count=(t,r)=>(nL.setTime(+t),nI.setTime(+r),e(nL),e(nI),Math.floor(n(nL,nI))),i.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?i.filter(r?t=>r(t)%e==0:t=>i.count(0,t)%e==0):i:null),i}let n$=nO(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);n$.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?nO(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):n$:null,n$.range;let nj=nO(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+1e3*t)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds());nj.range;let nD=nO(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getMinutes());nD.range;let nF=nO(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes());nF.range;let nB=nO(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getHours());nB.range;let nz=nO(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours());nz.range;let nU=nO(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1);nU.range;let nW=nO(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1);nW.range;let nH=nO(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5));function nq(e){return nO(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}nH.range;let nG=nq(0),nV=nq(1),nZ=nq(2),nY=nq(3),nX=nq(4),nQ=nq(5),nK=nq(6);function nJ(e){return nO(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/6048e5)}nG.range,nV.range,nZ.range,nY.range,nX.range,nQ.range,nK.range;let n0=nJ(0),n1=nJ(1),n2=nJ(2),n5=nJ(3),n3=nJ(4),n6=nJ(5),n8=nJ(6);n0.range,n1.range,n2.range,n5.range,n3.range,n6.range,n8.range;let n9=nO(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());n9.range;let n7=nO(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());n7.range;let n4=nO(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());n4.every=e=>isFinite(e=Math.floor(e))&&e>0?nO(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}):null,n4.range;let re=nO(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());function rt(e,t,n,r,i,a){let o=[[nj,1,1e3],[nj,5,5e3],[nj,15,15e3],[nj,30,3e4],[a,1,6e4],[a,5,3e5],[a,15,9e5],[a,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function s(t,n,r){let i=Math.abs(n-t)/r,a=nx(([,,e])=>e).right(o,i);if(a===o.length)return e.every(ny(t/31536e6,n/31536e6,r));if(0===a)return n$.every(Math.max(ny(t,n,r),1));let[s,l]=o[i/o[a-1][2]<o[a][2]/i?a-1:a];return s.every(l)}return[function(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&"function"==typeof n.range?n:s(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a},s]}re.every=e=>isFinite(e=Math.floor(e))&&e>0?nO(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null,re.range;let[rn,rr]=rt(re,n7,n0,nH,nz,nF),[ri,ra]=rt(n4,n9,nG,nU,nB,nD);function ro(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function rs(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function rl(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var ru={"-":"",_:" ",0:"0"},rc=/^\s*\d+/,rd=/^%/,rh=/[\\^$*+?|[\]().{}]/g;function rf(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function rp(e){return e.replace(rh,"\\$&")}function rg(e){return RegExp("^(?:"+e.map(rp).join("|")+")","i")}function rm(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function ry(e,t,n){var r=rc.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function rb(e,t,n){var r=rc.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function rv(e,t,n){var r=rc.exec(t.slice(n,n+2));
vendor: 8,605 bytes, line 141
141return r?(e.U=+r[0],n+r[0].length):-1}function rx(e,t,n){var r=rc.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function rk(e,t,n){var r=rc.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function rw(e,t,n){var r=rc.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function r_(e,t,n){var r=rc.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function rS(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function rC(e,t,n){var r=rc.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function rM(e,t,n){var r=rc.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function rA(e,t,n){var r=rc.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function rE(e,t,n){var r=rc.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function rT(e,t,n){var r=rc.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function rR(e,t,n){var r=rc.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function rN(e,t,n){var r=rc.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function rP(e,t,n){var r=rc.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function rL(e,t,n){var r=rc.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function rI(e,t,n){var r=rd.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function rO(e,t,n){var r=rc.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function r$(e,t,n){var r=rc.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function rj(e,t){return rf(e.getDate(),t,2)}function rD(e,t){return rf(e.getHours(),t,2)}function rF(e,t){return rf(e.getHours()%12||12,t,2)}function rB(e,t){return rf(1+nU.count(n4(e),e),t,3)}function rz(e,t){return rf(e.getMilliseconds(),t,3)}function rU(e,t){return rz(e,t)+"000"}function rW(e,t){return rf(e.getMonth()+1,t,2)}function rH(e,t){return rf(e.getMinutes(),t,2)}function rq(e,t){return rf(e.getSeconds(),t,2)}function rG(e){var t=e.getDay();return 0===t?7:t}function rV(e,t){return rf(nG.count(n4(e)-1,e),t,2)}function rZ(e){var t=e.getDay();return t>=4||0===t?nX(e):nX.ceil(e)}function rY(e,t){return e=rZ(e),rf(nX.count(n4(e),e)+(4===n4(e).getDay()),t,2)}function rX(e){return e.getDay()}function rQ(e,t){return rf(nV.count(n4(e)-1,e),t,2)}function rK(e,t){return rf(e.getFullYear()%100,t,2)}function rJ(e,t){return rf((e=rZ(e)).getFullYear()%100,t,2)}function r0(e,t){return rf(e.getFullYear()%1e4,t,4)}function r1(e,t){var n=e.getDay();return rf((e=n>=4||0===n?nX(e):nX.ceil(e)).getFullYear()%1e4,t,4)}function r2(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+rf(t/60|0,"0",2)+rf(t%60,"0",2)}function r5(e,t){return rf(e.getUTCDate(),t,2)}function r3(e,t){return rf(e.getUTCHours(),t,2)}function r6(e,t){return rf(e.getUTCHours()%12||12,t,2)}function r8(e,t){return rf(1+nW.count(re(e),e),t,3)}function r9(e,t){return rf(e.getUTCMilliseconds(),t,3)}function r7(e,t){return r9(e,t)+"000"}function r4(e,t){return rf(e.getUTCMonth()+1,t,2)}function ie(e,t){return rf(e.getUTCMinutes(),t,2)}function it(e,t){return rf(e.getUTCSeconds(),t,2)}function ir(e){var t=e.getUTCDay();return 0===t?7:t}function ii(e,t){return rf(n0.count(re(e)-1,e),t,2)}function ia(e){var t=e.getUTCDay();return t>=4||0===t?n3(e):n3.ceil(e)}function io(e,t){return e=ia(e),rf(n3.count(re(e),e)+(4===re(e).getUTCDay()),t,2)}function is(e){return e.getUTCDay()}function il(e,t){return rf(n1.count(re(e)-1,e),t,2)}function iu(e,t){return rf(e.getUTCFullYear()%100,t,2)}function ic(e,t){return rf((e=ia(e)).getUTCFullYear()%100,t,2)}function id(e,t){return rf(e.getUTCFullYear()%1e4,t,4)}function ih(e,t){var n=e.getUTCDay();return rf((e=n>=4||0===n?n3(e):n3.ceil(e)).getUTCFullYear()%1e4,t,4)}function ip(){return"+0000"}function ig(){return"%"}function im(e){return+e}function iy(e){return Math.floor(+e/1e3)}function ib(e){return new Date(e)}function iv(e){return e instanceof Date?+e:+new Date(+e)}function ix(){return no.apply((function e(t,n,r,i,a,o,s,l,u,c){var d=nP(),h=d.invert,f=d.domain,p=c(".%L"),g=c(":%S"),m=c("%I:%M"),y=c("%I %p"),b=c("%a %d"),v=c("%b %d"),x=c("%B"),k=c("%Y");function w(e){return(u(e)<e?p:l(e)<e?g:s(e)<e?m:o(e)<e?y:i(e)<e?a(e)<e?b:v:r(e)<e?x:k)(e)}return d.invert=function(e){return new Date(h(e))},d.domain=function(e){return arguments.length?f(Array.from(e,iv)):f().map(ib)},d.ticks=function(e){var n=f();return t(n[0],n[n.length-1],null==e?10:e)},d.tickFormat=function(e,t){return null==t?w:c(t)},d.nice=function(e){var t,r,i,a,o,s,l,u=f();return e&&"function"==typeof e.range||(e=n(u[0],u[u.length-1],null==e?10:e)),e?f((t=u,r=e,t=t.slice(),a=0,o=t.length-1,s=t[a],(l=t[o])<s&&(i=a,a=o,o=i,i=s,s=l,l=i),t[a]=r.floor(s),t[o]=r.ceil(l),t)):d},d.copy=function(){return nN(d,e(t,n,r,i,a,o,s,l,u,c))},d})(ri,ra,n4,n9,nG,nU,nB,nD,nj,eu).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}eu=(el=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,u=rg(i),c=rm(i),d=rg(a),h=rm(a),f=rg(o),p=rm(o),g=rg(s),m=rm(s),y=rg(l),b=rm(l),v={a:function(e){return o[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:rj,e:rj,f:rU,g:rJ,G:r1,H:rD,I:rF,j:rB,L:rz,m:rW,M:rH,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:im,s:iy,S:rq,u:rG,U:rV,V:rY,w:rX,W:rQ,x:null,X:null,y:rK,Y:r0,Z:r2,"%":ig},x={a:function(e){return o[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:r5,e:r5,f:r7,g:ic,G:ih,H:r3,I:r6,j:r8,L:r9,m:r4,M:ie,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:im,s:iy,S:it,u:ir,U:ii,V:io,w:is,W:il,x:null,X:null,y:iu,Y:id,Z:ip,"%":ig},k={a:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=b.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return S(e,t,n,r)},d:rA,e:rA,f:rL,g:r_,G:rw,H:rT,I:rT,j:rE,L:rP,m:rM,M:rR,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c.get(r[0].toLowerCase()),n+r[0].length):-1},q:rC,Q:rO,s:r$,S:rN,u:rb,U:rv,V:rx,w:ry,W:rk,x:function(e,t,r){return S(e,n,t,r)},X:function(e,t,n){return S(e,r,t,n)},y:r_,Y:rw,Z:rS,"%":rI};function w(e,t){return function(n){var r,i,a,o=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===e.charCodeAt(s)&&(o.push(e.slice(l,s)),null!=(i=ru[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(a=t[r])&&(r=a(n,i)),o.push(r),l=s+1);return o.push(e.slice(l,s)),o.join("")}}function _(e,t){return function(n){var r,i,a=rl(1900,void 0,1);if(S(a,e,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(!t||"Z"in a||(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(r=(i=(r=rs(rl(a.y,0,1))).getUTCDay())>4||0===i?n1.ceil(r):n1(r),r=nW.offset(r,(a.V-1)*7),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(r=(i=(r=ro(rl(a.y,0,1))).getDay())>4||0===i?nV.ceil(r):nV(r),r=nU.offset(r,(a.V-1)*7),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?rs(rl(a.y,0,1)).getUTCDay():ro(rl(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,rs(a)):ro(a)}}function S(e,t,n,r){for(var i,a,o=0,s=t.length,l=n.length;o<s;){if(r>=l)return -1;if(37===(i=t.charCodeAt(o++))){if(!(a=k[(i=t.charAt(o++))in ru?t.charAt(o++):i])||(r=a(e,n,r))<0)return -1}else if(i!=n.charCodeAt(r++))return -1}return r}return v.x=w(n,v),v.X=w(r,v),v.c=w(t,v),x.x=w(n,x),x.X=w(r,x),x.c=w(t,x),{format:function(e){var t=w(e+="",v);return t.toString=function(){return e},t},parse:function(e){var t=_(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=w(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=_(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
141ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,el.parse,el.utcFormat,el.utcParse;var ik=function(e){for(var t=e.length/6|0,n=Array(t),r=0;r<t;)n[r]="#"+e.slice(6*r,6*++r);return n}("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function iw(e){return"string"==typeof e?new Q([[document.querySelector(e)]],[document.documentElement]):new Q([[e]],X)}function i_(e){return function(){return e}}let iS=Math.abs,iC=Math.atan2,iM=Math.cos,iA=Math.max,iE=Math.min,iT=Math.sin,iR=Math.sqrt,iN=Math.PI,iP=iN/2,iL=2*iN;function iI(e){return e>=1?iP:e<=-1?-iP:Math.asin(e)}let iO=Math.PI,i$=2*iO,ij=i$-1e-6;function iD(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class iF{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?iD:function(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return iD;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,(i=+i)<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,l=r-t,u=a-e,c=o-t,d=u*u+c*c;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(d>1e-6){if(Math.abs(c*s-l*u)>1e-6&&i){let h=n-a,f=r-o,p=s*s+l*l,g=Math.sqrt(p),m=Math.sqrt(d),y=i*Math.tan((iO-Math.acos((p+d-(h*h+f*f))/(2*g*m)))/2),b=y/m,v=y/g;Math.abs(b-1)>1e-6&&this._append`L${e+b*u},${t+b*c}`,this._append`A${i},${i},0,0,${+(c*h>u*f)},${this._x1=e+v*s},${this._y1=t+v*l}`}else this._append`L${this._x1=e},${this._y1=t}`}}arc(e,t,n,r,i,a){if(e=+e,t=+t,a=!!a,(n=+n)<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),l=e+o,u=t+s,c=1^a,d=a?r-i:i-r;null===this._x1?this._append`M${l},${u}`:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-u)>1e-6)&&this._append`L${l},${u}`,n&&(d<0&&(d=d%i$+i$),d>ij?this._append`A${n},${n},0,1,${c},${e-o},${t-s}A${n},${n},0,1,${c},${this._x1=l},${this._y1=u}`:d>1e-6&&this._append`A${n},${n},0,${+(d>=iO)},${c},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function iB(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new iF(t)}function iz(e){return e.innerRadius}function iU(e){return e.outerRadius}function iW(e){return e.startAngle}function iH(e){return e.endAngle}function iq(e){return e&&e.padAngle}function iG(e,t,n,r,i,a,o){var s=e-n,l=t-r,u=(o?a:-a)/iR(s*s+l*l),c=u*l,d=-u*s,h=e+c,f=t+d,p=n+c,g=r+d,m=(h+p)/2,y=(f+g)/2,b=p-h,v=g-f,x=b*b+v*v,k=i-a,w=h*g-p*f,_=(v<0?-1:1)*iR(iA(0,k*k*x-w*w)),S=(w*v-b*_)/x,C=(-w*b-v*_)/x,M=(w*v+b*_)/x,A=(-w*b+v*_)/x,E=S-m,T=C-y,R=M-m,N=A-y;return E*E+T*T>R*R+N*N&&(S=M,C=A),{cx:S,cy:C,x01:-c,y01:-d,x11:S*(i/k-1),y11:C*(i/k-1)}}function iV(){var e=iz,t=iU,n=i_(0),r=null,i=iW,a=iH,o=iq,s=null,l=iB(u);function u(){var u,c,d=+e.apply(this,arguments),h=+t.apply(this,arguments),f=i.apply(this,arguments)-iP,p=a.apply(this,arguments)-iP,g=iS(p-f),m=p>f;if(s||(s=u=l()),h<d&&(c=h,h=d,d=c),h>1e-12){if(g>iL-1e-12)s.moveTo(h*iM(f),h*iT(f)),s.arc(0,0,h,f,p,!m),d>1e-12&&(s.moveTo(d*iM(p),d*iT(p)),s.arc(0,0,d,p,f,m));else{var y,b,v=f,x=p,k=f,w=p,_=g,S=g,C=o.apply(this,arguments)/2,M=C>1e-12&&(r?+r.apply(this,arguments):iR(d*d+h*h)),A=iE(iS(h-d)/2,+n.apply(this,arguments)),E=A,T=A;if(M>1e-12){var R=iI(M/d*iT(C)),N=iI(M/h*iT(C));(_-=2*R)>1e-12?(R*=m?1:-1,k+=R,w-=R):(_=0,k=w=(f+p)/2),(S-=2*N)>1e-12?(N*=m?1:-1,v+=N,x-=N):(S=0,v=x=(f+p)/2)}var P=h*iM(v),L=h*iT(v),I=d*iM(w),O=d*iT(w);if(A>1e-12){var $,j=h*iM(x),D=h*iT(x),F=d*iM(k),B=d*iT(k);if(g<iN){if($=function(e,t,n,r,i,a,o,s){var l=n-e,u=r-t,c=o-i,d=s-a,h=d*l-c*u;if(!(h*h<1e-12))return h=(c*(t-a)-d*(e-i))/h,[e+h*l,t+h*u]}(P,L,F,B,j,D,I,O)){var z,U=P-$[0],W=L-$[1],H=j-$[0],q=D-$[1],G=1/iT(((z=(U*H+W*q)/(iR(U*U+W*W)*iR(H*H+q*q)))>1?0:z<-1?iN:Math.acos(z))/2),V=iR($[0]*$[0]+$[1]*$[1]);E=iE(A,(d-V)/(G-1)),T=iE(A,(h-V)/(G+1))}else E=T=0}}S>1e-12?T>1e-12?(y=iG(F,B,P,L,h,T,m),b=iG(j,D,I,O,h,T,m),s.moveTo(y.cx+y.x01,y.cy+y.y01),T<A?s.arc(y.cx,y.cy,T,iC(y.y01,y.x01),iC(b.y01,b.x01),!m):(s.arc(y.
vendor: 7,931 bytes, line 141
141cx,y.cy,T,iC(y.y01,y.x01),iC(y.y11,y.x11),!m),s.arc(0,0,h,iC(y.cy+y.y11,y.cx+y.x11),iC(b.cy+b.y11,b.cx+b.x11),!m),s.arc(b.cx,b.cy,T,iC(b.y11,b.x11),iC(b.y01,b.x01),!m))):(s.moveTo(P,L),s.arc(0,0,h,v,x,!m)):s.moveTo(P,L),d>1e-12&&_>1e-12?E>1e-12?(y=iG(I,O,j,D,d,-E,m),b=iG(P,L,F,B,d,-E,m),s.lineTo(y.cx+y.x01,y.cy+y.y01),E<A?s.arc(y.cx,y.cy,E,iC(y.y01,y.x01),iC(b.y01,b.x01),!m):(s.arc(y.cx,y.cy,E,iC(y.y01,y.x01),iC(y.y11,y.x11),!m),s.arc(0,0,d,iC(y.cy+y.y11,y.cx+y.x11),iC(b.cy+b.y11,b.cx+b.x11),m),s.arc(b.cx,b.cy,E,iC(b.y11,b.x11),iC(b.y01,b.x01),!m))):s.arc(0,0,d,w,k,m):s.lineTo(I,O)}}else s.moveTo(0,0);if(s.closePath(),u)return s=null,u+""||null}return u.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-iN/2;return[iM(r)*n,iT(r)*n]},u.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:i_(+t),u):e},u.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:i_(+e),u):t},u.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:i_(+e),u):n},u.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:i_(+e),u):r},u.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:i_(+e),u):i},u.endAngle=function(e){return arguments.length?(a="function"==typeof e?e:i_(+e),u):a},u.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:i_(+e),u):o},u.context=function(e){return arguments.length?(s=null==e?null:e,u):s},u}function iZ(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function iY(e){this._context=e}function iX(e){return new iY(e)}function iQ(e){return e[0]}function iK(e){return e[1]}function iJ(e,t){var n=i_(!0),r=null,i=iX,a=null,o=iB(s);function s(s){var l,u,c,d=(s=iZ(s)).length,h=!1;for(null==r&&(a=i(c=o())),l=0;l<=d;++l)!(l<d&&n(u=s[l],l,s))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(u,l,s),+t(u,l,s));if(c)return a=null,c+""||null}return e="function"==typeof e?e:void 0===e?iQ:i_(e),t="function"==typeof t?t:void 0===t?iK:i_(t),s.x=function(t){return arguments.length?(e="function"==typeof t?t:i_(+t),s):e},s.y=function(e){return arguments.length?(t="function"==typeof e?e:i_(+e),s):t},s.defined=function(e){return arguments.length?(n="function"==typeof e?e:i_(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,null!=r&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(null==e?r=a=null:a=i(r=e),s):r},s}function i0(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function i1(e){return e}function i2(){var e=i1,t=i0,n=null,r=i_(0),i=i_(iL),a=i_(0);function o(o){var s,l,u,c,d,h=(o=iZ(o)).length,f=0,p=Array(h),g=Array(h),m=+r.apply(this,arguments),y=Math.min(iL,Math.max(-iL,i.apply(this,arguments)-m)),b=Math.min(Math.abs(y)/h,a.apply(this,arguments)),v=b*(y<0?-1:1);for(s=0;s<h;++s)(d=g[p[s]=s]=+e(o[s],s,o))>0&&(f+=d);for(null!=t?p.sort(function(e,n){return t(g[e],g[n])}):null!=n&&p.sort(function(e,t){return n(o[e],o[t])}),s=0,u=f?(y-h*v)/f:0;s<h;++s,m=c)c=m+((d=g[l=p[s]])>0?d*u:0)+v,g[l]={data:o[l],index:s,value:d,startAngle:m,endAngle:c,padAngle:b};return g}return o.value=function(t){return arguments.length?(e="function"==typeof t?t:i_(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:i_(+e),o):r},o.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:i_(+e),o):i},o.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:i_(+e),o):a},o}function i5(){}function i3(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function i6(e){this._context=e}function i8(e){return new i6(e)}function i9(e){this._context=e}function i7(e){return new i9(e)}function i4(e){this._context=e}function ae(e){return new i4(e)}iF.prototype,Array.prototype.slice,iY.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},i6.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:i3(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:i3(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},i9.prototype={areaStart:i5,areaEnd:i5,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:i3(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},i4.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:i3(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};class at{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function an(e){return new at(e,!0)}function ar(e){return new at(e,!1)}function ai(e,t){this._basis=new i6(e),this._beta=t}ai.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],a=t[0],o=e[n]-i,s=t[n]-a,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*o),this._beta*t[l]+(1-this._beta)*(a+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var aa=function e(t){function n(e){return 1===t?new i6(e):new ai(e,t)}return n.beta=function(t){return e(+t)},n}(.85);
vendor: 4,380 bytes, line 141
141function ao(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function as(e,t){this._context=e,this._k=(1-t)/6}as.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ao(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:ao(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var al=function e(t){function n(e){return new as(e,t)}return n.tension=function(t){return e(+t)},n}(0);function au(e,t){this._context=e,this._k=(1-t)/6}au.prototype={areaStart:i5,areaEnd:i5,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:ao(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ac=function e(t){function n(e){return new au(e,t)}return n.tension=function(t){return e(+t)},n}(0);function ad(e,t){this._context=e,this._k=(1-t)/6}ad.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ao(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ah=function e(t){function n(e){return new ad(e,t)}return n.tension=function(t){return e(+t)},n}(0);function af(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>1e-12){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>1e-12){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*u+e._x1*e._l23_2a-t*e._l12_2a)/c,o=(o*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function ap(e,t){this._context=e,this._alpha=t}ap.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:af(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ag=function e(t){function n(e){return t?new ap(e,t):new as(e,0)}
vendor: 7,327 bytes, line 141
141return n.alpha=function(t){return e(+t)},n}(.5);function am(e,t){this._context=e,this._alpha=t}am.prototype={areaStart:i5,areaEnd:i5,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:af(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ay=function e(t){function n(e){return t?new am(e,t):new au(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function ab(e,t){this._context=e,this._alpha=t}ab.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:af(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var av=function e(t){function n(e){return t?new ab(e,t):new ad(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function ax(e){this._context=e}function ak(e){return new ax(e)}function aw(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0);return((a<0?-1:1)+(o<0?-1:1))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs((a*i+o*r)/(r+i)))||0}function a_(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function aS(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function aC(e){this._context=e}function aM(e){this._context=new aA(e)}function aA(e){this._context=e}function aE(e){return new aC(e)}function aT(e){return new aM(e)}function aR(e){this._context=e}function aN(e){var t,n,r=e.length-1,i=Array(r),a=Array(r),o=Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(t=0,a[r-1]=(e[r]+i[r-1])/2;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function aP(e){return new aR(e)}function aL(e,t){this._context=e,this._t=t}function aI(e){return new aL(e,.5)}function aO(e){return new aL(e,0)}function a$(e){return new aL(e,1)}function aj(e,t,n){this.k=e,this.x=t,this.y=n}ax.prototype={areaStart:i5,areaEnd:i5,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},aC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:aS(this,this._t0,a_(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,aS(this,a_(this,n=aw(this,e,t)),n);break;default:aS(this,this._t0,n=aw(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(aM.prototype=Object.create(aC.prototype)).point=function(e,t){aC.prototype.point.call(this,t,e)},aA.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}},aR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n){if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=aN(e),i=aN(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o])}(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},aL.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}},aj.prototype={constructor:aj,scale:function(e){return 1===e?this:new aj(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new aj(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},new aj(1,0,0),aj.prototype},7841:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return eg}});
141let i=Object.entries,a=Object.setPrototypeOf,o=Object.isFrozen,s=Object.getPrototypeOf,l=Object.getOwnPropertyDescriptor,u=Object.freeze,c=Object.seal,d=Object.create,h="undefined"!=typeof Reflect&&Reflect,f=h.apply,p=h.construct;u||(u=function(e){return e}),c||(c=function(e){return e}),f||(f=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)}),p||(p=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});let g=O(Array.prototype.forEach),m=O(Array.prototype.lastIndexOf),y=O(Array.prototype.pop),b=O(Array.prototype.push),v=O(Array.prototype.splice),x=Array.isArray,k=O(String.prototype.toLowerCase),w=O(String.prototype.toString),_=O(String.prototype.match),S=O(String.prototype.replace),C=O(String.prototype.indexOf),M=O(String.prototype.trim),A=O(Number.prototype.toString),E=O(Boolean.prototype.toString),T="undefined"==typeof BigInt?null:O(BigInt.prototype.toString),R="undefined"==typeof Symbol?null:O(Symbol.prototype.toString),N=O(Object.prototype.hasOwnProperty),P=O(Object.prototype.toString),L=O(RegExp.prototype.test),I=(ep=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return p(ep,t)});function O(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return f(e,t,r)}}function $(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:k;if(a&&a(e,null),!x(t))return e;let r=t.length;for(;r--;){let i=t[r];if("string"==typeof i){let e=n(i);e!==i&&(o(t)||(t[r]=e),i=e)}e[i]=!0}return e}function j(e){let t=d(null);for(let a of i(e)){var n=function(e){if(Array.isArray(e))return e}(a)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],l=!0,u=!1;try{for(a=(n=n.call(e)).next;!(l=(r=a.call(n)).done)&&(s.push(r.value),2!==s.length);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}(a,2)||function(e,t){if(e){if("string"==typeof e)return r(e,2);var n=({}).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)?r(e,2):void 0}}(a,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();let i=n[0],o=n[1];N(e,i)&&(x(o)?t[i]=function(e){for(let t=0;t<e.length;t++)N(e,t)||(e[t]=null);return e}(o):o&&"object"==typeof o&&o.constructor===Object?t[i]=j(o):t[i]=o)}return t}function D(e,t){for(;null!==e;){let n=l(e,t);if(n){if(n.get)return O(n.get);if("function"==typeof n.value)return O(n.value)}e=s(e)}return function(){return null}}let F=u(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),B=u(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),z=u(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),U=u(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),W=u(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),H=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),q=u(["#text"]),G=u(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
141spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),V=u(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Z=u(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Y=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),X=c(/{{[\w\W]*|^[\w\W]*}}/g),Q=c(/<%[\w\W]*|^[\w\W]*%>/g),K=c(/\${[\w\W]*/g),J=c(/^data-[\-\w.\u00B7-\uFFFF]+$/),ee=c(/^aria-[\-\w]+$/),et=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),en=c(/^(?:\w+script|data):/i),er=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ei=c(/^html$/i),ea=c(/^[a-z][.\w]*(-[.\w]+)+$/i),eo=c(/<[/\w!]/g),es=c(/<[/\w]/g),el=c(/<\/no(script|embed|frames)/i),eu=c(/\/>/i),ec={element:1,text:3,processingInstruction:7,comment:8,document:9,documentFragment:11},ed=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},eh=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ef=function(e,t,n,r){return N(e,t)&&x(e[t])?$(r.base?j(r.base):{},e[t],r.transform):n};var ep,eg=function e(){let t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,a=t=>e(t);if(a.version="3.4.13",a.removed=[],!r||!r.document||r.document.nodeType!==ec.document||!r.Element)return a.isSupported=!1,a;let o=r.document,s=o,l=s.currentScript;r.DocumentFragment;let h=r.HTMLTemplateElement,f=r.Node,p=r.Element,O=r.NodeFilter;void 0===r.NamedNodeMap&&(r.NamedNodeMap||r.MozNamedAttrMap),r.HTMLFormElement;let ep=r.DOMParser,eg=r.trustedTypes,em=p.prototype,ey=D(em,"cloneNode"),eb=D(em,"remove"),ev=D(em,"nextSibling"),ex=D(em,"childNodes"),ek=D(em,"parentNode"),ew=D(em,"shadowRoot"),e_=D(em,"attributes"),eS=f&&f.prototype?D(f.prototype,"nodeType"):null,eC=f&&f.prototype?D(f.prototype,"nodeName"):null,eM=f&&f.prototype?D(f.prototype,"ownerDocument"):null;if("function"==typeof h){let e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let eA="",eE=!1,eT=0,eR=function(){if(eT>0)throw I('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},eN=function(e){eR(),eT++;try{return t.createHTML(e)}finally{eT--}},eP=function(e){eR(),eT++;try{return t.createScriptURL(e)}finally{eT--}},eL=o,eI=eL.implementation,eO=eL.createNodeIterator,e$=eL.createDocumentFragment,ej=eL.getElementsByTagName,eD=s.importNode,eF=eh();a.isSupported="function"==typeof i&&"function"==typeof ek&&eI&&void 0!==eI.createHTMLDocument;let eB=et,ez=null,eU=$({},[...F,...B,...z,...W,...q]),eW=null,eH=$({},[...G,...V,...Z,...Y]),eq=Object.seal(d(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}}
141)),eG=null,eV=null,eZ=Object.seal(d(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),eY=!0,eX=!0,eQ=!1,eK=!0,eJ=!1,e0=!0,e1=!1,e2=!1,e5=null,e3=null,e6=!1,e8=!1,e9=!1,e7=!1,e4=!0,te=!1,tt="user-content-",tn=!0,tr=!1,ti={},ta=null,to=$({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),ts=null,tl=$({},["audio","video","img","source","image","track"]),tu=null,tc=$({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),td="http://www.w3.org/1998/Math/MathML",th="http://www.w3.org/2000/svg",tf="http://www.w3.org/1999/xhtml",tp=tf,tg=!1,tm=null,ty=$({},[td,th,tf],w),tb=u(["mi","mo","mn","ms","mtext"]),tv=$({},tb),tx=u(["annotation-xml"]),tk=$({},tx),tw=$({},["title","style","font","a","script"]),t_=null,tS=["application/xhtml+xml","text/html"],tC=null,tM=null,tA=o.createElement("form"),tE=function(e){return e instanceof RegExp||e instanceof Function},tT=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(tM&&tM===e)return;e&&"object"==typeof e||(e={}),e=j(e),tC="application/xhtml+xml"===(t_=-1===tS.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?w:k,ez=ef(e,"ALLOWED_TAGS",eU,{transform:tC}),eW=ef(e,"ALLOWED_ATTR",eH,{transform:tC}),tm=ef(e,"ALLOWED_NAMESPACES",ty,{transform:w}),tu=ef(e,"ADD_URI_SAFE_ATTR",tc,{transform:tC,base:tc}),ts=ef(e,"ADD_DATA_URI_TAGS",tl,{transform:tC,base:tl}),ta=ef(e,"FORBID_CONTENTS",to,{transform:tC}),eG=ef(e,"FORBID_TAGS",j({}),{transform:tC}),eV=ef(e,"FORBID_ATTR",j({}),{transform:tC}),ti=!!N(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?j(e.USE_PROFILES):e.USE_PROFILES),eY=!1!==e.ALLOW_ARIA_ATTR,eX=!1!==e.ALLOW_DATA_ATTR,eQ=e.ALLOW_UNKNOWN_PROTOCOLS||!1,eK=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,eJ=e.SAFE_FOR_TEMPLATES||!1,e0=!1!==e.SAFE_FOR_XML,e1=e.WHOLE_DOCUMENT||!1,e8=e.RETURN_DOM||!1,e9=e.RETURN_DOM_FRAGMENT||!1,e7=e.RETURN_TRUSTED_TYPE||!1,e6=e.FORCE_BODY||!1,e4=!1!==e.SANITIZE_DOM,te=e.SANITIZE_NAMED_PROPS||!1,tn=!1!==e.KEEP_CONTENT,tr=e.IN_PLACE||!1,eB=!function(e){try{return L(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?et:e.ALLOWED_URI_REGEXP,tp="string"==typeof e.NAMESPACE?e.NAMESPACE:tf,tv=N(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?j(e.MATHML_TEXT_INTEGRATION_POINTS):$({},tb),tk=N(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?j(e.HTML_INTEGRATION_POINTS):$({},tx);let r=N(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?j(e.CUSTOM_ELEMENT_HANDLING):d(null);if(eq=d(null),N(r,"tagNameCheck")&&tE(r.tagNameCheck)&&(eq.tagNameCheck=r.tagNameCheck),N(r,"attributeNameCheck")&&tE(r.attributeNameCheck)&&(eq.attributeNameCheck=r.attributeNameCheck),N(r,"allowCustomizedBuiltInElements")&&"boolean"==typeof r.allowCustomizedBuiltInElements&&(eq.allowCustomizedBuiltInElements=r.allowCustomizedBuiltInElements),c(eq),eJ&&(eX=!1),e9&&(e8=!0),ti&&(ez=$({},q),eW=d(null),!0===ti.html&&($(ez,F),$(eW,G)),!0===ti.svg&&($(ez,B),$(eW,V),$(eW,Y)),!0===ti.svgFilters&&($(ez,z),$(eW,V),$(eW,Y)),!0===ti.mathMl&&($(ez,W),$(eW,Z),$(eW,Y))),eZ.tagCheck=null,eZ.attributeCheck=null,N(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?eZ.tagCheck=e.ADD_TAGS:x(e.ADD_TAGS)&&(ez===eU&&(ez=j(ez)),$(ez,e.ADD_TAGS,tC))),N(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?eZ.attributeCheck=e.ADD_ATTR:x(e.ADD_ATTR)&&(eW===eH&&(eW=j(eW)),$(eW,e.ADD_ATTR,tC))),N(e,"ADD_URI_SAFE_ATTR")&&x(e.ADD_URI_SAFE_ATTR)&&$(tu,e.ADD_URI_SAFE_ATTR,tC),N(e,"FORBID_CONTENTS")&&x(e.FORBID_CONTENTS)&&(ta===to&&(ta=j(ta)),$(ta,e.FORBID_CONTENTS,tC)),N(e,"ADD_FORBID_CONTENTS")&&x(e.ADD_FORBID_CONTENTS)&&(ta===to&&(ta=j(ta)),$(ta,e.ADD_FORBID_CONTENTS,tC)),tn&&(ez["#text"]=!0),e1&&$(ez,["html","head","body"]),ez.table&&($(ez,["tbody"]),delete eG.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw I('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw I('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let n=t;t=e.TRUSTED_TYPES_POLICY;try{eA=eN("")}catch(e){throw t=n,e}}else null===e.TRUSTED_TYPES_POLICY?(t=void 0,eA=""):(void 0===t&&(eE||
141(n=ed(eg,l),eE=!0),t=n),t&&"string"==typeof eA&&(eA=eN("")));u&&u(e),tM=e},tR=$({},[...B,...z,...U]),tN=$({},[...W,...H]),tP=function(e){var t,n,r;let i=ek(e);i&&i.tagName||(i={namespaceURI:tp,tagName:"template"});let a=k(e.tagName),o=k(i.tagName);return!!tm[e.namespaceURI]&&(e.namespaceURI===th?(t=i).namespaceURI===tf?"svg"===a:t.namespaceURI===td?"svg"===a&&("annotation-xml"===o||tv[o]):!!tR[a]:e.namespaceURI===td?(n=i).namespaceURI===tf?"math"===a:n.namespaceURI===th?"math"===a&&tk[o]:!!tN[a]:e.namespaceURI===tf?((r=i).namespaceURI!==th||!!tk[o])&&(r.namespaceURI!==td||!!tv[o])&&!tN[a]&&(tw[a]||!tR[a]):"application/xhtml+xml"===t_&&!!tm[e.namespaceURI])},tL=function(e){b(a.removed,{element:e});try{ek(e).removeChild(e)}catch(t){if(eb(e),!ek(e))throw I("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},tI=function(e){tj(e);let t=ex(e);if(t){let e=[];g(t,t=>{b(e,t)}),g(e,e=>{try{eb(e)}catch(e){}})}let n=e_(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;if("string"==typeof i)try{e.removeAttribute(i)}catch(e){}}},tO=function(e,t){try{b(a.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){b(a.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e){if(e8||e9)try{tL(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}}},t$=function(e){let t=e_(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;if("string"==typeof i&&!eW[tC(i)])try{e.removeAttribute(i)}catch(e){}}},tj=function(e){let t=[e];for(;t.length>0;){let e=t.pop();(eS?eS(e):e.nodeType)===ec.element&&t$(e);let n=ex(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},tD=function(e){if(!e0)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=eS?eS(e):e.nodeType;if(n===ec.processingInstruction||n===ec.comment&&L(es,e.data)){try{eb(e)}catch(e){}continue}if(n===ec.element){let t=tC(eC?eC(e):e.nodeName);try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&"label"!==t&&"output"!==t&&e.removeAttribute("for")}catch(e){}}let r=ex(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},tF=function(e){let n=null,r=null;if(e6)e="<remove></remove>"+e;else{let t=_(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===t_&&tp===tf&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let i=t?eN(e):e;if(tp===tf)try{n=new ep().parseFromString(i,t_)}catch(e){}if(!n||!n.documentElement){n=eI.createDocument(tp,"template",null);try{n.documentElement.innerHTML=tg?eA:i}catch(e){}}let a=n.body||n.documentElement;return(e&&r&&a.insertBefore(o.createTextNode(r),a.childNodes[0]||null),tp===tf)?ej.call(n,e1?"html":"body")[0]:e1?n.documentElement:a},tB=function(e){let t=eM?eM(e):e.ownerDocument;return eO.call(t||e,e,O.SHOW_ELEMENT|O.SHOW_COMMENT|O.SHOW_TEXT|O.SHOW_PROCESSING_INSTRUCTION|O.SHOW_CDATA_SECTION,null)},tz=function(e){return e=S(e,X," "),e=S(e,Q," "),e=S(e,K," ")},tU=function(e){var t;e.normalize();let n=eM?eM(e):e.ownerDocument,r=eO.call(n||e,e,O.SHOW_TEXT|O.SHOW_COMMENT|O.SHOW_CDATA_SECTION|O.SHOW_PROCESSING_INSTRUCTION,null),i=r.nextNode();for(;i;)i.data=tz(i.data),i=r.nextNode();let a=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");a&&g(a,e=>{tH(e.content)&&tU(e.content)})},tW=function(e){let t=eC?eC(e):null;return"string"==typeof t&&"form"===tC(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==e_(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==eS(e)||e.childNodes!==ex(e))},tH=function(e){if(!eS||"object"!=typeof e||null===e)return!1;try{return eS(e)===ec.documentFragment}catch(e){return!1}},tq=function(e){if(!eS||"object"!=typeof e||null===e)return!1;try{return"number"==typeof eS(e)}catch(e){return!1}};function tG(e,t,n){0!==e.length&&g(e,e=>{e.call(a,t,n,tM)})}let tV=function(e,t,n){if(!eG[t]&&tK(t)&&(eq.tagNameCheck instanceof RegExp&&L(eq.tagNameCheck,t)||eq.tagNameCheck instanceof Function&&eq.tagNameCheck(t)))return!1;if(tn&&!ta[t]){let t=ek(e),r=ex(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?ey(r[a],!0):r[a];t.insertBefore(i,ev(e))}}}return tL(e),!0},tZ=function(e,t,n,r){return 0===e.length?t:t===n||t===r?j(t):t},tY=function(e,t){if(tG(eF.beforeSanitizeElements,e,null),e!==t&&null===ek(e))return tr&&tj(e),
141!0;if(tW(e))return tL(e),!0;let n=tC(eC?eC(e):e.nodeName);if(ez=tZ(eF.uponSanitizeElement,ez,eU,e5),tG(eF.uponSanitizeElement,e,{tagName:n,allowedTags:ez}),e!==t&&null===ek(e))return tr&&tj(e),!0;if(e0&&e.hasChildNodes()&&!tq(e.firstElementChild)&&L(eo,e.textContent)&&L(eo,e.innerHTML)||e0&&e.namespaceURI===tf&&"style"===n&&tq(e.firstElementChild)||e.nodeType===ec.processingInstruction||e0&&e.nodeType===ec.comment&&L(es,e.data))return tL(e),!0;if(eG[n]||!(eZ.tagCheck instanceof Function&&eZ.tagCheck(n))&&!ez[n]){let r=tV(e,n,t);return!1===r&&tG(eF.afterSanitizeElements,e,null),r}if((eS?eS(e):e.nodeType)===ec.element&&!tP(e)||("noscript"===n||"noembed"===n||"noframes"===n)&&L(el,e.innerHTML))return tL(e),!0;if(eJ&&e.nodeType===ec.text){let t=tz(e.textContent);e.textContent!==t&&(b(a.removed,{element:e.cloneNode()}),e.textContent=t)}return tG(eF.afterSanitizeElements,e,null),!1},tX=function(e,t,n){if(eV[t]||e0&&"patchsrc"===t||e0&&"for"===t&&"label"!==e&&"output"!==e||e4&&("id"===t||"name"===t)&&(n in o||n in tA))return!1;let r=eW[t]||eZ.attributeCheck instanceof Function&&eZ.attributeCheck(t,e);if(eX&&L(J,t));else if(eY&&L(ee,t));else if(r){if(tu[t]);else if(L(eB,S(n,er,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===C(n,"data:")&&ts[e]);else if(eQ&&!L(en,S(n,er,"")));else if(n)return!1}else if(!(tK(e)&&(eq.tagNameCheck instanceof RegExp&&L(eq.tagNameCheck,e)||eq.tagNameCheck instanceof Function&&eq.tagNameCheck(e))&&(eq.attributeNameCheck instanceof RegExp&&L(eq.attributeNameCheck,t)||eq.attributeNameCheck instanceof Function&&eq.attributeNameCheck(t,e))||"is"===t&&eq.allowCustomizedBuiltInElements&&(eq.tagNameCheck instanceof RegExp&&L(eq.tagNameCheck,n)||eq.tagNameCheck instanceof Function&&eq.tagNameCheck(n))))return!1;return!0},tQ=$({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),tK=function(e){return!tQ[k(e)]&&L(ea,e)},tJ=function(e,n,r,i){if(t&&"object"==typeof eg&&"function"==typeof eg.getAttributeType&&!r)switch(eg.getAttributeType(e,n)){case"TrustedHTML":return eN(i);case"TrustedScriptURL":return eP(i)}return i},t0=function(e,t,n,r){try{n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),tW(e)?tL(e):y(a.removed)}catch(n){tO(t,e)}},t1=function(e){tG(eF.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||tW(e))return;let n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:eW=tZ(eF.uponSanitizeAttribute,eW,eH,e3),forceKeepAttr:void 0},r=t.length,i=tC(e.nodeName);for(;r--;){let a=t[r],o=a.name,s=a.namespaceURI,l=a.value,u=tC(o),c="value"===o?l:M(l);if(n.attrName=u,n.attrValue=c,n.keepAttr=!0,n.forceKeepAttr=void 0,tG(eF.uponSanitizeAttribute,e,n),c=n.attrValue,te&&("id"===u||"name"===u)&&0!==C(c,tt)&&(tO(o,e),c=tt+c),e0&&L(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,c)||"attributename"===u&&_(c,"href")){tO(o,e);continue}if(!n.forceKeepAttr){if(!n.keepAttr||!eK&&L(eu,c)||(eJ&&(c=tz(c)),!tX(i,u,c))){tO(o,e);continue}(c=tJ(i,u,s,c))!==l&&t0(e,o,s,c)}}tG(eF.afterSanitizeAttributes,e,null)},t2=function(e){let t=null,n=tB(e);for(tG(eF.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(tG(eF.uponSanitizeShadowNode,t,null),tY(t,e),t1(t),tH(t.content)&&t2(t.content),(eS?eS(t):t.nodeType)===ec.element){let e=ew(t);tH(e)&&(t5(e),t2(e))}tG(eF.afterSanitizeShadowDOM,e,null)},t5=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){t2(e.shadow);continue}let n=e.node,r=(eS?eS(n):n.nodeType)===ec.element,i=ex(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=eC?eC(n):null;if("string"==typeof e&&"template"===tC(e)){let e=n.content;tH(e)&&t.push({node:e,shadow:null})}}if(r){let e=ew(n);tH(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return a.sanitize=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,o=null,l=null;if((tg=!e)&&(e="<!-->"),"string"!=typeof e&&!tq(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return A(e);case"boolean":return E(e);case"bigint":return T?T(e):"0";case"symbol":return R?R(e):"Symbol()";case"undefined":default:return P(e);case"function":case"object":{if(null===e)return P(e);let t=D(e,"toString");if("function"==typeof t){let n=t(e);return"string"==typeof n?n:P(n)}return P(e)}}}(e)))throw I("dirty is not a string, aborting");if(!a.isSupported)return e;e2?(ez=e5,eW=e3):tT(n),(eF.uponSanitizeElement.length>0||eF.uponSanitizeAttribute.length>0)&&(ez=j(ez)),eF.uponSanitizeAttribute.length>0&&(eW=j(eW)),a.removed=[];let u=tr&&"string"!=typeof e&&tq(e);if(u){tD(e);let t=eC?eC(e):e.nodeName;if("string"==typeof t){let n=tC(t);if(!ez[n]||eG[n])throw tI(e),I("root node is forbidden and cannot be sanitized in-place")}if(tW(e))throw tI(e),I("root node is clobbered and cannot be sanitized in-place");try{t5(e)}catch(t){throw tI(e),t}}else if(tq(e))(i=(r=tF("<!---->")).ownerDocument.importNode(e,!0)).nodeType===ec.element&&"BODY"===i.nodeName?r=i:"HTML"===i.nodeName?r=i:r.appendChild(i),t5(i);else{if(!e8&&!eJ&&!e1&&-1===e.indexOf("<"))return t&&e7?eN(e):e;if(!(r=tF(e)))return e8?null:e7?eA:""}r&&e6&&tL(r.firstChild);let c=u?e:r;try{let e=tB(c);for(;o=e.nextNode();)tY(o,c),t1(o),tH(o.content)&&t2(o.content)}catch(t){throw u&&(tI(e),g(a.removed,e=>{e.element&&tj(e.element)})),t}if(u)return g(a.removed,e=>{e.element&&tj(e.element)}),eJ&&tU(e),e;if(e8){if(eJ&&tU(r),e9)for(l=e$.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(eW.shadowroot||eW.shadowrootmode)&&(l=eD.call(s,l,!0)),l}let d=e1?r.outerHTML:r.innerHTML;return e1&&ez["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&L(ei,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),eJ&&(d=tz(d)),t&&e7?eN(d):d},a.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tT(e),e2=!0,e5=ez,e3=eW},a.clearConfig=function(){tM=null,e2=!1,e5=null,e3=null,t=n,eA=""},a.isValidAttribute=function(e,t,n){return tM||tT({}),tX(tC(e),tC(t),n)},a.addHook=function(e,t){"function"==typeof t&&N(eF,e)&&b(eF[e],t)},a.removeHook=function(e,t){if(N(eF,e)){if(void 0!==t){let n=m(eF[e],t);return -1===n?void 0:v(eF[e],n,1)[0]}return y(eF[e])}},a.removeHooks=function(e){N(eF,e)&&(eF[e]=[])},a.removeAllHooks=function(){eF=eh()},a}()},60688:function(e,t,n){"use strict";
141function r(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}n.d(t,{h:function(){return r}})},93399:function(e,t,n){"use strict";n.d(t,{CP:function(){return k},Ey:function(){return x},Fl:function(){return v},H1:function(){return S},LP:function(){return f},Mw:function(){return y},P4:function(){return p},Vf:function(){return o},WL:function(){return l},XU:function(){return u},YA:function(){return d},a4:function(){return h},b7:function(){return c},bZ:function(){return g},dB:function(){return w},gH:function(){return i},kj:function(){return b},mn:function(){return s},oV:function(){return a},p_:function(){return m},vu:function(){return r},yK:function(){return _}});let r="[object RegExp]",i="[object String]",a="[object Number]",o="[object Boolean]",s="[object Arguments]",l="[object Symbol]",u="[object Date]",c="[object Map]",d="[object Set]",h="[object Array]",f="[object ArrayBuffer]",p="[object Object]",g="[object DataView]",m="[object Uint8Array]",y="[object Uint8ClampedArray]",b="[object Uint16Array]",v="[object Uint32Array]",x="[object Int8Array]",k="[object Int16Array]",w="[object Int32Array]",_="[object Float32Array]",S="[object Float64Array]"},5604:function(e,t,n){"use strict";n.d(t,{O:function(){return i}});var r=n(60688);function i(e){return null!==e&&"object"==typeof e&&"[object Arguments]"===(0,r.h)(e)}},68743:function(e,t,n){"use strict";function r(e){var t;return null!=e&&"function"!=typeof e&&Number.isSafeInteger(t=e.length)&&t>=0}n.d(t,{z:function(){return r}})},11725:function(e,t,n){"use strict";n.d(t,{f:function(){return i}});var r=n(29029);function i(e){return(0,r.f)(e)}},9628:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});let r="object"==typeof globalThis&&globalThis||"object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof global&&global||function(){return this}();function i(e){return void 0!==r.Buffer&&r.Buffer.isBuffer(e)}},17876:function(e,t,n){"use strict";function r(e){return null==e||"object"!=typeof e&&"function"!=typeof e}n.d(t,{p:function(){return r}})},29029:function(e,t,n){"use strict";function r(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}n.d(t,{f:function(){return r}})},76310:function(e,t,n){"use strict";n.d(t,{M:function(){return y}});var r=n(22087),i=n(28113),a=n(11528),o=n(15039),s=n(41441),l=n(23037);class u extends i.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function c(e){let{children:t,isPresent:n}=e,a=(0,i.useId)(),o=(0,i.useRef)(null),s=(0,i.useRef)({width:0,height:0,top:0,left:0}),{nonce:c}=(0,i.useContext)(l._);return(0,i.useInsertionEffect)(()=>{let{width:e,height:t,top:r,left:i}=s.current;if(n||!o.current||!e||!t)return;o.current.dataset.motionPopId=a;let l=document.createElement("style");return c&&(l.nonce=c),document.head.appendChild(l),l.sheet&&l.sheet.insertRule('\n          [data-motion-pop-id="'.concat(a,'"] {\n            position: absolute !important;\n            width: ').concat(e,"px !important;\n            height: ").concat(t,"px !important;\n            top: ").concat(r,"px !important;\n            left: ").concat(i,"px !important;\n          }\n        ")),()=>{document.head.removeChild(l)}},[n]),(0,r.jsx)(u,{isPresent:n,childRef:o,sizeRef:s,children:i.cloneElement(t,{ref:o})})}let d=e=>{let{children:t,initial:n,isPresent:a,onExitComplete:l,custom:u,presenceAffectsLayout:d,mode:f}=e,p=(0,o.h)(h),g=(0,i.useId)(),m=(0,i.useCallback)(e=>{for(let t of(p.set(e,!0),p.values()))if(!t)return;l&&l()},[p,l]),y=(0,i.useMemo)(()=>({id:g,initial:n,isPresent:a,custom:u,onExitComplete:m,register:e=>(p.set(e,!1),()=>p.delete(e))}),d?[Math.random(),m]:[a,m]);return(0,i.useMemo)(()=>{p.forEach((e,t)=>p.set(t,!1))},[a]),i.useEffect(()=>{a||p.size||!l||l()},[a]),"popLayout"===f&&(t=(0,r.jsx)(c,{isPresent:a,children:t})),(0,r.jsx)(s.O.Provider,{value:y,children:t})};function h(){return new Map}var f=n(77191);let p=e=>e.key||"";function g(e){let t=[];
141return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}var m=n(20747);let y=e=>{let{children:t,custom:n,initial:s=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:c="sync",propagate:h=!1}=e,[y,b]=(0,f.oO)(h),v=(0,i.useMemo)(()=>g(t),[t]),x=h&&!y?[]:v.map(p),k=(0,i.useRef)(!0),w=(0,i.useRef)(v),_=(0,o.h)(()=>new Map),[S,C]=(0,i.useState)(v),[M,A]=(0,i.useState)(v);(0,m.L)(()=>{k.current=!1,w.current=v;for(let e=0;e<M.length;e++){let t=p(M[e]);x.includes(t)?_.delete(t):!0!==_.get(t)&&_.set(t,!1)}},[M,x.length,x.join("-")]);let E=[];if(v!==S){let e=[...v];for(let t=0;t<M.length;t++){let n=M[t],r=p(n);x.includes(r)||(e.splice(t,0,n),E.push(n))}"wait"===c&&E.length&&(e=E),A(g(e)),C(v);return}let{forceRender:T}=(0,i.useContext)(a.p);return(0,r.jsx)(r.Fragment,{children:M.map(e=>{let t=p(e),i=(!h||!!y)&&(v===M||x.includes(t));return(0,r.jsx)(d,{isPresent:i,initial:(!k.current||!!s)&&void 0,custom:i?void 0:n,presenceAffectsLayout:u,mode:c,onExitComplete:i?void 0:()=>{if(!_.has(t))return;_.set(t,!0);let e=!0;_.forEach(t=>{t||(e=!1)}),e&&(null==T||T(),A(w.current),h&&(null==b||b()),l&&l())},children:e},t)})})}},6970:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(49666),i=n(68635);class a{constructor(){this.type=i.w.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=i.w.ALL}is(e){return this.type===e}}class o{constructor(e,t){this.color=t,this.changed=!1,this.data=e,this.type=new a}set(e,t){return this.color=t,this.changed=!1,this.data=e,this.type.type=i.w.ALL,this}_ensureHSL(){let e=this.data,{h:t,s:n,l:i}=e;void 0===t&&(e.h=r.Z.channel.rgb2hsl(e,"h")),void 0===n&&(e.s=r.Z.channel.rgb2hsl(e,"s")),void 0===i&&(e.l=r.Z.channel.rgb2hsl(e,"l"))}_ensureRGB(){let e=this.data,{r:t,g:n,b:i}=e;void 0===t&&(e.r=r.Z.channel.hsl2rgb(e,"r")),void 0===n&&(e.g=r.Z.channel.hsl2rgb(e,"g")),void 0===i&&(e.b=r.Z.channel.hsl2rgb(e,"b"))}get r(){let e=this.data,t=e.r;return this.type.is(i.w.HSL)||void 0===t?(this._ensureHSL(),r.Z.channel.hsl2rgb(e,"r")):t}get g(){let e=this.data,t=e.g;return this.type.is(i.w.HSL)||void 0===t?(this._ensureHSL(),r.Z.channel.hsl2rgb(e,"g")):t}get b(){let e=this.data,t=e.b;return this.type.is(i.w.HSL)||void 0===t?(this._ensureHSL(),r.Z.channel.hsl2rgb(e,"b")):t}get h(){let e=this.data,t=e.h;return this.type.is(i.w.RGB)||void 0===t?(this._ensureRGB(),r.Z.channel.rgb2hsl(e,"h")):t}get s(){let e=this.data,t=e.s;return this.type.is(i.w.RGB)||void 0===t?(this._ensureRGB(),r.Z.channel.rgb2hsl(e,"s")):t}get l(){let e=this.data,t=e.l;return this.type.is(i.w.RGB)||void 0===t?(this._ensureRGB(),r.Z.channel.rgb2hsl(e,"l")):t}get a(){return this.data.a}set r(e){this.type.set(i.w.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(i.w.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(i.w.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(i.w.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(i.w.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(i.w.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}var s=new o({r:0,g:0,b:0,a:0},"transparent")},35776:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(6970),i=n(68635);let a={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(35!==e.charCodeAt(0))return;let t=e.match(a.re);if(!t)return;let n=t[1],i=parseInt(n,16),o=n.length,s=o%4==0,l=o>4,u=l?1:17,c=l?8:4,d=s?0:-1,h=l?255:15;return r.Z.set({r:(i>>c*(d+3)&h)*u,g:(i>>c*(d+2)&h)*u,b:(i>>c*(d+1)&h)*u,a:s?(i&h)*u/255:1},e)},stringify:e=>{let{r:t,g:n,b:r,a}=e;return a<1?`#${i.Q[Math.round(t)]}${i.Q[Math.round(n)]}${i.Q[Math.round(r)]}${i.Q[Math.round(255*a)]}`:`#${i.Q[Math.round(t)]}${i.Q[Math.round(n)]}${i.Q[Math.round(r)]}`}};var o=n(49666);let s={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{let t=e.match(s.hueRe);if(t){let[,e,n]=t;switch(n){case"grad":return o.Z.channel.clamp.h(.9*parseFloat(e));case"rad":return o.Z.channel.clamp.h(180*parseFloat(e)/Math.PI);case"turn":return o.Z.channel.clamp.h(360*parseFloat(e))}}return o.Z.channel.clamp.h(parseFloat(e))},parse:e=>{let t=e.charCodeAt(0);if(104!==t&&72!==t)return;let n=e.match(s.re);if(!n)return;let[,i,a,l,u,c]=n;return r.Z.set({h:s._hue2deg(i),s:o.Z.channel.clamp.s(parseFloat(a)),l:o.Z.channel.clamp.l(parseFloat(l)),a:u?o.Z.channel.clamp.a(c?parseFloat(u)/100:parseFloat(u)):1},e)},stringify:e=>
141{let{h:t,s:n,l:r,a:i}=e;return i<1?`hsla(${o.Z.lang.round(t)}, ${o.Z.lang.round(n)}%, ${o.Z.lang.round(r)}%, ${i})`:`hsl(${o.Z.lang.round(t)}, ${o.Z.lang.round(n)}%, ${o.Z.lang.round(r)}%)`}},l={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();let t=l.colors[e];if(t)return a.parse(t)},stringify:e=>{let t=a.stringify(e);for(let e in l.colors)if(l.colors[e]===t)return e}},u={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{let t=e.charCodeAt(0);if(114!==t&&82!==t)return;let n=e.match(u.re);if(!n)return;let[,i,a,s,l,c,d,h,f]=n;return r.Z.set({r:o.Z.channel.clamp.r(a?2.55*parseFloat(i):parseFloat(i)),g:o.Z.channel.clamp.g(l?2.55*parseFloat(s):parseFloat(s)),b:o.Z.channel.clamp.b(d?2.55*parseFloat(c):parseFloat(c)),a:h?o.Z.channel.clamp.a(f?parseFloat(h)/100:parseFloat(h)):1},e)},stringify:e=>{let{r:t,g:n,b:r,a:i}=e;return i<1?`rgba(${o.Z.lang.round(t)}, ${o.Z.lang.round(n)}, ${o.Z.lang.round(r)}, ${o.Z.lang.round(i)})`:`rgb(${o.Z.lang.round(t)}, ${o.Z.lang.round(n)}, ${o.Z.lang.round(r)})`}};var c={format:{keyword:l,hex:a,rgb:u,rgba:u,hsl:s,hsla:s},parse:e=>{if("string"!=typeof e)return e;let t=a.parse(e)||u.parse(e)||s.parse(e)||l.parse(e);if(t)return t;throw Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(i.w.HSL)||void 0===e.data.r?s.stringify(e):!(e.a<1)&&Number.isInteger(e.r)&&Number.isInteger(e.g)&&Number.isInteger(e.b)?a.stringify(e):u.stringify(e)}},68635:function(e,t,n){"use strict";n.d(t,{Q:function(){return i},w:function(){return a}});var r=n(49666);let i={};for(let e=0;e<=255;e++)i[e]=r.Z.unit.dec2hex(e);let a={ALL:0,RGB:1,HSL:2}},90219:function(e,t,n){"use strict";var r=n(35776),i=n(13132);t.Z=(e,t)=>{let n=r.Z.parse(e),a={};for(let e in t)t[e]&&(a[e]=n[e]+t[e]);return(0,i.Z)(e,a)}},6722:function(e,t,n){"use strict";var r=n(49666),i=n(35776);t.Z=(e,t,n)=>{let a=i.Z.parse(e),o=a[t],s=r.Z.channel.clamp[t](o+n);return o!==s&&(a[t]=s),i.Z.stringify(a)}},13132:function(e,t,n){"use strict";var r=n(49666),i=n(35776);t.Z=(e,t)=>{let n=i.Z.parse(e);for(let e in t)n[e]=r.Z.channel.clamp[e](t[e]);return i.Z.stringify(n)}},24606:function(e,t,n){"use strict";var r=n(6722);t.Z=(e,t)=>(0,r.Z)(e,"l",-t)},31649:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(35776),i=n(17303),a=(e,t,n=50)=>{let{r:a,g:o,b:s,a:l}=r.Z.parse(e),{r:u,g:c,b:d,a:h}=r.Z.parse(t),f=n/100,p=2*f-1,g=l-h,m=((p*g==-1?p:(p+g)/(1+p*g))+1)/2,y=1-m;return(0,i.Z)(a*m+u*y,o*m+c*y,s*m+d*y,l*f+h*(1-f))},o=(e,t=100)=>{let n=r.Z.parse(e);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,a(n,e,t)}},25778:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(49666),i=n(35776),a=e=>{let{r:t,g:n,b:a}=i.Z.parse(e),o=.2126*r.Z.channel.toLinear(t)+.7152*r.Z.channel.toLinear(n)+.0722*r.Z.channel.toLinear(a);return r.Z.lang.round(o)},o=e=>a(e)>=.5,s=e=>!o(e)},54235:function(e,t,n){"use strict";var r=n(6722);t.Z=(e,t)=>(0,r.Z)(e,"l",t)},17303:function(e,t,n){"use strict";var r=n(49666),i=n(6970),a=n(35776),o=n(13132);t.Z=(e,t,n=0,s=1)=>
141{if("number"!=typeof e)return(0,o.Z)(e,{a:t});let l=i.Z.set({r:r.Z.channel.clamp.r(e),g:r.Z.channel.clamp.g(t),b:r.Z.channel.clamp.b(n),a:r.Z.channel.clamp.a(s)});return a.Z.stringify(l)}},49666:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});let r={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{let t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e,hsl2rgb:({h:e,s:t,l:n},i)=>{if(!t)return 2.55*n;e/=360,t/=100;let a=(n/=100)<.5?n*(1+t):n+t-n*t,o=2*n-a;switch(i){case"r":return 255*r.hue2rgb(o,a,e+1/3);case"g":return 255*r.hue2rgb(o,a,e);case"b":return 255*r.hue2rgb(o,a,e-1/3)}},rgb2hsl:({r:e,g:t,b:n},r)=>{let i=Math.max(e/=255,t/=255,n/=255),a=Math.min(e,t,n),o=(i+a)/2;if("l"===r)return 100*o;if(i===a)return 0;let s=i-a;if("s"===r)return 100*(o>.5?s/(2-i-a):s/(i+a));switch(i){case e:return((t-n)/s+(t<n?6:0))*60;case t:return((n-e)/s+2)*60;case n:return((e-t)/s+4)*60;default:return -1}}};var i={channel:r,lang:{clamp:(e,t,n)=>t>n?Math.min(t,Math.max(n,e)):Math.min(n,Math.max(t,e)),round:e=>Math.round(1e10*e)/1e10},unit:{dec2hex:e=>{let t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}}}},39394:function(e,t,n){"use strict";n.d(t,{default:function(){return u}});var r=n(28113),i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1};var o=n(23022);let s=(0,r.createContext)({}),l=()=>(0,r.useContext)(s),u=(0,r.forwardRef)((e,t)=>{var n,s,u;let{color:c,size:d,strokeWidth:h,absoluteStrokeWidth:f,className:p="",children:g,iconNode:m,...y}=e,{size:b=24,strokeWidth:v=2,absoluteStrokeWidth:x=!1,color:k="currentColor",className:w=""}=null!==(n=l())&&void 0!==n?n:{},_=(null!=f?f:x)?24*Number(null!=h?h:v)/Number(null!=d?d:b):null!=h?h:v;return(0,r.createElement)("svg",{ref:t,...i,width:null!==(s=null!=d?d:b)&&void 0!==s?s:i.width,height:null!==(u=null!=d?d:b)&&void 0!==u?u:i.height,stroke:null!=c?c:k,strokeWidth:_,className:(0,o.z)("lucide",w,p),...!g&&!a(y)&&{"aria-hidden":"true"},...y},[...m.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(g)?g:[g]])})},51001:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(28113),i=n(23022);let a=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),s=e=>{let t=o(e);return t.charAt(0).toUpperCase()+t.slice(1)};var l=n(39394);let u=(e,t)=>{let n=(0,r.forwardRef)((n,o)=>{let{className:u,...c}=n;return(0,r.createElement)(l.default,{ref:o,iconNode:t,className:(0,i.z)("lucide-".concat(a(s(e))),"lucide-".concat(e),u),...c})});return n.displayName=s(e),n}},394:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(51001).Z)("arrow-left-to-line",[["path",{d:"M3 19V5",key:"rwsyhb"}],["path",{d:"m13 6-6 6 6 6",key:"1yhaz7"}],["path",{d:"M7 12h14",key:"uoisry"}]])},11248:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(51001).Z)("arrow-right-to-line",[["path",{d:"M17 12H3",key:"8awo09"}],["path",{d:"m11 18 6-6-6-6",key:"8c2y43"}],["path",{d:"M21 5v14",key:"nzette"}]])},14124:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(51001).Z)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},75623:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(51001).Z)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},53457:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(51001).Z)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},70512:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(51001).Z)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},40326:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(51001).Z)("corner-down-left",[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]])},67834:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(51001).Z)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},78729:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(51001).Z)("file",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]])},65305:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(51001).Z)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},25609:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(51001).Z)("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]])},85914:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(51001).Z)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},90370:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(51001).Z)("music-2",[["circle",{cx:"8",cy:"18",r:"4",key:"1fc0mg"}],["path",{d:"M12 18V2l7 4",key:"g04rme"}]])},9251:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(51001).Z)("paperclip",[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]])},14632:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(51001).Z)("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]])},22816:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(51001).Z)("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]])},20785:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(51001).Z)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
141],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},23022:function(e,t,n){"use strict";n.d(t,{z:function(){return r}});let r=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim()}},99530:function(e,t,n){"use strict";n.d(t,{DQ:function(){return eo},I_:function(){return _},Jj:function(){return C},QP:function(){return I},SE:function(){return x},ZH:function(){return k},h_:function(){return v}});var r=n(88426),i=n(87169),a=n(43544),o=n(95138),s=n(77176),l=n(86444),u=n(62052),c=n(69571),d=n(69972),h=n(15026),f=n(9418),p=(0,d.e)((e,t,n,r,i,a=!1,o)=>{t.arrowTypeStart&&y(e,"start",t.arrowTypeStart,n,r,i,a,o),t.arrowTypeEnd&&y(e,"end",t.arrowTypeEnd,n,r,i,a,o)},"addEdgeMarkers"),g={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},m=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],y=(0,d.e)((e,t,n,r,i,a,o=!1,s)=>{let l=g[n],u=l&&m.includes(l.type);if(!l){c.c.warn(`Unknown arrow type: ${n}`);return}let d=l.type,h=`${i}_${a}-${d}${"start"===t?"Start":"End"}${o&&u?"-margin":""}`;if(s&&""!==s.trim()){let n=s.replace(/[^\dA-Za-z]/g,"_"),i=`${h}_${n}`;if(!document.getElementById(i)){let e=document.getElementById(h);if(e){let t=e.cloneNode(!0);t.id=i,t.querySelectorAll("path, circle, line").forEach(e=>{e.setAttribute("stroke",s),l.fill&&e.setAttribute("fill",s)}),e.parentNode?.appendChild(t)}}e.attr(`marker-${t}`,`url(${r}#${i})`)}else e.attr(`marker-${t}`,`url(${r}#${h})`)},"addEdgeMarker"),b=(0,d.e)(e=>"string"==typeof e?e:u.nV()?.flowchart?.curve,"resolveEdgeCurveType"),v=new Map,x=new Map,k=(0,d.e)(()=>{v.clear(),x.clear()},"clear"),w=(0,d.e)(e=>e?"string"==typeof e?e:e.reduce((e,t)=>e+";"+t,""):"","getLabelStyles"),_=(0,d.e)(async(e,t)=>{let n;let o=(0,u.nV)(),l=(0,u._X)(o),{labelStyles:d}=(0,i.UG)(t);t.labelStyle=d;let f=e.insert("g").attr("class","edgeLabel"),p=f.insert("g").attr("class","label").attr("data-id",t.id),g="markdown"===t.labelType,m=await (0,s.r)(e,t.label,{style:w(t.labelStyle),useHtmlLabels:l,addSvgBackground:!0,isNode:!1,markdown:g,width:void 0},o);p.node().appendChild(m),c.c.info("abc82",t,t.labelType);let y=m.getBBox(),b=y;if(l){let e=m.children[0],t=(0,h.Ys)(m);b=y=e.getBoundingClientRect(),t.attr("width",y.width),t.attr("height",y.height)}else{let e=(0,h.Ys)(m).select("text").node();e&&"function"==typeof e.getBBox&&(b=e.getBBox())}if(p.attr("transform",(0,a.eR)(b,l)),v.set(t.id,f),t.width=y.width,t.height=y.height,t.startLabelLeft){let i=e.insert("g").attr("class","edgeTerminals"),o=i.insert("g").attr("class","inner"),s=await (0,r.XO)(o,t.startLabelLeft,w(t.labelStyle)||"",!1,!1);n=s;let u=s.getBBox();if(l){let e=s.children[0],t=(0,h.Ys)(s);u=e.getBoundingClientRect(),t.attr("width",u.width),t.attr("height",u.height)}o.attr("transform",(0,a.eR)(u,l)),x.get(t.id)||x.set(t.id,{}),x.get(t.id).startLeft=i,S(n,t.startLabelLeft)}if(t.startLabelRight){let i=e.insert("g").attr("class","edgeTerminals"),o=i.insert("g").attr("class","inner"),s=await (0,r.XO)(o,t.startLabelRight,w(t.labelStyle)||"",!1,!1);n=s;let u=s.getBBox();if(l){let e=s.children[0],t=(0,h.Ys)(s);u=e.getBoundingClientRect(),t.attr("width",u.width),t.attr("height",u.height)}o.attr("transform",(0,a.eR)(u,l)),x.get(t.id)||x.set(t.id,{}),x.get(t.id).startRight=i,S(n,t.startLabelRight)}if(t.endLabelLeft){let i=e.insert("g").attr("class","edgeTerminals"),o=i.insert("g").attr("class","inner"),s=await (0,r.XO)(i,t.endLabelLeft,w(t.labelStyle)||"",!1,!1);n=s;let u=s.getBBox();if(l){let e=s.children[0],t=(0,h.Ys)(s);u=e.getBoundingClientRect(),t.attr("width",u.width),t.attr("height",u.height)}o.attr("transform",(0,a.eR)(u,l)),x.get(t.id)||x.set(t.id,{}),x.get(t.id).endLeft=i,S(n,t.endLabelLeft)}if(t.endLabelRight){let i=e.insert("g").attr("class","edgeTerminals"),o=i.insert("g").attr("class","inner"),s=await (0,r.XO)(i,t.endLabelRight,w(t.labelStyle)||"",!1,!1);n=s;let u=s.getBBox();if(l){let e=s.children[0],t=(0,h.Ys)(s);u=e.getBoundingClientRect(),t.attr("width",u.width),t.attr("height",u.height)}o.attr("transform",(0,a.eR)(u,l)),x.get(t.id)||x.set(t.id,{}),x.get(t.id).endRight=i,S(n,t.endLabelRight)}return m},"insertEdgeLabel");function S(e,t){(0,u._X)((0,u.nV)())&&e&&(e.style.width=9*t.length+"px",e.style.height="12px")}(0,d.e)(S,"setTerminalWidth");var C=(0,d.e)((e,t)=>{c.c.debug("Moving label abc88 ",e.id,e.label,v.get(e.id),t);let n=t.updatedPath?t.updatedPath:t.originalPath,r=(0,u.nV)(),{subGraphTitleTotalMargin:i}=(0,o.L)(r);if(e.label){let r=v.get(e.id),a=e.x,o=e.y;if(n){let r=l.w8.calcLabelPosition(n);c.c.debug("Moving label "+e.label+" from (",a,",",o,") to (",r.x,",",r.y,") abc88"),t.updatedPath&&(a=r.x,o=r.y)}r.attr("transform",`translate(${a}, ${o+i/2})`)}if(e.startLabelLeft){let t=x.get(e.id).startLeft,r=e.x,i=e.y;if(n){let t=l.w8.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",n);r=t.x,i=t.y}t.attr("transform",`translate(${r}, ${i})`)}if(e.startLabelRight){let t=x.get(e.id).startRight,r=e.x,i=e.y;if(n){let t=l.w8.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",n);r=t.x,i=t.y}t.attr("transform",`translate(${r}, ${i})`)}if(e.endLabelLeft){let t=x.get(e.id).endLeft,r=e.x,i=e.y;if(n){let t=l.w8.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",n);r=t.x,i=t.y}t.attr("transform",`translate(${r}, ${i})`)}if(e.endLabelRight){let t=x.get(e.id).endRight,r=e.x,i=e.y;if(n){let t=l.w8.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",n);r=t.x,i=t.y}t.attr("transform",`translate(${r}, ${i})`)}},"positionEdgeLabel"),M=(0,d.e)((e,t)=>{if(!e?.isLabelEdge||!e?.id?.endsWith("-to-label")||!Array.isArray(t)||2!==t.length)return t;let[n,r]=t,i=Math.abs(r.x-n.x),a=Math.abs(r.y-n.y);return i<.001||a<.001?t:a>=i?[n,{x:n.x,y:r.y},r]:[n,{x:r.x,y:n.y},r]},"orthogonalizeToLabelClippedPoints"),A=(0,d.e)((e,t)=>{let n=e.x,r=e.y,i=Math.abs(t.x-n),a=Math.abs(t.y-r),o=e.width/2,s=e.height/2;return i>=o||a>=s},"outsideNode"),E=(0,d.e)((e,t,n)=>{c.c.debug(`intersection calc abc89:
142  outsidePoint: ${JSON.stringify(t)}
143  insidePoint : ${JSON.stringify(n)}
144  node        : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let r=e.x,i=e.y,a=Math.abs(r-n.x),o=e.width/2,s=n.x<t.x?o-a:o+a,l=e.height/2,u=Math.abs(t.y-n.y),d=Math.abs(t.x-n.x);if(Math.abs(i-t.y)*o>Math.abs(r-t.x)*l){let e=n.y<t.y?t.y-l-i:i-l-t.y;s=d*e/u;let r={x:n.x<t.x?n.x+s:n.x-d+s,y:n.y<t.y?n.y+u-e:n.y-u+e};return 0===s&&(r.x=t.x,r.y=t.y),0===d&&(r.x=t.x),0===u&&(r.y=t.y),c.c.debug(`abc89 top/bottom calc, Q ${u}, q ${e}, R ${d}, r ${s}`,r),r}{let e=u*(s=n.x<t.x?t.x-o-r:r-o-t.x)/d,i=n.x<t.x?n.x+d-s:n.x-d+s,a=n.y<t.y?n.y+e:n.y-e;return c.c.debug(`sides calc abc89, Q ${u}, q ${e}, R ${d}, r ${s}`,{_x:i,_y:a}),0===s&&(i=t.x,a=t.y),0===d&&(i=t.x),0===u&&(a=t.y),{x:i,y:a}}},"intersection"),T=(0,d.e)((e,t)=>{c.c.warn("abc88 cutPathAtIntersect",e,t);let n=[],r=e[0],i=!1;
144return e.forEach(e=>{if(c.c.info("abc88 checking point",e,t),A(t,e)||i)c.c.warn("abc88 outside",e,r),r=e,i||n.push(e);else{let a=E(t,r,e);c.c.debug("abc88 inside",e,r,a),c.c.debug("abc88 intersection",a,t);let o=!1;n.forEach(e=>{o=o||e.x===a.x&&e.y===a.y}),n.some(e=>e.x===a.x&&e.y===a.y)?c.c.warn("abc88 no intersect",a,n):n.push(a),i=!0}}),c.c.debug("returning points",n),n},"cutPathAtIntersect");function R(e){let t=[],n=[];for(let r=1;r<e.length-1;r++){let i=e[r-1],a=e[r],o=e[r+1];i.x===a.x&&a.y===o.y&&Math.abs(a.x-o.x)>5&&Math.abs(a.y-i.y)>5?(t.push(a),n.push(r)):i.y===a.y&&a.x===o.x&&Math.abs(a.x-i.x)>5&&Math.abs(a.y-o.y)>5&&(t.push(a),n.push(r))}return{cornerPoints:t,cornerPointPositions:n}}(0,d.e)(R,"extractCornerPoints");var N=(0,d.e)(function(e,t,n){let r=t.x-e.x,i=t.y-e.y,a=n/Math.sqrt(r*r+i*i);return{x:t.x-a*r,y:t.y-a*i}},"findAdjacentPoint"),P=(0,d.e)(function(e){let{cornerPointPositions:t}=R(e),n=[];for(let r=0;r<e.length;r++)if(t.includes(r)){let t=e[r-1],i=e[r+1],a=e[r],o=N(t,a,5),s=N(i,a,5),l=s.x-o.x,u=s.y-o.y;n.push(o);let d=2*Math.sqrt(2),h={x:a.x,y:a.y};Math.abs(i.x-t.x)>10&&Math.abs(i.y-t.y)>=10?(c.c.debug("Corner point fixing",Math.abs(i.x-t.x),Math.abs(i.y-t.y)),h=a.x===o.x?{x:l<0?o.x-5+d:o.x+5-d,y:u<0?o.y-d:o.y+d}:{x:l<0?o.x-d:o.x+d,y:u<0?o.y-5+d:o.y+5-d}):c.c.debug("Corner point skipping fixing",Math.abs(i.x-t.x),Math.abs(i.y-t.y)),n.push(h,s)}else n.push(e[r]);return n},"fixCorners"),L=(0,d.e)((e,t,n)=>{let r=Array(Math.floor((e-t-n)/4)).fill("2 2").join(" ");return`0 ${t} ${r} ${n}`},"generateDashArray"),I=(0,d.e)(function(e,t,n,r,o,s,d,g=!1){let m,y;if(!d)throw Error(`insertEdge: missing diagramId for edge "${t.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:v,layout:x}=(0,u.nV)(),k=t.points,w=!1,_=[];for(let e in t.cssCompiledStyles)(0,i.Fh)(e)||_.push(t.cssCompiledStyles[e]);if("swimlane"===x){if(s.intersect&&o.intersect&&Array.isArray(k)&&k.length>=2){if(2===k.length)k=[o.intersect(k[0]),s.intersect(k[1])];else{let e=k.slice(1,-1),t=e[0],n=e[e.length-1],r=.5>Math.abs(k[k.length-1].x-n.x)&&.5>Math.abs(k[k.length-1].y-n.y),i=o.intersect(t),a=r?n:s.intersect(n),l=.5>Math.abs(a.x-n.x)&&.5>Math.abs(a.y-n.y);k=[....5>Math.abs(i.x-t.x)&&.5>Math.abs(i.y-t.y)?[]:[i],...e,...l?[]:[a]]}}k=M(t,k)}else s.intersect&&o.intersect&&!g&&((k=k.slice(1,t.points.length-1)).unshift(o.intersect(k[0])),k.push(s.intersect(k[k.length-1])));let S=btoa(JSON.stringify(k));t.toCluster&&(c.c.info("to cluster abc88",n.get(t.toCluster)),k=T(t.points,n.get(t.toCluster).node),w=!0),t.fromCluster&&(c.c.debug("from cluster abc88",n.get(t.fromCluster),JSON.stringify(k,null,2)),k=T(k.reverse(),n.get(t.fromCluster).node).reverse(),w=!0);let C=k.filter(e=>!Number.isNaN(e.y)),A=b(t.curve);"rounded"!==A&&(C=P(C));let E=h.c_6;switch(A){case"linear":case"rounded":E=h.c_6;break;case"basis":default:E=h.$0Z;break;case"cardinal":E=h.YY7;break;case"bumpX":E=h.qpX;break;case"bumpY":E=h.u93;break;case"catmullRom":E=h.zgE;break;case"monotoneX":E=h.FdL;break;case"monotoneY":E=h.ak_;break;case"natural":E=h.SxZ;break;case"step":E=h.eA_;break;case"stepAfter":E=h.jsv;break;case"stepBefore":E=h.iJ}let{x:R,y:N}=(0,a.om)(t),I=(0,h.jvg)().x(R).y(N).curve(E);switch(t.thickness){case"normal":default:m="edge-thickness-normal";break;case"thick":m="edge-thickness-thick";break;case"invisible":m="edge-thickness-invisible"}switch(t.pattern){case"solid":default:m+=" edge-pattern-solid";break;case"dotted":m+=" edge-pattern-dotted";break;case"dashed":m+=" edge-pattern-dashed"}let $="rounded"===A?O(j(C,t),5):I(C),D=Array.isArray(t.style)?t.style:[t.style],F=D.find(e=>e?.startsWith("stroke:")),B="";t.animate&&(B="edge-animation-fast"),t.animation&&(B="edge-animation-"+t.animation);let z=!1;if("handDrawn"===t.look){let n=f.Z.svg(e);Object.assign([],C);let r=n.path($,{roughness:.3,seed:v});m+=" transition";let i=(y=(0,h.Ys)(r).select("path").attr("id",`${d}-${t.id}`).attr("class"," "+m+(t.classes?" "+t.classes:"")+(B?" "+B:"")).attr("style",D?D.reduce((e,t)=>e+";"+t,""):"")).attr("d");y.attr("d",i),e.node().appendChild(y.node())}else{let n=_.join(";"),r=D?D.reduce((e,t)=>
144e+t+";",""):"",i=(n?n+";"+r+";":r)+";"+(D?D.reduce((e,t)=>e+";"+t,""):"");y=e.append("path").attr("d",$).attr("id",`${d}-${t.id}`).attr("class"," "+m+(t.classes?" "+t.classes:"")+(B?" "+B:"")).attr("style",i),F=i.match(/stroke:([^;]+)/)?.[1],z=!0===t.animate||!!t.animation||n.includes("animation");let o=y.node(),s="function"==typeof o.getTotalLength?o.getTotalLength():0,l=a.oZ[t.arrowTypeStart]||0,u=a.oZ[t.arrowTypeEnd]||0;if("neo"===t.look&&!z){let e="dotted"===t.pattern||"dashed"===t.pattern?L(s,l,u):`0 ${l} ${s-l-u} ${u}`,n=`stroke-dasharray: ${e}; stroke-dashoffset: 0;`;y.attr("style",n+y.attr("style"))}}y.attr("data-edge",!0),y.attr("data-et","edge"),y.attr("data-id",t.id),y.attr("data-points",S),y.attr("data-look",(0,l.R7)(t.look)),t.showPoints&&C.forEach(t=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",t.x).attr("cy",t.y)});let U="";((0,u.nV)().flowchart.arrowMarkerAbsolute||(0,u.nV)().state.arrowMarkerAbsolute)&&(U=(U=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(").replace(/\)/g,"\\)")),c.c.info("arrowTypeStart",t.arrowTypeStart),c.c.info("arrowTypeEnd",t.arrowTypeEnd);let W=!z&&t?.look==="neo";p(y,t,U,d,r,W,F);let H=Math.floor(k.length/2),q=k[H];l.w8.isLabelCoordinateInPath(q,y.attr("d"))||(w=!0);let G={};return w&&(G.updatedPath=k),G.originalPath=t.points,G},"insertEdge");function O(e,t){if(e.length<2)return"";let n="",r=e.length;for(let i=0;i<r;i++){let a=e[i],o=e[i-1],s=e[i+1];if(0===i)n+=`M${a.x},${a.y}`;else if(i===r-1)n+=`L${a.x},${a.y}`;else{let e=a.x-o.x,r=a.y-o.y,i=s.x-a.x,l=s.y-a.y,u=Math.hypot(e,r),c=Math.hypot(i,l);if(u<1e-5||c<1e-5){n+=`L${a.x},${a.y}`;continue}let d=e/u,h=r/u,f=i/c,p=l/c,g=Math.acos(Math.max(-1,Math.min(1,d*f+h*p)));if(g<1e-5||1e-5>Math.abs(Math.PI-g)){n+=`L${a.x},${a.y}`;continue}let m=Math.min(t/Math.sin(g/2),u/2,c/2),y=a.x-d*m,b=a.y-h*m,v=a.x+f*m,x=a.y+p*m;n+=`L${y},${b}Q${a.x},${a.y} ${v},${x}`}}return n}function $(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};let n=t.x-e.x,r=t.y-e.y;return{angle:Math.atan2(r,n),deltaX:n,deltaY:r}}function j(e,t){let n=e.map(e=>({...e}));if(e.length>=2&&a.Os[t.arrowTypeStart]){let r=a.Os[t.arrowTypeStart],i=e[0],{angle:o}=$(i,e[1]),s=r*Math.cos(o),l=r*Math.sin(o);n[0].x=i.x+s,n[0].y=i.y+l}let r=e.length;if(r>=2&&a.Os[t.arrowTypeEnd]){let i=a.Os[t.arrowTypeEnd],o=e[r-1],{angle:s}=$(e[r-2],o),l=i*Math.cos(s),u=i*Math.sin(s);n[r-1].x=o.x-l,n[r-1].y=o.y-u}return n}(0,d.e)(O,"generateRoundedPath"),(0,d.e)($,"calculateDeltaAndAngle"),(0,d.e)(j,"applyMarkerOffsetsToPoints");var D=(0,d.e)((e,t,n,r)=>{t.forEach(t=>{ea[t](e,n,r)})},"insertMarkers"),F=(0,d.e)((e,t,n)=>{c.c.trace("Making markers for ",n),e.append("defs").append("marker").attr("id",n+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),e.append("marker").attr("id",n+"_"+t+"-extensionStart-margin").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),e.append("defs").append("marker").attr("id",n+"_"+t+"-extensionEnd-margin").attr("class","marker extension "+t).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),B=(0,d.e)((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-compositionStart-margin").attr("class","marker composition "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-compositionEnd-margin").attr("class","marker composition "+t).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),z=(0,d.e)((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-aggregationStart-margin").attr("class","marker aggregation "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-aggregationEnd-margin").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),U=(0,d.e)((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-dependencyStart-margin").attr("class","marker dependency "+t).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-dependencyEnd-margin").attr("class","marker dependency "+t).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),W=(0,d.e)((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",n+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",n+"_"+t+"-lollipopStart-margin").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),e.append("defs").append("marker").attr("id",n+"_"+t+"-lollipopEnd-margin").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),H=(0,d.e)((e,t,n)=>{e.append("marker").attr("id",n+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",n+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",n+"_"+t+"-pointEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",n+"_"+t+"-pointStart-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("pol
144ygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),q=(0,d.e)((e,t,n)=>{e.append("marker").attr("id",n+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",n+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",n+"_"+t+"-circleEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",n+"_"+t+"-circleStart-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),G=(0,d.e)((e,t,n)=>{e.append("marker").attr("id",n+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",n+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",n+"_"+t+"-crossEnd-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),e.append("marker").attr("id",n+"_"+t+"-crossStart-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),V=(0,d.e)((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),Z=(0,d.e)((e,t,n)=>{let{themeVariables:r}=(0,u.iE)(),{transitionColor:i}=r;e.append("defs").append("marker").attr("id",n+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${i}`)},"barbNeo"),Y=(0,d.e)((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",n+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),X=(0,d.e)((e,t,n)=>{let r=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");r.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),r.append("path").attr("d","M9,0 L9,18");let i=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),i.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),Q=(0,d.e)((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",n+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),K=(0,d.e)((e,t,n)=>{let r=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");r.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),r.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let i=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),i.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),J=(0,d.e)((e,t,n)=>{let{themeVariables:r}=(0,u.iE)(),{strokeWidth:i}=r;e.append("defs").append("marker").attr("id",n+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${i}`),e.append("defs").append("marker").attr("id",n+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${i}`)},"only_one_neo"),ee=(0,d.e)((e,t,n)=>{let{themeVariables:r}=(0,u.iE)(),{strokeWidth:i,mainBkg:a}=r,o=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");o.append("circle").attr("fill",a??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${i}`).attr("r",6),o.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${i}`);let s=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");s.append("circle").attr("fill",a??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${i}`).attr("r",6),s.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${i}`)},"zero_or_one_neo"),et=(0,d.e)((e,t,n)=>{let{themeVariables:r}=(0,u.iE)(),{strokeWidth:i}=r;e.append("defs").append("marker").attr("id",n+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${i}`),e.append("defs").append("marker").attr("id",n+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${i}`)},"one_or_more_neo"),en=(0,d.e)((e,t,n)=>{let{themeVariables:r}=(0,u.iE)(),{strokeWidth:i,mainBkg:a}=r,o=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");o.append("circle").attr("fill",a??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${i}`),o.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${i}`);let s=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");
144s.append("circle").attr("fill",a??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${i}`),s.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${i}`)},"zero_or_more_neo"),er=(0,d.e)((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
145      L20,10
146      M20,10
147      L0,20`)},"requirement_arrow"),ei=(0,d.e)((e,t,n)=>{let{themeVariables:r}=(0,u.iE)(),{strokeWidth:i}=r;e.append("defs").append("marker").attr("id",n+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${i}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
148      L20,10
149      M20,10
150      L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),ea={extension:F,composition:B,aggregation:z,dependency:U,lollipop:W,point:H,circle:q,cross:G,barb:V,barbNeo:Z,only_one:Y,zero_or_one:X,one_or_more:Q,zero_or_more:K,only_one_neo:J,zero_or_one_neo:ee,one_or_more_neo:et,zero_or_more_neo:en,requirement_arrow:er,requirement_contains:(0,d.e)((e,t,n)=>{let r=e.append("defs").append("marker").attr("id",n+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");r.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),r.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),r.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),requirement_arrow_neo:ei,requirement_contains_neo:(0,d.e)((e,t,n)=>{let{themeVariables:r}=(0,u.iE)(),{strokeWidth:i}=r,a=e.append("defs").append("marker").attr("id",n+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");a.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),a.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),a.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),a.selectAll("*").attr("stroke-width",`${i}`)},"requirement_contains_neo")},eo=D},43544:function(e,t,n){"use strict";n.d(t,{Os:function(){return a},eR:function(){return i},oZ:function(){return o},om:function(){return u}});var r=n(69972),i=(0,r.e)((e,t)=>{if(t)return"translate("+-e.width/2+", "+-e.height/2+")";let n=e.x??0,r=e.y??0;return"translate("+-(n+e.width/2)+", "+-(r+e.height/2)+")"},"computeLabelTransform"),a={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},o={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function s(e,t){if(void 0===e||void 0===t)return{angle:0,deltaX:0,deltaY:0};e=l(e),t=l(t);let[n,r]=[e.x,e.y],[i,a]=[t.x,t.y],o=i-n,s=a-r;return{angle:Math.atan(s/o),deltaX:o,deltaY:s}}(0,r.e)(s,"calculateDeltaAndAngle");var l=(0,r.e)(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),u=(0,r.e)(e=>({x:(0,r.e)(function(t,n,r){let i=0,o=l(r[0]).x<l(r[r.length-1]).x?"left":"right";if(0===n&&Object.hasOwn(a,e.arrowTypeStart)){let{angle:t,deltaX:n}=s(r[0],r[1]);i=a[e.arrowTypeStart]*Math.cos(t)*(n>=0?1:-1)}else if(n===r.length-1&&Object.hasOwn(a,e.arrowTypeEnd)){let{angle:t,deltaX:n}=s(r[r.length-1],r[r.length-2]);i=a[e.arrowTypeEnd]*Math.cos(t)*(n>=0?1:-1)}let u=Math.abs(l(t).x-l(r[r.length-1]).x),c=Math.abs(l(t).y-l(r[r.length-1]).y),d=Math.abs(l(t).x-l(r[0]).x),h=Math.abs(l(t).y-l(r[0]).y),f=a[e.arrowTypeStart],p=a[e.arrowTypeEnd];if(u<p&&u>0&&c<p){let e=p+1-u;e*="right"===o?-1:1,i-=e}if(d<f&&d>0&&h<f){let e=f+1-d;e*="right"===o?-1:1,i+=e}return l(t).x+i},"x"),y:(0,r.e)(function(t,n,r){let i=0,o=l(r[0]).y<l(r[r.length-1]).y?"down":"up";if(0===n&&Object.hasOwn(a,e.arrowTypeStart)){let{angle:t,deltaY:n}=s(r[0],r[1]);i=a[e.arrowTypeStart]*Math.abs(Math.sin(t))*(n>=0?1:-1)}else if(n===r.length-1&&Object.hasOwn(a,e.arrowTypeEnd)){let{angle:t,deltaY:n}=s(r[r.length-1],r[r.length-2]);i=a[e.arrowTypeEnd]*Math.abs(Math.sin(t))*(n>=0?1:-1)}let u=Math.abs(l(t).y-l(r[r.length-1]).y),c=Math.abs(l(t).x-l(r[r.length-1]).x),d=Math.abs(l(t).y-l(r[0]).y),h=Math.abs(l(t).x-l(r[0]).x),f=a[e.arrowTypeStart],p=a[e.arrowTypeEnd];if(u<p&&u>
1500&&c<p){let e=p+1-u;e*="up"===o?-1:1,i-=e}if(d<f&&d>0&&h<f){let e=f+1-d;e*="up"===o?-1:1,i+=e}return l(t).y+i},"y")}),"getLineFunctionsWithOffset")},87169:function(e,t,n){"use strict";n.d(t,{Fh:function(){return l},TA:function(){return a},UG:function(){return u},_q:function(){return c},dT:function(){return o}});var r=n(62052),i=n(69972),a=(0,i.e)(e=>{let{handDrawnSeed:t}=(0,r.nV)();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),o=(0,i.e)(e=>{let t=s([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),s=(0,i.e)(e=>{let t=new Map;return e.forEach(e=>{let[n,r]=e.split(":");t.set(n.trim(),r?.trim())}),t},"styles2Map"),l=(0,i.e)(e=>"color"===e||"font-size"===e||"font-family"===e||"font-weight"===e||"font-style"===e||"text-decoration"===e||"text-align"===e||"text-transform"===e||"line-height"===e||"letter-spacing"===e||"word-spacing"===e||"text-shadow"===e||"text-overflow"===e||"white-space"===e||"word-wrap"===e||"word-break"===e||"overflow-wrap"===e||"hyphens"===e,"isLabelStyle"),u=(0,i.e)(e=>{let{stylesArray:t}=o(e),n=[],r=[],i=[],a=[];return t.forEach(e=>{let t=e[0];l(t)?n.push(e.join(":")+" !important"):(r.push(e.join(":")+" !important"),t.includes("stroke")&&i.push(e.join(":")+" !important"),"fill"===t&&a.push(e.join(":")+" !important"))}),{labelStyles:n.join(";"),nodeStyles:r.join(";"),stylesArray:t,borderStyles:i,backgroundStyles:a}},"styles2String"),c=(0,i.e)((e,t)=>{let{themeVariables:n,handDrawnSeed:i}=(0,r.nV)(),{nodeBorder:a,mainBkg:s}=n,{stylesMap:l}=o(e);return Object.assign({roughness:.7,fill:l.get("fill")||s,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:l.get("stroke")||a,seed:i,strokeWidth:l.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:d(l.get("stroke-dasharray"))},t)},"userNodeOverrides"),d=(0,i.e)(e=>{if(!e)return[0,0];let t=e.trim().split(/\s+/).map(Number);if(1===t.length){let e=isNaN(t[0])?0:t[0];return[e,e]}return[isNaN(t[0])?0:t[0],isNaN(t[1])?0:t[1]]},"getStrokeDashArray")},33627:function(e,t,n){"use strict";n.d(t,{_b:function(){return f},jM:function(){return d},sY:function(){return h}});var r=n(99530),i=n(88426),a=n(86444),o=n(62052),s=n(69571),l=n(69972),u={common:o.SY,getConfig:o.iE,insertCluster:i.us,insertEdge:r.QP,insertEdgeLabel:r.I_,insertMarkers:r.DQ,insertNode:i.Lf,interpolateToCurve:a.le,labelHelper:i.C1,log:s.c,positionEdgeLabel:r.Jj},c={},d=(0,l.e)(e=>{for(let t of e)c[t.name]=t},"registerLayoutLoaders");(0,l.e)(()=>{d([{name:"dagre",loader:(0,l.e)(async()=>await Promise.all([n.e(25535),n.e(17814),n.e(61266),n.e(28549)]).then(n.bind(n,28549)),"loader")},{name:"swimlane",loader:(0,l.e)(async()=>await Promise.all([n.e(39110),n.e(25535),n.e(61266),n.e(1917)]).then(n.bind(n,40450)),"loader")},{name:"cose-bilkent",loader:(0,l.e)(async()=>await Promise.all([n.e(2620),n.e(6854)]).then(n.bind(n,6854)),"loader")}])},"registerDefaultLayoutLoaders")();var h=(0,l.e)(async(e,t,n)=>{if(!(e.layoutAlgorithm in c))throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(let t of e.nodes){let n=t.domId||t.id;t.domId=`${e.diagramId}-${n}`}let r=c[e.layoutAlgorithm],i=await r.loader(),{theme:a,themeVariables:o}=e.config,{useGradient:s,gradientStart:l,gradientStop:d}=o,h=t.attr("id");if(t.append("defs").append("filter").attr("id",`${h}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${a?.includes("dark")?"#FFFFFF":"#000000"}`),t.append("defs").append("filter").attr("id",`${h}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${a?.includes("dark")?"#FFFFFF":"#000000"}`),s){let e=t.append("linearGradient").attr("id",t.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");e.append("svg:stop").attr("offset","0%").attr("stop-color",l).attr("stop-opacity",1),e.append("svg:stop").attr("offset","100%").attr("stop-color",d).attr("stop-opacity",1)}return i.render(e,t,u,{algorithm:r.algorithm},n)},"render"),f=(0,l.e)((e="",{fallback:t="dagre"}={})=>
150{if(e in c)return e;if(t in c)return s.c.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm")},34167:function(e,t,n){"use strict";n.d(t,{s4:function(){return A},sO:function(){return M},ef:function(){return S},cN:function(){return k}});var r=n(62052),i=n(69571),a=n(69972);let o=(e,t,n,r="")=>{let i=e.split(":");if("@"===e.slice(0,1)){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!s(a)?null:a}let a=i[0],o=a.split("-");if(o.length>1){let e={provider:r,prefix:o.shift(),name:o.join("-")};return t&&!s(e)?null:e}if(n&&""===r){let e={provider:r,prefix:"",name:a};return t&&!s(e,n)?null:e}return null},s=(e,t)=>!!e&&!!((t&&""===e.prefix||e.prefix)&&e.name),l=Object.freeze({left:0,top:0,width:16,height:16}),u=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),c=Object.freeze({...l,...u}),d=Object.freeze({...c,body:"",hidden:!1});function h(e,t){let n=function(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}(e,t);for(let r in d)r in u?r in e&&!(r in n)&&(n[r]=u[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function f(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=h(r[e]||i[e],a)}return o(t),n.forEach(o),h(e,a)}let p=Object.freeze({...Object.freeze({width:null,height:null}),...u}),g=/(-?[0-9.]*[0-9]+[0-9.]*)/g,m=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function y(e,t,n){if(1===t)return e;if(n=n||100,"number"==typeof e)return Math.ceil(e*t*n)/n;if("string"!=typeof e)return e;let r=e.split(g);if(null===r||!r.length)return e;let i=[],a=r.shift(),o=m.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(void 0===(a=r.shift()))return i.join("");o=!o}}let b=e=>"unset"===e||"undefined"===e||"none"===e,v=/\sid="(\S+)"/g,x=new Map;var k={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},w=new Map,_=new Map,S=(0,a.e)(e=>{for(let t of e){if(!t.name)throw Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(i.c.debug("Registering icon pack:",t.name),"loader"in t)_.set(t.name,t.loader);else if("icons"in t)w.set(t.name,t.icons);else throw i.c.error("Invalid icon loader:",t),Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),C=(0,a.e)(async(e,t)=>{let n=o(e,!0,void 0!==t);if(!n)throw Error(`Invalid icon name: ${e}`);let r=n.prefix||t;if(!r)throw Error(`Icon name must contain a prefix: ${e}`);let a=w.get(r);if(!a){let e=_.get(r);if(!e)throw Error(`Icon set not found: ${n.prefix}`);try{a={...await e(),prefix:r},w.set(r,a)}catch(e){throw i.c.error(e),Error(`Failed to load icon set: ${n.prefix}`)}}let s=function(e,t){if(e.icons[t])return f(e,t,[]);let n=function(e,t){let n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);return(t||Object.keys(n).concat(Object.keys(r))).forEach(function e(t){if(n[t])return i[t]=[];if(!(t in i)){i[t]=null;let n=r[t]&&r[t].parent,a=n&&e(n);a&&(i[t]=[n].concat(a))}return i[t]}),i}(e,[t])[t];return n?f(e,t,n):null}(a,n.name);if(!s)throw Error(`Icon not found: ${e}`);return s},"getRegisteredIconData"),M=(0,a.e)(async e=>{try{return await C(e),!0}catch{return!1}},"isIconAvailable"),A=(0,a.e)(async(e,t,n)=>{let a;try{a=await C(e,t?.fallbackPrefix)}catch(e){i.c.error(e),a=k}let o=function(e,t){let n,r;let i={...c,...e},a={...p,...t},o={left:i.left,top:i.top,width:i.width,height:i.height},s=i.body;[i,a].forEach(e=>{let t;let n=[],r=e.hFlip,i=e.vFlip,a=e.rotate;switch(r?i?a+=2:(n.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),n.push("scale(-1 1)"),o.top=o.left=0):i&&(n.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),n.push("scale(1 -1)"),o.top=o.left=0),a<0&&(a-=4*Math.floor(a/4)),a%=4){case 1:n.unshift("rotate(90 "+(t=o.height/2+o.top).toString()+" "+t.toString()+")");break;case 2:n.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:n.unshift("rotate(-90 "+(t=o.width/2+o.left).toString()+" "+t.toString()+")")}a%2==1&&(o.left!==o.top&&(t=o.left,o.left=o.top,o.top=t),o.width!==o.height&&(t=o.width,o.width=o.height,o.height=t)),n.length&&(s=function(e,t,n){var r,i;let a=function(e,t="defs"){let n="",r=e.indexOf("<"+t);for(;r>=0;){let i=e.indexOf(">",r),a=e.indexOf("</"+t);if(-1===i||-1===a)break;let o=e.indexOf(">",a);if(-1===o)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}(e);return r=a.defs,i=t+a.content+n,r?"<defs>"+r+"</defs>"+i:i}(s,'<g transform="'+n.join(" ")+'">',"</g>"))});let l=a.width,u=a.height,d=o.width,h=o.height;null===l?n=y(r=null===u?"1em":"auto"===u?h:u,d/h):(n="auto"===l?d:l,r=null===u?y(n,h/d):"auto"===u?h:u);let f={},g=(e,t)=>{b(t)||(f[e]=t.toString())};g("width",n),g("height",r);let m=[o.left,o.top,d,h];return f.viewBox=m.join(" "),{attributes:f,viewBox:m,body:s}}(a,t),s=function(e,t){let n=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let e in t)n+=" "+e+'="'+t[e]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}(function(e){let t;let n=[];for(;t=v.exec(e);)n.push(t[1]);if(!n.length)return e;let r="suffix"+(16777216*Math.random()|Date.now()).toString(16);
150return n.forEach(t=>{let n=function(e){e=e.replace(/[0-9]+$/,"")||"a";let t=x.get(e)||0;return x.set(e,t+1),t?`${e}${t}`:e}(t),i=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+n+r+"$3")}),e=e.replace(RegExp(r,"g"),"")}(o.body),{...o.attributes,...n});return(0,r.oO)(s,(0,r.iE)())},"getIconSVG")},86444:function(e,t,n){"use strict";n.d(t,{$m:function(){return C},iw:function(){return J},XD:function(){return Q},Cq:function(){return K},Rb:function(){return ea},SH:function(){return el},Vy:function(){return es},Ox:function(){return H},Ln:function(){return eu},be:function(){return U},R7:function(){return ec},le:function(){return P},bZ:function(){return en},VG:function(){return ei},MX:function(){return G},tf:function(){return R},w8:function(){return eo},X4:function(){return Y}});var r,i=n(62052),a=n(69571),o=n(69972),s=n(7353),l=n(15026);function u(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");let n=function(...r){let i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);let o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(u.Cache||Map),n}function c(){}u.Cache=Map;var d=n(17876),h=n(29029);function f(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}var p=n(9628);function g(e){if("object"!=typeof e||null==e)return!1;if(null===Object.getPrototypeOf(e))return!0;if("[object Object]"!==Object.prototype.toString.call(e)){let t=e[Symbol.toStringTag];return!!(null!=t&&Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable)&&e.toString()===`[object ${t}]`}let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var m=n(60688),y=n(93399);function b(e,t,n,r=new Map,i){let a=i?.(e,t,n,r);if(void 0!==a)return a;if((0,d.p)(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=b(e[a],a,n,r,i);return Object.hasOwn(e,"index")&&(t.index=e.index),Object.hasOwn(e,"input")&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;for(let[a,o]of(r.set(e,t),e))t.set(a,b(o,a,n,r,i));return t}if(e instanceof Set){let t=new Set;for(let a of(r.set(e,t),e))t.add(b(a,void 0,n,r,i));return t}if((0,p.z)(e))return e.subarray();if((0,h.f)(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=b(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||"undefined"!=typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),v(t,e,n,r,i),t}if("undefined"!=typeof File&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),v(t,e,n,r,i),t}if("undefined"!=typeof Blob&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),v(t,e,n,r,i),t}if(e instanceof Error){let t=structuredClone(e);return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,v(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),v(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),v(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),v(t,e,n,r,i),t}if("object"==typeof e&&function(e){switch((0,m.h)(e)){case y.mn:case y.a4:case y.LP:case y.bZ:case y.Vf:case y.XU:case y.yK:case y.H1:case y.Ey:case y.CP:case y.dB:case y.b7:case y.oV:case y.P4:case y.vu:case y.YA:case y.gH:case y.WL:case y.p_:case y.Mw:case y.kj:case y.Fl:return!0;default:return!1}}(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),v(t,e,n,r,i),t}return e}function v(e,t,n=e,r,i){let a=[...Object.keys(t),...f(t)];for(let o=0;o<a.length;o++){let s=a[o],l=Object.getOwnPropertyDescriptor(e,s);(null==l||l.writable)&&(e[s]=b(t[s],s,n,r,i))}}function x(e){var t;return t=(t,n,r,i)=>{let a=void 0;if(void 0!==a)return a;
150if("object"==typeof e){if("[object Object]"===(0,m.h)(e)&&"function"!=typeof e.constructor){let t={};return i.set(e,t),v(t,e,r,i),t}switch(Object.prototype.toString.call(e)){case y.oV:case y.gH:case y.Vf:{let t=new e.constructor(e?.valueOf());return v(t,e),t}case y.mn:{let t={};return v(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}},b(e,void 0,e,new Map,t)}var k=n(5604);function w(e){return"object"==typeof e&&null!==e}var _=n(68743),S=n(11725),C="​",M={curveBasis:l.$0Z,curveBasisClosed:l.Dts,curveBasisOpen:l.WQY,curveBumpX:l.qpX,curveBumpY:l.u93,curveBundle:l.tFB,curveCardinalClosed:l.OvA,curveCardinalOpen:l.dCK,curveCardinal:l.YY7,curveCatmullRomClosed:l.fGX,curveCatmullRomOpen:l.$m7,curveCatmullRom:l.zgE,curveLinear:l.c_6,curveLinearClosed:l.fxm,curveMonotoneX:l.FdL,curveMonotoneY:l.ak_,curveNatural:l.SxZ,curveStep:l.eA_,curveStepAfter:l.jsv,curveStepBefore:l.iJ},A=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,E=(0,o.e)(function(e,t){let n=T(e,/(?:init\b)|(?:initialize\b)/),r={};if(Array.isArray(n)){let e=n.map(e=>e.args);(0,i.NM)(e),r=(0,i.Yc)(r,[...e])}else r=n.args;if(!r)return;let a=(0,i.Vg)(e,t),o="config";return void 0!==r[o]&&("flowchart-v2"===a&&(a="flowchart"),r[a]=r[o],delete r[o]),r},"detectInit"),T=(0,o.e)(function(e,t=null){try{let n;let r=RegExp(`[%]{2}(?![{]${A.source})(?=[}][%]{2}).*
151`,"ig");e=e.trim().replace(r,"").replace(/'/gm,'"'),a.c.debug(`Detecting diagram directive${null!==t?" type:"+t:""} based on the text:${e}`);let o=[];for(;null!==(n=i.Zn.exec(e));)if(n.index===i.Zn.lastIndex&&i.Zn.lastIndex++,n&&!t||t&&n[1]?.match(t)||t&&n[2]?.match(t)){let e=n[1]?n[1]:n[2],t=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null;o.push({type:e,args:t})}if(0===o.length)return{type:e,args:null};return 1===o.length?o[0]:o}catch(n){return a.c.error(`ERROR: ${n.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),R=(0,o.e)(function(e){return e.replace(i.Zn,"")},"removeDirectives"),N=(0,o.e)(function(e,t){for(let[n,r]of t.entries())if(r.match(e))return n;return -1},"isSubstringInArray");function P(e,t){return e?M[`curve${e.charAt(0).toUpperCase()+e.slice(1)}`]??t:t}function L(e,t){let n=e.trim();return n?"loose"!==t.securityLevel?(0,s.N)(n):n:void 0}(0,o.e)(P,"interpolateToCurve"),(0,o.e)(L,"formatUrl");var I=(0,o.e)((e,...t)=>{let n=e.split("."),r=n.length-1,i=n[r],o=window;for(let t=0;t<r;t++)if(!(o=o[n[t]])){a.c.error(`Function name: ${e} not found in window`);return}o[i](...t)},"runFunc");function O(e,t){return e&&t?Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0}function $(e){let t;let n=0;return e.forEach(e=>{n+=O(e,t),t=e}),F(e,n/2)}function j(e){return 1===e.length?e[0]:$(e)}(0,o.e)(O,"distance"),(0,o.e)($,"traverseEdge"),(0,o.e)(j,"calcLabelPosition");var D=(0,o.e)((e,t=2)=>{let n=Math.pow(10,t);return Math.round(e*n)/n},"roundNumber"),F=(0,o.e)((e,t)=>{let n;let r=t;for(let t of e){if(n){let e=O(t,n);if(0===e)return n;if(e<r)r-=e;else{let i=r/e;if(i<=0)return n;if(i>=1)return{x:t.x,y:t.y};if(i>0&&i<1)return{x:D((1-i)*n.x+i*t.x,5),y:D((1-i)*n.y+i*t.y,5)}}}n=t}throw Error("Could not find a suitable point for the given distance")},"calculatePoint"),B=(0,o.e)((e,t,n)=>{a.c.info(`our points ${JSON.stringify(t)}`),t[0]!==n&&(t=t.reverse());let r=F(t,25),i=e?10:5,o=Math.atan2(t[0].y-r.y,t[0].x-r.x),s={x:0,y:0};return s.x=Math.sin(o)*i+(t[0].x+r.x)/2,s.y=-Math.cos(o)*i+(t[0].y+r.y)/2,s},"calcCardinalityPosition");function z(e,t,n){let r=structuredClone(n);a.c.info("our points",r),"start_left"!==t&&"start_right"!==t&&r.reverse();let i=F(r,25+e),o=10+.5*e,s=Math.atan2(r[0].y-i.y,r[0].x-i.x),l={x:0,y:0};return"start_left"===t?(l.x=Math.sin(s+Math.PI)*o+(r[0].x+i.x)/2,l.y=-Math.cos(s+Math.PI)*o+(r[0].y+i.y)/2):"end_right"===t?(l.x=Math.sin(s-Math.PI)*o+(r[0].x+i.x)/2-5,l.y=-Math.cos(s-Math.PI)*o+(r[0].y+i.y)/2-5):"end_left"===t?(l.x=Math.sin(s)*o+(r[0].x+i.x)/2-5,l.y=-Math.cos(s)*o+(r[0].y+i.y)/2-5):(l.x=Math.sin(s)*o+(r[0].x+i.x)/2,l.y=-Math.cos(s)*o+(r[0].y+i.y)/2),l}function U(e){let t="",n="";for(let r of e)void 0!==r&&(r.startsWith("color:")||r.startsWith("text-align:")?n=n+r+";":t=t+r+";");return{style:t,labelStyle:n}}(0,o.e)(z,"calcTerminalLabelPosition"),(0,o.e)(U,"getStylesFromArray");var W=0,H=(0,o.e)(()=>(W++,"id-"+Math.random().toString(36).substr(2,12)+"-"+W),"generateId");function q(e){let t="",n="0123456789abcdef",r=n.length;for(let i=0;i<e;i++)t+=n.charAt(Math.floor(Math.random()*r));return t}(0,o.e)(q,"makeRandomHex");var G=(0,o.e)(e=>q(e.length),"random"),V=(0,o.e)(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}}
151,"getTextObj"),Z=(0,o.e)(function(e,t){let n=t.text.replace(i.SY.lineBreakRegex," "),[,r]=ei(t.fontSize),a=e.append("text");a.attr("x",t.x),a.attr("y",t.y),a.style("text-anchor",t.anchor),a.style("font-family",t.fontFamily),a.style("font-size",r),a.style("font-weight",t.fontWeight),a.attr("fill",t.fill),void 0!==t.class&&a.attr("class",t.class);let o=a.append("tspan");return o.attr("x",t.x+2*t.textMargin),o.attr("fill",t.fill),o.text(n),a},"drawSimpleText"),Y=u((e,t,n)=>{if(!e||(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},n),i.SY.lineBreakRegex.test(e)))return e;let r=e.split(" ").filter(Boolean),a=[],o="";return r.forEach((e,i)=>{let s=K(`${e} `,n),l=K(o,n);if(s>t){let{hyphenatedStrings:r,remainingWord:i}=X(e,t,"-",n);a.push(o,...r),o=i}else l+s>=t?(a.push(o),o=e):o=[o,e].filter(Boolean).join(" ");i+1===r.length&&a.push(o)}),a.filter(e=>""!==e).join(n.joinWith)},(e,t,n)=>`${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`),X=u((e,t,n="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);let i=[...e],a=[],o="";return i.forEach((e,s)=>{let l=`${o}${e}`;if(K(l,r)>=t){let e=i.length===s+1,t=`${l}${n}`;a.push(e?l:t),o=""}else o=l}),{hyphenatedStrings:a,remainingWord:o}},(e,t,n="-",r)=>`${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function Q(e,t){return J(e,t).height}function K(e,t){return J(e,t).width}(0,o.e)(Q,"calculateTextHeight"),(0,o.e)(K,"calculateTextWidth");var J=u((e,t)=>{let{fontSize:n=12,fontFamily:r="Arial",fontWeight:a=400}=t;if(!e)return{width:0,height:0};let[,o]=ei(n),s=e.split(i.SY.lineBreakRegex),u=[],c=(0,l.Ys)("body");if(!c.remove)return{width:0,height:0,lineHeight:0};let d=c.append("svg");for(let e of["sans-serif",r]){let t=0,n={width:0,height:0,lineHeight:0};for(let r of s){let i=V();i.text=r||C;let s=Z(d,i).style("font-size",o).style("font-weight",a).style("font-family",e),l=(s._groups||s)[0][0].getBBox();if(0===l.width&&0===l.height)throw Error("svg element not in render tree");n.width=Math.round(Math.max(n.width,l.width)),t=Math.round(l.height),n.height+=t,n.lineHeight=Math.round(Math.max(n.lineHeight,t))}u.push(n)}d.remove();let h=isNaN(u[1].height)||isNaN(u[1].width)||isNaN(u[1].lineHeight)||u[0].height>u[1].height&&u[0].width>u[1].width&&u[0].lineHeight>u[1].lineHeight?0:1;return u[h]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),ee=class{constructor(e=!1,t){this.count=0,this.count=t?t.length:0,this.next=e?()=>this.count++:()=>Date.now()}static{(0,o.e)(this,"InitIDGenerator")}},et=(0,o.e)(function(e){return r=r||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),r.innerHTML=e,unescape(r.textContent)},"entityDecode");function en(e){return"str"in e}(0,o.e)(en,"isDetailedError");var er=(0,o.e)((e,t,n,r)=>{if(!r)return;let i=e.node()?.getBBox();i&&e.append("text").text(r).attr("text-anchor","middle").attr("x",i.x+i.width/2).attr("y",-n).attr("class",t)},"insertTitle"),ei=(0,o.e)(e=>{if("number"==typeof e)return[e,e+"px"];let t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");function ea(e,t){return function(e,...t){return function(e,...t){let n=t.slice(0,-1),r=t[t.length-1],i=e;for(let e=0;e<n.length;e++)i=function e(t,n,r,i){if((0,d.p)(t)&&(t=Object(t)),null==n||"object"!=typeof n)return t;if(i.has(n))return function(e){if((0,d.p)(e))return e;if(Array.isArray(e)||(0,h.f)(e)||e instanceof ArrayBuffer||"undefined"!=typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e);if(null==t)return Object.assign(Object.create(t),e);let n=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new n(e);if(e instanceof RegExp){let t=new n(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new n(e.buffer.slice(0));if(e instanceof Error){let t;return e instanceof AggregateError?t=new n(e.errors,e.message,{cause:e.cause}):t=new n(e.message,{cause:e.cause}),t.stack=e.stack,Object.assign(t,e),t}return"undefined"!=typeof File&&e instanceof File?new n([e],e.name,{type:e.type,lastModified:e.lastModified}):"object"==typeof e?Object.assign(Object.create(t),e):e}(i.get(n));if(i.set(n,t),Array.isArray(n)){n=n.slice();for(let e=0;e<n.length;e++)n[e]=n[e]??void 0}let a=[...Object.keys(n),...f(n)];for(let s=0;s<a.length;s++){let l=a[s];if("__proto__"===l)continue;let u=n[l],c=t[l];if((0,k.O)(u)&&(u={...u}),(0,k.O)(c)&&(c={...c}),(0,p.z)(u)&&(u=x(u)),Array.isArray(u)){if(Array.isArray(c)){let e=[],t=Reflect.ownKeys(c);for(let n=0;n<t.length;n++){let r=t[n];e[r]=c[r]}c=e}else{var o;if(w(o=c)&&(0,_.z)(o)){let e=[];for(let t=0;t<c.length;t++)e[t]=c[t];c=e}else c=[]}}let d=r(c,u,l,t,n,i);void 0!==d?t[l]=d:Array.isArray(u)?t[l]=e(c,u,r,i):w(c)&&w(u)&&(g(c)||g(u)||(0,S.f)(c)||(0,S.f)(u))?t[l]=e(c,u,r,i):null==c&&g(u)?t[l]=e({},u,r,i):null==c&&(0,S.f)(u)?t[l]=x(u):(void 0===c||void 0!==u)&&(t[l]=u)}return t}(i,n[e],r,new Map);return i}(e,...t,c)}({},e,t)}(0,o.e)(ea,"cleanAndMerge");var eo={assignWithDepth:i.Yc,wrapLabel:Y,calculateTextHeight:Q,calculateTextWidth:K,calculateTextDimensions:J,cleanAndMerge:ea,detectInit:E,detectDirective:T,isSubstringInArray:N,interpolateToCurve:P,calcLabelPosition:j,calcCardinalityPosition:B,calcTerminalLabelPosition:z,formatUrl:L,getStylesFromArray:U,generateId:H,random:G,runFunc:I,entityDecode:et,insertTitle:er,isLabelCoordinateInPath:ed,parseFontSize:ei,InitIDGenerator:ee},es=(0,o.e)(function(e){let t=e;return(t=(t=t.replace(/style.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)})).replace(/classDef.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)})).replace(/#\w+;/g,function(e){let t=e.substring(1,e.length-1);return/^\+?\d+$/.test(t)?"fl\xb0\xb0"+t+"\xb6\xdf":"fl\xb0"+t+"\xb6\xdf"})},"encodeEntities"),el=(0,o.e)(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),eu=(0,o.e)((e,t,{counter:n=0,prefix:r,suffix:i},a)=>a||`${r?`${r}_`:""}${e}_${t}_${n}${i?`_${i}`:""}`,"getEdgeId");function ec(e){return e??null}function ed(e,t){let n=Math.round(e.x),r=Math.round(e.y),i=t.replace(/(\d+\.\d+)/g,e=>Math.round(parseFloat(e)).toString());return i.includes(n.toString())||i.includes(r.toString())}(0,o.e)(ec,"handleUndefinedAttr"),(0,o.e)(ed,"isLabelCoordinateInPath")},95138:function(e,t,n){"use strict";n.d(t,{L:function(){return o},i:function(){return s}});var r=n(86444),i=n(62052),a=n(69972),o=(0,a.e)(({flowchart:e})=>
151{let t=e?.subGraphTitleMargin?.top??0,n=e?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:n,subGraphTitleTotalMargin:t+n}},"getSubGraphTitleMargins");async function s(e,t){let n=e.getElementsByTagName("img");if(!n||0===n.length)return;let o=""===t.replace(/<img[^>]*>/g,"").trim();await Promise.all([...n].map(e=>new Promise(t=>{function n(){if(e.style.display="flex",e.style.flexDirection="column",o){let t=(0,i.nV)().fontSize?(0,i.nV)().fontSize:window.getComputedStyle(document.body).fontSize,[n=i.vZ.fontSize]=(0,r.VG)(t),a=5*n+"px";e.style.minWidth=a,e.style.maxWidth=a}else e.style.width="100%";t(e)}(0,a.e)(n,"setupImage"),setTimeout(()=>{e.complete&&n()}),e.addEventListener("error",n),e.addEventListener("load",n)})))}(0,a.e)(s,"configureLabelImages")},77176:function(e,t,n){"use strict";n.d(t,{Q:function(){return eD},r:function(){return eW}});var r=n(34167),i=n(86444),a=n(62052),o=n(69571),s=n(69972),l=n(15026);function u(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var c=u(),d={exec:()=>null};function h(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(p.caret,"$1"),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var f=(()=>{try{return RegExp("(?<=1)(?<!1)"),!0}catch{return!1}})(),p={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[	 ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},g=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,m=/(?:[*+-]|\d{1,9}[.)])/,y=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,b=h(y).replace(/bull/g,m).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),v=h(y).replace(/bull/g,m).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),x=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,k=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,w=h(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",k).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),_=h(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,m).getRegex(),S="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",C=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,M=h("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>
151)[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$))","i").replace("comment",C).replace("tag",S).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),A=h(x).replace("hr",g).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",S).getRegex(),E={blockquote:h(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",A).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:w,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:g,html:M,lheading:b,list:_,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:A,table:d,text:/^[^\n]+/},T=h("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",g).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}	)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",S).getRegex(),R={...E,lheading:v,table:T,paragraph:h(x).replace("hr",g).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",T).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",S).getRegex()},N={...E,html:h(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",C).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:d,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:h(x).replace("hr",g).replace("heading",` *#{1,6} *[^
152]`).replace("lheading",b).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},P=/^( {2,}|\\)\n(?!\s*$)/,L=/[\p{P}\p{S}]/u,I=/[\s\p{P}\p{S}]/u,O=/[^\s\p{P}\p{S}]/u,$=h(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,I).getRegex(),j=/(?!~)[\p{P}\p{S}]/u,D=h(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",f?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),F=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,B=h(F,"u").replace(/punct/g,L).getRegex(),z=h(F,"u").replace(/punct/g,j).getRegex(),U="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",W=h(U,"gu").replace(/notPunctSpace/g,O).replace(/punctSpace/g,I).replace(/punct/g,L).getRegex(),H=h(U,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,j).getRegex(),q=h("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,O).replace(/punctSpace/g,I).replace(/punct/g,L).getRegex(),G=h(/\\(punct)/,"gu").replace(/punct/g,L).getRegex(),V=h(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[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])?)+(?![-_])/).getRegex(),Z=h(C).replace("(?:-->|$)","-->").getRegex(),Y=h("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Z).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),X=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Q=h(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",X).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),K=h(/^!?\[(label)\]\[(ref)\]/).replace("label",X).replace("ref",k).getRegex(),J=h(/^!?\[(ref)\](?:\[\])?/).replace("ref",k).getRegex(),ee=h("reflink|nolink(?!\\()","g").replace("reflink",K).replace("nolink",J).getRegex(),et=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,en={_backpedal:d,anyPunctuation:G,autolink:V,blockSkip:D,br:P,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:d,emStrongLDelim:B,emStrongRDelimAst:W,emStrongRDelimUnd:q,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:Q,nolink:J,punctuation:$,reflink:K,reflinkSearch:ee,tag:Y,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:d},er={...en,link:h(/^!?\[(label)\]\((.*?)\)/).replace("label",X).getRegex(),reflink:h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",X).getRegex()},ei={...en,emStrongRDelimAst:H,emStrongLDelim:z,url:h(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",et).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:h(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",et).getRegex()},ea={...ei,br:h(P).replace("{2,}","*").getRegex(),text:h(ei.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},eo={normal:E,gfm:R,pedantic:N},es={normal:en,gfm:ei,breaks:ea,pedantic:er},el={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},eu=e=>el[e];function ec(e,t){if(t){if(p.escapeTest.test(e))return e.replace(p.escapeReplace,eu)}else if(p.escapeTestNoEncode.test(e))return e.replace(p.escapeReplaceNoEncode,eu);return e}function ed(e){try{e=encodeURI(e).replace(p.percentDecode,"%")}catch{return null}return e}function eh(e,t){let n=e.replace(p.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(p.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t){if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("")}for(;r<n.length;r++)n[r]=n[r].trim().replace(p.slashPipe,"|");return n}function ef(e,t,n){let r=e.length;if(0===r)return"";let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a!==t||n){if(a!==t&&n)i++;else break}else i++}return e.slice(0,r-i)}function ep(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,l}var eg=class{options;rules;lexer;constructor(e){this.options=e||c}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:ef(e,`
153`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let i=r[1];return t.split(`
154`).map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
155`)}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=ef(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:ef(t[0],`
156`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=ef(t[0],`
157`).split(`
158`),n="",r="",i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(t)break;else a.push(e[o]);e=e.slice(o);let s=a.join(`
159`),l=s.replace(this.rules.other.blockquoteSetextReplace,`
160    $1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
161${s}`:s,r=r?`${r}
162${l}`:l;let u=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,i,!0),this.lexer.state.top=u,0===e.length)break;let c=i.at(-1);if(c?.type==="code")break;if(c?.type==="blockquote"){let t=c.raw+`
163`+e.join(`
164`),a=this.blockquote(t);i[i.length-1]=a,n=n.substring(0,n.length-c.raw.length)+a.raw,r=r.substring(0,r.length-c.text.length)+a.text;break}if(c?.type==="list"){let t=c.raw+`
165`+e.join(`
166`),a=this.list(t);i[i.length-1]=a,n=n.substring(0,n.length-c.raw.length)+a.raw,r=r.substring(0,r.length-c.raw.length)+a.raw,e=t.substring(i.at(-1).raw.length).split(`
167`);continue}}return{type:"blockquote",raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);
167if(t){let n=t[1].trim(),r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r="",s="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let l=t[2].split(`
168`,1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),u=e.split(`
169`,1)[0],c=!l.trim(),d=0;if(this.options.pedantic?(d=2,s=l.trimStart()):c?d=t[1].length+1:(d=(d=t[2].search(this.rules.other.nonSpaceChar))>4?1:d,s=l.slice(d),d+=t[1].length),c&&this.rules.other.blankLine.test(u)&&(r+=u+`
170`,e=e.substring(u.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d);for(;e;){let h=e.split(`
171`,1)[0],f;if(u=h,f=this.options.pedantic?u=u.replace(this.rules.other.listReplaceNesting,"  "):u.replace(this.rules.other.tabCharGlobal,"    "),i.test(u)||a.test(u)||o.test(u)||t.test(u)||n.test(u))break;if(f.search(this.rules.other.nonSpaceChar)>=d||!u.trim())s+=`
172`+f.slice(d);else{if(c||l.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||i.test(l)||a.test(l)||n.test(l))break;s+=`
173`+u}c||u.trim()||(c=!0),r+=h+`
174`,e=e.substring(h.length+1),l=f.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0));let h=null,f;this.options.gfm&&(h=this.rules.other.listIsTask.exec(s))&&(f="[ ] "!==h[0],s=s.replace(this.rules.other.listReplaceTask,"")),i.items.push({type:"list_item",raw:r,task:!!h,checked:f,loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(!s)return;s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd(),i.raw=i.raw.trimEnd();for(let e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){let t=i.items[e].tokens.filter(e=>"space"===e.type),n=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));i.loose=n}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=eh(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
175`):[],a={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push("right"):this.rules.other.tableAlignCenter.test(e)?a.align.push("center"):this.rules.other.tableAlignLeft.test(e)?a.align.push("left"):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(eh(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
176`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=ef(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(")"))return -1;let n=0;for(let t=0;t<e.length;t++)if("\\"===e[t])t++;else if("("===e[t])n++;else if(")"===e[t]&&--n<0)return t;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),ep(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return ep(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,l="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=l.exec(t));){if(!(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6]))continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if((o-=a)>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,l=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let u=l.slice(2,-2);return{type:"strong",raw:l,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return n="@"===t[2]?"mailto:"+(e=t[1]):e=t[1],{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])n="mailto:"+(e=t[0]);else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(r!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},em=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||c,this.options.tokenizer=this.options.tokenizer||new eg,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:p,block:eo.normal,inline:es.normal};this.options.pedantic?(t.block=eo.pedantic,t.inline=es.pedantic):this.options.gfm&&(t.block=eo.gfm,this.options.breaks?t.inline=es.breaks:t.inline=es.gfm),this.tokenizer.rules=t}static get rules(){return{block:eo,inline:es}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(p.carriageReturn,`
177`),this.blockTokens(e,this.tokens);for(let e=0;
177e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(p.tabCharGlobal,"    ").replace(p.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);1===r.raw.length&&void 0!==n?n.raw+=`
178`:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(`
179`)?"":`
180`)+r.raw,n.text+=`
181`+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if((r=this.tokenizer.fences(e))||(r=this.tokenizer.heading(e))||(r=this.tokenizer.hr(e))||(r=this.tokenizer.blockquote(e))||(r=this.tokenizer.list(e))||(r=this.tokenizer.html(e))){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(`
182`)?"":`
183`)+r.raw,n.text+=`
184`+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if((r=this.tokenizer.table(e))||(r=this.tokenizer.lheading(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let a=t.at(-1);n&&a?.type==="paragraph"?(a.raw+=(a.raw.endsWith(`
185`)?"":`
186`)+r.raw,a.text+=`
187`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="text"?(n.raw+=(n.raw.endsWith(`
188`)?"":`
189`)+r.raw,n.text+=`
190`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,r=e,i=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(r));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.anyPunctuation.exec(r));)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(r));)n=i[2]?i[2].length:0,r=r.slice(0,i.index+n)+"["+"a".repeat(i[0].length-n-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let a=!1,o="";for(;e;){let n;if(a||(o=""),a=!1,this.options.extensions?.inline?.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))continue;if((n=this.tokenizer.escape(e))||(n=this.tokenizer.tag(e))||(n=this.tokenizer.link(e))){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length);let r=t.at(-1);"text"===n.type&&r?.type==="text"?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if((n=this.tokenizer.emStrong(e,r,o))||(n=this.tokenizer.codespan(e))||(n=this.tokenizer.br(e))||(n=this.tokenizer.del(e))||(n=this.tokenizer.autolink(e))||!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(i)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(o=n.raw.slice(-1)),a=!0;let r=t.at(-1);r?.type==="text"?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}},ey=class{options;parser;constructor(e){this.options=e||c}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(p.notSpaceStart)?.[0],i=e.replace(p.endingNewline,"")+`
191`;return r?'<pre><code class="language-'+ec(r)+'">'+(n?i:ec(i,!0))+`</code></pre>
192`:"<pre><code>"+(n?i:ec(i,!0))+`</code></pre>
193`}blockquote({tokens:e}){return`<blockquote>
194${this.parser.parse(e)}</blockquote>
195`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
196`}hr(e){return`<hr>
197`}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+`>
198`+r+"</"+i+`>
199`}listitem(e){let t="";if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type==="paragraph"?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=n+" "+ec(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
200`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
201`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n="";for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
202<thead>
203`+t+`</thead>
204`+r+`</table>
205`}tablerow({text:e}){return`<tr>
206${e}</tr>
207`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
208`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${ec(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=ed(e);if(null===i)return r;let a='<a href="'+(e=i)+'"';return t&&(a+=' title="'+ec(t)+'"'),a+=">"+r+"</a>"}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=ed(e);if(null===i)return ec(n);e=i;let a=`<img src="${e}" alt="${n}"`;return t&&(a+=` title="${ec(t)}"`),a+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ec(e.text)}},eb=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},ev=class e{options;renderer;textRenderer;constructor(e){this.options=e||c,this.options.renderer=this.options.renderer||new ey,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new eb}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(i.type)){n+=e||"";continue}}switch(i.type){case"space":n+=this.renderer.space(i);continue;case"hr":n+=this.renderer.hr(i);continue;case"heading":n+=this.renderer.heading(i);continue;case"code":n+=this.renderer.code(i);continue;case"table":n+=this.renderer.table(i);continue;case"blockquote":n+=this.renderer.blockquote(i);continue;case"list":n+=this.renderer.list(i);continue;case"html":n+=this.renderer.html(i);continue;case"def":n+=this.renderer.def(i);continue;case"paragraph":n+=this.renderer.paragraph(i);continue;case"text":{let a=i,o=this.renderer.text(a);for(;r+1<e.length&&"text"===e[r+1].type;)a=e[++r],o+=`
209`+this.renderer.text(a);t?n+=this.renderer.paragraph({type:"paragraph",raw:o,text:o,tokens:[{type:"text",raw:o,text:o,escaped:!0}]}):n+=o;continue}default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}parseInline(e,t=this.renderer){let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=e||"";continue}}switch(i.type){case"escape":case"text":n+=t.text(i);break;case"html":n+=t.html(i);break;case"link":n+=t.link(i);break;case"image":n+=t.image(i);break;case"strong":n+=t.strong(i);break;case"em":n+=t.em(i);break;case"codespan":n+=t.codespan(i);break;case"br":n+=t.br(i);break;case"del":n+=t.del(i);break;default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}},ex=class{options;block;constructor(e){this.options=e||c}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?em.lex:em.lexInline}provideParser(){return this.block?ev.parse:ev.parseInline}},ek=new class{defaults=u();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ev;Renderer=ey;TextRenderer=eb;Lexer=em;Tokenizer=eg;Hooks=ex;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":for(let e of r.header)n=n.concat(this.walkTokens(e.tokens,t));for(let e of r.rows)for(let r of e)n=n.concat(this.walkTokens(r.tokens,t));break;case"list":n=n.concat(this.walkTokens(r.items,t));break;default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};
209return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new ey(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=e.renderer[n],i=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new eg(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=e.tokenizer[n],i=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new ex;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=e.hooks[n],i=t[n];ex.passThroughHooks.has(n)?t[n]=e=>{if(this.defaults.async&&ex.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await r.call(t,e);return i.call(t,n)})();let a=r.call(t,e);return i.call(t,a)}:t[n]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await r.apply(t,e);return!1===n&&(n=await i.apply(t,e)),n})();let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return em.lex(e,t??this.defaults)}parser(e,t){return ev.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)return a(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return a(Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return a(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await (i.hooks?await i.hooks.provideLexer():e?em.lex:em.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await (i.hooks?await i.hooks.provideParser():e?ev.parse:ev.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer():e?em.lex:em.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser():e?ev.parse:ev.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
210Please report this to https://github.com/markedjs/marked.`,e){let e="<p>An error occurred:</p><pre>"+ec(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function ew(e,t){return ek.parse(e,t)}ew.options=ew.setOptions=function(e){return ek.setOptions(e),ew.defaults=ek.defaults,c=ew.defaults,ew},ew.getDefaults=u,ew.defaults=c,ew.use=function(...e){return ek.use(...e),ew.defaults=ek.defaults,c=ew.defaults,ew},ew.walkTokens=function(e,t){return ek.walkTokens(e,t)},ew.parseInline=ek.parseInline,ew.Parser=ev,ew.parser=ev.parse,ew.Renderer=ey,ew.TextRenderer=eb,ew.Lexer=em,ew.lexer=em.lex,ew.Tokenizer=eg,ew.Hooks=ex,ew.parse=ew,ew.options,ew.setOptions,ew.use,ew.walkTokens,ew.parseInline,ev.parse,em.lex;var e_=n(51862);function eS(e,{markdownAutoWrap:t}){let n=e.replace(/<br\/>/g,"\n").replace(/\n{2,}/g,"\n");return(0,e_.Z)(n)}function eC(e){return e.split(/\\n|\n|<br\s*\/?>/gi).map(e=>e.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(e=>({content:e,type:"normal"}))??[])}function eM(e,t={}){let n=eS(e,t),r=ew.lexer(n),i=[[]],a=0;function o(e,t="normal"){"text"===e.type?e.text.split("\n").forEach((e,n)=>
210{0!==n&&(a++,i.push([])),e.split(" ").forEach(e=>{(e=e.replace(/&#39;/g,"'"))&&i[a].push({content:e,type:t})})}):"strong"===e.type||"em"===e.type?e.tokens.forEach(t=>{o(t,e.type)}):"html"===e.type&&i[a].push({content:e.text,type:"normal"})}return(0,s.e)(o,"processNode"),r.forEach(e=>{"paragraph"===e.type?e.tokens?.forEach(e=>{o(e)}):"html"===e.type?i[a].push({content:e.text,type:"normal"}):i[a].push({content:e.raw,type:"normal"})}),i}function eA(e){return e?`<p>${e.replace(/\\n|\n/g,"<br />")}</p>`:""}function eE(e,{markdownAutoWrap:t}={}){let n=ew.lexer(e);function r(e){if("text"===e.type)return!1===t?e.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):e.text.replace(/\n */g,"<br/>");if("strong"===e.type)return`<strong>${e.tokens?.map(r).join("")}</strong>`;if("em"===e.type)return`<em>${e.tokens?.map(r).join("")}</em>`;if("paragraph"===e.type)return`<p>${e.tokens?.map(r).join("")}</p>`;if("space"===e.type)return"";if("html"===e.type)return`${e.text}`;if("escape"===e.type)return e.text;return o.c.warn(`Unsupported markdown: ${e.type}`),e.raw}return(0,s.e)(r,"output"),n.map(r).join("")}function eT(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(e=>e.segment):[...e]}function eR(e,t){return eN(e,[],eT(t.content),t.type)}function eN(e,t,n,r){if(0===n.length)return[{content:t.join(""),type:r},{content:"",type:r}];let[i,...a]=n,o=[...t,i];return e([{content:o.join(""),type:r}])?eN(e,o,a,r):(0===t.length&&i&&(t.push(i),n.shift()),[{content:t.join(""),type:r},{content:n.join(""),type:r}])}function eP(e,t){if(e.some(({content:e})=>e.includes("\n")))throw Error("splitLineToFitWidth does not support newlines in the line");return eL(e,t)}function eL(e,t,n=[],r=[]){if(0===e.length)return r.length>0&&n.push(r),n.length>0?n:[];let i="";" "===e[0].content&&(i=" ",e.shift());let a=e.shift()??{content:" ",type:"normal"},o=[...r];if(""!==i&&o.push({content:i,type:"normal"}),o.push(a),t(o))return eL(e,t,n,o);if(r.length>0)n.push(r),e.unshift(a);else if(a.content){let[r,i]=eR(t,a);n.push([r]),i.content&&e.unshift(i)}return eL(e,t,n)}function eI(e,t){t&&e.attr("style",t)}async function eO(e,t,n,r,i=!1,o=(0,a.iE)()){let s=e.append("foreignObject");s.attr("width",`${Math.min(10*n,16384)}px`),s.attr("height",`${Math.min(10*n,16384)}px`);let l=s.append("xhtml:div"),u=(0,a.l0)(t.label)?await (0,a.ur)(t.label.replace(a.SY.lineBreakRegex,"\n"),o):(0,a.oO)(t.label,o),c=t.isNode?"nodeLabel":"edgeLabel",d=l.append("span");d.html(u),eI(d,t.labelStyle),d.attr("class",`${c} ${r}`),eI(l,t.labelStyle),l.style("display","table-cell"),l.style("white-space","nowrap"),l.style("line-height","1.5"),n!==Number.POSITIVE_INFINITY&&(l.style("max-width",n+"px"),l.style("text-align","center")),l.attr("xmlns","http://www.w3.org/1999/xhtml"),i&&l.attr("class","labelBkg");let h=l.node().getBoundingClientRect();return h.width===n&&(l.style("display","table"),l.style("white-space","break-spaces"),l.style("width",n+"px"),h=l.node().getBoundingClientRect()),s.node()}function e$(e,t,n,r=!1){let i=e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*n-.1+"em").attr("dy",n+"em");return r&&i.attr("text-anchor","middle"),i}function ej(e,t,n){let r=e.append("text"),i=e$(r,1,t);ez(i,n);let a=i.node().getComputedTextLength();return r.remove(),a}function eD(e,t,n){let r=e.append("text"),i=e$(r,1,t);ez(i,[{content:n,type:"normal"}]);let a=i.node()?.getBoundingClientRect();return a&&r.remove(),a}function eF(e,t,n,r=!1,i=!1){let a=t.append("g"),o=a.insert("rect").attr("class","background").attr("style","stroke: none"),l=a.append("text").attr("y","-10.1");i&&l.attr("text-anchor","middle");let u=0;for(let t of n){let n=(0,s.e)(t=>ej(a,1.1,t)<=e,"checkWidth");for(let e of n(t)?[t]:eP(t,n))ez(e$(l,u,1.1,i),e),u++}if(!r)return l.node();{let e=l.node().getBBox();return o.attr("x",e.x-2).attr("y",e.y-2).attr("width",e.width+4).attr("height",e.height+4),a.node()}}function eB(e){return e.replace(/&(amp|lt|gt);/g,(e,t)=>{switch(t){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return e}})}function ez(e,t){e.text(""),t.forEach((t,n)=>{let r=e.append("tspan").attr("font-style","em"===t.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===t.type?"bold":"normal");0===n?r.text(eB(t.content)):r.text(" "+eB(t.content))})}async function eU(e,t={}){let n=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(e,i,o)=>(n.push((async()=>{let n=`${i}:${o}`;return await (0,r.sO)(n)?await (0,r.s4)(n,void 0,{class:"label-icon"}):`<i class='${(0,a.oO)(e,t).replace(":"," ")}'></i>`})()),e));let i=await Promise.all(n);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}
210(0,s.e)(eS,"preprocessMarkdown"),(0,s.e)(eC,"nonMarkdownToLines"),(0,s.e)(eM,"markdownToLines"),(0,s.e)(eA,"nonMarkdownToHTML"),(0,s.e)(eE,"markdownToHTML"),(0,s.e)(eT,"splitTextToChars"),(0,s.e)(eR,"splitWordToFitWidth"),(0,s.e)(eN,"splitWordToFitWidthRecursion"),(0,s.e)(eP,"splitLineToFitWidth"),(0,s.e)(eL,"splitLineToFitWidthRecursion"),(0,s.e)(eI,"applyStyle"),(0,s.e)(eO,"addHtmlSpan"),(0,s.e)(e$,"createTspan"),(0,s.e)(ej,"computeWidthOfText"),(0,s.e)(eD,"computeDimensionOfText"),(0,s.e)(eF,"createFormattedText"),(0,s.e)(eB,"decodeHTMLEntities"),(0,s.e)(ez,"updateTextContentAndStyles"),(0,s.e)(eU,"replaceIconSubstring");var eW=(0,s.e)(async(e,t="",{style:n="",isTitle:r=!1,classes:s="",useHtmlLabels:u=!0,markdown:c=!0,isNode:d=!0,width:h=200,addSvgBackground:f=!1}={},p)=>{if(o.c.debug("XYZ createText",t,n,r,s,u,d,"addSvgBackground: ",f),u){let r=c?eE(t,p):eA(t),o=await eU((0,i.SH)(r),p),l=t.replace(/\\\\/g,"\\"),u={isNode:d,label:(0,a.l0)(t)?l:o,labelStyle:n.replace("fill:","color:")};return await eO(e,u,h,s,f,p)}{let a=(0,i.SH)(t.replace(/<br\s*\/?>/g,"<br/>")),o=eF(h,e,c?eM(a.replace("<br>","<br/>"),p):eC(a),!!t&&f,!d);if(d){/stroke:/.exec(n)&&(n=n.replace("stroke:","lineColor:"));let e=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,l.Ys)(o).attr("style",e)}else{let e=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");(0,l.Ys)(o).select("rect").attr("style",e.replace(/background:/g,"fill:"));let t=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,l.Ys)(o).select("text").attr("style",t)}return r?(0,l.Ys)(o).selectAll("tspan.text-outer-tspan").classed("title-row",!0):(0,l.Ys)(o).selectAll("tspan.text-outer-tspan").classed("row",!0),o}},"createText")},70683:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});var r=n(62052),i=n(69972),a=n(15026),o=(0,i.e)(e=>{let{securityLevel:t}=(0,r.nV)(),n=(0,a.Ys)("body");if("sandbox"===t){let t=(0,a.Ys)(`#i${e}`),r=t.node()?.contentDocument??document;n=(0,a.Ys)(r.body)}return n.select(`#${e}`)},"selectSvgElement")},69571:function(e,t,n){"use strict";n.d(t,{U:function(){return s},c:function(){return o}});var r=n(69972),i=n(6509),a={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},o={trace:(0,r.e)((...e)=>{},"trace"),debug:(0,r.e)((...e)=>{},"debug"),info:(0,r.e)((...e)=>{},"info"),warn:(0,r.e)((...e)=>{},"warn"),error:(0,r.e)((...e)=>{},"error"),fatal:(0,r.e)((...e)=>{},"fatal")},s=(0,r.e)(function(e="fatal"){let t=a.fatal;"string"==typeof e?e.toLowerCase() in a&&(t=a[e]):"number"==typeof e&&(t=e),o.trace=()=>{},o.debug=()=>{},o.info=()=>{},o.warn=()=>{},o.error=()=>{},o.fatal=()=>{},t<=a.fatal&&(o.fatal=console.error?console.error.bind(console,l("FATAL"),"color: orange"):console.log.bind(console,"\x1b[35m",l("FATAL"))),t<=a.error&&(o.error=console.error?console.error.bind(console,l("ERROR"),"color: orange"):console.log.bind(console,"\x1b[31m",l("ERROR"))),t<=a.warn&&(o.warn=console.warn?console.warn.bind(console,l("WARN"),"color: orange"):console.log.bind(console,`\x1b[33m`,l("WARN"))),t<=a.info&&(o.info=console.info?console.info.bind(console,l("INFO"),"color: lightblue"):console.log.bind(console,"\x1b[34m",l("INFO"))),t<=a.debug&&(o.debug=console.debug?console.debug.bind(console,l("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",l("DEBUG"))),t<=a.trace&&(o.trace=console.debug?console.debug.bind(console,l("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",l("TRACE")))},"setLogLevel"),l=(0,r.e)(e=>{let t=i().format("ss.SSS");return`%c${t} : ${e} : `},"format")},69972:function(e,t,n){"use strict";n.d(t,{e:function(){return i},r:function(){return a}});var r=Object.defineProperty,i=(e,t)=>r(e,"name",{value:t,configurable:!0}),a=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})}},5453:function(e,t,n){"use strict";n.d(t,{A:function(){return t$},z:function(){return tj}});var r,i=n(69972);function a(e){return null==e}function o(e){return"object"==typeof e&&null!==e}function s(e,t){var n,r="";for(n=0;n<t;n+=1)r+=e;return r}function l(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e}(0,i.e)(a,"isNothing"),(0,i.e)(o,"isObject"),(0,i.e)(function(e){return Array.isArray(e)?e:a(e)?[]:[e]},"toArray"),(0,i.e)(function(e,t){var n,r,i,a;if(t)for(n=0,r=(a=Object.keys(t)).length;n<r;n+=1)e[i=a[n]]=t[i];return e},"extend"),(0,i.e)(s,"repeat"),(0,i.e)(l,"isNegativeZero");var u={isNothing:a,isObject:o,repeat:s,isNegativeZero:l};function c(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+="\n\n"+e.mark.snippet),r+" "+n):r}function d(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=c(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||""}function h(e,t,n,r,i){var a="",o="",s=Math.floor(i/2)-1;return r-t>s&&(t=r-s+(a=" ... ").length),n-r>s&&(n=r+s-(o=" ...").length),{str:a+e.slice(t,n).replace(/\t/g,"→")+o,pos:r-t+a.length}}function f(e,t){return u.repeat(" ",t-e.length)+e}function p(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],a=-1;o=n.exec(e.buffer);)i.push(o.index),r.push(o.index+o[0].length),e.position<=o.index&&a<0&&(a=r.length-2);a<0&&(a=r.length-1);var o,s,l,c="",d=Math.min(e.line+t.linesAfter,i.length).toString().length,p=t.maxLength-(t.indent+d+3);for(s=1;s<=t.linesBefore&&!(a-s<0);s++)l=h(e.buffer,r[a-s],i[a-s],e.position-(r[a]-r[a-s]),p),c=u.repeat(" ",t.indent)+f((e.line-s+1).toString(),d)+" | "+l.str+"\n"+c;for(l=h(e.buffer,r[a],i[a],e.position,p),c+=u.repeat(" ",t.indent)+f((e.line+1).toString(),d)+" | "+l.str+"\n"+u.repeat("-",t.indent+d+3+l.pos)+"^\n",s=1;s<=t.linesAfter&&!(a+s>=i.length);s++)l=h(e.buffer,r[a+s],i[a+s],e.position-(r[a]-r[a+s]),p),c+=u.repeat(" ",t.indent)+f((e.line+s+1).toString(),d)+" | "+l.str+"\n";return c.replace(/\n$/,"")}(0,i.e)(c,"formatError"),(0,i.e)(d,"YAMLException$1"),d.prototype=Object.create(Error.prototype),d.prototype.constructor=d,d.prototype.toString=(0,i.e)(function(e){return this.name+": "+c(this,e)},"toString"),(0,i.e)(h,"getLine"),(0,i.e)(f,"padStart"),(0,i.e)(p,"makeSnippet");var g=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],m=["scalar","sequence","mapping"];function y(e){var t={};
210return null!==e&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}function b(e,t){if(Object.keys(t=t||{}).forEach(function(t){if(-1===g.indexOf(t))throw new d('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=y(t.styleAliases||null),-1===m.indexOf(this.kind))throw new d('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}function v(e,t){var n=[];return e[t].forEach(function(e){var t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}function x(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for((0,i.e)(r,"collectType"),e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(r);return n}function k(e){return this.extend(e)}(0,i.e)(y,"compileStyleAliases"),(0,i.e)(b,"Type$1"),(0,i.e)(v,"compileList"),(0,i.e)(x,"compileMap"),(0,i.e)(k,"Schema$1"),k.prototype.extend=(0,i.e)(function(e){var t=[],n=[];if(e instanceof b)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new d("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(e){if(!(e instanceof b))throw new d("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new d("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new d("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(e){if(!(e instanceof b))throw new d("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var r=Object.create(k.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=v(r,"implicit"),r.compiledExplicit=v(r,"explicit"),r.compiledTypeMap=x(r.compiledImplicit,r.compiledExplicit),r},"extend");var w=new k({explicit:[new b("tag:yaml.org,2002:str",{kind:"scalar",construct:(0,i.e)(function(e){return null!==e?e:""},"construct")}),new b("tag:yaml.org,2002:seq",{kind:"sequence",construct:(0,i.e)(function(e){return null!==e?e:[]},"construct")}),new b("tag:yaml.org,2002:map",{kind:"mapping",construct:(0,i.e)(function(e){return null!==e?e:{}},"construct")})]});function _(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)}function S(){return null}function C(e){return null===e}(0,i.e)(_,"resolveYamlNull"),(0,i.e)(S,"constructYamlNull"),(0,i.e)(C,"isNull");var M=new b("tag:yaml.org,2002:null",{kind:"scalar",resolve:_,construct:S,predicate:C,represent:{canonical:(0,i.e)(function(){return"~"},"canonical"),lowercase:(0,i.e)(function(){return"null"},"lowercase"),uppercase:(0,i.e)(function(){return"NULL"},"uppercase"),camelcase:(0,i.e)(function(){return"Null"},"camelcase"),empty:(0,i.e)(function(){return""},"empty")},defaultStyle:"lowercase"});function A(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)}function E(e){return"true"===e||"True"===e||"TRUE"===e}function T(e){return"[object Boolean]"===Object.prototype.toString.call(e)}(0,i.e)(A,"resolveYamlBoolean"),(0,i.e)(E,"constructYamlBoolean"),(0,i.e)(T,"isBoolean");var R=new b("tag:yaml.org,2002:bool",{kind:"scalar",resolve:A,construct:E,predicate:T,represent:{lowercase:(0,i.e)(function(e){return e?"true":"false"},"lowercase"),uppercase:(0,i.e)(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:(0,i.e)(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function N(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function P(e){return 48<=e&&e<=55}function L(e){return 48<=e&&e<=57}function I(e){if(null===e)return!1;var t,n=e.length,r=0,i=!1;if(!n)return!1;if(("-"===(t=e[r])||"+"===t)&&(t=e[++r]),"0"===t){if(r+1===n)return!0;
210if("b"===(t=e[++r])){for(r++;r<n;r++)if("_"!==(t=e[r])){if("0"!==t&&"1"!==t)return!1;i=!0}return i&&"_"!==t}if("x"===t){for(r++;r<n;r++)if("_"!==(t=e[r])){if(!N(e.charCodeAt(r)))return!1;i=!0}return i&&"_"!==t}if("o"===t){for(r++;r<n;r++)if("_"!==(t=e[r])){if(!P(e.charCodeAt(r)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;r<n;r++)if("_"!==(t=e[r])){if(!L(e.charCodeAt(r)))return!1;i=!0}return!!i&&"_"!==t}function O(e){var t,n=e,r=1;if(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),("-"===(t=n[0])||"+"===t)&&("-"===t&&(r=-1),t=(n=n.slice(1))[0]),"0"===n)return 0;if("0"===t){if("b"===n[1])return r*parseInt(n.slice(2),2);if("x"===n[1])return r*parseInt(n.slice(2),16);if("o"===n[1])return r*parseInt(n.slice(2),8)}return r*parseInt(n,10)}function $(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!u.isNegativeZero(e)}(0,i.e)(N,"isHexCode"),(0,i.e)(P,"isOctCode"),(0,i.e)(L,"isDecCode"),(0,i.e)(I,"resolveYamlInteger"),(0,i.e)(O,"constructYamlInteger"),(0,i.e)($,"isInteger");var j=new b("tag:yaml.org,2002:int",{kind:"scalar",resolve:I,construct:O,predicate:$,represent:{binary:(0,i.e)(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:(0,i.e)(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)}
210,"octal"),decimal:(0,i.e)(function(e){return e.toString(10)},"decimal"),hexadecimal:(0,i.e)(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),D=RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function F(e){return!!(null!==e&&D.test(e)&&"_"!==e[e.length-1])}function B(e){var t,n;return(n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t)?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)}(0,i.e)(F,"resolveYamlFloat"),(0,i.e)(B,"constructYamlFloat");var z=/^[-+]?[0-9]+e/;function U(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(u.isNegativeZero(e))return"-0.0";return n=e.toString(10),z.test(n)?n.replace("e",".e"):n}function W(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||u.isNegativeZero(e))}(0,i.e)(U,"representYamlFloat"),(0,i.e)(W,"isFloat");var H=new b("tag:yaml.org,2002:float",{kind:"scalar",resolve:F,construct:B,predicate:W,represent:U,defaultStyle:"lowercase"}),q=w.extend({implicit:[M,R,j,H]}),G=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),V=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Z(e){return null!==e&&(null!==G.exec(e)||null!==V.exec(e))}function Y(e){var t,n,r,i,a,o,s,l,u=0,c=null;if(null===(t=G.exec(e))&&(t=V.exec(e)),null===t)throw Error("Date resolve error");
210if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(a=+t[4],o=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(c=(60*+t[10]+ +(t[11]||0))*6e4,"-"===t[9]&&(c=-c)),l=new Date(Date.UTC(n,r,i,a,o,s,u)),c&&l.setTime(l.getTime()-c),l}function X(e){return e.toISOString()}(0,i.e)(Z,"resolveYamlTimestamp"),(0,i.e)(Y,"constructYamlTimestamp"),(0,i.e)(X,"representYamlTimestamp");var Q=new b("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Z,construct:Y,instanceOf:Date,represent:X});function K(e){return"<<"===e||null===e}(0,i.e)(K,"resolveYamlMerge");var J=new b("tag:yaml.org,2002:merge",{kind:"scalar",resolve:K}),ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function et(e){if(null===e)return!1;var t,n,r=0,i=e.length;for(n=0;n<i;n++)if(!((t=ee.indexOf(e.charAt(n)))>64)){if(t<0)return!1;r+=6}return r%8==0}function en(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,a=0,o=[];for(t=0;t<i;t++)t%4==0&&t&&(o.push(a>>16&255),o.push(a>>8&255),o.push(255&a)),a=a<<6|ee.indexOf(r.charAt(t));return 0==(n=i%4*6)?(o.push(a>>16&255),o.push(a>>8&255),o.push(255&a)):18===n?(o.push(a>>10&255),o.push(a>>2&255)):12===n&&o.push(a>>4&255),new Uint8Array(o)}function er(e){var t,n,r="",i=0,a=e.length;for(t=0;t<a;t++)t%3==0&&t&&(r+=ee[i>>18&63]+ee[i>>12&63]+ee[i>>6&63]+ee[63&i]),i=(i<<8)+e[t];return 0==(n=a%3)?r+=ee[i>>18&63]+ee[i>>12&63]+ee[i>>6&63]+ee[63&i]:2===n?r+=ee[i>>10&63]+ee[i>>4&63]+ee[i<<2&63]+ee[64]:1===n&&(r+=ee[i>>2&63]+ee[i<<4&63]+ee[64]+ee[64]),r}function ei(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)}(0,i.e)(et,"resolveYamlBinary"),(0,i.e)(en,"constructYamlBinary"),(0,i.e)(er,"representYamlBinary"),(0,i.e)(ei,"isBinary");var ea=new b("tag:yaml.org,2002:binary",{kind:"scalar",resolve:et,construct:en,predicate:ei,represent:er}),eo=Object.prototype.hasOwnProperty,es=Object.prototype.toString;function el(e){if(null===e)return!0;var t,n,r,i,a,o=[];for(t=0,n=e.length;t<n;t+=1){if(r=e[t],a=!1,"[object Object]"!==es.call(r))return!1;for(i in r)if(eo.call(r,i)){if(a)return!1;a=!0}if(!a||-1!==o.indexOf(i))return!1;o.push(i)}return!0}function eu(e){return null!==e?e:[]}(0,i.e)(el,"resolveYamlOmap"),(0,i.e)(eu,"constructYamlOmap");var ec=new b("tag:yaml.org,2002:omap",{kind:"sequence",resolve:el,construct:eu}),ed=Object.prototype.toString;function eh(e){var t,n,r,i,a;if(null===e)return!0;for(t=0,a=Array(e.length),n=e.length;t<n;t+=1){if(r=e[t],"[object Object]"!==ed.call(r)||1!==(i=Object.keys(r)).length)return!1;a[t]=[i[0],r[i[0]]]}return!0}function ef(e){var t,n,r,i,a;if(null===e)return[];for(t=0,a=Array(e.length),n=e.length;t<n;t+=1)i=Object.keys(r=e[t]),a[t]=[i[0],r[i[0]]];return a}(0,i.e)(eh,"resolveYamlPairs"),(0,i.e)(ef,"constructYamlPairs");var ep=new b("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:eh,construct:ef}),eg=Object.prototype.hasOwnProperty;function em(e){var t;if(null===e)return!0;for(t in e)if(eg.call(e,t)&&null!==e[t])return!1;return!0}function ey(e){return null!==e?e:{}}(0,i.e)(em,"resolveYamlSet"),(0,i.e)(ey,"constructYamlSet");var eb=new b("tag:yaml.org,2002:set",{kind:"mapping",resolve:em,construct:ey}),ev=q.extend({implicit:[Q,J],explicit:[ea,ec,ep,eb]}),ex=Object.prototype.hasOwnProperty,ek=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ew=/[\x85\u2028\u2029]/,e_=/[,\[\]\{\}]/,eS=/^(?:!|!!|![a-z\-]+!)$/i,eC=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function eM(e){return Object.prototype.toString.call(e)}function eA(e){return 10===e||13===e}function eE(e){return 9===e||32===e}function eT(e){return 9===e||32===e||10===e||13===e}function eR(e){return 44===e||91===e||93===e||123===e||125===e}function eN(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function eP(e){return 120===e?2:117===e?4:85===e?8:0}function eL(e){return 48<=e&&e<=57?e-48:-1}function eI(e){return 48===e?"\0":97===e?"\x07":98===e?"\b":116===e?"	":9===e?"	":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"\x1b":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"\x85":95===e?"\xa0":76===e?"\u2028":80===e?"\u2029":""}function eO(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function e$(e,t,n){"__proto__"===t?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}(0,i.e)(eM,"_class"),(0,i.e)(eA,"is_EOL"),(0,i.e)(eE,"is_WHITE_SPACE"),(0,i.e)(eT,"is_WS_OR_EOL"),(0,i.e)(eR,"is_FLOW_INDICATOR"),(0,i.e)(eN,"fromHexCode"),(0,i.e)(eP,"escapedHexLen"),(0,i.e)(eL,"fromDecimalCode"),(0,i.e)(eI,"simpleEscapeSequence"),(0,i.e)(eO,"charFromCodepoint"),(0,i.e)(e$,"setProperty");var ej=Array(256),eD=Array(256);for(r=0;r<256;r++)ej[r]=eI(r)?1:0,eD[r]=eI(r);function eF(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||ev,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.impl
210icitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function eB(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=p(n),new d(t,n)}function ez(e,t){throw eB(e,t)}function eU(e,t){e.onWarning&&e.onWarning.call(null,eB(e,t))}(0,i.e)(eF,"State$1"),(0,i.e)(eB,"generateError"),(0,i.e)(ez,"throwError"),(0,i.e)(eU,"throwWarning");var eW={YAML:(0,i.e)(function(e,t,n){var r,i,a;null!==e.version&&ez(e,"duplication of %YAML directive"),1!==n.length&&ez(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&ez(e,"ill-formed argument of the YAML directive"),i=parseInt(r[1],10),a=parseInt(r[2],10),1!==i&&ez(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=a<2,1!==a&&2!==a&&eU(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:(0,i.e)(function(e,t,n){var r,i;2!==n.length&&ez(e,"TAG directive accepts exactly two arguments"),r=n[0],i=n[1],eS.test(r)||ez(e,"ill-formed tag handle (first argument) of the TAG directive"),ex.call(e.tagMap,r)&&ez(e,'there is a previously declared suffix for "'+r+'" tag handle'),eC.test(i)||ez(e,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch(t){ez(e,"tag prefix is malformed: "+i)}e.tagMap[r]=i},"handleTagDirective")};function eH(e,t,n,r){var i,a,o,s;if(t<n){if(s=e.input.slice(t,n),r)for(i=0,a=s.length;i<a;i+=1)9===(o=s.charCodeAt(i))||32<=o&&o<=1114111||ez(e,"expected valid JSON character");else ek.test(s)&&ez(e,"the stream contains non-printable characters");e.result+=s}}function eq(e,t,n,r){var i,a,o,s;for(u.isObject(n)||ez(e,"cannot merge mappings; the provided source object is unacceptable"),o=0,s=(i=Object.keys(n)).length;o<s;o+=1)a=i[o],ex.call(t,a)||(e$(t,a,n[a]),r[a]=!0)}function eG(e,t,n,r,i,a,o,s,l){var u,c;if(Array.isArray(i))for(u=0,c=(i=Array.prototype.slice.call(i)).length;u<c;u+=1)Array.isArray(i[u])&&ez(e,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===eM(i[u])&&(i[u]="[object Object]");if("object"==typeof i&&"[object Object]"===eM(i)&&(i="[object Object]"),i=String(i),null===t&&(t={}),"tag:yaml.org,2002:merge"===r){if(Array.isArray(a))for(u=0,c=a.length;u<c;u+=1)eq(e,t,a[u],n);else eq(e,t,a,n)}else!e.json&&!ex.call(n,i)&&ex.call(t,i)&&(e.line=o||e.line,e.lineStart=s||e.lineStart,e.position=l||e.position,ez(e,"duplicated mapping key")),e$(t,i,a),delete n[i];return t}function eV(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):ez(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function eZ(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);0!==i;){for(;eE(i);)9===i&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&35===i)do i=e.input.charCodeAt(++e.position);while(10!==i&&13!==i&&0!==i);if(eA(i))for(eV(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return -1!==n&&0!==r&&e.lineIndent<n&&eU(e,"deficient indentation"),r}function eY(e){var t,n=e.position;return!!((45===(t=e.input.charCodeAt(n))||46===t)&&t===e.input.charCodeAt(n+1)&&t===e.input.charCodeAt(n+2)&&(n+=3,0===(t=e.input.charCodeAt(n))||eT(t)))}function eX(e,t){1===t?e.result+=" ":t>1&&(e.result+=u.repeat("\n",t-1))}function eQ(e,t,n){var r,i,a,o,s,l,u,c,d=e.kind,h=e.result;if(eT(c=e.input.charCodeAt(e.position))||eR(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c||(63===c||45===c)&&(eT(r=e.input.charCodeAt(e.position+1))||n&&eR(r)))return!1;for(e.kind="scalar",e.result="",i=a=e.position,o=!1;0!==c;){if(58===c){if(eT(r=e.input.charCodeAt(e.position+1))||n&&eR(r))break}else if(35===c){if(eT(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&eY(e)||n&&eR(c))break;else if(eA(c)){if(s=e.line,l=e.lineStart,u=e.lineIndent,eZ(e,!1,-1),e.lineIndent>=t){o=!0,c=e.input.charCodeAt(e.position);continue}e.position=a,e.line=s,e.lineStart=l,e.lineIndent=u;break}
210o&&(eH(e,i,a,!1),eX(e,e.line-s),i=a=e.position,o=!1),eE(c)||(a=e.position+1),c=e.input.charCodeAt(++e.position)}return eH(e,i,a,!1),!!e.result||(e.kind=d,e.result=h,!1)}function eK(e,t){var n,r,i;if(39!==(n=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(eH(e,r,e.position,!0),39!==(n=e.input.charCodeAt(++e.position)))return!0;r=e.position,e.position++,i=e.position}else eA(n)?(eH(e,r,i,!0),eX(e,eZ(e,!1,t)),r=i=e.position):e.position===e.lineStart&&eY(e)?ez(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);ez(e,"unexpected end of the stream within a single quoted scalar")}function eJ(e,t){var n,r,i,a,o,s;if(34!==(s=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(s=e.input.charCodeAt(e.position));){if(34===s)return eH(e,n,e.position,!0),e.position++,!0;if(92===s){if(eH(e,n,e.position,!0),eA(s=e.input.charCodeAt(++e.position)))eZ(e,!1,t);else if(s<256&&ej[s])e.result+=eD[s],e.position++;else if((o=eP(s))>0){for(i=o,a=0;i>0;i--)(o=eN(s=e.input.charCodeAt(++e.position)))>=0?a=(a<<4)+o:ez(e,"expected hexadecimal character");e.result+=eO(a),e.position++}else ez(e,"unknown escape sequence");n=r=e.position}else eA(s)?(eH(e,n,r,!0),eX(e,eZ(e,!1,t)),n=r=e.position):e.position===e.lineStart&&eY(e)?ez(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}ez(e,"unexpected end of the stream within a double quoted scalar")}function e0(e,t){var n,r,i,a,o,s,l,u,c,d,h,f,p=!0,g=e.tag,m=e.anchor,y=Object.create(null);if(91===(f=e.input.charCodeAt(e.position)))o=93,u=!1,a=[];else{if(123!==f)return!1;o=125,u=!0,a={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),f=e.input.charCodeAt(++e.position);0!==f;){if(eZ(e,!0,t),(f=e.input.charCodeAt(e.position))===o)return e.position++,e.tag=g,e.anchor=m,e.kind=u?"mapping":"sequence",e.result=a,!0;p?44===f&&ez(e,"expected the node content, but found ','"):ez(e,"missed comma between flow collection entries"),d=c=h=null,s=l=!1,63===f&&eT(e.input.charCodeAt(e.position+1))&&(s=l=!0,e.position++,eZ(e,!0,t)),n=e.line,r=e.lineStart,i=e.position,e9(e,t,1,!1,!0),d=e.tag,c=e.result,eZ(e,!0,t),f=e.input.charCodeAt(e.position),(l||e.line===n)&&58===f&&(s=!0,f=e.input.charCodeAt(++e.position),eZ(e,!0,t),e9(e,t,1,!1,!0),h=e.result),u?eG(e,a,y,d,c,h,n,r,i):s?a.push(eG(e,null,y,d,c,h,n,r,i)):a.push(c),eZ(e,!0,t),44===(f=e.input.charCodeAt(e.position))?(p=!0,f=e.input.charCodeAt(++e.position)):p=!1}ez(e,"unexpected end of the stream within a flow collection")}function e1(e,t){var n,r,i,a,o=1,s=!1,l=!1,c=t,d=0,h=!1;if(124===(a=e.input.charCodeAt(e.position)))r=!1;else{if(62!==a)return!1;r=!0}for(e.kind="scalar",e.result="";0!==a;)if(43===(a=e.input.charCodeAt(++e.position))||45===a)1===o?o=43===a?3:2:ez(e,"repeat of a chomping mode identifier");else if((i=eL(a))>=0)0===i?ez(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?ez(e,"repeat of an indentation width identifier"):(c=t+i-1,l=!0);else break;if(eE(a)){do a=e.input.charCodeAt(++e.position);while(eE(a));if(35===a)do a=e.input.charCodeAt(++e.position);while(!eA(a)&&0!==a)}for(;0!==a;){for(eV(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!l||e.lineIndent<c)&&32===a;)e.lineIndent++,a=e.input.charCodeAt(++e.position);if(!l&&e.lineIndent>c&&(c=e.lineIndent),eA(a)){d++;continue}if(e.lineIndent<c){3===o?e.result+=u.repeat("\n",s?1+d:d):1===o&&s&&(e.result+="\n");break}for(r?eE(a)?(h=!0,e.result+=u.repeat("\n",s?1+d:d)):h?(h=!1,e.result+=u.repeat("\n",d+1)):0===d?s&&(e.result+=" "):e.result+=u.repeat("\n",d):e.result+=u.repeat("\n",s?1+d:d),s=!0,l=!0,d=0,n=e.position;!eA(a)&&0!==a;)a=e.input.charCodeAt(++e.position);eH(e,n,e.position,!1)}return!0}function e2(e,t){var n,r,i=e.tag,a=e.anchor,o=[],s=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),r=e.input.charCodeAt(e.position);0!==r&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,ez(e,"tab characters must not be used in indentation")),45===r&&eT(e.input.charCodeAt(e.position+1)));){if(s=!0,e.position++,eZ(e,!0,-1)&&e.lineIndent<=t){o.push(null),r=e.input.charCodeAt(e.position);continue}if(n=e.line,e9(e,t,3,!1,!0),o.push(e.result),eZ(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)ez(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}
210return!!s&&(e.tag=i,e.anchor=a,e.kind="sequence",e.result=o,!0)}function e5(e,t,n){var r,i,a,o,s,l,u,c=e.tag,d=e.anchor,h={},f=Object.create(null),p=null,g=null,m=null,y=!1,b=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=h),u=e.input.charCodeAt(e.position);0!==u;){if(y||-1===e.firstTabInLine||(e.position=e.firstTabInLine,ez(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),a=e.line,(63===u||58===u)&&eT(r))63===u?(y&&(eG(e,h,f,p,g,null,o,s,l),p=g=m=null),b=!0,y=!0,i=!0):y?(y=!1,i=!0):ez(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,u=r;else{if(o=e.line,s=e.lineStart,l=e.position,!e9(e,n,2,!1,!0))break;if(e.line===a){for(u=e.input.charCodeAt(e.position);eE(u);)u=e.input.charCodeAt(++e.position);if(58===u)eT(u=e.input.charCodeAt(++e.position))||ez(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(eG(e,h,f,p,g,null,o,s,l),p=g=m=null),b=!0,y=!1,i=!1,p=e.tag,g=e.result;else{if(!b)return e.tag=c,e.anchor=d,!0;ez(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!b)return e.tag=c,e.anchor=d,!0;ez(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}if((e.line===a||e.lineIndent>t)&&(y&&(o=e.line,s=e.lineStart,l=e.position),e9(e,t,4,!0,i)&&(y?g=e.result:m=e.result),y||(eG(e,h,f,p,g,m,o,s,l),p=g=m=null),eZ(e,!0,-1),u=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&0!==u)ez(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&eG(e,h,f,p,g,null,o,s,l),b&&(e.tag=c,e.anchor=d,e.kind="mapping",e.result=h),b}function e3(e){var t,n,r,i,a=!1,o=!1;if(33!==(i=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&ez(e,"duplication of a tag property"),60===(i=e.input.charCodeAt(++e.position))?(a=!0,i=e.input.charCodeAt(++e.position)):33===i?(o=!0,n="!!",i=e.input.charCodeAt(++e.position)):n="!",t=e.position,a){do i=e.input.charCodeAt(++e.position);while(0!==i&&62!==i);e.position<e.length?(r=e.input.slice(t,e.position),i=e.input.charCodeAt(++e.position)):ez(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!eT(i);)33===i&&(o?ez(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),eS.test(n)||ez(e,"named tag handle cannot contain such characters"),o=!0,t=e.position+1)),i=e.input.charCodeAt(++e.position);r=e.input.slice(t,e.position),e_.test(r)&&ez(e,"tag suffix cannot contain flow indicator characters")}r&&!eC.test(r)&&ez(e,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(t){ez(e,"tag name is malformed: "+r)}return a?e.tag=r:ex.call(e.tagMap,n)?e.tag=e.tagMap[n]+r:"!"===n?e.tag="!"+r:"!!"===n?e.tag="tag:yaml.org,2002:"+r:ez(e,'undeclared tag handle "'+n+'"'),!0}function e6(e){var t,n;if(38!==(n=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&ez(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!eT(n)&&!eR(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&ez(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function e8(e){var t,n,r;if(42!==(r=e.input.charCodeAt(e.position)))return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!eT(r)&&!eR(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&ez(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),ex.call(e.anchorMap,n)||ez(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],eZ(e,!0,-1),!0}function e9(e,t,n,r,i){var a,o,s,l,u,c,d,h,f,p=1,g=!1,m=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=o=s=4===n||3===n,r&&eZ(e,!0,-1)&&(g=!0,e.lineIndent>t?p=1:e.lineIndent===t?p=0:e.lineIndent<t&&(p=-1)),1===p)for(;e3(e)||e6(e);)eZ(e,!0,-1)?(g=!0,s=a,e.lineIndent>t?p=1:e.lineIndent===t?p=0:e.lineIndent<t&&(p=-1)):s=!1;if(s&&(s=g||i),(1===p||4===n)&&(h=1===n||2===n?t:t+1,f=e.position-e.lineStart,1===p?s&&(e2(e,f)||e5(e,f,h))||e0(e,h)?m=!0:(o&&e1(e,h)||eK(e,h)||eJ(e,h)?m=!0:e8(e)?(m=!0,(null!==e.tag||null!==e.anchor)&&ez(e,"alias node should not have any properties")):eQ(e,h,1===n)&&(m=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===p&&(m=s&&e2(e,f))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&ez(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,u=e.implicitTypes.length;l<u;l+=1)if((d=e.implicitTypes[l]).resolve(e.result)){e.result=d.construct(e.result),e.tag=d.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(ex.call(e.typeMap[e.kind||"fallback"],e.tag))d=e.typeMap[e.kind||"fallback"][e.tag];else for(l=0,d=null,u=(c=e.typeMap.multi[e.kind||"fallback"]).length;l<u;l+=1)if(e.tag.slice(0,c[l].tag.length)===c[l].tag){d=c[l];break}d||ez(e,"unknown tag !<"+e.tag+">"),null!==e.result&&d.kind!==e.kind&&ez(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result,e.tag)?(e.result=d.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):ez(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||m}function e7(e){var t,n,r,i,a=e.position,o=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(i=e.input.charCodeAt(e.position))&&(eZ(e,!0,-1),i=e.input.charCodeAt(e.position),!(e.lineIndent>0)&&37===i);){for(o=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!eT(i);)i=e.input.charCodeAt(++e.position);for(n=e.input.slice(t,e.position),r=[],n.length<1&&ez(e,"directive name must not be less than one character in length");0!==i;){for(;eE(i);)i=e.input.charCodeAt(++e.position);if(35===i){do i=e.input.charCodeAt(++e.position);while(0!==i&&!eA(i));break}if(eA(i))break;for(t=e.position;0!==i&&!eT(i);)i=e.input.charCodeAt(++e.position);
210r.push(e.input.slice(t,e.position))}0!==i&&eV(e),ex.call(eW,n)?eW[n](e,n,r):eU(e,'unknown document directive "'+n+'"')}if(eZ(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,eZ(e,!0,-1)):o&&ez(e,"directives end mark is expected"),e9(e,e.lineIndent-1,4,!1,!0),eZ(e,!0,-1),e.checkLineBreaks&&ew.test(e.input.slice(a,e.position))&&eU(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&eY(e)){46===e.input.charCodeAt(e.position)&&(e.position+=3,eZ(e,!0,-1));return}e.position<e.length-1&&ez(e,"end of the stream or a document separator is expected")}function e4(e,t){e=String(e),t=t||{},0!==e.length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new eF(e,t),r=e.indexOf("\0");for(-1!==r&&(n.position=r,ez(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)e7(n);return n.documents}function te(e,t){var n=e4(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new d("expected a single document in the stream, but found more")}}(0,i.e)(eH,"captureSegment"),(0,i.e)(eq,"mergeMappings"),(0,i.e)(eG,"storeMappingPair"),(0,i.e)(eV,"readLineBreak"),(0,i.e)(eZ,"skipSeparationSpace"),(0,i.e)(eY,"testDocumentSeparator"),(0,i.e)(eX,"writeFoldedLines"),(0,i.e)(eQ,"readPlainScalar"),(0,i.e)(eK,"readSingleQuotedScalar"),(0,i.e)(eJ,"readDoubleQuotedScalar"),(0,i.e)(e0,"readFlowCollection"),(0,i.e)(e1,"readBlockScalar"),(0,i.e)(e2,"readBlockSequence"),(0,i.e)(e5,"readBlockMapping"),(0,i.e)(e3,"readTagProperty"),(0,i.e)(e6,"readAnchorProperty"),(0,i.e)(e8,"readAlias"),(0,i.e)(e9,"composeNode"),(0,i.e)(e7,"readDocument"),(0,i.e)(e4,"loadDocuments"),(0,i.e)(function(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);var r=e4(e,n);if("function"!=typeof t)return r;for(var i=0,a=r.length;i<a;i+=1)t(r[i])},"loadAll$1"),(0,i.e)(te,"load$1");var tt=Object.prototype.toString,tn=Object.prototype.hasOwnProperty,tr={};tr[0]="\\0",tr[7]="\\a",tr[8]="\\b",tr[9]="\\t",tr[10]="\\n",tr[11]="\\v",tr[12]="\\f",tr[13]="\\r",tr[27]="\\e",tr[34]='\\"',tr[92]="\\\\",tr[133]="\\N",tr[160]="\\_",tr[8232]="\\L",tr[8233]="\\P";var ti=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],ta=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function to(e,t){var n,r,i,a,o,s,l;if(null===t)return{};for(i=0,n={},a=(r=Object.keys(t)).length;i<a;i+=1)s=String(t[o=r[i]]),"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2)),(l=e.compiledTypeMap.fallback[o])&&tn.call(l.styleAliases,s)&&(s=l.styleAliases[s]),n[o]=s;return n}function ts(e){var t,n,r;if(t=e.toString(16).toUpperCase(),e<=255)n="x",r=2;else if(e<=65535)n="u",r=4;else if(e<=4294967295)n="U",r=8;else throw new d("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+u.repeat("0",r-t.length)+t}function tl(e){this.schema=e.schema||ev,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=u.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=to(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function tu(e,t){for(var n,r=u.repeat(" ",t),i=0,a=-1,o="",s=e.length;i<s;)-1===(a=e.indexOf("\n",i))?(n=e.slice(i),i=s):(n=e.slice(i,a+1),i=a+1),n.length&&"\n"!==n&&(o+=r),o+=n;return o}function tc(e,t){return"\n"+u.repeat(" ",e.indent*t)}function td(e,t){var n,r;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}function th(e){return 32===e||9===e}function tf(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&65279!==e||65536<=e&&e<=1114111}function tp(e){return tf(e)&&65279!==e&&13!==e&&10!==e}function tg(e,t,n){var r=tp(e),i=r&&!th(e);return(n?r:r&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!i)||tp(t)&&!th(t)&&35===e||58===t&&i}function tm(e){return tf(e)&&65279!==e&&!th(e)&&45!==e&&63!==e&&58!==e&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e&&35!==e&&38!==e&&42!==e&&33!==e&&124!==e&&61!==e&&62!==e&&39!==e&&34!==e&&37!==e&&64!==e&&96!==e}function ty(e){return!th(e)&&58!==e}function tb(e,t){var n,r=e.charCodeAt(t);return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1))>=56320&&n<=57343?(r-55296)*1024+n-56320+65536:r}function tv(e){return/^\n* /.test(e)}function tx(e,t,n,r,i,a,o,s){var l,u=0,c=null,d=!1,h=!1,f=-1!==r,p=-1,g=tm(tb(e,0))&&ty(tb(e,e.length-1));if(t||o)for(l=0;l<e.length;u>=65536?l+=2:l++){if(!tf(u=tb(e,l)))return 5;g=g&&tg(u,c,s),c=u}else{for(l=0;l<e.length;u>=65536?l+=2:l++){if(10===(u=tb(e,l)))d=!0,f&&(h=h||l-p-1>r&&" "!==e[p+1],p=l);else if(!tf(u))return 5;g=g&&tg(u,c,s),c=u}h=h||f&&l-p-1>r&&" "!==e[p+1]}return d||h?n>9&&tv(e)?5:o?2===a?5:2:h?4:3:!g||o||i(e)?2===a?5:2:1}function tk(e,t,n,r,a){e.dump=function(){if(0===t.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==ti.indexOf(t)||ta.test(t)))return 2===e.quotingType?'"'+t+'"':"'"+t+"'";var o=e.indent*Math.max(1,n),s=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),l=r||e.flowLevel>-1&&n>=e.flowLevel;function u(t){return td(e,t)}switch((0,i.e)(u,"testAmbiguity"),tx(t,l,e.indent,s,u,e.quotingType,e.forceQuotes&&!r,a)){case 1:return t;case 2:return"'"+t.replace(/'/g,"''")+"'";case 3:return"|"+tw(t,e.indent)+t_(tu(t,o));case 4:return">"+tw(t,e.indent)+t_(tu(tS(t,s),o));case 5:return'"'+tM(t)+'"';default:throw new d("impossible error: invalid scalar style")}}()}function tw(e,t){var n=tv(e)?String(t):"",r="\n"===e[e.length-1];return n+(r&&("\n"===e[e.length-2]||"\n"===e)?"+":r?"":"-")+"\n"}function t_(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function tS(e,t){for(var n,r,i,a=/(\n+)([^\n]*)/g,o=(n=-1!==(n=e.indexOf("\n"))?n:e.length,a.lastIndex=n,tC(e.slice(0,n),t)),s="\
210n"===e[0]||" "===e[0];i=a.exec(e);){var l=i[1],u=i[2];r=" "===u[0],o+=l+(s||r||""===u?"":"\n")+tC(u,t),s=r}return o}function tC(e,t){if(""===e||" "===e[0])return e;for(var n,r,i=/ [^ ]/g,a=0,o=0,s=0,l="";n=i.exec(e);)(s=n.index)-a>t&&(r=o>a?o:s,l+="\n"+e.slice(a,r),a=r+1),o=s;return l+="\n",e.length-a>t&&o>a?l+=e.slice(a,o)+"\n"+e.slice(o+1):l+=e.slice(a),l.slice(1)}function tM(e){for(var t,n="",r=0,i=0;i<e.length;r>=65536?i+=2:i++)!(t=tr[r=tb(e,i)])&&tf(r)?(n+=e[i],r>=65536&&(n+=e[i+1])):n+=t||ts(r);return n}function tA(e,t,n){var r,i,a,o="",s=e.tag;for(r=0,i=n.length;r<i;r+=1)a=n[r],e.replacer&&(a=e.replacer.call(n,String(r),a)),(tP(e,t,a,!1,!1)||void 0===a&&tP(e,t,null,!1,!1))&&(""!==o&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=s,e.dump="["+o+"]"}function tE(e,t,n,r){var i,a,o,s="",l=e.tag;for(i=0,a=n.length;i<a;i+=1)o=n[i],e.replacer&&(o=e.replacer.call(n,String(i),o)),(tP(e,t+1,o,!0,!0,!1,!0)||void 0===o&&tP(e,t+1,null,!0,!0,!1,!0))&&(r&&""===s||(s+=tc(e,t)),e.dump&&10===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=l,e.dump=s||"[]"}function tT(e,t,n){var r,i,a,o,s,l="",u=e.tag,c=Object.keys(n);for(r=0,i=c.length;r<i;r+=1)s="",""!==l&&(s+=", "),e.condenseFlow&&(s+='"'),o=n[a=c[r]],e.replacer&&(o=e.replacer.call(n,a,o)),tP(e,t,a,!1,!1)&&(e.dump.length>1024&&(s+="? "),s+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),tP(e,t,o,!1,!1)&&(s+=e.dump,l+=s));e.tag=u,e.dump="{"+l+"}"}function tR(e,t,n,r){var i,a,o,s,l,u,c="",h=e.tag,f=Object.keys(n);if(!0===e.sortKeys)f.sort();else if("function"==typeof e.sortKeys)f.sort(e.sortKeys);else if(e.sortKeys)throw new d("sortKeys must be a boolean or a function");for(i=0,a=f.length;i<a;i+=1)u="",r&&""===c||(u+=tc(e,t)),s=n[o=f[i]],e.replacer&&(s=e.replacer.call(n,o,s)),tP(e,t+1,o,!0,!0,!0)&&((l=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,l&&(u+=tc(e,t)),tP(e,t+1,s,!0,l)&&(e.dump&&10===e.dump.charCodeAt(0)?u+=":":u+=": ",u+=e.dump,c+=u));e.tag=h,e.dump=c||"{}"}function tN(e,t,n){var r,i,a,o,s,l;for(a=0,o=(i=n?e.explicitTypes:e.implicitTypes).length;a<o;a+=1)if(((s=i[a]).instanceOf||s.predicate)&&(!s.instanceOf||"object"==typeof t&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if
210(n?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag="?",s.represent){if(l=e.styleMap[s.tag]||s.defaultStyle,"[object Function]"===tt.call(s.represent))r=s.represent(t,l);else if(tn.call(s.represent,l))r=s.represent[l](t,l);else throw new d("!<"+s.tag+'> tag resolver accepts not "'+l+'" style');e.dump=r}return!0}return!1}function tP(e,t,n,r,i,a,o){e.tag=null,e.dump=n,tN(e,n,!1)||tN(e,n,!0);var s=tt.call(e.dump),l=r;r&&(r=e.flowLevel<0||e.flowLevel>t);var u,c,h,f="[object Object]"===s||"[object Array]"===s;if(f&&(h=-1!==(c=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||h||2!==e.indent&&t>0)&&(i=!1),h&&e.usedDuplicates[c])e.dump="*ref_"+c;else{if(f&&h&&!e.usedDuplicates[c]&&(e.usedDuplicates[c]=!0),"[object Object]"===s)r&&0!==Object.keys(e.dump).length?(tR(e,t,e.dump,i),h&&(e.dump="&ref_"+c+e.dump)):(tT(e,t,e.dump),h&&(e.dump="&ref_"+c+" "+e.dump));else if("[object Array]"===s)r&&0!==e.dump.length?(e.noArrayIndent&&!o&&t>0?tE(e,t-1,e.dump,i):tE(e,t,e.dump,i),h&&(e.dump="&ref_"+c+e.dump)):(tA(e,t,e.dump),h&&(e.dump="&ref_"+c+" "+e.dump));else if("[object String]"===s)"?"!==e.tag&&tk(e,e.dump,t,a,l);else{if("[object Undefined]"===s||e.skipInvalid)return!1;throw new d("unacceptable kind of an object to dump "+s)}null!==e.tag&&"?"!==e.tag&&(u=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),u="!"===e.tag[0]?"!"+u:"tag:yaml.org,2002:"===u.slice(0,18)?"!!"+u.slice(18):"!<"+u+">",e.dump=u+" "+e.dump)}return!0}function tL(e,t){var n,r,i=[],a=[];for(tI(e,i,a),n=0,r=a.length;n<r;n+=1)t.duplicates.push(i[a[n]]);t.usedDuplicates=Array(r)}function tI(e,t,n){var r,i,a;if(null!==e&&"object"==typeof e){if(-1!==(i=t.indexOf(e)))-1===n.indexOf(i)&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,a=e.length;i<a;i+=1)tI(e[i],t,n);else for(i=0,a=(r=Object.keys(e)).length;i<a;i+=1)tI(e[r[i]],t,n)}}function tO(e,t){return function(){throw Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}(0,i.e)(to,"compileStyleMap"),(0,i.e)(ts,"encodeHex"),(0,i.e)(tl,"State"),(0,i.e)(tu,"indentString"),(0,i.e)(tc,"generateNextLine"),(0,i.e)(td,"testImplicitResolving"),(0,i.e)(th,"isWhitespace"),(0,i.e)(tf,"isPrintable"),(0,i.e)(tp,"isNsCharOrWhitespace"),(0,i.e)(tg,"isPlainSafe"),(0,i.e)(tm,"isPlainSafeFirst"),(0,i.e)(ty,"isPlainSafeLast"),
210(0,i.e)(tb,"codePointAt"),(0,i.e)(tv,"needIndentIndicator"),(0,i.e)(tx,"chooseScalarStyle"),(0,i.e)(tk,"writeScalar"),(0,i.e)(tw,"blockHeader"),(0,i.e)(t_,"dropEndingNewline"),(0,i.e)(tS,"foldString"),(0,i.e)(tC,"foldLine"),(0,i.e)(tM,"escapeString"),(0,i.e)(tA,"writeFlowSequence"),(0,i.e)(tE,"writeBlockSequence"),(0,i.e)(tT,"writeFlowMapping"),(0,i.e)(tR,"writeBlockMapping"),(0,i.e)(tN,"detectType"),(0,i.e)(tP,"writeNode"),(0,i.e)(tL,"getDuplicateReferences"),(0,i.e)(tI,"inspectNode"),(0,i.e)(function(e,t){var n=new tl(t=t||{});n.noRefs||tL(e,n);var r=e;return(n.replacer&&(r=n.replacer.call({"":r},"",r)),tP(n,0,r,!0,!0))?n.dump+"\n":""},"dump$1"),(0,i.e)(tO,"renamed");var t$=q,tj=te;tO("safeLoad","load"),tO("safeLoadAll","loadAll"),tO("safeDump","dump")},99561:function(e,t,n){"use strict";n.d(t,{x0:function(){return r}});let r=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t}},70791:function(e,t,n){"use strict";n.d(t,{A:function(){return iy},C:function(){return iv},c:function(){return nd},f:function(){return nD},l:function(){return ik}});var r=n(28113),i=n(56556),a=n(50972);let o="indicator",s="text-only",l="remove";function u(e,t){if("string"!=typeof e)return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))try{return new URL(e,"http://example.com")}catch{}return null}}let c=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),d=new Set(["javascript:","data:","file:","vbscript:"]);function h(e,t,n,r=!1,i=!1,a=[]){if(!e)return null;if("string"==typeof e&&e.startsWith("#")&&!i)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if("string"==typeof e&&e.startsWith("data:"))return i&&r&&e.startsWith("data:image/")?e:null;if("string"==typeof e&&e.startsWith("blob:")){try{let t=new URL(e);if("blob:"===t.protocol&&e.length>5){let t=e.substring(5);if(t&&t.length>0&&"invalid"!==t)return e}}catch{}return null}let o=u(e,n);if(!o||d.has(o.protocol)||!(c.has(o.protocol)||a.includes(o.protocol)||a.includes("*")))return null;if("mailto:"===o.protocol||!o.protocol.match(/^https?:$/))return o.href;let s="string"==typeof e&&(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"));return o&&t.some(e=>{let t=u(e,n);return!!t&&t.origin===o.origin&&o.href.startsWith(t.href)})?s?o.pathname+o.search+o.hash:o.href:t.includes("*")?"https:"!==o.protocol&&"http:"!==o.protocol?null:s?o.pathname+o.search+o.hash:o.href:null}let f=Symbol("node-seen"),p=(e,t,n,r,o,u,c,d,p)=>{let g=(m,y,b)=>{if("element"!==m.type||m[f])return a.dR;if("a"===m.tagName){let n=h(m.properties.href,t,e,!1,!1,o);if(null!==n)return m.properties.href=n,m.properties.target="_blank",m.properties.rel="noopener noreferrer",a.dR;if(m[f]=!0,(0,i.Vn)(m,g),b&&"number"==typeof y){let e=d===l?{type:"remove"}:d===s?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[...m.children]}}:{type:"replace",element:{type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(m.properties.href),class:c},children:[...m.children,{type:"text",value:" [blocked]"}]}};if("remove"===e.type)return b.children.splice(y,1),[a.AM,y];b.children[y]=e.element}return a.AM}if("img"===m.tagName){let t=h(m.properties.src,n,e,r,!0,o);if(null===t){if(m[f]=!0,(0,i.Vn)(m,g),b&&"number"==typeof y){let e=function(e,t,n){if(t===l)return{type:"remove"};if(t===s){let t=String(e.properties.alt||"");return t?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[{type:"text",value:t}]}}:{type:"remove"}}return{type:"replace",element:{type:"element",tagName:"span",properties:{class:n},children:[{type:"text",value:"[Image blocked: "+String(e.properties.alt||"No description")+"]"}]}}}(m,p,u);if("remove"===e.type)return b.children.splice(y,1),[a.AM,y];b.children[y]=e.element}return a.AM}m.properties.src=t}return a.dR};return g};var g=n(77600),m=n(47267),y=n(66179),b=n(24365),v=Object.defineProperty,x=Object.defineProperties,k=Object.getOwnPropertyDescriptors,w=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable,C=(e,t,n)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,M=(e,t)=>{for(var n in t||(t={}
210))_.call(t,n)&&C(e,n,t[n]);if(w)for(var n of w(t))S.call(t,n)&&C(e,n,t[n]);return e},A=(e,t)=>x(e,k(t)),E=(e,t)=>{let n=!1,r=!1;for(let i=0;i<t;i+=1){if("\\"===e[i]&&i+1<e.length&&"`"===e[i+1]){i+=1;continue}if("```"===e.substring(i,i+3)){r=!r,i+=2;continue}r||"`"!==e[i]||(n=!n)}return n||r},T=(e,t)=>{let n="```"===e.substring(t,t+3),r=t>0&&"```"===e.substring(t-1,t+2),i=t>1&&"```"===e.substring(t-2,t+1);return n||r||i},R=e=>{let t=0;for(let n=0;n<e.length;n+=1){if("\\"===e[n]&&n+1<e.length&&"`"===e[n+1]){n+=1;continue}"`"!==e[n]||T(e,n)||(t+=1)}return t},N=(e,t)=>{let n=!1,r=!1,i=-1;for(let a=0;a<e.length;a+=1){if("\\"===e[a]&&a+1<e.length&&"`"===e[a+1]){a+=1;continue}if("```"===e.substring(a,a+3)){r=!r,a+=2;continue}if(!r&&"`"===e[a]){if(n){if(i<t&&t<a)return!0;n=!1,i=-1}else n=!0,i=a}}return!1},P=/^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm,L=/(\*\*)([^*]*\*?)$/,I=/(__)([^_]*?)$/,O=/(\*\*\*)([^*]*?)$/,$=/(\*)([^*]*?)$/,j=/(_)([^_]*?)$/,D=/(`)([^`]*?)$/,F=/(~~)([^~]*?)$/,B=/^[\s_~*`]*$/,z=/^[\s]*[-*+][\s]+$/,U=/[\p{L}\p{N}_]/u,W=/^```[^`\n]*```?$/,H=/^\*{4,}$/,q=/(__)([^_]+)_$/,G=/(~~)([^~]+)~$/,V=/~~/g,Z=e=>{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||95===t||U.test(e)},Y=(e,t)=>{let n=1;for(let r=t-1;r>=0;r-=1)if("]"===e[r])n+=1;else if("["===e[r]&&0==(n-=1))return r;return -1},X=(e,t)=>{let n=1;for(let r=t+1;r<e.length;r+=1)if("["===e[r])n+=1;else if("]"===e[r]&&0==(n-=1))return r;return -1},Q=(e,t)=>{let n=!1,r=!1;for(let i=0;i<e.length&&i<t;i+=1){if("\\"===e[i]&&"$"===e[i+1]){i+=1;continue}"$"===e[i]&&("$"===e[i+1]?(r=!r,i+=1,n=!1):r||(n=!n))}return n||r},K=(e,t)=>{for(let n=t;n<e.length;n+=1){if(")"===e[n])return!0;if(e[n]===`
211`)break}return!1},J=(e,t)=>{for(let n=t-1;n>=0&&")"!==e[n];n-=1){if("("===e[n])return n>0&&"]"===e[n-1]&&K(e,t);if(e[n]===`
212`)break}return!1},ee=(e,t)=>{for(let n=t-1;n>=0&&">"!==e[n];n-=1){if("<"===e[n]){let t=n+1<e.length?e[n+1]:"";return t>="a"&&t<="z"||t>="A"&&t<="Z"||"/"===t}if(e[n]===`
213`)break}return!1},et=(e,t,n)=>{let r=0;for(let n=t-1;n>=0;n-=1)if(e[n]===`
214`){r=n+1;break}let i=e.length;for(let n=t;n<e.length;n+=1)if(e[n]===`
215`){i=n;break}let a=e.substring(r,i),o=0,s=!1;for(let e of a)if(e===n)o+=1;else if(" "!==e&&"	"!==e){s=!0;break}return o>=3&&!s},en=(e,t,n,r)=>!!("\\"===n||e.includes("$")&&Q(e,t))||("*"!==n&&"*"===r?(t<e.length-2?e[t+2]:"")!=="*":!!("*"===n||n&&r&&Z(n)&&Z(r)||(!n||" "===n||"	"===n||n===`
216`)&&(!r||" "===r||"	"===r||r===`
217`))),er=e=>{let t=0,n=!1,r=e.length;for(let i=0;i<r;i+=1){if("`"===e[i]&&i+2<r&&"`"===e[i+1]&&"`"===e[i+2]){n=!n,i+=2;continue}if(n||"*"!==e[i])continue;let a=i>0?e[i-1]:"",o=i<r-1?e[i+1]:"";en(e,i,a,o)||(t+=1)}return t},ei=(e,t,n,r)=>!!("\\"===n||e.includes("$")&&Q(e,t)||J(e,t)||ee(e,t)||"_"===n||"_"===r||n&&r&&Z(n)&&Z(r)),ea=e=>{let t=0,n=!1,r=e.length;for(let i=0;i<r;i+=1){if("`"===e[i]&&i+2<r&&"`"===e[i+1]&&"`"===e[i+2]){n=!n,i+=2;continue}if(n||"_"!==e[i])continue;let a=i>0?e[i-1]:"",o=i<r-1?e[i+1]:"";ei(e,i,a,o)||(t+=1)}return t},eo=e=>{let t=0,n=0,r=!1;for(let i=0;i<e.length;i+=1){if("`"===e[i]&&i+2<e.length&&"`"===e[i+1]&&"`"===e[i+2]){n>=3&&(t+=Math.floor(n/3)),n=0,r=!r,i+=2;continue}r||("*"===e[i]?n+=1:(n>=3&&(t+=Math.floor(n/3)),n=0))}return n>=3&&(t+=Math.floor(n/3)),t},es=e=>{let t=0,n=!1;for(let r=0;r<e.length;r+=1){if("`"===e[r]&&r+2<e.length&&"`"===e[r+1]&&"`"===e[r+2]){n=!n,r+=2;continue}n||"*"===e[r]&&r+1<e.length&&"*"===e[r+1]&&(t+=1,r+=1)}return t},el=e=>{let t=0,n=!1;for(let r=0;r<e.length;r+=1){if("`"===e[r]&&r+2<e.length&&"`"===e[r+1]&&"`"===e[r+2]){n=!n,r+=2;continue}n||"_"===e[r]&&r+1<e.length&&"_"===e[r+1]&&(t+=1,r+=1)}return t},eu=(e,t,n)=>{if(!t||B.test(t))return!0;let r=e.substring(0,n).lastIndexOf(`
218`),i=e.substring(-1===r?0:r+1,n);return!!(z.test(i)&&t.includes(`
219`))||et(e,n,"*")},ec=(e,t,n)=>{if(!t||B.test(t))return!0;let r=e.substring(0,n).lastIndexOf(`
220`),i=e.substring(-1===r?0:r+1,n);return!!(z.test(i)&&t.includes(`
221`))||et(e,n,"_")},ed=e=>{let t=!1;for(let n=0;n<e.length;n+=1){if("`"===e[n]&&n+2<e.length&&"`"===e[n+1]&&"`"===e[n+2]){t=!t,n+=2;continue}if(!t&&"*"===e[n]&&"*"!==e[n-1]&&"*"!==e[n+1]&&"\\"!==e[n-1]&&!Q(e,n)){let t=n>0?e[n-1]:"",r=n<e.length-1?e[n+1]:"";if((!t||" "===t||"	"===t||t===`
222`)&&(!r||" "===r||"	"===r||r===`
223`)||t&&r&&Z(t)&&Z(r))continue;return n}}return -1},eh=e=>{let t=!1;for(let n=0;n<e.length;n+=1){if("`"===e[n]&&n+2<e.length&&"`"===e[n+1]&&"`"===e[n+2]){t=!t,n+=2;continue}if(!t&&"_"===e[n]&&"_"!==e[n-1]&&"_"!==e[n+1]&&"\\"!==e[n-1]&&!Q(e,n)&&!J(e,n)){let t=n>0?e[n-1]:"",r=n<e.length-1?e[n+1]:"";if(t&&r&&Z(t)&&Z(r))continue;return n}}return -1},ef=e=>{let t=e.length;for(;t>0&&e[t-1]===`
224`;)t-=1;if(t<e.length){let n=e.slice(0,t),r=e.slice(t);return`${n}_${r}`}return`${e}_`},ep=e=>{if(!e.endsWith("**"))return null;let t=e.slice(0,-2);if(es(t)%2!=1)return null;let n=t.indexOf("**"),r=eh(t);return -1!==n&&-1!==r&&n<r?`${t}_**`:null},eg=e=>{let t=es(e),n=er(e);return t%2==0&&n%2==0}
224,em=(e,t,n)=>!!(!t||B.test(t)||E(e,n)||N(e,n))||et(e,n,"*"),ey=/<[a-zA-Z/][^>]*$/,eb=e=>!e.match(W)||e.includes(`
225`)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e,ev=e=>(e.match(/```/g)||[]).length%2==1,ex=(e,t)=>t>=2&&"```"===e.substring(t-2,t+1)||t>=1&&"```"===e.substring(t-1,t+2)||t<=e.length-3&&"```"===e.substring(t,t+3),ek=e=>{let t=0,n=!1;for(let r=0;r<e.length-1;r+=1)"`"!==e[r]||ex(e,r)||(n=!n),n||"$"!==e[r]||"$"!==e[r+1]||(t+=1,r+=1);return t},ew=e=>{let t=0,n=!1;for(let r=0;r<e.length;r+=1){if("\\"===e[r]){r+=1;continue}if("`"===e[r]&&!ex(e,r)){n=!n;continue}n||"$"!==e[r]||(r+1<e.length&&"$"===e[r+1]?r+=1:t+=1)}return t},e_=e=>{if(e.endsWith("$")&&!e.endsWith("$$"))return`${e}$`;let t=e.indexOf("$$");return -1===t||-1===e.indexOf(`
226`,t)||e.endsWith(`
227`)?`${e}$$`:`${e}
228$$`},eS=(e,t,n)=>{if(e.substring(t+2).includes(")"))return null;let r=Y(e,t);if(-1===r||E(e,r))return null;let i=r>0&&"!"===e[r-1],a=e.substring(0,i?r-1:r);if(i)return a;let o=e.substring(r+1,t);return"text-only"===n?`${a}${o}`:`${a}[${o}](streamdown:incomplete-link)`},eC=(e,t)=>{for(let n=0;n<t;n++)if("["===e[n]&&!E(e,n)){if(n>0&&"!"===e[n-1])continue;let t=X(e,n);if(-1===t)return n;if(t+1<e.length&&"("===e[t+1]){let r=e.indexOf(")",t+2);-1!==r&&(n=r)}}return t},eM=(e,t,n)=>{let r=t>0&&"!"===e[t-1],i=r?t-1:t;if(!e.substring(t+1).includes("]")){let a=e.substring(0,i);if(r)return a;
228if("text-only"===n){let n=eC(e,t);return e.substring(0,n)+e.substring(n+1)}return`${e}](streamdown:incomplete-link)`}if(-1===X(e,t)){let a=e.substring(0,i);if(r)return a;if("text-only"===n){let n=eC(e,t);return e.substring(0,n)+e.substring(n+1)}return`${e}](streamdown:incomplete-link)`}return null},eA=(e,t="protocol")=>{let n=e.lastIndexOf("](");if(-1!==n&&!E(e,n)){let r=eS(e,n,t);if(null!==r)return r}for(let n=e.length-1;n>=0;n-=1)if("["===e[n]&&!E(e,n)){let r=eM(e,n,t);if(null!==r)return r}return e},eE=/^-{1,2}$/,eT=/^[\s]*-{1,2}[\s]+$/,eR=/^={1,2}$/,eN=/^[\s]*={1,2}[\s]+$/,eP=RegExp("(?<=[\\p{L}\\p{N}_])~(?!~)(?=[\\p{L}\\p{N}_])","gu"),eL=e=>!1!==e,eI=e=>!0===e,eO={SINGLE_TILDE:0,COMPARISON_OPERATORS:5,HTML_TAGS:10,SETEXT_HEADINGS:15,LINKS:20,BOLD_ITALIC:30,BOLD:35,ITALIC_DOUBLE_UNDERSCORE:40,ITALIC_SINGLE_ASTERISK:41,ITALIC_SINGLE_UNDERSCORE:42,INLINE_CODE:50,STRIKETHROUGH:60,KATEX:70,INLINE_KATEX:75,DEFAULT:100},e$=[{handler:{name:"singleTilde",handle:e=>e&&"string"==typeof e&&e.includes("~")?e.replace(eP,(t,n)=>E(e,n)?t:"\\~"):e,priority:eO.SINGLE_TILDE},optionKey:"singleTilde"},{handler:{name:"comparisonOperators",handle:e=>e&&"string"==typeof e&&e.includes(">")?e.replace(P,(t,n,r,i)=>E(e,i)?t:`${n}\\>${r}`):e,priority:eO.COMPARISON_OPERATORS},optionKey:"comparisonOperators"},{handler:{name:"htmlTags",handle:e=>{let t=e.match(ey);return!t||void 0===t.index||E(e,t.index)?e:e.substring(0,t.index).trimEnd()},priority:eO.HTML_TAGS},optionKey:"htmlTags"},{handler:{name:"setextHeadings",handle:e=>{if(!e||"string"!=typeof e)return e;let t=e.lastIndexOf(`
229`);if(-1===t)return e;let n=e.substring(t+1),r=e.substring(0,t),i=n.trim();if(eE.test(i)&&!n.match(eT)){let t=r.split(`
230`).at(-1);if(t&&t.trim().length>0)return`${e}\u200B`}if(eR.test(i)&&!n.match(eN)){let t=r.split(`
231`).at(-1);if(t&&t.trim().length>0)return`${e}\u200B`}return e},priority:eO.SETEXT_HEADINGS},optionKey:"setextHeadings"},{handler:{name:"links",handle:eA,priority:eO.LINKS},optionKey:"links",earlyReturn:e=>e.endsWith("](streamdown:incomplete-link)")},{handler:{name:"boldItalic",handle:e=>{if(H.test(e))return e;let t=e.match(O);if(!t)return e;let n=t[2],r=e.lastIndexOf(t[1]);return em(e,n,r)?e:eo(e)%2==1?eg(e)?e:`${e}***`:e},priority:eO.BOLD_ITALIC},optionKey:"boldItalic"},{handler:{name:"bold",handle:e=>{let t=e.match(L);if(!t)return e;let n=t[2],r=e.lastIndexOf(t[1]);return E(e,r)||N(e,r)||eu(e,n,r)?e:es(e)%2==1?n.endsWith("*")?`${e}*`:`${e}**`:e},priority:eO.BOLD},optionKey:"bold"},{handler:{name:"italicDoubleUnderscore",handle:e=>{let t=e.match(I);if(!t){let t=e.match(q);if(t){let n=e.lastIndexOf(t[1]);if(!(E(e,n)||N(e,n))&&el(e)%2==1)return`${e}_`}return e}let n=t[2],r=e.lastIndexOf(t[1]);return E(e,r)||N(e,r)||ec(e,n,r)?e:el(e)%2==1?`${e}__`:e},priority:eO.ITALIC_DOUBLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"italicSingleAsterisk",handle:e=>{if(!e.match($))return e;let t=ed(e);if(-1===t||E(e,t)||N(e,t))return e;let n=e.substring(t+1);return!n||B.test(n)?e:er(e)%2==1?`${e}*`:e},priority:eO.ITALIC_SINGLE_ASTERISK},optionKey:"italic"},{handler:{name:"italicSingleUnderscore",handle:e=>{if(!e.match(j))return e;let t=eh(e);if(-1===t)return e;let n=e.substring(t+1);if(!n||B.test(n)||E(e,t)||N(e,t))return e;if(ea(e)%2==1){let t=ep(e);return null!==t?t:ef(e)}return e},priority:eO.ITALIC_SINGLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"inlineCode",handle:e=>{let t=eb(e);if(null!==t)return t;let n=e.match(D);if(n&&!ev(e)){let t=n[2];if(!t||B.test(t))return e;if(R(e)%2==1)return`${e}\``}return e},priority:eO.INLINE_CODE},optionKey:"inlineCode"},{handler:{name:"strikethrough",handle:e=>{var t,n;let r=e.match(F);if(r){let n=r[2];if(!n||B.test(n))return e;let i=e.lastIndexOf(r[1]);if(E(e,i)||N(e,i))return e;if((null==(t=e.match(V))?void 0:t.length)%2==1)return`${e}~~`}else{let t=e.match(G);if(t){let r=e.lastIndexOf(t[0].slice(0,2));if(E(e,r)||N(e,r))return e;if((null==(n=e.match(V))?void 0:n.length)%2==1)return`${e}~`}}return e},priority:eO.STRIKETHROUGH},optionKey:"strikethrough"},{handler:{name:"katex",handle:e=>ek(e)%2==0?e:e_(e),priority:eO.KATEX},optionKey:"katex"},{handler:{name:"inlineKatex",handle:e=>ew(e)%2==1?`${e}$`:e,priority:eO.INLINE_KATEX},optionKey:"inlineKatex"}],ej=e=>{var t;let n=null!=(t=null==e?void 0:e.linkMode)?t:"protocol";return e$.filter(({handler:t,optionKey:n})=>"links"===t.name?eL(null==e?void 0:e.links)||eL(null==e?void 0:e.images):"inlineKatex"===t.name?eI(null==e?void 0:e.inlineK
231atex):eL(null==e?void 0:e[n])).map(({handler:e,earlyReturn:t})=>"links"===e.name?{handler:A(M({},e),{handle:e=>eA(e,n)}),earlyReturn:"protocol"===n?t:void 0}:{handler:e,earlyReturn:t})},eD=(e,t)=>{var n;if(!e||"string"!=typeof e)return e;let r=e.endsWith(" ")&&!e.endsWith("  ")?e.slice(0,-1):e;for(let{handler:e,earlyReturn:i}of[...ej(t),...(null!=(n=null==t?void 0:t.handlers)?n:[]).map(e=>{var t;return{handler:A(M({},e),{priority:null!=(t=e.priority)?t:eO.DEFAULT}),earlyReturn:void 0}})].sort((e,t)=>{var n,r;return(null!=(n=e.handler.priority)?n:0)-(null!=(r=t.handler.priority)?r:0)}))if(r=e.handle(r),null!=i&&i(r))break;return r},eF=n(59129),eB=n(32747),ez=n(22087),eU=n(37421),eW=n(72695),eH=n(41282),eq=n(80386),eG=n(92341),eV=n(82301);function eZ(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var eY=eZ(),eX={exec:()=>null};function eQ(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(eJ.caret,"$1"),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var eK=(()=>{try{return RegExp("(?<=1)(?<!1)"),!0}catch{return!1}})(),eJ={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[	 ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}>`)},e0=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,e1=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,e2=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,e5=eQ(e2).replace(/bull/g,e1).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),e3=eQ(e2).replace(/bull/g,e1).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),e6=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,e8=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,e9=eQ(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",e8).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),e7=eQ(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,e1).getRegex(),e4="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",te=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,tt=eQ("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>
231)[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$))","i").replace("comment",te).replace("tag",e4).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),tn=eQ(e6).replace("hr",e0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",e4).getRegex(),tr={blockquote:eQ(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",tn).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:e9,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:e0,html:tt,lheading:e5,list:e7,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:tn,table:eX,text:/^[^\n]+/},ti=eQ("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",e0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}	)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",e4).getRegex(),ta={...tr,lheading:e3,table:ti,paragraph:eQ(e6).replace("hr",e0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ti).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",e4).getRegex()},to={...tr,html:eQ(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",te).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:eX,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:eQ(e6).replace("hr",e0).replace("heading",` *#{1,6} *[^
232]`).replace("lheading",e5).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},ts=/^( {2,}|\\)\n(?!\s*$)/,tl=/[\p{P}\p{S}]/u,tu=/[\s\p{P}\p{S}]/u,tc=/[^\s\p{P}\p{S}]/u,td=eQ(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,tu).getRegex(),th=/(?!~)[\p{P}\p{S}]/u,tf=eQ(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",eK?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),tp=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,tg=eQ(tp,"u").replace(/punct/g,tl).getRegex(),tm=eQ(tp,"u").replace(/punct/g,th).getRegex(),ty="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",tb=eQ(ty,"gu").replace(/notPunctSpace/g,tc).replace(/punctSpace/g,tu).replace(/punct/g,tl).getRegex(),tv=eQ(ty,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,th).getRegex(),tx=eQ("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,tc).replace(/punctSpace/g,tu).replace(/punct/g,tl).getRegex(),tk=eQ(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,tl).getRegex(),tw=eQ("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,tc).replace(/punctSpace/g,tu).replace(/punct/g,tl).getRegex(),t_=eQ(/\\(punct)/,"gu").replace(/punct/g,tl).getRegex(),tS=eQ(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[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])?)+(?![-_])/).getRegex(),tC=eQ(te).replace("(?:-->|$)","-->").getRegex(),tM=eQ("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",tC).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),tA=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,tE=eQ(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",tA).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),tT=eQ(/^!?\[(label)\]\[(ref)\]/).replace("label",tA).replace("ref",e8).getRegex(),tR=eQ(/^!?\[(ref)\](?:\[\])?/).replace("ref",e8).getRegex(),tN=eQ("reflink|nolink(?!\\()","g").replace("reflink",tT).replace("nolink",tR).getRegex(),tP=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,tL={_backpedal:eX,anyPunctuation:t_,autolink:tS,blockSkip:tf,br:ts,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:eX,delLDelim:eX,delRDelim:eX,emStrongLDelim:tg,emStrongRDelimAst:tb,emStrongRDelimUnd:tx,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:tE,nolink:tR,punctuation:td,reflink:tT,reflinkSearch:tN,tag:tM,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:eX},tI={...tL,link:eQ(/^!?\[(label)\]\((.*?)\)/).replace("label",tA).getRegex(),reflink:eQ(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",tA).getRegex()},tO={...tL,emStrongRDelimAst:tv,emStrongLDelim:tm,delLDelim:tk,delRDelim:tw,url:eQ(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",tP).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:eQ(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",tP).getRegex()},t$={...tO,br:eQ(ts).replace("{2,}","*").getRegex(),text:eQ(tO.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},tj={normal:tr,gfm:ta,pedantic:to},tD={normal:tL,gfm:tO,breaks:t$,pedantic:tI},tF={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},tB=e=>tF[e];function tz(e,t){if(t){if(eJ.escapeTest.test(e))return e.replace(eJ.escapeReplace,tB)}else if(eJ.escapeTestNoEncode.test(e))return e.replace(eJ.escapeReplaceNoEncode,tB);return e}function tU(e){try{e=encodeURI(e).replace(eJ.percentDecode,"%")}catch{return null}return e}function tW(e,t){let n=e.replace(eJ.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(eJ.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t){if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("")}for(;r<n.length;r++)n[r]=n[r].trim().replace(eJ.slashPipe,"|");return n}function tH(e,t,n){let r=e.length;if(0===r)return"";let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a!==t||n){if(a!==t&&n)i++;else break}else i++}return e.slice(0,r-i)}function tq(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,l}var tG=class{options;rules;lexer;constructor(e){this.options=e||eY}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:tH(e,`
233`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let i=r[1];return t.split(`
234`).map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
235`)}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=tH(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:tH(t[0],`
236`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=tH(t[0],`
237`).split(`
238`),n="",r="",i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(t)break;else a.push(e[o]);e=e.slice(o);let s=a.join(`
239`),l=s.replace(this.rules.other.blockquoteSetextReplace,`
240    $1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
241${s}`:s,r=r?`${r}
242${l}`:l;let u=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,i,!0),this.lexer.state.top=u,0===e.length)break;let c=i.at(-1);if(c?.type==="code")break;if(c?.type==="blockquote"){let t=c.raw+`
243`+e.join(`
244`),a=this.blockquote(t);i[i.length-1]=a,n=n.substring(0,n.length-c.raw.length)+a.raw,r=r.substring(0,r.length-c.text.length)+a.text;break}if(c?.type==="list"){let t=c.raw+`
245`+e.join(`
246`),a=this.list(t);i[i.length-1]=a,n=n.substring(0,n.length-c.raw.length)+a.raw,r=r.substring(0,r.length-c.raw.length)+a.raw,e=t.substring(i.at(-1).raw.length).split(`
247`);continue}}return{type:"blockquote",raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);
247if(t){let n=t[1].trim(),r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r="",s="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let l=function(e,t=0){let n=t,r="";for(let t of e)if("	"===t){let e=4-n%4;r+=" ".repeat(e),n+=e}else r+=t,n++;return r}(t[2].split(`
248`,1)[0],t[1].length),u=e.split(`
249`,1)[0],c=!l.trim(),d=0;if(this.options.pedantic?(d=2,s=l.trimStart()):c?d=t[1].length+1:(d=(d=l.search(this.rules.other.nonSpaceChar))>4?1:d,s=l.slice(d),d+=t[1].length),c&&this.rules.other.blankLine.test(u)&&(r+=u+`
250`,e=e.substring(u.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d),h=this.rules.other.blockquoteBeginRegex(d);for(;e;){let f=e.split(`
251`,1)[0],p;if(u=f,p=this.options.pedantic?u=u.replace(this.rules.other.listReplaceNesting,"  "):u.replace(this.rules.other.tabCharGlobal,"    "),i.test(u)||a.test(u)||o.test(u)||h.test(u)||t.test(u)||n.test(u))break;if(p.search(this.rules.other.nonSpaceChar)>=d||!u.trim())s+=`
252`+p.slice(d);else{if(c||l.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||i.test(l)||a.test(l)||n.test(l))break;s+=`
253`+u}c=!u.trim(),r+=f+`
254`,e=e.substring(f.length+1),l=p.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0)),i.items.push({type:"list_item",raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(!s)return;for(let e of(s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd(),i.raw=i.raw.trimEnd(),i.items)){if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),e.task){if(e.text=e.text.replace(this.rules.other.listReplaceTask,""),e.tokens[0]?.type==="text"||e.tokens[0]?.type==="paragraph"){e.tokens[0].raw=e.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),e.tokens[0].text=e.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,"");break}}let t=this.rules.other.listTaskCheckbox.exec(e.raw);if(t){let n={type:"checkbox",raw:t[0]+" ",checked:"[ ]"!==t[0]};e.checked=n.checked,i.loose?e.tokens[0]&&["paragraph","text"].includes(e.tokens[0].type)&&"tokens"in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=n.raw+e.tokens[0].raw,e.tokens[0].text=n.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(n)):e.tokens.unshift({type:"paragraph",raw:n.raw,text:n.raw,tokens:[n]}):e.tokens.unshift(n)}}if(!i.loose){let t=e.tokens.filter(e=>"space"===e.type),n=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));i.loose=n}}if(i.loose)for(let e of i.items)for(let t of(e.loose=!0,e.tokens))"text"===t.type&&(t.type="paragraph");return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=tW(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
255`):[],a={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push("right"):this.rules.other.tableAlignCenter.test(e)?a.align.push("center"):this.rules.other.tableAlignLeft.test(e)?a.align.push("left"):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(tW(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
256`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=tH(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(")"))return -1;let n=0;for(let t=0;t<e.length;t++)if("\\"===e[t])t++;else if("("===e[t])n++;else if(")"===e[t]&&--n<0)return t;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),tq(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}
256return tq(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,l="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);null!==(r=l.exec(t));){if(!(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6]))continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if((o-=a)>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,l=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let u=l.slice(2,-2);return{type:"strong",raw:l,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);null!==(r=s.exec(t));){if(!(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6])||(a=[...i].length)!==n)continue;if(r[3]||r[4]){o+=a;continue}if((o-=a)>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),l=s.slice(n,-n);return{type:"del",raw:s,text:l,tokens:this.lexer.inlineTokens(l)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return n="@"===t[2]?"mailto:"+(e=t[1]):e=t[1],{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])n="mailto:"+(e=t[0]);else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(r!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},tV=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||eY,this.options.tokenizer=this.options.tokenizer||new tG,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:eJ,block:tj.normal,inline:tD.normal};this.options.pedantic?(t.block=tj.pedantic,t.inline=tD.pedantic):this.options.gfm&&(t.block=tj.gfm,this.options.breaks?t.inline=tD.breaks:t.inline=tD.gfm),this.tokenizer.rules=t}static get rules(){return{block:tj,inline:tD}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(eJ.carriageReturn,`
257`),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(eJ.tabCharGlobal,"    ").replace(eJ.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);1===r.raw.length&&void 0!==n?n.raw+=`
258`:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(`
259`)?"":`
260`)+r.raw,n.text+=`
261`+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if((r=this.tokenizer.fences(e))||(r=this.tokenizer.heading(e))||(r=this.tokenizer.hr(e))||(r=this.tokenizer.blockquote(e))||(r=this.tokenizer.list(e))||(r=this.tokenizer.html(e))){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(`
262`)?"":`
263`)+r.raw,n.text+=`
264`+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title}
264,t.push(r));continue}if((r=this.tokenizer.table(e))||(r=this.tokenizer.lheading(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let a=t.at(-1);n&&a?.type==="paragraph"?(a.raw+=(a.raw.endsWith(`
265`)?"":`
266`)+r.raw,a.text+=`
267`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="text"?(n.raw+=(n.raw.endsWith(`
268`)?"":`
269`)+r.raw,n.text+=`
270`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n;this.tokenizer.lexer=this;let r=e,i=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!==(i=this.tokenizer.rules.inline.reflinkSearch.exec(r));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!==(i=this.tokenizer.rules.inline.anyPunctuation.exec(r));)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!==(i=this.tokenizer.rules.inline.blockSkip.exec(r));)n=i[2]?i[2].length:0,r=r.slice(0,i.index+n)+"["+"a".repeat(i[0].length-n-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let a=!1,o="";for(;e;){let n;if(a||(o=""),a=!1,this.options.extensions?.inline?.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))continue;if((n=this.tokenizer.escape(e))||(n=this.tokenizer.tag(e))||(n=this.tokenizer.link(e))){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length);let r=t.at(-1);"text"===n.type&&r?.type==="text"?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if((n=this.tokenizer.emStrong(e,r,o))||(n=this.tokenizer.codespan(e))||(n=this.tokenizer.br(e))||(n=this.tokenizer.del(e,r,o))||(n=this.tokenizer.autolink(e))||!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(i)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(o=n.raw.slice(-1)),a=!0;let r=t.at(-1);r?.type==="text"?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}},tZ=class{options;parser;constructor(e){this.options=e||eY}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(eJ.notSpaceStart)?.[0],i=e.replace(eJ.endingNewline,"")+`
271`;return r?'<pre><code class="language-'+tz(r)+'">'+(n?i:tz(i,!0))+`</code></pre>
272`:"<pre><code>"+(n?i:tz(i,!0))+`</code></pre>
273`}blockquote({tokens:e}){return`<blockquote>
274${this.parser.parse(e)}</blockquote>
275`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
276`}hr(e){return`<hr>
277`}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+`>
278`+r+"</"+i+`>
279`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
280`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
281`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n="";for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
282<thead>
283`+t+`</thead>
284`+r+`</table>
285`}tablerow({text:e}){return`<tr>
286${e}</tr>
287`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
288`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${tz(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=tU(e);if(null===i)return r;let a='<a href="'+(e=i)+'"';return t&&(a+=' title="'+tz(t)+'"'),a+=">"+r+"</a>"}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=tU(e);if(null===i)return tz(n);e=i;let a=`<img src="${e}" alt="${tz(n)}"`;return t&&(a+=` title="${tz(t)}"`),a+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:tz(e.text)}},tY=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},tX=class e{options;renderer;textRenderer;constructor(e){this.options=e||eY,this.options.renderer=this.options.renderer||new tZ,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new tY}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t="";for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=this.options.extensions.renderers[r.type].call({parser:this},r);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(r.type)){t+=e||"";continue}}switch(r.type){case"space":t+=this.renderer.space(r);break;case"hr":t+=this.renderer.hr(r);break;case"heading":t+=this.renderer.heading(r);break;case"code":t+=this.renderer.code(r);break;case"table":t+=this.renderer.table(r);break;case"blockquote":t+=this.renderer.blockquote(r);break;case"list":t+=this.renderer.list(r);break;case"checkbox":t+=this.renderer.checkbox(r);break;case"html":t+=this.renderer.html(r);break;case"def":t+=this.renderer.def(r);break;case"paragraph":t+=this.renderer.paragraph(r);break;case"text":t+=this.renderer.text(r);break;default:{let e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=e||"";continue}}switch(i.type){case"escape":case"text":n+=t.text(i);break;case"html":n+=t.html(i);break;case"link":n+=t.link(i);break;case"image":n+=t.image(i);break;case"checkbox":n+=t.checkbox(i);break;case"strong":n+=t.strong(i);break;case"em":n+=t.em(i);break;case"codespan":n+=t.codespan(i);break;case"br":n+=t.br(i);break;case"del":n+=t.del(i);break;default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}},tQ=class{options;block;constructor(e){this.options=e||eY}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?tV.lex:tV.lexInline}provideParser(e=this.block){return e?tX.parse:tX.parseInline}},tK=new class{defaults=eZ();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=tX;Renderer=tZ;TextRenderer=tY;Lexer=tV;Tokenizer=tG;Hooks=tQ;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":for(let e of r.header)n=n.concat(this.walkTokens(e.tokens,t));for(let e of r.rows)for(let r of e)n=n.concat(this.walkTokens(r.tokens,t));break;case"list":n=n.concat(this.walkTokens(r.items,t));break;default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};
288return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new tZ(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=e.renderer[n],i=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new tG(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=e.tokenizer[n],i=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new tQ;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=e.hooks[n],i=t[n];tQ.passThroughHooks.has(n)?t[n]=e=>{if(this.defaults.async&&tQ.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await r.call(t,e);return i.call(t,n)})();let a=r.call(t,e);return i.call(t,a)}:t[n]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await r.apply(t,e);return!1===n&&(n=await i.apply(t,e)),n})();let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return tV.lex(e,t??this.defaults)}parser(e,t){return tX.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)return a(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return a(Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return a(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await (i.hooks?await i.hooks.provideLexer(e):e?tV.lex:tV.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await (i.hooks?await i.hooks.provideParser(e):e?tX.parse:tX.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?tV.lex:tV.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?tX.parse:tX.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
289Please report this to https://github.com/markedjs/marked.`,e){let e="<p>An error occurred:</p><pre>"+tz(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function tJ(e,t){return tK.parse(e,t)}tJ.options=tJ.setOptions=function(e){return tK.setOptions(e),tJ.defaults=tK.defaults,eY=tJ.defaults,tJ},tJ.getDefaults=eZ,tJ.defaults=eY,tJ.use=function(...e){return tK.use(...e),tJ.defaults=tK.defaults,eY=tJ.defaults,tJ},tJ.walkTokens=function(e,t){return tK.walkTokens(e,t)},tJ.parseInline=tK.parseInline,tJ.Parser=tX,tJ.parser=tX.parse,tJ.Renderer=tZ,tJ.TextRenderer=tY,tJ.Lexer=tV,tJ.lexer=tV.lex,tJ.Tokenizer=tG,tJ.Hooks=tQ,tJ.parse=tJ,tJ.options,tJ.setOptions,tJ.use,tJ.walkTokens,tJ.parseInline,tX.parse,tV.lex;var t0=/\s/,t1=/^\s+$/,t2=new Set(["code","pre","svg","math","annotation"]),t5=e=>"object"==typeof e&&null!==e&&"type"in e&&"element"===e.type,t3=e=>e.some(e=>t5(e)&&t2.has(e.tagName)),t6=e=>{let t=[],n="",r=!1;for(let i of e){let e=t0.test(i);e!==r&&n&&(t.push(n),n=""),n+=i,r=e}
289return n&&t.push(n),t},t8=e=>{let t=[],n="";for(let r of e)t0.test(r)?n+=r:(n&&(t.push(n),n=""),t.push(r));return n&&t.push(n),t},t9=(e,t,n,r,i,a)=>{let o="--sd-animation:sd-".concat(t,";--sd-duration:").concat(i?0:n,"ms;--sd-easing:").concat(r);return a&&(o+=";--sd-delay:".concat(a,"ms")),{type:"element",tagName:"span",properties:{"data-sd-animate":!0,style:o},children:[{type:"text",value:e}]}},t7=(e,t,n,r,i)=>{let o=t.at(-1);if(!(o&&"children"in o))return;if(t3(t))return a.AM;let s=o.children.indexOf(e);if(-1===s)return;let l=e.value;if(!l.trim()){i.count+=l.length;return}let u="char"===n.sep?t8(l):t6(l),c=r.prevContentLength,d=u.map(e=>{let t=i.count;if(i.count+=e.length,t1.test(e))return{type:"text",value:e};let r=c>0&&t<c,a=r?0:i.newIndex++*n.stagger;return t9(e,n.animation,n.duration,n.easing,r,a)});return o.children.splice(s,1,...d),s+d.length},t4=0;function ne(e){var t,n,r,i,o;let s={animation:null!=(t=null==e?void 0:e.animation)?t:"fadeIn",duration:null!=(n=null==e?void 0:e.duration)?n:150,easing:null!=(r=null==e?void 0:e.easing)?r:"ease",sep:null!=(i=null==e?void 0:e.sep)?i:"word",stagger:null!=(o=null==e?void 0:e.stagger)?o:40},l={prevContentLength:0,lastRenderCharCount:0},u=t4++,c=()=>e=>{let t={count:0,newIndex:0};(0,a.S4)(e,"text",(e,n)=>t7(e,n,s,l,t)),l.lastRenderCharCount=t.count,l.prevContentLength=0};return Object.defineProperty(c,"name",{value:"rehypeAnimate$".concat(u)}),{name:"animate",type:"animate",rehypePlugin:c,setPrevContentLength(e){l.prevContentLength=e},getLastRenderCharCount(){let e=l.lastRenderCharCount;return l.lastRenderCharCount=0,e}}}ne();var nt=(0,r.createContext)(!1),nn=()=>(0,r.useContext)(nt),nr=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,eB.m6)((0,eF.W)(t))},ni=(e,t)=>{if(!e||!t)return t;let n="".concat(e,":");return t.split(/\s+/).filter(Boolean).map(t=>t.startsWith(n)?t:"".concat(e,":").concat(t)).join(" ")},na=e=>e?function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return ni(e,(0,eB.m6)((0,eF.W)(n)))}:nr,no=(e,t,n)=>{let r="string"==typeof t&&n.startsWith("text/csv")?"\uFEFF":"",i="string"==typeof t?new Blob([r+t],{type:n}):t,a=URL.createObjectURL(i),o=document.createElement("a");o.href=a,o.download=e,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(a)},ns=(0,r.createContext)(nr),nl=()=>(0,r.useContext)(ns),nu=nr("block","before:content-[counter(line)]","before:inline-block","before:[counter-increment:line]","before:w-6","before:mr-4","before:text-[13px]","before:text-right","before:text-muted-foreground/50","before:font-mono","before:select-none"),nc=e=>{let t={};for(let n of e.split(";")){let e=n.indexOf(":");if(e>0){let r=n.slice(0,e).trim(),i=n.slice(e+1).trim();r&&i&&(t[r]=i)}}return t},nd=(0,r.memo)(e=>{let{children:t,result:n,language:i,className:a,startLine:o,lineNumbers:s=!0,...l}=e,u=nl(),c=(0,r.useMemo)(()=>u(nu),[u]),d=(0,r.useMemo)(()=>{let e={};return n.bg&&(e["--sdm-bg"]=n.bg),n.fg&&(e["--sdm-fg"]=n.fg),n.rootStyle&&Object.assign(e,nc(n.rootStyle)),e},[n.bg,n.fg,n.rootStyle]);return(0,ez.jsx)("div",{className:u(a,"overflow-x-auto rounded-md border border-border bg-background p-4 text-sm"),"data-language":i,"data-streamdown":"code-block-body",...l,children:(0,ez.jsx)("pre",{className:u(a,"bg-[var(--sdm-bg,inherit]","dark:bg-[var(--shiki-dark-bg,var(--sdm-bg,inherit)]"),style:d,children:(0,ez.jsx)("code",{className:s?u("[counter-increment:line_0] [counter-reset:line]"):void 0,style:s&&o&&o>1?{counterReset:"line ".concat(o-1)}:void 0,children:n.tokens.map((e,t)=>(0,ez.jsx)("span",{className:s?c:void 0,children:0===e.length||1===e.length&&""===e[0].content?"\n":e.map((e,t)=>{let n={},r=!!e.bgColor;if(e.color&&(n["--sdm-c"]=e.color),e.bgColor&&(n["--sdm-tbg"]=e.bgColor),e.htmlStyle)for(let[t,i]of Object.entries(e.htmlStyle))"color"===t?n["--sdm-c"]=i:"background-color"===t?(n["--sdm-tbg"]=i,r=!0):n[t]=i;return(0,ez.jsx)("span",{className:u("text-[var(--sdm-c,inherit)]","dark:text-[var(--shiki-dark,var(--sdm-c,inherit))]",r&&"bg-[var(--sdm-tbg)]",r&&"dark:bg-[var(--shiki-dark-bg,var(--sdm-tbg))]"),style:n,...e.htmlAttrs,children:e.content},t)})},t))})})})},(e,t)=>e.result===t.result&&e.language===t.language&&e.className===t.className&&e.startLine===t.startLine&&e.lineNumbers===t.lineNumbers),nh=e=>{let{className:t,language:n,style:r,isIncomplete:i,...a}=e,o=nl();return(0,ez.jsx)("div",{className:o("my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",t),"data-incomplete":i||void 0,"data-language":n,"data-streamdown":"code-block",style:{contentVisibility:"auto",containIntrinsicSize:"auto 200px",...r},...a})},nf=(0,r.createContext)({code:""}),np=()=>(0,r.useContext)(nf),ng=e=>{let{language:t}=e,n=nl();return(0,ez.jsx)("div",{className:n("flex h-8 items-center text-muted-foreground text-xs"),"data-language":t,"data-streamdown":"code-block-header",children:(0,ez.jsx)("span",{className:n("ml-1 font-mono lowercase"),children:t})})},nm=e=>{let t=e.length;for(;t>0&&"\n"===e[t-1];)t--;return e.slice(0,t)},ny=(0,r.lazy)(()=>n.e(21096).then(n.bind(n,21096)).then(e=>({default:e.HighlightedCodeBlockBody}))),nb=e=>{let{code:t,language:n,className:i,children:a,isIncomplete:o=!1,startLine:s,lineNumbers:l,...u}=e,c=nl(),d=(0,r.useMemo)(()=>nm(t),[t]),h=(0,r.useMemo)(()=>({bg:"transparent",fg:"inherit",tokens:d.split("\n").map(e=>[{content:e,color:"inherit",bgColor:"transparent",htmlStyle:{},offset:0}])}),[d]);return(0,ez.jsx)(nf.Provider,{value:{code:t},children:(0,ez.jsxs)(nh,{isIncomplete:o,language:n,children:[(0,ez.jsx)(ng,{language:n}),a?(0,ez.jsx)("div",{className:c("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:(0,ez.jsx)("div",{className:c("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"code-block-actions",children:a})}):null,(0,ez.jsx)(r.Suspense,{fallback:(0,ez.jsx)(nd,{className:i,language:n,lineNumbers:l,result:h,startLine:s,...u}),children:(0,ez.jsx)(ny,{className:i,code:d,language:n,lineNumbers:l,raw:h,startLine:s,...u})})]})})},nv={CheckIcon:e=>(0,ez.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,ez.jsx)("path",{clipRule:"evenodd",d:"M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z",fill:"currentColor",fillRule:"evenodd"})}),CopyIcon:e=>(0,ez.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,ez.jsx)("path",{clipRule:"evenodd",d:"M2.75 0.5C1.7835 0.5 1 1.2835 1 2.25V9.75C1 10.7165 1.7835 11.5 2.75 11.5H3.75H4.5V10H3.75H2.75C2.61193 10 2.5 9.88807 2.5 9.75V2.25C2.5 2.11193 2.61193 2 2.75 2H8.25C8.38807 2 8.5 2.11193 8.5 2.25V3H10V2.25C10 1.2835 9.2165 0.5 8.25 0.5H2.75ZM7.75 4.5C6.7835 4.5 6 5.2835 6 6.25V13.75C6 14.7165 6.7835 15.5 7.75 15.5H13.25C14.2165 15.5 15 14.7165 15 13.75V6.25C15 5.2835 14.2165 4.5 13.25 4.5H7.75ZM7.5 6.25C7.5 6.11193 7.61193 6 7.75 6H13.25C13.3881 6 13.5 6.11193 13.5 6.25V13.75C13.5 13.8881 13.3881 14 13.25 14H7.75C7.61193 14 7.5 13.8881 7.5 13.75V6.25Z",fill:"currentColor",fillRule:"evenodd"})}),DownloadIcon:e=>(0,ez.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,ez.jsx)("path",{clipRule:"evenodd",d:"M8.75 1V1.75V8.68934L10.7197 6.71967L11.25 6.18934L12.3107 7.25L11.7803 7.78033L8.70711 10.8536C8.31658 11.2441 7.
28968342 11.2441 7.29289 10.8536L4.21967 7.78033L3.68934 7.25L4.75 6.18934L5.28033 6.71967L7.25 8.68934V1.75V1H8.75ZM13.5 9.25V13.5H2.5V9.25V8.5H1V9.25V14C1 14.5523 1.44771 15 2 15H14C14.5523 15 15 14.5523 15 14V9.25V8.5H13.5V9.25Z",fill:"currentColor",fillRule:"evenodd"})}),ExternalLinkIcon:e=>(0,ez.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,ez.jsx)("path",{clipRule:"evenodd",d:"M13.5 10.25V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25L2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H5.75H6.5V1H5.75H2.75C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V10.25V9.5H13.5V10.25ZM9 1H9.75H14.2495C14.6637 1 14.9995 1.33579 14.9995 1.75V6.25V7H13.4995V6.25V3.56066L8.53033 8.52978L8 9.06011L6.93934 7.99945L7.46967 7.46912L12.4388 2.5H9.75H9V1Z",fill:"currentColor",fillRule:"evenodd"})}),Loader2Icon:e=>(0,ez.jsxs)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:[(0,ez.jsx)("path",{d:"M8 0V4",stroke:"currentColor",strokeWidth:"1.5"}),(0,ez.jsx)("path",{d:"M8 16V12",opacity:"0.5",stroke:"currentColor",strokeWidth:"1.5"}),(0,ez.jsx)("path",{d:"M3.29773 1.52783L5.64887 4.7639",opacity:"0.9",stroke:"currentColor",strokeWidth:"1.5"}),(0,ez.jsx)("path",{d:"M12.7023 1.52783L10.3511 4.7639",opacity:"0.1",stroke:"currentColor",strokeWidth:"1.5"}),(0,ez.jsx)("path",{d:"M12.7023 14.472L10.3511 11.236",opacity:"0.4",stroke:"currentColor",strokeWidth:"1.5"}),(0,ez.jsx)("path",{d:"M3.29773 14.472L5.64887 11.236",opacity:"0.6",stroke:"currentColor",strokeWidth:"1.5"}),(0,ez.jsx)("path",{d:"M15.6085 5.52783L11.8043 6.7639",opacity:"0.2",stroke:"currentColor",strokeWidth:"1.5"}),(0,ez.jsx)("path",{d:"M0.391602 10.472L4.19583 9.23598",opacity:"0.7",stroke:"currentColor",strokeWidth:"1.5"}),(0,ez.jsx)("path",{d:"M15.6085 10.4722L11.8043 9.2361",opacity:"0.3",stroke:"currentColor",strokeWidth:"1.5"}),(0,ez.jsx)("path",{d:"M0.391602 5.52783L4.19583 6.7639",opacity:"0.8",stroke:"currentColor",strokeWidth:"1.5"})]}),Maximize2Icon:e=>(0,ez.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,ez.jsx)("path",{clipRule:"evenodd",d:"M1 5.25V6H2.5V5.25V2.5H5.25H6V1H5.25H2C1.44772 1 1 1.44772 1 2V5.25ZM5.25 14.9994H6V13.4994H5.25H2.5V10.7494V9.99939H1V10.7494V13.9994C1 14.5517 1.44772 14.9994 2 14.9994H5.25ZM15 10V10.75V14C15 14.5523 14.5523 15 14 15H10.75H10V13.5H10.75H13.5V10.75V10H15ZM10.75 1H10V2.5H10.75H13.5V5.25V6H15V5.25V2C15 1.44772 14.5523 1 14 1H10.75Z",fill:"currentColor",fillRule:"evenodd"})}),RotateCcwIcon:e=>(0,ez.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,ez.jsx)("path",{clipRule:"evenodd",d:"M13.5 8C13.5 4.96643 11.0257 2.5 7.96452 2.5C5.42843 2.5 3.29365 4.19393 2.63724 6.5H5.25H6V8H5.25H0.75C0.335787 8 0 7.66421 0 7.25V2.75V2H1.5V2.75V5.23347C2.57851 2.74164 5.06835 1 7.96452 1C11.8461 1 15 4.13001 15 8C15 11.87 11.8461 15 7.96452 15C5.62368 15 3.54872 13.8617 2.27046 12.1122L1.828 11.5066L3.03915 10.6217L3.48161 11.2273C4.48831 12.6051 6.12055 13.5 7.96452 13.5C11.0257 13.5 13.5 11.0336 13.5 8Z",fill:"currentColor",fillRule:"evenodd"})}),XIcon:e=>(0,ez.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,ez.jsx)("path",{clipRule:"evenodd",d:"M12.4697 13.5303L13 14.0607L14.0607 13L13.5303 12.4697L9.06065 7.99999L13.5303 3.53032L14.0607 2.99999L13 1.93933L12.4697 2.46966L7.99999 6.93933L3.53032 2.46966L2.99999 1.93933L1.93933 2.99999L2.46966 3.53032L6.93933 7.99999L2.46966 12.4697L1.93933 13L2.99999 14.0607L3.53032 13.5303L7.99999 9.06065L12.4697 13.5303Z",fill:"currentColor",fillRule:"evenodd"})}),ZoomInIcon:e=>(0,ez.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,ez.jsx)("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H5.875V4.75V4.125H7.125V4.75V5.875H8.25H8.875V7.125H8.25H7.125V8.25V8.875H5.875V8.25V7.125H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),ZoomOutIcon:e=>(0,ez.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,ez.jsx)("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H8.25H8.875V7.125H8.25H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})})},nx=(0,r.createContext)(nv),nk=(e,t)=>{if(e===t)return!0;
289if(!(e&&t))return e===t;let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>e[n]===t[n])},nw=e=>{let{icons:t,children:n}=e,i=(0,r.useRef)(t),a=(0,r.useRef)(t?{...nv,...t}:nv);nk(i.current,t)||(i.current=t,a.current=t?{...nv,...t}:nv);let o=a.current;return(0,ez.jsx)(nx.Provider,{value:o,children:n})},n_=()=>(0,r.useContext)(nx),nS={copyCode:"Copy Code",downloadFile:"Download file",downloadDiagram:"Download diagram",downloadDiagramAsSvg:"Download diagram as SVG",downloadDiagramAsPng:"Download diagram as PNG",downloadDiagramAsMmd:"Download diagram as MMD",viewFullscreen:"View fullscreen",exitFullscreen:"Exit fullscreen",mermaidFormatSvg:"SVG",mermaidFormatPng:"PNG",mermaidFormatMmd:"MMD",copyTable:"Copy table",copyTableAsMarkdown:"Copy table as Markdown",copyTableAsCsv:"Copy table as CSV",copyTableAsTsv:"Copy table as TSV",downloadTable:"Download table",downloadTableAsCsv:"Download table as CSV",downloadTableAsMarkdown:"Download table as Markdown",tableFormatMarkdown:"Markdown",tableFormatCsv:"CSV",tableFormatTsv:"TSV",imageNotAvailable:"Image not available",downloadImage:"Download image",openExternalLink:"Open external link?",externalLinkWarning:"You're about to visit an external website.",close:"Close",copyLink:"Copy link",copied:"Copied",openLink:"Open link"},nC=(0,r.createContext)(nS),nM=()=>(0,r.useContext)(nC),nA=e=>{let{onCopy:t,onError:n,timeout:i=2e3,children:a,className:o,code:s,...l}=e,u=nl(),[c,d]=(0,r.useState)(!1),h=(0,r.useRef)(0),{code:f}=np(),{isAnimating:p}=(0,r.useContext)(iy),g=nM(),m=null!=s?s:f,y=async()=>{var e;if("undefined"==typeof window||!(null!=(e=null==navigator?void 0:navigator.clipboard)&&e.writeText)){null==n||n(Error("Clipboard API not available"));return}try{c||(await navigator.clipboard.writeText(m),d(!0),null==t||t(),h.current=window.setTimeout(()=>d(!1),i))}catch(e){null==n||n(e)}};(0,r.useEffect)(()=>()=>{window.clearTimeout(h.current)},[]);let b=n_(),v=c?b.CheckIcon:b.CopyIcon;return(0,ez.jsx)("button",{className:u("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",o),"data-streamdown":"code-block-copy-button",disabled:p,onClick:y,title:g.copyCode,type:"button",...l,children:null!=a?a:(0,ez.jsx)(v,{size:14})})},nE={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",文言:"wy"},nT=e=>{let{onDownload:t,onError:n,language:i,children:a,className:o,code:s,...l}=e,u=nl(),{code:c}=np(),{isAnimating:d}=(0,r.useContext)(iy),h=nM(),f=n_(),p=null!=s?s:c,g="file.".concat(i&&i in nE?nE[i]:"txt");return(0,ez.jsx)("button",{className:u("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",o),"data-streamdown":"code-block-download-button",disabled:d,onClick:()=>{try{no(g,p,"text/plain"),null==t||t()}catch(e){null==n||n(e)}},title:h.downloadFile,type:"button",...l,children:null!=a?a:(0,ez.jsx)(f.DownloadIcon,{size:14})})},nR=()=>{let{Loader2Icon:e}=n_(),t=nl();return(0,ez.jsxs)("div",{className:t("w-full divide-y divide-border overflow-hidden rounded-xl border border-border"),children:[(0,ez.jsx)("div",{className:t("h-[46px] w-full bg-muted/80")}),(0,ez.jsx)("div",{className:t("flex w-full items-center justify-center p-4"),children:(0,ez.jsx)(e,{className:t("size-4 animate-spin")})})]})},nN=/\.[^/.]+$/,nP=0,nL=()=>{1===(nP+=1)&&(document.body.style.overflow="hidden")},nI=()=>{0===(nP=Math.max(0,nP-1))&&(document.body.style.overflow="")},nO=e=>{let{url:t,isOpen:n,onClose:i,onConfirm:a}=e,{CheckIcon:o,CopyIcon:s,ExternalLinkIcon:l,XIcon:u}=n_(),c=nl(),[d,h]=(0,r.useState)(!1),f=nM(),p=(0,r.useCallback)(async()=>{try{await navigator.clipboard.writeText(t),h(!0),setTimeout(()=>h(!1),2e3)}catch(e){}},[t]),g=(0,r.useCallback)(()=>{a(),i()},[a,i]);return(0,r.useEffect)(()=>
289{if(n){nL();let e=e=>{"Escape"===e.key&&i()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e),nI()}}},[n,i]),n?(0,ez.jsx)("div",{className:c("fixed inset-0 z-50 flex items-center justify-center bg-background/50 backdrop-blur-sm"),"data-streamdown":"link-safety-modal",onClick:i,onKeyDown:e=>{"Escape"===e.key&&i()},role:"button",tabIndex:0,children:(0,ez.jsxs)("div",{className:c("relative mx-4 flex w-full max-w-md flex-col gap-4 rounded-xl border bg-background p-6 shadow-lg"),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),role:"presentation",children:[(0,ez.jsx)("button",{className:c("absolute top-4 right-4 rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:i,title:f.close,type:"button",children:(0,ez.jsx)(u,{size:16})}),(0,ez.jsxs)("div",{className:c("flex flex-col gap-2"),children:[(0,ez.jsxs)("div",{className:c("flex items-center gap-2 font-semibold text-lg"),children:[(0,ez.jsx)(l,{size:20}),(0,ez.jsx)("span",{children:f.openExternalLink})]}),(0,ez.jsx)("p",{className:c("text-muted-foreground text-sm"),children:f.externalLinkWarning})]}),(0,ez.jsx)("div",{className:c("break-all rounded-md bg-muted p-3 font-mono text-sm",t.length>100&&"max-h-32 overflow-y-auto"),children:t}),(0,ez.jsxs)("div",{className:c("flex gap-2"),children:[(0,ez.jsx)("button",{className:c("flex flex-1 items-center justify-center gap-2 rounded-md border bg-background px-4 py-2 font-medium text-sm transition-all hover:bg-muted"),onClick:p,type:"button",children:d?(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)(o,{size:14}),(0,ez.jsx)("span",{children:f.copied})]}):(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)(s,{size:14}),(0,ez.jsx)("span",{children:f.copyLink})]})}),(0,ez.jsxs)("button",{className:c("flex flex-1 items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 font-medium text-primary-foreground text-sm transition-all hover:bg-primary/90"),onClick:g,type:"button",children:[(0,ez.jsx)(l,{size:14}),(0,ez.jsx)("span",{children:f.openLink})]})]})]})}):null},n$=(0,r.createContext)(null),nj=()=>(0,r.useContext)(n$),nD=()=>{var e;let t=nj();return null!=(e=null==t?void 0:t.code)?e:null},nF=()=>{var e;let t=nj();return null!=(e=null==t?void 0:t.mermaid)?e:null},nB=e=>{var t;let n=nj();return null!=n&&n.renderers&&e&&null!=(t=n.renderers.find(t=>Array.isArray(t.language)?t.language.includes(e):t.language===e))?t:null},nz=(e,t)=>new Promise((t,n)=>{let r="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(e))),i=new Image;i.crossOrigin="anonymous",i.onload=()=>{let e=document.createElement("canvas"),r=5*i.width,a=5*i.height;e.width=r,e.height=a;let o=e.getContext("2d");if(!o){n(Error("Failed to create 2D canvas context for PNG export"));return}o.drawImage(i,0,0,r,a),e.toBlob(e=>{if(!e){n(Error("Failed to create PNG blob"));return}t(e)},"image/png")},i.onerror=()=>n(Error("Failed to load SVG image")),i.src=r}),nU=e=>{let{chart:t,children:n,className:i,onDownload:a,config:o,onError:s}=e,l=nl(),[u,c]=(0,r.useState)(!1),d=(0,r.useRef)(null),{isAnimating:h}=(0,r.useContext)(iy),f=n_(),p=nF(),g=nM(),m=async e=>{try{if("mmd"===e){no("diagram.mmd",t,"text/plain"),c(!1),null==a||a(e);return}if(!p){null==s||s(Error("Mermaid plugin not available"));return}let n=p.getMermaid(o),r=t.split("").reduce((e,t)=>(e<<5)-e+t.charCodeAt(0)|0,0),i="mermaid-".concat(Math.abs(r),"-").concat(Date.now(),"-").concat(Math.random().toString(36).substring(2,9)),{svg:l}=await n.render(i,t);if(!l){null==s||s(Error("SVG not found. Please wait for the diagram to render."));return}if("svg"===e){no("diagram.svg",l,"image/svg+xml"),c(!1),null==a||a(e);return}if("png"===e){let t=await nz(l);no("diagram.png",t,"image/png"),null==a||a(e),c(!1);return}}catch(e){null==s||s(e)}};return(0,r.useEffect)(()=>{let e=e=>{let t=e.composedPath();d.current&&!t.includes(d.current)&&c(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,ez.jsxs)("div",{className:l("relative"),ref:d,children:[(0,ez.jsx)("button",{className:l("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),disabled:h,onClick:()=>c(!u),title:g.downloadDiagram,type:"button",children:null!=n?n:(0,ez.jsx)(f.DownloadIcon,{size:14})}),u?(0,ez.jsxs)("div",{className:l("absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[(0,ez.jsx)("button",{className:l("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>m("svg"),title:g.downloadDiagramAsSvg,type:"button",children:g.mermaidFormatSvg}),(0,ez.jsx)("button",{className:l("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>m("png"),title:g.downloadDiagramAsPng,type:"button",children:g.mermaidFormatPng}),(0,ez.jsx)("button",{className:l("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>m("mmd"),title:g.downloadDiagramAsMmd,type:"button",children:g.mermaidFormatMmd})]}):null]})},nW=e=>{let{chart:t,config:n,onFullscreen:i,onExit:a,className:o,...s}=e,{Maximize2Icon:l,XIcon:u}=n_(),c=nl(),[d,h]=(0,r.useState)(!1),{isAnimating:f,controls:p}=(0,r.useContext)(iy),g=nM(),m=(()=>
289{if("boolean"==typeof p)return p;let e=p.mermaid;return!1!==e&&(!0===e||void 0===e||!1!==e.panZoom)})(),y=()=>{h(!d)};return(0,r.useEffect)(()=>{if(d){nL();let e=e=>{"Escape"===e.key&&h(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e),nI()}}},[d]),(0,r.useEffect)(()=>{d?null==i||i():a&&a()},[d,i,a]),(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)("button",{className:c("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",o),disabled:f,onClick:y,title:g.viewFullscreen,type:"button",...s,children:(0,ez.jsx)(l,{size:14})}),d?(0,eU.createPortal)((0,ez.jsxs)("div",{className:c("fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm"),onClick:y,onKeyDown:e=>{"Escape"===e.key&&y()},role:"button",tabIndex:0,children:[(0,ez.jsx)("button",{className:c("absolute top-4 right-4 z-10 rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:y,title:g.exitFullscreen,type:"button",children:(0,ez.jsx)(u,{size:20})}),(0,ez.jsx)("div",{className:c("flex size-full items-center justify-center p-4"),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),role:"presentation",children:(0,ez.jsx)(ik,{chart:t,className:c("size-full [&_svg]:h-auto [&_svg]:w-auto"),config:n,fullscreen:!0,showControls:m})})]}),document.body):null]})},nH=e=>{var t,n;let r=[],i=[];for(let n of e.querySelectorAll("thead th"))r.push((null==(t=n.textContent)?void 0:t.trim())||"");for(let t of e.querySelectorAll("tbody tr")){let e=[];
289for(let r of t.querySelectorAll("td"))e.push((null==(n=r.textContent)?void 0:n.trim())||"");i.push(e)}return{headers:r,rows:i}},nq=e=>{let{headers:t,rows:n}=e,r=e=>{let t=!1,n=!1;for(let r of e){if('"'===r){t=!0,n=!0;break}(","===r||"\n"===r)&&(t=!0)}return t?n?'"'.concat(e.replace(/"/g,'""'),'"'):'"'.concat(e,'"'):e},i=Array(t.length>0?n.length+1:n.length),a=0;for(let e of(t.length>0&&(i[a]=t.map(r).join(","),a+=1),n))i[a]=e.map(r).join(","),a+=1;return i.join("\n")},nG=e=>{let{headers:t,rows:n}=e,r=e=>{let t=!1;for(let n of e)if("	"===n||"\n"===n||"\r"===n){t=!0;break}if(!t)return e;let n=[];for(let t of e)"	"===t?n.push("\\t"):"\n"===t?n.push("\\n"):"\r"===t?n.push("\\r"):n.push(t);return n.join("")},i=Array(t.length>0?n.length+1:n.length),a=0;for(let e of(t.length>0&&(i[a]=t.map(r).join("	"),a+=1),n))i[a]=e.map(r).join("	"),a+=1;return i.join("\n")},nV=e=>{let t=!1;for(let n of e)if("\\"===n||"|"===n){t=!0;break}if(!t)return e;let n=[];for(let t of e)"\\"===t?n.push("\\\\"):"|"===t?n.push("\\|"):n.push(t);return n.join("")},nZ=e=>{let{headers:t,rows:n}=e;if(0===t.length)return"";let r=Array(n.length+2),i=0,a=t.map(e=>nV(e));r[i]="| ".concat(a.join(" | ")," |"),i+=1;let o=Array(t.length);for(let e=0;e<t.length;e+=1)o[e]="---";for(let e of(r[i]="| ".concat(o.join(" | ")," |"),i+=1,n))if(e.length<t.length){let n=Array(t.length);for(let r=0;r<t.length;r+=1)n[r]=r<e.length?nV(e[r]):"";r[i]="| ".concat(n.join(" | ")," |"),i+=1}else{let t=e.map(e=>nV(e));r[i]="| ".concat(t.join(" | ")," |"),i+=1}return r.join("\n")},nY=e=>{let{children:t,className:n,onCopy:i,onError:a,timeout:o=2e3}=e,s=nl(),[l,u]=(0,r.useState)(!1),[c,d]=(0,r.useState)(!1),h=(0,r.useRef)(null),f=(0,r.useRef)(0),{isAnimating:p}=(0,r.useContext)(iy),g=nM(),m=async e=>{var t,n;if("undefined"==typeof window||!(null!=(t=null==navigator?void 0:navigator.clipboard)&&t.write)){null==a||a(Error("Clipboard API not available"));return}try{let t=null==(n=h.current)?void 0:n.closest('[data-streamdown="table-wrapper"]'),r=null==t?void 0:t.querySelector("table");if(!r){null==a||a(Error("Table not found"));return}
289let s=nH(r),l=(({csv:nq,tsv:nG,md:nZ})[e]||nZ)(s),c=new ClipboardItem({"text/plain":new Blob([l],{type:"text/plain"}),"text/html":new Blob([r.outerHTML],{type:"text/html"})});await navigator.clipboard.write([c]),d(!0),u(!1),null==i||i(e),f.current=window.setTimeout(()=>d(!1),o)}catch(e){null==a||a(e)}};(0,r.useEffect)(()=>{let e=e=>{let t=e.composedPath();h.current&&!t.includes(h.current)&&u(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e),window.clearTimeout(f.current)}},[]);let y=n_(),b=c?y.CheckIcon:y.CopyIcon;return(0,ez.jsxs)("div",{className:s("relative"),ref:h,children:[(0,ez.jsx)("button",{className:s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",n),disabled:p,onClick:()=>u(!l),title:g.copyTable,type:"button",children:null!=t?t:(0,ez.jsx)(b,{height:14,width:14})}),l?(0,ez.jsxs)("div",{className:s("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[(0,ez.jsx)("button",{className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>m("md"),title:g.copyTableAsMarkdown,type:"button",children:g.tableFormatMarkdown}),(0,ez.jsx)("button",{className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>m("csv"),title:g.copyTableAsCsv,type:"button",children:g.tableFormatCsv}),(0,ez.jsx)("button",{className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>m("tsv"),title:g.copyTableAsTsv,type:"button",children:g.tableFormatTsv})]}):null]})},nX=e=>{let{children:t,className:n,onDownload:i,onError:a}=e,o=nl(),[s,l]=(0,r.useState)(!1),u=(0,r.useRef)(null),{isAnimating:c}=(0,r.useContext)(iy),d=nM(),h=n_(),f=e=>{var t;try{let n=null==(t=u.current)?void 0:t.closest('[data-streamdown="table-wrapper"]'),r=null==n?void 0:n.querySelector("table");if(!r){null==a||a(Error("Table not found"));return}let o=nH(r),s="csv"===e?nq(o):nZ(o);no("table.".concat("csv"===e?"csv":"md"),s,"csv"===e?"text/csv":"text/markdown"),l(!1),null==i||i(e)}catch(e){null==a||a(e)}};return(0,r.useEffect)(()=>{let e=e=>{let t=e.composedPath();u.current&&!t.includes(u.current)&&l(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,ez.jsxs)("div",{className:o("relative"),ref:u,children:[(0,ez.jsx)("button",{className:o("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",n),disabled:c,onClick:()=>l(!s),title:d.downloadTable,type:"button",children:null!=t?t:(0,ez.jsx)(h.DownloadIcon,{size:14})}),s?(0,ez.jsxs)("div",{className:o("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[(0,ez.jsx)("button",{className:o("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>f("csv"),title:d.downloadTableAsCsv,type:"button",children:d.tableFormatCsv}),(0,ez.jsx)("button",{className:o("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>
289f("markdown"),title:d.downloadTableAsMarkdown,type:"button",children:d.tableFormatMarkdown})]}):null]})},nQ=e=>{let{children:t,className:n,showCopy:i=!0,showDownload:a=!0}=e,{Maximize2Icon:o,XIcon:s}=n_(),l=nl(),[u,c]=(0,r.useState)(!1),{isAnimating:d}=(0,r.useContext)(iy),h=nM(),f=()=>{c(!1)};return(0,r.useEffect)(()=>{if(u){nL();let e=e=>{"Escape"===e.key&&c(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e),nI()}}},[u]),(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)("button",{className:l("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",n),disabled:d,onClick:()=>{c(!0)},title:h.viewFullscreen,type:"button",children:(0,ez.jsx)(o,{size:14})}),u?(0,eU.createPortal)((0,ez.jsx)("div",{"aria-label":h.viewFullscreen,"aria-modal":"true",className:l("fixed inset-0 z-50 flex flex-col bg-background"),"data-streamdown":"table-fullscreen",onClick:f,onKeyDown:e=>{"Escape"===e.key&&f()},role:"dialog",children:(0,ez.jsxs)("div",{className:l("flex h-full flex-col"),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),role:"presentation",children:[(0,ez.jsxs)("div",{className:l("flex items-center justify-end gap-1 p-4"),children:[i?(0,ez.jsx)(nY,{}):null,a?(0,ez.jsx)(nX,{}):null,(0,ez.jsx)("button",{className:l("rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:f,title:h.exitFullscreen,type:"button",children:(0,ez.jsx)(s,{size:20})})]}),(0,ez.jsx)("div",{className:l("flex-1 overflow-auto p-4 pt-0 [&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10"),children:(0,ez.jsx)("table",{className:l("w-full border-collapse border border-border"),"data-streamdown":"table",children:t})})]})}),document.body):null]})},nK=e=>{let{children:t,className:n,showControls:r,showCopy:i=!0,showDownload:a=!0,showFullscreen:o=!0,...s}=e,l=nl(),u=r&&i,c=r&&a,d=r&&o,h=u||c||d;return(0,ez.jsxs)("div",{className:l("my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2"),"data-streamdown":"table-wrapper",children:[h?(0,ez.jsxs)("div",{className:l("flex items-center justify-end gap-1"),children:[u?(0,ez.jsx)(nY,{}):null,c?(0,ez.jsx)(nX,{}):null,d?(0,ez.jsx)(nQ,{showCopy:u,showDownload:c,children:t}):null]}):null,(0,ez.jsx)("div",{className:l("border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background"),children:(0,ez.jsx)("table",{className:l("w-full divide-y divide-border",n),"data-streamdown":"table",...s,children:t})})]})},nJ=/startLine=(\d+)/,n0=/\bnoLineNumbers\b/,n1=(0,r.lazy)(()=>n.e(59220).then(n.bind(n,59220)).then(e=>({default:e.Mermaid}))),n2=/language-([^\s]+)/;function n5(e,t){if(!(null!=e&&e.position||null!=t&&t.position))return!0;if(!(null!=e&&e.position&&null!=t&&t.position))return!1;let n=e.position.start,r=t.position.start,i=e.position.end,a=t.position.end;return(null==n?void 0:n.line)===(null==r?void 0:r.line)&&(null==n?void 0:n.column)===(null==r?void 0:r.column)&&(null==i?void 0:i.line)===(null==a?void 0:a.line)&&(null==i?void 0:i.column)===(null==a?void 0:a.column)}function n3(e,t){return e.className===t.className&&n5(e.node,t.node)}var n6=(e,t)=>"boolean"==typeof e?e:!1!==e[t],n8=(e,t)=>{if("boolean"==typeof e)return e;let n=e.table;return!1!==n&&(!0===n||void 0===n||!1!==n[t])},n9=(e,t)=>{if("boolean"==typeof e)return e;let n=e.code;return!1!==n&&(!0===n||void 0===n||!1!==n[t])},n7=(e,t)=>{if("boolean"==typeof e)return e;let n=e.mermaid;return!1!==n&&(!0===n||void 0===n||!1!==n[t])},n4=(0,r.memo)(e=>{let{children:t,className:n,node:r,...i}=e,a=nl();return(0,ez.jsx)("ol",{className:a("list-inside list-decimal whitespace-normal [li_&]:pl-6",n),"data-streamdown":"ordered-list",...i,children:t})},(e,t)=>n3(e,t));n4.displayName="MarkdownOl";var re=(0,r.memo)(e=>{let{children:t,className:n,node:r,...i}=e,a=nl();return(0,ez.jsx)("li",{className:a("py-1 [&>p]:inline",n),"data-streamdown":"list-item",...i,children:t})},(e,t)=>e.className===t.className&&n5(e.node,t.node));re.displayName="MarkdownLi";var rt=(0,r.memo)(e=>{let{children:t,className:n,node:r,...i}=e,a=nl();return(0,ez.jsx)("ul",{className:a("list-inside list-disc whitespace-normal [li_&]:pl-6",n),"data-streamdown":"unordered-list",...i,children:t})},(e,t)=>n3(e,t));rt.displayName="MarkdownUl";var rn=(0,r.memo)(e=>{let{className:t,node:n,...r}=e,i=nl();return(0,ez.jsx)("hr",{className:i("my-6 border-border",t),"data-streamdown":"horizontal-rule",...r})},(e,t)=>n3(e,t));rn.displayName="MarkdownHr";var rr=(0,r.memo)(e=>{let{children:t,className:n,node:r,...i}=e,a=nl();return(0,ez.jsx)("span",{className:a("font-semibold",n),"data-streamdown":"strong",...i,children:t})},(e,t)=>n3(e,t));rr.displayName="MarkdownStrong";var ri=(0,r.memo)(e=>{let{children:t,className:n,href:i,node:a,...o}=e,s=nl(),{linkSafety:l}=(0,r.useContext)(iy),[u,c]=(0,r.useState)(!1),d="streamdown:incomplete-link"===i,h=(0,r.useCallback)(async e=>
289{if(!(!(null!=l&&l.enabled&&i)||d)){if(e.preventDefault(),l.onLinkCheck&&await l.onLinkCheck(i)){window.open(i,"_blank","noreferrer");return}c(!0)}},[l,i,d]),f=(0,r.useCallback)(()=>{i&&window.open(i,"_blank","noreferrer")},[i]),p={url:null!=i?i:"",isOpen:u,onClose:(0,r.useCallback)(()=>{c(!1)},[]),onConfirm:f};return null!=l&&l.enabled&&i?(0,ez.jsxs)(ez.Fragment,{children:[(0,ez.jsx)("button",{className:s("wrap-anywhere appearance-none text-left font-medium text-primary underline",n),"data-incomplete":d,"data-streamdown":"link",onClick:h,type:"button",children:t}),l.renderModal?l.renderModal(p):(0,ez.jsx)(nO,{...p})]}):(0,ez.jsx)("a",{className:s("wrap-anywhere font-medium text-primary underline",n),"data-incomplete":d,"data-streamdown":"link",href:i,rel:"noreferrer",target:"_blank",...o,children:t})},(e,t)=>n3(e,t)&&e.href===t.href);ri.displayName="MarkdownA";var ra=(0,r.memo)(e=>{let{children:t,className:n,node:r,...i}=e,a=nl();return(0,ez.jsx)("h1",{className:a("mt-6 mb-2 font-semibold text-3xl",n),"data-streamdown":"heading-1",...i,children:t})},(e,t)=>n3(e,t));ra.displayName="MarkdownH1";var ro=(0,r.memo)(e=>{let{children:t,className:n,node:r,...i}=e,a=nl();return(0,ez.jsx)("h2",{className:a("mt-6 mb-2 font-semibold text-2xl",n),"data-streamdown":"heading-2",...i,children:t})},(e,t)=>n3(e,t));ro.displayName="MarkdownH2";var rs=(0,r.memo)(e=>{let{children:t,className:n,node:r,...i}=e,a=nl();return(0,ez.jsx)("h3",{className:a("mt-6 mb-2 font-semibold text-xl",n),"data-streamdown":"heading-3",...i,children:t})},(e,t)=>n3(e,t));rs.displayName="MarkdownH3";var rl=(0,r.memo)(e=>{let{children:t,className:n,node:r,...i}=e,a=nl();return(0,ez.jsx)("h4",{className:a("mt-6 mb-2 font-semibold text-lg",n),"data-streamdown":"heading-4",...i,children:t})},(e,t)=>n3(e,t));rl.displayName="MarkdownH4";var ru=(0,r.memo)(e=>{let{children:t,className:n,node:r,...i}=e,a=nl();return(0,ez.jsx)("h5",{className:a("mt-6 mb-2 font-semibold text-base",n),"data-streamdown":"heading-5",...i,children:t})},(e,t)=>n3(e,t));ru.displayName="MarkdownH5";var rc=(0,r.memo)(e=>{let{children:t,className:n,node:r,...i}=e,a=nl();return(0,ez.jsx)("h6",{className:a("mt-6 mb-2 font-semibold text-sm",n),"data-streamdown":"heading-6",...i,children:t})},(e,t)=>n3(e,t));rc.displayName="MarkdownH6";var rd=(0,r.memo)(e=>{let{children:t,className:n,node:i,...a}=e,{controls:o}=(0,r.useContext)(iy),s=n6(o,"table"),l=n8(o,"copy"),u=n8(o,"download"),c=n8(o,"fullscreen");return(0,ez.jsx)(nK,{className:n,showControls:s,showCopy:l,showDownload:u,showFullscreen:c,...a,children:t})},(e,t)=>n3(e,t));rd.displayName="MarkdownTable";var rh=(0,r.memo)(e=>{let{children:t,className:n,node:r,...i}=e,a=nl();return(0,ez.jsx)("thead",{className:a("bg-muted/80",n),"data-streamdown":"table-header",...i,children:t})},(e,t)=>n3(e,t));rh.displayName="MarkdownThead";var rf=(0,r.memo)(e=>{let{children:t,className:n,node:r,...i}=e,a=nl();return(0,ez.jsx)("tbody",{className:a("divide-y divide-border",n),"data-streamdown":"table-body",...i,children:t})},(e,t)=>n3(e,t));rf.displayName="MarkdownTbody";var rp=(0,r.memo)(e=>{let{children:t,className:n,node:r,...i}=e,a=nl();return(0,ez.jsx)("tr",{className:a("border-border",n),"data-streamdown":"table-row",...i,children:t})},(e,t)=>n3(e,t));rp.displayName="MarkdownTr";var rg=(0,r.memo)(e=>{let{children:t,className:n,node:r,...i}=e,a=nl();return(0,ez.jsx)("th",{className:a("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",n),"data-streamdown":"table-header-cell",...i,children:t})},(e,t)=>n3(e,t));rg.displayName="MarkdownTh";var rm=(0,r.memo)(e=>{let{children:t,className:n,node:r,...i}=e,a=nl();return(0,ez.jsx)("td",{className:a("px-4 py-2 text-sm",n),"data-streamdown":"table-cell",...i,children:t})},(e,t)=>n3(e,t));rm.displayName="MarkdownTd";var ry=(0,r.memo)(e=>{let{children:t,className:n,node:r,...i}=e,a=nl();return(0,ez.jsx)("blockquote",{className:a("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",n),"data-streamdown":"blockquote",...i,children:t})},(e,t)=>n3(e,t));ry.displayName="MarkdownBlockquote";var rb=(0,r.memo)(e=>{let{children:t,className:n,node:r,...i}=e,a=nl();return(0,ez.jsx)("sup",{className:a("text-sm",n),"data-streamdown":"superscript",...i,children:t})},(e,t)=>n3(e,t));rb.displayName="MarkdownSup";var rv=(0,r.memo)(e=>{let{children:t,className:n,node:r,...i}=e,a=nl();return(0,ez.jsx)("sub",{className:a("text-sm",n),"data-streamdown":"subscript",...i,children:t})},(e,t)=>n3(e,t));rv.displayName="MarkdownSub";var rx=(0,r.memo)(e=>{let{children:t,className:n,node:i,...a}=e;if("data-footnotes"in a){let e=e=>{var t,n;if(!(0,r.isValidElement)(e))return!1;let i=Array.isArray(e.props.children)?e.props.children:[e.props.children],a=!1,o=!1;for(let e of i)if(e){if("string"==typeof e)""!==e.trim()&&(a=!0);else if((0,r.isValidElement)(e)){if((null==(t=e.props)?void 0:t["data-footnote-backref"])!==void 0)
289o=!0;else for(let t of Array.isArray(e.props.children)?e.props.children:[e.props.children])if("string"==typeof t&&""!==t.trim()||(0,r.isValidElement)(t)&&(null==(n=t.props)?void 0:n["data-footnote-backref"])===void 0){a=!0;break}}}return o&&!a},i=Array.isArray(t)?t.map(t=>{if(!(0,r.isValidElement)(t))return t;if(t.type===n4){let n=(Array.isArray(t.props.children)?t.props.children:[t.props.children]).filter(t=>!e(t));return 0===n.length?null:{...t,props:{...t.props,children:n}}}return t}):t;return(Array.isArray(i)?i.some(e=>null!==e):null!==i)?(0,ez.jsx)("section",{className:n,...a,children:i}):null}return(0,ez.jsx)("section",{className:n,...a,children:t})},(e,t)=>n3(e,t));rx.displayName="MarkdownSection";var rk=(0,r.memo)(e=>{var t,n;let{node:i,className:a,children:o,...s}=e,l=nl(),u=!("data-block"in s),{mermaid:c,controls:d,lineNumbers:h}=(0,r.useContext)(iy),f=nF(),p=nn(),g=null==a?void 0:a.match(n2),m=null!=(t=null==g?void 0:g.at(1))?t:"",y=nB(m);if(u)return(0,ez.jsx)("code",{className:l("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",a),"data-streamdown":"inline-code",...s,children:o});let b=null==(n=null==i?void 0:i.properties)?void 0:n.metastring,v=null==b?void 0:b.match(nJ),x=v?Number.parseInt(v[1],10):void 0,k=!(b&&n0.test(b))&&!1!==h,w="";if((0,r.isValidElement)(o)&&o.props&&"object"==typeof o.props&&"children"in o.props&&"string"==typeof o.props.children?w=o.props.children:"string"==typeof o&&(w=o),y){let e=y.component;return(0,ez.jsx)(r.Suspense,{fallback:(0,ez.jsx)(nR,{}),children:(0,ez.jsx)(e,{code:w,isIncomplete:p,language:m,meta:b})})}if("mermaid"===m&&f){let e=n6(d,"mermaid"),t=n7(d,"download"),n=n7(d,"copy"),i=n7(d,"fullscreen"),o=n7(d,"panZoom");return(0,ez.jsx)(r.Suspense,{fallback:(0,ez.jsx)(nR,{}),children:(0,ez.jsxs)("div",{className:l("group relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",a),"data-streamdown":"mermaid-block",children:[(0,ez.jsx)("div",{className:l("flex h-8 items-center text-muted-foreground text-xs"),children:(0,ez.jsx)("span",{className:l("ml-1 font-mono lowercase"),children:"mermaid"})}),e&&(t||n||i)?(0,ez.jsx)("div",{className:l("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:(0,ez.jsxs)("div",{className:l("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"mermaid-block-actions",children:[t?(0,ez.jsx)(nU,{chart:w,config:null==c?void 0:c.config}):null,n?(0,ez.jsx)(nA,{code:w}):null,i?(0,ez.jsx)(nW,{chart:w,config:null==c?void 0:c.config}):null]})}):null,(0,ez.jsx)("div",{className:l("rounded-md border border-border bg-background"),children:(0,ez.jsx)(n1,{chart:w,config:null==c?void 0:c.config,showControls:o})})]})})}let _=n6(d,"code"),S=n9(d,"download"),C=n9(d,"copy");return(0,ez.jsx)(nb,{className:a,code:w,isIncomplete:p,language:m,lineNumbers:k,startLine:void 0!==x&&x>=1?x:void 0,children:_?(0,ez.jsxs)(ez.Fragment,{children:[S?(0,ez.jsx)(nT,{code:w,language:m}):null,C?(0,ez.jsx)(nA,{}):null]}):null})},(e,t)=>e.className===t.className&&n5(e.node,t.node));rk.displayName="MarkdownCode";var rw=(0,r.memo)(e=>{let{node:t,className:n,src:i,alt:a,onLoad:o,onError:s,...l}=e,{DownloadIcon:u}=n_(),c=nl(),d=(0,r.useRef)(null),[h,f]=(0,r.useState)(!1),[p,g]=(0,r.useState)(!1),m=nM(),y=null!=l.width||null!=l.height,b=(h||y)&&!p,v=p&&!y;(0,r.useEffect)(()=>{let e=d.current;if(null!=e&&e.complete){let t=e.naturalWidth>0;f(t),g(!t)}},[]);let x=(0,r.useCallback)(e=>{f(!0),g(!1),null==o||o(e)},[o]),k=(0,r.useCallback)(e=>{f(!1),g(!0),null==s||s(e)},[s]),w=async()=>{if(i)try{let e=await (await fetch(i)).blob(),t=new URL(i,window.location.origin).pathname.split("/").pop()||"",n=t.split(".").pop(),r=t.includes(".")&&void 0!==n&&n.length<=4,o="";if(r)o=t;else{let n=e.type,r="png";n.includes("jpeg")||n.includes("jpg")?r="jpg":n.includes("png")?r="png":n.includes("svg")?r="svg":n.includes("gif")?r="gif":n.includes("webp")&&(r="webp"),o="".concat((a||t||"image").replace(nN,""),".").concat(r)}no(o,e,e.type)}catch(e){window.open(i,"_blank")}};return i?(0,ez.jsxs)("div",{className:c("group relative my-4 inline-block"),"data-streamdown":"image-wrapper",children:[(0,ez.jsx)("img",{alt:a,className:c("max-w-full rounded-lg",v&&"hidden",n),"data-streamdown":"image",onError:k,onLoad:x,ref:d,src:i,...l}),v&&(0,ez.jsx)("span",{className:c("text-muted-foreground text-xs italic"),"data-streamdown":"image-fallback",children:m.imageNotAvailable}),(0,ez.jsx)("div",{className:c("pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block")}),b&&(0,ez.jsx)("button",{className:c("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:w,title:m.downloadImage,type:"button",children:(0,ez.jsx)(u,{size:14})})]}):null},(e,t)=>e.className===t.className&&n5(e.node,t.node));rw.displayName="MarkdownImg";var r_=(0,r.memo)(e=>{let{children:t,node:n,...i}=e,a=(Array.isArray(t)?t:[t]).filter(e=>null!=e&&""!==e);if(1===a.length&&(0,r.isValidElement)(a[0])){let e=a[0].props.node,n=null==e?void 0:e.tagName;if("img"===n||"code"===n&&"data-block"in a[0].props)return(0,ez.jsx)(ez.Fragment,{children:t})}return(0,ez.jsx)("p",{...i,children:t})},(e,t)=>n3(e,t));r_.displayName="MarkdownParagraph";var rS={ol:n4,li:re,ul:rt,hr:rn,strong:rr,a:ri,h1:ra,h2:ro,h3:rs,h4:rl,h5:ru,h6:rc,table:rd,thead:rh,tbody:rf,tr:rp,th:rg,td:rm,blockquote:ry,code:rk,img:rw,pre:e=>{let{children:t}=e;return(0,r.isValidElement)(t)?(0,r.cloneElement)(t,{"data-block":"true"}):t}
289,sup:rb,sub:rv,p:r_,section:rx},rC=/[\u0590-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/,rM=RegExp("\\p{L}","u");function rA(e){for(let t of e.replace(/^#{1,6}\s+/gm,"").replace(/(\*{1,3}|_{1,3})/g,"").replace(/`[^`]*`/g,"").replace(/\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/^[\s>*\-+\d.]+/gm,"")){if(rC.test(t))return"rtl";if(rM.test(t))break}return"ltr"}var rE,rT,rR,rN,rP=/^[ \t]{0,3}(`{3,}|~{3,})/,rL=/^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-{1,}:?[ \t]*)*\|?$/,rI=e=>{let t=e.split("\n"),n=null,r=0;for(let e of t){let t=rP.exec(e);if(null===n){if(t){let e=t[1];n=e[0],r=e.length}}else if(t){let e=t[1],i=e[0],a=e.length;i===n&&a>=r&&(n=null,r=0)}}return null!==n},rO=e=>{for(let t of e.split("\n")){let e=t.trim();if(e.length>0&&e.includes("|")&&rL.test(e))return!0}return!1},r$=()=>e=>{(0,i.Vn)(e,"html",(e,t,n)=>{n&&"number"==typeof t&&(n.children[t]={type:"text",value:e.value})})},rj=[],rD={allowDangerousHtml:!0},rF=new WeakMap,rB=new class{generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let n=e.rehypePlugins,r=e.remarkPlugins,i=e.remarkRehypeOptions;if(!(n||r||i)){let t="default";return this.keyCache.set(e,t),t}let a=e=>{if(!e||0===e.length)return"";let t="";for(let n=0;n<e.length;n+=1){let r=e[n];if(n>0&&(t+=","),Array.isArray(r)){let[e,n]=r;if("function"==typeof e){let n=rF.get(e);n||(n=e.name,rF.set(e,n)),t+=n}else t+=String(e);t+=":"+JSON.stringify(n)}else if("function"==typeof r){let e=rF.get(r);e||(e=r.name,rF.set(r,e)),t+=e}else t+=String(r)}return t},o=a(n),s=a(r),l=i?JSON.stringify(i):"",u="".concat(s,"::").concat(o,"::").concat(l);return this.keyCache.set(e,u),u}get(e){let t=this.generateCacheKey(e),n=this.cache.get(t);return n&&(this.cache.delete(t),this.cache.set(t,n)),n}set(e,t){let n=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let e=this.cache.keys().next().value;e&&this.cache.delete(e)}this.cache.set(n,t)}clear(){this.cache.clear()}constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}},rz=e=>{let t=rU(e),n=e.children||"";return rY(t.runSync(t.parse(n),n),e)},rU=e=>{let t=rB.get(e);if(t)return t;let n=rH(e);return rB.set(e,n),n},rW=e=>e.some(e=>Array.isArray(e)?e[0]===g.Z:e===g.Z),rH=e=>{let t=e.rehypePlugins||rj,n=e.remarkPlugins||rj,r=rW(t)?n:[...n,r$],i=e.remarkRehypeOptions?{...rD,...e.remarkRehypeOptions}:rD;return(0,eV.l)().use(eq.Z).use(r).use(eG.Z,i).use(t)},rq=e=>e,rG=(e,t,n,r)=>{n?e.children.splice(t,1):e.children[t]={type:"text",value:r}},rV=(e,t)=>{var n;for(let r in eH.w)if(Object.hasOwn(eH.w,r)&&Object.hasOwn(e.properties,r)){let i=e.properties[r],a=eH.w[r];(null===a||a.includes(e.tagName))&&(e.properties[r]=null!=(n=t(String(i||""),r,e))?n:void 0)}},rZ=(e,t,n,r,i,a)=>{let o=!1;return r?o=!r.includes(e.tagName):i&&(o=i.includes(e.tagName)),!o&&a&&"number"==typeof t&&(o=!a(e,t,n)),o},rY=(e,t)=>{let{allowElement:n,allowedElements:r,disallowedElements:a,skipHtml:o,unwrapDisallowed:s,urlTransform:l}=t;if(n||r||a||o||l){let t=l||rq;(0,i.Vn)(e,(e,i,l)=>"raw"===e.type&&l&&"number"==typeof i?(rG(l,i,o,e.value),i):"element"===e.type&&(rV(e,t),rZ(e,i,l,r,a,n)&&l&&"number"==typeof i)?(s&&e.children?l.children.splice(i,1,...e.children):l.children.splice(i,1),i):void 0)}return(0,eW.v)(e,{Fragment:ez.Fragment,components:t.components,ignoreInvalidStyle:!0,jsx:ez.jsx,jsxs:ez.jsxs,passKeys:!0,passNode:!0})},rX=/\[\^[\w-]{1,200}\](?!:)/,rQ=/\[\^[\w-]{1,200}\]:/,rK=/<(\w+)[\s>]/,rJ=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),r0=new Map,r1=new Map,r2=e=>{let t=e.toLowerCase(),n=r0.get(t);if(n)return n;let r=RegExp("<".concat(t,"(?=[\\s>/])[^>]*>"),"gi");return r0.set(t,r),r},r5=e=>{let t=e.toLowerCase(),n=r1.get(t);if(n)return n;let r=RegExp("</".concat(t,"(?=[\\s>])[^>]*>"),"gi");return r1.set(t,r),r},r3=(e,t)=>{if(rJ.has(t.toLowerCase()))return 0;let n=e.match(r2(t));if(!n)return 0;let r=0;for(let e of n)e.trimEnd().endsWith("/>")||(r+=1);return r},r6=(e,t)=>{let n=e.match(r5(t));return n?n.length:0},r8=e=>{let t=0;for(let n=0;n<e.length-1;n+=1)"$"===e[n]&&"$"===e[n+1]&&(t+=1,n+=1);return t},r9=e=>{let t=rX.test(e),n=rQ.test(e);
289if(t||n)return[e];let r=tV.lex(e,{gfm:!0}),i=[],a=[],o=!1;for(let e of r){let t=e.raw,n=i.length;if(a.length>0){i[n-1]+=t;let e=a.at(-1),r=r3(t,e),o=r6(t,e);for(let t=0;t<r;t+=1)a.push(e);for(let t=0;t<o;t+=1)a.length>0&&a.at(-1)===e&&a.pop();continue}if("html"===e.type&&e.block){let e=t.match(rK);if(e){let n=e[1];r3(t,n)>r6(t,n)&&a.push(n)}}if(n>0&&!o){let e=i[n-1];if(r8(e)%2==1){i[n-1]=e+t;continue}}i.push(t),"space"!==e.type&&(o="code"===e.type)}return i},r7=(e,t)=>{if(!t.length)return e;let n=e;for(let e of t){let t=RegExp("(<".concat(e,"(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</").concat(e,"\\s*>)"),"gi");n=n.replace(t,(e,t,n,r)=>{if(!n.includes("\n\n"))return t+n+r;let i=n.replace(/\n\n/g,"\n<!---->\n"),a=(i.startsWith("\n")?"":"\n")+i+(i.endsWith("\n")?"":"\n");return"".concat(t).concat(a).concat(r,"\n\n")})}return n},r4=/([\\`*_~[\]|])/g,ie=e=>e.replace(r4,"\\$1"),it=(e,t)=>{if(!t.length)return e;let n=e;for(let e of t){let t=RegExp("(<".concat(e,"(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</").concat(e,"\\s*>)"),"gi");n=n.replace(t,(e,t,n,r)=>t+ie(n).replace(/\n\n/g,"&#10;&#10;")+r)}return n},ir=e=>"text"===e.type?e.value:"children"in e&&Array.isArray(e.children)?e.children.map(ir).join(""):"",ii=e=>t=>{if(!e||0===e.length)return;let n=new Set(e.map(e=>e.toLowerCase()));(0,i.Vn)(t,"element",e=>{if(n.has(e.tagName.toLowerCase())){let t=ir(e);e.children=t?[{type:"text",value:t}]:[]}})},ia=/^[ \t]*<[\w!/?-]/,io=/(^|\n)[ \t]{4,}(?=<[\w!/?-])/g,is=e=>"string"==typeof e&&0!==e.length&&ia.test(e)?e.replace(io,"$1"):e,il={...m.R,protocols:{...m.R.protocols,href:[...null!=(rT=null==(rE=m.R.protocols)?void 0:rE.href)?rT:[],"tel"]},attributes:{...m.R.attributes,code:[...null!=(rN=null==(rR=m.R.attributes)?void 0:rR.code)?rN:[],"metastring"]}},iu={raw:g.Z,sanitize:[y.Z,il],harden:[function({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:n=[],allowDataImages:r=!1,allowedProtocols:a=[],blockedImageClass:s="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:l="text-gray-500",linkBlockPolicy:u=o,imageBlockPolicy:c=o}){let d=t.length&&!t.every(e=>"*"===e),h=n.length&&!n.every(e=>"*"===e);if(!e&&(d||h))throw Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return o=>{let d=p(e,t,n,r,a,s,l,u,c);(function e(t){if("children"in t&&Array.isArray(t.children))for(let n of(t.children=t.children.filter(e=>null!=e),t.children))e(n)})(o),(0,i.Vn)(o,d)}},{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]},ic={gfm:[b.Z,{}],codeMeta:()=>e=>{(0,i.Vn)(e,"code",e=>{var t,n;e.meta&&(e.data=null!=(t=e.data)?t:{},e.data.hProperties={...null!=(n=e.data.hProperties)?n:{},metastring:e.meta})})}},id=Object.values(iu),ih=Object.values(ic),ip={block:" ▋",circle:" ●"},ig=["github-light","github-dark"],im={enabled:!0},iy=(0,r.createContext)({shikiTheme:ig,controls:!0,isAnimating:!1,lineNumbers:!0,mode:"streaming",mermaid:void 0,linkSafety:im}),ib=(0,r.memo)(e=>{let{content:t,shouldParseIncompleteMarkdown:n,shouldNormalizeHtmlIndentation:r,index:i,isIncomplete:a,dir:o,animatePlugin:s,...l}=e;if(s){let e=s.getLastRenderCharCount();s.setPrevContentLength(e)}let u="string"==typeof t&&r?is(t):t,c=(0,ez.jsx)(rz,{...l,children:u});return(0,ez.jsx)(nt.Provider,{value:a,children:o?(0,ez.jsx)("div",{dir:o,style:{display:"contents"},children:c}):c})},(e,t)=>{if(e.content!==t.content||e.shouldNormalizeHtmlIndentation!==t.shouldNormalizeHtmlIndentation||e.index!==t.index||e.isIncomplete!==t.isIncomplete||e.dir!==t.dir)return!1;if(e.components!==t.components){let n=Object.keys(e.components||{}),r=Object.keys(t.components||{});if(n.length!==r.length||n.some(n=>{var r,i;return(null==(r=e.components)?void 0:r[n])!==(null==(i=t.components)?void 0:i[n])}))return!1}return!(e.rehypePlugins!==t.rehypePlugins||e.remarkPlugins!==t.remarkPlugins)});ib.displayName="Block";var iv=(0,r.memo)(e=>{let{children:t,mode:n="streaming",dir:i,parseIncompleteMarkdown:a=!0,normalizeHtmlIndentation:o=!1,components:s,rehypePlugins:l=id,remarkPlugins:u=ih,className:c,shikiTheme:d=ig,mermaid:h,controls:f=!0,isAnimating:p=!1,animated:g,BlockComponent:m=ib,parseMarkdownIntoBlocksFn:b=r9,caret:v,plugins:x,remend:k,linkSafety:w=im,lineNumbers:_=!0,allowedTags:S,literalTagContent:C,translations:M,icons:A,prefix:E,onAnimationStart:T,onAnimationEnd:R,...N}=e,P=(0,r.useId)(),[L,I]=(0,r.useTransition)(),O=(0,r.useMemo)(()=>na(E),[E]),$=(0,r.useRef)(null),j=(0,r.useRef)(T),D=(0,r.useRef)(R);j.current=T,D.current=R,(0,r.useEffect)(()=>{var e,t,r;if("static"===n)return;let i=$.current;if($.current=p,null===i){p&&(null==(e=j.current)||e.call(j));return}p&&!i?null==(t=j.current)||t.call(j):!p&&i&&(null==(r=D.current)||r.call(D))},[p,n]);let F=(0,r.useMemo)(()=>S?Object.keys(S):[],[S]),B=(0,r.useMemo)(()=>
289{if("string"!=typeof t)return"";let e="streaming"===n&&a?eD(t,k):t;return C&&C.length>0&&(e=it(e,C)),F.length>0&&(e=r7(e,F)),e},[t,n,a,k,F,C]),z=(0,r.useMemo)(()=>b(B),[B,b]),[U,W]=(0,r.useState)(z);(0,r.useEffect)(()=>{"streaming"!==n||Z?W(z):I(()=>{W(z)})},[z,n]);let H="streaming"===n?U:z,q=(0,r.useMemo)(()=>"auto"===i?H.map(rA):void 0,[H,i]),G=(0,r.useMemo)(()=>H.map((e,t)=>"".concat(P,"-").concat(t)),[H.length,P]),V=(0,r.useMemo)(()=>!0===g?"true":g?JSON.stringify(g):"",[g]),Z=(0,r.useMemo)(()=>V?"true"===V?ne():ne(g):null,[V]),Y=(0,r.useMemo)(()=>{var e,t;return{shikiTheme:null!=(t=null==(e=null==x?void 0:x.code)?void 0:e.getThemes())?t:d,controls:f,isAnimating:p,lineNumbers:_,mode:n,mermaid:h,linkSafety:w}},[d,f,p,_,n,h,w,null==x?void 0:x.code]),X=(0,r.useMemo)(()=>M?JSON.stringify(M):"",[M]),Q=(0,r.useMemo)(()=>({...nS,...M}),[X]),K=(0,r.useMemo)(()=>{let{inlineCode:e,...t}=null!=s?s:{},n={...rS,...t};if(e){let t=n.code;n.code=n=>"data-block"in n?t?(0,r.createElement)(t,n):null:(0,r.createElement)(e,n)}return n},[s]),J=(0,r.useMemo)(()=>{let e=[];return null!=x&&x.cjk&&(e=[...e,...x.cjk.remarkPluginsBefore]),e=[...e,...u],null!=x&&x.cjk&&(e=[...e,...x.cjk.remarkPluginsAfter]),null!=x&&x.math&&(e=[...e,x.math.remarkPlugin]),e},[u,null==x?void 0:x.math,null==x?void 0:x.cjk]),ee=(0,r.useMemo)(()=>{var e;let t=l;if(S&&Object.keys(S).length>0&&l===id){let n={...il,tagNames:[...null!=(e=il.tagNames)?e:[],...Object.keys(S)],attributes:{...il.attributes,...S}};t=[iu.raw,[y.Z,n],iu.harden]}return C&&C.length>0&&(t=[...t,[ii,C]]),null!=x&&x.math&&(t=[...t,x.math.rehypePlugin]),Z&&p&&(t=[...t,Z.rehypePlugin]),t},[l,null==x?void 0:x.math,Z,p,S,C]),et=(0,r.useMemo)(()=>{if(!p||0===H.length)return!1;let e=H.at(-1);return rI(e)||rO(e)},[p,H]),en=(0,r.useMemo)(()=>v&&p&&!et?{"--streamdown-caret":'"'.concat(ip[v],'"')}:void 0,[v,p,et]);return"static"===n?(0,ez.jsx)(nC.Provider,{value:Q,children:(0,ez.jsx)(n$.Provider,{value:null!=x?x:null,children:(0,ez.jsx)(iy.Provider,{value:Y,children:(0,ez.jsx)(nw,{icons:A,children:(0,ez.jsx)(ns.Provider,{value:O,children:(0,ez.jsx)("div",{className:O("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",c),dir:"auto"===i?rA(B):i,children:(0,ez.jsx)(rz,{components:K,rehypePlugins:ee,remarkPlugins:J,...N,children:B})})})})})})}):(0,ez.jsx)(nC.Provider,{value:Q,children:(0,ez.jsx)(n$.Provider,{value:null!=x?x:null,children:(0,ez.jsx)(iy.Provider,{value:Y,children:(0,ez.jsx)(nw,{icons:A,children:(0,ez.jsx)(ns.Provider,{value:O,children:(0,ez.jsxs)("div",{className:O("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",v&&!et?"[&>*:last-child]:after:inline [&>*:last-child]:after:align-baseline [&>*:last-child]:after:content-[var(--streamdown-caret)]":null,c),style:en,children:[0===H.length&&v&&p&&(0,ez.jsx)("span",{}),H.map((e,t)=>{var n;let r=t===H.length-1,s=p&&r&&rI(e);return(0,ez.jsx)(m,{animatePlugin:Z,components:K,content:e,dir:null!=(n=null==q?void 0:q[t])?n:"auto"!==i?i:void 0,index:t,isIncomplete:s,rehypePlugins:ee,remarkPlugins:J,shouldNormalizeHtmlIndentation:o,shouldParseIncompleteMarkdown:a,...N},G[t])})]})})})})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.animated===t.animated&&e.mode===t.mode&&e.plugins===t.plugins&&e.className===t.className&&e.linkSafety===t.linkSafety&&e.lineNumbers===t.lineNumbers&&e.normalizeHtmlIndentation===t.normalizeHtmlIndentation&&e.literalTagContent===t.literalTagContent&&JSON.stringify(e.translations)===JSON.stringify(t.translations)&&e.prefix===t.prefix&&e.dir===t.dir);iv.displayName="Streamdown";var ix=e=>{let{children:t,className:n,minZoom:i=.5,maxZoom:a=3,zoomStep:o=.1,showControls:s=!0,initialZoom:l=1,fullscreen:u=!1}=e,{RotateCcwIcon:c,ZoomInIcon:d,ZoomOutIcon:h}=n_(),f=nl(),p=(0,r.useRef)(null),g=(0,r.useRef)(null),[m,y]=(0,r.useState)(l),[b,v]=(0,r.useState)({x:0,y:0}),[x,k]=(0,r.useState)(!1),[w,_]=(0,r.useState)({x:0,y:0}),[S,C]=(0,r.useState)({x:0,y:0}),M=(0,r.useCallback)(e=>{y(t=>Math.max(i,Math.min(a,t+e)))},[i,a]),A=(0,r.useCallback)(()=>{M(o)},[M,o]),E=(0,r.useCallback)(()=>{M(-o)},[M,o]),T=(0,r.useCallback)(()=>{y(l),v({x:0,y:0})},[l]),R=(0,r.useCallback)(e=>{e.preventDefault(),M(e.deltaY>0?-o:o)},[M,o]),N=(0,r.useCallback)(e=>{if(0!==e.button||!1===e.isPrimary)return;k(!0),_({x:e.clientX,y:e.clientY}),C(b);let t=e.currentTarget;t instanceof HTMLElement&&t.setPointerCapture(e.pointerId)},[b]),P=(0,r.useCallback)(e=>{if(!x)return;e.preventDefault();let t=e.clientX-w.x,n=e.clientY-w.y;v({x:S.x+t,y:S.y+n})},[x,w,S]),L=(0,r.useCallback)(e=>{k(!1);let t=e.currentTarget;t instanceof HTMLElement&&t.releasePointerCapture(e.pointerId)},[]);return(0,r.useEffect)(()=>{let e=p.current;if(e)return e.addEventListener("wheel",R,{passive:!1}),()=>{e.removeEventListener("wheel",R)}},[R]),(0,r.useEffect)(()=>{let e=g.current;if(e&&x)return document.body.style.userSelect="none",e.addEventListener("pointermove",P,{passive:!1}),e.addEventListener("pointerup",L),e.addEventListener("pointercancel",L),()=>{document.body.style.userSelect="",e.removeEventListener("pointermove",P),e.removeEventListener("pointerup",L),e.removeEventListener("pointercancel",L)}},[x,P,L]),(0,ez.jsxs)("div",{className:f("relative flex flex-col",u?"h-full w-full":"min-h-28 w-full",n),ref:p,style:{cursor:x?"grabbing":"grab"},children:[s?(0,ez.jsxs)("div",{className:f("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/80 p-1 supports-[backdrop-filter]:bg-background/70 supp
289orts-[backdrop-filter]:backdrop-blur-sm",u?"bottom-4 left-4":"bottom-2 left-2"),children:[(0,ez.jsx)("button",{className:f("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:m>=a,onClick:A,title:"Zoom in",type:"button",children:(0,ez.jsx)(d,{size:16})}),(0,ez.jsx)("button",{className:f("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:m<=i,onClick:E,title:"Zoom out",type:"button",children:(0,ez.jsx)(h,{size:16})}),(0,ez.jsx)("button",{className:f("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"),onClick:T,title:"Reset zoom and pan",type:"button",children:(0,ez.jsx)(c,{size:16})})]}):null,(0,ez.jsx)("div",{className:f("flex-1 origin-center transition-transform duration-150 ease-out",u?"flex h-full w-full items-center justify-center":"flex w-full items-center justify-center"),onPointerDown:N,ref:g,role:"application",style:{transform:"translate(".concat(b.x,"px, ").concat(b.y,"px) scale(").concat(m,")"),transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:t})]})},ik=e=>{let{chart:t,className:n,config:i,fullscreen:a=!1,showControls:o=!0}=e,s=nl(),[l,u]=(0,r.useState)(null),[c,d]=(0,r.useState)(!1),[h,f]=(0,r.useState)(""),[p,g]=(0,r.useState)(""),[m,y]=(0,r.useState)(0),{mermaid:b}=(0,r.useContext)(iy),v=nF(),x=null==b?void 0:b.errorComponent,{shouldRender:k,containerRef:w}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{immediate:t=!1,debounceDelay:n=300,rootMargin:i="300px",idleTimeout:a=500}=e,[o,s]=(0,r.useState)(!1),l=(0,r.useRef)(null),u=(0,r.useRef)(null),c=(0,r.useRef)(null),d=(0,r.useMemo)(()=>e=>{let t=Date.now();return window.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})},1)},[]),h=(0,r.useMemo)(()=>"undefined"!=typeof window&&window.requestIdleCallback?(e,t)=>window.requestIdleCallback(e,t):d,[d]),f=(0,r.useMemo)(()=>"undefined"!=typeof window&&window.cancelIdleCallback?e=>window.cancelIdleCallback(e):e=>{clearTimeout(e)},[]);return(0,r.useEffect)(()=>{if(t){s(!0);return}let e=l.current;if(!e)return;u.current&&(clearTimeout(u.current),u.current=null),c.current&&(f(c.current),c.current=null);let r=()=>{u.current&&(clearTimeout(u.current),u.current=null),c.current&&(f(c.current),c.current=null)},o=e=>{c.current=h(t=>{t.timeRemaining()>0||t.didTimeout?(s(!0),e.disconnect()):c.current=h(()=>{s(!0),e.disconnect()},{timeout:a/2})},{timeout:a})},d=e=>{r(),u.current=window.setTimeout(()=>{var t,n;let r=e.takeRecords();(0===r.length||null!=(n=null==(t=r.at(-1))?void 0:t.isIntersecting)&&n)&&o(e)},n)},p=(e,t)=>{e.isIntersecting?d(t):r()},g=new IntersectionObserver(e=>{for(let t of e)p(t,g)},{rootMargin:i,threshold:0});return g.observe(e),()=>{u.current&&clearTimeout(u.current),c.current&&f(c.current),g.disconnect()}},[t,n,i,a,f,h]),{shouldRender:o,containerRef:l}}({immediate:a});return((0,r.useEffect)(()=>{if(k){if(!v){u("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");return}(async()=>{try{u(null),d(!0);let e=v.getMermaid(i),n=t.split("").reduce((e,t)=>(e<<5)-e+t.charCodeAt(0)|0,0),r="mermaid-".concat(Math.abs(n),"-").concat(Date.now(),"-").concat(Math.random().toString(36).substring(2,9)),{svg:a}=await e.render(r,t);f(a),g(a)}catch(e){p||h||u(e instanceof Error?e.message:"Failed to render Mermaid chart")}finally{d(!1)}})()}},[t,i,m,k,v]),k||h||p)?!c||h||p?!l||h||p?(0,ez.jsx)("div",{className:s("size-full",n),"data-streamdown":"mermaid",ref:w,children:(0,ez.jsx)(ix,{className:s(a?"size-full overflow-hidden":"overflow-hidden",n),fullscreen:a,maxZoom:3,minZoom:.5,showControls:o,zoomStep:.1,children:(0,ez.jsx)("div",{"aria-label":"Mermaid chart",className:s("flex justify-center",a?"size-full items-center":null),dangerouslySetInnerHTML:{__html:h||p},role:"img"})})}):x?(0,ez.jsx)("div",{ref:w,children:(0,ez.jsx)(x,{chart:t,error:l,retry:()=>y(e=>e+1)})}
289):(0,ez.jsxs)("div",{className:s("rounded-md bg-red-50 p-4",n),ref:w,children:[(0,ez.jsxs)("p",{className:s("font-mono text-red-700 text-sm"),children:["Mermaid Error: ",l]}),(0,ez.jsxs)("details",{className:s("mt-2"),children:[(0,ez.jsx)("summary",{className:s("cursor-pointer text-red-600 text-xs"),children:"Show Code"}),(0,ez.jsx)("pre",{className:s("mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs"),children:t})]})]}):(0,ez.jsx)("div",{className:s("my-4 flex justify-center p-4",n),ref:w,children:(0,ez.jsxs)("div",{className:s("flex items-center space-x-2 text-muted-foreground"),children:[(0,ez.jsx)("div",{className:s("h-4 w-4 animate-spin rounded-full border-current border-b-2")}),(0,ez.jsx)("span",{className:s("text-sm"),children:"Loading diagram..."})]})}):(0,ez.jsx)("div",{className:s("my-4 min-h-[200px]",n),ref:w})}},89342:function(e,t,n){"use strict";n.d(t,{qI:function(){return r.C}});var r=n(70791)},51862:function(e,t,n){"use strict";function r(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.from("string"==typeof e?[e]:e);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var i=r.reduce(function(e,t){var n=t.match(/\n([\t ]+|(?!\s).)/g);return n?e.concat(n.map(function(e){var t,n;return null!==(n=null===(t=e.match(/[\t ]/g))||void 0===t?void 0:t.length)&&void 0!==n?n:0})):e},[]);if(i.length){var a=RegExp("\n[	 ]{".concat(Math.min.apply(Math,i),"}"),"g");r=r.map(function(e){return e.replace(a,"\n")})}r[0]=r[0].replace(/^\r?\n/,"");var o=r[0];return t.forEach(function(e,t){var n=o.match(/(?:^|\n)( *)$/),i=n?n[1]:"",a=e;"string"==typeof e&&e.includes("\n")&&(a=String(e).split("\n").map(function(e,t){return 0===t?e:"".concat(i).concat(e)}).join("\n")),o+=a+r[t+1]}),o}n.d(t,{Z:function(){return r}})},73464:function(e,t,n){"use strict";n.d(t,{eX:function(){return a}});var r=n(41871),i=n(77735);function a({_cache:e=(0,r.b)(),_formatters:t=(0,r.c)(e),getMessageFallback:n=i.d,messages:a,namespace:o,onError:s=i.b,...l}){return function({messages:e,namespace:t,...n},r){return e=e["!"],t=(0,i.r)(t,"!"),(0,i.a)({...n,messages:e,namespace:t})}({...l,onError:s,cache:e,formatters:t,getMessageFallback:n,messages:{"!":a},namespace:o?`!.${o}`:"!"},0)}},22163:function(e,t,n){"use strict";n.d(t,{h:function(){return f}});var r=n(28113);let i={damping:.7,stiffness:.05,mass:1.25},a=1e3/60,o=!1;globalThis.document?.addEventListener("mousedown",()=>{o=!0}),globalThis.document?.addEventListener("mouseup",()=>{o=!1}),globalThis.document?.addEventListener("click",()=>{o=!1});let s=(e={})=>{let[t,n]=(0,r.useState)(!1),[i,s]=(0,r.useState)(!1!==e.initial),[u,d]=(0,r.useState)(!1),h=(0,r.useRef)(null);h.current=e;let f=(0,r.useCallback)(()=>{if(!o)return!1;let e=window.getSelection();if(!e||!e.rangeCount)return!1;let t=e.getRangeAt(0);return t.commonAncestorContainer.contains(k.current)||k.current?.contains(t.commonAncestorContainer)},[]),p=(0,r.useCallback)(e=>{m.isAtBottom=e,s(e)},[]),g=(0,r.useCallback)(e=>{m.escapedFromLock=e,n(e)},[]),m=(0,r.useMemo)(()=>{let n;return{escapedFromLock:t,isAtBottom:i,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){return k.current?.scrollTop??0},set scrollTop(scrollTop){if(k.current){let{scrollBehavior:e}=getComputedStyle(k.current);"auto"!==e&&(k.current.style.scrollBehavior="auto"),k.current.scrollTop=scrollTop,m.ignoreScrollToTop=k.current.scrollTop,"auto"!==e&&(k.current.style.scrollBehavior=e)}},get targetScrollTop(){if(!k.current||!w.current)return 0;return k.current.scrollHeight-1-k.current.clientHeight},get calculatedTargetScrollTop(){if(!k.current||!w.current)return 0;let{targetScrollTop:t}=this;if(!e.targetScrollTop)return t;if(n?.targetScrollTop===t)return n.calculatedScrollTop;let r=Math.max(Math.min(e.targetScrollTop(t,{scrollElement:k.current,contentElement:w.current}),t),0);return n={targetScrollTop:t,calculatedScrollTop:r},requestAnimationFrame(()=>{n=void 0}),r},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=70}}},[]),y=(0,r.useCallback)((e={})=>{let t;"string"==typeof e&&(e={animation:e}),e.preserveScrollPosition||p(!0);let n=Date.now()+(Number(e.wait)||0),r=c(h.current,e.animation),{ignoreEscapes:i=!1}=e,o=m.calculatedTargetScrollTop;e.duration instanceof Promise?e.duration.finally(()=>{t=Date.now()}):t=n+(e.duration??0);let s=async()=>{let e=new Promise(requestAnimationFrame).then(()=>
289{if(!m.isAtBottom)return m.animation=void 0,!1;let{scrollTop:l}=m,u=performance.now(),d=(u-(m.lastTick??u))/a;if(m.animation||(m.animation={behavior:r,promise:e,ignoreEscapes:i}),m.animation.behavior===r&&(m.lastTick=u),f()||n>Date.now())return s();if(l<Math.min(o,m.calculatedTargetScrollTop)){if(m.animation?.behavior===r){if("instant"===r)return m.scrollTop=m.calculatedTargetScrollTop,s();m.velocity=(r.damping*m.velocity+r.stiffness*m.scrollDifference)/r.mass,m.accumulated+=m.velocity*d,m.scrollTop+=m.accumulated,m.scrollTop!==l&&(m.accumulated=0)}return s()}return t>Date.now()?(o=m.calculatedTargetScrollTop,s()):(m.animation=void 0,m.scrollTop<m.calculatedTargetScrollTop)?y({animation:c(h.current,h.current.resize),ignoreEscapes:i,duration:Math.max(0,t-Date.now())||void 0}):m.isAtBottom});return e.then(e=>(requestAnimationFrame(()=>{m.animation||(m.lastTick=void 0,m.velocity=0)}),e))};return(!0!==e.wait&&(m.animation=void 0),m.animation?.behavior===r)?m.animation.promise:s()},[p,f,m]),b=(0,r.useCallback)(()=>{g(!0),p(!1)},[g,p]),v=(0,r.useCallback)(({target:e})=>{if(e!==k.current)return;let{scrollTop:t,ignoreScrollToTop:n}=m,{lastScrollTop:r=t}=m;m.lastScrollTop=t,m.ignoreScrollToTop=void 0,n&&n>t&&(r=n),d(m.isNearBottom),setTimeout(()=>{if(m.resizeDifference||t===n)return;if(f()){g(!0),p(!1);return}let e=t>r,i=t<r;if(m.animation?.ignoreEscapes){m.scrollTop=r;return}i&&(g(!0),p(!1)),e&&g(!1),!m.escapedFromLock&&m.isNearBottom&&p(!0)},1)},[g,p,f,m]),x=(0,r.useCallback)(({target:e,deltaY:t})=>{let n=e;for(;!["scroll","auto"].includes(getComputedStyle(n).overflow);){if(!n.parentElement)return;n=n.parentElement}n===k.current&&t<0&&k.current.scrollHeight>k.current.clientHeight&&!m.animation?.ignoreEscapes&&(g(!0),p(!1))},[g,p,m]),k=l(e=>{k.current?.removeEventListener("scroll",v),k.current?.removeEventListener("wheel",x),e?.addEventListener("scroll",v,{passive:!0}),e?.addEventListener("wheel",x,{passive:!0})},[]),w=l(e=>{let t;m.resizeObserver?.disconnect(),m.resizeObserver=void 0,e&&(m.resizeObserver=new ResizeObserver(([e])=>{let{height:n}=e.contentRect,r=n-(t??n);if(m.resizeDifference=r,m.scrollTop>m.targetScrollTop&&(m.scrollTop=m.targetScrollTop),d(m.isNearBottom),r>=0){let e=c(h.current,t?h.current.resize:h.current.initial);y({animation:e,wait:!0,preserveScrollPosition:!0,duration:"instant"===e?void 0:350})}else m.isNearBottom&&(g(!1),p(!0));t=n,requestAnimationFrame(()=>{setTimeout(()=>{m.resizeDifference===r&&(m.resizeDifference=0)},1)})}),m.resizeObserver?.observe(e))},[]);return{contentRef:w,scrollRef:k,scrollToBottom:y,stopScroll:b,isAtBottom:i||u,isNearBottom:u,escapedFromLock:t,state:m}};function l(e,t){let n=(0,r.useCallback)(t=>(n.current=t,e(t)),t);return n}let u=new Map;function c(...e){let t={...i},n=!1;for(let r of e){if("instant"===r){n=!0;continue}"object"==typeof r&&(n=!1,t.damping=r.damping??t.damping,t.stiffness=r.stiffness??t.stiffness,t.mass=r.mass??t.mass)}let r=JSON.stringify(t);return u.has(r)||u.set(r,Object.freeze(t)),n?"instant":u.get(r)}let d=(0,r.createContext)(null),h="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function f({instance:e,children:t,resize:n,initial:i,mass:a,damping:o,stiffness:l,targetScrollTop:u,contextRef:c,...f}){let p=(0,r.useRef)(null),g=s({mass:a,damping:o,stiffness:l,resize:n,initial:i,targetScrollTop:r.useCallback((e,t)=>{let n=_?.targetScrollTop??u;return n?.(e,t)??e},[u])}),{scrollRef:m,contentRef:y,scrollToBottom:b,stopScroll:v,isAtBottom:x,escapedFromLock:k,state:w}=e??g,_=(0,r.useMemo)(()=>({scrollToBottom:b,stopScroll:v,scrollRef:m,isAtBottom:x,escapedFromLock:k,contentRef:y,state:w,get targetScrollTop(){return p.current},set targetScrollTop(targetScrollTop){p.current=targetScrollTop}}),[b,x,y,m,v,k,w]);return(0,r.useImperativeHandle)(c,()=>_,[_]),h(()=>{m.current&&"visible"===getComputedStyle(m.current).overflow&&(m.current.style.overflow="auto")},[]),r.createElement(d.Provider,{value:_},r.createElement("div",{...f},"function"==typeof t?t(_):t))}(f||(f={})).Content=function({children:e,scrollClassName:t,...n}){let i=function(){let e=(0,r.useContext)(d);if(!e)throw Error("use-stick-to-bottom component context must be used within a StickToBottom component");return e}();return r.createElement("div",{ref:i.scrollRef,style:{height:"100%",width:"100%",scrollbarGutter:"stable both-edges"},className:t},r.createElement("div",{...n,ref:i.contentRef},"function"==typeof e?e(i):e))}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.