PageSourceSearch

https://www.getsparks.ai/_next/static/chunks/396-16ffbbb2f34d212a.js

js getsparks.ai collected 2026-10-05 12:07:44 UTC 683,174 bytes, 9 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[396],{91950:function(e,t,n){"use strict";n.d(t,{V:function(){return l}});var r=n(2784),i=n(96651),o=n(75813),s=n(52322);let a=e=>{let{color:t="black",size:n=24,...r}=e;return(0,s.jsxs)(i.ny,{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...r,children:[(0,s.jsx)(i.Cd,{cx:"5",cy:"6",r:"3",stroke:t}),(0,s.jsx)(i.y$,{d:"M5 9v6",stroke:t}),(0,s.jsx)(i.Cd,{cx:"5",cy:"18",r:"3",stroke:t}),(0,s.jsx)(i.y$,{d:"M12 3v18",stroke:t}),(0,s.jsx)(i.Cd,{cx:"19",cy:"6",r:"3",stroke:t}),(0,s.jsx)(i.y$,{d:"M16 15.7A9 9 0 0 0 19 9",stroke:t})]})};a.displayName="GitGraph";let l=(0,r.memo)((0,o.H)(a))},46534:function(e,t,n){"use strict";n.d(t,{D:function(){return l}});var r=n(2784),i=n(96651),o=n(75813),s=n(52322);let a=e=>{let{color:t="black",size:n=24,...r}=e;return(0,s.jsxs)(i.ny,{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...r,children:[(0,s.jsx)(i.x1,{x1:"10",x2:"21",y1:"6",y2:"6",stroke:t}),(0,s.jsx)(i.x1,{x1:"10",x2:"21",y1:"12",y2:"12",stroke:t}),(0,s.jsx)(i.x1,{x1:"10",x2:"21",y1:"18",y2:"18",stroke:t}),(0,s.jsx)(i.y$,{d:"M4 6h1v4",stroke:t}),(0,s.jsx)(i.y$,{d:"M4 10h2",stroke:t}),(0,s.jsx)(i.y$,{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",stroke:t})]})};a.displayName="ListOrdered";let l=(0,r.memo)((0,o.H)(a))},99062:function(e,t,n){"use strict";n.d(t,{a:function(){return l}});var r=n(2784),i=n(96651),o=n(75813),s=n(52322);let a=e=>{let{color:t="black",size:n=24,...r}=e;return(0,s.jsxs)(i.ny,{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...r,children:[(0,s.jsx)(i.x1,{x1:"8",x2:"21",y1:"6",y2:"6",stroke:t}),(0,s.jsx)(i.x1,{x1:"8",x2:"21",y1:"12",y2:"12",stroke:t}),(0,s.jsx)(i.x1,{x1:"8",x2:"21",y1:"18",y2:"18",stroke:t}),(0,s.jsx)(i.x1,{x1:"3",x2:"3.01",y1:"6",y2:"6",stroke:t}),(0,s.jsx)(i.x1,{x1:"3",x2:"3.01",y1:"12",y2:"12",stroke:t}),(0,s.jsx)(i.x1,{x1:"3",x2:"3.01",y1:"18",y2:"18",stroke:t})]})};a.displayName="List";let l=(0,r.memo)((0,o.H)(a))},81488:function(e,t,n){"use strict";n.d(t,{i$:function(){return i},Z1:function(){return o},wp:function(){return s}});var r,i,o,s,a=new Date,l=new Date;function u(e,t,n,r){function i(t){return e(t=0==arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var s,a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r)||!(o>0))return a;do a.push(s=new Date(+n)),t(n,o),e(n);while(s<n&&n<r);return a},i.filter=function(n){return u(function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},function(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=function(t,r){return a.setTime(+t),l.setTime(+r),e(a),e(l),Math.floor(n(a,l))},i.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}function c(e){return u(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/6048e5})}var d=c(0),h=c(1),f=c(2),p=c(3),m=c(4),g=c(5),b=c(6);d.range,h.range,f.range,p.range,m.range,g.range,b.range;var v=u(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/864e5},function(e){return e.getUTCDate()-1});function y(e){return u(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5})}v.range;var x=y(0),k=y(1),w=y(2),C=y(3),_=y(4),A=y(5),M=y(6);x.range,k.range,w.range,C.range,_.range,A.range,M.range;var S=u(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);S.range;var E=u(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});E.every=function(e){return isFinite(e=Math.floor(e))&&e>0?u(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null},E.range;var T=u(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});function D(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 L(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 O(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}T.every=function(e){return isFinite(e=Math.floor(e))&&e>0?u(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null},T.range;var R={"-":"",_:" ",0:"0"},F=/^\s*\d+/,z=/^%/,I=/[\\^$*+?|[\]().{}]/g;function B(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?Array(n-o+1).join(t)+i:i)}function j(e){return e.replace(I,"\\$&")}function N(e){return RegExp("^(?:"+e.map(j).join("|")+")","i")}function P(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function H(e,t,n){var r=F.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function W(e,t,n){var r=F.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function $(e,t,n){var r=F.exec(t.slice(n,n+2));
vendor: 6,090 bytes, line 1
1return r?(e.U=+r[0],n+r[0].length):-1}function Z(e,t,n){var r=F.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function q(e,t,n){var r=F.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function U(e,t,n){var r=F.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function V(e,t,n){var r=F.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Y(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 G(e,t,n){var r=F.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function J(e,t,n){var r=F.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function X(e,t,n){var r=F.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function K(e,t,n){var r=F.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Q(e,t,n){var r=F.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function ee(e,t,n){var r=F.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function et(e,t,n){var r=F.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function en(e,t,n){var r=F.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function er(e,t,n){var r=F.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function ei(e,t,n){var r=z.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function eo(e,t,n){var r=F.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function es(e,t,n){var r=F.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function ea(e,t){return B(e.getDate(),t,2)}function el(e,t){return B(e.getHours(),t,2)}function eu(e,t){return B(e.getHours()%12||12,t,2)}function ec(e,t){return B(1+S.count(E(e),e),t,3)}function ed(e,t){return B(e.getMilliseconds(),t,3)}function eh(e,t){return ed(e,t)+"000"}function ef(e,t){return B(e.getMonth()+1,t,2)}function ep(e,t){return B(e.getMinutes(),t,2)}function em(e,t){return B(e.getSeconds(),t,2)}function eg(e){var t=e.getDay();return 0===t?7:t}function eb(e,t){return B(x.count(E(e)-1,e),t,2)}function ev(e){var t=e.getDay();return t>=4||0===t?_(e):_.ceil(e)}function ey(e,t){return e=ev(e),B(_.count(E(e),e)+(4===E(e).getDay()),t,2)}function ex(e){return e.getDay()}function ek(e,t){return B(k.count(E(e)-1,e),t,2)}function ew(e,t){return B(e.getFullYear()%100,t,2)}function eC(e,t){return B((e=ev(e)).getFullYear()%100,t,2)}function e_(e,t){return B(e.getFullYear()%1e4,t,4)}function eA(e,t){var n=e.getDay();return B((e=n>=4||0===n?_(e):_.ceil(e)).getFullYear()%1e4,t,4)}function eM(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+B(t/60|0,"0",2)+B(t%60,"0",2)}function eS(e,t){return B(e.getUTCDate(),t,2)}function eE(e,t){return B(e.getUTCHours(),t,2)}function eT(e,t){return B(e.getUTCHours()%12||12,t,2)}function eD(e,t){return B(1+v.count(T(e),e),t,3)}function eL(e,t){return B(e.getUTCMilliseconds(),t,3)}function eO(e,t){return eL(e,t)+"000"}function eR(e,t){return B(e.getUTCMonth()+1,t,2)}function eF(e,t){return B(e.getUTCMinutes(),t,2)}function ez(e,t){return B(e.getUTCSeconds(),t,2)}function eI(e){var t=e.getUTCDay();return 0===t?7:t}function eB(e,t){return B(d.count(T(e)-1,e),t,2)}function ej(e){var t=e.getUTCDay();return t>=4||0===t?m(e):m.ceil(e)}function eN(e,t){return e=ej(e),B(m.count(T(e),e)+(4===T(e).getUTCDay()),t,2)}function eP(e){return e.getUTCDay()}function eH(e,t){return B(h.count(T(e)-1,e),t,2)}function eW(e,t){return B(e.getUTCFullYear()%100,t,2)}function e$(e,t){return B((e=ej(e)).getUTCFullYear()%100,t,2)}function eZ(e,t){return B(e.getUTCFullYear()%1e4,t,4)}function eq(e,t){var n=e.getUTCDay();return B((e=n>=4||0===n?m(e):m.ceil(e)).getUTCFullYear()%1e4,t,4)}function eU(){return"+0000"}function eV(){return"%"}function eY(e){return+e}function eG(e){return Math.floor(+e/1e3)}i=(r=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,s=e.shortDays,a=e.months,l=e.shortMonths,u=N(i),c=P(i),d=N(o),f=P(o),p=N(s),m=P(s),g=N(a),b=P(a),y=N(l),x=P(l),w={a:function(e){return s[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return a[e.getMonth()]},c:null,d:ea,e:ea,f:eh,g:eC,G:eA,H:el,I:eu,j:ec,L:ed,m:ef,M:ep,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:eY,s:eG,S:em,u:eg,U:eb,V:ey,w:ex,W:ek,x:null,X:null,y:ew,Y:e_,Z:eM,"%":eV},C={a:function(e){return s[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return a[e.getUTCMonth()]},c:null,d:eS,e:eS,f:eO,g:e$,G:eq,H:eE,I:eT,j:eD,L:eL,m:eR,M:eF,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:eY,s:eG,S:ez,u:eI,U:eB,V:eN,w:eP,W:eH,x:null,X:null,y:eW,Y:eZ,Z:eU,"%":eV},_={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m.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=f.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=x.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=b.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return E(e,t,n,r)},d:X,e:X,f:er,g:V,G:U,H:Q,I:Q,j:K,L:en,m:J,M:ee,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:G,Q:eo,s:es,S:et,u:W,U:$,V:Z,w:H,W:q,x:function(e,t,r){return E(e,n,t,r)},X:function(e,t,n){return E(e,r,t,n)},y:V,Y:U,Z:Y,"%":ei};function A(e,t){return function(n){var r,i,o,s=[],a=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++a<u;)37===e.charCodeAt(a)&&(s.push(e.slice(l,a)),null!=(i=R[r=e.charAt(++a)])?r=e.charAt(++a):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),s.push(r),l=a+1);return s.push(e.slice(l,a)),s.join("")}}function M(e,t){return function(n){var r,i,o=O(1900,void 0,1);if(E(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(!t||"Z"in o||(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){
1if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=(r=L(O(o.y,0,1))).getUTCDay())>4||0===i?h.ceil(r):h(r),r=v.offset(r,(o.V-1)*7),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=(i=(r=D(O(o.y,0,1))).getDay())>4||0===i?k.ceil(r):k(r),r=S.offset(r,(o.V-1)*7),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?L(O(o.y,0,1)).getUTCDay():D(O(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,L(o)):D(o)}}function E(e,t,n,r){for(var i,o,s=0,a=t.length,l=n.length;s<a;){if(r>=l)return -1;if(37===(i=t.charCodeAt(s++))){if(!(o=_[(i=t.charAt(s++))in R?t.charAt(s++):i])||(r=o(e,n,r))<0)return -1}else if(i!=n.charCodeAt(r++))return -1}return r}return w.x=A(n,w),w.X=A(r,w),w.c=A(t,w),C.x=A(n,C),C.X=A(r,C),C.c=A(t,C),{format:function(e){var t=A(e+="",w);return t.toString=function(){return e},t},parse:function(e){var t=M(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=A(e+="",C);return t.toString=function(){return e},t},utcParse:function(e){var t=M(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","Friday","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,o=r.parse,r.utcFormat,s=r.utcParse},28582:function(e,t,n){var r=n(13940),i=n(41225);e.exports=function(e,t,n){(void 0===n||i(e[t],n))&&(void 0!==n||t in e)||r(e,t,n)}},85246:function(e,t,n){var r=n(45386),i=n(38333),o=n(34893),s=n(50343),a=n(47826),l=n(59950);e.exports=function(e,t,n,u){var c=-1,d=i,h=!0,f=e.length,p=[],m=t.length;if(!f)return p;n&&(t=s(t,a(n))),u?(d=o,h=!1):t.length>=200&&(d=l,h=!1,t=new r(t));e:for(;++c<f;){var g=e[c],b=null==n?g:n(g);if(g=u||0!==g?g:0,h&&b==b){for(var v=m;v--;)if(t[v]===b)continue e;p.push(g)}else d(t,b,u)||p.push(g)}return p}},98043:function(e,t,n){var r=n(24303);e.exports=function(e,t){var n=[];return r(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}},72097:function(e,t,n){var r=n(53366),i=n(15125);e.exports=function(e){return i(e)&&"[object Date]"==r(e)}},93401:function(e,t,n){var r=n(24303),i=n(67878);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,function(e,r,i){o[++n]=t(e,r,i)}),o}},84565:function(e,t,n){var r=n(86571),i=n(28582),o=n(15308),s=n(25561),a=n(29259),l=n(18582),u=n(52434);e.exports=function e(t,n,c,d,h){t!==n&&o(n,function(o,l){if(h||(h=new r),a(o))s(t,n,l,c,e,d,h);else{var f=d?d(u(t,l),o,l+"",t,n,h):void 0;void 0===f&&(f=o),i(t,l,f)}},l)}},25561:function(e,t,n){var r=n(28582),i=n(92175),o=n(6190),s=n(51522),a=n(78725),l=n(79631),u=n(86152),c=n(93746),d=n(73226),h=n(61049),f=n(29259),p=n(97030),m=n(77598),g=n(52434),b=n(63329);e.exports=function(e,t,n,v,y,x,k){var w=g(e,n),C=g(t,n),_=k.get(C);if(_){r(e,n,_);return}var A=x?x(w,C,n+"",e,t,k):void 0,M=void 0===A;if(M){var S=u(C),E=!S&&d(C),T=!S&&!E&&m(C);A=C,S||E||T?u(w)?A=w:c(w)?A=s(w):E?(M=!1,A=i(C,!0)):T?(M=!1,A=o(C,!0)):A=[]:p(C)||l(C)?(A=w,l(w)?A=b(w):(!f(w)||h(w))&&(A=a(C))):M=!1}M&&(k.set(C,A),y(A,C,v,x,k),k.delete(C)),r(e,n,A)}},23813:function(e,t,n){var r=n(50343),i=n(13324),o=n(68286),s=n(93401),a=n(27095),l=n(47826),u=n(18477),c=n(23059),d=n(86152);e.exports=function(e,t,n){t=t.length?r(t,function(e){return d(e)?function(t){return i(t,1===e.length?e[0]:e)}:e}):[c];var h=-1;return t=r(t,l(o)),a(s(e,function(e,n,i){return{criteria:r(t,function(t){return t(e)}),index:++h,value:e}}),function(e,t){return u(e,t,n)})}},92602:function(e,t,n){var r=n(93759),i=n(95041);e.exports=function(e,t){return r(e,t,function(t,n){return i(e,n)})}},36060:function(e,t,n){var r=n(23059),i=n(43114),o=n(75251);e.exports=function(e,t){return o(i(e,t,r),e+"")}},27095:function(e){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},27520:function(e,t,n){var r=n(4795);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e==e,s=r(e),a=void 0!==t,l=null===t,u=t==t,c=r(t);if(!l&&!c&&!s&&e>t||s&&a&&u&&!l&&!c||i&&a&&u||!n&&u||!o)return 1;if(!i&&!s&&!c&&e<t||c&&n&&o&&!i&&!s||l&&n&&o||!a&&o||!u)return -1}return 0}},18477:function(e,t,n){var r=n(27520);e.exports=function(e,t,n){for(var i=-1,o=e.criteria,s=t.criteria,a=o.length,l=n.length;++i<a;){var u=r(o[i],s[i]);if(u){if(i>=l)return u;return u*("desc"==n[i]?-1:1)}}return e.index-t.index}},97263:function(e,t,n){var r=n(36060),i=n(82406);e.exports=function(e){return r(function(t,n){var r=-1,o=n.length,s=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(s=e.length>3&&"function"==typeof s?(o--,s):void 0,a&&i(n[0],n[1],a)&&(s=o<3?void 0:s,o=1),t=Object(t);++r<o;){var l=n[r];l&&e(t,l,r,s)}return t})}},82406:function(e,t,n){var r=n(41225),i=n(67878),o=n(39045),s=n(29259);e.exports=function(e,t,n){if(!s(n))return!1;var a=typeof t;return("number"==a?!!(i(n)&&o(t,n.length)):"string"==a&&t in n)&&r(n[t],e)}},52434:function(e){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},90882:function(e,t,n){var r=n(67552),i=n(98043),o=n(68286),s=n(86152);e.exports=function(e,t){return(s(e)?r:i)(e,o(t,3))}},93746:function(e,t,n){var r=n(67878),i=n(15125);e.exports=function(e){return i(e)&&r(e)}},17318:function(e,t,n){var r=n(72097),i=n(47826),o=n(4146),s=o&&o.isDate,a=s?i(s):r;e.exports=a},80537:function(e,t,n){var r=n(53366),i=n(15125);e.exports=function(e){return"number"==typeof e||i(e)&&"[object Number]"==r(e)}},98537:function(e,t,n){var r=n(84565),i=n(97263)(function(e,t,n){r(e,t,n)});e.exports=i},13888:function(e,t,n){var r=n(92602),i=n(29097)(function(e,t){return null==e?{}:r(e,t)});e.exports=i},16765:function(e,t,n){var r=n(82857);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},829:function(e,t,n){var r=n(62034),i=n(23813),o=n(36060),s=n(82406),a=o(function(e,t){if(null==e)return[];var n=t.length;return n>1&&s(e,t[0],t[1])?t=[]:n>2&&s(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])});e.exports=a},63329:function(e,t,n){var r=n(752),i=n(18582);e.exports=function(e){return r(e,i(e))}},74930:function(e,t,n){var r=n(66188),i=0;e.exports=function(e){var t=++i;return r(e)+t}},67304:function(e,t,n){var r=n(85246),i=n(36060),o=n(93746),s=i(function(e,t){return o(e)?r(e,t):[]});e.exports=s},69788:function(e){var t=!0,n=!1,r=!1;function i(e,t,n){var r=e.attrIndex(t),i=[t,n];r<0?e.attrPush(i):e.attrs[r]=i}e.exports=function(e,o){o&&(t=!o.enabled,n=!!o.label,r=!!o.labelAfter),e.core.ruler.after("inl
1ine","github-task-lists",function(e){for(var o=e.tokens,s=2;s<o.length;s++)(function(e,t){var n;return"inline"===e[t].type&&"paragraph_open"===e[t-1].type&&"list_item_open"===e[t-2].type&&(0===(n=e[t]).content.indexOf("[ ] ")||0===n.content.indexOf("[x] ")||0===n.content.indexOf("[X] "))})(o,s)&&(function(e,i){if(e.children.unshift(function(e,n){var r=new n("html_inline","",0),i=t?' disabled="" ':"";return 0===e.content.indexOf("[ ] ")?r.content='<input class="task-list-item-checkbox"'+i+'type="checkbox">':(0===e.content.indexOf("[x] ")||0===e.content.indexOf("[X] "))&&(r.content='<input class="task-list-item-checkbox" checked=""'+i+'type="checkbox">'),r}(e,i)),e.children[1].content=e.children[1].content.slice(3),e.content=e.content.slice(3),n){if(r){e.children.pop();var o="task-item-"+Math.ceil(1e7*Math.random()-1e3);e.children[0].content=e.children[0].content.slice(0,-1)+' id="'+o+'">',e.children.push(function(e,t,n){var r=new n("html_inline","",0);return r.content='<label class="task-list-item-label" for="'+t+'">'+e+"</label>",r.attrs=[{for:t}],r}(e.content,o,i))}else e.children.unshift(function(e){var t=new e("html_inline","",0);return t.content="<label>",t}(i)),e.children.push(function(e){var t=new e("html_inline","",0);return t.content="</label>",t}(i))}}(o[s],e.Token),i(o[s-2],"class","task-list-item"+(t?"":" enabled")),i(o[function(e,t){for(var n=e[t].level-1,r=t-1;r>=0;r--)if(e[r].level===n)return r;return -1}(o,s-2)],"class","contains-task-list"))})}},50685:function(e,t,n){"use strict";n.d(t,{dk:function(){return L},rj:function(){return F},WG:function(){return E},DZ:function(){return I},FA:function(){return B}});var r,i,o,s=n(2784),a=n(64565),l=n(91265),u=n(35824),c=n(65352),d=n(81488);function h(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}var f=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function p(e){var t;if(!(t=f.exec(e)))throw Error("invalid format: "+e);return new m({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 m(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 g(e,t){var n=h(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")}p.prototype=m.prototype,m.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var b={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return g(100*e,t)},r:g,s:function(e,t){var n=h(e,t);if(!n)return e+"";var i=n[0],o=n[1],s=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=i.length;return s===a?i:s>a?i+Array(s-a+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+Array(1-s).join("0")+h(e,Math.max(0,t+s-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function v(e){return e}var y=Array.prototype.map,x=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];o=(i=function(e){var t,n,i,o=void 0===e.grouping||void 0===e.thousands?v:(t=y.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],s=0,a=t[0],l=0;i>0&&a>0&&(l+a+1>r&&(a=Math.max(1,r-l)),o.push(e.substring(i-=a,i+a)),!((l+=a+1)>r));)a=t[s=(s+1)%t.length];return o.reverse().join(n)}),s=void 0===e.currency?"":e.currency[0]+"",a=void 0===e.currency?"":e.currency[1]+"",l=void 0===e.decimal?".":e.decimal+"",u=void 0===e.numerals?v:(i=y.
1call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return i[+e]})}),c=void 0===e.percent?"%":e.percent+"",d=void 0===e.minus?"-":e.minus+"",f=void 0===e.nan?"NaN":e.nan+"";function m(e){var t=(e=p(e)).fill,n=e.align,i=e.sign,h=e.symbol,m=e.zero,g=e.width,v=e.comma,y=e.precision,k=e.trim,w=e.type;"n"===w?(v=!0,w="g"):b[w]||(void 0===y&&(y=12),k=!0,w="g"),(m||"0"===t&&"="===n)&&(m=!0,t="0",n="=");var C="$"===h?s:"#"===h&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",_="$"===h?a:/[%p]/.test(w)?c:"",A=b[w],M=/[defgprs%]/.test(w);function S(e){var s,a,c,h=C,p=_;if("c"===w)p=A(e)+p,e="";else{var b=(e=+e)<0||1/e<0;if(e=isNaN(e)?f:A(Math.abs(e),y),k&&(e=function(e){t: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 t;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),b&&0==+e&&"+"!==i&&(b=!1),h=(b?"("===i?i:d:"-"===i||"("===i?"":i)+h,p=("s"===w?x[8+r/3]:"")+p+(b&&"("===i?")":""),M){for(s=-1,a=e.length;++s<a;)if(48>(c=e.charCodeAt(s))||c>57){p=(46===c?l+e.slice(s+1):e.slice(s))+p,e=e.slice(0,s);break}}}v&&!m&&(e=o(e,1/0));var S=h.length+e.length+p.length,E=S<g?Array(g-S+1).join(t):"";switch(v&&m&&(e=o(E+e,E.length?g-p.length:1/0),E=""),n){case"<":e=h+e+p+E;break;case"=":e=h+E+e+p;break;case"^":e=E.slice(0,S=E.length>>1)+h+e+p+E.slice(S);break;default:e=E+h+e+p}return u(e)}return y=void 0===y?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),S.toString=function(){return e+""},S}return{format:m,formatPrefix:function(e,t){var n,r=m(((e=p(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(((n=h(Math.abs(n=t)))?n[1]:NaN)/3))),o=Math.pow(10,-i),s=x[8+i/3];return function(e){return r(o*e)+s}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"})).format,i.formatPrefix;var k=n(83013),w=n(52322);function C(){return(C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var _=function(e){var t,n=e.axis,r=e.scale,i=e.ticksPosition,o=e.tickValues,s=e.tickSize,l=e.tickPadding,u=e.tickRotation,c=e.truncateTickAt,d=e.engine,h=(0,k.xX)(r,o),f=a.a6[void 0===d?"svg":d],p="bandwidth"in r?(0,k.Gv)(r):r,m={lineX:0,lineY:0},g={textX:0,textY:0},b="object"==typeof document&&"rtl"===document.dir,v=f.align.center,y=f.baseline.center;return"x"===n?(t=function(e){var t;return{x:null!=(t=p(e))?t:0,y:0}},m.lineY=s*("after"===i?1:-1),g.textY=(s+l)*("after"===i?1:-1),y="after"===i?f.baseline.top:f.baseline.bottom,0===u?v=f.align.center:"after"===i&&u<0||"before"===i&&u>0?(v=f.align[b?"left":"right"],y=f.baseline.center):("after"===i&&u>0||"before"===i&&u<0)&&(v=f.align[b?"right":"left"],y=f.baseline.center)):(t=function(e){var t;return{x:0,y:null!=(t=p(e))?t:0}},m.lineX=s*("after"===i?1:-1),g.textX=(s+l)*("after"===i?1:-1),v="after"===i?f.align.left:f.align.right),{ticks:h.map(function(e){var n,r="string"==typeof e?(n=String(e).length,c&&c>0&&n>c?""+String(e).slice(0,c).concat("..."):""+e):e;return C({key:e instanceof Date?""+e.valueOf():""+e,value:r},t(e),m,g)}),textAlign:v,textBaseline:y}},A=function(e,t){if(void 0===e||"function"==typeof e)return e;if("time"===t.type){var n=(0,d.i$)(e);return function(e){return n(e instanceof Date?e:new Date(e))}}return o(e)},M=function(e){var t=e.width,n=e.height,r=e.scale,i=e.axis,o=e.values,s=(Array.isArray(o)?o:void 0)||(0,k.xX)(r,o),a="bandwidth"in r?(0,k.Gv)(r):r;return"x"===i?s.map(function(e){var t,r;return{key:e instanceof Date?""+e.valueOf():""+e,x1:null!=(t=a(e))?t:0,x2:null!=(r=a(e))?r:0,y1:0,y2:n}}):s.map(function(e){var n,r;return{key:e instanceof Date?""+e.valueOf():""+e,x1:0,x2:t,y1:null!=(n=a(e))?n:0,y2:null!=(r=a(e))?r:0}})},S=(0,s.memo)(function(e){var t,n=e.value,r=e.format,i=e.lineX,o=e.lineY,a=e.onClick,l=e.textBaseline,d=e.textAnchor,h=e.theme,f=e.animatedProps,p=null!=(t=null==r?void 0:r(n))?t:n,m=(0,s.useMemo)(function(){var e={opacity:f.opacity};return a?{style:C({},e,{cursor:"pointer"}),onClick:function(e){return a(e,p)}}:{style:e}},[f.opacity,a,p]);return(0,w.jsxs)(c.q.g,C({transform:f.transform},m,{children:[(0,w.jsx)("line",{x1:0,x2:i,y1:0,y2:o,style:h.line}),(0,w.jsx)(u.xv,{dominantBaseline:l,textAnchor:d,transform:f.textTransform,style:h.text,children:""+p})]}))}),E={tickSize:5,tickPadding:5,tickRotation:0,legendPosition:"middle",legendOffset:0},T=(0,s.memo)(function(e){var t=e.axis,n=e.scale,r=e.x,i=e.y,o=e.length,d=e.ticksPosition,h=e.tickValues,f=e.tickSize,p=void 0===f?E.tickSize:f,m=e.tickPadding,g=void 0===m?E.tickPadding:m,b=e.tickRotation,v=void 0===b?E.tickRotation:b,y=e.format,x=e.renderTick,k=void 0===x?S:x,M=e.truncateTickAt,T=e.legend,D=e.legendPosition,L=void 0===D?E.legendPosition:D,O=e.legendOffset,R=void 0===O?E.legendOffset:O,F=e.style,z=e.onClick,I=e.ariaHidden,B=(0,l.Fg)(),j=(0,l.OJ)(B.axis,F),N=(0,s.useMemo)(function(){return A(y,n)},[y,n]),P=_({axis:t,scale:n,ticksPosition:d,tickValues:h,tickSize:p,tickPadding:g,tickRotation:v,truncateTickAt:M}),H=P.ticks,W=P.textAlign,$=P.textBaseline,Z=null;if(void 0!==T){var q,U=0,V=0,Y=0;"y"===t?(Y=-90,U=R,"start"===L?(q="start",V=o):"middle"===L?(q="middle",V=o/2):"end"===L&&(q="end")):(V=R,"start"===L?q="start":"middle"===L?(q="middle",U=o/2):"end"===L&&(q="end",U=o)),Z=(0,w.jsx)(w.Fragment,{children:(0,w.jsx)(u.xv,{transform:"translate("+U+", "+V+") rotate("+Y+")",textAnchor:q,style:C({},j.legend.text,{dominantBaseline:"central"}),children:T})})}var G=(0,a.tf)(),J=G.animate,X=G.config,K=(0,c.q_)({transform:"translate("+(void 0===r?0:r)+","+(void 0===i?0:i)+")",lineX2:"x"===t?o:0,lineY2:"x"===t?0:o,config:X,immediate:!J}),Q=(0,s.useCallback)(function(e){return{opacity:1,transform:"translate("+e.x+","+e.y+")",textTransform:"translate("+e.textX+","+e.textY+") rotate("+v+")"}},[v]),ee=(0,s.useCallback)(function(e){return{opacity:0,transform:"translate("+e.x+","+e.y+")",textTransform:"translate("+e.textX+","+e.textY+") rotate("+v+")"}},[v]),et=(0,c.Yz)(H,{keys:function(e){return e.key},initial:Q,from:ee,enter:Q,update:Q,leave:{opacity:0}
1,config:X,immediate:!J});return(0,w.jsxs)(c.q.g,{transform:K.transform,"aria-hidden":I,children:[et(function(e,t,n,r){return s.createElement(k,C({tickIndex:r,format:N,rotate:v,textBaseline:$,textAnchor:W,truncateTickAt:M,animatedProps:e,theme:j.ticks},t,z?{onClick:z}:{}))}),(0,w.jsx)(c.q.line,{style:j.domain.line,x1:0,x2:K.lineX2,y1:0,y2:K.lineY2}),Z]})}),D=["top","right","bottom","left"],L=(0,s.memo)(function(e){var t=e.xScale,n=e.yScale,r=e.width,i=e.height,o={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return(0,w.jsx)(w.Fragment,{children:D.map(function(e){var s=o[e];if(!s)return null;var a="top"===e||"bottom"===e;return(0,w.jsx)(T,C({},s,{axis:a?"x":"y",x:"right"===e?r:0,y:"bottom"===e?i:0,scale:a?t:n,length:a?r:i,ticksPosition:"top"===e||"left"===e?"before":"after",truncateTickAt:s.truncateTickAt}),e)})})}),O=(0,s.memo)(function(e){var t=e.animatedProps,n=(0,l.Fg)();return(0,w.jsx)(c.q.line,C({},t,n.grid.line))}),R=(0,s.memo)(function(e){var t=e.lines,n=(0,a.tf)(),r=n.animate,i=n.config,o=(0,c.Yz)(t,{keys:function(e){return e.key},initial:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},from:function(e){return{opacity:0,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},enter:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},update:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},leave:{opacity:0},config:i,immediate:!r});return(0,w.jsx)("g",{children:o(function(e,t){return(0,s.createElement)(O,C({},t,{key:t.key,animatedProps:e}))})})}),F=(0,s.memo)(function(e){var t=e.width,n=e.height,r=e.xScale,i=e.yScale,o=e.xValues,a=e.yValues,l=(0,s.useMemo)(function(){return!!r&&M({width:t,height:n,scale:r,axis:"x",values:o})},[r,o,t,n]),u=(0,s.useMemo)(function(){return!!i&&M({width:t,height:n,scale:i,axis:"y",values:a})},[n,t,i,a]);return(0,w.jsxs)(w.Fragment,{children:[l&&(0,w.jsx)(R,{lines:l}),u&&(0,w.jsx)(R,{lines:u})]})}),z=function(e,t){var n,r,i=t.axis,o=t.scale,s=t.x,c=t.y,d=t.length,h=t.ticksPosition,f=t.tickValues,p=t.tickSize,m=void 0===p?E.tickSize:p,g=t.tickPadding,b=void 0===g?E.tickPadding:g,v=t.tickRotation,y=void 0===v?E.tickRotation:v,x=t.format,k=t.legend,w=t.legendPosition,C=void 0===w?E.legendPosition:w,A=t.legendOffset,M=void 0===A?E.legendOffset:A,S=t.theme,T=t.style,D=_({axis:i,scale:o,ticksPosition:h,tickValues:f,tickSize:m,tickPadding:b,tickRotation:y,engine:"canvas"}),L=D.ticks,O=D.textAlign,R=D.textBaseline;e.save(),e.translate(void 0===s?0:s,void 0===c?0:c);var F=(0,l.XN)(S.axis,T);e.textAlign=O,e.textBaseline=R,(0,u.Ay)(e,F.ticks.text);var z=null!=(n=F.domain.line.strokeWidth)?n:0;"string"!=typeof z&&z>0&&(e.lineWidth=z,e.lineCap="square",F.domain.line.stroke&&(e.strokeStyle=F.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo("x"===i?d:0,"x"===i?0:d),e.stroke());var I="function"==typeof x?x:function(e){return""+e},B=null!=(r=F.ticks.line.strokeWidth)?r:0,j="string"!=typeof B&&B>0;if(L.forEach(function(t){j&&(e.lineWidth=B,e.lineCap="square",F.ticks.line.stroke&&(e.strokeStyle=F.ticks.line.stroke),e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(t.x+t.lineX,t.y+t.lineY),e.stroke());var n=I(t.value);e.save(),e.translate(t.x+t.textX,t.y+t.textY),e.rotate((0,a.Ht)(y)),(0,u.MC)(e,F.ticks.text,""+n),e.fillText(""+n,0,0),e.restore()}),void 0!==k){var N=0,P=0,H=0,W="center";"y"===i?(H=-90,N=M,"start"===C?(W="start",P=d):"middle"===C?(W="center",P=d/2):"end"===C&&(W="end")):(P=M,"start"===C?W="start":"middle"===C?(W="center",N=d/2):"end"===C&&(W="end",N=d)),e.translate(N,P),e.rotate((0,a.Ht)(H)),(0,u.Ay)(e,F.legend.text),F.legend.text.fill&&(e.fillStyle=F.legend.text.fill),e.textAlign=W,e.textBaseline="middle",(0,u.MC)(e,F.legend.text,k)}e.restore()},I=function(e,t){var n=t.xScale,r=t.yScale,i=t.width,o=t.height,s=t.top,a=t.right,l=t.bottom,u=t.left,c=t.theme,d={top:s,right:a,bottom:l,left:u};D.forEach(function(t){var s=d[t];if(!s)return null;var a="top"===t||"bottom"===t,l=a?n:r,u=A(s.format,l);z(e,C({},s,{axis:a?"x":"y",x:"right"===t?i:0,y:"bottom"===t?o:0,scale:l,format:u,length:a?i:o,ticksPosition:"top"===t||"left"===t?"before":"after",theme:c}))})},B=function(e,t){M({width:t.width,height:t.height,scale:t.scale,axis:t.axis,values:t.values}
1).forEach(function(t){e.beginPath(),e.moveTo(t.x1,t.y1),e.lineTo(t.x2,t.y2),e.stroke()})}},38722:function(e,t,n){"use strict";n.d(t,{jM:function(){return ez}});var r=n(2784),i=n(50685),o=n(64565),s=n(65352),a=n(90882),l=n(80537),u=n(17620),c=n(91265),d=n(52322);function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var f={dotSize:4,noteWidth:120,noteTextOffset:8},p=function(e){var t=typeof e;return(0,r.isValidElement)(e)||"string"===t||"function"===t||"object"===t},m=function(e){var t=typeof e;return"string"===t||"function"===t},g=function(e){return"circle"===e.type},b=function(e){return"dot"===e.type},v=function(e){return"rect"===e.type},y=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return n.reduce(function(e,n){var o=n.offset||0;return[].concat(e,a(t,n.match).map(function(e){var t=r(e),s=i(e);return(g(n)||v(n))&&(s.size=s.size+2*o,s.width=s.width+2*o,s.height=s.height+2*o),h({},u(n,["match","offset"]),t,s,{size:n.size||s.size,datum:e})}))},[])},x=function(e,t,n,r){var i=Math.atan2(r-t,n-e);return(0,o.f)((0,o.vi)(i))},k=function(e){var t,n,r=e.x,i=e.y,s=e.noteX,a=e.noteY,u=e.noteWidth,c=void 0===u?f.noteWidth:u,d=e.noteTextOffset,h=void 0===d?f.noteTextOffset:d;if(l(s))t=r+s;else{if(void 0===s.abs)throw Error("noteX should be either a number or an object containing an 'abs' property");t=s.abs}if(l(a))n=i+a;else{if(void 0===a.abs)throw Error("noteY should be either a number or an object containing an 'abs' property");n=a.abs}var p=r,m=i,b=x(r,i,t,n);if(g(e)){var y=(0,o.re)((0,o.Ht)(b),e.size/2);p+=y.x,m+=y.y}if(v(e)){var k=Math.round((b+90)/45)%8;0===k&&(m-=e.height/2),1===k&&(p+=e.width/2,m-=e.height/2),2===k&&(p+=e.width/2),3===k&&(p+=e.width/2,m+=e.height/2),4===k&&(m+=e.height/2),5===k&&(p-=e.width/2,m+=e.height/2),6===k&&(p-=e.width/2),7===k&&(p-=e.width/2,m-=e.height/2)}var w=t,C=t;return(b+90)%360>180?(w-=c,C-=c):C+=c,{points:[[p,m],[t,n],[C,n]],text:[w,n-h],angle:b+90}},w=function(e){var t=e.data,n=e.annotations,i=e.getPosition,o=e.getDimensions;return(0,r.useMemo)(function(){return y({data:t,annotations:n,getPosition:i,getDimensions:o})},[t,n,i,o])},C=function(e){var t=e.annotations;return(0,r.useMemo)(function(){return t.map(function(e){return h({},e,{computed:k(h({},e))})})},[t])},_=function(e){var t=e.datum,n=e.x,i=e.y,a=e.note,l=(0,c.Fg)(),f=(0,o.tf)(),p=f.animate,m=f.config,g=(0,s.q_)({x:n,y:i,config:m,immediate:!p});return"function"==typeof a?(0,r.createElement)(a,{x:n,y:i,datum:t}):(0,d.jsxs)(d.Fragment,{children:[l.annotations.text.outlineWidth>0&&(0,d.jsx)(s.q.text,{x:g.x,y:g.y,style:h({},l.annotations.text,{strokeLinejoin:"round",strokeWidth:2*l.annotations.text.outlineWidth,stroke:l.annotations.text.outlineColor}),children:a}),(0,d.jsx)(s.q.text,{x:g.x,y:g.y,style:u(l.annotations.text,["outlineWidth","outlineColor"]),children:a})]})},A=function(e){var t=e.points,n=e.isOutline,i=void 0!==n&&n,a=(0,c.Fg)(),l=(0,r.useMemo)(function(){var e=t[0];return t.slice(1).reduce(function(e,t){return e+" L"+t[0]+","+t[1]},"M"+e[0]+","+e[1])},[t]),u=(0,o.NS)(l);if(i&&a.annotations.link.outlineWidth<=0)return null;var f=h({},a.annotations.link);return i&&(f.strokeLinecap="square",f.strokeWidth=a.annotations.link.strokeWidth+2*a.annotations.link.outlineWidth,f.stroke=a.annotations.link.outlineColor,f.opacity=a.annotations.link.outlineOpacity),(0,d.jsx)(s.q.path,{fill:"none",d:u,style:f})},M=function(e){var t=e.x,n=e.y,r=e.size,i=(0,c.Fg)(),a=(0,o.tf)(),l=a.animate,u=a.config,f=(0,s.q_)({x:t,y:n,radius:r/2,config:u,immediate:!l});return(0,d.jsxs)(d.Fragment,{children:[i.annotations.outline.outlineWidth>0&&(0,d.jsx)(s.q.circle,{cx:f.x,cy:f.y,r:f.radius,style:h({},i.annotations.outline,{fill:"none",strokeWidth:i.annotations.outline.strokeWidth+2*i.annotations.outline.outlineWidth,stroke:i.annotations.outline.outlineColor,opacity:i.annotations.outline.outlineOpacity})}),(0,d.jsx)(s.q.circle,{cx:f.x,cy:f.y,r:f.radius,style:i.annotations.outline})]})},S=function(e){var t=e.x,n=e.y,r=e.size,i=void 0===r?f.dotSize:r,a=(0,c.Fg)(),l=(0,o.tf)(),u=l.animate,p=l.config,m=(0,s.q_)({x:t,y:n,radius:i/2,config:p,immediate:!u});return(0,d.jsxs)(d.Fragment,{children:[a.annotations.outline.outlineWidth>
10&&(0,d.jsx)(s.q.circle,{cx:m.x,cy:m.y,r:m.radius,style:h({},a.annotations.outline,{fill:"none",strokeWidth:2*a.annotations.outline.outlineWidth,stroke:a.annotations.outline.outlineColor,opacity:a.annotations.outline.outlineOpacity})}),(0,d.jsx)(s.q.circle,{cx:m.x,cy:m.y,r:m.radius,style:a.annotations.symbol})]})},E=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=e.borderRadius,l=void 0===a?6:a,u=(0,c.Fg)(),f=(0,o.tf)(),p=f.animate,m=f.config,g=(0,s.q_)({x:t-r/2,y:n-i/2,width:r,height:i,config:m,immediate:!p});return(0,d.jsxs)(d.Fragment,{children:[u.annotations.outline.outlineWidth>0&&(0,d.jsx)(s.q.rect,{x:g.x,y:g.y,rx:l,ry:l,width:g.width,height:g.height,style:h({},u.annotations.outline,{fill:"none",strokeWidth:u.annotations.outline.strokeWidth+2*u.annotations.outline.outlineWidth,stroke:u.annotations.outline.outlineColor,opacity:u.annotations.outline.outlineOpacity})}),(0,d.jsx)(s.q.rect,{x:g.x,y:g.y,rx:l,ry:l,width:g.width,height:g.height,style:u.annotations.outline})]})},T=function(e){var t=e.datum,n=e.x,i=e.y,o=e.note,s=(0,r.useMemo)(function(){return k(e)},[e]);if(!p(o))throw Error("note should be a valid react element");return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(A,{points:s.points,isOutline:!0}),g(e)&&(0,d.jsx)(M,{x:n,y:i,size:e.size}),b(e)&&(0,d.jsx)(S,{x:n,y:i,size:e.size}),v(e)&&(0,d.jsx)(E,{x:n,y:i,width:e.width,height:e.height,borderRadius:e.borderRadius}),(0,d.jsx)(A,{points:s.points}),(0,d.jsx)(_,{datum:t,x:s.text[0],y:s.text[1],note:o})]})},D=function(e,t){t.forEach(function(t,n){var r=t[0],i=t[1];0===n?e.moveTo(r,i):e.lineTo(r,i)})},L=function(e,t){var n=t.annotations,r=t.theme;0!==n.length&&(e.save(),n.forEach(function(t){if(!m(t.note))throw Error("note is invalid for canvas implementation");r.annotations.link.outlineWidth>0&&(e.lineCap="square",e.strokeStyle=r.annotations.link.outlineColor,e.lineWidth=r.annotations.link.strokeWidth+2*r.annotations.link.outlineWidth,e.beginPath(),D(e,t.computed.points),e.stroke(),e.lineCap="butt"),g(t)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),b(t)&&r.annotations.symbol.outlineWidth>0&&(e.strokeStyle=r.annotations.symbol.outlineColor,e.lineWidth=2*r.annotations.symbol.outlineWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),v(t)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.rect(t.x-t.width/2,t.y-t.height/2,t.width,t.height),e.stroke()),e.strokeStyle=r.annotations.link.stroke,e.lineWidth=r.annotations.link.strokeWidth,e.beginPath(),D(e,t.computed.points),e.stroke(),g(t)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),b(t)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.fill()),v(t)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.rect(t.x-t.width/2,t.y-t.height/2,t.width,t.height),e.stroke()),"function"==typeof t.note?t.note(e,{datum:t.datum,x:t.computed.text[0],y:t.computed.text[1],theme:r}):(e.font=r.annotations.text.fontSize+"px "+r.annotations.text.fontFamily,e.textAlign="left",e.textBaseline="alphabetic",e.fillStyle=r.annotations.text.fill,e.strokeStyle=r.annotations.text.outlineColor,e.lineWidth=2*r.annotations.text.outlineWidth,r.annotations.text.outlineWidth>0&&(e.lineJoin="round",e.strokeText(t.note,t.computed.text[0],t.computed.text[1]),e.lineJoin="miter"),e.fillText(t.note,t.computed.text[0],t.computed.text[1]))}),e.restore())},O=n(63670),R=n(95555),F=n(18586),z=n(35824),I=function(e,t,n,r,i,o){o>0?(e.moveTo(t+o,n),e.lineTo(t+r-o,n),e.quadraticCurveTo(t+r,n,t+r,n+o),e.lineTo(t+r,n+i-o),e.quadraticCurveTo(t+r,n+i,t+r-o,n+i),e.lineTo(t+o,n+i),e.quadraticCurveTo(t,n+i,t,n+i-o),e.lineTo(t,n+o),e.quadraticCurveTo(t,n,t+o,n),e.closePath()):e.rect(t,n,r,i)}
1,B=n(83013),j=n(16426),N=n(6677),P=n(13236),H=n(91233);function W(e,t){return e[t]}function $(e){let t=[];return t.key=e,t}var Z=n(84684),q=n(84636);function U(){return(U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}function V(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var Y,G=function(e){var t=w({data:e.bars,annotations:e.annotations,getPosition:function(e){return{x:e.x+e.width/2,y:e.y+e.height/2}},getDimensions:function(e){var t=e.height,n=e.width;return{width:n,height:t,size:Math.max(n,t)}}});return(0,d.jsx)(d.Fragment,{children:t.map(function(e,t){return(0,d.jsx)(T,U({},e),t)})})},J=function(e){var t=e.width,n=e.height,r=e.legends,i=e.toggleSerie;return(0,d.jsx)(d.Fragment,{children:r.map(function(e,r){var o,s=e[0],a=e[1];return(0,d.jsx)(O.$6,U({},s,{containerWidth:t,containerHeight:n,data:null!=(o=s.data)?o:a,toggleSerie:s.toggleSerie&&"keys"===s.dataFrom?i:void 0}),r)})})},X=["data"],K=["color","label"],Q={indexBy:"id",keys:["value"],groupMode:"stacked",layout:"vertical",valueScale:{type:"linear",nice:!0,round:!1},indexScale:{type:"band",round:!1},padding:.1,innerPadding:0,enableGridX:!1,enableGridY:!0,enableLabel:!0,label:"formattedValue",labelPosition:"middle",labelOffset:0,labelSkipWidth:0,labelSkipHeight:0,labelTextColor:{theme:"labels.text.fill"},colorBy:"id",colors:{scheme:"nivo"},borderRadius:0,borderWidth:0,borderColor:{from:"color"},isInteractive:!0,tooltip:function(e){var t=e.color,n=e.label,r=V(e,K);return(0,d.jsx)(F._5,{id:n,value:r.formattedValue,enableChip:!0,color:t})},tooltipLabel:function(e){return e.id+" - "+e.indexValue},legends:[],initialHiddenIds:[],annotations:[],enableTotals:!1,totalsOffset:10},ee=U({},Q,{layers:["grid","axes","bars","totals","markers","legends","annotations"],axisTop:null,axisRight:null,axisBottom:{},axisLeft:{},barComponent:function(e){var t,n=e.bar,i=n.data,o=V(n,X),a=e.style,l=a.borderColor,u=a.color,h=a.height,f=a.labelColor,p=a.labelOpacity,m=a.labelX,g=a.labelY,b=a.transform,v=a.width,y=a.textAnchor,x=e.borderRadius,k=e.borderWidth,w=e.label,C=e.shouldRenderLabel,_=e.isInteractive,A=e.onClick,M=e.onMouseEnter,S=e.onMouseLeave,E=e.tooltip,T=e.isFocusable,D=e.ariaLabel,L=e.ariaLabelledBy,O=e.ariaDescribedBy,R=e.ariaDisabled,I=e.ariaHidden,B=(0,c.Fg)(),j=(0,F.lL)(),N=j.showTooltipFromEvent,P=j.showTooltipAt,H=j.hideTooltip,W=(0,r.useMemo)(function(){return function(){return(0,r.createElement)(E,U({},o,i))}},[E,o,i]),$=(0,r.useCallback)(function(e){null==A||A(U({color:o.color},i),e)},[o,i,A]),Z=(0,r.useCallback)(function(e){return N(W(),e)},[N,W]),q=(0,r.useCallback)(function(e){null==M||M(i,e),N(W(),e)},[i,M,N,W]),Y=(0,r.useCallback)(function(e){null==S||S(i,e),H()},[i,H,S]),G=(0,r.useCallback)(function(){P(W(),[o.absX+o.width/2,o.absY])},[P,W,o]),J=(0,r.useCallback)(function(){H()},[H]);return(0,d.jsxs)(s.q.g,{transform:b,children:[(0,d.jsx)(s.q.rect,{width:(0,s.to)(v,function(e){return Math.max(e,0)}),height:(0,s.to)(h,function(e){return Math.max(e,0)}),rx:x,ry:x,fill:null!=(t=i.fill)?t:u,strokeWidth:k,stroke:l,focusable:T,tabIndex:T?0:void 0,"aria-label":D?D(i):void 0,"aria-labelledby":L?L(i):void 0,"aria-describedby":O?O(i):void 0,"aria-disabled":R?R(i):void 0,"aria-hidden":I?I(i):void 0,onMouseEnter:_?q:void 0,onMouseMove:_?Z:void 0,onMouseLeave:_?Y:void 0,onClick:_?$:void 0,onFocus:_&&T?G:void 0,onBlur:_&&T?J:void 0,"data-testid":"bar.item."+i.id+"."+i.index}),C&&(0,d.jsx)(z.xv,{x:m,y:g,textAnchor:y,dominantBaseline:"central",fillOpacity:p,style:U({},B.labels.text,{pointerEvents:"none",fill:f}),children:w})]})}
1,defs:[],fill:[],markers:[],animate:!0,animateOnMount:!1,motionConfig:"default",role:"img",isFocusable:!1}),et=U({},Q,{layers:["grid","axes","bars","totals","legends","annotations"],axisTop:null,axisRight:null,axisBottom:{},axisLeft:{},renderBar:function(e,t){var n=t.bar,r=n.color,i=n.height,o=n.width,s=n.x,a=n.y,l=t.borderColor,u=t.borderRadius,c=t.borderWidth,d=t.label,h=t.shouldRenderLabel,f=t.labelStyle,p=t.labelX,m=t.labelY,g=t.textAnchor;e.fillStyle=r,c>0&&(e.strokeStyle=l,e.lineWidth=c),e.beginPath(),I(e,s,a,o,i,Math.min(u,i)),e.fill(),c>0&&e.stroke(),h&&(e.textBaseline="middle",e.textAlign="middle"===g?"center":g,(0,z.MC)(e,f,d,s+p,a+m))},pixelRatio:"undefined"!=typeof window&&null!=(Y=window.devicePixelRatio)?Y:1}),en=function(e,t,n,r,i,o){return(0,B.ZN)(r,{all:e.map(t),min:0,max:0},i,o).padding(n)},er=function(e,t){return e.map(function(e){return U({},t.reduce(function(e,t){return e[t]=null,e},{}),e)})},ei=function(e){return Object.keys(e).reduce(function(t,n){return e[n]&&(t[n]=e[n]),t},{})},eo=function(e){return[e,Number(e)]};function es(e,t,n,r){return void 0===e&&(e=Q.layout),void 0===n&&(n=Q.labelPosition),void 0===r&&(r=Q.labelOffset),function(i,o){var s=r*(t?-1:1);if("horizontal"===e){var a=i/2;return"start"===n?a=t?i:0:"end"===n&&(a=t?0:i),{labelX:a+s,labelY:o/2,textAnchor:"middle"===n?"middle":t?"end":"start"}}var l=o/2;return"start"===n?l=t?0:o:"end"===n&&(l=t?o:0),{labelX:i/2,labelY:l-s,textAnchor:"middle"}}}var ea=["layout","width","height","padding","innerPadding","valueScale","indexScale","hiddenIds"],el=function(e,t){return e>t},eu=function(e,t){return e<t},ec=function(e,t){return Array.from(" ".repeat(t-e),function(t,n){return e+n})},ed=function(e){return el(e,0)?0:e},eh=function(e,t,n,r){var i=e.data,o=e.formatValue,s=e.getColor,a=e.getIndex,l=e.getTooltipLabel,u=e.innerPadding,c=void 0===u?0:u,d=e.keys,h=e.xScale,f=e.yScale,p=e.margin,m=n?eu:el,g=i.map(ei),b=[];return d.forEach(function(e,n){return ec(0,h.domain().length).forEach(function(u){var d,v,y,x=eo(i[u][e]),k=x[0],w=x[1],C=a(i[u]),_=(null!=(v=h(C))?v:0)+t*n+c*n,A=m(w,0)?null!=(y=f(w))?y:0:r,M=m(w,0)?r-A:(null!=(d=f(w))?d:0)-r,S={id:e,value:null===k?k:w,formattedValue:o(w),hidden:!1,index:u,indexValue:C,data:g[u]};b.push({key:e+"."+S.indexValue,index:b.length,data:S,x:_,y:A,absX:p.left+_,absY:p.top+A,width:t,height:M,color:s(S),label:l(S)})})}),b},ef=function(e,t,n,r){var i=e.data,o=e.formatValue,s=e.getIndex,a=e.getColor,l=e.getTooltipLabel,u=e.keys,c=e.innerPadding,d=void 0===c?0:c,h=e.xScale,f=e.yScale,p=e.margin,m=n?eu:el,g=i.map(ei),b=[];return u.forEach(function(e,n){return ec(0,f.domain().length).forEach(function(u){var c,v,y,x=eo(i[u][e]),k=x[0],w=x[1],C=s(i[u]),_=m(w,0)?r:null!=(y=h(w))?y:0,A=(null!=(v=f(C))?v:0)+t*n+d*n,M=m(w,0)?(null!=(c=h(w))?c:0)-r:r-_,S={id:e,value:null===k?k:w,formattedValue:o(w),hidden:!1,index:u,indexValue:C,data:g[u]};b.push({key:e+"."+S.indexValue,index:b.length,data:S,x:_,y:A,absX:p.left+_,absY:p.top+A,width:M,height:t,color:a(S),label:l(S)})})}),b},ep=function(e){var t,n,r,i=e.layout,o=e.width,s=e.height,a=e.padding,l=e.innerPadding,u=void 0===l?0:l,c=e.valueScale,d=e.indexScale,h=e.hiddenIds,f=void 0===h?[]:h,p=V(e,ea),m=p.keys.filter(function(e){return!f.includes(e)}),g=er(p.data,m),b="vertical"===i?["y","x",o]:["x","y",s],v=b[0],y=b[1],x=b[2],k=en(g,p.getIndex,void 0===a?0:a,d,x,y),w="auto"===c.min?ed:function(e){return e},C=g.reduce(function(e,t){return[].concat(e,m.map(function(e){return t[e]}))},[]).filter(Boolean),_=w(Math.min.apply(Math,C)),A=isFinite(r=Math.max.apply(Math,C))?r:0,M=(0,B.ZN)(c,{all:C,min:_,max:A},"x"===v?o:s,v),S="vertical"===i?[k,M]:[M,k],E=S[0],T=S[1],D=(k.bandwidth()-u*(m.length-1))/m.length,L=[U({},p,{data:g,keys:m,innerPadding:u,xScale:E,yScale:T}),D,null!=(t=c.reverse)&&t,null!=(n=M(0))?n:0];return{xScale:E,yScale:T,bars:D>0?"vertical"===i?eh.apply(void 0,L):ef.apply(void 0,L):[]}},em=["data","layout","width","height","padding","valueScale","indexScale","hiddenIds"],eg=function(e){var t;return e.some(Array.isArray)?eg((t=[]).concat.apply(t,e)):e},eb=function(e,t,n){var r=e.formatValue,i=e.getColor,o=e.getIndex,s=e.getTooltipLabel,a=e.innerPadding,l=e.stackedData,u=e.xScale,c=e.yScale,d=e.margin,h=[];
1return l.forEach(function(e){return u.domain().forEach(function(l,f){var p,m,g,b=e[f],v=null!=(m=u(o(b.data)))?m:0,y=(null!=(g=c(b[n?0:1]))?g:0)+.5*a,x=(null!=(p=c(b[n?1:0]))?p:0)-y-a,k=eo(b.data[e.key]),w=k[0],C=k[1],_={id:e.key,value:null===w?w:C,formattedValue:r(C),hidden:!1,index:f,indexValue:l,data:ei(b.data)};h.push({key:e.key+"."+l,index:h.length,data:_,x:v,y:y,absX:d.left+v,absY:d.top+y,width:t,height:x,color:i(_),label:s(_)})})}),h},ev=function(e,t,n){var r=e.formatValue,i=e.getColor,o=e.getIndex,s=e.getTooltipLabel,a=e.innerPadding,l=e.stackedData,u=e.xScale,c=e.yScale,d=e.margin,h=[];return l.forEach(function(e){return c.domain().forEach(function(l,f){var p,m,g,b=e[f],v=null!=(m=c(o(b.data)))?m:0,y=(null!=(g=u(b[n?1:0]))?g:0)+.5*a,x=(null!=(p=u(b[n?0:1]))?p:0)-y-a,k=eo(b.data[e.key]),w=k[0],C=k[1],_={id:e.key,value:null===w?w:C,formattedValue:r(C),hidden:!1,index:f,indexValue:l,data:ei(b.data)};h.push({key:e.key+"."+l,index:h.length,data:_,x:y,y:v,absX:d.left+y,absY:d.top+v,width:x,height:t,color:i(_),label:s(_)})})}),h},ey=function(e){var t,n,r=e.data,i=e.layout,o=e.width,s=e.height,a=e.padding,l=e.valueScale,u=e.indexScale,c=e.hiddenIds,d=void 0===c?[]:c,h=V(e,em),f=h.keys.filter(function(e){return!d.includes(e)}),p=(function(){var e=(0,N.Z)([]),t=H.Z,n=P.Z,r=W;function i(i){var o,s,a=Array.from(e.apply(this,arguments),$),l=a.length,u=-1;for(let e of i)for(o=0,++u;o<l;++o)(a[o][u]=[0,+r(e,a[o].key,u,i)]).data=e;for(o=0,s=(0,j.Z)(t(a));o<l;++o)a[s[o]].index=o;return n(a,s),a}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:(0,N.Z)(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:(0,N.Z)(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?H.Z:"function"==typeof e?e:(0,N.Z)(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?P.Z:e,i):n},i})().keys(f).offset(Z.Z)(er(r,f)),m="vertical"===i?["y","x",o]:["x","y",s],g=m[0],b=m[1],v=m[2],y=en(r,h.getIndex,void 0===a?0:a,u,v,b),x=(n=eg(p),"log"===l.type?n.filter(function(e){return 0!==e}):n),k=Math.min.apply(Math,x),w=Math.max.apply(Math,x),C=(0,B.ZN)(l,{all:x,min:k,max:w},"x"===g?o:s,g),_="vertical"===i?[y,C]:[C,y],A=_[0],M=_[1],S=h.innerPadding>0?h.innerPadding:0,E=y.bandwidth(),T=[U({},h,{innerPadding:S,stackedData:p,xScale:A,yScale:M}),E,null!=(t=l.reverse)&&t];return{xScale:A,yScale:M,bars:E>0?"vertical"===i?eb.apply(void 0,T):ev.apply(void 0,T):[]}},ex=function(e){var t,n,r=e.bars,i=e.direction,s=e.from,a=e.groupMode,l=e.layout,u=e.legendLabel,c=e.reverse,d=(0,o.Xc)(null!=u?u:"indexes"===s?"indexValue":"id");return"indexes"===s?(t=q(r.map(function(e){var t,n;return{id:null!=(t=e.data.indexValue)?t:"",label:d(e.data),hidden:e.data.hidden,color:null!=(n=e.color)?n:"#000"}}),function(e){return e.id}),"horizontal"===l&&t.reverse(),t):(n=q(r.map(function(e){var t;return{id:e.data.id,label:d(e.data),hidden:e.data.hidden,color:null!=(t=e.color)?t:"#000"}}),function(e){return e.id}),("vertical"===l&&"stacked"===a&&"column"===i&&!0!==c||"horizontal"===l&&"stacked"===a&&!0===c)&&n.reverse(),n)},ek=function(e,t,n){var r=e.get(t)||0;e.set(t,r+n)},ew=function(e,t,n){var r=e.get(t)||0;e.set(t,r+(n>0?n:0))},eC=function(e,t,n){var r=e.get(t)||0;e.set(t,Math.max(r,Number(n)))},e_=function(e,t){var n=e.get(t)||0;e.set(t,n+1)},eA=function(e){var t,n=e.indexBy,i=void 0===n?Q.indexBy:n,s=e.keys,a=void 0===s?Q.keys:s,l=e.label,u=void 0===l?Q.label:l,d=e.tooltipLabel,h=void 0===d?Q.tooltipLabel:d,f=e.valueFormat,p=e.colors,m=void 0===p?Q.colors:p,g=e.colorBy,b=void 0===g?Q.colorBy:g,v=e.borderColor,y=void 0===v?Q.borderColor:v,x=e.labelTextColor,k=void 0===x?Q.labelTextColor:x,w=e.groupMode,C=void 0===w?Q.groupMode:w,_=e.layout,A=void 0===_?Q.layout:_,M=e.data,S=e.margin,E=e.width,T=e.height,D=e.padding,L=void 0===D?Q.padding:D,O=e.innerPadding,F=void 0===O?Q.innerPadding:O,z=e.valueScale,I=void 0===z?Q.valueScale:z,B=e.indexScale,j=void 0===B?Q.indexScale:B,N=e.initialHiddenIds,P=void 0===N?Q.initialHiddenIds:N,H=e.enableLabel,W=void 0===H?Q.enableLabel:H,$=e.labelSkipWidth,Z=void 0===$?Q.labelSkipWidth:$,q=e.labelSkipHeight,V=void 0===q?Q.labelSkipHeight:q,Y=e.legends,G=void 0===Y?Q.legends:Y,J=e.legendLabel,X=e.totalsOffset,K=void 0===X?Q.totalsOffset:X,ee=(0,r.useState)(null!=P?P:[]),et=ee[0],en=ee[1],er=(0,r.useCallback)(function(e){en(function(t){return t.indexOf(e)>-1?t.filter(function(t){return t!==e}):[].concat(t,[e])})},[]),ei=(0,o.LR)(i),eo=(0,o.LR)(u),es=(0,o.LR)(h),ea=(0,o.O_)(f),el=(0,c.Fg)(),eu=(0,R.U)(m,b),ec=(0,R.Bf)(y,el),ed=(0,R.Bf)(k,el),eh=("grouped"===C?ep:ey)({layout:A,data:M,getIndex:ei,keys:a,width:E,height:T,getColor:eu,padding:L,innerPadding:F,valueScale:I,indexScale:j,hiddenIds:et,formatValue:ea,getTooltipLabel:es,margin:S}),ef=eh.bars,em=eh.xScale,eg=eh.yScale,eb=(0,r.useMemo)(function(){return ef.filter(function(e){return null!==e.data.value}).map(function(e,t){return U({},e,{index:t})})}
1,[ef]),ev=(0,r.useCallback)(function(e){var t=e.width,n=e.height;return!!W&&!(Z>0&&t<Z)&&!(V>0&&n<V)},[W,Z,V]),eA=(0,r.useMemo)(function(){return a.map(function(e){var t=ef.find(function(t){return t.data.id===e});return U({},t,{data:U({id:e},null==t?void 0:t.data,{hidden:et.includes(e)})})})},[et,a,ef]),eM=null!=(t=I.reverse)&&t,eS=(0,r.useMemo)(function(){return G.map(function(e){return[e,ex({bars:"keys"===e.dataFrom?eA:ef,direction:e.direction,from:e.dataFrom,groupMode:C,layout:A,legendLabel:J,reverse:eM})]})},[G,eA,ef,C,A,J,eM]),eE=(0,r.useMemo)(function(){return function(e,t,n,r,i,o,s){void 0===r&&(r=Q.layout),void 0===i&&(i=Q.groupMode);var a=[];if(0===e.length)return a;var l=new Map,u=e[0].width,c=e[0].height;if("stacked"===i){var d=new Map;e.forEach(function(e){var t=e.data,n=t.indexValue,r=t.value;ek(l,n,Number(r)),ew(d,n,Number(r))}),d.forEach(function(e,i){var d,h,f,p=l.get(i)||0;"vertical"===r?(d=t(i),h=n(e),f=n(e/2)):(d=t(e),h=n(i),f=t(e/2)),d+="vertical"===r?u/2:o,h+="vertical"===r?-o:c/2,a.push({key:"total_"+i,x:d,y:h,value:p,formattedValue:s(p),animationOffset:f})})}else if("grouped"===i){var h=new Map,f=new Map;e.forEach(function(e){var t=e.data,n=t.indexValue,r=t.value;ek(l,n,Number(r)),eC(h,n,Number(r)),e_(f,n)}),h.forEach(function(e,i){var d,h,p,m=l.get(i)||0,g=f.get(i);"vertical"===r?(d=t(i),h=n(e),p=n(e/2)):(d=t(e),h=n(i),p=t(e/2)),d+="vertical"===r?g*u/2:o,h+="vertical"===r?-o:g*c/2,a.push({key:"total_"+i,x:d,y:h,value:m,formattedValue:s(m),animationOffset:p})})}return a}(ef,em,eg,A,C,K,ea)},[ef,em,eg,A,C,K,ea]);return{bars:ef,barsWithValue:eb,xScale:em,yScale:eg,getIndex:ei,getLabel:eo,getTooltipLabel:es,formatValue:ea,getColor:eu,getBorderColor:ec,getLabelColor:ed,shouldRenderBarLabel:ev,hiddenIds:et,toggleSerie:er,legendsWithData:eS,barTotals:eE}},eM=function(e){var t=e.data,n=e.springConfig,r=e.animate,i=e.layout,o=void 0===i?ee.layout:i,a=(0,c.Fg)();return(0,s.Yz)(t,{keys:function(e){return e.key},from:function(e){return{x:"vertical"===o?e.x:e.animationOffset,y:"vertical"===o?e.animationOffset:e.y,labelOpacity:0}},enter:function(e){return{x:e.x,y:e.y,labelOpacity:1}},update:function(e){return{x:e.x,y:e.y,labelOpacity:1}},leave:function(e){return{x:"vertical"===o?e.x:e.animationOffset,y:"vertical"===o?e.animationOffset:e.y,labelOpacity:0}},config:n,immediate:!r,initial:r?void 0:null})(function(e,t){return(0,d.jsx)(s.q.text,{x:e.x,y:e.y,fillOpacity:e.labelOpacity,style:U({},a.labels.text,{pointerEvents:"none"}),fontWeight:"bold",fontSize:a.labels.text.fontSize,fontFamily:a.labels.text.fontFamily,textAnchor:"vertical"===o?"middle":"start",alignmentBaseline:"vertical"===o?"alphabetic":"middle",children:t.formattedValue},t.key)})},eS=["isInteractive","animate","motionConfig","theme","renderWrapper"],eE=function(e){var t,n=e.data,a=e.indexBy,l=e.keys,u=e.margin,c=e.width,h=e.height,f=e.groupMode,p=e.layout,m=e.valueScale,g=e.indexScale,b=e.padding,v=e.innerPadding,y=e.axisTop,x=e.axisRight,k=e.axisBottom,w=void 0===k?ee.axisBottom:k,C=e.axisLeft,_=void 0===C?ee.axisLeft:C,A=e.enableGridX,M=void 0===A?ee.enableGridX:A,S=e.enableGridY,E=void 0===S?ee.enableGridY:S,T=e.gridXValues,D=e.gridYValues,L=e.layers,O=void 0===L?ee.layers:L,R=e.barComponent,F=void 0===R?ee.barComponent:R,z=e.enableLabel,I=void 0===z?ee.enableLabel:z,B=e.label,j=e.labelSkipWidth,N=void 0===j?ee.labelSkipWidth:j,P=e.labelSkipHeight,H=void 0===P?ee.labelSkipHeight:P,W=e.labelTextColor,$=e.labelPosition,Z=void 0===$?ee.labelPosition:$,q=e.labelOffset,V=void 0===q?ee.labelOffset:q,Y=e.markers,X=void 0===Y?ee.markers:Y,K=e.colorBy,Q=e.colors,et=e.defs,en=void 0===et?ee.defs:et,er=e.fill,ei=void 0===er?ee.fill:er,eo=e.borderRadius,ea=void 0===eo?ee.borderRadius:eo,el=e.borderWidth,eu=void 0===el?ee.borderWidth:el,ec=e.borderColor,ed=e.annotations,eh=void 0===ed?ee.annotations:ed,ef=e.legendLabel,ep=e.tooltipLabel,em=e.valueFormat,eg=e.isInteractive,eb=void 0===eg?ee.isInteractive:eg,ev=e.tooltip,ey=void 0===ev?ee.tooltip:ev,ex=e.onClick,ek=e.onMouseEnter,ew=e.onMouseLeave,eC=e.legends,e_=e.role,eS=void 0===e_?ee.role:e_,eE=e.ariaLabel,eT=e.ariaLabelledBy,eD=e.ariaDescribedBy,eL=e.isFocusable,eO=void 0===eL?ee.isFocusable:eL,eR=e.barAriaLabel,eF=e.barAriaLabelledBy,ez=e.barAriaDescribedBy,eI=e.barAriaHidden,eB=e.barAriaDisabled,ej=e.initialHiddenIds,eN=e.enableTotals,eP=void 0===eN?ee.enableTotals:eN,eH=e.totalsOffset,eW=void 0===eH?ee.totalsOffset:eH,e$=e.forwardedRef,eZ=(0,o.tf)(),eq=eZ.animate,eU=eZ.config,eV=(0,o.Bs)(c,h,u),eY=eV.outerWidth,eG=eV.outerHeight,eJ=eV.margin,eX=eV.innerWidth,eK=eV.innerHeight,eQ=eA({indexBy:a,label:B,tooltipLabel:ep,valueFormat:em,colors:Q,colorBy:K,borderColor:ec,labelTextColor:W,groupMode:f,layout:p,data:n,keys:l,margin:eJ,width:eX,height:eK,padding:b,innerPadding:v,valueScale:m,indexScale:g,enableLabel:I,labelSkipWidth:N,labelSkipHeight:H,legends:eC,legendLabel:ef,initialHiddenIds:ej,totalsOffset:eW}),e0=eQ.bars,e1=eQ.barsWithValue,e2=eQ.xScale,e3=eQ.yScale,e5=eQ.getLabel,e6=eQ.getTooltipLabel,e8=eQ.getBorderColor,e4=eQ.getLabelColor,e7=eQ.shouldRenderBarLabel,e9=eQ.toggleSerie,te=eQ.legendsWithData,tt
1=eQ.barTotals,tn=eQ.getColor,tr=es(p,null!=(t=null==m?void 0:m.reverse)&&t,Z,V),ti=(0,s.Yz)(e1,{keys:function(e){return e.key},from:function(e){return U({borderColor:e8(e),color:e.color,height:0,labelColor:e4(e),labelOpacity:0},tr(e.width,e.height),{transform:"translate("+e.x+", "+(e.y+e.height)+")",width:e.width},"vertical"===p?{}:{height:e.height,transform:"translate("+e.x+", "+e.y+")",width:0})},enter:function(e){return U({borderColor:e8(e),color:e.color,height:e.height,labelColor:e4(e),labelOpacity:1},tr(e.width,e.height),{transform:"translate("+e.x+", "+e.y+")",width:e.width})},update:function(e){return U({borderColor:e8(e),color:e.color,height:e.height,labelColor:e4(e),labelOpacity:1},tr(e.width,e.height),{transform:"translate("+e.x+", "+e.y+")",width:e.width})},leave:function(e){return U({borderColor:e8(e),color:e.color,height:0,labelColor:e4(e),labelOpacity:0},tr(e.width,e.height),{labelY:0,transform:"translate("+e.x+", "+(e.y+e.height)+")",width:e.width},"vertical"===p?{}:U({},tr(e.width,e.height),{labelX:0,height:e.height,transform:"translate("+e.x+", "+e.y+")",width:0}))},config:eU,immediate:!eq,initial:eq?void 0:null}),to=(0,r.useMemo)(function(){return{borderRadius:ea,borderWidth:eu,enableLabel:I,isInteractive:eb,labelSkipWidth:N,labelSkipHeight:H,onClick:ex,onMouseEnter:ek,onMouseLeave:ew,getTooltipLabel:e6,tooltip:ey,isFocusable:eO,ariaLabel:eR,ariaLabelledBy:eF,ariaDescribedBy:ez,ariaHidden:eI,ariaDisabled:eB}},[ea,eu,I,e6,eb,H,N,ex,ek,ew,ey,eO,eR,eF,ez,eI,eB]),ts=(0,o.yU)(en,e0,ei,{dataKey:"data",targetKey:"data.fill"}),ta={annotations:null,axes:null,bars:null,grid:null,legends:null,markers:null,totals:null};O.includes("annotations")&&(ta.annotations=(0,d.jsx)(G,{bars:e0,annotations:eh},"annotations")),O.includes("axes")&&(ta.axes=(0,d.jsx)(i.dk,{xScale:e2,yScale:e3,width:eX,height:eK,top:y,right:x,bottom:w,left:_},"axes")),O.includes("bars")&&(ta.bars=(0,d.jsx)(r.Fragment,{children:ti(function(e,t){return(0,r.createElement)(F,U({},to,{bar:t,style:e,shouldRenderLabel:e7(t),label:e5(t.data)}))})},"bars")),O.includes("grid")&&(ta.grid=(0,d.jsx)(i.rj,{width:eX,height:eK,xScale:M?e2:null,yScale:E?e3:null,xValues:T,yValues:D},"grid")),O.includes("legends")&&(ta.legends=(0,d.jsx)(J,{width:eX,height:eK,legends:te,toggleSerie:e9},"legends")),O.includes("markers")&&(ta.markers=(0,d.jsx)(o.TL,{markers:X,width:eX,height:eK,xScale:e2,yScale:e3},"markers")),O.includes("totals")&&eP&&(ta.totals=(0,d.jsx)(eM,{data:tt,springConfig:eU,animate:eq,layout:p},"totals"));var tl=U({},to,{margin:eJ,width:c,height:h,innerWidth:eX,innerHeight:eK,bars:e0,legendData:te,enableLabel:I,xScale:e2,yScale:e3,tooltip:ey,getTooltipLabel:e6,onClick:ex,onMouseEnter:ek,onMouseLeave:ew,getColor:tn});return(0,d.jsx)(o.tM,{width:eY,height:eG,margin:eJ,defs:ts,role:eS,ariaLabel:eE,ariaLabelledBy:eT,ariaDescribedBy:eD,isFocusable:eO,ref:e$,children:O.map(function(e,t){var n;return"function"==typeof e?(0,d.jsx)(r.Fragment,{children:(0,r.createElement)(e,tl)},t):null!=(n=null==ta?void 0:ta[e])?n:null})})},eT=(0,r.forwardRef)(function(e,t){var n=e.isInteractive,r=void 0===n?ee.isInteractive:n,i=e.animate,s=void 0===i?ee.animate:i,a=e.motionConfig,l=void 0===a?ee.motionConfig:a,u=e.theme,c=e.renderWrapper,h=V(e,eS);return(0,d.jsx)(o.W2,{animate:s,isInteractive:r,motionConfig:l,renderWrapper:c,theme:u,children:(0,d.jsx)(eE,U({},h,{isInteractive:r,forwardedRef:t}))})}),eD=["isInteractive","renderWrapper","theme"],eL=function(e,t,n,r){return e.find(function(e){return(0,o.zn)(e.x+t.left,e.y+t.top,e.width,e.height,n,r)})},eO=function(e){var t,n=e.data,s=e.indexBy,a=e.keys,l=e.margin,u=e.width,h=e.height,f=e.groupMode,p=e.layout,m=e.valueScale,g=e.indexScale,b=e.padding,v=e.innerPadding,y=e.axisTop,x=e.axisRight,k=e.axisBottom,_=void 0===k?et.axisBottom:k,A=e.axisLeft,M=void 0===A?et.axisLeft:A,S=e.enableGridX,E=void 0===S?et.enableGridX:S,T=e.enableGridY,D=void 0===T?et.enableGridY:T,R=e.gridXValues,I=e.gridYValues,B=e.labelPosition,j=void 0===B?et.labelPosition:B,N=e.labelOffset,P=void 0===N?et.labelOffset:N,H=e.layers,W=void 0===H?et.layers:H,$=e.renderBar,Z=void 0===$?et.renderBar:$,q=e.enableLabel,V=void 0===q?et.enableLabel:q,Y=e.label,G=e.labelSkipWidth,J=void 0===G?et.labelSkipWidth:G,X=e.labelSkipHeight,K=void 0===X?et.labelSkipHeight:X,Q=e.labelTextColor,ee=e.colorBy,en=e.colors,er=e.borderRadius,ei=void 0===er?et.borderRadius:er,eo=e.borderWidth,ea=void 0===eo?et.borderWidth:eo,el=e.borderColor,eu=e.annotations,ec=void 0===eu?et.annotations:eu,ed=e.legendLabel,eh=e.tooltipLabel,ef=e.valueFormat,ep=e.isInteractive,em=void 0===ep?et.isInteractive:ep,eg=e.tooltip,eb=void 0===eg?et.tooltip:eg,ev=e.onClick,ey=e.onMouseEnter,ex=e.onMouseLeave,ek=e.legends,ew=e.pixelRatio,eC=void 0===ew?et.pixelRatio:ew,e_=e.role,eM=e.forwardedRef,eS=e.enableTotals,eE=void 0===eS?et.enableTotals:eS,eT=e.totalsOffset,eD=void 0===eT?et.totalsOffset:eT,eO=(0,r.useRef)(null),eR=(0,c.Fg)(),eF=(0,o.Bs)(u,h,l),ez=eF.margin,eI=eF.innerWidth,eB=eF.innerHeight,ej=eF.outerWidth,eN=eF.outerHeight,eP=eA({indexBy:s,label:Y,tooltipLabel:eh,valueFormat:ef,colors:en,colorBy:ee,borderColor:el,labelTextColor:Q,groupMode:f,layout:p,data:n,keys:a,margin:ez,width:eI,height:eB,padding:b,innerPadding:v,valueScale:m,indexScale:g,enableLabel:V,labelSkipWidth:J,labelSkipHeight:K,legends:ek,legendLabel:ed,totalsOffset:eD}),eH=eP.bars,eW=eP.barsWithValue,e$=eP.xScale,eZ=eP.yScale,eq=eP.getLabel,eU=eP.getTooltipLabel,eV=eP.getBorderColor,eY=eP.getLabelColor,eG=eP.shouldRenderBarLabel,eJ=eP.legendsWithData,eX=eP.barTotals,eK=eP.getColor,eQ=(0,F.lL)(),e0=eQ.showTooltipFromEvent,e1=eQ.hideTooltip,e2=C({annotations:w({data:eH,annotations:ec,getPosition:function(e){return{x:e.x,y:e.y}}
1,getDimensions:function(e){var t=e.width,n=e.height;return{width:t,height:n,size:Math.max(t,n)}}})}),e3=(0,r.useMemo)(function(){return{borderRadius:ei,borderWidth:ea,isInteractive:em,isFocusable:!1,labelSkipWidth:J,labelSkipHeight:K,margin:ez,width:u,height:h,innerWidth:eI,innerHeight:eB,bars:eH,legendData:eJ,enableLabel:V,xScale:e$,yScale:eZ,tooltip:eb,getTooltipLabel:eU,onClick:ev,onMouseEnter:ey,onMouseLeave:ex,getColor:eK}},[ei,ea,em,J,K,ez,u,h,eI,eB,eH,eJ,V,e$,eZ,eb,eU,ev,ey,ex,eK]),e5=(0,o.O_)(ef),e6=es(p,null!=(t=null==m?void 0:m.reverse)&&t,j,P);(0,r.useEffect)(function(){if(eO.current){eO.current.width=ej*eC,eO.current.height=eN*eC;var e=eO.current.getContext("2d");e.scale(eC,eC),e.fillStyle=eR.background,e.fillRect(0,0,ej,eN),e.translate(ez.left,ez.top),W.forEach(function(t){var n;"grid"===t?"number"==typeof eR.grid.line.strokeWidth&&eR.grid.line.strokeWidth>0&&(e.lineWidth=eR.grid.line.strokeWidth,e.strokeStyle=eR.grid.line.stroke,E&&(0,i.FA)(e,{width:eI,height:eB,scale:e$,axis:"x",values:R}),D&&(0,i.FA)(e,{width:eI,height:eB,scale:eZ,axis:"y",values:I})):"axes"===t?(0,i.DZ)(e,{xScale:e$,yScale:eZ,width:eI,height:eB,top:y,right:x,bottom:_,left:M,theme:eR}):"bars"===t?((0,z.Ay)(e,eR.text),eW.forEach(function(t){Z(e,U({bar:t,borderColor:eV(t),borderRadius:ei,borderWidth:ea,label:eq(t.data),shouldRenderLabel:eG(t),labelStyle:U({},eR.labels.text,{fill:eY(t)}
1)},e6(t.width,t.height)))})):"legends"===t?eJ.forEach(function(t){var n=t[0],r=t[1];(0,O.as)(e,U({},n,{data:r,containerWidth:eI,containerHeight:eB,theme:eR}))}):"annotations"===t?L(e,{annotations:e2,theme:eR}):"totals"===t&&eE?(void 0===(n=p)&&(n=et.layout),(0,z.Ay)(e,eR.labels.text),e.textBaseline="vertical"===n?"alphabetic":"middle",e.textAlign="vertical"===n?"center":"start",eX.forEach(function(t){(0,z.MC)(e,eR.labels.text,t.formattedValue,t.x,t.y)})):"function"==typeof t&&t(e,e3)}),e.save()}},[_,M,x,y,eW,ei,ea,e2,E,D,eV,eq,eY,R,I,f,h,eB,eI,e3,W,p,eJ,ez.left,ez.top,eN,ej,eC,Z,e$,eZ,eG,eR,u,eX,eE,e5,e6]);var e8=(0,r.useCallback)(function(e){if(eH&&eO.current){var t=(0,o.P6)(eO.current,e),n=eL(eH,ez,t[0],t[1]);void 0!==n?(e0((0,r.createElement)(eb,U({},n.data,{color:n.color,label:n.label,value:Number(n.data.value)})),e),"mouseenter"===e.type&&(null==ey||ey(n.data,e))):e1()}},[e1,ez,ey,eH,e0,eb]),e4=(0,r.useCallback)(function(e){if(eH&&eO.current){e1();var t=(0,o.P6)(eO.current,e),n=eL(eH,ez,t[0],t[1]);n&&(null==ex||ex(n.data,e))}},[e1,ez,ex,eH]),e7=(0,r.useCallback)(function(e){if(eH&&eO.current){var t=(0,o.P6)(eO.current,e),n=eL(eH,ez,t[0],t[1]);void 0!==n&&(null==ev||ev(U({},n.data,{color:n.color}),e))}},[ez,ev,eH]);return(0,d.jsx)("canvas",{ref:(0,o.lq)(eO,eM),width:ej*eC,height:eN*eC,style:{width:ej,height:eN,cursor:em?"auto":"normal"},onMouseEnter:em?e8:void 0,onMouseMove:em?e8:void 0,onMouseLeave:em?e4:void 0,onClick:em?e7:void 0,role:e_})},eR=(0,r.forwardRef)(function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,s=V(e,eD);return(0,d.jsx)(o.W2,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:(0,d.jsx)(eO,U({},s,{isInteractive:n,forwardedRef:t}))})}),eF=["defaultWidth","defaultHeight","onResize","debounceResize"],ez=(0,r.forwardRef)(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,s=e.debounceResize,a=V(e,eF);return(0,d.jsx)(o.d,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:s,children:function(e){var n=e.width,r=e.height;return(0,d.jsx)(eT,U({},a,{width:n,height:r,ref:t}))}})}),eI=["defaultWidth","defaultHeight","onResize","debounceResize"];(0,r.forwardRef)(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,s=e.debounceResize,a=V(e,eI);return(0,d.jsx)(o.d,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:s,children:function(e){var n=e.width,r=e.height;return(0,d.jsx)(eR,U({},a,{width:n,height:r,ref:t}))}})})},95555:function(e,t,n){"use strict";n.d(t,{Bf:function(){return el},U:function(){return ec}});var r=n(21896),i=n(11969),o=n(39390),s=n(10554),a=n(71052),l=n(70502),u=n(80414),c=n(90555),d=n(60492),h=n(27122),f=n(35939),p=n(24544),m=n(52833),g=n(54012),b=n(43214),v=n(58992),y=n(83443),x=n(27294),k=n(57770),w=n(8658),C=n(69200),_=n(85608),A=n(62281),M=n(39337),S=n(76254),E=n(85304),T=n(84886),D=n(58054),L=n(1215),O=n(87439),R=n(2643),F=n(96791),z=n(21782),I=n(24619),B=n(11016),j=n(50278),N=n(48742),P=n(31137),H=n(18711),W=n(46432),$=n(57983),Z=n(2784),q=n(72579),U=n(97030),V=n(5141),Y=n(12169);function G(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}function J(){return(J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var X={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:r.Z,accent:i.Z,dark2:o.Z,paired:s.Z,pastel1:a.Z,pastel2:l.Z,set1:u.Z,set2:c.Z,set3:d.Z,tableau10:h.Z},K=Object.keys(X),Q={brown_blueGreen:f.r,purpleRed_green:p.r,pink_yellowGreen:m.r,purple_orange:g.r,red_blue:b.r,red_grey:v.r,red_yellow_blue:y.r,red_yellow_green:x.r,spectral:k.r},ee=Object.keys(Q),et={brown_blueGreen:f.Z,purpleRed_green:p.Z,pink_yellowGreen:m.Z,purple_orange:g.Z,red_blue:b.Z,red_grey:v.Z,red_yellow_blue:y.Z,red_yellow_green:x.Z,spectral:k.Z},en={blues:w.r,greens:C.r,greys:_.r,oranges:A.r,purples:M.r,reds:S.r,blue_green:E.r,blue_purple:T.r,green_blue:D.r,orange_red:L.r,purple_blue_green:O.r,purple_blue:R.r,purple_red:F.r,red_purple:z.r,yellow_green_blue:I.r,yellow_green:B.r,yellow_orange_brown:j.r,yellow_orange_red:N.r},er=Object.keys(en),ei={blues:w.Z,greens:C.Z,greys:_.Z,oranges:A.Z,purples:M.Z,reds:S.Z,turbo:function(e){return"rgb("+Math.max(0,Math.min(255,Math.round(34.61+(e=Math.max(0,Math.min(1,e)))*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-14825.05*e)))))))+", "+
1Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+707.56*e)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-6838.66*e)))))))+")"},viridis:P.ZP,inferno:P.yy,magma:P.uX,plasma:P.zD,cividis:function(e){return"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-(e=Math.max(0,Math.min(1,e)))*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-2710.57*e)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-67.37*e)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-2475.67*e)))))))+")"},warm:H.s7,cool:H.H7,cubehelixDefault:W.Z,blue_green:E.Z,blue_purple:T.Z,green_blue:D.Z,orange_red:L.Z,purple_blue_green:O.Z,purple_blue:R.Z,purple_red:F.Z,red_purple:z.Z,yellow_green_blue:I.Z,yellow_green:B.Z,yellow_orange_brown:j.Z,yellow_orange_red:N.Z},eo=J({},X,Q,en),es=(Object.keys(eo),{rainbow:H.ZP,sinebow:$.Z}),ea=(Object.keys(J({},et,ei,es)),function(e,t){if("function"==typeof e)return e;if(U(e)){if(void 0!==e.theme){if(void 0===t)throw Error("Unable to use color from theme as no theme was provided");var n=q(t,e.theme);if(void 0===n)throw Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if(void 0!==e.from){var r=function(t){return q(t,e.from)};if(Array.isArray(e.modifiers)){for(var i,o=[],s=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return G(e,void 0);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)?G(e,void 0):void 0}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e.modifiers);!(i=s()).done;)!function(){var e=i.value,t=e[0],n=e[1];if("brighter"===t)o.push(function(e){return e.brighter(n)});else if("darker"===t)o.push(function(e){return e.darker(n)});else{if("opacity"!==t)throw Error("Invalid color modifier: '"+t+"', must be one of: 'brighter', 'darker', 'opacity'");o.push(function(e){return e.opacity=n,e})}}();return 0===o.length?r:function(e){return o.reduce(function(e,t){return t(e)},(0,V.B8)(r(e))).toString()}}return r}throw Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}}),el=function(e,t){return(0,Z.useMemo)(function(){return ea(e,t)},[e,t])},eu=function(e,t){if("function"==typeof e)return e;var n="function"==typeof t?t:function(e){return q(e,t)};if(Array.isArray(e)){var r=(0,Y.Z)(e),i=function(e){return r(n(e))};return i.scale=r,i}if(U(e)){if(void 0!==e.datum)return function(t){return q(t,e.datum)};if(void 0!==e.scheme){if(o=e.scheme,K.includes(o)){var o,s,a,l=(0,Y.Z)(eo[e.scheme]),u=function(e){return l(n(e))};return u.scale=l,u}if(s=e.scheme,ee.includes(s)){if(void 0!==e.size&&(e.size<3||e.size>11))throw Error("Invalid size '"+e.size+"' for diverging color scheme '"+e.scheme+"', must be between 3~11");var c=(0,Y.Z)(eo[e.scheme][e.size||11]),d=function(e){return c(n(e))};return d.scale=c,d}if(a=e.scheme,er.includes(a)){if(void 0!==e.size&&(e.size<3||e.size>9))throw Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var h=(0,Y.Z)(eo[e.scheme][e.size||9]),f=function(e){return h(n(e))};return f.scale=h,f}}throw Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},ec=function(e,t){return(0,Z.useMemo)(function(){return eu(e,t)},[e,t])}},64565:function(e,t,n){"use strict";let r;n.d(t,{TL:function(){return tb},W2:function(){return eQ},F_:function(){return tm},d:function(){return e2},tM:function(){return tf},yU:function(){return tz},Bg:function(){return tk},KF:function(){return tw},Ht:function(){return te},_O:function(){return tD},Sp:function(){return tT},ji:function(){return tM},Xc:function(){return tS},P6:function(){return tO},zn:function(){return tL},lq:function(){return tI},Vp:function(){return tn},f:function(){return ti},re:function(){return tr},vi:function(){return tt},a6:function(){return to},NS:function(){return tv},Bs:function(){return tC},xE:function(){return t_},tf:function(){return eJ},LR:function(){return tE},O_:function(){return tA}});var i,o,s,a=n(2784),l=n(18586),u=n(91265),c=n(85505),d=n(65352),h=n(52322);"undefined"!=typeof window?r=window:"undefined"!=typeof self?r=self:r=n.g;let f=null,p=null,m=r.clearTimeout,g=r.setTimeout,b=r.cancelAnimationFrame||r.mozCancelAnimationFrame||r.webkitCancelAnimationFrame,v=r.requestAnimationFrame||r.mozRequestAnimationFrame||r.webkitRequestAnimationFrame;null==b||null==v?(f=m,p=function(e){return g(e,20)}):(f=function([e,t]){b(e),m(t)},p=function(e){let t=v(function(){m(n),e()}),n=g(function(){b(t),e()},20);return[t,n]});class y extends a.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._didLogDeprecationWarning=!1,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;let{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){let r=window.getComputedStyle(this._parentNode)||{},i=parseFloat(r.paddingLeft||"0"),o=parseFloat(r.paddingRight||"0"),s=parseFloat(r.paddingTop||"0"),a=parseFloat(r.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),u=l.height-s-a,c=l.width-i-o;if(!e&&this.state.height!==u||!t&&this.state.width!==c){this.setState({height:u,width:c});let e=()=>{this._didLogDeprecationWarning||(this._didLogDeprecationWarning=!0,console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"))};"function"==typeof n&&n({height:u,width:c,get scaledHeight(){return e(),u},get scaledWidth(){return e(),c}})}}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){let{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;let n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(t)):(this._detectElementResize=function(e){let t,n,i,o,s,a,l;let u="undefined"!=typeof document&&document.attachEvent;if(!u){a=function(e){let t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},s=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},l=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&0>e.target.className.indexOf("contract-trigger")&&0>e.target.className.indexOf("expand-trigger"))return;let t=this;a(this),this.__resizeRAF__&&f(this.__resizeRAF__),this.__resizeRAF__=p(function(){s(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})};let e=!1,r="";i="animationstart";let u="Webkit Moz O ms".split(" "),c="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" ");{let t=document.createElement("fakeelement");
1if(void 0!==t.style.animationName&&(e=!0),!1===e){for(let n=0;n<u.length;n++)if(void 0!==t.style[u[n]+"AnimationName"]){r="-"+(0,u[n]).toLowerCase()+"-",i=c[n],e=!0;break}}}t="@"+r+"keyframes "+(n="resizeanim")+" { from { opacity: 0; } to { opacity: 0; } } ",o=r+"animation: 1ms "+n+"; "}let c=function(n){if(!n.getElementById("detectElementResize")){let r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=n.head||n.getElementsByTagName("head")[0],s=n.createElement("style");s.id="detectElementResize",s.type="text/css",null!=e&&s.setAttribute("nonce",e),s.styleSheet?s.styleSheet.cssText=r:s.appendChild(n.createTextNode(r)),i.appendChild(s)}};return{addResizeListener:function(e,t){if(u)e.attachEvent("onresize",t);else{if(!e.__resizeTriggers__){let t=e.ownerDocument,o=r.getComputedStyle(e);o&&"static"===o.position&&(e.style.position="relative"),c(t),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=t.createElement("div")).className="resize-triggers";let s=t.createElement("div");s.className="expand-trigger",s.appendChild(t.createElement("div"));let u=t.createElement("div");u.className="contract-trigger",e.__resizeTriggers__.appendChild(s),e.__resizeTriggers__.appendChild(u),e.appendChild(e.__resizeTriggers__),a(e),e.addEventListener("scroll",l,!0),i&&(e.__resizeTriggers__.__animationListener__=function(t){t.animationName===n&&a(e)},e.__resizeTriggers__.addEventListener(i,e.__resizeTriggers__.__animationListener__))}e.__resizeListeners__.push(t)}},removeResizeListener:function(e,t){if(u)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",l,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(i,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){let{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:i=!1,doNotBailOutOnEmptyChildren:o=!1,nonce:s,onResize:l,style:u={},tagName:c="div",...d}=this.props,{height:h,width:f}=this.state,p={overflow:"visible"},m={},g=!1;return r||(0===h&&(g=!0),p.height=0,m.height=h,m.scaledHeight=h),i||(0===f&&(g=!0),p.width=0,m.width=f,m.scaledWidth=f),o&&(g=!1),(0,a.createElement)(c,{ref:this._setRef,style:{...p,...u},...d},!g&&e(m))}}function x(e,t){return e===t}var k=n(7087),w=n(67304),C=n(63698),_=n(77694),A=n(97238),M=n(66545),S=n(17256),E=n(7388),T=n(12411),D=n(36360),L=n(86491),O=n(26052),R=n(98282),F=n(42977),z=n(66481),I=n(29389),B=n(73729),j=n(91233);function N(e){var t=e.map(P);return(0,j.Z)(e).sort(function(e,n){return t[e]-t[n]})}function P(e){for(var t,n=0,r=-1,i=e.length;++r<i;)(t=+e[r][1])&&(n+=t);return n}function H(e){for(var t,n=-1,r=0,i=e.length,o=-1/0;++n<i;)(t=+e[n][1])>o&&(o=t,r=n);return r}var W=n(13236),$=n(84684),Z=n(12169),q=n(35939),U=n(24544),V=n(52833),Y=n(54012),G=n(43214),J=n(58992),X=n(83443),K=n(27294),Q=n(57770),ee=n(8658),et=n(69200),en=n(85608),er=n(62281),ei=n(39337),eo=n(76254),es=n(85304),ea=n(84886),el=n(58054),eu=n(1215),ec=n(87439),ed=n(2643),eh=n(96791),ef=n(21782),ep=n(24619),em=n(11016),eg=n(50278),eb=n(48742),ev=n(21896),ey=n(11969),ex=n(39390),ek=n(10554),ew=n(71052),eC=n(70502),e_=n(80414),eA=n(90555),eM=n(60492),eS=n(31137),eE=n(18711),eT=n(46432),eD=n(57983),eL=n(56974);n(86152);var eO=n(61049);function eR(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}var eF=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ez(e){var t;if(!(t=eF.exec(e)))throw Error("invalid format: "+e);return new eI({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 eI(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 eB(e,t){var n=eR(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")}ez.prototype=eI.prototype,eI.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?""
1:Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var ej={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return eB(100*e,t)},r:eB,s:function(e,t){var n=eR(e,t);if(!n)return e+"";var r=n[0],o=n[1],s=o-(i=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return s===a?r:s>a?r+Array(s-a+1).join("0"):s>0?r.slice(0,s)+"."+r.slice(s):"0."+Array(1-s).join("0")+eR(e,Math.max(0,t+s-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function eN(e){return e}var eP=Array.prototype.map,eH=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];s=(o=function(e){var t,n,r,o=void 0===e.grouping||void 0===e.thousands?eN:(t=eP.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],s=0,a=t[0],l=0;i>0&&a>0&&(l+a+1>r&&(a=Math.max(1,r-l)),o.push(e.substring(i-=a,i+a)),!((l+=a+1)>r));)a=t[s=(s+1)%t.length];return o.reverse().join(n)}),s=void 0===e.currency?"":e.currency[0]+"",a=void 0===e.currency?"":e.currency[1]+"",l=void 0===e.decimal?".":e.decimal+"",u=void 0===e.numerals?eN:(r=eP.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return r[+e]})}),c=void 0===e.percent?"%":e.percent+"",d=void 0===e.minus?"-":e.minus+"",h=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=ez(e)).fill,n=e.align,r=e.sign,f=e.symbol,p=e.zero,m=e.width,g=e.comma,b=e.precision,v=e.trim,y=e.type;"n"===y?(g=!0,y="g"):ej[y]||(void 0===b&&(b=12),v=!0,y="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var x="$"===f?s:"#"===f&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",k="$"===f?a:/[%p]/.test(y)?c:"",w=ej[y],C=/[defgprs%]/.test(y);function _(e){var s,a,c,f=x,_=k;if("c"===y)_=w(e)+_,e="";else{var A=(e=+e)<0||1/e<0;
1if(e=isNaN(e)?h:w(Math.abs(e),b),v&&(e=function(e){t: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 t;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),A&&0==+e&&"+"!==r&&(A=!1),f=(A?"("===r?r:d:"-"===r||"("===r?"":r)+f,_=("s"===y?eH[8+i/3]:"")+_+(A&&"("===r?")":""),C){for(s=-1,a=e.length;++s<a;)if(48>(c=e.charCodeAt(s))||c>57){_=(46===c?l+e.slice(s+1):e.slice(s))+_,e=e.slice(0,s);break}}}g&&!p&&(e=o(e,1/0));var M=f.length+e.length+_.length,S=M<m?Array(m-M+1).join(t):"";switch(g&&p&&(e=o(S+e,S.length?m-_.length:1/0),S=""),n){case"<":e=f+e+_+S;break;case"=":e=f+S+e+_;break;case"^":e=S.slice(0,M=S.length>>1)+f+e+_+S.slice(M);break;default:e=S+f+e+_}return u(e)}return b=void 0===b?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),_.toString=function(){return e+""},_}return{format:f,formatPrefix:function(e,t){var n,r=f(((e=ez(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(((n=eR(Math.abs(n=t)))?n[1]:NaN)/3))),o=Math.pow(10,-i),s=eH[8+i/3];return function(e){return r(o*e)+s}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"})).format,o.formatPrefix;var eW=n(81488),e$=n(72579),eZ=n(97030),eq=n(13888),eU=n(18149),eV=n(16765
1),eY=(0,a.createContext)(),eG=function(e){var t=e.children,n=e.animate,r=void 0===n||n,i=e.config,o=void 0===i?"default":i,s=(0,a.useMemo)(function(){return{animate:r,config:c(o)?d.vc[o]:o}},[r,o]);return(0,h.jsx)(eY.Provider,{value:s,children:t})},eJ=function(){return(0,a.useContext)(eY)},eX=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?(0,a.cloneElement)(r,{},t):t},eK={position:"relative"},eQ=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,i=e.isInteractive,o=e.animate,s=e.motionConfig,c=(0,a.useRef)(null);return(0,h.jsx)(u.f6,{theme:n,children:(0,h.jsx)(eG,{animate:o,config:s,children:(0,h.jsx)(l.pn,{container:c,children:(0,h.jsxs)(eX,{condition:void 0===r||r,wrapper:(0,h.jsx)("div",{style:eK,ref:c}),children:[t,(void 0===i||i)&&(0,h.jsx)(l.u,{})]})})})})},e0=function(e,t){return e.width===t.width&&e.height===t.height},e1=function(e){var t,n,r,i,o,s,l,u=e.children,c=e.width,d=e.height,f=e.onResize,p=e.debounceResize,m=(t={width:c,height:d},r=(n={equalityFn:e0}).equalityFn||x,i=(0,a.useRef)(t),o=(0,a.useState)({})[1],s=function(e,t,n,r){var i=this,o=(0,a.useRef)(null),s=(0,a.useRef)(0),l=(0,a.useRef)(0),u=(0,a.useRef)(null),c=(0,a.useRef)([]),d=(0,a.useRef)(),h=(0,a.useRef)(),f=(0,a.useRef)(e),p=(0,a.useRef)(!0);f.current=e;var m="undefined"!=typeof window,g=!t&&0!==t&&m;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var b=!!(n=n||{}).leading,v=!("trailing"in n)||!!n.trailing,y="maxWait"in n,x="debounceOnServer"in n&&!!n.debounceOnServer,k=y?Math.max(+n.maxWait||0,t):null;return(0,a.useEffect)(function(){return p.current=!0,function(){p.current=!1}},[]),(0,a.useMemo)(function(){var e=function(e){var t=c.current,n=d.current;return c.current=d.current=null,s.current=e,l.current=l.current||e,h.current=f.current.apply(n,t)},n=function(e,t){g&&cancelAnimationFrame(u.current),u.current=g?requestAnimationFrame(e):setTimeout(e,t)},a=function(e){if(!p.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||y&&e-s.current>=k},w=function(t){return u.current=null,v&&c.current?e(t):(c.current=d.current=null,h.current)},C=function e(){var r=Date.now();if(b&&l.current===s.current&&_(),a(r))return w(r);if(p.current){var i=t-(r-o.current);n(e,y?Math.min(i,k-(r-s.current)):i)}},_=function(){r&&r({})},A=function(){if(m||x){var r=Date.now(),l=a(r);if(c.current=[].slice.call(arguments),d.current=i,o.current=r,l){if(!u.current&&p.current)return s.current=o.current,n(C,t),b?e(o.current):h.current;if(y)return n(C,t),e(o.current)}return u.current||n(C,t),h.current}};return A.cancel=function(){var e=u.current;e&&(g?cancelAnimationFrame(u.current):clearTimeout(u.current)),s.current=0,c.current=o.current=d.current=u.current=null,e&&r&&r({})},A.isPending=function(){return!!u.current},A.flush=function(){return u.current?w(Date.now()):h.current},A},[b,y,t,k,v,g,m,x,r])}((0,a.useCallback)(function(e){i.current=e,o({})},[o]),p,n,o),r((l=(0,a.useRef)(t)).current,t)||(s(t),l.current=t),[i.current,s])[0];return(0,a.useEffect)(function(){null==f||f(m)},[m,f]),(0,h.jsx)(h.Fragment,{children:u(m)})},e2=function(e){var t=e.children,n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,s=void 0===o?0:o;return(0,h.jsx)(y,{defaultWidth:n,defaultHeight:r,children:function(e){var n=e.width,r=e.height;return(0,h.jsx)(e1,{width:n,height:r,onResize:i,debounceResize:s,children:t})}})};function e3(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}function e5(){return(e5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}function e6(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var e8=["id","colors"],e4={linearGradient:function(e){var t=e.id,n=e.colors,r=e6(e,e8);return(0,h.jsx)("linearGradient",e5({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(e){var t=e.offset,n=e.color,r=e.opacity;return(0,h.jsx)("stop",{offset:t+"%",stopColor:n,stopOpacity:void 0!==r?r:1},t)})}))}},e7={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},e9=(0,a.memo)(function(e){var t=e.id,n=e.background,r=void 0===n?e7.background:n,i=e.color,o=void 0===i?e7.
1color:i,s=e.size,a=void 0===s?e7.size:s,l=e.padding,u=void 0===l?e7.padding:l,c=e.stagger,d=void 0===c?e7.stagger:c,f=a+u,p=a/2,m=u/2;return!0===d&&(f=2*a+2*u),(0,h.jsxs)("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[(0,h.jsx)("rect",{width:f,height:f,fill:r}),(0,h.jsx)("circle",{cx:m+p,cy:m+p,r:p,fill:o}),d&&(0,h.jsx)("circle",{cx:1.5*u+a+p,cy:1.5*u+a+p,r:p,fill:o})]})}),te=function(e){return e*Math.PI/180},tt=function(e){return 180*e/Math.PI},tn=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},tr=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},ti=function(e){var t=e%360;return t<0&&(t+=360),t},to={svg:{align:{left:"start",center:"middle",right:"end",start:"start",middle:"middle",end:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right",start:"left",middle:"center",end:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},ts={spacing:5,rotation:0,background:"#000000",color:"#ffffff",lineWidth:2},ta=(0,a.memo)(function(e){var t=e.id,n=e.spacing,r=void 0===n?ts.spacing:n,i=e.rotation,o=void 0===i?ts.rotation:i,s=e.background,a=void 0===s?ts.background:s,l=e.color,u=void 0===l?ts.color:l,c=e.lineWidth,d=void 0===c?ts.lineWidth:c,f=Math.round(o)%360,p=Math.abs(r);f>180?f-=360:f>90?f-=180:f<-180?f+=360:f<-90&&(f+=180);var m,g=p,b=p;return 0===f?m="\n                M 0 0 L "+g+" 0\n                M 0 "+b+" L "+g+" "+b+"\n            ":90===f?m="\n                M 0 0 L 0 "+b+"\n                M "+g+" 0 L "+g+" "+b+"\n            ":(g=Math.abs(p/Math.sin(te(f))),b=p/Math.sin(te(90-f)),m=f>0?"\n                    M 0 "+-b+" L "+2*g+" "+b+"\n                    M "+-g+" "+-b+" L "+g+" "+b+"\n                    M "+-g+" 0 L "+g+" "+2*b+"\n                ":"\n                    M "+-g+" "+b+" L "+g+" "+-b+"\n                    M "+-g+" "+2*b+" L "+2*g+" "+-b+"\n                    M 0 "+2*b+" L "+2*g+" 0\n                "),(0,h.jsxs)("pattern",{id:t,width:g,height:b,patternUnits:"userSpaceOnUse",children:[(0,h.jsx)("rect",{width:g,height:b,fill:a,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),(0,h.jsx)("path",{d:m,strokeWidth:d,stroke:u,strokeLinecap:"square"})]})}),tl={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},tu={patternDots:e9,patternLines:ta,patternSquares:(0,a.memo)(function(e){var t=e.id,n=e.color,r=void 0===n?tl.color:n,i=e.background,o=void 0===i?tl.background:i,s=e.size,a=void 0===s?tl.size:s,l=e.padding,u=void 0===l?tl.padding:l,c=e.stagger,d=void 0===c?tl.stagger:c,f=a+u,p=u/2;return!0===d&&(f=2*a+2*u),(0,h.jsxs)("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[(0,h.jsx)("rect",{width:f,height:f,fill:o}),(0,h.jsx)("rect",{x:p,y:p,width:a,height:a,fill:r}),d&&(0,h.jsx)("rect",{x:1.5*u+a,y:1.5*u+a,width:a,height:a,fill:r})]})})},tc=["type"],td=e5({},e4,tu),th=(0,a.memo)(function(e){var t=e.defs;return!t||t.length<1?null:(0,h.jsx)("defs",{"aria-hidden":!0,children:t.map(function(e){var t=e.type,n=e6(e,tc);return td[t]?(0,a.createElement)(td[t],e5({key:n.id},n)):null})})}),tf=(0,a.forwardRef)(function(e,t){var n=e.width,r=e.height,i=e.margin,o=e.defs,s=e.children,a=e.role,l=e.ariaLabel,c=e.ariaLabelledBy,d=e.ariaDescribedBy,f=e.isFocusable,p=(0,u.Fg)();return(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:r,role:a,"aria-label":l,"aria-labelledby":c,"aria-describedby":d,focusable:f,tabIndex:f?0:void 0,ref:t,children:[(0,h.jsx)(th,{defs:o}),(0,h.jsx)("rect",{width:n,height:r,fill:p.background}),(0,h.jsx)("g",{transform:"translate("+i.left+","+i.top+")",children:s})]})}),tp=(0,a.memo)(function(e){var t=e.size,n=e.color,r=e.borderWidth,i=e.borderColor;return(0,h.jsx)("circle",{r:t/2,fill:n,stroke:i,strokeWidth:r,style:{pointerEvents:"none"}})}),tm=(0,a.memo)(function(e){var t=e.x,n=e.y,r=e.symbol,i=e.size,o=e.datum,s=e.color,l=e.borderWidth,c=e.borderColor,f=e.label,p=e.labelTextAnchor,m=e.labelYOffset,g=e.ariaLabel,b=e.ariaLabelledBy,v=e.ariaDescribedBy,y=e.ariaHidden,x=e.ariaDisabled,k=e.isFocusable,w=void 0!==k&&k,C=e.tabIndex,_=e.onFocus,A=e.onBlur,M=e.testId,S=(0,u.Fg)(),E=eJ(),T=E.animate,D=E.config,L=(0,d.q_)({transform:"translate("+t+", "+n+")",config:D,immediate:!T}),O=(0,a.useCallback)(function(e){null==_||_(o,e)},[_,o]),R=(0,a.useCallback)(function(e){null==A||A(o,e)},[A,o]);return(0,h.jsxs)(d.q.g,{transform:L.transform,style:{pointerEvents:"none"},focusable:w,tabIndex:w?void 0===C?0:C:void 0,"aria-label":g,"aria-labelledby":b,"aria-describedby":v,"aria-disabled":x,"aria-hidden":y,onFocus:w&&_?O:void 0,onBlur:w&&A?R:void 0,"data-testid":M,children:[(0,a.createElement)(void 0===r?tp:r,{size:i,color:s,datum:o,borderWidth:l,borderColor:c}),f&&(0,h.jsx)("text",{textAnchor:void 0===p?"middle":p,y:void 0===m?-12:m,style:(0,u.TE)(S.dots.text),children:f})]})}
1),tg=(0,a.memo)(function(e){var t=e.width,n=e.height,r=e.axis,i=e.scale,o=e.value,s=e.lineStyle,a=e.textStyle,l=e.legend,c=e.legendNode,d=e.legendPosition,f=e.legendOffsetX,p=e.legendOffsetY,m=e.legendOrientation,g=(0,u.Fg)(),b=0,v=0,y=0,x=0;if("y"===r?(y=i(o),v=t):(b=i(o),x=n),l&&!c){var k=function(e){var t=e.axis,n=e.width,r=e.height,i=e.position,o=e.offsetX,s=e.offsetY,a=e.orientation,l=0,u=0,c="start";if("x"===t)switch(i){case"top-left":l=-o,u=s,c="end";break;case"top":u=-s,c="horizontal"===a?"middle":"start";break;case"top-right":l=o,u=s,c="horizontal"===a?"start":"end";break;case"right":l=o,u=r/2,c="horizontal"===a?"start":"middle";break;case"bottom-right":l=o,u=r-s,c="start";break;case"bottom":u=r+s,c="horizontal"===a?"middle":"end";break;case"bottom-left":u=r-s,l=-o,c="horizontal"===a?"end":"start";break;case"left":l=-o,u=r/2,c="horizontal"===a?"end":"middle"}else switch(i){case"top-left":l=o,u=-s,c="start";break;case"top":l=n/2,u=-s,c="horizontal"===a?"middle":"start";break;case"top-right":l=n-o,u=-s,c="horizontal"===a?"end":"start";break;case"right":l=n+o,c="horizontal"===a?"start":"middle";break;case"bottom-right":l=n-o,u=s,c="end";break;case"bottom":l=n/2,u=s,c="horizontal"===a?"middle":"end";break;case"bottom-left":l=o,u=s,c="horizontal"===a?"start":"end";break;case"left":l=-o,c="horizontal"===a?"end":"middle"}return{x:l,y:u,rotation:"vertical"===a?-90:0,textAnchor:c}}({axis:r,width:t,height:n,position:void 0===d?"top-right":d,offsetX:void 0===f?14:f,offsetY:void 0===p?14:p,orientation:void 0===m?"horizontal":m});c=(0,h.jsx)("text",{transform:"translate("+k.x+", "+k.y+") rotate("+k.rotation+")",textAnchor:k.textAnchor,dominantBaseline:"central",style:a,children:l})}return(0,h.jsxs)("g",{transform:"translate("+b+", "+y+")",children:[(0,h.jsx)("line",{x1:0,x2:v,y1:0,y2:x,stroke:g.markers.lineColor,strokeWidth:g.markers.lineStrokeWidth,style:s}),c]})}),tb=(0,a.memo)(function(e){var t=e.markers,n=e.width,r=e.height,i=e.xScale,o=e.yScale;return t&&0!==t.length?t.map(function(e,t){return(0,h.jsx)(tg,e5({},e,{width:n,height:r,scale:"y"===e.axis?o:i}),t)}):null}),tv=function(e){var t,n=eJ(),r=n.animate,i=n.config,o=(t=(0,a.useRef)(),(0,a.useEffect)(function(){t.current=e},[e]),t.current),s=(0,a.useMemo)(function(){return(0,k.Z)(o,e)},[o,e]),l=(0,d.q_)({from:{value:0},to:{value:1},reset:!0,config:i,immediate:!r}).value;return(0,d.to)(l,s)},ty=((0,a.createContext)(void 0),{basis:C.ZP,basisClosed:_.Z,basisOpen:A.Z,bundle:M.Z,cardinal:S.ZP,cardinalClosed:E.Z,cardinalOpen:T.Z,catmullRom:D.Z,catmullRomClosed:L.Z,catmullRomOpen:O.Z,linear:R.Z,linearClosed:F.Z,monotoneX:z.Z,monotoneY:z.s,natural:I.Z,step:B.ZP,stepAfter:B.cD,stepBefore:B.RN}),tx=Object.keys(ty),tk=(tx.filter(function(e){return e.endsWith("Closed")}),w(tx,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed"),w(tx,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed"),function(e){if(!ty[e])throw TypeError("'"+e+"', is not a valid curve interpolator identifier.");return ty[e]}),tw=(Object.keys((Object.keys((Object.keys({ascending:N,descending:function(e){return N(e).reverse()},insideOut:function(e){var t,n,r,i=e.length,o=e.map(P),s=(t=e.map(H),(0,j.Z)(e).sort(function(e,n){return t[e]-t[n]})),a=0,l=0,u=[],c=[];for(n=0;n<i;++n)r=s[n],a<l?(a+=o[r],u.push(r)):(l+=o[r],c.push(r));return c.reverse().concat(u)},none:j.Z,reverse:function(e){return(0,j.Z)(e).reverse()}}),{expand:function(e,t){if((r=e.length)>0){for(var n,r,i,o=0,s=e[0].length;o<s;++o){for(i=n=0;n<r;++n)i+=e[n][o][1]||0;if(i)for(n=0;n<r;++n)e[n][o][1]/=i}(0,W.Z)(e,t)}},diverging:$.Z,none:W.Z,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],o=i.length;r<o;++r){for(var s=0,a=0;s<n;++s)a+=e[s][r][1]||0;i[r][1]+=i[r][0]=-a/2}(0,W.Z)(e,t)}},wiggle:function(e,t){if((i=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,s=1;s<r;++s){for(var a=0,l=0,u=0;a<i;++a){for(var c=e[t[a]],d=c[s][1]||0,h=(d-(c[s-1][1]||0))/2,f=0;f<a;++f){var p=e[t[f]];h+=(p[s][1]||0)-(p[s-1][1]||0)}l+=d,u+=h*d}n[s-1][1]+=n[s-1][0]=o,l&&(o-=u/l)}n[s-1][1]+=n[s-1][0]=o,(0,W.Z)(e,t)}}}
1)),{nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:eL(q.r),PRGn:eL(U.r),PiYG:eL(V.r),PuOr:eL(Y.r),RdBu:eL(G.r),RdGy:eL(J.r),RdYlBu:eL(X.r),RdYlGn:eL(K.r),spectral:eL(Q.r),blues:eL(ee.r),greens:eL(et.r),greys:eL(en.r),oranges:eL(er.r),purples:eL(ei.r),reds:eL(eo.r),BuGn:eL(es.r),BuPu:eL(ea.r),GnBu:eL(el.r),OrRd:eL(eu.r),PuBuGn:eL(ec.r),PuBu:eL(ed.r),PuRd:eL(eh.r),RdPu:eL(ef.r),YlGnBu:eL(ep.r),YlGn:eL(em.r),YlOrBr:eL(eg.r),YlOrRd:eL(eb.r)})),ev.Z,ey.Z,ex.Z,ek.Z,ew.Z,eC.Z,e_.Z,eA.Z,eM.Z,eL(q.r),eL(U.r),eL(V.r),eL(Y.r),eL(G.r),eL(J.r),eL(X.r),eL(K.r),eL(Q.r),eL(ee.r),eL(et.r),eL(en.r),eL(er.r),eL(ei.r),eL(eo.r),eL(es.r),eL(ea.r),eL(el.r),eL(eu.r),eL(ec.r),eL(ed.r),eL(eh.r),eL(ef.r),eL(ep.r),eL(em.r),eL(eg.r),eL(eb.r),q.Z,U.Z,V.Z,Y.Z,G.Z,J.Z,X.Z,K.Z,Q.Z,ee.Z,et.Z,en.Z,er.Z,ei.Z,eo.Z,eS.ZP,eS.yy,eS.uX,eS.zD,eE.s7,eE.H7,eT.Z,es.Z,ea.Z,el.Z,eu.Z,ec.Z,ed.Z,eh.Z,ef.Z,ep.Z,em.Z,eg.Z,eb.Z,eE.ZP,eD.Z,(0,Z.Z)(eM.Z),{top:0,right:0,bottom:0,left:0}),tC=function(e,t,n){return void 0===n&&(n={}),(0,a.useMemo)(function(){var r=e5({},tw,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n])},t_=function(){var e=(0,a.useRef)(null),t=(0,a.useState)({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],i=(0,a.useState)(function(){return"undefined"==typeof ResizeObserver?null:new ResizeObserver(function(e){return r(e[0].contentRect)})})[0];return(0,a.useEffect)(function(){return e.current&&null!==i&&i.observe(e.current),function(){null!==i&&i.disconnect()}},[i]),[e,n]},tA=function(e){return(0,a.useMemo)(function(){return"function"==typeof e?e:"string"==typeof e?0===e.indexOf("time:")?(0,eW.i$)(e.slice("5")):s(e):function(e){return""+e}},[e])},tM=function(e,t){var n,r=eO(e)?e:function(t){return e$(t,e)};return t&&(n=eO(t)?t:s(t)),n?function(e){return n(r(e))}:r},tS=function(e){return eO(e)?e:function(t){return e$(t,e)}},tE=function(e){return(0,a.useMemo)(function(){return tS(e)},[e])},tT=function(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))},tD=function(e,t,n,r){var i=Math.atan2(r-t,n-e)-Math.PI/2;return i>0?i:2*Math.PI+i},tL=function(e,t,n,r,i,o){return e<=i&&i<=e+n&&t<=o&&o<=t+r},tO=function(e,t){var n,r="touches"in t?t.touches[0]:t,i=r.clientX,o=r.clientY,s=e.getBoundingClientRect(),a=(n=void 0!==e.getBBox?e.getBBox():{width:e.offsetWidth||0,height:e.offsetHeight||0}).width===s.width?1:n.width/s.width;return[(i-s.left)*a,(o-s.top)*a]},tR=Object.keys(e4),tF=Object.keys(tu),tz=function(e,t,n,r){var i=void 0===r?{}:r,o=i.dataKey,s=i.colorKey,a=void 0===s?"color":s,l=i.targetKey,u=void 0===l?"fill":l,c=[],d={};return e.length&&t.length&&(c=[].concat(e),t.forEach(function(t){for(var r,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return e3(e,void 0);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)?e3(e,void 0):void 0}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n);!(r=i()).done&&!function(){var n,i=r.value,s=i.id;if("*"===(n=i.match)||(eO(n)?n(t):!!eZ(n)&&eU(eq(o?e$(t,o):t,Object.keys(n)),n))){var l=e.find(function(e){return e.id===s});if(l){if(tF.includes(l.type)){if("inherit"===l.background||"inherit"===l.color){var h=e$(t,a),f=l.background,p=l.color,m=s;"inherit"===l.background&&(m=m+".bg."+h,f=h),"inherit"===l.color&&(m=m+".fg."+h,p=h),eV(t,u,"url(#"+m+")"),d[m]||(c.push(e5({},l,{id:m,background:f,color:p})),d[m]=1)}else eV(t,u,"url(#"+s+")")}else if(tR.includes(l.type)){if(l.colors.map(function(e){return e.color}).includes("inherit")){var g=e$(t,a),b=s,v=e5({},l,{colors:l.colors.map(function(e,t){return"inherit"!==e.color?e:(b=b+"."+t+"."+g,e5({},e,{color:"inherit"===e.color?g:e.color}))})});v.id=b,eV(t,u,"url(#"+b+")"),d[b]||(c.push(v),d[b]=1)}else eV(t,u,"url(#"+s+")")}}return 1}}(););})),c};function tI(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=0;n<t.length;n++){var r=t[n];"function"==typeof r?r(e):null!=r&&(r.current=e)}}}},63670:function(e,t,n){"use strict";n.d(t,{$6:function(){return g},as:function(){return v}});var r=n(52322);
1n(64565),n(95555);var i=n(2784),o=n(91265),s=n(35824);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var l={translateX:0,translateY:0,padding:0,itemsSpacing:0,itemDirection:"left-to-right",justify:!1,symbolShape:"square",symbolSize:16,symbolSpacing:8},u={top:0,right:0,bottom:0,left:0},c=function(e){var t=e.direction,n=e.itemsSpacing,r=e.padding,i=e.itemCount,o=e.itemWidth,s=e.itemHeight;if("number"!=typeof r&&("object"!=typeof r||Array.isArray(r)||null===r))throw Error("Invalid property padding, must be one of: number, object");var l="number"==typeof r?{top:r,right:r,bottom:r,left:r}:a({},u,r),c=l.left+l.right,d=l.top+l.bottom,h=o+c,f=s+d,p=(i-1)*n;return"row"===t?h=o*i+p+c:"column"===t&&(f=s*i+p+d),{width:h,height:f,padding:l}},d=function(e){var t=e.anchor,n=e.translateX,r=e.translateY,i=e.containerWidth,o=e.containerHeight,s=e.width,a=e.height,l=n,u=r;switch(t){case"top":l+=(i-s)/2;break;case"top-right":l+=i-s;break;case"right":l+=i-s,u+=(o-a)/2;break;case"bottom-right":l+=i-s,u+=o-a;break;case"bottom":l+=(i-s)/2,u+=o-a;break;case"bottom-left":u+=o-a;break;case"left":u+=(o-a)/2;break;case"center":l+=(i-s)/2,u+=(o-a)/2}return{x:l,y:u}},h=function(e){var t,n,r,i,o,s,a=e.direction,l=e.justify,u=e.symbolSize,c=e.symbolSpacing,d=e.width,h=e.height;switch(a){case"left-to-right":t=0,n=(h-u)/2,i=h/2,s="central",l?(r=d,o="end"):(r=u+c,o="start");break;case"right-to-left":t=d-u,n=(h-u)/2,i=h/2,s="central",l?(r=0,o="start"):(r=d-u-c,o="end");break;case"top-to-bottom":t=(d-u)/2,n=0,r=d/2,o="middle",l?(i=h,s="alphabetic"):(i=u+c,s="text-before-edge");break;case"bottom-to-top":t=(d-u)/2,n=h-u,r=d/2,o="middle",l?(i=0,s="text-before-edge"):(i=h-u-c,s="alphabetic")}return{symbolX:t,symbolY:n,labelX:r,labelY:i,labelAnchor:o,labelAlignment:s}},f={circle:function(e){var t=e.x,n=e.y,i=e.size,o=e.fill,s=e.opacity,a=e.borderWidth,l=e.borderColor;return(0,r.jsx)("circle",{r:i/2,cx:t+i/2,cy:n+i/2,fill:o,opacity:void 0===s?1:s,strokeWidth:void 0===a?0:a,stroke:void 0===l?"transparent":l,style:{pointerEvents:"none"}})},diamond:function(e){var t=e.x,n=e.y,i=e.size,o=e.fill,s=e.opacity,a=e.borderWidth,l=e.borderColor;return(0,r.jsx)("g",{transform:"translate("+t+","+n+")",children:(0,r.jsx)("path",{d:"\n                    M"+i/2+" 0\n                    L"+.8*i+" "+i/2+"\n                    L"+i/2+" "+i+"\n                    L"+.2*i+" "+i/2+"\n                    L"+i/2+" 0\n                ",fill:o,opacity:void 0===s?1:s,strokeWidth:void 0===a?0:a,stroke:void 0===l?"transparent":l,style:{pointerEvents:"none"}})})},square:function(e){var t=e.x,n=e.y,i=e.size,o=e.fill,s=e.opacity,a=e.borderWidth,l=e.borderColor;return(0,r.jsx)("rect",{x:t,y:n,fill:o,opacity:void 0===s?1:s,strokeWidth:void 0===a?0:a,stroke:void 0===l?"transparent":l,width:i,height:i,style:{pointerEvents:"none"}})},triangle:function(e){var t=e.x,n=e.y,i=e.size,o=e.fill,s=e.opacity,a=e.borderWidth,l=e.borderColor;return(0,r.jsx)("g",{transform:"translate("+t+","+n+")",children:(0,r.jsx)("path",{d:"\n                M"+i/2+" 0\n                L"+i+" "+i+"\n                L0 "+i+"\n                L"+i/2+" 0\n            ",fill:o,opacity:void 0===s?1:s,strokeWidth:void 0===a?0:a,stroke:void 0===l?"transparent":l,style:{pointerEvents:"none"}})})}},p=function(e){var t,n,u,c,d,p,m,g,b,v,y,x=e.x,k=e.y,w=e.width,C=e.height,_=e.data,A=e.direction,M=void 0===A?l.itemDirection:A,S=e.justify,E=void 0===S?l.justify:S,T=e.textColor,D=e.background,L=e.opacity,O=e.symbolShape,R=void 0===O?l.symbolShape:O,F=e.symbolSize,z=void 0===F?l.symbolSize:F,I=e.symbolSpacing,B=void 0===I?l.symbolSpacing:I,j=e.symbolBorderWidth,N=e.symbolBorderColor,P=e.onClick,H=e.onMouseEnter,W=e.onMouseLeave,$=e.toggleSerie,Z=e.effects,q=(0,i.useState)({}),U=q[0],V=q[1],Y=(0,o.Fg)(),G=(0,i.useCallback)(function(e){Z&&V(Z.filter(function(e){return"hover"===e.on}).reduce(function(e,t){return a({},e,t.style)},{})),null==H||H(_,e)},[H,_,Z]),J=(0,i.useCallback)(function(e){Z&&V(Z.filter(function(e){return"hover"!==e.on}).reduce(function(e,t){return a({},e,t.style)}
1,{})),null==W||W(_,e)},[W,_,Z]),X=h({direction:M,justify:E,symbolSize:null!=(t=U.symbolSize)?t:z,symbolSpacing:B,width:w,height:C}),K=X.symbolX,Q=X.symbolY,ee=X.labelX,et=X.labelY,en=X.labelAnchor,er=X.labelAlignment,ei=[P,H,W,$].some(function(e){return void 0!==e}),eo="function"==typeof R?R:f[R];return(0,r.jsxs)("g",{transform:"translate("+x+","+k+")",style:{opacity:null!=(n=U.itemOpacity)?n:void 0===L?1:L},children:[(0,r.jsx)("rect",{width:w,height:C,fill:null!=(u=U.itemBackground)?u:void 0===D?"transparent":D,style:{cursor:ei?"pointer":"auto"},onClick:function(e){null==P||P(_,e),null==$||$(_.id)},onMouseEnter:G,onMouseLeave:J}),i.createElement(eo,a({id:_.id,x:K,y:Q,size:null!=(c=U.symbolSize)?c:z,fill:null!=(d=null!=(p=_.fill)?p:_.color)?d:"black",borderWidth:null!=(m=U.symbolBorderWidth)?m:void 0===j?0:j,borderColor:null!=(g=U.symbolBorderColor)?g:void 0===N?"transparent":N},_.hidden?Y.legends.hidden.symbol:void 0)),(0,r.jsx)(s.xv,{textAnchor:en,style:a({},Y.legends.text,{fill:null!=(b=null!=(v=null!=(y=U.itemTextColor)?y:T)?v:Y.legends.text.fill)?b:"black",dominantBaseline:er,pointerEvents:"none",userSelect:"none"},_.hidden?Y.legends.hidden.text:void 0),x:ee,y:et,children:_.label})]})},m=function(e){var t=e.data,n=e.x,i=e.y,o=e.direction,s=e.padding,a=void 0===s?l.padding:s,u=e.justify,d=e.effects,h=e.itemWidth,f=e.itemHeight,m=e.itemDirection,g=void 0===m?l.itemDirection:m,b=e.itemsSpacing,v=void 0===b?l.itemsSpacing:b,y=e.itemTextColor,x=e.itemBackgroun
1d,k=void 0===x?"transparent":x,w=e.itemOpacity,C=void 0===w?1:w,_=e.symbolShape,A=e.symbolSize,M=e.symbolSpacing,S=e.symbolBorderWidth,E=e.symbolBorderColor,T=e.onClick,D=e.onMouseEnter,L=e.onMouseLeave,O=e.toggleSerie,R=c({itemCount:t.length,itemWidth:h,itemHeight:f,itemsSpacing:v,direction:o,padding:a}).padding,F="row"===o?h+v:0,z="column"===o?f+v:0;return(0,r.jsx)("g",{transform:"translate("+n+","+i+")",children:t.map(function(e,t){return(0,r.jsx)(p,{data:e,x:t*F+R.left,y:t*z+R.top,width:h,height:f,direction:g,justify:u,effects:d,textColor:y,background:k,opacity:C,symbolShape:_,symbolSize:A,symbolSpacing:M,symbolBorderWidth:S,symbolBorderColor:E,onClick:T,onMouseEnter:D,onMouseLeave:L,toggleSerie:O},t)})})},g=function(e){var t=e.data,n=e.containerWidth,i=e.containerHeight,o=e.translateX,s=void 0===o?l.translateX:o,a=e.translateY,u=void 0===a?l.translateY:a,h=e.anchor,f=e.direction,p=e.padding,g=void 0===p?l.padding:p,b=e.justify,v=e.itemsSpacing,y=void 0===v?l.itemsSpacing:v,x=e.itemWidth,k=e.itemHeight,w=e.itemDirection,C=e.itemTextColor,_=e.itemBackgroun
1d,A=e.itemOpacity,M=e.symbolShape,S=e.symbolSize,E=e.symbolSpacing,T=e.symbolBorderWidth,D=e.symbolBorderColor,L=e.onClick,O=e.onMouseEnter,R=e.onMouseLeave,F=e.toggleSerie,z=e.effects,I=c({itemCount:t.length,itemsSpacing:y,itemWidth:x,itemHeight:k,direction:f,padding:g}),B=d({anchor:h,translateX:s,translateY:u,containerWidth:n,containerHeight:i,width:I.width,height:I.height}),j=B.x,N=B.y;return(0,r.jsx)(m,{data:t,x:j,y:N,direction:f,padding:g,justify:b,effects:z,itemsSpacing:y,itemWidth:x,itemHeight:k,itemDirection:w,itemTextColor:C,itemBackground:_,itemOpacity:A,symbolShape:M,symbolSize:S,symbolSpacing:E,symbolBorderWidth:T,symbolBorderColor:D,onClick:L,onMouseEnter:O,onMouseLeave:R,toggleSerie:"boolean"==typeof F?void 0:F})},b={start:"left",middle:"center",end:"right"},v=function(e,t){var n=t.data,r=t.containerWidth,i=t.containerHeight,o=t.translateX,l=t.translateY,u=t.anchor,f=t.direction,p=t.padding,m=t.justify,g=void 0!==m&&m,v=t.itemsSpacing,y=void 0===v?0:v,x=t.itemWidth,k=t.itemHeight,w=t.itemDirection,C=void 0===w?"left-to-right":w,_=t.itemTextColor,A=t.symbolSize,M=void 0===A?16:A,S=t.symbolSpacing,E=void 0===S?8:S,T=t.theme,D=c({itemCount:n.length,itemWidth:x,itemHeight:k,itemsSpacing:y,direction:f,padding:void 0===p?0:p}),L=D.width,O=D.height,R=D.padding,F=d({anchor:u,translateX:void 0===o?0:o,translateY:void 0===l?0:l,containerWidth:r,containerHeight:i,width:L,height:O}),z=F.x,I=F.y,B="row"===f?x+y:0,j="column"===f?k+y:0;e.save(),e.translate(z,I),(0,s.Ay)(e,T.legends.text),n.forEach(function(t,n){var r,i=n*B+R.left,o=n*j+R.top,l=h({direction:C,justify:g,symbolSize:M,symbolSpacing:E,width:x,height:k}),u=l.symbolX,c=l.symbolY,d=l.labelX,f=l.labelY,p=l.labelAnchor,m=l.labelAlignment;e.fillStyle=null!=(r=t.color)?r:"black",e.fillRect(i+u,o+c,M,M),e.textAlign=b[p],"central"===m&&(e.textBaseline="middle"),(0,s.MC)(e,a({},T.legends.text,{fill:null!=_?_:T.legends.text.fill}),String(t.label),i+d,o+f)}),e.restore()}},87853:function(e,t,n){"use strict";n.d(t,{fH:function(){return eR}});var r=n(2784),i=n(64565),o=n(50685),s=n(63670),a=n(18586),l=n(76985),u=n(16426),c=n(6677),d=n(98282),h=n(40295),f=n(13353),p=n(74930),m=n(91265),g=n(95555),b=n(83013),v=n(52322),y=n(65352),x=n(82489);let k=(3+8881784197001252e-31)*11102230246251565e-32;function w(e,t,n,r,i){let o,s,a,l;let u=t[0],c=r[0],d=0,h=0;c>u==c>-u?(o=u,u=t[++d]):(o=c,c=r[++h]);let f=0;if(d<e&&h<n)for(c>u==c>-u?(s=u+o,a=o-(s-u),u=t[++d]):(s=c+o,a=o-(s-c),c=r[++h]),o=s,0!==a&&(i[f++]=a);d<e&&h<n;)c>u==c>-u?(l=(s=o+u)-o,a=o-(s-l)+(u-l),u=t[++d]):(l=(s=o+c)-o,a=o-(s-l)+(c-l),c=r[++h]),o=s,0!==a&&(i[f++]=a);for(;d<e;)l=(s=o+u)-o,a=o-(s-l)+(u-l),u=t[++d],o=s,0!==a&&(i[f++]=a);for(;h<n;)l=(s=o+c)-o,a=o-(s-l)+(c-l),c=r[++h],o=s,0!==a&&(i[f++]=a);return(0!==o||0===f)&&(i[f++]=o),f}function C(e){return new Float64Array(e)}let _=(3+17763568394002505e-31)*11102230246251565e-32,A=(2+13322676295501878e-31)*11102230246251565e-32,M=(9+7105427357601002e-30)*11102230246251565e-32*11102230246251565e-32,S=C(4),E=C(8),T=C(12),D=C(16),L=C(4);function O(e,t,n,r,i,o){let s=(t-o)*(n-i),a=(e-i)*(r-o),l=s-a,u=Math.abs(s+a);return Math.abs(l)>=_*u?l:-function(e,t,n,r,i,o,s){let a,l,u,c,d,h,f,p,m,g,b,v,y,x,C,_,O,R;let F=e-i,z=n-i,I=t-o,B=r-o;x=F*B,f=(h=134217729*F)-(h-F),p=F-f,m=(h=134217729*B)-(h-B),C=p*(g=B-m)-(x-f*m-p*m-f*g),_=I*z,f=(h=134217729*I)-(h-I),p=I-f,m=(h=134217729*z)-(h-z),b=C-(O=p*(g=z-m)-(_-f*m-p*m-f*g)),d=C-b,S[0]=C-(b+d)+(d-O),d=(v=x+b)-x,b=(y=x-(v-d)+(b-d))-_,d=y-b,S[1]=y-(b+d)+(d-_),d=(R=v+b)-v,S[2]=v-(R-d)+(b-d),S[3]=R;let j=function(e,t){let n=t[0];for(let e=1;e<4;e++)n+=t[e];return n}(0,S),N=A*s;if(j>=N||-j>=N||(d=e-F,a=e-(F+d)+(d-i),d=n-z,u=n-(z+d)+(d-i),d=t-I,l=t-(I+d)+(d-o),d=r-B,c=r-(B+d)+(d-o),0===a&&0===l&&0===u&&0===c)||(N=M*s+k*Math.abs(j),(j+=F*c+B*a-(I*u+z*l))>=N||-j>=N))return j;x=a*B,f=(h=134217729*a)-(h-a),p=a-f,m=(h=134217729*B)-(h-B),C=p*(g=B-m)-(x-f*m-p*m-f*g),_=l*z,f=(h=134217729*l)-(h-l),p=l-f,m=(h=134217729*z)-(h-z),b=C-(O=p*(g=z-m)-(_-f*m-p*m-f*g)),d=C-b,L[0]=C-(b+d)+(d-O),d=(v=x+b)-x,b=(y=x-(v-d)+(b-d))-_,d=y-b,L[1]=y-(b+d)+(d-_),d=(R=v+b)-v,L[2]=v-(R-d)+(b-d
1),L[3]=R;let P=w(4,S,4,L,E);x=F*c,f=(h=134217729*F)-(h-F),p=F-f,m=(h=134217729*c)-(h-c),C=p*(g=c-m)-(x-f*m-p*m-f*g),_=I*u,f=(h=134217729*I)-(h-I),p=I-f,m=(h=134217729*u)-(h-u),b=C-(O=p*(g=u-m)-(_-f*m-p*m-f*g)),d=C-b,L[0]=C-(b+d)+(d-O),d=(v=x+b)-x,b=(y=x-(v-d)+(b-d))-_,d=y-b,L[1]=y-(b+d)+(d-_),d=(R=v+b)-v,L[2]=v-(R-d)+(b-d),L[3]=R;let H=w(P,E,4,L,T);x=a*c,f=(h=134217729*a)-(h-a),p=a-f,m=(h=134217729*c)-(h-c),C=p*(g=c-m)-(x-f*m-p*m-f*g),_=l*u,f=(h=134217729*l)-(h-l),p=l-f,m=(h=134217729*u)-(h-u),b=C-(O=p*(g=u-m)-(_-f*m-p*m-f*g)),d=C-b,L[0]=C-(b+d)+(d-O),d=(v=x+b)-x,b=(y=x-(v-d)+(b-d))-_,d=y-b,L[1]=y-(b+d)+(d-_),d=(R=v+b)-v,L[2]=v-(R-d)+(b-d),L[3]=R;let W=w(H,T,4,L,D);return D[W-1]}(e,t,n,r,i,o,u)}C(4),C(4),C(4),C(4),C(4),C(4),C(4),C(4),C(4),C(8),C(8),C(8),C(4),C(8),C(8),C(8),C(12),C(192),C(192),C(4),C(4),C(4),C(4),C(4),C(4),C(4),C(4),C(8),C(8),C(8),C(8),C(8),C(8),C(8),C(8),C(8),C(4),C(4),C(4),C(8),C(16),C(16),C(16),C(32),C(32),C(48),C(64),C(1152),C(1152),C(4),C(4),C(4),C(4),C(4),C(4),C(4),C(4),C(4),C(4),C(24),C(24),C(24),C(24),C(24),C(24),C(24),C(24),C(24),C(24),C(1152),C(1152),C(1152),C(1152),C(1152),C(2304),C(2304),C(3456),C(5760),C(8),C(8),C(8),C(16),C(24),C(48),C(48),C(96),C(192),C(384),C(384),C(384),C(768),C(96),C(96),C(96),C(1152);let R=new Uint32Array(512);class F{static from(e,t=j,n=N){let r=e.length,i=new Float64Array(2*r);for(let o=0;o<r;o++){let r=e[o];i[2*o]=t(r),i[2*o+1]=n(r)}return new F(i)}constructor(e){let t=e.length>>1;if(t>0&&"number"!=typeof e[0])throw Error("Expected coords to contain numbers.");this.coords=e;let n=Math.max(2*t-5,0);this._triangles=new Uint32Array(3*n),this._halfedges=new Int32Array(3*n),this._hashSize=Math.ceil(Math.sqrt(t)),this._hullPrev=new Uint32Array(t),this._hullNext=new Uint32Array(t),this._hullTri=new Uint32Array(t),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(t),this._dists=new Float64Array(t),this.update()}update(){let e,t,n;let{coords:r,_hullPrev:i,_hullNext:o,_hullTri:s,_hullHash:a}=this,l=r.length>>1,u=1/0,c=1/0,d=-1/0,h=-1/0;for(let e=0;e<l;e++){let t=r[2*e],n=r[2*e+1];t<u&&(u=t),n<c&&(c=n),t>d&&(d=t),n>h&&(h=n),this._ids[e]=e}let f=(u+d)/2,p=(c+h)/2;for(let t=0,n=1/0;t<l;t++){let i=z(f,p,r[2*t],r[2*t+1]);i<n&&(e=t,n=i)}let m=r[2*e],g=r[2*e+1];for(let n=0,i=1/0;n<l;n++){if(n===e)continue;let o=z(m,g,r[2*n],r[2*n+1]);o<i&&o>0&&(t=n,i=o)}let b=r[2*t],v=r[2*t+1],y=1/0;for(let i=0;i<l;i++){if(i===e||i===t)continue;let o=function(e,t,n,r,i,o){let s=n-e,a=r-t,l=i-e,u=o-t,c=s*s+a*a,d=l*l+u*u,h=.5/(s*u-a*l),f=(u*c-a*d)*h,p=(s*d-l*c)*h;return f*f+p*p}(m,g,b,v,r[2*i],r[2*i+1]);o<y&&(n=i,y=o)}let x=r[2*n],k=r[2*n+1];if(y===1/0){for(let e=0;e<l;e++)this._dists[e]=r[2*e]-r[0]||r[2*e+1]-r[1];I(this._ids,this._dists,0,l-1);let e=new Uint32Array(l),t=0;for(let n=0,r=-1/0;n<l;n++){let i=this._ids[n],o=this._dists[i];o>r&&(e[t++]=i,r=o)}this.hull=e.subarray(0,t),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(0>O(m,g,b,v,x,k)){let e=t,r=b,i=v;t=n,b=x,v=k,n=e,x=r,k=i}let w=function(e,t,n,r,i,o){let s=n-e,a=r-t,l=i-e,u=o-t,c=s*s+a*a,d=l*l+u*u,h=.5/(s*u-a*l);return{x:e+(u*c-a*d)*h,y:t+(s*d-l*c)*h}}(m,g,b,v,x,k);this._cx=w.x,this._cy=w.y;for(let e=0;e<l;e++)this._dists[e]=z(r[2*e],r[2*e+1],w.x,w.y);I(this._ids,this._dists,0,l-1),this._hullStart=e;let C=3;o[e]=i[n]=t,o[t]=i[e]=n,o[n]=i[t]=e,s[e]=0,s[t]=1,s[n]=2,a.fill(-1),a[this._hashKey(m,g)]=e,a[this._hashKey(b,v)]=t,a[this._hashKey(x,k)]=n,this.trianglesLen=0,this._addTriangle(e,t,n,-1,-1,-1);for(let l=0,u,c;l<this._ids.length;l++){let d=this._ids[l],h=r[2*d],f=r[2*d+1];if(l>0&&2220446049250313e-31>=Math.abs(h-u)&&2220446049250313e-31>=Math.abs(f-c)||(u=h,c=f,d===e||d===t||d===n))continue;let p=0;for(let e=0,t=this._hashKey(h,f);e<this._hashSize&&(-1===(p=a[(t+e)%this._hashSize])||p===o[p]);e++);let m=p=i[p],g;for(;g=o[m],O(h,f,r[2*m],r[2*m+1],r[2*g],r[2*g+1])>=0;)if((m=g)===p){m=-1;break}if(-1===m)continue;let b=this._addTriangle(m,d,o[m],-1,-1,s[m]);s[d]=this._legalize(b+2),s[m]=b,C++;let v=o[m];for(;g=o[v],0>O(h,f,r[2*v],r[2*v+1],r[2*g],r[2*g+1]);)b=this._addTriangle(v,d,g,s[d],-1,s[v]),s[d]=this._legalize(b+2),o[v]=v,C--,v=g;if(m===p)for(;0>O(h,f,r[2*(g=i[m])],r[2*g+1],r[2*m],r[2*m+1]);)b=this._addTriangle(g,d,m,-1,s[m],s[g]),this._legalize(b+2),s[g]=b,o[m]=m,C--,m=g;this._hullStart=i[d]=m,o[m]=i[v]=d,o[d]=v,a[this._hashKey(h,f)]=d,a[this._hashKey(r[2*m],r[2*m+1])]=m}this.hull=new Uint32Array(C);for(let e=0,t=this._hullStart;e<C;e++)this.hull[e]=t,t=o[t];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(e,t){return Math.floor(function(e,t){let n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}(e-this._cx,t-this._cy)*this._hashSize)%this._hashSize}_legalize(e){let{_triangles:t,_halfedges:n,coords:r}=this,i=0,o=0;for(;;){let s=n[e],a=e-e%3;
1if(o=a+(e+2)%3,-1===s){if(0===i)break;e=R[--i];continue}let l=s-s%3,u=a+(e+1)%3,c=l+(s+2)%3,d=t[o],h=t[e],f=t[u],p=t[c];if(function(e,t,n,r,i,o,s,a){let l=e-s,u=t-a,c=n-s,d=r-a,h=i-s,f=o-a,p=c*c+d*d,m=h*h+f*f;return l*(d*m-p*f)-u*(c*m-p*h)+(l*l+u*u)*(c*f-d*h)<0}(r[2*d],r[2*d+1],r[2*h],r[2*h+1],r[2*f],r[2*f+1],r[2*p],r[2*p+1])){t[e]=p,t[s]=d;let r=n[c];if(-1===r){let t=this._hullStart;do{if(this._hullTri[t]===c){this._hullTri[t]=e;break}t=this._hullPrev[t]}while(t!==this._hullStart)}this._link(e,r),this._link(s,n[o]),this._link(o,c);let a=l+(s+1)%3;i<R.length&&(R[i++]=a)}else{if(0===i)break;e=R[--i]}}return o}_link(e,t){this._halfedges[e]=t,-1!==t&&(this._halfedges[t]=e)}_addTriangle(e,t,n,r,i,o){let s=this.trianglesLen;return this._triangles[s]=e,this._triangles[s+1]=t,this._triangles[s+2]=n,this._link(s,r),this._link(s+1,i),this._link(s+2,o),this.trianglesLen+=3,s}}function z(e,t,n,r){let i=e-n,o=t-r;return i*i+o*o}function I(e,t,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){let r=e[i],o=t[r],s=i-1;for(;s>=n&&t[e[s]]>o;)e[s+1]=e[s--];e[s+1]=r}else{let i=n+r>>1,o=n+1,s=r;B(e,i,o),t[e[n]]>t[e[r]]&&B(e,n,r),t[e[o]]>t[e[r]]&&B(e,o,r),t[e[n]]>t[e[o]]&&B(e,n,o);let a=e[o],l=t[a];for(;;){do o++;while(t[e[o]]<l);do s--;while(t[e[s]]>l);if(s<o)break;B(e,o,s)}e[n+1]=e[s],e[s]=a,r-o+1>=s-n?(I(e,t,o,r),I(e,t,n,s-1)):(I(e,t,n,s-1),I(e,t,o,r))}}function B(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function j(e){return e[0]}function N(e){return e[1]}class P{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(e,t){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(e,t){this._+=`L${this._x1=+e},${this._y1=+t}`}arc(e,t,n){e=+e,t=+t;let r=e+(n=+n),i=t;if(n<0)throw Error("negative radius");null===this._x1?this._+=`M${r},${i}`:(Math.abs(this._x1-r)>1e-6||Math.abs(this._y1-i)>1e-6)&&(this._+="L"+r+","+i),n&&(this._+=`A${n},${n},0,1,1,${e-n},${t}A${n},${n},0,1,1,${this._x1=r},${this._y1=i}`)}rect(e,t,n,r){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${+n}v${+r}h${-n}Z`}value(){return this._||null}}class H{constructor(){this._=[]}moveTo(e,t){this._.push([e,t])}closePath(){this._.push(this._[0].slice())}lineTo(e,t){this._.push([e,t])}value(){return this._.length?this._:null}}class W{constructor(e,[t,n,r,i]=[0,0,960,500]){if(!((r=+r)>=(t=+t))||!((i=+i)>=(n=+n)))throw Error("invalid bounds");this.delaunay=e,this._circumcenters=new Float64Array(2*e.points.length),this.vectors=new Float64Array(2*e.points.length),this.xmax=r,this.xmin=t,this.ymax=i,this.ymin=n,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){let e,t;let{delaunay:{points:n,hull:r,triangles:i},vectors:o}=this,s=this.circumcenters=this._circumcenters.subarray(0,i.length/3*2);for(let o=0,a=0,l=i.length,u,c;o<l;o+=3,a+=2){let l=2*i[o],d=2*i[o+1],h=2*i[o+2],f=n[l],p=n[l+1],m=n[d],g=n[d+1],b=n[h],v=n[h+1],y=m-f,x=g-p,k=b-f,w=v-p,C=(y*w-x*k)*2;if(1e-9>Math.abs(C)){if(void 0===e){for(let i of(e=t=0,r))e+=n[2*i],t+=n[2*i+1];e/=r.length,t/=r.length}let i=1e9*Math.sign((e-f)*w-(t-p)*k);u=(f+b)/2-i*w,c=(p+v)/2+i*k}else{let e=1/C,t=y*y+x*x,n=k*k+w*w;u=f+(w*t-x*n)*e,c=p+(y*n-k*t)*e}s[a]=u,s[a+1]=c}let a=r[r.length-1],l,u=4*a,c,d=n[2*a],h,f=n[2*a+1];o.fill(0);for(let e=0;e<r.length;++e)a=r[e],l=u,c=d,h=f,u=4*a,d=n[2*a],f=n[2*a+1],o[l+2]=o[u]=h-f,o[l+3]=o[u+1]=d-c}render(e){let t=null==e?e=new P:void 0,{delaunay:{halfedges:n,inedges:r,hull:i},circumcenters:o,vectors:s}=this;if(i.length<=1)return null;for(let t=0,r=n.length;t<r;++t){let r=n[t];if(r<t)continue;let i=2*Math.floor(t/3),s=2*Math.floor(r/3),a=o[i],l=o[i+1],u=o[s],c=o[s+1];this._renderSegment(a,l,u,c,e)}let a,l=i[i.length-1];for(let t=0;t<i.length;++t){a=l;let n=2*Math.floor(r[l=i[t]]/3),u=o[n],c=o[n+1],d=4*a,h=this._project(u,c,s[d+2],s[d+3]);h&&this._renderSegment(u,c,h[0],h[1],e)}return t&&t.value()}renderBounds(e){let t=null==e?e=new P:void 0;return e.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),t&&t.value()}renderCell(e,t){let n=null==t?t=new P:void 0,r=this._clip(e);if(null===r||!r.length)return;t.moveTo(r[0],r[1]);let i=r.length;for(;r[0]===r[i-2]&&r[1]===r[i-1]&&i>1;)i-=2;for(let e=2;e<i;e+=2)(r[e]!==r[e-2]||r[e+1]!==r[e-1])&&t.lineTo(r[e],r[e+1]);
1return t.closePath(),n&&n.value()}*cellPolygons(){let{delaunay:{points:e}}=this;for(let t=0,n=e.length/2;t<n;++t){let e=this.cellPolygon(t);e&&(e.index=t,yield e)}}cellPolygon(e){let t=new H;return this.renderCell(e,t),t.value()}_renderSegment(e,t,n,r,i){let o;let s=this._regioncode(e,t),a=this._regioncode(n,r);0===s&&0===a?(i.moveTo(e,t),i.lineTo(n,r)):(o=this._clipSegment(e,t,n,r,s,a))&&(i.moveTo(o[0],o[1]),i.lineTo(o[2],o[3]))}contains(e,t,n){return(t=+t)==t&&(n=+n)==n&&this.delaunay._step(e,t,n)===e}*neighbors(e){let t=this._clip(e);if(t)for(let n of this.delaunay.neighbors(e)){let e=this._clip(n);if(e){n:for(let r=0,i=t.length;r<i;r+=2)for(let o=0,s=e.length;o<s;o+=2)if(t[r]===e[o]&&t[r+1]===e[o+1]&&t[(r+2)%i]===e[(o+s-2)%s]&&t[(r+3)%i]===e[(o+s-1)%s]){yield n;break n}}}}_cell(e){let{circumcenters:t,delaunay:{inedges:n,halfedges:r,triangles:i}}=this,o=n[e];if(-1===o)return null;let s=[],a=o;do{let n=Math.floor(a/3);if(s.push(t[2*n],t[2*n+1]),i[a=a%3==2?a-2:a+1]!==e)break;a=r[a]}while(a!==o&&-1!==a);return s}_clip(e){if(0===e&&1===this.delaunay.hull.length)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];let t=this._cell(e);if(null===t)return null;let{vectors:n}=this,r=4*e;return this._simplify(n[r]||n[r+1]?this._clipInfinite(e,t,n[r],n[r+1],n[r+2],n[r+3]):this._clipFinite(e,t))}_clipFinite(e,t){let n=t.length,r=null,i,o,s=t[n-2],a=t[n-1],l,u=this._regioncode(s,a),c,d=0;for(let h=0;h<n;h+=2)if(i=s,o=a,s=t[h],a=t[h+1],l=u,u=this._regioncode(s,a),0===l&&0===u)c=d,d=0,r?r.push(s,a):r=[s,a];else{let t,n,h,f,p;if(0===l){if(null===(t=this._clipSegment(i,o,s,a,l,u)))continue;[n,h,f,p]=t}else{if(null===(t=this._clipSegment(s,a,i,o,u,l)))continue;[f,p,n,h]=t,c=d,d=this._edgecode(n,h),c&&d&&this._edge(e,c,d,r,r.length),r?r.push(n,h):r=[n,h]}c=d,d=this._edgecode(f,p),c&&d&&this._edge(e,c,d,r,r.length),r?r.push(f,p):r=[f,p]}if(r)c=d,d=this._edgecode(r[0],r[1]),c&&d&&this._edge(e,c,d,r,r.length);else if(this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return r}_clipSegment(e,t,n,r,i,o){let s=i<o;for(s&&([e,t,n,r,i,o]=[n,r,e,t,o,i]);;){if(0===i&&0===o)return s?[n,r,e,t]:[e,t,n,r];if(i&o)return null;let a,l,u=i||o;8&u?(a=e+(n-e)*(this.ymax-t)/(r-t),l=this.ymax):4&u?(a=e+(n-e)*(this.ymin-t)/(r-t),l=this.ymin):2&u?(l=t+(r-t)*(this.xmax-e)/(n-e),a=this.xmax):(l=t+(r-t)*(this.xmin-e)/(n-e),a=this.xmin),i?(e=a,t=l,i=this._regioncode(e,t)):(n=a,r=l,o=this._regioncode(n,r))}}_clipInfinite(e,t,n,r,i,o){let s=Array.from(t),a;if((a=this._project(s[0],s[1],n,r))&&s.unshift(a[0],a[1]),(a=this._project(s[s.length-2],s[s.length-1],i,o))&&s.push(a[0],a[1]),s=this._clipFinite(e,s))for(let t=0,n=s.length,r,i=this._edgecode(s[n-2],s[n-1]);t<n;t+=2)r=i,i=this._edgecode(s[t],s[t+1]),r&&i&&(t=this._edge(e,r,i,s,t),n=s.length);else this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(s=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return s}_edge(e,t,n,r,i){for(;t!==n;){let n,o;switch(t){case 5:t=4;continue;case 4:t=6,n=this.xmax,o=this.ymin;break;case 6:t=2;continue;case 2:t=10,n=this.xmax,o=this.ymax;break;case 10:t=8;continue;case 8:t=9,n=this.xmin,o=this.ymax;break;case 9:t=1;continue;case 1:t=5,n=this.xmin,o=this.ymin}(r[i]!==n||r[i+1]!==o)&&this.contains(e,n,o)&&(r.splice(i,0,n,o),i+=2)}return i}_project(e,t,n,r){let i=1/0,o,s,a;if(r<0){if(t<=this.ymin)return null;(o=(this.ymin-t)/r)<i&&(a=this.ymin,s=e+(i=o)*n)}else if(r>0){if(t>=this.ymax)return null;(o=(this.ymax-t)/r)<i&&(a=this.ymax,s=e+(i=o)*n)}if(n>0){if(e>=this.xmax)return null;(o=(this.xmax-e)/n)<i&&(s=this.xmax,a=t+(i=o)*r)}else if(n<0){if(e<=this.xmin)return null;(o=(this.xmin-e)/n)<i&&(s=this.xmin,a=t+(i=o)*r)}return[s,a]}_edgecode(e,t){return(e===this.xmin?1:e===this.xmax?2:0)|(t===this.ymin?4:t===this.ymax?8:0)}_regioncode(e,t){return(e<this.xmin?1:e>this.xmax?2:0)|(t<this.ymin?4:t>this.ymax?8:0)}_simplify(e){if(e&&e.length>4){for(let t=0;t<e.length;t+=2){let n=(t+2)%e.length,r=(t+4)%e.length;(e[t]===e[n]&&e[n]===e[r]||e[t+1]===e[n+1]&&e[n+1]===e[r+1])&&(e.splice(n,2),t-=2)}e.length||(e=null)}return e}}let $=2*Math.PI,Z=Math.pow;function q(e){return e[0]}function U(e){return e[1]}class V{static from(e,t=q,n=U,r){return new V("length"in e?function(e,t,n,r){let i=e.length,o=new Float64Array(2*i);for(let s=0;s<i;++s){let i=e[s];o[2*s]=t.call(r,i,s,e),o[2*s+1]=n.call(r,i,s,e)}return o}(e,t,n,r):Float64Array.from(function*(e,t,n,r){let i=0;
1for(let o of e)yield t.call(r,o,i,e),yield n.call(r,o,i,e),++i}(e,t,n,r)))}constructor(e){this._delaunator=new F(e),this.inedges=new Int32Array(e.length/2),this._hullIndex=new Int32Array(e.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){let e=this._delaunator,t=this.points;if(e.hull&&e.hull.length>2&&function(e){let{triangles:t,coords:n}=e;for(let e=0;e<t.length;e+=3){let r=2*t[e],i=2*t[e+1],o=2*t[e+2];if((n[o]-n[r])*(n[i+1]-n[r+1])-(n[i]-n[r])*(n[o+1]-n[r+1])>1e-10)return!1}return!0}(e)){this.collinear=Int32Array.from({length:t.length/2},(e,t)=>t).sort((e,n)=>t[2*e]-t[2*n]||t[2*e+1]-t[2*n+1]);let e=this.collinear[0],i=this.collinear[this.collinear.length-1],o=[t[2*e],t[2*e+1],t[2*i],t[2*i+1]],s=1e-8*Math.hypot(o[3]-o[1],o[2]-o[0]);for(let e=0,i=t.length/2;e<i;++e){var n,r;let i=[(n=t[2*e])+Math.sin(n+(r=t[2*e+1]))*s,r+Math.cos(n-r)*s];t[2*e]=i[0],t[2*e+1]=i[1]}this._delaunator=new F(t)}else delete this.collinear;let i=this.halfedges=this._delaunator.halfedges,o=this.hull=this._delaunator.hull,s=this.triangles=this._delaunator.triangles,a=this.inedges.fill(-1),l=this._hullIndex.fill(-1);for(let e=0,t=i.length;e<t;++e){let t=s[e%3==2?e-2:e+1];(-1===i[e]||-1===a[t])&&(a[t]=e)}for(let e=0,t=o.length;e<t;++e)l[o[e]]=e;o.length<=2&&o.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=o[0],a[o[0]]=1,2===o.length&&(a[o[1]]=0,this.triangles[1]=o[1],this.triangles[2]=o[1]))}voronoi(e){return new W(this,e)}*neighbors(e){let{inedges:t,hull:n,_hullIndex:r,halfedges:i,triangles:o,collinear:s}=this;if(s){let t=s.indexOf(e);t>0&&(yield s[t-1]),t<s.length-1&&(yield s[t+1]);return}let a=t[e];if(-1===a)return;let l=a,u=-1;do{if(yield u=o[l],o[l=l%3==2?l-2:l+1]!==e)return;if(-1===(l=i[l])){let t=n[(r[e]+1)%n.length];t!==u&&(yield t);return}}while(l!==a)}find(e,t,n=0){let r;if((e=+e)!=e||(t=+t)!=t)return -1;let i=n;for(;(r=this._step(n,e,t))>=0&&r!==n&&r!==i;)n=r;return r}_step(e,t,n){let{inedges:r,hull:i,_hullIndex:o,halfedges:s,triangles:a,points:l}=this;if(-1===r[e]||!l.length)return(e+1)%(l.length>>1);let u=e,c=Z(t-l[2*e],2)+Z(n-l[2*e+1],2),d=r[e],h=d;do{let r=a[h],d=Z(t-l[2*r],2)+Z(n-l[2*r+1],2);if(d<c&&(c=d,u=r),a[h=h%3==2?h-2:h+1]!==e)break;if(-1===(h=s[h])){if((h=i[(o[e]+1)%i.length])!==r&&Z(t-l[2*h],2)+Z(n-l[2*h+1],2)<c)return h;break}}while(h!==d);return u}render(e){let t=null==e?e=new P:void 0,{points:n,halfedges:r,triangles:i}=this;for(let t=0,o=r.length;t<o;++t){let o=r[t];if(o<t)continue;let s=2*i[t],a=2*i[o];e.moveTo(n[s],n[s+1]),e.lineTo(n[a],n[a+1])}return this.renderHull(e),t&&t.value()}renderPoints(e,t){void 0!==t||e&&"function"==typeof e.moveTo||(t=e,e=null),t=void 0==t?2:+t;let n=null==e?e=new P:void 0,{points:r}=this;for(let n=0,i=r.length;n<i;n+=2){let i=r[n],o=r[n+1];e.moveTo(i+t,o),e.arc(i,o,t,0,$)}return n&&n.value()}renderHull(e){let t=null==e?e=new P:void 0,{hull:n,points:r}=this,i=2*n[0],o=n.length;e.moveTo(r[i],r[i+1]);for(let t=1;t<o;++t){let i=2*n[t];e.lineTo(r[i],r[i+1])}return e.closePath(),t&&t.value()}hullPolygon(){let e=new H;return this.renderHull(e),e.value()}renderTriangle(e,t){let n=null==t?t=new P:void 0,{points:r,triangles:i}=this,o=2*i[e*=3],s=2*i[e+1],a=2*i[e+2];return t.moveTo(r[o],r[o+1]),t.lineTo(r[s],r[s+1]),t.lineTo(r[a],r[a+1]),t.closePath(),n&&n.value()}*trianglePolygons(){let{triangles:e}=this;for(let t=0,n=e.length/3;t<n;++t)yield this.trianglePolygon(t)}trianglePolygon(e){let t=new H;return this.renderTriangle(e,t),t.value()}}function Y(){return(Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}function G(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var J={xDomain:[0,1],yDomain:[0,1],layers:["links","cells","points","bounds"],enableLinks:!1,linkLineWidth:1,linkLineColor:"#bbbbbb",enableCells:!0,cellLineWidth:2,cellLineColor:"#000000",pointSize:4,pointColor:"#666666",role:"img"},X=function(e){return[e.x,e.y]},K=i.KF,Q="cursor",ee=function(e){var t=e.points,n=e.getNodePosition,r=void 0===n?X:n,i=e.margin,o=void 0===i?K:i;return t.map(function(e){var t=r(e),n=t[0],i=t[1];return[n+o.left,i+o.top]})},et=function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,o=void 0===i?K:i,s=e.debug,a=V.from(t),l=s?a.voronoi([0,0,o.left+n+o.right,o.top+r+o.bottom]):void 0;return{points:t,delaunay:a,voronoi:l}},en=function(e){var t=e.points,n=e.getNodePosition,i=void 0===n?X:n,o=e.width,s=e.he
1ight,a=e.margin,l=void 0===a?K:a,u=e.debug;return(0,r.useMemo)(function(){return et({points:ee({points:t,margin:l,getNodePosition:i}),width:o,height:s,margin:l,debug:u})},[i,t,o,s,l,u])},er=function(e){var t=e.data,n=e.width,i=e.height,o=e.xDomain,s=e.yDomain,a=(0,r.useMemo)(function(){return(0,x.Z)().domain(o).range([0,n])},[o,n]),l=(0,r.useMemo)(function(){return(0,x.Z)().domain(s).range([0,i])},[s,i]),u=(0,r.useMemo)(function(){return t.map(function(e){return{x:a(e.x),y:l(e.y),data:e}})},[t,a,l]);return(0,r.useMemo)(function(){var e=V.from(u.map(function(e){return[e.x,e.y]})),t=e.voronoi([0,0,n,i]);return{points:u,delaunay:e,voronoi:t}},[u,n,i])},ei=function(e){var t=e.points,n=e.delaunay,i=e.voronoi;return(0,r.useMemo)(function(){return{points:t,delaunay:n,voronoi:i}},[t,n,i])},eo=function(e){var t=e.elementRef,n=e.nodes,o=e.getNodePosition,s=void 0===o?X:o,l=e.delaunay,u=e.setCurrent,c=e.margin,d=void 0===c?K:c,h=e.detectionRadius,f=void 0===h?1/0:h,p=e.isInteractive,m=void 0===p||p,g=e.onMouseEnter,b=e.onMouseMove,v=e.onMouseLeave,y=e.onMouseDown,x=e.onMouseUp,k=e.onClick,w=e.onDoubleClick,C=e.onTouchStart,_=e.onTouchMove,A=e.onTouchEnd,M=e.enableTouchCrosshair,S=void 0!==M&&M,E=e.tooltip,T=e.tooltipPosition,D=void 0===T?Q:T,L=e.tooltipAnchor,O=void 0===L?"top":L,R=(0,r.useState)(null),F=R[0],z=R[1],I=(0,r.useRef)(null);(0,r.useEffect)(function(){I.current=F},[I,F]);var B=(0,r.useCallback)(function(e){if(!t.current||0===n.length)return null;var r=(0,i.P6)(t.current,e),o=r[0],a=r[1],u=l.find(o,a),c=void 0!==u?n[u]:null;if(c&&f!==1/0){var h=s(c),p=h[0],m=h[1];(0,i.Sp)(o,a,p+d.left,m+d.top)>f&&(u=null,c=null)}return null===u||null===c?null:[u,c]},[t,l,n,s,d,f]),j=(0,a.lL)(),N=j.showTooltipAt,P=j.showTooltipFromEvent,H=j.hideTooltip,W=(0,r.useMemo)(function(){if(E)return"cursor"===D?function(e,t){P(E(e),t,O)}:function(e){var t=s(e),n=t[0],r=t[1];N(E(e),[n+d.left,r+d.top],O)}},[N,P,E,D,O,s,d]),$=(0,r.useCallback)(function(e){var t=B(e);if(z(t),null==u||u(t?t[1]:null),t){var n=t[1];null==W||W(n,e),null==g||g(t[1],e)}},[B,z,u,W,g]),Z=(0,r.useCallback)(function(e){var t=B(e);if(z(t),t){var n=t[0],r=t[1];if(null==u||u(r),null==W||W(r,e),I.current){var i=I.current,o=i[0],s=i[1];n!==o?null==v||v(s,e):null==b||b(r,e)}else null==g||g(r,e)}else null==u||u(null),null==H||H(),I.current&&(null==v||v(I.current[1],e))},[B,z,u,I,g,b,v,W,H]),q=(0,r.useCallback)(function(e){z(null),null==u||u(null),H(),v&&I.current&&v(I.current[1],e)},[z,u,I,H,v]),U=(0,r.useCallback)(function(e){var t=B(e);z(t),t&&(null==y||y(t[1],e))},[B,z,y]),V=(0,r.useCallback)(function(e){var t=B(e);z(t),t&&(null==x||x(t[1],e))},[B,z,x]),Y=(0,r.useCallback)(function(e){var t=B(e);z(t),t&&(null==k||k(t[1],e))},[B,z,k]),G=(0,r.useCallback)(function(e){var t=B(e);z(t),t&&(null==w||w(t[1],e))},[B,z,w]),J=(0,r.useCallback)(function(e){var t=B(e);S&&(z(t),null==u||u(t?t[1]:null)),t&&(null==C||C(t[1],e))},[B,z,u,S,C]),ee=(0,r.useCallback)(function(e){var t=B(e);S&&(z(t),null==u||u(t?t[1]:null)),t&&(null==_||_(t[1],e))},[B,z,u,S,_]),et=(0,r.useCallback)(function(e){S&&(z(null),null==u||u(null)),A&&I.current&&A(I.current[1],e)},[S,z,u,A,I]);return{current:F,handleMouseEnter:m?$:void 0,handleMouseMove:m?Z:void 0,handleMouseLeave:m?q:void 0,handleMouseDown:m?U:void 0,handleMouseUp:m?V:void 0,handleClick:m?Y:void 0,handleDoubleClick:m?G:void 0,handleTouchStart:m?J:void 0,handleTouchMove:m?ee:void 0,handleTouchEnd:m?et:void 0}},es=["theme"],ea=function(e){var t=e.data,n=e.width,o=e.height,s=e.margin,a=e.layers,l=void 0===a?J.layers:a,u=e.xDomain,c=void 0===u?J.xDomain:u,d=e.yDomain,h=void 0===d?J.yDomain:d,f=e.enableLinks,p=void 0===f?J.enableLinks:f,m=e.linkLineWidth,g=void 0===m?J.linkLineWidth:m,b=e.linkLineColor,y=void 0===b?J.linkLineColor:b,x=e.enableCells,k=void 0===x?J.enableCells:x,w=e.cellLineWidth,C=void 0===w?J.cellLineWidth:w,_=e.cellLineColor,A=void 0===_?J.cellLineColor:_,M=e.enablePoints,S=void 0===M?J.enableCells:M,E=e.pointSize,T=void 0===E?J.pointSize:E,D=e.pointColor,L=void 0===D?J.pointColor:D,O=e.role,R=void 0===O?J.role:O,F=e.forwardedRef,z=(0,i.Bs)(n,o,s),I=z.outerWidth,B=z.outerHeight,j=z.margin,N=er({data:t,width:z.innerWidth,height:z.innerHe
1ight,xDomain:c,yDomain:h}),P=N.points,H=N.delaunay,W=N.voronoi,$={links:null,cells:null,points:null,bounds:null};p&&l.includes("links")&&($.links=(0,v.jsx)("path",{stroke:y,strokeWidth:g,fill:"none",d:H.render()},"links")),k&&l.includes("cells")&&($.cells=(0,v.jsx)("path",{d:W.render(),fill:"none",stroke:A,strokeWidth:C},"cells")),S&&l.includes("points")&&($.points=(0,v.jsx)("path",{stroke:"none",fill:L,d:H.renderPoints(void 0,T/2)},"points")),l.includes("bounds")&&($.bounds=(0,v.jsx)("path",{fill:"none",stroke:A,strokeWidth:C,d:W.renderBounds()},"bounds"));var Z=ei({points:P,delaunay:H,voronoi:W});return(0,v.jsx)(i.tM,{width:I,height:B,margin:j,role:R,ref:F,children:l.map(function(e,t){return void 0!==$[e]?$[e]:"function"==typeof e?(0,v.jsx)(r.Fragment,{children:(0,r.createElement)(e,Z)},t):null})})},el=(0,r.forwardRef)(function(e,t){var n=e.theme,r=G(e,es);return(0,v.jsx)(i.W2,{isInteractive:!1,animate:!1,theme:n,children:(0,v.jsx)(ea,Y({},r,{forwardedRef:t}))})}),eu=["defaultWidth","defaultHeight","onResize","debounceResize"],ec=((0,r.forwardRef)(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,o=e.onResize,s=e.debounceResize,a=G(e,eu);return(0,v.jsx)(i.d,{defaultWidth:n,defaultHeight:r,onResize:o,debounceResize:s,children:function(e){var n=e.width,r=e.height;return(0,v.jsx)(el,Y({},a,{width:n,height:r,ref:t}))}})}),function(e){var t=e.nodes,n=e.width,i=e.height,o=e.margin,s=void 0===o?K:o,a=e.getNodePosition,l=e.setCurrent,u=e.onMouseEnter,c=e.onMouseMove,d=e.onMouseLeave,h=e.onMouseDown,f=e.onMouseUp,p=e.onClick,m=e.onDoubleClick,g=e.onTouchStart,b=e.onTouchMove,y=e.onTouchEnd,x=e.enableTouchCrosshair,k=e.detectionRadius,w=void 0===k?1/0:k,C=e.tooltip,_=e.tooltipPosition,A=e.tooltipAnchor,M=e.debug,S=(0,r.useRef)(null),E=en({points:t,getNodePosition:a,width:n,height:i,margin:s,debug:M}),T=E.delaunay,D=E.voronoi,L=eo({elementRef:S,nodes:t,delaunay:T,margin:s,detectionRadius:w,setCurrent:l,onMouseEnter:u,onMouseMove:c,onMouseLeave:d,onMouseDown:h,onMouseUp:f,onClick:p,onDoubleClick:m,onTouchStart:g,onTouchMove:b,onTouchEnd:y,enableTouchCrosshair:void 0!==x&&x,tooltip:C,tooltipPosition:void 0===_?Q:_,tooltipAnchor:void 0===A?"top":A}),O=L.current,R=L.handleMouseEnter,F=L.handleMouseMove,z=L.handleMouseLeave,I=L.handleMouseDown,B=L.handleMouseUp,j=L.handleClick,N=L.handleDoubleClick,P=L.handleTouchStart,H=L.handleTouchMove,W=L.handleTouchEnd,$=(0,r.useMemo)(function(){if(M&&D)return D.render()},[M,D]);return(0,v.jsxs)("g",{ref:S,transform:"translate("+-s.left+","+-s.top+")",children:[M&&D&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("path",{d:$,stroke:"red",strokeWidth:1,opacity:.75}),w<1/0&&(0,v.jsx)("path",{stroke:"red",strokeWidth:.35,fill:"none",d:T.renderPoints(void 0,w)}),O&&(0,v.jsx)("path",{fill:"pink",opacity:.35,d:D.renderCell(O[0])})]}),(0,v.jsx)("rect",{"data-ref":"mesh-interceptor",width:s.left+n+s.right,height:s.top+i+s.bottom,fill:"red",opacity:0,style:{cursor:"auto"},onMouseEnter:R,onMouseMove:F,onMouseLeave:z,onMouseDown:I,onMouseUp:B,onTouchStart:P,onTouchMove:H,onTouchEnd:W,onClick:j,onDoubleClick:N})]})}),ed=function(e,t){e.save(),e.globalAlpha=.75,e.beginPath(),t.render(e),e.strokeStyle="red",e.lineWidth=1,e.stroke(),e.restore()},eh=function(e,t,n){e.save(),e.globalAlpha=.35,e.beginPath(),t.renderCell(n,e),e.fillStyle="pink",e.fill(),e.restore()};function ef(){return(ef=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}function ep(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var em,eg={xScale:{type:"point"},yScale:{type:"linear",min:0,max:"auto"},curve:"linear",colors:{scheme:"nivo"},lineWidth:2,layers:["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"],enablePoints:!0,pointSize:6,pointColor:{from:"series.color"},pointBorderWidth:0,pointBorderColor:{theme:"background"},enableArea:!1,areaBaselineValue:0,areaOpacity:.2,enableGridX:!0,enableGridY:!0,legends:[],isInteractive:!0,tooltip:(0,r.memo)(function(e){var t=e.point;return(0,v.jsx)(a._5,{id:(0,v.jsxs)("span",{children:["x: ",(0,v.jsx)("strong",{children:t.data.xFormatted}),", y:"," ",(0,v.jsx)("strong",{children:t.data.yFormatted})]}),enableChip:!0,color:t.seriesColor})}),sliceTooltip:(0,r.memo)(function(e){var t=e.slice,n=e.axis,r=(0,m.Fg)(),i="x"===n?"y":"x";return(0,v.jsx)(a.zI,{rows:t.points.map(function(e){return[(0,v.jsx)(a.Af,{color:e.seriesColor,style:r.tooltip.chip},"chip"),e.seriesId,(0,v.jsx)("span",{style:r.tooltip.tableCellValue,children:e.data[i+"Formatted"]},"value")]})})}),debugMesh:!1,renderWrapper:!0},eb=ef({},eg,{defs:[],fill:[],enablePointLabel:!1,pointLabel:"data.yFormatted",areaBlendMode:"normal",axisTo
1p:null,axisRight:null,axisBottom:o.WG,axisLeft:o.WG,useMesh:!1,enableSlices:!1,debugSlices:!1,enableCrosshair:!0,crosshairType:"bottom-left",enableTouchCrosshair:!1,initialHiddenIds:[],animate:!0,motionConfig:"gentle",role:"img",isFocusable:!1}),ev=ef({},eg,{pixelRatio:"undefined"!=typeof window&&null!=(em=window.devicePixelRatio)?em:1,axisTop:null,axisRight:null,axisBottom:o.WG,axisLeft:o.WG}),ey=function(e){var t=e.componentId,n=e.enableSlices,i=e.points,o=e.width,s=e.height;return(0,r.useMemo)(function(){if("x"===n){var e=new Map;return i.forEach(function(t){null!==t.data.x&&null!==t.data.y&&(e.has(t.x)?e.get(t.x).push(t):e.set(t.x,[t]))}),Array.from(e.entries()).sort(function(e,t){return e[0]-t[0]}).map(function(e,n,r){var i,a,l=e[0],u=e[1],c=r[n-1],d=r[n+1];return i=c?l-(l-c[0])/2:l,a=d?l-i+(d[0]-l)/2:o-i,{id:"slice:"+t+":"+l,x0:i,x:l,y0:0,y:0,width:a,height:s,points:u.reverse()}})}if("y"===n){var r=new Map;return i.forEach(function(e){null!==e.data.x&&null!==e.data.y&&(r.has(e.y)?r.get(e.y).push(e):r.set(e.y,[e]))}),Array.from(r.entries()).sort(function(e,t){return e[0]-t[0]}).map(function(e,t,n){var r,i,a=e[0],l=e[1],u=n[t-1],c=n[t+1];return r=u?a-(a-u[0])/2:a,i=c?a-r+(c[0]-a)/2:s-r,{id:a,x0:0,x:0,y0:r,y:a,width:o,height:i,points:l.reverse()}})}return[]},[t,n,s,i,o])},ex=function(e){var t,n,o,s,a,v,y,x,k,w,C=e.data,_=e.xScale,A=void 0===_?eg.xScale:_,M=e.xFormat,S=e.yScale,E=void 0===S?eg.yScale:S,T=e.yFormat,D=e.width,L=e.height,O=e.colors,R=void 0===O?eg.colors:O,F=e.curve,z=void 0===F?eg.curve:F,I=e.areaBaselineValue,B=void 0===I?eg.areaBaselineValue:I,j=e.pointColor,N=void 0===j?eg.pointColor:j,P=e.pointBorderColor,H=void 0===P?eg.pointBorderColor:P,W=e.enableSlices,$=void 0===W?eb.enableSlices:W,Z=e.initialHiddenIds,q=void 0===Z?eb.initialHiddenIds:Z,U=(0,r.useState)(p("line"))[0],V=(0,i.O_)(M),Y=(0,i.O_)(T),G=(0,g.U)(R,"id"),J=(0,m.Fg)(),X=(0,g.Bf)(N,J),K=(0,g.Bf)(H,J),Q=(0,r.useState)(null!=q?q:[]),ee=Q[0],et=Q[1],en=(0,r.useMemo)(function(){return(0,b.Gi)(C.filter(function(e){return -1===ee.indexOf(e.id)}),A,E,D,L)},[C,ee,A,E,D,L]),er=en.xScale,ei=en.yScale,eo=en.series,es=(0,r.useMemo)(function(){var e=C.map(function(e){return{id:e.id,label:""+e.id,color:G(e)}}),t=e.map(function(e){return ef({},eo.find(function(t){return t.id===e.id}),{color:e.color})}).filter(function(e){return!!e.id});return{legendData:e.map(function(e){return ef({},e,{hidden:!t.find(function(t){return t.id===e.id})})}).reverse(),series:t}},[C,eo,G]),ea=es.legendData,el=es.series,eu=(0,r.useCallback)(function(e){et(function(t){return t.indexOf(e)>-1?t.filter(function(t){return t!==e}):[].concat(t,[e])})},[]),ec=(n=(t={series:el,getPointColor:X,getPointBorderColor:K,formatX:V,formatY:Y}).series,o=t.getPointColor,s=t.getPointBorderColor,a=t.formatX,v=t.formatY,(0,r.useMemo)(function(){return n.reduce(function(e,t,n){return[].concat(e,t.data.filter(function(e){return null!==e.position.x&&null!==e.position.y}).map(function(r,i){var l={id:t.id+"."+i,indexInSeries:i,absIndex:e.length+i,seriesIndex:n,seriesId:t.id,seriesColor:t.color,x:r.position.x,y:r.position.y,data:ef({},r.data,{xFormatted:a(r.data.x),yFormatted:v(r.data.y)})};return l.color=o({series:t,point:l}),l.borderColor=s(l),l}))},[])},[n,o,s,a,v])),ed=ey({componentId:U,enableSlices:$,points:ec,width:D,height:L});return{legendData:ea,toggleSeries:eu,lineGenerator:(0,r.useMemo)(function(){return(0,l.Z)().defined(function(e){return null!==e.x&&null!==e.y}).x(function(e){return e.x}).y(function(e){return e.y}).curve((0,i.Bg)(z))},[z]),areaGenerator:(x=(y={curve:z,yScale:ei,areaBaselineValue:B}).curve,k=y.yScale,w=y.areaBaselineValue,(0,r.useMemo)(function(){return(function(e,t,n){var r=null,i=(0,c.Z)(!0),o=null,s=d.Z,a=null,p=(0,h.d)(m);function m(l){var c,d,h,f,m,g=(l=(0,u.Z)(l)).length,b=!1,v=Array(g),y=Array(g);for(null==o&&(a=s(m=p())),c=0;c<=g;++c){if(!(c<g&&i(f=l[c],c,l))===b){if(b=!b)d=c,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),h=c-1;h>=d;--h)a.point(v[h],y[h]);a.lineEnd(),a.areaEnd()}}b&&(v[c]=+e(f,c,l),y[c]=+t(f,c,l),a.point(r?+r(f,c,l):v[c],n?+n(f,c,l):y[c]))}if(m)return a=null,m+""||null}
1function g(){return(0,l.Z)().defined(i).curve(s).context(o)}return e="function"==typeof e?e:void 0===e?f.x:(0,c.Z)(+e),t="function"==typeof t?t:void 0===t?(0,c.Z)(0):(0,c.Z)(+t),n="function"==typeof n?n:void 0===n?f.y:(0,c.Z)(+n),m.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,c.Z)(+t),r=null,m):e},m.x0=function(t){return arguments.length?(e="function"==typeof t?t:(0,c.Z)(+t),m):e},m.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:(0,c.Z)(+e),m):r},m.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,c.Z)(+e),n=null,m):t},m.y0=function(e){return arguments.length?(t="function"==typeof e?e:(0,c.Z)(+e),m):t},m.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:(0,c.Z)(+e),m):n},m.lineX0=m.lineY0=function(){return g().x(e).y(t)},m.lineY1=function(){return g().x(e).y(n)},m.lineX1=function(){return g().x(r).y(t)},m.defined=function(e){return arguments.length?(i="function"==typeof e?e:(0,c.Z)(!!e),m):i},m.curve=function(e){return arguments.length?(s=e,null!=o&&(a=s(o)),m):s},m.context=function(e){return arguments.length?(null==e?o=a=null:a=s(o=e),m):o},m})().defined(function(e){return null!==e.x&&null!==e.y}).x(function(e){return e.x}).y1(function(e){return e.y}).curve((0,i.Bg)(x)).y0(k(w))},[x,k,w])),getColor:G,series:el,xScale:er,yScale:ei,slices:ed,points:ec}},ek=function(e){var t=e.areaBlendMode,n=e.areaOpacity,r=e.color,o=e.fill,s=e.path,a=(0,i.tf)(),l=a.animate,u=a.config,c=(0,i.NS)(s),d=(0,y.q_)({color:r,config:u,immediate:!l});return(0,v.jsx)(y.q.path,{d:c,fill:o||d.color,fillOpacity:n,strokeWidth:0,style:{mixBlendMode:t}})},ew=(0,r.memo)(function(e){var t=e.areaGenerator,n=e.areaOpacity,r=e.areaBlendMode,i=e.series.slice(0).reverse();return(0,v.jsx)("g",{children:i.map(function(e){return(0,v.jsx)(ek,ef({path:t(e.data.map(function(e){return e.position}))},ef({areaOpacity:n,areaBlendMode:r},e)),""+e.id)})})}),eC=(0,r.memo)(function(e){var t=e.lineGenerator,n=e.points,o=e.color,s=e.thickness,a=(0,r.useMemo)(function(){return t(n)},[t,n]),l=(0,i.NS)(a);return(0,v.jsx)(y.q.path,{d:l,fill:"none",strokeWidth:s,stroke:o})}),e_=(0,r.memo)(function(e){var t=e.series,n=e.lineGenerator,r=e.lineWidth;return(0,v.jsx)(v.Fragment,{children:t.slice(0).reverse().map(function(e){var t=e.id,i=e.data,o=e.color;return(0,v.jsx)(eC,{points:i.map(function(e){return e.position}),lineGenerator:n,color:o,thickness:r},t)})})}),eA=(0,r.memo)(function(e){var t=e.slice,n=e.slices,i=e.axis,o=e.debug,s=e.tooltip,l=e.isCurrent,u=e.setCurrent,c=e.onMouseEnter,d=e.onMouseMove,h=e.onMouseLeave,f=e.onMouseDown,p=e.onMouseUp,m=e.onClick,g=e.onDoubleClick,b=e.onTouchStart,y=e.onTouchMove,x=e.onTouchEnd,k=(0,a.lL)(),w=k.showTooltipFromEvent,C=k.hideTooltip,_=(0,r.useCallback)(function(e){w((0,r.createElement)(s,{slice:t,axis:i}),e,"right"),u(t),null==c||c(t,e)},[w,s,t,i,u,c]),A=(0,r.useCallback)(function(e){w((0,r.createElement)(s,{slice:t,axis:i}),e,"right"),null==d||d(t,e)},[w,s,t,i,d]),M=(0,r.useCallback)(function(e){C(),u(null),null==h||h(t,e)},[C,u,h,t]),S=(0,r.useCallback)(function(e){null==f||f(t,e)},[t,f]),E=(0,r.useCallback)(function(e){null==p||p(t,e)},[t,p]),T=(0,r.useCallback)(function(e){null==m||m(t,e)},[t,m]),D=(0,r.useCallback)(function(e){null==g||g(t,e)},[t,g]),L=(0,r.useCallback)(function(e){w((0,r.createElement)(s,{slice:t,axis:i}),e,"right"),u(t),null==b||b(t,e)},[i,b,u,w,t,s]),O=(0,r.useCallback)(function(e){var o=e.touches[0],a=document.elementFromPoint(o.clientX,o.clientY),l=null==a?void 0:a.getAttribute("data-ref");if(l){var c=n.find(function(e){return e.id===l});c&&(w((0,r.createElement)(s,{slice:c,axis:i}),e,"right"),u(c))}null==y||y(t,e)},[i,y,u,w,t,n,s]),R=(0,r.useCallback)(function(e){C(),u(null),null==x||x(t,e)},[C,u,x,t]);return(0,v.jsx)("rect",{x:t.x0,y:t.y0,width:t.width,height:t.height,stroke:"red",strokeWidth:o?1:0,strokeOpacity:.75,fill:"red",fillOpacity:l&&o?.35:0,onMouseEnter:_,onMouseMove:A,onMouseLeave:M,onMouseDown:S,onMouseUp:E,onClick:T,onDoubleClick:D,onTouchStart:L,onTouchMove:O,onTouchEnd:R,"data-ref":t.id})}),eM=(0,r.memo)(function(e){var t=e.slices,n=e.axis,r=e.debug,i=e.tooltip,o=e.current,s=e.setCurrent,a=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,c=e.onMouseDown,d=e.onMouseUp,h=e.onClick,f=e.onDoubleClick,p=e.onTouchStart,m=e.onTouchMove,g=e.onTouchEnd;return(0,v.jsx)(v.Fragment,{children:t.map(function(e){return(0,v.jsx)(eA,{slice:e,slices:t,axis:n,debug:r,tooltip:i,setCurrent:s,isCurrent:null!==o&&o.id===e.id,onMouseEnter:a,onMouseMove:l,onMouseLeave:u,onMouseDown:c,onMouseUp:d,onClick:h,onDoubleClick:f,onTouchStart:p,onTouchMove:m,onTouchEnd:g},e.id)})})}),eS=(0,r.memo)(function(e){var t=e.points,n=e.symbol,o=e.size,s=e.borderWidth,l=e.enableLabel,u=e.label,c=e.labelYOffset,d=e.isFocusable,h=e.setCurrentPoint,f=e.tooltip,p=e.margin,m=e.ariaLabel,g=e.ariaLabelledBy,b=e.ariaDescribedBy,y=e.ariaHidden,x=e.ariaDisabled,k=(0,i.ji)(u),w=(0,a.lL)(),C=w.showTooltipAt,_=w.hideTooltip,A=t.slice(0).sort(function(e,t){return e.indexInSeries-t.indexInSeries}).sort(function(e,t){return t.seriesIndex-e.seriesIndex}).map(function(e){return{id:e.id,x:e.x,y:e.y,datum:e.data,fill:e.color,stroke:e.borderColor,label:l?k(e):null,ariaLabel:m?m(e):void 0,ariaLabelledBy:g?g(e):void 0,ariaDescribedBy:b?b(e):void 0,ariaHidden:y?y(e):void 0,ariaDisabled:x?x(e):void 0,onFocus:d?function(){h(e),C((0,r.createElement)(f,{point:e}),[p.left+e.x,p.top+e.y],"top")}:void 0,onBlur:d?function(){h(null),_()}:void 0}});return(0,v.jsx)("g",{children:A.map(function(e){return(0,v.jsx)(i.F_,{x:e.x,y:e.y,datum:e.datum,symbol:n,size:o,color:e.fill,borderWidth:s,borderColor:e.stroke,label:e.label,labelYOffset:c,ariaLabel:e.ariaLabel,ariaLabelledBy:e.ariaLabelledBy,ariaDescribedBy:e.ariaDescribedBy,ariaHidden:e.ariaHidden,ariaDisabled:e.ariaDisabled,isFocusable:d,onFocus:e.onFocus,onBlur:e.onBlur,testId:"line.point."+e.id},e.id)})})}
1),eE=(0,r.memo)(function(e){var t=e.points,n=e.width,i=e.height,o=e.margin,s=e.setCurrent,l=e.onMouseEnter,u=e.onMouseMove,c=e.onMouseLeave,d=e.onMouseDown,h=e.onMouseUp,f=e.onClick,p=e.onDoubleClick,m=e.onTouchStart,g=e.onTouchMove,b=e.onTouchEnd,y=e.tooltip,x=e.debug,k=e.enableTouchCrosshair,w=(0,a.lL)(),C=w.showTooltipAt,_=w.hideTooltip,A=(0,r.useCallback)(function(e,t){C((0,r.createElement)(y,{point:e}),[e.x+o.left,e.y+o.top],"top"),null==l||l(e,t)},[C,y,l,o]),M=(0,r.useCallback)(function(e,t){C((0,r.createElement)(y,{point:e}),[e.x+o.left,e.y+o.top],"top"),null==u||u(e,t)},[C,y,o.left,o.top,u]),S=(0,r.useCallback)(function(e,t){_(),null==c||c(e,t)},[_,c]),E=(0,r.useCallback)(function(e,t){null==d||d(e,t)},[d]),T=(0,r.useCallback)(function(e,t){null==h||h(e,t)},[h]),D=(0,r.useCallback)(function(e,t){null==f||f(e,t)},[f]),L=(0,r.useCallback)(function(e,t){null==p||p(e,t)},[p]),O=(0,r.useCallback)(function(e,t){C((0,r.createElement)(y,{point:e}),[e.x+o.left,e.y+o.top],"top"),null==m||m(e,t)},[o.left,o.top,m,C,y]),R=(0,r.useCallback)(function(e,t){C((0,r.createElement)(y,{point:e}),[e.x+o.left,e.y+o.top],"top"),null==g||g(e,t)},[o.left,o.top,g,C,y]),F=(0,r.useCallback)(function(e,t){_(),null==b||b(e,t)},[b,_]);return(0,v.jsx)(ec,{nodes:t,width:n,height:i,setCurrent:s,onMouseEnter:A,onMouseMove:M,onMouseLeave:S,onMouseDown:E,onMouseUp:T,onClick:D,onDoubleClick:L,onTouchStart:O,onTouchMove:R,onTouchEnd:F,enableTouchCrosshair:k,debug:x})}),eT=["isInteractive","animate","motionConfig","theme","renderWrapper"];function eD(e){var t=e.data,n=e.xScale,l=void 0===n?eb.xScale:n,u=e.xFormat,c=e.yScale,d=void 0===c?eb.yScale:c,h=e.yFormat,f=e.curve,p=void 0===f?eb.curve:f,m=e.margin,g=e.width,b=e.height,y=e.colors,x=void 0===y?eb.colors:y,k=e.lineWidth,w=void 0===k?eb.lineWidth:k,C=e.layers,_=void 0===C?eb.layers:C,A=e.enableArea,M=void 0===A?eb.enableArea:A,S=e.areaBaselineValue,E=void 0===S?eb.areaBaselineValue:S,T=e.areaOpacity,D=void 0===T?eb.areaOpacity:T,L=e.areaBlendMode,O=void 0===L?eb.areaBlendMode:L,R=e.enablePoints,F=void 0===R?eb.enablePoints:R,z=e.pointSymbol,I=e.pointSize,B=void 0===I?eb.pointSize:I,j=e.pointColor,N=void 0===j?eb.pointColor:j,P=e.pointBorderWidth,H=void 0===P?eb.pointBorderWidth:P,W=e.pointBorderColor,$=void 0===W?eb.pointBorderColor:W,Z=e.enablePointLabel,q=void 0===Z?eb.enablePointLabel:Z,U=e.pointLabel,V=void 0===U?eb.pointLabel:U,Y=e.pointLabelYOffset,G=e.enableGridX,J=void 0===G?eb.enableGridX:G,X=e.gridXValues,K=e.enableGridY,Q=void 0===K?eb.enableGridY:K,ee=e.gridYValues,et=e.axisTop,en=e.axisRight,er=e.axisBottom,ei=void 0===er?eb.axisBottom:er,eo=e.axisLeft,es=void 0===eo?eb.axisLeft:eo,ea=e.defs,el=void 0===ea?eb.defs:ea,eu=e.fill,ec=void 0===eu?eb.fill:eu,ed=e.markers,eh=e.legends,ep=void 0===eh?eb.legends:eh,em=e.isInteractive,eg=void 0===em?eb.isInteractive:em,ev=e.useMesh,ey=void 0===ev?eb.useMesh:ev,ek=e.debugMesh,eC=void 0===ek?eb.debugMesh:ek,eA=e.onMouseEnter,eT=e.onMouseMove,eD=e.onMouseLeave,eL=e.onMouseDown,eO=e.onMouseUp,eR=e.onClick,eF=e.onDoubleClick,ez=e.onTouchStart,eI=e.onTouchMove,eB=e.onTouchEnd,ej=e.tooltip,eN=void 0===ej?eb.tooltip:ej,eP=e.enableSlices,eH=void 0===eP?eb.enableSlices:eP,eW=e.debugSlices,e$=void 0===eW?eb.debugSlices:eW,eZ=e.sliceTooltip,eq=void 0===eZ?eb.sliceTooltip:eZ,eU=e.enableCrosshair,eV=void 0===eU?eb.enableCrosshair:eU,eY=e.crosshairType,eG=void 0===eY?eb.crosshairType:eY,eJ=e.enableTouchCrosshair,eX=void 0===eJ?eb.enableTouchCrosshair:eJ,eK=e.role,eQ=void 0===eK?eb.role:eK,e0=e.ariaLabel,e1=e.ariaLabelledBy,e2=e.ariaDescribedBy,e3=e.isFocusable,e5=void 0===e3?eb.isFocusable:e3,e6=e.pointAriaLabel,e8=e.pointAriaLabelledBy,e4=e.pointAriaDescribedBy,e7=e.pointAriaHidden,e9=e.pointAriaDisabled,te=e.initialHiddenIds,tt=void 0===te?eb.initialHiddenIds:te,tn=e.forwardedRef,tr=(0,i.Bs)(g,b,m),ti=tr.margin,to=tr.innerWidth,ts=tr.innerHeight,ta=tr.outerWidth,tl=tr.outerHeight,tu=ex({data:t,xScale:l,xFormat:u,yScale:d,yFormat:h,width:to,height:ts,colors:x,curve:p,areaBaselineValue:E,pointColor:N,pointBorderColor:$,enableSlices:eH,initialHiddenIds:tt}),tc=tu.legendData,td=tu.toggleSeries,th=tu.lineGenerator,tf=tu.areaGenerator,tp=tu.series,tm=tu.xScale,tg=tu.yScale,tb=tu.slices,tv=tu.points,ty=(0,r.useState)(null),tx=ty[0],tk=ty[1],tw=(0,r.useState)(null),tC=tw[0],t_=tw[1],tA={grid:null,markers:null,axes:null,areas:null,crosshair:null,lines:null,points:null,slices:null,mesh:null,legends:null};_.includes("grid")&&(J||Q)&&(tA.grid=(0,v.jsx)(o.rj,{width:to,height:ts,xScale:J?tm:null,yScale:Q?tg:null,xValues:X,yValues:ee},"grid")),_.includes("markers")&&Array.isArray(ed)&&ed.length>0&&(tA.markers=(0,v.jsx)(i.TL,{markers:ed,width:to,height:ts,xScale:tm,yScale:tg},"markers")),_.includes("axes")&&(tA.axes=(0,v.jsx)(o.dk,{xScale:tm,yScale:tg,width:to,height:ts,top:et,right:en,bottom:ei,left:es},"axes")),_.includes("lines")&&(tA.lines=(0,v.jsx)(e_,{series:tp,lineGenerator:th,lineWidth:w},"lines")),_.includes("legends")&&ep.length>0&&(tA.legends=(0,v.jsx)(r.Fragment,{children:ep.map(function(e,t){return(0,v.jsx)(s.$6,ef({},e,{containerWidth:to,containerHeight:ts,data:e.data||tc,toggleSerie:e.toggleSerie?td:void 0}),t)})},"legends"));var tM=(0,i.yU)(el,tp,ec);M&&(tA.areas=(0,v.jsx)(ew,{areaGenerator:tf,areaOpacity:D,areaBlendMode:O,series:tp},"areas")),eg&&!1!==eH&&(tA.slices=(0,v.jsx)(eM,{slices:tb,axis:eH,debug:e$,tooltip:eq,current:tC,setCurrent:t_,onMouseEnter:eA,onMouseMove:eT,onMouseLeave:eD,onMouseDown:eL,onMouseUp:eO,onClick:eR,onDoubleClick:eF,onTouchStart:ez,onTouchMove:eI,onTouchEnd:eB},"slices")),F&&(tA.points=(0,v.jsx)(eS,{points:tv,symbol:z,size:B,borderWidth:H,enableLabel:q,label:V,labelYOffset:Y,isFocusable:e5,setCurrentPoint:tk,tooltip:eN,margin:ti,ariaLabel:e6,ariaLabelledBy:e8,ariaDescribedBy:e4,ariaHidden:e7,ariaDisabled:e9},"points")),eg&&eV&&(null!==tx&&(tA.crosshair=(0,v.jsx)(a.YS,{width:to,height:ts,x:tx.x,y:tx.y,type:eG},"crosshair")),null!==tC&&eH&&(tA.crosshair=(0,v.jsx)(a.YS,{width:to,height:ts,x:tC.x,y:tC.y,type:eH},"crosshair"))),eg&&ey&&!1===eH&&(tA.mesh=(0,v.jsx)(eE,{points:tv,width:to,height:ts,margin:ti,setCurrent:tk,onMouseEnter:eA,onMouseMove:eT,onMouseLeave:eD,onMouseDown:eL,onMouseUp:eO,onClick:eR,onDoubleClick:eF,onTouchStart:ez,onTouchMove:eI,onTouchEnd:eB,tooltip:eN,enableTouchCrosshair:eX,debug:eC},"mesh"));var tS=ef({},e,{innerWidth:to,innerHeight:ts,series:tp,slices:tb,points:tv,xScale:tm,yScale:tg,lineGenerator:th,areaGenerator:tf,currentPoint:tx,setCurrentPoint:tk,currentSlice:tC,setCurrentSlice:t_});return(0,v.jsx)(i.tM,{defs:tM,width:ta,height:tl,margin:ti,role:eQ,ariaLabel:e0,ariaLabelledBy:e1,ariaDescribedBy:e2,isFocusable:e5,ref:tn,children:_.map(function(e,t){return"function"==typeof e?(0,v.jsx)(r.Fragment,{children:e(tS)},t):tA[e]})})}var eL=(0,r.forwardRef)(function(e,t){var n=e.isInteractive,r=void 0===n?eb.isInteractive:n,o=e.animate,s=void 0===o?eb.animate:o,a=e.motionConfig,l=void 0===a?eb.motionConfig:a,u=e.theme,c=e.renderWrapper,d=ep(e,eT);return(0,v.jsx)(i.W2,{animate:s,isInteractive:r,motionConfig:l,renderWrapper:c,theme:u,children:(0,v.jsx)(eD,ef({isInteractive:r},d,{forwardedRef:t}))})}),eO=["defaultWidth","defaultHeight","onResize","debounceResize"],eR=(0,r.forwardRef)(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,o=e.onResize,s=e.debounceResize,a=ep(e,eO);return(0,v.jsx)(i.d,{defaultWidth:n,defaultHeight:r,onResize:o,debounceResize:s,children:function(e){var n=e.width,r=e.height;return(0,v.jsx)(eL,ef({width:n,height:r},a,{ref:t}))}})}),eF=["isInteractive","renderWrapper","theme"],ez=function(e){var t=e.width,n=e.he
1ight,l=e.margin,u=e.pixelRatio,c=void 0===u?ev.pixelRatio:u,d=e.data,h=e.xScale,f=void 0===h?ev.xScale:h,p=e.xFormat,g=e.yScale,b=void 0===g?ev.yScale:g,y=e.yFormat,x=e.curve,k=void 0===x?ev.curve:x,w=e.layers,C=void 0===w?ev.layers:w,_=e.colors,A=void 0===_?ev.colors:_,M=e.lineWidth,S=void 0===M?ev.lineWidth:M,E=e.enableArea,T=void 0===E?ev.enableArea:E,D=e.areaBaselineValue,L=void 0===D?ev.areaBaselineValue:D,O=e.areaOpacity,R=void 0===O?ev.areaOpacity:O,F=e.enablePoints,z=void 0===F?ev.enablePoints:F,I=e.pointSize,B=void 0===I?ev.pointSize:I,j=e.pointColor,N=void 0===j?ev.pointColor:j,P=e.pointBorderWidth,H=void 0===P?ev.pointBorderWidth:P,W=e.pointBorderColor,$=void 0===W?ev.pointBorderColor:W,Z=e.enableGridX,q=void 0===Z?ev.enableGridX:Z,U=e.gridXValues,V=e.enableGridY,Y=void 0===V?ev.enableGridY:V,G=e.gridYValues,J=e.axisTop,X=e.axisRight,K=e.axisBottom,Q=void 0===K?ev.axisBottom:K,ee=e.axisLeft,et=void 0===ee?ev.axisLeft:ee,er=e.legends,ei=void 0===er?ev.legends:er,eo=e.isInteractive,es=void 0===eo?ev.isInteractive:eo,ea=e.debugMesh,el=void 0===ea?ev.debugMesh:ea,eu=e.onMouseLeave,ec=e.onMouseDown,ep=e.onMouseUp,em=e.onClick,eg=e.onDoubleClick,eb=e.tooltip,ey=void 0===eb?ev.tooltip:eb,ek=e.role,ew=e.forwardedRef,eC=(0,r.useRef)(null),e_=(0,i.Bs)(t,n,l),eA=e_.margin,eM=e_.innerWidth,eS=e_.innerHeight,eE=e_.outerWidth,eT=e_.outerHeight,eD=(0,m.Fg)(),eL=(0,r.useState)(null),eO=eL[0],eR=eL[1],eF=ex({data:d,xScale:f,xFormat:p,yScale:b,yFormat:y,width:eM,height:eS,colors:A,curve:k,areaBaselineValue:L,pointColor:N,pointBorderColor:$}),ez=eF.lineGenerator,eI=eF.areaGenerator,eB=eF.series,ej=eF.xScale,eN=eF.yScale,eP=eF.points,eH=(0,r.useMemo)(function(){return{innerWidth:eM,innerHeight:eS,series:eB,points:eP,xScale:ej,yScale:eN,lineWidth:S,lineGenerator:ez,areaGenerator:eI,currentPoint:eO,setCurrentPoint:eR}},[eM,eS,eB,eP,ej,eN,S,ez,eI,eO,eR]),eW=en({points:eP,width:eM,height:eS,debug:el}),e$=eW.delaunay,eZ=eW.voronoi;(0,r.useEffect)(function(){if(null!==eC.current){eC.current.width=eE*c,eC.current.height=eT*c;var e=eC.current.getContext("2d");e.scale(c,c),e.fillStyle=eD.background,e.fillRect(0,0,eE,eT),e.translate(eA.left,eA.top),C.forEach(function(t){"function"==typeof t&&t(e,eH);var n,r=null!=(n=eD.grid.line.strokeWidth)?n:0;if("grid"===t&&"string"!=typeof r&&r>0&&(e.lineWidth=r,e.strokeStyle=eD.grid.line.stroke,q&&(0,o.FA)(e,{width:eM,height:eS,scale:ej,axis:"x",values:U}),Y&&(0,o.FA)(e,{width:eM,height:eS,scale:eN,axis:"y",values:G})),"axes"===t&&(0,o.DZ)(e,{xScale:ej,yScale:eN,width:eM,height:eS,top:J,right:X,bottom:Q,left:et,theme:eD}),"areas"===t&&!0===T){e.save(),e.globalAlpha=R,eI.context(e);for(var i=eB.length-1;i>=0;i--)e.fillStyle=eB[i].color,e.beginPath(),eI(eB[i].data.map(function(e){return e.position})),e.fill();e.restore()}if("lines"===t&&(ez.context(e),eB.forEach(function(t){e.strokeStyle=t.color,e.lineWidth=S,e.beginPath(),ez(t.data.map(function(e){return e.position})),e.stroke()})),"points"===t&&!0===z&&B>0&&eP.forEach(function(t){e.fillStyle=t.color,e.beginPath(),e.arc(t.x,t.y,B/2,0,2*Math.PI),e.fill(),H>0&&(e.strokeStyle=t.borderColor,e.lineWidth=H,e.stroke())}),"mesh"===t&&!0===el&&void 0!==eZ&&(ed(e,eZ),eO&&eh(e,eZ,eO.absIndex)),"legends"===t){var a=eB.map(function(e){return{id:e.id,label:e.id,color:e.color}}).reverse();ei.forEach(function(t){(0,s.as)(e,ef({},t,{data:t.data||a,containerWidth:eM,containerHeight:eS,theme:eD}))})}})}},[eC,eM,eE,eS,eT,eA.left,eA.top,c,C,eD,ez,eB,ej,eN,q,U,Y,G,J,X,Q,et,ei,eP,z,B,H,eO,eH,el,T,eI,R,S,eZ]);var eq=(0,r.useCallback)(function(e){if(!eC.current)return null;var t=(0,i.P6)(eC.current,e),n=t[0],r=t[1];return(0,i.zn)(eA.left,eA.top,eM,eS,n,r)?eP[e$.find(n-eA.left,r-eA.top)]:null},[eC,eA,eM,eS,e$,eP]),eU=(0,a.lL)(),eV=eU.showTooltipFromEvent,eY=eU.hideTooltip,eG=(0,r.useCallback)(function(e){var t=eq(e);eR(t),t?eV((0,r.createElement)(ey,{point:t}),e):eY()},[eq,eR,eV,eY,ey]),eJ=(0,r.useCallback)(function(e){eY(),eR(null),eO&&(null==eu||eu(eO,e))},[eY,eR,eu,eO]),eX=(0,r.useCallback)(function(e){if(ec){var t=eq(e);t&&ec(t,e)}},[eq,ec]),eK=(0,r.useCallback)(function(e){if(ep){var t=eq(e);t&&ep(t,e)}},[eq,ep]),eQ=(0,r.useCallback)(function(e){if(em){var t=eq(e);t&&em(t,e)}},[eq,em]),e0=(0,r.useCallback)(function(e){if(eg){var t=eq(e);t&&eg(t,e)}},[eq,eg]);return(0,v.jsx)("canvas",{ref:(0,i.lq)(eC,ew),width:eE*c,height:eT*c,style:{width:eE,height:eT,cursor:es?"auto":"normal"},onMouseEnter:es?eG:void 0,onMouseMove:es?eG:void 0,onMouseLeave:es?eJ:void 0,onMouseDown:es?eX:void 0,onMouseUp:es?eK:void 0,onClick:es?eQ:void 0,onDoubleClick:es?e0:void 0,role:ek})},eI=(0,r.forwardRef)(function(e,t){var n=e.isInteractive,r=e.renderWrapper,o=e.theme,s=ep(e,eF);return(0,v.jsx)(i.W2,{isInteractive:n,renderWrapper:r,theme:o,animate:!1,children:(0,v.jsx)(ez,ef({},s,{forwardedRef:t}))})}),eB=["defaultWidth","defaultHeight","onResize","debounceResize"];(0,r.forwardRef)(function(e,t){var n=e.defaultWidth;e.defaultHeight;var r=e.onResize,o=e.debounceResize,s=ep(e,eB);return(0,v.jsx)(i.d,{defaultWidth:n,defaultHeight:n,onResize:r,debounceResize:o,children:function(e){var n=e.width,r=e.height;return(0,v.jsx)(eI,ef({width:n,height:r},s,{ref:t}))}})})},49939:function(e,t,n){"use strict";n.d(t,{Y2:function(){return ec}});var r=n(2784),i=n(64565),o=n(65352),s=n(91265),a=n(35824),l=n(52322),u=n(95555),c=n(76985),d=n(3793);
1function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var f={pointerEvents:"none"},p=function(e){var t=e.label,n=e.style,r=(0,s.Fg)();return(0,l.jsx)(o.q.g,{transform:n.transform,opacity:n.progress,style:f,children:(0,l.jsx)(a.xv,{textAnchor:"middle",dominantBaseline:"central",style:h({},r.labels.text,{fill:n.textColor}),children:t})})},m=function(e){var t=e%(2*Math.PI);return t<0&&(t+=2*Math.PI),t},g=function(e,t){return e.filter(function(e){return Math.abs((0,i.vi)(e.arc.endAngle-e.arc.startAngle))>=t})},b={startAngle:{enter:function(e){return h({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return h({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return h({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return h({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return h({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return h({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return h({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return h({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return h({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return h({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return h({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return h({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return h({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return h({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return h({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return h({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},v=function(e,t){return(0,r.useMemo)(function(){var n=b[e];return{enter:function(e){return h({progress:0},n.enter(e.arc),t?t.enter(e):{})},update:function(e){return h({progress:1},n.update(e.arc),t?t.update(e):{})},leave:function(e){return h({progress:0},n.leave(e.arc),t?t.leave(e):{})}}},[e,t])},y=function(e,t){var n=(0,i.Vp)(e)-Math.PI/2,r=e.innerRadius+(e.outerRadius-e.innerRadius)*t;return(0,i.re)(n,r)},x=function(e,t,n,r){void 0===t&&(t=.5),void 0===n&&(n="innerRadius");var s,a=(0,i.tf)(),l=a.animate,u=a.config,c=v(n,r);return{transition:(0,o.Yz)(e,{keys:function(e){return e.id},initial:c.update,from:c.enter,enter:c.update,update:c.update,leave:c.leave,config:u,immediate:!l}),interpolate:(s=t,function(e,t,n,r){return(0,o.to)([e,t,n,r],function(e,t,n,r){var i=y({startAngle:e,endAngle:t,innerRadius:n,outerRadius:r},s);return"translate("+i.x+","+i.y+")"})})}},k=function(e){var t=e.data,n=e.offset,i=void 0===n?.5:n,o=e.skipAngle,s=void 0===o?0:o,a=e.computeExtraProps,l=void 0===a?function(){return{}}:a;return(0,r.useMemo)(function(){return g(t,s).map(function(e){var t=y(e.arc,i);return h({},l(e),{x:t.x,y:t.y,data:e})})},[t,i,s,l])},w=function(e){var t=e.center,n=e.data,o=e.transitionMode,a=e.label,c=e.radiusOffset,d=e.skipAngle,h=e.skipRadius,f=e.textColor,m=e.component,g=(0,i.LR)(a),b=(0,s.Fg)(),v=(0,u.Bf)(f,b),y=x((0,r.useMemo)(function(){return n.filter(function(e){var t=Math.abs((0,i.vi)(e.arc.endAngle-e.arc.startAngle)),n=Math.abs(e.arc.outerRadius-e.arc.innerRadius);return t>=d&&n>=h})},[n,d,h]),c,o),k=y.transition,w=y.interpolate,C=void 0===m?p:m;return(0,l.jsx)("g",{transform:"translate("+t[0]+","+t[1]+")",children:k(function(e,t){return(0,r.createElement)(C,{key:t.id,datum:t,label:g(t),style:{progress:e.progress,transform:w(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius),textColor:v(t)}})})})},C=function(e,t,n){(0,a.Ay)(e,n.labels.text),e.textAlign="center",e.textBaseline="middle",t.forEach(function(t){(0,a.MC)(e,h({},n.labels.text,{fill:t.textColor}),String(t.label),t.x,t.y)})},_=function(e){var t=e.data,n=e.offset,o=e.skipAngle,a=e.label,l=e.textColor,c=(0,i.LR)(a),d=(0,s.Fg)(),h=(0,u.Bf)(l,d);return k({data:t,offset:n,skipAngle:o,computeExtraProps:(0,r.useCallback)(function(e){return{label:c(e),textColor:h(e)}},[c,h])})},A=function(e){var t=e.label,n=e.style,r=(0,s.Fg)();return(0,l.jsxs)(o.q.g,{opacity:n.opacity,children:[(0,l.jsx)(o.q.path,{fill:"none",stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),(0,l.jsx)(a.xv,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:"central",style:h({},r.labels.text,{fill:n.textColor}),children:t})]})},M=function(e){var t=m(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);
1return t<Math.PI/2||t>1.5*Math.PI?"start":"end"},S=function(e,t,n,r){var o,s,a=m(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),l=(0,i.re)(a,e.outerRadius+t),u=(0,i.re)(a,e.outerRadius+t+n);return a<Math.PI/2||a>1.5*Math.PI?(o="after",s={x:u.x+r,y:u.y}):(o="before",s={x:u.x-r,y:u.y}),{side:o,points:[l,u,s]}},E=(0,c.Z)().x(function(e){return e.x}).y(function(e){return e.y}),T=function(e,t,n,r,i,s,a){return(0,o.to)([e,t,n,r,i,s,a],function(e,t,n,r,i,o,s){return E(S({startAngle:e,endAngle:t,innerRadius:n,outerRadius:r},i,o,s).points)})},D=function(e,t,n,r){return(0,o.to)([e,t,n,r],function(e,t,n,r){return M({startAngle:e,endAngle:t,innerRadius:n,outerRadius:r})})},L=function(e,t,n,r,i,s,a,l){return(0,o.to)([e,t,n,r,i,s,a,l],function(e,t,n,r,i,o,s,a){var l=S({startAngle:e,endAngle:t,innerRadius:n,outerRadius:r},i,o,s),u=l.points,c=l.side,d=u[2];return"before"===c?d.x-=a:d.x+=a,"translate("+d.x+","+d.y+")"})},O=function(e){var t,n,a,l,c,d,h,f,p=e.data,m=e.offset,b=e.diagonalLength,v=e.straightLength,y=e.skipAngle,x=e.textOffset,k=e.linkColor,w=e.textColor,C=(0,i.tf)(),_=C.animate,A=C.config,M=(0,s.Fg)(),S=(0,u.Bf)(k,M),E=(0,u.Bf)(w,M),O=(t=void 0===y?0:y,(0,r.useMemo)(function(){return g(p,t)},[p,t])),R=(a=(n={offset:void 0===m?0:m,diagonalLength:b,straightLength:v,textOffset:x,getLinkColor:S,getTextColor:E}).offset,l=n.diagonalLength,c=n.straightLength,d=n.textOffset,h=n.getLinkColor,f=n.getTextColor,(0,r.useMemo)(function(){return{enter:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:a,diagonalLength:0,straightLength:0,textOffset:d,linkColor:h(e),textColor:f(e),opacity:0}},update:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:a,diagonalLength:l,straightLength:c,textOffset:d,linkColor:h(e),textColor:f(e),opacity:1}},leave:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:a,diagonalLength:0,straightLength:0,textOffset:d,linkColor:h(e),textColor:f(e),opacity:0}}}},[l,c,d,h,f,a]));return{transition:(0,o.Yz)(O,{keys:function(e){return e.id},initial:R.update,from:R.enter,enter:R.update,update:R.update,leave:R.leave,config:A,immediate:!_}),interpolateLink:T,interpolateTextAnchor:D,interpolateTextPosition:L}},R=function(e){var t=e.center,n=e.data,o=e.label,s=e.skipAngle,a=e.offset,u=e.diagonalLength,c=e.straightLength,d=e.strokeWidth,f=e.textOffset,p=e.textColor,m=e.linkColor,g=e.component,b=(0,i.LR)(o),v=O({data:n,skipAngle:s,offset:a,diagonalLength:u,straightLength:c,textOffset:f,linkColor:m,textColor:p}),y=v.transition,x=v.interpolateLink,k=v.interpolateTextAnchor,w=v.interpolateTextPosition,C=void 0===g?A:g;return(0,l.jsx)("g",{transform:"translate("+t[0]+","+t[1]+")",children:y(function(e,t){return(0,r.createElement)(C,{key:t.id,datum:t,label:b(t),style:h({},e,{thickness:d,path:x(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,e.offset,e.diagonalLength,e.straightLength),textAnchor:k(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius),textPosition:w(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,e.offset,e.diagonalLength,e.straightLength,e.textOffset)})})})})},F=function(e,t,n,r){e.textBaseline="middle",(0,a.Ay)(e,n.labels.text),t.forEach(function(t){e.textAlign=i.a6.canvas.align[t.textAnchor],(0,a.MC)(e,h({},n.labels.text,{fill:t.textColor}),String(t.label),t.x,t.y),e.beginPath(),e.strokeStyle=t.linkColor,e.lineWidth=r,t.points.forEach(function(t,n){0===n?e.moveTo(t.x,t.y):e.lineTo(t.x,t.y)}),e.stroke()})},z=function(e){var t=e.data,n=e.skipAngle,o=void 0===n?0:n,s=e.offset,a=void 0===s?.5:s,l=e.diagonalLength,u=e.straightLength,c=e.computeExtraProps,d=void 0===c?function(){return{}}:c,f=(0,r.useMemo)(function(){return t.filter(function(e){return Math.abs((0,i.vi)(e.arc.endAngle-e.arc.startAngle))>=o}).map(function(e){return h({},S(e.arc,a,l,u),{data:e})})},[t,o,a,l,u]);return(0,r.useMemo)(function(){return f.map(function(e){return h({},d(e),e)})},[f,d])},I=function(e){var t=e.data,n=e.skipAngle,o=e.offset,a=e.diagonalLength,l=e.straightLength,c=e.textOffset,d=void 0===c?0:c,f=e.label,p=e.linkColor,m=e.textColor,g=(0,i.LR)(f),b=(0,s.Fg)(),v=(0,u.Bf)(p,b),y=(0,u.Bf)(m,b);return z({data:t,skipAngle:n,offset:o,diagonalLength:a,straightLength:l,computeExtraProps:(0,r.useCallback)(function(e){var t,n={x:e.points[2].x,y:e.points[2].y};return"before"===e.side?(n.x-=d,t="end"):(n.x+=d,t="start"),h({},n,{label:g(e.data),linkColor:v(e.data),textAnchor:t,textColor:y(e.data)})}
1,[g,v,y,d])})},B=function(e){var t=e.datum,n=e.style,i=e.onClick,s=e.onMouseEnter,a=e.onMouseMove,u=e.onMouseLeave,c=(0,r.useCallback)(function(e){return null==i?void 0:i(t,e)},[i,t]),d=(0,r.useCallback)(function(e){return null==s?void 0:s(t,e)},[s,t]),h=(0,r.useCallback)(function(e){return null==a?void 0:a(t,e)},[a,t]),f=(0,r.useCallback)(function(e){return null==u?void 0:u(t,e)},[u,t]);return(0,l.jsx)(o.q.path,{d:n.path,opacity:n.opacity,fill:t.fill||n.color,stroke:n.borderColor,strokeWidth:n.borderWidth,onClick:i?c:void 0,onMouseEnter:s?d:void 0,onMouseMove:a?h:void 0,onMouseLeave:u?f:void 0,"data-testid":"arc."+t.id})},j=function(e,t,n,r,i){return(0,o.to)([e,t,n,r],function(e,t,n,r){return i({startAngle:e,endAngle:t,innerRadius:Math.max(0,n),outerRadius:Math.max(0,r)})})},N=function(e,t,n){void 0===t&&(t="innerRadius");var r=(0,i.tf)(),s=r.animate,a=r.config,l=v(t,n);return{transition:(0,o.Yz)(e,{keys:function(e){return e.id},initial:l.update,from:l.enter,enter:l.update,update:l.update,leave:l.leave,config:a,immediate:!s}),interpolate:j}},P=function(e){var t=e.center,n=e.data,i=e.arcGenerator,o=e.borderWidth,a=e.borderColor,c=e.onClick,d=e.onMouseEnter,f=e.onMouseMove,p=e.onMouseLeave,m=e.transitionMode,g=e.component,b=(0,s.Fg)(),v=(0,u.Bf)(a,b),y=N(n,m,{enter:function(e){return{opacity:0,color:e.color,borderColor:v(e)}},update:function(e){return{opacity:1,color:e.color,borderColor:v(e)}},leave:function(e){return{opacity:0,color:e.color,borderColor:v(e)}}}),x=y.transition,k=y.interpolate,w=void 0===g?B:g;return(0,l.jsx)("g",{transform:"translate("+t[0]+","+t[1]+")",children:x(function(e,t){return(0,r.createElement)(w,{key:t.id,datum:t,style:h({},e,{borderWidth:o,path:k(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,i)}),onClick:c,onMouseEnter:d,onMouseMove:f,onMouseLeave:p})})})},H=function(e,t,n,r,o,s){void 0===s&&(s=!0);var a=[],l=(0,i.re)((0,i.Ht)(r),n);a.push([l.x,l.y]);var u=(0,i.re)((0,i.Ht)(o),n);a.push([u.x,u.y]);for(var c=Math.round(Math.min(r,o));c<=Math.round(Math.max(r,o));c++)if(c%90==0){var d=(0,i.re)((0,i.Ht)(c),n);a.push([d.x,d.y])}a=a.map(function(n){return[e+n[0],t+n[1]]}),s&&a.push([e,t]);var h=a.map(function(e){return e[0]}),f=a.map(function(e){return e[1]}),p=Math.min.apply(Math,h),m=Math.max.apply(Math,h),g=Math.min.apply(Math,f);return{points:a,x:p,y:g,width:m-p,height:Math.max.apply(Math,f)-g}},W=function(e,t,n,r,o,s){var a=(0,i.Sp)(o,s,e,t);return a<n&&a>r},$=function(e,t,n,r,o,s,a){if(W(e,t,n,r,s,a)){var l=(0,i._O)(s,a,e,t);return o.find(function(e){var t=e.startAngle,n=e.endAngle;return l>=t&&l<n})}},Z=function(e){var t=void 0===e?{}:e,n=t.cornerRadius,i=void 0===n?0:n,o=t.padAngle,s=void 0===o?0:o;return(0,r.useMemo)(function(){return(0,d.Z)().innerRadius(function(e){return e.innerRadius}).outerRadius(function(e){return e.outerRadius}).cornerRadius(i).padAngle(s)},[i,s])},q=n(63670),U=n(27501),V=n(18586);function Y(){return(Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}function G(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var J,X=function(e){var t=e.width,n=e.height,r=e.legends,i=e.data,o=e.toggleSerie;return(0,l.jsx)(l.Fragment,{children:r.map(function(e,r){var s;return(0,l.jsx)(q.$6,Y({},e,{containerWidth:t,containerHeight:n,data:null!=(s=e.data)?s:i,toggleSerie:e.toggleSerie?o:void 0}),r)})})},K={id:"id",value:"value",sortByValue:!1,innerRadius:0,padAngle:0,cornerRadius:0,layers:["arcs","arcLinkLabels","arcLabels","legends"],startAngle:0,endAngle:360,fit:!0,activeInnerRadiusOffset:0,activeOuterRadiusOffset:0,borderWidth:0,borderColor:{from:"color",modifiers:[["darker",1]]},enableArcLabels:!0,arcLabel:"formattedValue",arcLabelsSkipAngle:0,arcLabelsSkipRadius:0,arcLabelsRadiusOffset:.5,arcLabelsTextColor:{theme:"labels.text.fill"},enableArcLinkLabels:!0,arcLinkLabel:"id",arcLinkLabelsSkipAngle:0,arcLinkLabelsOffset:0,arcLinkLabelsDiagonalLength:16,arcLinkLabelsStraightLength:24,arcLinkLabelsThickness:1,arcLinkLabelsTextOffset:6,arcLinkLabelsTextColor:{theme:"labels.text.fill"},arcLinkLabelsColor:{theme:"axis.ticks.line.stroke"},colors:{scheme:"nivo"},defs:[],fill:[],isInteractive:!0,animate:!0,motionConfig:"gentle",transitionMode:"innerRadius",tooltip:function(e){var t=e.datum;return(0,l.jsx)(V._5,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:"img",pixelRatio:"undefined"!=typeof window&&null!=(J=window.devicePixelRatio)?J:1},Q=["points"],ee=function(e){var t=e.data,n=e.id,o=void 0===n?K.id:n,s=e.value,a=void 0===s?K.value:s,l=e.valueFormat,c=e.colors,d=void 0===c?K.colors:c,h=(0,i.LR)(o),f=(0,i.LR)(a),p=(0,i.O_)(l),m=(0,u.U)(d,"id");return(0,r.useMemo)(function(){return t.map(function(e){var t,n=h(e),r=f
1(e),i={id:n,label:null!=(t=e.label)?t:n,hidden:!1,value:r,formattedValue:p(r),data:e};return Y({},i,{color:m(i)})})},[t,h,f,p,m])},et=function(e){var t=e.data,n=e.startAngle,o=e.endAngle,s=e.innerRadius,a=e.outerRadius,l=e.padAngle,u=e.sortByValue,c=e.activeId,d=e.activeInnerRadiusOffset,h=e.activeOuterRadiusOffset,f=e.hiddenIds,p=e.forwardLegendData,m=(0,r.useMemo)(function(){var e=(0,U.Z)().value(function(e){return e.value}).startAngle((0,i.Ht)(n)).endAngle((0,i.Ht)(o)).padAngle((0,i.Ht)(l));return u||e.sortValues(null),e},[n,o,l,u]),g=(0,r.useMemo)(function(){return{dataWithArc:m(t.filter(function(e){return!f.includes(e.id)})).map(function(e){var t=Math.abs(e.endAngle-e.startAngle);return Y({},e.data,{arc:{index:e.index,startAngle:e.startAngle,endAngle:e.endAngle,innerRadius:c===e.data.id?s-d:s,outerRadius:c===e.data.id?a+h:a,thickness:a-s,padAngle:e.padAngle,angle:t,angleDeg:(0,i.vi)(t)}})}),legendData:t.map(function(e){return{id:e.id,label:e.label,color:e.color,hidden:f.includes(e.id),data:e}})}},[m,t,f,c,s,d,a,h]),b=g.legendData,v=(0,r.useRef)(p);return(0,r.useEffect)(function(){"function"==typeof v.current&&v.current(b)},[v,b]),g},en=function(e){var t=e.activeId,n=e.onActiveIdChange,i=e.defaultActiveId,o=void 0!==t,s=(0,r.useState)(o?null:void 0===i?null:i),a=s[0],l=s[1];return{activeId:o?t:a,setActiveId:(0,r.useCallback)(function(e){n&&n(e),o||l(e)},[o,n,l])}},er=function(e){var t=e.data,n=e.width,o=e.height,s=e.innerRadius,a=void 0===s?K.innerRadius:s,l=e.startAngle,u=void 0===l?K.startAngle:l,c=e.endAngle,d=void 0===c?K.endAngle:c,h=e.padAngle,f=void 0===h?K.padAngle:h,p=e.sortByValue,m=void 0===p?K.sortByValue:p,g=e.cornerRadius,b=void 0===g?K.cornerRadius:g,v=e.fit,y=void 0===v?K.fit:v,x=e.activeInnerRadiusOffset,k=void 0===x?K.activeInnerRadiusOffset:x,w=e.activeOuterRadiusOffset,C=void 0===w?K.activeOuterRadiusOffset:w,_=e.activeId,A=e.onActiveIdChange,M=e.defaultActiveId,S=e.forwardLegendData,E=en({activeId:_,onActiveIdChange:A,defaultActiveId:M}),T=E.activeId,D=E.setActiveId,L=(0,r.useState)([]),O=L[0],R=L[1],F=(0,r.useMemo)(function(){var e,t=Math.min(n,o)/2,r=t*Math.min(a,1),i=n/2,s=o/2;if(y){var l=H(i,s,t,u-90,d-90),c=l.points,h=G(l,Q),f=Math.min(n/h.width,o/h.height),p={width:h.width*f,height:h.height*f};p.x=(n-p.width)/2,p.y=(o-p.height)/2,i=(i-h.x)/h.width*h.width*f+p.x,s=(s-h.y)/h.height*h.height*f+p.y,e={box:h,ratio:f,points:c},t*=f,r*=f}return{centerX:i,centerY:s,radius:t,innerRadius:r,debug:e}},[n,o,a,u,d,y]),z=et({data:t,startAngle:u,endAngle:d,innerRadius:F.innerRadius,outerRadius:F.radius,padAngle:f,sortByValue:m,activeId:T,activeInnerRadiusOffset:k,activeOuterRadiusOffset:C,hiddenIds:O,forwardLegendData:S}),I=(0,r.useCallback)(function(e){R(function(t){return t.indexOf(e)>-1?t.filter(function(t){return t!==e}):[].concat(t,[e])})},[]);return Y({arcGenerator:Z({cornerRadius:b,padAngle:(0,i.Ht)(f)}),activeId:T,setActiveId:D,toggleSerie:I},z,F)},ei=function(e){var t=e.dataWithArc,n=e.arcGenerator,i=e.centerX,o=e.centerY,s=e.radius,a=e.innerRadius;return(0,r.useMemo)(function(){return{dataWithArc:t,arcGenerator:n,centerX:i,centerY:o,radius:s,innerRadius:a}},[t,n,i,o,s,a])},eo=function(e){var t=e.center,n=e.data,i=e.arcGenerator,o=e.borderWidth,s=e.borderColor,a=e.isInteractive,u=e.onClick,c=e.onMouseEnter,d=e.onMouseMove,h=e.onMouseLeave,f=e.setActiveId,p=e.tooltip,m=e.transitionMode,g=(0,V.lL)(),b=g.showTooltipFromEvent,v=g.hideTooltip,y=(0,r.useMemo)(function(){if(a)return function(e,t){null==u||u(e,t)}},[a,u]),x=(0,r.useMemo)(function(){if(a)return function(e,t){b((0,r.createElement)(p,{datum:e}),t),f(e.id),null==c||c(e,t)}},[a,b,f,c,p]),k=(0,r.useMemo)(function(){if(a)return function(e,t){b((0,r.createElement)(p,{datum:e}),t),null==d||d(e,t)}},[a,b,d,p]),w=(0,r.useMemo)(function(){if(a)return function(e,t){v(),f(null),null==h||h(e,t)}},[a,v,f,h]);return(0,l.jsx)(P,{center:t,data:n,arcGenerator:i,borderWidth:o,borderColor:s,transitionMode:m,onClick:y,onMouseEnter:x,onMouseMove:k,onMouseLeave:w})},es=["isInteractive","animate","motionConfig","theme","renderWrapper"],ea=function(e){var t=e.data,n=e.id,o=void 0===n?K.id:n,s=e.value,a=void 0===s?K.value:s,u=e.valueFormat,c=e.sortByValue,d=void 0===c?K.sortByValue:c,h=e.layers,f=void 0===h?K.layers:h,p=e.startAngle,m=void 0===p?K.startAngle:p,g=e.endAngle,b=void 0===g?K.endAngle:g,v=e.padAngle,y=void 0===v?K.padAngle:v,x=e.fit,k=void 0===x?K.fit:x,C=e.innerRadius,_=void 0===C?K.innerRadius:C,A=e.cornerRadius,M=void 0===A?K.cornerRadius:A,S=e.activeInnerRadiusOffset,E=void 0===S?K.activeInnerRadiusOffset:S,T=e.activeOuterRadiusOffset,D=void 0===T?K.activeOuterRadiusOffset:T,L=e.width,O=e.height,F=e.margin,z=e.colors,I=void 0===z?K.colors:z,B=e.borderWidth,j=void 0===B?K.borderWidth:B,N=e.borderColor,P=void 0===N?K.borderColor:N,H=e.enableArcLabels,W=void 0===H?K.enableArcLabels:H,$=e.arcLabel,Z=void 0===$?K.arcLabel:$,q=e.arcLabelsSkipAngle,U=void 0===q?K.arcLabelsSkipAngle:q,V=e.arcLabelsSkipRadius,Y=void 0===V?K.arcLabelsSkipRadius:V,G=e.arcLabelsTextColor,J=void 0===G?K.arcLabelsTextColor:G,Q=e.arcLabelsRadiusOffset,et=void 0===Q?K.arcLabelsRadiusOffset:Q,en=e.arcLabelsComponent,es=e.enableArcLinkLabels,ea=void 0===es?K.enableArcLinkLabels:es,el=e.arcLinkLabel,eu=void 0===el?K.arcLinkLabel:el,ec=e.arcLinkLabelsSkipAngle,ed=void 0===ec?K.arcLinkLabelsSkipAngle:ec,eh=e.arcLinkLabelsOffset,ef=void 0===eh?K.arcLinkLabelsOffset:eh,ep=e.arcLinkLabelsDiagonalLength,em=void 0===ep?K.arcLinkLabelsDiagonalLength:ep,eg=e.arcLinkLabelsStraightLength,eb=void 0===eg?K.arcLinkLabelsStraightLength:eg,ev=e.arcLinkLabelsThickness,ey=void 0===ev?K.arcLinkLabelsThickness:ev,ex=e.arcLinkLabelsTextOffset,ek=void 0===ex?K.arcLinkLabelsTextOffset:ex,ew=e.arcLinkLabelsTextColor,eC=void 0===ew?K.arcLinkLabelsTextColor:ew,e_=e.arcLinkLabelsColor,eA=void 0===e_?K.arcLinkLabelsColor:e_,eM=e.arcLinkLabelComponent,eS=e.defs,eE=void 0===eS?K.defs:eS,eT=e.fill,eD=void 0===eT?K.fill:eT,eL=e.isInteractive,eO=void 0===eL?K.isInteractive:eL,eR=e.onClick,eF=e.onMouseEnter,ez=e.onMouseMove,eI=e.onMouseLeave,eB=e.tooltip,ej=void 0===eB?K.tooltip:eB,eN=e.activeId,eP=e.onActiveIdChange,eH=e.defaultActiveId,eW=e.transitionMode,e$=void 0===eW?K.transitionMode:eW,eZ=e.legends,eq=void 0===eZ?K.legends:eZ,eU=e.forwardLegendD
1ata,eV=e.role,eY=void 0===eV?K.role:eV,eG=e.forwardedRef,eJ=(0,i.Bs)(L,O,F),eX=eJ.outerWidth,eK=eJ.outerHeight,eQ=eJ.margin,e0=eJ.innerWidth,e1=eJ.innerHeight,e2=er({data:ee({data:t,id:o,value:a,valueFormat:u,colors:I}),width:e0,height:e1,fit:k,innerRadius:_,startAngle:m,endAngle:b,padAngle:y,sortByValue:d,cornerRadius:M,activeInnerRadiusOffset:E,activeOuterRadiusOffset:D,activeId:eN,onActiveIdChange:eP,defaultActiveId:eH,forwardLegendData:eU}),e3=e2.dataWithArc,e5=e2.legendData,e6=e2.arcGenerator,e8=e2.centerX,e4=e2.centerY,e7=e2.radius,e9=e2.innerRadius,te=e2.setActiveId,tt=e2.toggleSerie,tn=(0,i.yU)(eE,e3,eD),tr={arcs:null,arcLinkLabels:null,arcLabels:null,legends:null};f.includes("arcs")&&(tr.arcs=(0,l.jsx)(eo,{center:[e8,e4],data:e3,arcGenerator:e6,borderWidth:j,borderColor:P,isInteractive:eO,onClick:eR,onMouseEnter:eF,onMouseMove:ez,onMouseLeave:eI,setActiveId:te,tooltip:ej,transitionMode:e$},"arcs")),ea&&f.includes("arcLinkLabels")&&(tr.arcLinkLabels=(0,l.jsx)(R,{center:[e8,e4],data:e3,label:eu,skipAngle:ed,offset:ef,diagonalLength:em,straightLength:eb,strokeWidth:ey,textOffset:ek,textColor:eC,linkColor:eA,component:eM},"arcLinkLabels")),W&&f.includes("arcLabels")&&(tr.arcLabels=(0,l.jsx)(w,{center:[e8,e4],data:e3,label:Z,radiusOffset:et,skipAngle:U,skipRadius:Y,textColor:J,transitionMode:e$,component:en},"arcLabels")),eq.length>0&&f.includes("legends")&&(tr.legends=(0,l.jsx)(X,{width:e0,height:e1,data:e5,legends:eq,toggleSerie:tt},"legends"));var ti=ei({dataWithArc:e3,arcGenerator:e6,centerX:e8,centerY:e4,radius:e7,innerRadius:e9});return(0,l.jsx)(i.tM,{width:eX,height:eK,margin:eQ,defs:tn,role:eY,ref:eG,children:f.map(function(e,t){return void 0!==tr[e]?tr[e]:"function"==typeof e?(0,l.jsx)(r.Fragment,{children:(0,r.createElement)(e,ti)},t):null})})},el=(0,r.forwardRef)(function(e,t){var n=e.isInteractive,r=void 0===n?K.isInteractive:n,o=e.animate,s=void 0===o?K.animate:o,a=e.motionConfig,u=void 0===a?K.motionConfig:a,c=e.theme,d=e.renderWrapper,h=G(e,es);return(0,l.jsx)(i.W2,{animate:s,isInteractive:r,motionConfig:u,renderWrapper:d,theme:c,children:(0,l.jsx)(ea,Y({isInteractive:r},h,{forwardedRef:t}))})}),eu=["defaultWidth","defaultHeight","onResize","debounceResize"],ec=(0,r.forwardRef)(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,o=e.onResize,s=e.debounceResize,a=G(e,eu);return(0,l.jsx)(i.d,{defaultWidth:n,defaultHeight:r,onResize:o,debounceResize:s,children:function(e){var n=e.width,r=e.height;return(0,l.jsx)(el,Y({width:n,height:r},a,{ref:t}))}})}),ed=["isInteractive","theme","renderWrapper"],eh=function(e){var t=e.data,n=e.id,o=void 0===n?K.id:n,a=e.value,c=void 0===a?K.value:a,d=e.valueFormat,h=e.sortByValue,f=void 0===h?K.sortByValue:h,p=e.startAngle,m=void 0===p?K.startAngle:p,g=e.endAngle,b=void 0===g?K.endAngle:g,v=e.padAngle,y=void 0===v?K.padAngle:v,x=e.fit,k=void 0===x?K.fit:x,w=e.innerRadius,A=void 0===w?K.innerRadius:w,M=e.cornerRadius,S=void 0===M?K.cornerRadius:M,E=e.activeInnerRadiusOffset,T=void 0===E?K.activeInnerRadiusOffset:E,D=e.activeOuterRadiusOffset,L=void 0===D?K.activeOuterRadiusOffset:D,O=e.width,R=e.height,z=e.margin,B=e.pixelRatio,j=void 0===B?K.pixelRatio:B,N=e.colors,P=void 0===N?K.colors:N,H=e.borderWidth,W=void 0===H?K.borderWidth:H,Z=e.borderColor,U=void 0===Z?K.borderColor:Z,G=e.enableArcLabels,J=void 0===G?K.enableArcLabels:G,X=e.arcLabel,Q=void 0===X?K.arcLabel:X,et=e.arcLabelsSkipAngle,en=void 0===et?K.arcLabelsSkipAngle:et,ei=e.arcLabelsTextColor,eo=void 0===ei?K.arcLabelsTextColor:ei,es=e.arcLabelsRadiusOffset,ea=void 0===es?K.arcLabelsRadiusOffset:es,el=e.enableArcLinkLabels,eu=void 0===el?K.enableArcLinkLabels:el,ec=e.arcLinkLabel,ed=void 0===ec?K.arcLinkLabel:ec,eh=e.arcLinkLabelsSkipAngle,ef=void 0===eh?K.arcLinkLabelsSkipAngle:eh,ep=e.arcLinkLabelsOffset,em=void 0===ep?K.arcLinkLabelsOffset:ep,eg=e.arcLinkLabelsDiagonalLength,eb=void 0===eg?K.arcLinkLabelsDiagonalLength:eg,ev=e.arcLinkLabelsStraightLength,ey=void 0===ev?K.arcLinkLabelsStraightLength:ev,ex=e.arcLinkLabelsThickness,ek=void 0===ex?K.arcLinkLabelsThickness:ex,ew=e.arcLinkLabelsTextOffset,eC=void 0===ew?K.arcLinkLabelsTextOffset:ew,e_=e.arcLinkLabelsTextColor,eA=void 0===e_?K.arcLinkLabelsTextColor:e_,eM=e.arcLinkLabelsColor,eS=void 0===eM?K.arcLinkLabelsColor:eM,eE=e.isInteractive,eT=void 0===eE?K.isInteractive:eE,eD=e.onClick,eL=e.onMouseMove,eO=e.tooltip,eR=void 0===eO?K.tooltip:eO,eF=e.activeId,ez=e.onActiveIdChange,eI=e.defaultActiveId,eB=e.legends,ej=void 0===eB?K.legends:eB,eN=e.forwardLegendD
1ata,eP=e.role,eH=e.forwardedRef,eW=(0,r.useRef)(null),e$=(0,s.Fg)(),eZ=(0,i.Bs)(O,R,z),eq=eZ.margin,eU=eZ.innerWidth,eV=eZ.innerHeight,eY=eZ.outerWidth,eG=eZ.outerHeight,eJ=er({data:ee({data:t,id:o,value:c,valueFormat:d,colors:P}),width:eU,height:eV,fit:k,innerRadius:A,startAngle:m,endAngle:b,padAngle:y,sortByValue:f,cornerRadius:S,activeInnerRadiusOffset:T,activeOuterRadiusOffset:L,activeId:eF,onActiveIdChange:ez,defaultActiveId:eI,forwardLegendData:eN}),eX=eJ.dataWithArc,eK=eJ.arcGenerator,eQ=eJ.centerX,e0=eJ.centerY,e1=eJ.radius,e2=eJ.innerRadius,e3=eJ.setActiveId,e5=(0,u.Bf)(U,e$),e6=_({data:eX,label:Q,skipAngle:en,offset:ea,textColor:eo}),e8=I({data:eX,skipAngle:ef,offset:em,diagonalLength:eb,straightLength:ey,label:ed,linkColor:eS,textOffset:eC,textColor:eA});(0,r.useEffect)(function(){if(eW.current){eW.current.width=eY*j,eW.current.height=eG*j;var e=eW.current.getContext("2d");e.scale(j,j),e.fillStyle=e$.background,e.fillRect(0,0,eY,eG),e.save(),e.translate(eq.left,eq.top),eK.context(e),e.save(),e.translate(eQ,e0),eX.forEach(function(t){e.beginPath(),e.fillStyle=t.color,e.strokeStyle=e5(t),e.lineWidth=W,eK(t.arc),e.fill(),W>0&&e.stroke()}),!0===eu&&F(e,e8,e$,ek),!0===J&&C(e,e6,e$),e.restore(),ej.forEac
1h(function(t){(0,q.as)(e,Y({},t,{data:eX,containerWidth:eU,containerHeight:eV,theme:e$}))})}},[eW,eU,eV,eY,eG,eq.top,eq.left,j,eQ,e0,eK,eX,W,e5,J,e6,eu,e8,ek,ej,e$]);var e4=(0,r.useMemo)(function(){return eX.map(function(e){return Y({id:e.id},e.arc)})},[eX]),e7=function(e){if(!eW.current)return null;var t=(0,i.P6)(eW.current,e),n=t[0],r=t[1],o=$(eq.left+eQ,eq.top+e0,e1,e2,e4,n,r);return o?eX.find(function(e){return e.id===o.id}):null},e9=(0,V.lL)(),te=e9.showTooltipFromEvent,tt=e9.hideTooltip,tn=function(e){var t=e7(e);t?(null==eL||eL(t,e),e3(t.id),te((0,r.createElement)(eR,{datum:t}),e)):(e3(null),tt())};return(0,l.jsx)("canvas",{ref:(0,i.lq)(eW,eH),width:eY*j,height:eG*j,style:{width:eY,height:eG,cursor:eT?"auto":"normal"},onMouseEnter:eT?tn:void 0,onMouseMove:eT?tn:void 0,onMouseLeave:eT?function(){tt()}:void 0,onClick:eT?function(e){if(eD){var t=e7(e);t&&eD(t,e)}}:void 0,role:eP})},ef=(0,r.forwardRef)(function(e,t){var n=e.isInteractive,r=void 0===n?K.isInteractive:n,o=e.theme,s=e.renderWrapper,a=G(e,ed);return(0,l.jsx)(i.W2,{isInteractive:r,renderWrapper:s,theme:o,children:(0,l.jsx)(eh,Y({isInteractive:r},a,{forwardedRef:t}))})}),ep=["defaultWidth","defaultHeight","onResize","debounceResize"];(0,r.forwardRef)(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,o=e.onResize,s=e.debounceResize,a=G(e,ep);return(0,l.jsx)(i.d,{defaultWidth:n,defaultHeight:r,onResize:o,debounceResize:s,children:function(e){var n=e.width,r=e.height;return(0,l.jsx)(ef,Y({width:n,height:r},a,{ref:t}))}})})},83013:function(e,t,n){"use strict";n.d(t,{Gv:function(){return eN},ZN:function(){return eL},Gi:function(){return eR},xX:function(){return eW}});var r=n(75652),i=n(84636),o=n(829),s=n(56974),a=n(17318),l=n(81488),u=n(82489),c=n(33608),d=n(72736),h=n(78171),f=n(64420),p=n(9979),m=n(49650),g=n(87956),b=n(73832),v=n(48392),y=n(96515),x=n(72684),k=n(68753),w=n(52497),C=n(39255),_=n(8489),A=n(34792),M=n(96291);function S(e){return Math.log(e)}function E(e){return Math.exp(e)}function T(e){return-Math.log(-e)}function D(e){return-Math.exp(-e)}function L(e){return isFinite(e)?+("1e"+e):e<0?0:e}function O(e){return(t,n)=>-e(-t,n)}function R(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function F(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}var z=n(96677),I=n(45549),B=new Date,j=new Date;function N(e,t,n,r){function i(t){return e(t=0==arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var s,a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r)||!(o>0))return a;do a.push(s=new Date(+n)),t(n,o),e(n);while(s<n&&n<r);return a},i.filter=function(n){return N(function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},function(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=function(t,r){return B.setTime(+t),j.setTime(+r),e(B),e(j),Math.floor(n(B,j))},i.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var P=N(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});P.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?N(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):P:null},P.range;var H=N(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+1e3*t)},function(e,t){return(t-e)/1e3},function(e){return e.getUTCSeconds()});H.range;var W=N(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},function(e,t){e.setTime(+e+6e4*t)},function(e,t){return(t-e)/6e4},function(e){return e.getMinutes()});W.range;var $=N(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+6e4*t)},function(e,t){return(t-e)/6e4},function(e){return e.getUTCMinutes()});$.range;var Z=N(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getHours()});Z.range;var q=N(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getUTCHours()});function U(e){return N(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5})}q.range;var V=U(0),Y=U(1),G=U(2),J=U(3),X=U(4),K=U(5),Q=U(6);function ee(e){return N(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/6048e5})}V.range,Y.range,G.range,J.range,X.range,K.range,Q.range;var et=ee(0),en=ee(1),er=ee(2),ei=ee(3),eo=ee(4),es=ee(5),ea=ee(6);et.range,en.range,er.range,ei.range,eo.range,es.range,ea.range;var el=N(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});el.range;var eu=N(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});eu.range;var ec=N(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});ec.every=function(e){return isFinite(e=Math.floor(e))&&e>0?N(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null},ec.range;var ed=N(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});function eh(){return(eh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}ed.every=function(e){return isFinite(e=Math.floor(e))&&e>0?N(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null},ed.range;var ef=[function(e){return e.setMilliseconds(0)},function(e){return e.setSeconds(0)},function(e){return e.setMinutes(0)},function(e){return e.setHours(0)},function(e){return e.setDate(1)},function(e){return e.setMonth(0)}],ep={millisecond:[],second:ef.slice(0,1),minute:ef.slice(0,2),hour:ef.slice(0,3),day:ef.slice(0,4),month:ef.slice(0,5),year:ef.slice(0,6)},em=function(e){var t,n=e.format,r=void 0===n?"native":n,i=e.precision,o=e.useUTC,s=void 0===o||o,a=(t=void 0===i?"millisecond":i,function(e){return ep[t].forEach(function(t){t(e)}),e});return function(e){return void 0===e?e:"native"===r||e instanceof Date?a(e):a((s?(0,l.wp)(r):(0,l.Z1)(r))(e))}},eg={min:0,max:"auto",stacked:!1,reverse:!1,clamp:!1,nice:!0,round:!1},eb=function(e,t,n,r){var i,o,s,a,l=e.min,c=void 0===l?eg.min:l,d=e.max,h=void 0===d?eg.max:d,f=e.stacked,p=void 0===f?eg.stacked:f,m=e.reverse,g=void 0===m?eg.reverse:m,b=e.clamp,v=void 0===b?eg.clamp:b,y=e.nice,x=void 0===y?eg.nice:y,k=e.round,w=void 0===k?eg.round:k;i="auto"===c?!0===p?null!=(o=t.minStacked)?o:0:t.min:c,s="auto"===h?!0===
1p?null!=(a=t.maxStacked)?a:0:t.max:h;var C=(0,u.Z)().range("x"===r?[0,n]:[n,0]).interpolate(w?z.Z:I.Z).domain(g?[s,i]:[i,s]).clamp(v);return!0===x?C.nice():"number"==typeof x&&C.nice(x),ev(C,p)},ev=function(e,t){return void 0===t&&(t=!1),e.type="linear",e.stacked=t,e},ey=function(e,t,n){var r=(0,c.x)().range([0,n]).domain(t.all);return r.type="point",r},ex={round:!1},ek=function(e,t,n,r){var i=e.round,o=void 0===i?ex.round:i;return ew((0,c.Z)().range("x"===r?[0,n]:[n,0]).domain(t.all).round(o))},ew=function(e){return e.type="band",e},eC={format:"native",precision:"millisecond",min:"auto",max:"auto",useUTC:!0,nice:!1},e_=function(e,t,n){var r,i,o=e.format,s=void 0===o?eC.format:o,a=e.precision,l=void 0===a?eC.precision:a,u=e.min,c=void 0===u?eC.min:u,w=e.max,C=void 0===w?eC.max:w,_=e.useUTC,A=void 0===_?eC.useUTC:_,M=e.nice,S=void 0===M?eC.nice:M,E=em({format:s,precision:l,useUTC:A});r="auto"===c?E(t.min):"native"!==s?E(c):c,i="auto"===C?E(t.max):"native"!==s?E(C):C;var T=A?function(){return k.o.apply((0,x.Y)(d.WG,d.jo,h.ol,f.me,p.pI,m.AN,g.lM,b.rz,v.E,y.g0).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}():(0,x.Z)();return T.range([0,n]),r&&i&&T.domain([r,i]),!0===S?T.nice():"object"!=typeof S&&"number"!=typeof S||T.nice(S),T.type="time",T.useUTC=A,T},eA={base:10,min:"auto",max:"auto",round:!1,reverse:!1,nice:!0},eM=function(e,t,n,r){var i,o=e.base,s=void 0===o?eA.base:o,a=e.min,l=void 0===a?eA.min:a,u=e.max,c=void 0===u?eA.max:u,d=e.round,h=void 0===d?eA.round:d,f=e.reverse,p=void 0===f?eA.reverse:f,m=e.nice,g=void 0===m?eA.nice:m;if(t.all.some(function(e){return 0===e}))throw Error("a log scale domain must not include or cross zero");var b,v,y=!1;if(t.all.filter(function(e){return null!=e}).forEach(function(e){y||(void 0===i?i=Math.sign(e):Math.sign(e)!==i&&(y=!0))}),y)throw Error("a log scale domain must be strictly-positive or strictly-negative");b="auto"===l?t.min:l,v="auto"===c?t.max:c;var x=(function e(){let t=(function(e){let t,n;let r=e(S,E),i=r.domain,o=10;function s(){var s,a;return t=(s=o)===Math.E?Math.log:10===s&&Math.log10||2===s&&Math.log2||(s=Math.log(s),e=>Math.log(e)/s),n=10===(a=o)?L:a===Math.E?Math.exp:e=>Math.pow(a,e),i()[0]<0?(t=O(t),n=O(n),e(T,D)):e(S,E),r}
1return r.base=function(e){return arguments.length?(o=+e,s()):o},r.domain=function(e){return arguments.length?(i(e),s()):i()},r.ticks=e=>{let r,s;let a=i(),l=a[0],u=a[a.length-1],c=u<l;c&&([l,u]=[u,l]);let d=t(l),h=t(u),f=null==e?10:+e,p=[];if(!(o%1)&&h-d<f){if(d=Math.floor(d),h=Math.ceil(h),l>0){for(;d<=h;++d)for(r=1;r<o;++r)if(!((s=d<0?r/n(-d):r*n(d))<l)){if(s>u)break;p.push(s)}}else for(;d<=h;++d)for(r=o-1;r>=1;--r)if(!((s=d>0?r/n(-d):r*n(d))<l)){if(s>u)break;p.push(s)}2*p.length<f&&(p=(0,w.ZP)(l,u,f))}else p=(0,w.ZP)(d,h,Math.min(h-d,f)).map(n);return c?p.reverse():p},r.tickFormat=(e,i)=>{if(null==e&&(e=10),null==i&&(i=10===o?"s":","),"function"!=typeof i&&(o%1||null!=(i=(0,C.Z)(i)).precision||(i.trim=!0),i=(0,_.WU)(i)),e===1/0)return i;let s=Math.max(1,o*e/r.ticks().length);return e=>{let r=e/n(Math.round(t(e)));return r*o<o-.5&&(r*=o),r<=s?i(e):""}},r.nice=()=>i((0,A.Z)(i(),{floor:e=>n(Math.floor(t(e))),ceil:e=>n(Math.ceil(t(e)))})),r})((0,M.l4)()).domain([1,10]);return t.copy=()=>(0,M.JG)(t,e()).base(t.base()),k.o.apply(t,arguments),t})().base(s),R="x"===r?[0,n]:[n,0];return!0===h?x.rangeRound(R):x.range(R),!0===p?x.domain([v,b]):x.domain([b,v]),!0===g?x.nice():"number"==typeof g&&x.nice(g),x.type="log",x},eS={constant:1,min:"auto",max:"auto",round:!1,reverse:!1,nice:!0},eE=function(e,t,n,r){var i,o,s=e.constant,a=void 0===s?eS.constant:s,l=e.min,c=void 0===l?eS.min:l,d=e.max,h=void 0===d?eS.max:d,f=e.round,p=void 0===f?eS.round:f,m=e.reverse,g=void 0===m?eS.reverse:m,b=e.nice,v=void 0===b?eS.nice:b;i="auto"===c?t.min:c,o="auto"===h?t.max:h;var y=(function e(){var t,n,r,i=(t=(0,M.l4)(),n=1,(r=t(R(1),F(n))).constant=function(e){return arguments.length?t(R(n=+e),F(n)):n},(0,u.Q)(r));return i.copy=function(){return(0,M.JG)(i,e()).constant(i.constant())},k.o.apply(i,arguments)})().constant(a),x="x"===r?[0,n]:[n,0];return!0===p?y.rangeRound(x):y.range(x),!0===g?y.domain([o,i]):y.domain([i,o]),!0===v?y.nice():"number"==typeof v&&y.nice(v),y.type="symlog",y},eT=function(e,t){return e===t},eD=function(e,t){return e.getTime()===t.getTime()};function eL(e,t,n,r){switch(e.type){case"linear":return eb(e,t,n,r);case"point":return ey(0,t,n);case"band":return ek(e,t,n,r);case"time":return e_(e,t,n);case"log":return eM(e,t,n,r);case"symlog":return eE(e,t,n,r);default:throw Error("invalid scale spec")}}var eO=function(e,t,n){var r;if("stacked"in n&&n.stacked){var i=e.data["x"===t?"xStacked":"yStacked"];return null==i?null:n(i)}return null!=(r=n(e.data[t]))?r:null},eR=function(e,t,n,r,i){var o=e.map(function(e){return eh({},e,{data:e.data.map(function(e){return{data:eh({},e)}})})}),s=eF(o,t,n);"stacked"in t&&!0===t.stacked&&eB(s,o),"stacked"in n&&!0===n.stacked&&ej(s,o);var a=eL(t,s.x,r,"x"),l=eL(n,s.y,i,"y"),u=o.map(function(e){return eh({},e,{data:e.data.map(function(e){return eh({},e,{position:{x:eO(e,"x",a),y:eO(e,"y",l)}})})})});return eh({},s,{series:u,xScale:a,yScale:l})},eF=function(e,t,n){return{x:ez(e,"x",t),y:ez(e,"y",n)}},ez=function(e,t,n,a){var l=void 0===a?{}:a,u=l.getValue,c=void 0===u?function(e){return e.data[t]}:u,d=l.setValue,h=void 0===d?function(e,n){e.data[t]=n}:d;if("linear"===n.type)e.forEach(function(e){e.data.forEach(function(e){var t=c(e);t&&h(e,parseFloat(String(t)))})});else if("time"===n.type&&"native"!==n.format){var f=em(n);e.forEach(function(e){e.data.forEach(function(e){var t=c(e);t&&h(e,f(t))})})}var p=[];switch(e.forEach(function(e){e.data.forEach(function(e){p.push(c(e))})}),n.type){case"linear":var m=o(r(p).filter(function(e){return null!==e}),function(e){return e});return{all:m,min:Math.min.apply(Math,m),max:Math.max.apply(Math,m)};case"time":var g=i(p,function(e){return e.getTime()}).slice(0).sort(function(e,t){return t.getTime()-e.getTime()}).reverse();return{all:g,min:g[0],max:s(g)};default:var b=r(p);return{all:b,min:b[0],max:s(b)}}},eI=function(e,t,n){var r="x"===e?"y":"x",i=[];t[r].all.forEach(function(t){var o=a(t)?eD:eT,l=[];n.forEach(function(n){var a=n.data.find(function(e){return o(e.data[r],t)}),u=null,c=null;if(void 0!==a){if(null!==(u=a.data[e])){var d=s(l);void 0===d?c=u:null!==d&&(c=d+u)}a.data["x"===e?"xStacked":"yStacked"]=c}l.push(c),null!==c&&i.push(c)})}),t[e].minStacked=Math.min.apply(Math,i),t[e].maxStacked=Math.max.apply(Math,i)},eB=function(e,t){return eI("x",e,t)},ej=function(e,t){return eI("y",e,t)},eN=function(e){var t=e.bandwidth();if(0===t)return e;var n=t/2;return e.round()&&(n=Math.round(n)),function(t){var r;return(null!=(r=e(t))?r:0)+n}},eP={millisecond:[P,P],second:[H,H],minute:[W,$],hour:[Z,q],day:[N(function(e){return e.setHours(0,0,0,0)},function(e,t){return e.setDate(e.getDate()+t)},function(e,t){return(t.getTime()-e.getTime())/864e5},function(e){return Math.floor(e.getTime()/864e5)}),N(function(e){return e.setUTCHours(0,0,0,0)},function(e,t){return e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t.getTime()-e.getTime())/864e5},function(e){return Math.floor(e.getTime()/864e5)})],week:[V,et],sunday:[V,et],monday:[Y,en],tuesday:[G,er],wednesday:[J,ei],thursday:[X,eo],friday:[K,es],saturday:[Q,ea],month:[el,eu],year:[ec,ed]},eH=RegExp("^every\\s*(\\d+)?\\s*("+Object.keys(eP).join("|")+")s?$","i"),eW=function(e,t){if(Array.isArray(t))return t;if("string"==typeof t&&"useUTC"in e){var n=t.match(eH);if(n){var r=n[1],i=n[2],o=eP[i][e.useUTC?1:0];if("day"===i){var s,a,l=e.domain(),u=l[0],c=new Date(l[1]);return c.setDate(c.getDate()+1),null!=(s=null==(a=o.every(Number(null!=r?r:1)))?void 0:a.range(u,c))?s:[]}if(void 0===r)return e.ticks(o);var d=o.every(Number(r));if(d)return e.ticks(d)}throw Error("Invalid tickValues: "+t)}if("ticks"in e){if(void 0===t)return e.ticks();if("number"==typeof t&&isFinite(t)&&Math.floor(t)===t)return e.ticks(t)}return e.domain()}},35824:function(e,t,n){"use strict";n.d(t,{Ay:function(){return o},MC:function(){return s},xv:function(){return d}});var r=n(65352),i=n(52322),o=function(e,t){e.font=(t.fontWeight?t.fontWeight+" ":"")+t.fontSize+"px "+t.fontFamily},s=function(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=0),t.outlineWidth>0&&(e.strokeStyle=t.outlineColor,e.lineWidth=2*t.outlineWidth,e.lineJoin="round",e.strokeText(n,r,i)),e.fillStyle=t.fill,e.fillText(n,r,i)};function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}function l(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var u=["style","children"],c=["outlineWidth","outlineColor","outlineOpacity"],d=function(e){var t=e.style,n=e.children,o=l(e,u),s=t.outlineWidth,d=t.outlineColor,h=t.outlineOpacity,f=l(t,c);return(0,i.jsxs)(i.Fragment,{children:[s>0&&(0,i.jsx)(r.q.text,a({},o,{style:a({},f,{strokeWidth:2*s,stroke:d,strokeOpacity:h,strokeLinejoin:"round"}),children:n})),(0,i.jsx)(r.q.text,a({},o,{style:f,children:n}))]})}},91265:function(e,t,n){"use strict";n.d(t,{Fg:function(){return y},OJ:function(){return m},TE:function(){return c},XN:function(){return f},f6:function(){return v}});
1var r=n(2784),i=n(98537),o=n(72579),s=n(16765),a=n(52322);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var u=["outlineWidth","outlineColor","outlineOpacity"],c=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,u)},d=["axis.ticks.text","axis.legend.text","legends.title.text","legends.text","legends.ticks.text","legends.title.text","labels.text","dots.text","markers.text","annotations.text"],h=function(e,t){var n=i({},e,t);return d.forEach(function(e){var t,r;s(n,e,(t=o(n,e),r=n.text,l({},r,t)))}),n},f=function(e,t){return t?i({},e,t):e},p={background:"transparent",text:{fontFamily:"sans-serif",fontSize:11,fill:"#333333",outlineWidth:0,outlineColor:"#ffffff",outlineOpacity:1},axis:{domain:{line:{stroke:"transparent",strokeWidth:1}},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:"#dddddd",strokeWidth:1}},legends:{hidden:{symbol:{fill:"#333333",opacity:.6},text:{fill:"#333333",opacity:.6}},text:{},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:"#000000",lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:"white",color:"inherit",fontSize:"inherit",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},basic:{whiteSpace:"pre",display:"flex",alignItems:"center"},chip:{marginRight:7},table:{},tableCell:{padding:"3px 5px"},tableCellValue:{fontWeight:"bold"}},crosshair:{line:{stroke:"#000000",strokeWidth:1,strokeOpacity:.75,strokeDasharray:"6 6"}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},link:{stroke:"#000000",strokeWidth:1,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},outline:{fill:"none",stroke:"#000000",strokeWidth:2,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},symbol:{fill:"#000000",outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1}}},m=function(e,t){return(0,r.useMemo)(function(){return f(e,t)},[e,t])},g=(0,r.createContext)(null),b={},v=function(e){var t,n=e.theme,i=e.children,o=(t=void 0===n?b:n,(0,r.useMemo)(function(){return h(p,t)},[t]));return(0,a.jsx)(g.Provider,{value:o,children:i})},y=function(){var e=(0,r.useContext)(g);if(null===e)throw Error("Unable to find the theme, did you forget to wrap your component with ThemeProvider?");return e}},18586:function(e,t,n){"use strict";n.d(t,{Af:function(){return f},YS:function(){return v},_5:function(){return p},lL:function(){return C},pn:function(){return M},u:function(){return A},zI:function(){return g}});var r=n(2784),i=n(65352),o=n(64565),s=n(91265),a=n(52322);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var u=["basic","chip","container","table","tableCell","tableCellValue"],c={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},d=function(e,t){return"translate("+e+"px, "+t+"px)"},h=(0,r.memo)(function(e){var t,n=e.position,h=e.anchor,f=e.children,p=(0,s.Fg)(),m=(0,o.tf)(),g=m.animate,b=m.config,v=(0,o.xE)(),y=v[0],x=v[1],k=(0,r.useRef)(!1),w=void 0,C=!1,_=x.width>0&&x.height>0,A=Math.round(n[0]),M=Math.round(n[1]);_&&("top"===h?(A-=x.width/2,M-=x.height+14):"right"===h?(A+=14,M-=x.height/2):"bottom"===h?(A-=x.width/2,M+=14):"left"===h?(A-=x.width+14,M-=x.height/2):"center"===h&&(A-=x.width/2,M-=x.height/2),w={transform:d(A,M)},k.current||(C=!0),k.current=[A,M]);var S=(0,i.q_)({to:w,config:b,immediate:!g||C}),E=p.tooltip;E.basic,E.chip,E.container,E.table,E.tableCell,E.tableCellValue;var T=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(E,u),D=l({},c,T,{transform:null!=(t=S.transform)?t:d(A,M),opacity:S.transform?1:0});return(0,a.jsx)(i.q.div,{ref:y,style:D,children:f})});
1h.displayName="TooltipWrapper";var f=(0,r.memo)(function(e){var t=e.size,n=void 0===t?12:t,r=e.color,i=e.style;return(0,a.jsx)("span",{style:l({display:"block",width:n,height:n,background:r},void 0===i?{}:i)})}),p=(0,r.memo)(function(e){var t,n=e.id,r=e.value,i=e.format,l=e.enableChip,u=e.color,c=e.renderContent,d=(0,s.Fg)(),h=(0,o.O_)(i);if("function"==typeof c)t=c();else{var p=r;void 0!==h&&void 0!==p&&(p=h(p)),t=(0,a.jsxs)("div",{style:d.tooltip.basic,children:[void 0!==l&&l&&(0,a.jsx)(f,{color:u,style:d.tooltip.chip}),void 0!==p?(0,a.jsxs)("span",{children:[n,": ",(0,a.jsx)("strong",{children:""+p})]}):n]})}return(0,a.jsx)("div",{style:d.tooltip.container,role:"tooltip",children:t})}),m={width:"100%",borderCollapse:"collapse"},g=(0,r.memo)(function(e){var t,n=e.title,r=e.rows,i=void 0===r?[]:r,o=e.renderContent,u=(0,s.Fg)();return i.length?(t="function"==typeof o?o():(0,a.jsxs)("div",{children:[n&&n,(0,a.jsx)("table",{style:l({},m,u.tooltip.table),children:(0,a.jsx)("tbody",{children:i.map(function(e,t){return(0,a.jsx)("tr",{children:e.map(function(e,t){return(0,a.jsx)("td",{style:u.tooltip.tableCell,children:e},t)})},t)})})})]}),(0,a.jsx)("div",{style:u.tooltip.container,children:t})):null});g.displayName="TableTooltip";var b=(0,r.memo)(function(e){var t=e.x0,n=e.x1,u=e.y0,c=e.y1,d=(0,s.Fg)(),h=(0,o.tf)(),f=h.animate,p=h.config,m=(0,r.useMemo)(function(){return l({},d.crosshair.line,{pointerEvents:"none"})},[d.crosshair.line]),g=(0,i.q_)({x1:t,x2:n,y1:u,y2:c,config:p,immediate:!f});return(0,a.jsx)(i.q.line,l({},g,{fill:"none",style:m}))});b.displayName="CrosshairLine";var v=(0,r.memo)(function(e){var t,n,r=e.width,i=e.height,o=e.type,s=e.x,l=e.y;return"cross"===o?(t={x0:s,x1:s,y0:0,y1:i},n={x0:0,x1:r,y0:l,y1:l}):"top-left"===o?(t={x0:s,x1:s,y0:0,y1:l},n={x0:0,x1:s,y0:l,y1:l}):"top"===o?t={x0:s,x1:s,y0:0,y1:l}:"top-right"===o?(t={x0:s,x1:s,y0:0,y1:l},n={x0:s,x1:r,y0:l,y1:l}):"right"===o?n={x0:s,x1:r,y0:l,y1:l}:"bottom-right"===o?(t={x0:s,x1:s,y0:l,y1:i},n={x0:s,x1:r,y0:l,y1:l}):"bottom"===o?t={x0:s,x1:s,y0:l,y1:i}:"bottom-left"===o?(t={x0:s,x1:s,y0:l,y1:i},n={x0:0,x1:s,y0:l,y1:l}):"left"===o?n={x0:0,x1:s,y0:l,y1:l}:"x"===o?t={x0:s,x1:s,y0:0,y1:i}:"y"===o&&(n={x0:0,x1:r,y0:l,y1:l}),(0,a.jsxs)(a.Fragment,{children:[t&&(0,a.jsx)(b,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&(0,a.jsx)(b,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});v.displayName="Crosshair";var y=(0,r.createContext)({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),x={isVisible:!1,position:[null,null],content:null,anchor:null},k=(0,r.createContext)(x),w=function(e){var t=(0,r.useState)(x),n=t[0],i=t[1],o=(0,r.useCallback)(function(e,t,n){void 0===n&&(n="top"),i({isVisible:!0,position:[t[0],t[1]],anchor:n,content:e})},[i]),s=(0,r.useCallback)(function(t,n,r){void 0===r&&(r="top");var o=e.current.getBoundingClientRect(),s=e.current.offsetWidth,a=s===o.width?1:s/o.width,l="touches"in n?n.touches[0]:n,u=l.clientX,c=l.clientY,d=(u-o.left)*a,h=(c-o.top)*a;"left"!==r&&"right"!==r||(r=d<o.width/2?"right":"left"),i({isVisible:!0,position:[d,h],anchor:r,content:t})},[e,i]),a=(0,r.useCallback)(function(){i(x)},[i]);return{actions:(0,r.useMemo)(function(){return{showTooltipAt:o,showTooltipFromEvent:s,hideTooltip:a}},[o,s,a]),state:n}},C=function(){var e=(0,r.useContext)(y);if(void 0===e)throw Error("useTooltip must be used within a TooltipProvider");return e},_=function(){var e=(0,r.useContext)(k);if(void 0===e)throw Error("useTooltipState must be used within a TooltipProvider");return e},A=function(){var e=_();return e.isVisible?(0,a.jsx)(h,{position:e.position,anchor:e.anchor,children:e.content}):null},M=function(e){var t=e.container,n=e.children,r=w(t),i=r.actions,o=r.state;return(0,a.jsx)(y.Provider,{value:i,children:(0,a.jsx)(k.Provider,{value:o,children:n})})}},65352:function(e,t,n){"use strict";n.d(t,{q:function(){return np},vc:function(){return tf},to:function(){return ne},q_:function(){return t3},Yz:function(){return t5}});var r,i,o,s=w(),a=e=>v(e,s),l=w();a.write=e=>v(e,l);var u=w();a.onStart=e=>v(e,u);var c=w();a.onFrame=e=>v(e,c);var d=w();a.onFinish=e=>v(e,d);var h=[];a.setTimeout=(e,t)=>{let n=a.now()+t,r=()=>{let e=h.findIndex(e=>e.cancel==r);~e&&h.splice(e,1),g-=~e?1:0},i={time:n,handler:e,cancel:r};return h.splice(f(n),0,i),g+=1,y(),i};var f=e=>~(~h.findIndex(t=>t.time>e)||~h.length);a.cancel=e=>{u.delete(e),c.delete(e),d.delete(e),s.delete(e),l.delete(e)},a.sync=e=>{b=!0,a.batchedUpdates(e),b=!1},a.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,a.onStart(n)}return r.handler=e,r.cancel=()=>{u.delete(n),t=null},r};var p="undefined"!=typeof window?window.requestAnimationFrame:()=>{};a.use=e=>p=e,a.now="undefined"!=typeof performance?()=>performance.now():Date.now,a.batchedUpdates=e=>
1e(),a.catch=console.error,a.frameLoop="always",a.advance=()=>{"demand"!==a.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):k()};var m=-1,g=0,b=!1;function v(e,t){b?(t.delete(e),e(0)):(t.add(e),y())}function y(){m<0&&(m=0,"demand"!==a.frameLoop&&p(x))}function x(){~m&&(p(x),a.batchedUpdates(k))}function k(){let e=m,t=f(m=a.now());if(t&&(C(h.splice(0,t),e=>e.handler()),g-=t),!g){m=-1;return}u.flush(),s.flush(e?Math.min(64,m-e):16.667),c.flush(),l.flush(),d.flush()}function w(){let e=new Set,t=e;return{add(n){g+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(g-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,g-=t.size,C(t,t=>t(n)&&e.add(t)),g+=e.size,t=e)}}}function C(e,t){e.forEach(e=>{try{t(e)}catch(e){a.catch(e)}})}var _=n(2784),A=Object.defineProperty,M={};function S(){}((e,t)=>{for(var n in t)A(e,n,{get:t[n],enumerable:!0})})(M,{assign:()=>P,colors:()=>B,createStringInterpolator:()=>r,skipAnimation:()=>j,to:()=>i,willAdvance:()=>N});var E=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),T={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function D(e,t){if(T.arr(e)){if(!T.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var L=(e,t)=>e.forEach(t);function O(e,t,n){if(T.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(let r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var R=e=>T.und(e)?[]:T.arr(e)?e:[e];function F(e,t){if(e.size){let n=Array.from(e);e.clear(),L(n,t)}}var z=(e,...t)=>F(e,e=>e(...t)),I=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),B=null,j=!1,N=S,P=e=>{e.to&&(i=e.to),e.now&&(a.now=e.now),void 0!==e.colors&&(B=e.colors),null!=e.skipAnimation&&(j=e.skipAnimation),e.createStringInterpolator&&(r=e.createStringInterpolator),e.requestAnimationFrame&&a.use(e.requestAnimationFrame),e.batchedUpdates&&(a.batchedUpdates=e.batchedUpdates),e.willAdvance&&(N=e.willAdvance),e.frameLoop&&(a.frameLoop=e.frameLoop)},H=new Set,W=[],$=[],Z=0,q={get idle(){return!H.size&&!W.length},start(e){Z>e.priority?(H.add(e),a.onStart(U)):(V(e),a(G))},advance:G,sort(e){if(Z)a.onFrame(()=>q.sort(e));else{let t=W.indexOf(e);~t&&(W.splice(t,1),Y(e))}},clear(){W=[],H.clear()}};function U(){H.forEach(V),H.clear(),a(G)}function V(e){W.includes(e)||Y(e)}function Y(e){W.splice(function(e,t){let n=e.findIndex(t);return n<0?e.length:n}(W,t=>t.priority>e.priority),0,e)}function G(e){let t=$;for(let n=0;n<W.length;n++){let r=W[n];Z=r.priority,r.idle||(N(r),r.advance(e),r.idle||t.push(r))}return Z=0,($=W).length=0,(W=t).length>0}var J="[-+]?\\d*\\.?\\d+",X=J+"%";function K(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Q=RegExp("rgb"+K(J,J,J)),ee=RegExp("rgba"+K(J,J,J,J)),et=RegExp("hsl"+K(J,X,X)),en=RegExp("hsla"+K(J,X,X,J)),er=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ei=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,eo=/^#([0-9a-fA-F]{6})$/,es=/^#([0-9a-fA-F]{8})$/;function ea(e,t,n){return(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}function el(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r;return Math.round(255*ea(i,r,e+1/3))<<24|Math.round(255*ea(i,r,e))<<16|Math.round(255*ea(i,r,e-1/3))<<8}function eu(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function ec(e){return(parseFloat(e)%360+360)%360/360}function ed(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function eh(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function ef(e){let t;let n="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=eo.exec(e))?parseInt(t[1]+"ff",16)>>>0:B&&void 0!==B[e]?B[e]:(t=Q.exec(e))?(eu(t[1])<<24|eu(t[2])<<16|eu(t[3])<<8|255)>>>0:(t=ee.exec(e))?(eu(t[1])<<24|eu(t[2])<<16|eu(t[3])<<8|ed(t[4]))>>>0:(t=er.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=es.exec(e))?parseInt(t[1],16)>>>0:(t=ei.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=et.exec(e))?(255|el(ec(t[1]),eh(t[2]),eh(t[3])))>>>0:(t=en.exec(e))?(el(ec(t[1]),eh(t[2]),eh(t[3]))|ed(t[4]))>>>0:null;if(null===n)return e;let r=(4278190080&(n=n||0))>>>24,i=(16711680&n)>>>16,o=(65280&n)>>>8,s=(255&n)/255;return`rgba(${r}, ${i}, ${o}, ${s})`}var ep=(e,t,n)=>{if(T.fun(e))return e;if(T.arr(e))return ep({range:e,output:t,extrapolate:n});if(T.str(e.output[0]))return r(e);let i=e.output,o=e.range||[0,1],s=e.extrapolateLeft||e.extrapolate||"extend",a=e.extrapolateRight||e.extrapolate||"extend",l=e.easing||(e=>e);return t=>{let n=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(t,o);return function(e,t,n,r,i,o,s,a,l){let u=l?l(e):e;if(u<t){if("identity"===s)return u;"clamp"===s&&(u=t)}
1if(u>n){if("identity"===a)return u;"clamp"===a&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t),u=o(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r,u)}(t,o[n],o[n+1],i[n],i[n+1],l,s,a,e.map)}},em=Symbol.for("FluidValue.get"),eg=Symbol.for("FluidValue.observers"),eb=e=>!!(e&&e[em]),ev=e=>e&&e[em]?e[em]():e,ey=e=>e[eg]||null;function ex(e,t){let n=e[eg];n&&n.forEach(e=>{e.eventObserved?e.eventObserved(t):e(t)})}var ek=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");ew(this,e)}},ew=(e,t)=>eA(e,em,t);function eC(e,t){if(e[em]){let n=e[eg];n||eA(e,eg,n=new Set),!n.has(t)&&(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function e_(e,t){let n=e[eg];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[eg]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var eA=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),eM=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,eS=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,eE=RegExp(`(${eM.source})(%|[a-z]+)`,"i"),eT=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,eD=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,eL=e=>{let[t,n]=eO(e);if(!t||I())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){let e=window.getComputedStyle(document.documentElement).getPropertyValue(n);if(e)return e}else if(n&&eD.test(n))return eL(n);else if(n)return n;return e},eO=e=>{let t=eD.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},eR=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,eF=e=>{o||(o=B?RegExp(`(${Object.keys(B).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>ev(e).replace(eD,eL).replace(eS,ef).replace(o,ef)),n=t.map(e=>e.match(eM).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>ep({...e,output:t}));return e=>{let n=!eE.test(t[0])&&t.find(e=>eE.test(e))?.replace(eM,""),i=0;return t[0].replace(eM,()=>`${r[i++](e)}${n||""}`).replace(eT,eR)}},ez="react-spring: ",eI=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${ez}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},eB=eI(console.warn),ej=eI(console.warn);function eN(e){return T.str(e)&&("#"==e[0]||/\d/.test(e)||!I()&&eD.test(e)||e in(B||{}))}var eP=I()?_.useEffect:_.useLayoutEffect,eH=()=>{let e=(0,_.useRef)(!1);return eP(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function eW(){let e=(0,_.useState)()[1],t=eH();return()=>{t.current&&e(Math.random())}}var e$=e=>(0,_.useEffect)(e,eZ),eZ=[];function eq(e){let t=(0,_.useRef)(void 0);return(0,_.useEffect)(()=>{t.current=e}),t.current}var eU=Symbol.for("Animated:node"),eV=e=>!!e&&e[eU]===e,eY=e=>e&&e[eU],eG=(e,t)=>E(e,eU,t),eJ=e=>e&&e[eU]&&e[eU].getPayload(),eX=class{constructor(){eG(this,this)}getPayload(){return this.payload||[]}},eK=class e extends eX{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,T.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new e(t)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return T.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,T.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},eQ=class e extends eK{constructor(e){super(0),this._string=null,this._toString=ep({output:[e,e]})}static create(t){return new e(t)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(T.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=ep({output:[this.getValue(),e]})),this._value=0,super.reset()}},e0={dependencies:null},e1=class extends eX{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return O(this.source,(n,r)=>{eV(n)?t[r]=n.getValue(e):eb(n)?t[r]=ev(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&L(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return O(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){e0.dependencies&&eb(e)&&e0.dependencies.add(e);let t=eJ(e);t&&L(t,e=>this.add(e))}},e2=class e extends e1{constructor(e){super(e)}static create(t){return new e(t)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,n)=>
1t.setValue(e[n])).some(Boolean):(super.setValue(e.map(e3)),!0)}};function e3(e){return(eN(e)?eQ:eK).create(e)}function e5(e){let t=eY(e);return t?t.constructor:T.arr(e)?e2:eN(e)?eQ:eK}var e6=(e,t)=>{let n=!T.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,_.forwardRef)((r,i)=>{let o=(0,_.useRef)(null),s=n&&(0,_.useCallback)(e=>{o.current=(i&&(T.fun(i)?i(e):i.current=e),e)},[i]),[l,u]=function(e,t){let n=new Set;return e0.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new e1(e),e0.dependencies=null,[e,n]}(r,t),c=eW(),d=()=>{let e=o.current;(!n||e)&&!1===(!!e&&t.applyAnimatedValues(e,l.getValue(!0)))&&c()},h=new e8(d,u),f=(0,_.useRef)(void 0);eP(()=>(f.current=h,L(u,e=>eC(e,h)),()=>{f.current&&(L(f.current.deps,e=>e_(e,f.current)),a.cancel(f.current.update))})),(0,_.useEffect)(d,[]),e$(()=>()=>{let e=f.current;L(e.deps,t=>e_(t,e))});let p=t.getComponentProps(l.getValue());return _.createElement(e,{...p,ref:s})})},e8=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&a.write(this.update)}},e4=Symbol.for("AnimatedComponent"),e7=e=>T.str(e)?e:e&&T.str(e.displayName)?e.displayName:T.fun(e)&&e.name||null;function e9(e,...t){return T.fun(e)?e(...t):e}var te=(e,t)=>!0===e||!!(t&&e&&(T.fun(e)?e(t):R(e).includes(t))),tt=(e,t)=>T.obj(e)?t&&e[t]:e,tn=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,tr=e=>e,ti=(e,t=tr)=>{let n=to;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);T.und(n)||(r[i]=n)}return r},to=["config","onProps","onStart","onChange","onPause","onResume","onRest"],ts={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function ta(e){let t=function(e){let t={},n=0;if(O(e,(e,r)=>{!ts[r]&&(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return O(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function tl(e){return e=ev(e),T.arr(e)?e.map(tl):eN(e)?M.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function tu(e){for(let t in e)return!0;return!1}function tc(e){return T.fun(e)||T.arr(e)&&T.obj(e[0])}function td(e,t){e.ref?.delete(e),t?.delete(e)}function th(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var tf={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},tp={...tf.default,mass:1,damping:1,easing:e=>e,clamp:!1},tm=class{constructor(){this.velocity=0,Object.assign(this,tp)}};function tg(e,t){if(T.und(t.decay)){let n=!T.und(t.tension)||!T.und(t.friction);!n&&T.und(t.frequency)&&T.und(t.damping)&&T.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var tb=[],tv=class{constructor(){this.changed=!1,this.values=tb,this.toValues=null,this.fromValues=tb,this.config=new tm,this.immediate=!1}};function ty(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((s,l)=>{let u,c;let d=te(n.cancel??r?.cancel,t);if(d)p();else{T.und(n.pause)||(i.paused=te(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||te(e,t)),u=e9(n.delay||0,t),e?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function h(){i.resumeQueue.add(f),i.timeouts.delete(c),c.cancel(),u=c.time-a.now()}function f(){u>0&&!M.skipAnimation?(i.delayed=!0,c=a.setTimeout(p,u),i.pauseQueue.add(h),i.timeouts.add(c)):p()}function p(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(h),i.timeouts.delete(c),e<=(i.cancelId||0)&&(d=!0);try{o.start({...n,callId:e,cancel:d},s)}catch(e){l(e)}}})}var tx=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?tC(e.get()):t.every(e=>e.noop)?tk(e.get()):tw(e.get(),t.every(e=>e.finished)),tk=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),tw=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),tC=e=>({value:e,cancelled:!0,finished:!1});function t_(e,t,n,r){let{callId:i,parentId:o,onRest:s}=t,{asyncTo:l,promise:u}=n;return o||e!==l||t.reset?n.promise=(async()=>{let c,d,h;n.asyncId=i,n.asyncTo=e;let f=ti(t,(e,t)=>"onRest"===t?void 0:e),p=new Promise((e,t)=>
1(c=e,d=t)),m=e=>{let t=i<=(n.cancelId||0)&&tC(r)||i!==n.asyncId&&tw(r,!1);if(t)throw e.result=t,d(e),e},g=(e,t)=>{let o=new tM,s=new tS;return(async()=>{if(M.skipAnimation)throw tA(n),s.result=tw(r,!1),d(s),s;m(o);let a=T.obj(e)?{...e}:{...t,to:e};a.parentId=i,O(f,(e,t)=>{T.und(a[t])&&(a[t]=e)});let l=await r.start(a);return m(o),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()};if(M.skipAnimation)return tA(n),tw(r,!1);try{let t;t=T.arr(e)?(async e=>{for(let t of e)await g(t)})(e):Promise.resolve(e(g,r.stop.bind(r))),await Promise.all([t.then(c),p]),h=tw(r.get(),!0,!1)}catch(e){if(e instanceof tM)h=e.result;else if(e instanceof tS)h=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?l:void 0,n.promise=o?u:void 0)}return T.fun(s)&&a.batchedUpdates(()=>{s(h,r,r.item)}),h})():u}function tA(e,t){F(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var tM=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},tS=class extends Error{constructor(){super("SkipAnimationSignal")}},tE=e=>e instanceof tD,tT=1,tD=class extends ek{constructor(){super(...arguments),this.id=tT++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=eY(this);return e&&e.getValue()}to(...e){return M.to(this,e)}interpolate(...e){return eB(`${ez}The "interpolate" function is deprecated in v9 (use "to" instead)`),M.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){ex(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||q.sort(this),ex(this,{type:"priority",parent:this,priority:e})}},tL=Symbol.for("SpringPhase"),tO=e=>(1&e[tL])>0,tR=e=>(2&e[tL])>0,tF=e=>(4&e[tL])>0,tz=(e,t)=>t?e[tL]|=3:e[tL]&=-3,tI=(e,t)=>t?e[tL]|=4:e[tL]&=-5,tB=class extends tD{constructor(e,t){if(super(),this.animation=new tv,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!T.und(e)||!T.und(t)){let n=T.obj(e)?{...e}:{...t,from:e};T.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(tR(this)||this._state.asyncTo)||tF(this)}get goal(){return ev(this.animation.to)}get velocity(){let e=eY(this);return e instanceof eK?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return tO(this)}get isAnimating(){return tR(this)}get isPaused(){return tF(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:o}=r,s=eJ(r.to);!s&&eb(r.to)&&(i=R(ev(r.to))),r.values.forEach((a,l)=>{if(a.done)return;let u=a.constructor==eQ?1:s?s[l].lastPosition:i[l],c=r.immediate,d=u;if(!c){let t;if(d=a.lastPosition,o.tension<=0){a.done=!0;return}let n=a.elapsedTime+=e,i=r.fromValues[l],s=null!=a.v0?a.v0:a.v0=T.arr(o.velocity)?o.velocity[l]:o.velocity,h=o.precision||(i==u?.005:Math.min(1,.001*Math.abs(u-i)));if(T.und(o.duration)){if(o.decay){let e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*n);d=i+s/(1-e)*(1-r),c=Math.abs(a.lastPosition-d)<=h,t=s*r}else{t=null==a.lastVelocity?s:a.lastVelocity;let n=o.restVelocity||h/10,r=o.clamp?0:o.bounce,l=!T.und(r),f=i==u?a.v0>0:i<u,p=Math.ceil(e/1);for(let e=0;e<p&&!(!(Math.abs(t)>n)&&(c=Math.abs(u-d)<=h));++e){l&&(d==u||d>u==f)&&(t=-t*r,d=u);let e=(-(1e-6*o.tension)*(d-u)+-(.001*o.friction)*t)/o.mass;t+=1*e,d+=1*t}}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,a.durationProgress>0&&(a.elapsedTime=o.duration*a.durationProgress,n=a.elapsedTime+=e)),r=(r=(o.progress||0)+n/this._memoizedDuration)>1?1:r<0?0:r,a.durationProgress=r),t=((d=i+o.easing(r)*(u-i))-a.lastPosition)/e,c=1==r}a.lastVelocity=t,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}
1s&&!s[l].done&&(c=!1),c?a.done=!0:t=!1,a.setValue(d,o.round)&&(n=!0)});let a=eY(this),l=a.getValue();if(t){let e=ev(r.to);(l!==e||n)&&!o.decay?(a.setValue(e),this._onChange(e)):n&&o.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return a.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(tR(this)){let{to:e,config:t}=this.animation;a.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return T.und(e)?(n=this.queue||[],this.queue=[]):n=[T.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>tx(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),tA(this._state,e&&this._lastCallId),a.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:n,from:r}=e;(null==(n=T.obj(n)?n[t]:n)||tc(n))&&(n=void 0),null==(r=T.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return tO(this)||(e.reverse&&([n,r]=[r,n]),r=ev(r),T.und(r)?eY(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,ti(e,(e,t)=>/^on/.test(t)?tt(e,n):e)),t$(this,e,"onProps"),tZ(this,"onProps",e,this);let i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let o=this._state;return ty(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{tF(this)||(tI(this,!0),z(o.pauseQueue),tZ(this,"onPause",tw(this,tj(this,this.animation.to)),this))},resume:()=>{tF(this)&&(tI(this,!1),tR(this)&&this._resume(),z(o.resumeQueue),tZ(this,"onResume",tw(this,tj(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=tN(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(tC(this));let r=!T.und(e.to),i=!T.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(tC(this));this._lastToId=t.callId}let{key:o,defaultProps:s,animation:l}=this,{to:u,from:c}=l,{to:d=u,from:h=c}=e;i&&!r&&(!t.default||T.und(d))&&(d=h),t.reverse&&([d,h]=[h,d]);let f=!D(h,c);f&&(l.from=h),h=ev(h);let p=!D(d,u);p&&this._focus(d);let m=tc(t.to),{config:g}=l,{decay:b,velocity:v}=g;(r||i)&&(g.velocity=0),t.config&&!m&&function(e,t,n){for(let r in n&&(tg(n={...n},t),t={...n,...t}),tg(e,t),Object.assign(e,t),tp)null==e[r]&&(e[r]=tp[r]);let{frequency:r,damping:i}=e,{mass:o}=e;T.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r)}(g,e9(t.config,o),t.config!==s.config?e9(s.config,o):void 0);let y=eY(this);if(!y||T.und(d))return n(tw(this,!0));let x=T.und(t.reset)?i&&!t.default:!T.und(h)&&te(t.reset,o),k=x?h:this.get(),w=tl(d),C=T.num(w)||T.arr(w)||eN(w),_=!m&&(!C||te(s.immediate||t.immediate,o));if(p){let e=e5(d);if(e!==y.constructor){if(_)y=this._set(w);else throw Error(`Cannot animate between ${y.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let A=y.constructor,M=eb(d),S=!1;if(!M){let e=x||!tO(this)&&f;(p||e)&&(M=!(S=D(tl(k),w))),(D(l.immediate,_)||_)&&D(g.decay,b)&&D(g.velocity,v)||(M=!0)}if(S&&tR(this)&&(l.changed&&!x?M=!0:M||this._stop(u)),!m&&((M||eb(u))&&(l.values=y.getPayload(),l.toValues=eb(d)?null:A==eQ?[1]:R(w)),l.immediate==_||(l.immediate=_,_||x||this._set(u)),M)){let{onRest:e}=l;L(tW,e=>t$(this,t,e));let r=tw(this,tj(this,u));z(this._pendingCalls,r),this._pendingCalls.add(n),l.changed&&a.batchedUpdates(()=>{l.changed=!x,e?.(r,this),x?e9(s.onRest,r):l.onStart?.(r,this)})}x&&this._set(k),m?n(t_(t.to,t,this._state,this)):M?this._start():tR(this)&&!p?this._pendingCalls.add(n):n(tk(k))}_focus(e){let t=this.animation;e!==t.to&&(ey(this)&&this._detach(),t.to=e,ey(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;eb(t)&&(eC(t,this),tE(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;eb(e)&&e_(e,this)}_set(e,t=!0){let n=ev(e);
1if(!T.und(n)){let e=eY(this);if(!e||!D(n,e.getValue())){let r=e5(n);e&&e.constructor==r?e.setValue(n):eG(this,r.create(n)),e&&a.batchedUpdates(()=>{this._onChange(n,t)})}}return eY(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,tZ(this,"onStart",tw(this,tj(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),e9(this.animation.onChange,e,this)),e9(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;eY(this).reset(ev(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),tR(this)||(tz(this,!0),tF(this)||this._resume())}_resume(){M.skipAnimation?this.finish():q.start(this)}_stop(e,t){if(tR(this)){tz(this,!1);let n=this.animation;L(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),ex(this,{type:"idle",parent:this});let r=t?tC(this.get()):tw(this.get(),tj(this,e??n.to));z(this._pendingCalls,r),n.changed&&(n.changed=!1,tZ(this,"onRest",r,this))}}};function tj(e,t){let n=tl(t);return D(tl(e.get()),n)}function tN(e,t=e.loop,n=e.to){let r=e9(t);if(r){let i=!0!==r&&ta(r),o=(i||e).reverse,s=!i||i.reset;return tP({...e,loop:t,default:!1,pause:void 0,to:!o||tc(n)?n:void 0,from:s?e.from:void 0,reset:s,...i})}}function tP(e){let{to:t,from:n}=e=ta(e),r=new Set;return T.obj(t)&&tH(t,r),T.obj(n)&&tH(n,r),e.keys=r.size?Array.from(r):null,e}function tH(e,t){O(e,(e,n)=>null!=e&&t.add(n))}var tW=["onStart","onRest","onChange","onPause","onResume"];function t$(e,t,n){e.animation[n]=t[n]!==tn(t,n)?tt(t[n],e.key):void 0}function tZ(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var tq=["onStart","onChange","onRest"],tU=1,tV=class{constructor(e,t){this.id=tU++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];T.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(tP(e)),this}start(e){let{queue:t}=this;return(e?t=R(e).map(tP):this.queue=[],this._flush)?this._flush(this,t):(t0(this,t),tY(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;L(R(t),t=>n[t].stop(!!e))}else tA(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(T.und(e))this.start({pause:!0});else{let t=this.springs;L(R(e),e=>t[e].pause())}return this}resume(e){if(T.und(e))this.start({pause:!1});else{let t=this.springs;L(R(e),e=>t[e].resume())}return this}each(e){O(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,F(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let o=!r&&this._started,s=i||o&&n.size?this.get():null;i&&t.size&&F(t,([e,t])=>{t.value=s,e(t,this,this._item)}),o&&(this._started=!1,F(n,([e,t])=>{t.value=s,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}a.onFrame(this._onFrame)}};function tY(e,t){return Promise.all(t.map(t=>tG(e,t))).then(t=>tx(e,t))}async function tG(e,t,n){let{keys:r,to:i,from:o,loop:s,onRest:l,onResolve:u}=t,c=T.obj(t.default)&&t.default;s&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);let d=T.arr(i)||T.fun(i)?i:void 0;d?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):L(tq,n=>{let r=t[n];if(T.fun(r)){let i=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}});let h=e._state;!h.paused===t.pause?(h.paused=t.pause,z(t.pause?h.pauseQueue:h.resumeQueue)):h.paused&&(t.pause=!0);let f=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),p=!0===t.cancel||!0===tn(t,"cancel");(d||p&&h.asyncId)&&f.push(ty(++e._lastAsyncId,{props:t,state:h,actions:{pause:S,resume:S,start(t,n){p?(tA(h,e._lastAsyncId),n(tC(e))):(t.onRest=l,n(t_(d,t,h,e)))}}})),h.paused&&await new Promise(e=>{h.resumeQueue.add(e)});let m=tx(e,await Promise.all(f));if(s&&m.finished&&!(n&&m.noop)){let n=tN(t,s,i);if(n)return t0(e,[n]),tG(e,n,!0)}return u&&a.batchedUpdates(()=>u(m,e,e.item)),m}function tJ(e,t){let n={...e.springs};return t&&L(R(t),e=>{T.und(e.keys)&&(e=tP(e)),T.obj(e.to)||(e={...e,to:void 0}),tQ(n,e,e=>tK(e))}),tX(e,n),n}function tX(e,t){O(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,eC(t,e))})}function tK(e,t){let n=new tB;return n.key=e,t&&eC(n,t),n}function tQ(e,t,n){t.keys&&L(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function t0(e,t){L(t,t=>{tQ(e.springs,t,t=>tK(t,e))})}var t1=_.createContext({pause:!1,immediate:!1}),t2=()=>{let e=[],t=function(t){ej(`${ez}Directly calling start instead of using the api object is deprecated 
1in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);let r=[];return L(e,(e,i)=>{if(T.und(t))r.push(e.start());else{let o=n(t,e,i);o&&r.push(e.start(o))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return L(e,e=>e.pause(...arguments)),this},t.resume=function(){return L(e,e=>e.resume(...arguments)),this},t.set=function(t){L(e,(e,n)=>{let r=T.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return L(e,(e,r)=>{if(T.und(t))n.push(e.start());else{let i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return L(e,e=>e.stop(...arguments)),this},t.update=function(t){return L(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return T.fun(e)?e(n,t):e};return t._getProps=n,t};function t3(e,t){let n=T.fun(e),[[r],i]=function(e,t,n){let r=T.fun(t)&&t;r&&!n&&(n=[]);let i=(0,_.useMemo)(()=>r||3==arguments.length?t2():void 0,[]),o=(0,_.useRef)(0),s=eW(),a=(0,_.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=tJ(e,t);return!(o.current>0)||a.queue.length||Object.keys(n).some(t=>!e.springs[t])?new Promise(r=>{tX(e,n),a.queue.push(()=>{r(tY(e,t))}),s()}):tY(e,t)}}),[]),l=(0,_.useRef)([...a.ctrls]),u=(0,_.useRef)([]),c=eq(e)||0;function d(e,n){for(let i=e;i<n;i++){let e=l.current[i]||(l.current[i]=new tV(null,a.flush)),n=r?r(i,e):t[i];n&&(u.current[i]=function(e){let t=tP(e);return T.und(t.default)&&(t.default=ti(t)),t}(n))}}(0,_.useMemo)(()=>{L(l.current.slice(e,c),e=>{td(e,i),e.stop(!0)}),l.current.length=e,d(c,e)},[e]),(0,_.useMemo)(()=>{d(0,Math.min(c,e))},n);let h=l.current.map((e,t)=>tJ(e,u.current[t])),f=(0,_.useContext)(t1),p=eq(f),m=f!==p&&tu(f);eP(()=>{o.current++,a.ctrls=l.current;let{queue:e}=a;e.length&&(a.queue=[],L(e,e=>e())),L(l.current,(e,t)=>{i?.add(e),m&&e.start({default:f});let n=u.current[t];n&&(th(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),e$(()=>()=>{L(a.ctrls,e=>e.stop(!0))});let g=h.map(e=>({...e}));return i?[g,i]:g}(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}function t5(e,t,n){let r=T.fun(t)&&t,{reset:i,sort:o,trail:s=0,expires:a=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,h=(0,_.useMemo)(()=>r||3==arguments.length?t2():void 0,[]),f=R(e),p=[],m=(0,_.useRef)(null),g=i?null:m.current;eP(()=>{m.current=p}),e$(()=>(L(p,e=>{h?.add(e.ctrl),e.ctrl.ref=h}),()=>{L(m.current,e=>{e.expired&&clearTimeout(e.expirationId),td(e.ctrl,h),e.ctrl.stop(!0)})}));let b=function(e,{key:t,keys:n=t},r){if(null===n){let t=new Set;return e.map(e=>{let n=r&&r.find(n=>n.item===e&&"leave"!==n.phase&&!t.has(n));return n?(t.add(n),n.key):t6++})}return T.und(n)?e:T.fun(n)?e.map(n):R(n)}(f,r?r():t,g),v=i&&m.current||[];eP(()=>L(v,({ctrl:e,item:t,key:n})=>{td(e,h),e9(u,t,n)}));let y=[];if(g&&L(g,(e,t)=>{e.expired?(clearTimeout(e.expirationId),v.push(e)):~(t=y[t]=b.indexOf(e.key))&&(p[t]=e)}),L(f,(e,t)=>{p[t]||(p[t]={key:b[t],item:e,phase:"mount",ctrl:new tV},p[t].ctrl.item=e)}),y.length){let e=-1,{leave:n}=r?r():t;L(y,(t,r)=>{let i=g[r];~t?(e=p.indexOf(i),p[e]={...i,item:f[t]}):n&&p.splice(++e,0,i)})}T.fun(o)&&p.sort((e,t)=>o(e.item,t.item));let x=-s,k=eW(),w=ti(t),C=new Map,A=(0,_.useRef)(new Map),M=(0,_.useRef)(!1);L(p,(e,n)=>{let i,o;let u=e.key,h=e.phase,f=r?r():t,p=e9(f.delay||0,u);if("mount"==h)i=f.enter,o="enter";else{let e=0>b.indexOf(u);if("leave"!=h){if(e)i=f.leave,o="leave";else{if(!(i=f.update))return;o="update"}}else{if(e)return;i=f.enter,o="enter"}}if(i=e9(i,e.item,n),!(i=T.obj(i)?ta(i):{to:i}).config){let t=d||w.config;i.config=e9(t,e.item,n,o)}x+=s;let v={...w,delay:p+x,ref:c,immediate:f.immediate,reset:!1,...i};if("enter"==o&&T.und(v.from)){let i=r?r():t,o=T.und(i.initial)||g?i.from:i.initial;v.from=e9(o,e.item,n)}let{onResolve:y}=v;v.onResolve=e=>{e9(y,e);let t=m.current,n=t.find(e=>e.key===u);if(n){if(e.cancelled&&"update"!=n.phase)return;if(n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if("leave"==n.phase){let t=e9(a,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(k,r));return}}}e&&t.some(e=>e.expired)&&(A.current.delete(n),l&&(M.current=!0),k())}}};let _=tJ(e.ctrl,v);"leave"===o&&l?A.current.set(e,{phase:o,springs:_,payload:v}):C.set(e,{phase:o,springs:_,payload:v})});let S=(0,_.useContext)(t1),E=eq(S),D=S!==E&&tu(S);eP(()=>{D&&L(p,e=>{e.ctrl.start({default:S})})},[S]),L(C,(e,t)=>{if(A.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),eP(()=>{L(A.current.size?A.current:C,({phase:e,payload:t},n)=>{let{ctrl:r}=n;
1n.phase=e,h?.add(r),D&&"enter"==e&&r.start({default:S}),t&&(th(r,t.ref),(r.ref||h)&&!M.current?r.update(t):(r.start(t),M.current&&(M.current=!1)))})},i?void 0:n);let O=e=>_.createElement(_.Fragment,null,p.map((t,n)=>{let{springs:r}=C.get(t)||t.ctrl,i=e({...r},t.item,t,n),o=T.str(t.key)||T.num(t.key)?t.key:t.ctrl.id,s=_.version<"19.0.0",a=i?.props??{},l=s?i?.ref:a?.ref;return i&&i.type?_.createElement(i.type,{...a,key:o,ref:l}):i}));return h?[O,h]:O}var t6=1,t8=class extends tD{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=ep(...t);let n=this._get();eG(this,e5(n).create(n))}advance(e){let t=this._get();D(t,this.get())||(eY(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&t7(this._active)&&t9(this)}_get(){let e=T.arr(this.source)?this.source.map(ev):R(ev(this.source));return this.calc(...e)}_start(){this.idle&&!t7(this._active)&&(this.idle=!1,L(eJ(this),e=>{e.done=!1}),M.skipAnimation?(a.batchedUpdates(()=>this.advance()),t9(this)):q.start(this))}_attach(){let e=1;L(R(this.source),t=>{eb(t)&&eC(t,this),tE(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){L(R(this.source),e=>{eb(e)&&e_(e,this)}),this._active.clear(),t9(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=R(this.source).reduce((e,t)=>Math.max(e,(tE(t)?t.priority:0)+1),0))}};function t4(e){return!1!==e.idle}function t7(e){return!e.size||Array.from(e).every(t4)}function t9(e){e.idle||(e.idle=!0,L(eJ(e),e=>{e.done=!0}),ex(e,{type:"idle",parent:e}))}var ne=(e,...t)=>new t8(e,t);M.assign({createStringInterpolator:eF,to:(e,t)=>new t8(e,t)}),q.advance;var nt=n(28316),nn=/^--/,nr={},ni={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},no=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),ns=["Webkit","Ms","Moz","O"];ni=Object.keys(ni).reduce((e,t)=>(ns.forEach(n=>e[no(n,t)]=e[t]),e),ni);var na=/^(matrix|translate|scale|rotate|skew)/,nl=/^(translate)/,nu=/^(rotate|skew)/,nc=(e,t)=>T.num(e)&&0!==e?e+t:e,nd=(e,t)=>T.arr(e)?e.every(e=>nd(e,t)):T.num(e)?e===t:parseFloat(e)===t,nh=class extends e1{constructor({x:e,y:t,z:n,...r}){let i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push(e=>[`translate3d(${e.map(e=>nc(e,"px")).join(",")})`,nd(e,0)])),O(r,(e,t)=>{if("transform"===t)i.push([e||""]),o.push(e=>[e,""===e]);else if(na.test(t)){if(delete r[t],T.und(e))return;let n=nl.test(t)?"px":nu.test(t)?"deg":"";i.push(R(e)),o.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${nc(i,n)})`,nd(i,0)]:e=>[`${t}(${e.map(e=>nc(e,n)).join(",")})`,nd(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new nf(i,o)),super(r)}},nf=class extends ek{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return L(this.inputs,(n,r)=>{let i=ev(n[0]),[o,s]=this.transforms[r](T.arr(i)?i:n.map(ev));e+=" "+o,t=t&&s}),t?"none":e}observerAdded(e){1==e&&L(this.inputs,e=>L(e,e=>eb(e)&&eC(e,this)))}observerRemoved(e){0==e&&L(this.inputs,e=>L(e,e=>eb(e)&&e_(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),ex(this,e)}};M.assign({batchedUpdates:nt.unstable_batchedUpdates,createStringInterpolator:eF,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,dar
1kgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var np=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new e1(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{let t=e7(e)||"Anonymous";return(e=T.str(e)?o[e]||(o[e]=e6(e,i)):e[e4]||(e[e4]=e6(e,i))).displayName=`Animated(${t})`,e};return O(e,(t,n)=>{T.arr(e)&&(n=e7(t)),o[n]=o(t)}),{animated:o}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;let n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{className:r,style:i,children:o,scrollTop:s,scrollLeft:a,viewBox:l,...u}=t,c=Object.values(u),d=Object.keys(u).map(t=>n||e.hasAttribute(t)?t:nr[t]||(nr[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));for(let t in void 0!==o&&(e.textContent=o),i)if(i.hasOwnProperty(t)){var h;let n=null==(h=i[t])||"boolean"==typeof h||""===h?"":"number"!=typeof h||0===h||nn.test(t)||ni.hasOwnProperty(t)&&ni[t]?(""+h).trim():h+"px";nn.test(t)?e.style.setProperty(t,n):e.style[t]=n}
1d.forEach((t,n)=>{e.setAttribute(t,c[n])}),void 0!==r&&(e.className=r),void 0!==s&&(e.scrollTop=s),void 0!==a&&(e.scrollLeft=a),void 0!==l&&e.setAttribute("viewBox",l)},createAnimatedStyle:e=>new nh(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated},36518:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(37243),i=n(3027);let o=r.hj.create({name:"gapCursor",addProseMirrorPlugins:()=>[(0,i.d)()],extendNodeSchema(e){var t;let n={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:null!==(t=(0,r.nU)((0,r.Nl)(e,"allowGapCursor",n)))&&void 0!==t?t:null}}})},6776:function(e,t,n){"use strict";n.d(t,{ZP:function(){return s}});var r=n(37243);let i=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,o=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,s=r.vc.create({name:"highlight",addOptions:()=>({multicolor:!1,HTMLAttributes:{}}),addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:e=>e.getAttribute("data-color")||e.style.backgroundColor,renderHTML:e=>e.color?{"data-color":e.color,style:`background-color: ${e.color}; color: inherit`}:{}}}:{}},parseHTML:()=>[{tag:"mark"}],renderHTML({HTMLAttributes:e}){return["mark",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{setHighlight:e=>({commands:t})=>t.setMark(this.name,e),toggleHighlight:e=>({commands:t})=>t.toggleMark(this.name,e),unsetHighlight:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}}
1,addInputRules(){return[(0,r.Cf)({find:i,type:this.type})]},addPasteRules(){return[(0,r.K9)({find:o,type:this.type})]}})},24424:function(e,t,n){"use strict";n.d(t,{ZP:function(){return o}});var r=n(37243);let i=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,o=r.NB.create({name:"image",addOptions:()=>({inline:!1,allowBase64:!1,HTMLAttributes:{}}),inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes:()=>({src:{default:null},alt:{default:null},title:{default:null}}),parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:e}){return["img",(0,r.P1)(this.options.HTMLAttributes,e)]},addCommands(){return{setImage:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addInputRules(){return[(0,r.x2)({find:i,type:this.type,getAttributes:e=>{let[,,t,n,r]=e;return{src:n,alt:t,title:r}}})]}})},70675:function(e,t,n){"use strict";n.d(t,{ZP:function(){return e$}});var r=n(37243);let i=(e,t)=>{for(let n in t)e[n]=t[n];return e},o="numeric",s="ascii",a="alpha",l="asciinumeric",u="alphanumeric",c="domain",d="emoji",h="whitespace";function f(e,t,n){for(let r in t[o]&&(t[l]=!0,t[u]=!0),t[s]&&(t[l]=!0,t[a]=!0),t[l]&&(t[u]=!0),t[a]&&(t[u]=!0),t[u]&&(t[c]=!0),t[d]&&(t[c]=!0),t){let t=(r in n||(n[r]=[]),n[r]);0>t.indexOf(e)&&t.push(e)}}function p(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}p.groups={},p.prototype={accepts(){return!!this.t},go(e){let t=this.j[e];if(t)return t;for(let t=0;t<this.jr.length;t++){let n=this.jr[t][0],r=this.jr[t][1];if(r&&n.test(e))return r}return this.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,n,r){for(let i=0;i<e.length;i++)this.tt(e[i],t,n,r)},tr(e,t,n,r){let i;return r=r||p.groups,t&&t.j?i=t:(i=new p(t),n&&r&&f(t,n,r)),this.jr.push([e,i]),i},ts(e,t,n,r){let i=this,o=e.length;if(!o)return i;for(let t=0;t<o-1;t++)i=i.tt(e[t]);return i.tt(e[o-1],t,n,r)},tt(e,t,n,r){if(r=r||p.groups,t&&t.j)return this.j[e]=t,t;let o,s=this.go(e);return s?(i((o=new p).j,s.j),o.jr.push.apply(o.jr,s.jr),o.jd=s.jd,o.t=s.t):o=new p,t&&(r&&(o.t&&"string"==typeof o.t?f(t,i(function(e,t){let n={};for(let r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}(o.t,r),n),r):n&&f(t,n,r)),o.t=t),this.j[e]=o,o}};let m=(e,t,n,r,i)=>e.ta(t,n,r,i),g=(e,t,n,r,i)=>e.tr(t,n,r,i),b=(e,t,n,r,i)=>e.ts(t,n,r,i),v=(e,t,n,r,i)=>e.tt(t,n,r,i),y="WORD",x="UWORD",k="ASCIINUMERICAL",w="ALPHANUMERICAL",C="LOCALHOST",_="UTLD",A="SCHEME",M="SLASH_SCHEME",S="OPENBRACE",E="CLOSEBRACE",T="OPENBRACKET",D="CLOSEBRACKET",L="OPENPAREN",O="CLOSEPAREN",R="OPENANGLEBRACKET",F="CLOSEANGLEBRACKET",z="FULLWIDTHLEFTPAREN",I="FULLWIDTHRIGHTPAREN",B="LEFTCORNERBRACKET",j="RIGHTCORNERBRACKET",N="LEFTWHITECORNERBRACKET",P="RIGHTWHITECORNERBRACKET",H="FULLWIDTHLESSTHAN",W="FULLWIDTHGREATERTHAN",$="AMPERSAND",Z="APOSTROPHE",q="ASTERISK",U="BACKSLASH",V="BACKTICK",Y="CARET",G="COLON",J="COMMA",X="DOLLAR",K="EQUALS",Q="EXCLAMATION",ee="HYPHEN",et="PERCENT",en="PIPE",er="PLUS",ei="POUND",eo="QUERY",es="QUOTE",ea="FULLWIDTHMIDDLEDOT",el="SEMI",eu="SLASH",ec="TILDE",ed="UNDERSCORE",eh="EMOJI";var ef=Object.freeze({__proto__:null,WORD:y,UWORD:x,ASCIINUMERICAL:k,ALPHANUMERICAL:w,LOCALHOST:C,TLD:"TLD",UTLD:_,SCHEME:A,SLASH_SCHEME:M,NUM:"NUM",WS:"WS",NL:"NL",OPENBRACE:S,CLOSEBRACE:E,OPENBRACKET:T,CLOSEBRACKET:D,OPENPAREN:L,CLOSEPAREN:O,OPENANGLEBRACKET:R,CLOSEANGLEBRACKET:F,FULLWIDTHLEFTPAREN:z,FULLWIDTHRIGHTPAREN:I,LEFTCORNERBRACKET:B,RIGHTCORNERBRACKET:j,LEFTWHITECORNERBRACKET:N,RIGHTWHITECORNERBRACKET:P,FULLWIDTHLESSTHAN:H,FULLWIDTHGREATERTHAN:W,AMPERSAND:$,APOSTROPHE:Z,ASTERISK:q,AT:"AT",BACKSLASH:U,BACKTICK:V,CARET:Y,COLON:G,COMMA:J,DOLLAR:X,DOT:"DOT",EQUALS:K,EXCLAMATION:Q,HYPHEN:ee,PERCENT:et,PIPE:en,PLUS:er,POUND:ei,QUERY:eo,QUOTE:es,FULLWIDTHMIDDLEDOT:ea,SEMI:el,SLASH:eu,TILDE:ec,UNDERSCORE:ed,EMOJI:eh,SYM:"SYM"});let ep=/[a-z]/,em=/\p{L}/u,eg=/\p{Emoji}/u,eb=/\d/,ev=/\s/,ey=null,ex=null;function ek(e,t){let n=function(e){let t=[],n=e.length,r=0;for(;r<n;){let i,o=e.charCodeAt(r),s=o<55296||o>56319||r+1===n||(i=e.charCodeAt(r+1))<56320||i>57343?e[r]:e.slice(r,r+2);t.push(s),r+=s.length}return t}(t.replace(/[A-Z]/g,e=>e.toLowerCase())),r=n.length,i=[],o=0,s=0;for(;s<r;){let a=e,l=null,u=0,c=null,d=-1,h=-1;for(;s<r&&(l=a.go(n[s]));)(a=l).accepts()?(d=0,h=0,c=a):d>=0&&(d+=n[s].length,h++),u+=n[s].length,o+=n[s].length,s++;o-=d,s-=h,u-=d,i.push({t:c.t,v:t.slice(o-u,o),s:o-u,e:o})}return i}function ew(e,t,n,r,i){let o;let s=t.length;for(let n=0;n<s-1;n++){let s=t[n];e.j[s]?o=e.j[s]:((o=new p(r)).jr=i.slice(),e.j[s]=o),e=o}return(o=new p(n)).jr=i.slice(),e.j[t[s-1]]=o,o}function eC(e){let t=[],n=[],r=0;for(;r<e.length;){let i=0;for(;"0123456789".indexOf(e[r+i])>=0;)i++;if(i>0){t.push(n.join(""));for(let t=parseInt(e.substring(r,r+i),10);t>0;t--)n.pop();r+=i}else n.push(e[r]),r++}return t}let e_={defaultProtocol:"http",events:null,format:eM,formatHref:eM,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function eA(e,t=null){let n=i({},e_);e&&(n=i(n,e instanceof eA?e.o:e));let r=n.ignoreTags,o=[];for(let e=0;e<r.length;e++)o.push(r[e].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=o}function eM(e){return e}function eS(e,t){this.t="token",this.v=e,this.tk=t}
1function eE(e,t){class n extends eS{constructor(t,n){super(t,n),this.t=e}}for(let e in t)n.prototype[e]=t[e];return n.t=e,n}eA.prototype={o:e_,ignoreTags:[],defaultRender:e=>e,check(e){return this.get("validate",e.toString(),e)},get(e,t,n){let r=null!=t,i=this.o[e];return i&&("object"==typeof i?"function"==typeof(i=n.t in i?i[n.t]:e_[e])&&r&&(i=i(t,n)):"function"==typeof i&&r&&(i=i(t,n.t,n))),i},getObj(e,t,n){let r=this.o[e];return"function"==typeof r&&null!=t&&(r=r(t,n.t,n)),r},render(e){let t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}},eS.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){let t=this.toString(),n=e.get("truncate",t,this),r=e.get("format",t,this);return n&&r.length>n?r.substring(0,n)+"…":r},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=e_.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){let t=this.toHref(e.get("defaultProtocol")),n=e.get("formatHref",t,this),r=e.get("tagName",t,this),o=this.toFormattedString(e),s={},a=e.get("className",t,this),l=e.get("target",t,this),u=e.get("rel",t,this),c=e.getObj("attributes",t,this),d=e.getObj("events",t,this);return s.href=n,a&&(s.class=a),l&&(s.target=l),u&&(s.rel=u),c&&i(s,c),{tagName:r,attributes:s,content:o,eventListeners:d}}};let eT=eE("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),eD=eE("text"),eL=eE("nl"),eO=eE("url",{isLink:!0,toHref(e=e_.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){let e=this.tk;return e.length>=2&&e[0].t!==C&&e[1].t===G}}),eR=e=>new p(e);function eF(e,t,n){let r=n[0].s,i=n[n.length-1].e;return new e(t.slice(r,i),n)}let ez="undefined"!=typeof console&&console&&console.warn||(()=>{}),eI={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function eB(e,t=!1){if(eI.initialized&&ez(`linkifyjs: already initialized - will not register custom scheme "${e}" until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw Error(`linkifyjs: incorrect scheme format.
21. Must only contain digits, lowercase ASCII letters or "-"
32. Cannot start or end with "-"
43. "-" cannot repeat`);eI.customSchemes.push([e,t])}function ej(e){return eI.initialized||function(){eI.scanner=function(e=[]){let t={};p.groups=t;let n=new p;null==ey&&(ey=eC("aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2
4ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5m\xf6gensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2")),null==ex&&(ex=eC("ελ1υ2бг1ел3дети4ею2католик6ом3мÐ
4ºÐ´2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3Õ°Õ¡Õµ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1ì»´2삼성2한국2")),v(n,"'",Z),v(n,"{",S),v(n,"}",E),v(n,"[",T),v(n,"]",D),v(n,"(",L),v(n,")",O),v(n,"<",R),v(n,">",F),v(n,"(",z),v(n,")",I),v(n,"「",B),v(n,"」",j),v(n,"『",N),v(n,"』",P),v(n,"<",H),v(n,">",W),v(n,"&",$),v(n,"*",q),v(n,"@","AT"),v(n,"`",V),v(n,"^",Y),v(n,":",G),v(n,",",J),v(n,"$",X),v(n,".","DOT"),v(n,"=",K),v(n,"!",Q),v(n,"-",ee),v(n,"%",et),v(n,"|",en),v(n,"+",er),v(n,"#",ei),v(n,"?",eo),v(n,'"',es),v(n,"/",eu),v(n,";",el),v(n,"~",ec),v(n,"_",ed),v(n,"\\",U),v(n,"・",ea);let r=g(n,eb,"NUM",{[o]:!0});g(r,eb,r);let m=g(r,ep,k,{[l]:!0}),ek=g(r,em,w,{[u]:!0}),e_=g(n,ep,y,{[s]:!0});g(e_,eb,m),g(e_,ep,e_),g(m,eb,m),g(m,ep,m);let eA=g(n,em,x,{[a]:!0});g(eA,ep),g(eA,eb,ek),g(eA,em,eA),g(ek,eb,ek),g(ek,ep),g(ek,em,ek);let eM=v(n,"\n","NL",{[h]:!0}),eS=v(n,"\r","WS",{[h]:!0}),eE=g(n,ev,"WS",{[h]:!0});v(n,"",eE),v(eS,"\n",eM),v(eS,"",eE),g(eS,ev,eE),v(eE,"\r"),v(eE,"\n"),g(eE,ev,eE),v(eE,"",eE);let eT=g(n,eg,eh,{[d]:!0});v(eT,"#"),g(eT,eg,eT),v(eT,"️",eT);let eD=v(eT,"‍");v(eD,"#"),g(eD,eg,eT);let eL=[[ep,e_],[eb,m]],eO=[[ep,null],[em,eA],[eb,ek]];for(let e=0;e<ey.length;e++)ew(n,ey[e],"TLD",y,eL);for(let e=0;e<ex.length;e++)ew(n,ex[e],_,x,eO);f("TLD",{tld:!0,ascii:!0},t),f(_,{utld:!0,alpha:!0},t),ew(n,"file",A,y,eL),ew(n,"mailto",A,y,eL),ew(n,"http",M,y,eL),ew(n,"https",M,y,eL),ew(n,"ftp",M,y,eL),ew(n,"ftps",M,y,eL),f(A,{scheme:!0,ascii:!0},t),f(M,{slashscheme:!0,ascii:!0},t),e=e.sort((e,t)=>e[0]>t[0]?1:-1);for(let t=0;t<e.length;t++){let r=e[t][0],i=e[t][1]?{scheme:!0}:{slashscheme:!0};r.indexOf("-")>=0?i[c]=!0:ep.test(r)?eb.test(r)?i[l]=!0:i[s]=!0:i[o]=!0,b(n,r,r,i)}return b(n,"localhost",C,{ascii:!0}),n.jd=new p("SYM"),{start:n,tokens:i({groups:t},ef)}}(eI.customSchemes);for(let e=0;e<eI.tokenQueue.length;e++)eI.tokenQueue[e][1]({scanner:eI.scanner});eI.parser=function({groups:e}){let t=e.domain.concat([$,q,"AT",U,V,Y,X,K,ee,"NUM",et,en,er,ei,eu,"SYM",ec,ed]),n=[G,J,"DOT",Q,et,eo,es,el,R,F,S,E,D,T,L,O,z,I,B,j,N,P,H,W],r=[$,Z,q,U,V,Y,X,K,ee,S,E,et,en,er,ei,eo,eu,"SYM",ec,ed],i=eR(),o=v(i,ec);m(o,r,o),m(o,e.domain,o);let s=eR(),a=eR(),l=eR();m(i,e.domain,s),m(i,e.scheme,a),m(i,e.slashscheme,l),m(s,r,o),m(s,e.domain,s);let u=v(s,"AT");v(o,"AT",u),v(a,"AT",u),v(l,"AT",u);let c=v(o,"DOT");m(c,r,o),m(c,e.domain,o);let d=eR();m(u,e.domain,d),m(d,e.domain,d);let h=v(d,"DOT");m(h,e.domain,d);let f=eR(eT);m(h,e.tld,f),m(h,e.utld,f),v(u,C,f);let p=v(d,ee);v(p,ee,p),m(p,e.domain,d),m(f,e.domain,d),v(f,"DOT",h),v(f,ee,p),m(v(f,G),e.numeric,eT);let g=v(s,ee),b=v(s,"DOT");v(g,ee,g),m(g,e.domain,s),m(b,r,o),m(b,e.domain,s);let y=eR(eO);m(b,e.tld,y),m(b,e.utld,y),m(y,e.domain,s),m(y,r,o),v(y,"DOT",b),v(y,ee,g),v(y,"AT",u);let x=v(y,G),k=eR(eO);m(x,e.numeric,k);let w=eR(eO),_=eR();m(w,t,w),m(w,n,_),m(_,t,w),m(_,n,_),v(y,eu,w),v(k,eu,w);let A=v(a,G),M=v(l,G),ea=v(M,eu),eh=v(ea,eu);m(a,e.domain,s),v(a,"DOT",b),v(a,ee,g),m(l,e.domain,s),v(l,"DOT",b),v(l,ee,g),m(A,e.domain,w),v(A,eu,w),v(A,eo,w),m(eh,e.domain,w),m(eh,t,w),v(eh,eu,w);
4let ep=[[S,E],[T,D],[L,O],[R,F],[z,I],[B,j],[N,P],[H,W]];for(let e=0;e<ep.length;e++){let[r,i]=ep[e],o=v(w,r);v(_,r,o),v(o,i,w);let s=eR(eO);m(o,t,s);let a=eR();m(o,n),m(s,t,s),m(s,n,a),m(a,t,s),m(a,n,a),v(s,i,w),v(a,i,w)}return v(i,C,y),v(i,"NL",eL),{start:i,tokens:ef}}(eI.scanner.tokens);for(let e=0;e<eI.pluginQueue.length;e++)eI.pluginQueue[e][1]({scanner:eI.scanner,parser:eI.parser});eI.initialized=!0}(),function(e,t,n){let r=n.length,i=0,o=[],s=[];for(;i<r;){let a=e,l=null,u=null,c=0,d=null,h=-1;for(;i<r&&!(l=a.go(n[i].t));)s.push(n[i++]);for(;i<r&&(u=l||a.go(n[i].t));)l=null,(a=u).accepts()?(h=0,d=a):h>=0&&h++,i++,c++;if(h<0)(i-=c)<r&&(s.push(n[i]),i++);else{s.length>0&&(o.push(eF(eD,t,s)),s=[]),i-=h,c-=h;let e=d.t,r=n.slice(i-c,i);o.push(eF(e,t,r))}}return s.length>0&&o.push(eF(eD,t,s)),o}(eI.parser.start,e,ek(eI.scanner.start,e))}function eN(e,t=null,n=null){if(t&&"object"==typeof t){if(n)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);n=t,t=null}let r=new eA(n),i=ej(e),o=[];for(let e=0;e<i.length;e++){let n=i[e];n.isLink&&(!t||n.t===t)&&r.check(n)&&o.push(n.toFormattedObject(r))}return o}ej.scan=ek;var eP=n(27191);let eH=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;function eW(e,t){let n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return t&&t.forEach(e=>{let t="string"==typeof e?e:e.scheme;t&&n.push(t)}),!e||e.replace(eH,"").match(RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}let e$=r.vc.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(e=>{if("string"==typeof e){eB(e);return}eB(e.scheme,e.optionalSlashes)})},onDestroy(){p.groups={},eI.scanner=null,eI.parser=null,eI.tokenQueue=[],eI.pluginQueue=[],eI.customSchemes=[],eI.initialized=!1},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(e,t)=>!!eW(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>!!e}),addAttributes(){return{href:{default:null,parseHTML:e=>e.getAttribute("href")},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:e=>{let t=e.getAttribute("href");return!!(t&&this.options.isAllowedUri(t,{defaultValidate:e=>!!eW(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol}))&&null}}]},renderHTML({HTMLAttributes:e}){return this.options.isAllowedUri(e.href,{defaultValidate:e=>!!eW(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",(0,r.P1)(this.options.HTMLAttributes,e),0]:["a",(0,r.P1)(this.options.HTMLAttributes,{...e,href:""}),0]},addCommands(){return{setLink:e=>({chain:t})=>{let{href:n}=e;return!!this.options.isAllowedUri(n,{defaultValidate:e=>!!eW(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&t().setMark(this.name,e).setMeta("preventAutolink",!0).run()},toggleLink:e=>({chain:t})=>{let{href:n}=e;return!!this.options.isAllowedUri(n,{defaultValidate:e=>!!eW(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[(0,r.K9)({find:e=>{let t=[];if(e){let{protocols:n,defaultProtocol:r}=this.options,i=eN(e).filter(e=>e.isLink&&this.options.isAllowedUri(e.value,{defaultValidate:e=>!!eW(e,n),protocols:n,defaultProtocol:r}));i.length&&i.forEach(e=>t.push({text:e.value,data:{href:e.href},index:e.start}))}return t}
4,type:this.type,getAttributes:e=>{var t;return{href:null===(t=e.data)||void 0===t?void 0:t.href}}})]},addProseMirrorPlugins(){var e,t,n;let i=[],{protocols:o,defaultProtocol:s}=this.options;return this.options.autolink&&i.push((e={type:this.type,defaultProtocol:this.options.defaultProtocol,validate:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!eW(e,o),protocols:o,defaultProtocol:s}),shouldAutoLink:this.options.shouldAutoLink},new eP.Sy({key:new eP.H$("autolink"),appendTransaction:(t,n,i)=>{let o=t.some(e=>e.docChanged)&&!n.doc.eq(i.doc),s=t.some(e=>e.getMeta("preventAutolink"));if(!o||s)return;let{tr:a}=i,l=(0,r.XP)(n.doc,[...t]);if((0,r.QC)(l).forEach(({newRange:t})=>{let n,o;let s=(0,r.b5)(i.doc,t,e=>e.isTextblock);if(s.length>1?(n=s[0],o=i.doc.textBetween(n.pos,n.pos+n.node.nodeSize,void 0," ")):s.length&&i.doc.textBetween(t.from,t.to," "," ").endsWith(" ")&&(n=s[0],o=i.doc.textBetween(n.pos,t.to,void 0," ")),n&&o){let t=o.split(" ").filter(e=>""!==e);if(t.length<=0)return!1;let s=t[t.length-1],l=n.pos+o.lastIndexOf(s);if(!s)return!1;let u=ej(s).map(t=>t.toObject(e.defaultProtocol));if(!(1===u.length?u[0].isLink:3===u.length&&!!u[1].isLink&&["()","[]"].includes(u[0].value+u[2].value)))return!1;u.filter(e=>e.isLink).map(e=>({...e,from:l+e.start+1,to:l+e.end+1})).filter(e=>!i.schema.marks.code||!i.doc.rangeHasMark(e.from,e.to,i.schema.marks.code)).filter(t=>e.validate(t.value)).filter(t=>e.shouldAutoLink(t.value)).forEach(t=>{(0,r.tI)(t.from,t.to,i.doc).some(t=>t.mark.type===e.type)||a.addMark(t.from,t.to,e.type.create({href:t.href}))})}}),a.steps.length)return a}}))),!0===this.options.openOnClick&&i.push((t={type:this.type},new eP.Sy({key:new eP.H$("handleClickLink"),props:{handleClick:(e,n,i)=>{var o,s;if(0!==i.button||!e.editable)return!1;let a=i.target,l=[];for(;"DIV"!==a.nodeName;)l.push(a),a=a.parentNode;if(!l.find(e=>"A"===e.nodeName))return!1;let u=(0,r.u9)(e.state,t.type.name),c=i.target,d=null!==(o=null==c?void 0:c.href)&&void 0!==o?o:u.href,h=null!==(s=null==c?void 0:c.target)&&void 0!==s?s:u.target;return!!c&&!!d&&(window.open(d,h),!0)}}}))),this.options.linkOnPaste&&i.push((n={editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type},new eP.Sy({key:new eP.H$("handlePasteLink"),props:{handlePaste:(e,t,r)=>{let{state:i}=e,{selection:o}=i,{empty:s}=o;if(s)return!1;let a="";r.content.forEach(e=>{a+=e.textContent});let l=eN(a,{defaultProtocol:n.defaultProtocol}).find(e=>e.isLink&&e.value===a);return!!a&&!!l&&n.editor.commands.setMark(n.type,{href:l.href})}}}))),i}})},37585:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(37243),i=n(27191),o=n(52780);let s=r.hj.create({name:"placeholder",addOptions:()=>({emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}),addProseMirrorPlugins(){return[new i.Sy({key:new i.H$("placeholder"),props:{decorations:({doc:e,selection:t})=>{let n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:i}=t,s=[];if(!n)return null;let a=this.editor.isEmpty;return e.descendants((e,t)=>{let n=i>=t&&i<=t+e.nodeSize,l=!e.isLeaf&&(0,r.bR)(e);if((n||!this.options.showOnlyCurrent)&&l){let r=[this.options.emptyNodeClass];a&&r.push(this.options.emptyEditorClass);let i=o.p.node(t,t+e.nodeSize,{class:r.join(" "),"data-placeholder":"function"==typeof this.options.placeholder?this.options.placeholder({editor:this.editor,node:e,pos:t,hasAnchor:n}):this.options.placeholder});s.push(i)}return this.options.includeChildren}),o.EH.create(e,s)}}})]}})},77953:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(37243);let i=r.NB.create({name:"tableCell",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{let t=e.getAttribute("colwidth");return t?t.split(",").map(e=>parseInt(e,10)):null}}}),tableRole:"cell",isolating:!0,parseHTML:()=>[{tag:"td"}],renderHTML({HTMLAttributes:e}){return["td",(0,r.P1)(this.options.HTMLAttributes,e),0]}})},50505:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(37243);let i=r.NB.create({name:"tableHeader",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{let t=e.getAttribute("colwidth");return t?t.split(",").map(e=>parseInt(e,10)):null}}}),tableRole:"header_cell",isolating:!0,parseHTML:()=>[{tag:"th"}],renderHTML({HTMLAttributes:e}){return["th",(0,r.P1)(this.options.HTMLAttributes,e),0]}})},6208:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(37243);let i=r.NB.create({name:"tableRow",addOptions:()=>({HTMLAttributes:{}}),content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML:()=>[{tag:"tr"}],renderHTML({HTMLAttributes:e}){return["tr",(0,r.P1)(this.options.HTMLAttributes,e),0]}})},59714:function(e,t,n){"use strict";n.d(t,{ZP:function(){return ed}});var r,i,o=n(37243),s=n(27191),a=n(53660),l=n(52780),u=n(17890),c=n(26151);if("undefined"!=typeof WeakMap){let e=new WeakMap;r=t=>e.get(t),i=(t,n)=>(e.set(t,n),n)}else{let e=[],t=0;r=t=>{for(let n=0;n<e.length;n+=2)if(e[n]==t)return e[n+1]},i=(n,r)=>(10==t&&(t=0),e[t++]=n,e[t++]=r)}var d=class{constructor(e,t,n,r){this.width=e,this.height=t,this.map=n,this.problems=r}findCell(e){for(let t=0;t<this.map.length;t++){let n=this.map[t];if(n!=e)continue;let r=t%this.width,i=t/this.width|0,o=r+1,s=i+1;for(let e=1;o<this.width&&this.map[t+e]==n;e++)o++;for(let e=1;s<this.height&&this.map[t+this.width*e]==n;e++)s++;return{left:r,top:i,right:o,bottom:s}}throw RangeError(`No cell with offset ${e}
4 found`)}colCount(e){for(let t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw RangeError(`No cell with offset ${e} found`)}nextCell(e,t,n){let{left:r,right:i,top:o,bottom:s}=this.findCell(e);return"horiz"==t?(n<0?0==r:i==this.width)?null:this.map[o*this.width+(n<0?r-1:i)]:(n<0?0==o:s==this.height)?null:this.map[r+this.width*(n<0?o-1:s)]}rectBetween(e,t){let{left:n,right:r,top:i,bottom:o}=this.findCell(e),{left:s,right:a,top:l,bottom:u}=this.findCell(t);return{left:Math.min(n,s),top:Math.min(i,l),right:Math.max(r,a),bottom:Math.max(o,u)}}cellsInRect(e){let t=[],n={};for(let r=e.top;r<e.bottom;r++)for(let i=e.left;i<e.right;i++){let o=r*this.width+i,s=this.map[o];if(!n[s]){if(n[s]=!0,i==e.left&&i&&this.map[o-1]==s||r==e.top&&r&&this.map[o-this.width]==s)continue;t.push(s)}}return t}positionAt(e,t,n){for(let r=0,i=0;;r++){let o=i+n.child(r).nodeSize;if(r==e){let n=t+e*this.width,r=(e+1)*this.width;for(;n<r&&this.map[n]<i;)n++;return n==r?o-1:this.map[n]}i=o}}static get(e){return r(e)||i(e,function(e){if("table"!=e.type.spec.tableRole)throw RangeError("Not a table node: "+e.type.name);let t=function(e){let t=-1,n=!1;for(let r=0;r<e.childCount;r++){let i=e.child(r),o=0;if(n)for(let t=0;t<r;t++){let n=e.child(t);for(let e=0;e<n.childCount;e++){let i=n.child(e);t+i.attrs.rowspan>r&&(o+=i.attrs.colspan)}}for(let e=0;e<i.childCount;e++){let t=i.child(e);o+=t.attrs.colspan,t.attrs.rowspan>1&&(n=!0)}-1==t?t=o:t!=o&&(t=Math.max(t,o))}return t}(e),n=e.childCount,r=[],i=0,o=null,s=[];for(let e=0,i=t*n;e<i;e++)r[e]=0;for(let a=0,l=0;a<n;a++){let u=e.child(a);l++;for(let e=0;;e++){for(;i<r.length&&0!=r[i];)i++;if(e==u.childCount)break;let c=u.child(e),{colspan:d,rowspan:h,colwidth:f}=c.attrs;for(let e=0;e<h;e++){if(e+a>=n){(o||(o=[])).push({type:"overlong_rowspan",pos:l,n:h-e});break}let u=i+e*t;for(let e=0;e<d;e++){0==r[u+e]?r[u+e]=l:(o||(o=[])).push({type:"collision",row:a,pos:l,n:d-e});let n=f&&f[e];if(n){let r=(u+e)%t*2,i=s[r];null==i||i!=n&&1==s[r+1]?(s[r]=n,s[r+1]=1):i==n&&s[r+1]++}}}i+=d,l+=c.nodeSize}let c=(a+1)*t,d=0;for(;i<c;)0==r[i++]&&d++;d&&(o||(o=[])).push({type:"missing",row:a,n:d}),l++}(0===t||0===n)&&(o||(o=[])).push({type:"zero_sized"});let a=new d(t,n,r,o),l=!1;for(let e=0;!l&&e<s.length;e+=2)null!=s[e]&&s[e+1]<n&&(l=!0);return l&&function(e,t,n){e.problems||(e.problems=[]);let r={};for(let i=0;i<e.map.length;i++){let o=e.map[i];if(r[o])continue;r[o]=!0;let s=n.nodeAt(o);if(!s)throw RangeError(`No cell with offset ${o} found`);let a=null,l=s.attrs;for(let n=0;n<l.colspan;n++){let r=t[(i+n)%e.width*2];null==r||l.colwidth&&l.colwidth[n]==r||((a||(a=function(e){if(e.colwidth)return e.colwidth.slice();let t=[];for(let n=0;n<e.colspan;n++)t.push(0);return t}(l)))[n]=r)}a&&e.problems.unshift({type:"colwidth mismatch",pos:o,colwidth:a})}}(a,s,e),a}(e))}};function h(e){let t=e.cached.tableNodeTypes;if(!t)for(let n in t=e.cached.tableNodeTypes={},e.nodes){let r=e.nodes[n],i=r.spec.tableRole;i&&(t[i]=r)}return t}var f=new s.H$("selectingCells");function p(e){for(let t=e.depth-1;t>0;t--)if("row"==e.node(t).type.spec.tableRole)return e.node(0).resolve(e.before(t+1));return null}function m(e){let t=e.selection.$head;for(let e=t.depth;e>0;e--)if("row"==t.node(e).type.spec.tableRole)return!0;return!1}function g(e){let t=e.selection;if("$anchorCell"in t&&t.$anchorCell)return t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell;if("node"in t&&t.node&&"cell"==t.node.type.spec.tableRole)return t.$anchor;let n=p(t.$head)||function(e){for(let t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){let r=t.type.spec.tableRole;if("cell"==r||"header_cell"==r)return e.doc.resolve(n)}for(let t=e.nodeBefore,n=e.pos;t;t=t.lastChild,n--){let r=t.type.spec.tableRole;if("cell"==r||"header_cell"==r)return e.doc.resolve(n-t.nodeSize)}}(t.$head);if(n)return n;throw RangeError(`No cell found around position ${t.head}`)}function b(e){return"row"==e.parent.type.spec.tableRole&&!!e.nodeAfter}function v(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function y(e,t,n){let r=e.node(-1),i=d.get(r),o=e.start(-1),s=i.nextCell(e.pos-o,t,n);return null==s?null:e.node(0).resolve(o+s)}function x(e,t,n=1){let r={...e,colspan:e.colspan-n};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(t,n),r.colwidth.some(e=>e>0)||(r.colwidth=null)),r}function k(e,t,n=1){let r={...e,colspan:e.colspan+n};if(r.colwidth){r.colwidth=r.colwidth.slice();for(let e=0;e<n;e++)r.colwidth.splice(t,0,0)}return r}var w=class e extends s.Y1{constructor(e,t=e){let n=e.node(-1),r=d.get(n),i=e.start(-1),o=r.rectBetween(e.pos-i,t.pos-i),a=e.node(0),l=r.cellsInRect(o).filter(e=>e!=t.pos-i);l.unshift(t.pos-i);let u=l.map(e=>{let t=n.nodeAt(e);if(!t)throw RangeError(`No cell with offset ${e}
4 found`);let r=i+e+1;return new s.xm(a.resolve(r),a.resolve(r+t.content.size))});super(u[0].$from,u[0].$to,u),this.$anchorCell=e,this.$headCell=t}map(t,n){let r=t.resolve(n.map(this.$anchorCell.pos)),i=t.resolve(n.map(this.$headCell.pos));if(b(r)&&b(i)&&v(r,i)){let t=this.$anchorCell.node(-1)!=r.node(-1);return t&&this.isRowSelection()?e.rowSelection(r,i):t&&this.isColSelection()?e.colSelection(r,i):new e(r,i)}return s.Bs.between(r,i)}content(){let e=this.$anchorCell.node(-1),t=d.get(e),n=this.$anchorCell.start(-1),r=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),i={},o=[];for(let n=r.top;n<r.bottom;n++){let s=[];for(let o=n*t.width+r.left,a=r.left;a<r.right;a++,o++){let n=t.map[o];if(i[n])continue;i[n]=!0;let a=t.findCell(n),l=e.nodeAt(n);if(!l)throw RangeError(`No cell with offset ${n} found`);let u=r.left-a.left,c=a.right-r.right;if(u>0||c>0){let e=l.attrs;if(u>0&&(e=x(e,0,u)),c>0&&(e=x(e,e.colspan-c,c)),a.left<r.left){if(!(l=l.type.createAndFill(e)))throw RangeError(`Could not create cell with attrs ${JSON.stringify(e)}`)}else l=l.type.create(e,l.content)}if(a.top<r.top||a.bottom>r.bottom){let e={...l.attrs,rowspan:Math.min(a.bottom,r.bottom)-Math.max(a.top,r.top)};l=a.top<r.top?l.type.createAndFill(e):l.type.create(e,l.content)}s.push(l)}o.push(e.child(n).copy(a.HY.from(s)))}let s=this.isColSelection()&&this.isRowSelection()?e:o;return new a.p2(a.HY.from(s),1,1)}replace(e,t=a.p2.empty){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:o,$to:s}=r[i],l=e.mapping.slice(n);e.replace(l.map(o.pos),l.map(s.pos),i?a.p2.empty:t)}let i=s.Y1.findFrom(e.doc.resolve(e.mapping.slice(n).map(this.to)),-1);i&&e.setSelection(i)}replaceWith(e,t){this.replace(e,new a.p2(a.HY.from(t),0,0))}forEachCell(e){let t=this.$anchorCell.node(-1),n=d.get(t),r=this.$anchorCell.start(-1),i=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r));for(let n=0;n<i.length;n++)e(t.nodeAt(i[n]),r+i[n])}isColSelection(){let e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);return!(Math.min(e,t)>0)&&Math.max(e+this.$anchorCell.nodeAfter.attrs.rowspan,t+this.$headCell.nodeAfter.attrs.rowspan)==this.$headCell.node(-1).childCount}static colSelection(t,n=t){let r=t.node(-1),i=d.get(r),o=t.start(-1),s=i.findCell(t.pos-o),a=i.findCell(n.pos-o),l=t.node(0);return s.top<=a.top?(s.top>0&&(t=l.resolve(o+i.map[s.left])),a.bottom<i.height&&(n=l.resolve(o+i.map[i.width*(i.height-1)+a.right-1]))):(a.top>0&&(n=l.resolve(o+i.map[a.left])),s.bottom<i.height&&(t=l.resolve(o+i.map[i.width*(i.height-1)+s.right-1]))),new e(t,n)}isRowSelection(){let e=this.$anchorCell.node(-1),t=d.get(e),n=this.$anchorCell.start(-1),r=t.colCount(this.$anchorCell.pos-n),i=t.colCount(this.$headCell.pos-n);return!(Math.min(r,i)>0)&&Math.max(r+this.$anchorCell.nodeAfter.attrs.colspan,i+this.$headCell.nodeAfter.attrs.colspan)==t.width}eq(t){return t instanceof e&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,n=t){let r=t.node(-1),i=d.get(r),o=t.start(-1),s=i.findCell(t.pos-o),a=i.findCell(n.pos-o),l=t.node(0);return s.left<=a.left?(s.left>0&&(t=l.resolve(o+i.map[s.top*i.width])),a.right<i.width&&(n=l.resolve(o+i.map[i.width*(a.top+1)-1]))):(a.left>0&&(n=l.resolve(o+i.map[a.top*i.width])),s.right<i.width&&(t=l.resolve(o+i.map[i.width*(s.top+1)-1]))),new e(t,n)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(t,n){return new e(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,r=n){return new e(t.resolve(n),t.resolve(r))}getBookmark(){return new C(this.$anchorCell.pos,this.$headCell.pos)}};w.prototype.visible=!1,s.Y1.jsonID("cell",w);var C=class e{constructor(e,t){this.anchor=e,this.head=t}map(t){return new e(t.map(this.anchor),t.map(this.head))}resolve(e){let t=e.resolve(this.anchor),n=e.resolve(this.head);return"row"==t.parent.type.spec.tableRole&&"row"==n.parent.type.spec.tableRole&&t.index()<t.parent.childCount&&n.index()<n.parent.childCount&&v(t,n)?new w(t,n):s.Y1.near(n,1)}};function _(e){if(!(e.selection instanceof w))return null;let t=[];return e.selection.forEachCell((e,n)=>{t.push(l.p.node(n,n+e.nodeSize,{class:"selectedCell"}))}),l.EH.create(e.doc,t)}var A=new s.H$("fix-tables");function M(e,t){let n;let r=(t,r)=>{"table"==t.type.spec.tableRole&&(n=function(e,t,n,r){let i,o;let s=d.get(t);if(!s.problems)return r;r||(r=e.tr);let a=[];for(let e=0;e<s.height;e++)a.push(0);for(let e=0;e<s.problems.length;e++){let i=s.problems[e];if("collision"==i.type){let e=t.nodeAt(i.pos);if(!e)continue;let o=e.attrs;for(let e=0;e<o.rowspan;e++)a[i.row+e]+=i.n;
4r.setNodeMarkup(r.mapping.map(n+1+i.pos),null,x(o,o.colspan-i.n,i.n))}else if("missing"==i.type)a[i.row]+=i.n;else if("overlong_rowspan"==i.type){let e=t.nodeAt(i.pos);if(!e)continue;r.setNodeMarkup(r.mapping.map(n+1+i.pos),null,{...e.attrs,rowspan:e.attrs.rowspan-i.n})}else if("colwidth mismatch"==i.type){let e=t.nodeAt(i.pos);if(!e)continue;r.setNodeMarkup(r.mapping.map(n+1+i.pos),null,{...e.attrs,colwidth:i.colwidth})}else if("zero_sized"==i.type){let e=r.mapping.map(n);r.delete(e,e+t.nodeSize)}}for(let e=0;e<a.length;e++)a[e]&&(null==i&&(i=e),o=e);for(let l=0,u=n+1;l<s.height;l++){let n=t.child(l),s=u+n.nodeSize,c=a[l];if(c>0){let t="cell";n.firstChild&&(t=n.firstChild.type.spec.tableRole);let a=[];for(let n=0;n<c;n++){let n=h(e.schema)[t].createAndFill();n&&a.push(n)}let d=(0==l||i==l-1)&&o==l?u+1:s-1;r.insert(r.mapping.map(d),a)}u=s}return r.setMeta(A,{fixTables:!0})}(e,t,r,n))};return t?t.doc!=e.doc&&function e(t,n,r,i){let o=t.childCount,s=n.childCount;e:for(let a=0,l=0;a<s;a++){let s=n.child(a);for(let e=l,n=Math.min(o,a+3);e<n;e++)if(t.child(e)==s){l=e+1,r+=s.nodeSize;continue e}i(s,r),l<o&&t.child(l).sameMarkup(s)?e(t.child(l),s,r+1,i):s.nodesBetween(0,s.content.size,i,r+1),r+=s.nodeSize}}(t.doc,e.doc,0,r):e.doc.descendants(r),n}function S(e){let t=e.selection,n=g(e),r=n.node(-1),i=n.start(-1),o=d.get(r);return{...t instanceof w?o.rectBetween(t.$anchorCell.pos-i,t.$headCell.pos-i):o.findCell(n.pos-i),tableStart:i,map:o,table:r}}function E(e,{map:t,tableStart:n,table:r},i){let o=i>0?-1:0;(function(e,t,n){let r=h(t.type.schema).header_cell;for(let i=0;i<e.height;i++)if(t.nodeAt(e.map[n+i*e.width]).type!=r)return!1;return!0})(t,r,i+o)&&(o=0==i||i==t.width?null:0);for(let s=0;s<t.height;s++){let a=s*t.width+i;if(i>0&&i<t.width&&t.map[a-1]==t.map[a]){let o=t.map[a],l=r.nodeAt(o);e.setNodeMarkup(e.mapping.map(n+o),null,k(l.attrs,i-t.colCount(o))),s+=l.attrs.rowspan-1}else{let l=null==o?h(r.type.schema).cell:r.nodeAt(t.map[a+o]).type,u=t.positionAt(s,i,r);e.insert(e.mapping.map(n+u),l.createAndFill())}}return e}function T(e,{map:t,tableStart:n,table:r},i){var o;let s=n;for(let e=0;e<i;e++)s+=r.child(e).nodeSize;let a=[],l=i>0?-1:0;(function(e,t,n){var r;let i=h(t.type.schema).header_cell;for(let o=0;o<e.width;o++)if((null==(r=t.nodeAt(e.map[o+n*e.width]))?void 0:r.type)!=i)return!1;return!0})(t,r,i+l)&&(l=0==i||i==t.height?null:0);for(let s=0,u=t.width*i;s<t.width;s++,u++)if(i>0&&i<t.height&&t.map[u]==t.map[u-t.width]){let i=t.map[u],o=r.nodeAt(i).attrs;e.setNodeMarkup(n+i,null,{...o,rowspan:o.rowspan+1}),s+=o.colspan-1}else{let e=null==l?h(r.type.schema).cell:null==(o=r.nodeAt(t.map[u+l*t.width]))?void 0:o.type,n=null==e?void 0:e.createAndFill();n&&a.push(n)}return e.insert(s,h(r.type.schema).row.create(null,a)),e}function D(e){let t=e.content;return 1==t.childCount&&t.child(0).isTextblock&&0==t.child(0).childCount}function L(e,t){let n=e.selection;if(!(n instanceof w)||n.$anchorCell.pos==n.$headCell.pos)return!1;let r=S(e),{map:i}=r;if(function({width:e,height:t,map:n},r){let i=r.top*e+r.left,o=i,s=(r.bottom-1)*e+r.left,a=i+(r.right-r.left-1);for(let t=r.top;t<r.bottom;t++){if(r.left>0&&n[o]==n[o-1]||r.right<e&&n[a]==n[a+1])return!0;o+=e,a+=e}for(let o=r.left;o<r.right;o++){if(r.top>0&&n[i]==n[i-e]||r.bottom<t&&n[s]==n[s+e])return!0;i++,s++}return!1}(i,r))return!1;if(t){let n,o;let s=e.tr,l={},u=a.HY.empty;for(let e=r.top;e<r.bottom;e++)for(let t=r.left;t<r.right;t++){let a=i.map[e*i.width+t],c=r.table.nodeAt(a);if(!l[a]&&c){if(l[a]=!0,null==n)n=a,o=c;else{D(c)||(u=u.append(c.content));let e=s.mapping.map(a+r.tableStart);s.delete(e,e+c.nodeSize)}}}if(null==n||null==o)return!0;if(s.setNodeMarkup(n+r.tableStart,null,{...k(o.attrs,o.attrs.colspan,r.right-r.left-o.attrs.colspan),rowspan:r.bottom-r.top}),u.size){let e=n+1+o.content.size,t=D(o)?n+1:e;s.replaceWith(t+r.tableStart,e+r.tableStart,u)}s.setSelection(new w(s.doc.resolve(n+r.tableStart))),t(s)}return!0}function O(e,t){var n;let r=h(e.schema);return(n=({node:e})=>r[e.type.spec.tableRole],(e,t)=>{var r;let i,o;let s=e.selection;if(s instanceof w){if(s.$anchorCell.pos!=s.$headCell.pos)return!1;i=s.$anchorCell.nodeAfter,o=s.$anchorCell.pos}else{if(!(i=function(e){for(let t=e.depth;t>0;t--){let n=e.node(t).type.spec.tableRole;
4if("cell"===n||"header_cell"===n)return e.node(t)}return null}(s.$from)))return!1;o=null==(r=p(s.$from))?void 0:r.pos}if(null==i||null==o||1==i.attrs.colspan&&1==i.attrs.rowspan)return!1;if(t){let r,a=i.attrs,l=[],u=a.colwidth;a.rowspan>1&&(a={...a,rowspan:1}),a.colspan>1&&(a={...a,colspan:1});let c=S(e),d=e.tr;for(let e=0;e<c.right-c.left;e++)l.push(u?{...a,colwidth:u&&u[e]?[u[e]]:null}:a);for(let e=c.top;e<c.bottom;e++){let t=c.map.positionAt(e,c.left,c.table);e==c.top&&(t+=i.nodeSize);for(let o=c.left,s=0;o<c.right;o++,s++)(o!=c.left||e!=c.top)&&d.insert(r=d.mapping.map(t+c.tableStart,1),n({node:i,row:e,col:o}).createAndFill(l[s]))}d.setNodeMarkup(o,n({node:i,row:c.top,col:c.left}),l[0]),s instanceof w&&d.setSelection(new w(d.doc.resolve(s.$anchorCell.pos),r?d.doc.resolve(r):void 0)),t(d)}return!0})(e,t)}function R(e,t,n){let r=t.map.cellsInRect({left:0,top:0,right:"row"==e?t.map.width:1,bottom:"column"==e?t.map.height:1});for(let e=0;e<r.length;e++){let i=t.table.nodeAt(r[e]);if(i&&i.type!==n.header_cell)return!1}return!0}function F(e,t){return(t=t||{useDeprecatedLogic:!1}).useDeprecatedLogic?function(t,n){if(!m(t))return!1;if(n){let r=h(t.schema),i=S(t),o=t.tr,s=i.map.cellsInRect("column"==e?{left:i.left,top:0,right:i.right,bottom:i.map.height}:"row"==e?{left:0,top:i.top,right:i.map.width,bottom:i.bottom}:i),a=s.map(e=>i.table.nodeAt(e));for(let e=0;e<s.length;e++)a[e].type==r.header_cell&&o.setNodeMarkup(i.tableStart+s[e],r.cell,a[e].attrs);if(0==o.steps.length)for(let e=0;e<s.length;e++)o.setNodeMarkup(i.tableStart+s[e],r.header_cell,a[e].attrs);n(o)}return!0}:function(t,n){if(!m(t))return!1;if(n){let r=h(t.schema),i=S(t),o=t.tr,s=R("row",i,r),a=R("column",i,r),l=("column"===e?s:"row"===e&&a)?1:0,u="column"==e?{left:0,top:l,right:1,bottom:i.map.height}:"row"==e?{left:l,top:0,right:i.map.width,bottom:1}:i,c="column"==e?a?r.cell:r.header_cell:"row"==e?s?r.cell:r.header_cell:r.cell;i.map.cellsInRect(u).forEach(e=>{let t=e+i.tableStart,n=o.doc.nodeAt(t);n&&o.setNodeMarkup(t,c,n.attrs)}),n(o)}return!0}}F("row",{useDeprecatedLogic:!0}),F("column",{useDeprecatedLogic:!0});var z=F("cell",{useDeprecatedLogic:!0});function I(e){return function(t,n){if(!m(t))return!1;let r=function(e,t){if(t<0){let t=e.nodeBefore;if(t)return e.pos-t.nodeSize;for(let t=e.index(-1)-1,n=e.before();t>=0;t--){let r=e.node(-1).child(t),i=r.lastChild;if(i)return n-1-i.nodeSize;n-=r.nodeSize}}else{if(e.index()<e.parent.childCount-1)return e.pos+e.nodeAfter.nodeSize;let t=e.node(-1);for(let n=e.indexAfter(-1),r=e.after();n<t.childCount;n++){let e=t.child(n);if(e.childCount)return r+1;r+=e.nodeSize}}return null}(g(t),e);if(null==r)return!1;if(n){let e=t.doc.resolve(r);n(t.tr.setSelection(s.Bs.between(e,e.node(0).resolve(e.pos+e.nodeAfter.nodeSize))).scrollIntoView())}return!0}}function B(e,t){let n=e.selection;if(!(n instanceof w))return!1;if(t){let r=e.tr,i=h(e.schema).cell.createAndFill().content;n.forEachCell((e,t)=>{e.content.eq(i)||r.replace(r.mapping.map(t+1),r.mapping.map(t+e.nodeSize-1),new a.p2(i,0,0))}),r.docChanged&&t(r)}return!0}function j(e,t){let n=e.createAndFill();return new c.wx(n).replace(0,n.content.size,t).doc}function N(e,t,n,r,i,o,s,a){if(0==s||s==t.height)return!1;let l=!1;for(let u=i;u<o;u++){let i=s*t.width+u,o=t.map[i];if(t.map[i-t.width]==o){l=!0;let i=n.nodeAt(o),{top:c,left:d}=t.findCell(o);e.setNodeMarkup(e.mapping.slice(a).map(o+r),null,{...i.attrs,rowspan:s-c}),e.insert(e.mapping.slice(a).map(t.positionAt(s,d,n)),i.type.createAndFill({...i.attrs,rowspan:c+i.attrs.rowspan-s})),u+=i.attrs.colspan-1}}return l}function P(e,t,n,r,i,o,s,a){if(0==s||s==t.width)return!1;let l=!1;for(let u=i;u<o;u++){let i=u*t.width+s,o=t.map[i];if(t.map[i-1]==o){l=!0;let i=n.nodeAt(o),c=t.colCount(o),d=e.mapping.slice(a).map(o+r);e.setNodeMarkup(d,null,x(i.attrs,s-c,i.attrs.colspan-(s-c))),e.insert(d+i.nodeSize,i.type.createAndFill(x(i.attrs,0,s-c))),u+=i.attrs.rowspan-1}}return l}function H(e,t,n,r,i){let o=n?e.doc.nodeAt(n-1):e.doc;if(!o)throw Error("No table found");let s=d.get(o),{top:l,left:u}=r,c=u+i.width,f=l+i.height,p=e.tr,m=0;function g(){if(!(o=n?p.doc.nodeAt(n-1):p.doc))throw Error("No table found");s=d.get(o),m=p.mapping.maps.length}(function(e,t,n,r,i,o,s){let l,u;let c=h(e.doc.type.schema);if(i>t.width)for(let o=0,s=0;o<t.height;o++){let a;let d=n.child(o);s+=d.nodeSize;let h=[];a=null==d.lastChild||d.lastChild.type==c.cell?l||(l=c.cell.createAndFill()):u||(u=c.header_cell.createAndFill());for(let e=t.width;e<i;e++)h.push(a);e.insert(e.mapping.slice(0).map(s-1+r),h)}if(o>t.height){let s=[];for(let e=0,r=(t.height-1)*t.width;e<Math.max(t.width,i);e++){let i=!(e>=t.width)&&n.nodeAt(t.map[r+e]).type==c.header_cell;s.push(i?u||(u=c.header_cell.createAndFill()):l||(l=c.cell.createAndFill()))}let d=c.row.create(null,a.HY.from(s)),h=[];for(let e=t.height;e<o;e++)h.push(d);e.insert(e.mapping.slice(0).map(r+n.nodeSize-2),h)}return!!(l||u)})(p,s,o,n,c,f,0)&&g(),N(p,s,o,n,u,c,l,m)&&g(),N(p,s,o,n,u,c,f,m)&&g(),P(p,s,o,n,l,f,u,m)&&g(),P(p,s,o,n,l,f,c,m)&&g();for(let e=l;e<f;e++){let t=s.positionAt(e,u,o),r=s.positionAt(e,c,o);p.replace(p.mapping.slice(m).map(t+n),p.mapping.slice(m).map(r+n),new a.p2(i.rows[e-l],0,0))}g(),p.setSelection(new w(p.doc.resolve(n+s.positionAt(l,u,o)),p.doc.resolve(n+s.positionAt(f-1,c-1,o)))),t(p)}var W=(0,u.$)({ArrowLeft:Z("horiz",-1),ArrowRight:Z("horiz",1),ArrowUp:Z("vert",-1),ArrowDown:Z("vert",1),"Shift-ArrowLeft":q("horiz",-1),"Shift-ArrowRight":q("horiz",1),"Shift-ArrowUp":q("vert",
4-1),"Shift-ArrowDown":q("vert",1),Backspace:B,"Mod-Backspace":B,Delete:B,"Mod-Delete":B});function $(e,t,n){return!n.eq(e.selection)&&(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function Z(e,t){return(n,r,i)=>{if(!i)return!1;let o=n.selection;if(o instanceof w)return $(n,r,s.Y1.near(o.$headCell,t));if("horiz"!=e&&!o.empty)return!1;let a=G(i,e,t);if(null==a)return!1;if("horiz"==e)return $(n,r,s.Y1.near(n.doc.resolve(o.head+t),t));{let i;let o=n.doc.resolve(a),l=y(o,e,t);return i=l?s.Y1.near(l,1):t<0?s.Y1.near(n.doc.resolve(o.before(-1)),-1):s.Y1.near(n.doc.resolve(o.after(-1)),1),$(n,r,i)}}}function q(e,t){return(n,r,i)=>{let o;if(!i)return!1;let s=n.selection;if(s instanceof w)o=s;else{let r=G(i,e,t);if(null==r)return!1;o=new w(n.doc.resolve(r))}let a=y(o.$headCell,e,t);return!!a&&$(n,r,new w(o.$anchorCell,a))}}function U(e,t){let n=p(e.state.doc.resolve(t));return!!n&&(e.dispatch(e.state.tr.setSelection(new w(n))),!0)}function V(e,t,n){if(!m(e.state))return!1;let r=function(e){if(!e.size)return null;let{content:t,openStart:n,openEnd:r}=e;for(;1==t.childCount&&(n>0&&r>0||"table"==t.child(0).type.spec.tableRole);)n--,r--,t=t.child(0).content;let i=t.child(0),o=i.type.spec.tableRole,s=i.type.schema,l=[];if("row"==o)for(let e=0;e<t.childCount;e++){let i=t.child(e).content,o=e?0:Math.max(0,n-1),u=e<t.childCount-1?0:Math.max(0,r-1);(o||u)&&(i=j(h(s).row,new a.p2(i,o,u)).content),l.push(i)}else{if("cell"!=o&&"header_cell"!=o)return null;l.push(n||r?j(h(s).row,new a.p2(t,n,r)).content:t)}return function(e,t){let n=[];for(let e=0;e<t.length;e++){let r=t[e];for(let t=r.childCount-1;t>=0;t--){let{rowspan:i,colspan:o}=r.child(t).attrs;for(let t=e;t<e+i;t++)n[t]=(n[t]||0)+o}}let r=0;for(let e=0;e<n.length;e++)r=Math.max(r,n[e]);for(let i=0;i<n.length;i++)if(i>=t.length&&t.push(a.HY.empty),n[i]<r){let o=h(e).cell.createAndFill(),s=[];for(let e=n[i];e<r;e++)s.push(o);t[i]=t[i].append(a.HY.from(s))}return{height:t.length,width:r,rows:t}}(s,l)}(n),i=e.state.selection;if(i instanceof w){r||(r={width:1,height:1,rows:[a.HY.from(j(h(e.state.schema).cell,n))]});let t=i.$anchorCell.node(-1),o=i.$anchorCell.start(-1),s=d.get(t).rectBetween(i.$anchorCell.pos-o,i.$headCell.pos-o);return r=function({width:e,height:t,rows:n},r,i){if(e!=r){let t=[],i=[];for(let e=0;e<n.length;e++){let o=n[e],s=[];for(let n=t[e]||0,i=0;n<r;i++){let a=o.child(i%o.childCount);n+a.attrs.colspan>r&&(a=a.type.createChecked(x(a.attrs,a.attrs.colspan,n+a.attrs.colspan-r),a.content)),s.push(a),n+=a.attrs.colspan;for(let n=1;n<a.attrs.rowspan;n++)t[e+n]=(t[e+n]||0)+a.attrs.colspan}i.push(a.HY.from(s))}n=i,e=r}if(t!=i){let e=[];for(let r=0,o=0;r<i;r++,o++){let s=[],l=n[o%t];for(let e=0;e<l.childCount;e++){let t=l.child(e);r+t.attrs.rowspan>i&&(t=t.type.create({...t.attrs,rowspan:Math.max(1,i-t.attrs.rowspan)},t.content)),s.push(t)}e.push(a.HY.from(s))}n=e,t=i}return{width:e,height:t,rows:n}}(r,s.right-s.left,s.bottom-s.top),H(e.state,e.dispatch,o,s,r),!0}if(!r)return!1;{let t=g(e.state),n=t.start(-1);return H(e.state,e.dispatch,n,d.get(t.node(-1)).findCell(t.pos-n),r),!0}}function Y(e,t){var n;let r;if(t.ctrlKey||t.metaKey)return;let i=J(e,t.target);if(t.shiftKey&&e.state.selection instanceof w)o(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&i&&null!=(r=p(e.state.selection.$anchor))&&(null==(n=X(e,t))?void 0:n.pos)!=r.pos)o(r,t),t.preventDefault();else if(!i)return;function o(t,n){let r=X(e,n),i=null==f.getState(e.state);if(!r||!v(t,r)){if(!i)return;r=t}let o=new w(t,r);if(i||!e.state.selection.eq(o)){let n=e.state.tr.setSelection(o);i&&n.setMeta(f,t.pos),e.dispatch(n)}}function s(){e.root.removeEventListener("mouseup",s),e.root.removeEventListener("dragstart",s),e.root.removeEventListener("mousemove",a),null!=f.getState(e.state)&&e.dispatch(e.state.tr.setMeta(f,-1))}function a(n){let r;let a=f.getState(e.state);if(null!=a)r=e.state.doc.resolve(a);else if(J(e,n.target)!=i&&!(r=X(e,t)))return s();r&&o(r,n)}e.root.addEventListener("mouseup",s),e.root.addEventListener("dragstart",s),e.root.addEventListener("mousemove",a)}function G(e,t,n){if(!(e.state.selection instanceof s.Bs))return null;let{$head:r}=e.state.selection;for(let i=r.depth-1;i>=0;i--){let o=r.node(i);if((n<0?r.index(i):r.indexAfter(i))!=(n<0?0:o.childCount))break;if("cell"==o.type.spec.tableRole||"header_cell"==o.type.spec.tableRole){let o=r.before(i),s="vert"==t?n>0?"down":"up":n>0?"right":"left";return e.endOfTextblock(s)?o:null}}return null}function J(e,t){for(;t&&t!=e.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t;return null}function X(e,t){let n=e.posAtCoords({left:t.clientX,top:t.clientY});return n&&n?p(e.state.doc.resolve(n.pos)):null}var K=class{constructor(e,t){this.node=e,this.defaultCellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.table.style.setProperty("--default-cell-min-width",`${t}px`),this.colgroup=this.table.appendChild(document.createElement("colgroup")),Q(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type==this.node.type&&(this.node=e,Q(e,this.colgroup,this.table,this.defaultCellMinWidth),!0)}ignoreMutation(e){return"attributes"==e.type&&(e.target==this.table||this.colgroup.contains(e.target))}};function Q(e,t,n,r,i,o){var s;let a=0,l=!0,u=t.firstChild,c=e.firstChild;if(c){for(let e=0,n=0;e<c.childCount;e++){let{colspan:s,colwidth:d}=c.child(e).attrs;for(let e=0;e<s;e++,n++){let s=i==n?o:d&&d[e],c=s?s+"px":"";if(a+=s||r,s||(l=!1),u)u.style.width!=c&&(u.style.width=c),u=u.nextSibling;else{let e=document.createElement("col");e.style.width=c,t.appendChild(e)}}}for(;u;){let e=u.nextSibling;null==(s=u.parentNode)||s.removeChild(u),u=e}l?(n.style.width=a+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=a+"px")}}var ee=new s.H$("tableColumnResizing"),et=class e{constructor(e,t){this.activeHandle=e,this.dragging=t}apply(t){let n=t.getMeta(ee);if(n&&null!=n.setHandle)return new e(n.setHandle,!1);if(n&&void 0!==n.setDragging)return new e(this.activeHandle,n.setDragging);if(this.activeHandle>-1&&t.docChanged){let n=t.mapping.map(this.activeHandle,-1);return b(t.doc.resolve(n))||(n=-1),new e(n,this.dragging)}return this}};function en(e,t,n,r){let i=e.posAtCoords({left:t.clientX+("right"==n?-r:r),top:t.clientY});if(!i)return -1;let{pos:o}=i,s=p(e.state.doc.resolve(o));if(!s)return -1;if("right"==n)return s.pos;let a=d.get(s.node(-1)),l=s.start(-1),u=a.map.indexOf(s.pos-l);return u%a.width==0?-1:l+a.map[u-1]}function er(e,t,n){let r=t.clientX-e.startX;return Math.max(n,e.startWidth+r)}function ei(e,t){e.dispatch(e.state.tr.setMeta(ee,{setHandle:t}))}function eo(e,t,n,r){let i=e.state.doc.resolve(t),o=i.node(-1),s=i.start(-1),a=d.get(o).colCount(i.pos-s)+i.nodeAfter.attrs.colspan-1,l=e.domAtPos(i.start(-1)).node;for(;l&&"TABLE"!=l.nodeName;)l=l.parentNode;l&&Q(o,l.firstChild,l,r,a,n)}function es(e,t){return t?["width",`${Math.max(t,e)}px`]:["min-width",`${e}px`]}function ea(e,t,n,r,i,o){var s;let a=0,l=!0,u=t.firstChild,c=e.firstChild;if(null!==c)for(let e=0,n=0;e<c.childCount;e+=1){let{colspan:s,colwidth:d}=c.child(e).attrs;for(let e=0;e<s;e+=1,n+=1){let s=i===n?o:d&&d[e],c=s?`${s}px`:"";if(a+=s||r,s||(l=!1),u){if(u.style.width!==c){let[e,t]=es(r,s);
4u.style.setProperty(e,t)}u=u.nextSibling}else{let e=document.createElement("col"),[n,i]=es(r,s);e.style.setProperty(n,i),t.appendChild(e)}}}for(;u;){let e=u.nextSibling;null===(s=u.parentNode)||void 0===s||s.removeChild(u),u=e}l?(n.style.width=`${a}px`,n.style.minWidth=""):(n.style.width="",n.style.minWidth=`${a}px`)}class el{constructor(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),ea(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type===this.node.type&&(this.node=e,ea(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){return"attributes"===e.type&&(e.target===this.table||this.colgroup.contains(e.target))}}function eu(e,t){return t?e.createChecked(null,t):e.createAndFill()}let ec=({editor:e})=>{let{selection:t}=e.state;if(!(t instanceof w))return!1;let n=0,r=(0,o.qv)(t.ranges[0].$from,e=>"table"===e.type.name);return null==r||r.node.descendants(e=>{if("table"===e.type.name)return!1;["tableCell","tableHeader"].includes(e.type.name)&&(n+=1)}),n===t.ranges.length&&(e.commands.deleteTable(),!0)},ed=o.NB.create({name:"table",addOptions:()=>({HTMLAttributes:{},resizable:!1,handleWidth:5,cellMinWidth:25,View:el,lastColumnResizable:!0,allowTableNodeSelection:!1}),content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML:()=>[{tag:"table"}],renderHTML({node:e,HTMLAttributes:t}){let{colgroup:n,tableWidth:r,tableMinWidth:i}=function(e,t,n,r){let i=0,o=!0,s=[],a=e.firstChild;if(!a)return{};for(let e=0,n=0;e<a.childCount;e+=1){let{colspan:r,colwidth:l}=a.child(e).attrs;for(let e=0;e<r;e+=1,n+=1){let r=void 0===n?void 0:l&&l[e];i+=r||t,r||(o=!1);let[a,u]=es(t,r);s.push(["col",{style:`${a}: ${u}`}])}}return{colgroup:["colgroup",{},...s],tableWidth:o?`${i}px`:"",tableMinWidth:o?"":`${i}px`}}(e,this.options.cellMinWidth);return["table",(0,o.P1)(this.options.HTMLAttributes,t,{style:r?`width: ${r}`:`min-width: ${i}`}),n,["tbody",0]]},addCommands:()=>({insertTable:({rows:e=3,cols:t=3,withHeaderRow:n=!0}={})=>({tr:r,dispatch:i,editor:o})=>{let a=function(e,t,n,r,i){let o=function(e){if(e.cached.tableNodeTypes)return e.cached.tableNodeTypes;let t={};return Object.keys(e.nodes).forEach(n=>{let r=e.nodes[n];r.spec.tableRole&&(t[r.spec.tableRole]=r)}),e.cached.tableNodeTypes=t,t}(e),s=[],a=[];for(let e=0;e<n;e+=1){let e=eu(o.cell,void 0);if(e&&a.push(e),r){let e=eu(o.header_cell,void 0);e&&s.push(e)}}let l=[];for(let e=0;e<t;e+=1)l.push(o.row.createChecked(null,r&&0===e?s:a));return o.table.createChecked(null,l)}(o.schema,e,t,n);if(i){let e=r.selection.from+1;r.replaceSelectionWith(a).scrollIntoView().setSelection(s.Bs.near(r.doc.resolve(e)))}return!0},addColumnBefore:()=>({state:e,dispatch:t})=>(function(e,t){if(!m(e))return!1;if(t){let n=S(e);t(E(e.tr,n,n.left))}return!0})(e,t),addColumnAfter:()=>({state:e,dispatch:t})=>(function(e,t){if(!m(e))return!1;if(t){let n=S(e);t(E(e.tr,n,n.right))}return!0})(e,t),deleteColumn:()=>({state:e,dispatch:t})=>(function(e,t){if(!m(e))return!1;if(t){let n=S(e),r=e.tr;if(0==n.left&&n.right==n.map.width)return!1;for(let e=n.right-1;!function(e,{map:t,table:n,tableStart:r},i){let o=e.mapping.maps.length;for(let s=0;s<t.height;){let a=s*t.width+i,l=t.map[a],u=n.nodeAt(l),c=u.attrs;if(i>0&&t.map[a-1]==l||i<t.width-1&&t.map[a+1]==l)e.setNodeMarkup(e.mapping.slice(o).map(r+l),null,x(c,i-t.colCount(l)));else{let t=e.mapping.slice(o).map(r+l);e.delete(t,t+u.nodeSize)}s+=c.rowspan}}(r,n,e),e!=n.left;e--){let e=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!e)throw RangeError("No table found");n.table=e,n.map=d.get(e)}t(r)}return!0})(e,t),addRowBefore:()=>({state:e,dispatch:t})=>(function(e,t){if(!m(e))return!1;if(t){let n=S(e);t(T(e.tr,n,n.top))}return!0})(e,t),addRowAfter:()=>({state:e,dispatch:t})=>(function(e,t){if(!m(e))return!1;if(t){let n=S(e);t(T(e.tr,n,n.bottom))}return!0})(e,t),deleteRow:()=>({state:e,dispatch:t})=>(function(e,t){if(!m(e))return!1;if(t){let n=S(e),r=e.tr;if(0==n.top&&n.bottom==n.map.height)return!1;for(let e=n.bottom-1;!function(e,{map:t,table:n,tableStart:r},i){let o=0;for(let e=0;e<i;e++)o+=n.child(e).nodeSize;let s=o+n.child(i).nodeSize,a=e.mapping.maps.length;e.delete(o+r,s+r);let l=new Set;for(let o=0,s=i*t.width;o<t.width;o++,s++){let u=t.map[s];if(!l.has(u)){if(l.add(u),i>0&&u==t.map[s-t.width]){let t=n.nodeAt(u).attrs;
4e.setNodeMarkup(e.mapping.slice(a).map(u+r),null,{...t,rowspan:t.rowspan-1}),o+=t.colspan-1}else if(i<t.height&&u==t.map[s+t.width]){let s=n.nodeAt(u),l=s.attrs,c=s.type.create({...l,rowspan:s.attrs.rowspan-1},s.content),d=t.positionAt(i+1,o,n);e.insert(e.mapping.slice(a).map(r+d),c),o+=l.colspan-1}}}}(r,n,e),e!=n.top;e--){let e=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!e)throw RangeError("No table found");n.table=e,n.map=d.get(n.table)}t(r)}return!0})(e,t),deleteTable:()=>({state:e,dispatch:t})=>(function(e,t){let n=e.selection.$anchor;for(let r=n.depth;r>0;r--)if("table"==n.node(r).type.spec.tableRole)return t&&t(e.tr.delete(n.before(r),n.after(r)).scrollIntoView()),!0;return!1})(e,t),mergeCells:()=>({state:e,dispatch:t})=>L(e,t),splitCell:()=>({state:e,dispatch:t})=>O(e,t),toggleHeaderColumn:()=>({state:e,dispatch:t})=>F("column")(e,t),toggleHeaderRow:()=>({state:e,dispatch:t})=>F("row")(e,t),toggleHeaderCell:()=>({state:e,dispatch:t})=>z(e,t),mergeOrSplit:()=>({state:e,dispatch:t})=>!!L(e,t)||O(e,t),setCellAttribute:(e,t)=>({state:n,dispatch:r})=>(function(n,r){if(!m(n))return!1;let i=g(n);if(i.nodeAfter.attrs[e]===t)return!1;if(r){let o=n.tr;n.selection instanceof w?n.selection.forEachCell((n,r)=>{n.attrs[e]!==t&&o.setNodeMarkup(r,null,{...n.attrs,[e]:t})}):o.setNodeMarkup(i.pos,null,{...i.nodeAfter.attrs,[e]:t}),r(o)}return!0})(n,r),goToNextCell:()=>({state:e,dispatch:t})=>I(1)(e,t),goToPreviousCell:()=>({state:e,dispatch:t})=>I(-1)(e,t),fixTables:()=>({state:e,dispatch:t})=>(t&&M(e),!0),setCellSelection:e=>({tr:t,dispatch:n})=>{if(n){let n=w.create(t.doc,e.anchorCell,e.headCell);t.setSelection(n)}return!0}}),addKeyboardShortcuts(){return{Tab:()=>!!this.editor.commands.goToNextCell()||!!this.editor.can().addRowAfter()&&this.editor.chain().addRowAfter().goToNextCell().run(),"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:ec,"Mod-Backspace":ec,Delete:ec,"Mod-Delete":ec}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[function({handleWidth:e=5,cellMinWidth:t=25,defaultCellMinWidth:n=100,View:r=K,lastColumnResizable:i=!0}={}){let o=new s.Sy({key:ee,state:{init(e,t){var i,s;let a=null==(s=null==(i=o.spec)?void 0:i.props)?void 0:s.nodeViews,l=h(t.schema).table.name;return r&&a&&(a[l]=(e,t)=>new r(e,n,t)),new et(-1,!1)},apply:(e,t)=>t.apply(e)},props:{attributes:e=>{let t=ee.getState(e);return t&&t.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(t,n)=>{!function(e,t,n,r){if(!e.editable)return;let i=ee.getState(e.state);if(i&&!i.dragging){let o=function(e){for(;e&&"TD"!=e.nodeName&&"TH"!=e.nodeName;)e=e.classList&&e.classList.contains("ProseMirror")?null:e.parentNode;return e}(t.target),s=-1;if(o){let{left:r,right:i}=o.getBoundingClientRect();t.clientX-r<=n?s=en(e,t,"left",n):i-t.clientX<=n&&(s=en(e,t,"right",n))}if(s!=i.activeHandle){if(!r&&-1!==s){let t=e.state.doc.resolve(s),n=t.node(-1),r=d.get(n),i=t.start(-1);if(r.colCount(t.pos-i)+t.nodeAfter.attrs.colspan-1==r.width-1)return}ei(e,s)}}}(t,n,e,i)},mouseleave:e=>{!function(e){if(!e.editable)return;let t=ee.getState(e.state);t&&t.activeHandle>-1&&!t.dragging&&ei(e,-1)}(e)},mousedown:(e,r)=>{!function(e,t,n,r){var i;if(!e.editable)return;let o=null!=(i=e.dom.ownerDocument.defaultView)?i:window,s=ee.getState(e.state);if(!s||-1==s.activeHandle||s.dragging)return;let a=e.state.doc.nodeAt(s.activeHandle),l=function(e,t,{colspan:n,colwidth:r}){let i=r&&r[r.length-1];if(i)return i;let o=e.domAtPos(t),s=o.node.childNodes[o.offset].offsetWidth,a=n;if(r)for(let e=0;e<n;e++)r[e]&&(s-=r[e],a--);return s/a}(e,s.activeHandle,a.attrs);function u(t){o.removeEventListener("mouseup",u),o.removeEventListener("mousemove",c);let r=ee.getState(e.state);(null==r?void 0:r.dragging)&&(function(e,t,n){let r=e.state.doc.resolve(t),i=r.node(-1),o=d.get(i),s=r.start(-1),a=o.colCount(r.pos-s)+r.nodeAfter.attrs.colspan-1,l=e.state.tr;for(let e=0;e<o.height;e++){let t=e*o.width+a;if(e&&o.map[t]==o.map[t-o.width])continue;let r=o.map[t],u=i.nodeAt(r).attrs,c=1==u.colspan?0:a-o.colCount(r);if(u.colwidth&&u.colwidth[c]==n)continue;let d=u.colwidth?u.colwidth.slice():Array(u.colspan).fill(0);d[c]=n,l.setNodeMarkup(s+r,null,{...u,colwidth:d})}l.docChanged&&e.dispatch(l)}(e,r.activeHandle,er(r.dragging,t,n)),e.dispatch(e.state.tr.setMeta(ee,{setDragging:null})))}function c(t){if(!t.which)return u(t);let i=ee.getState(e.state);if(i&&i.dragging){let o=er(i.dragging,t,n);eo(e,i.activeHandle,o,r)}}e.dispatch(e.state.tr.setMeta(ee,{setDragging:{startX:t.clientX,startWidth:l}})),eo(e,s.activeHandle,l,r),o.addEventListener("mouseup",u),o.addEventListener("mousemove",c),t.preventDefault()}(e,r,t,n)}},decorations:e=>{let t=ee.getState(e);if(t&&t.activeHandle>-1)return function(e,t){var n;let r=[],i=e.doc.resolve(t),o=i.node(-1);if(!o)return l.EH.empty;let s=d.get(o),a=i.start(-1),u=s.colCount(i.pos-a)+i.nodeAfter.attrs.colspan-1;for(let t=0;t<s.height;t++){let i=u+t*s.width;if((u==s.width-1||s.map[i]!=s.map[i+1])&&(0==t||s.map[i]!=s.map[i-s.width])){let t=s.map[i],u=a+t+o.nodeAt(t).nodeSize-1,c=document.createElement("div");
4c.className="column-resize-handle",(null==(n=ee.getState(e))?void 0:n.dragging)&&r.push(l.p.node(a+t,a+t+o.nodeAt(t).nodeSize,{class:"column-resize-dragging"})),r.push(l.p.widget(u,c))}}return l.EH.create(e.doc,r)}(e,t.activeHandle)},nodeViews:{}}});return o}({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,defaultCellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],function({allowTableNodeSelection:e=!1}={}){return new s.Sy({key:f,state:{init:()=>null,apply(e,t){let n=e.getMeta(f);if(null!=n)return -1==n?null:n;if(null==t||!e.docChanged)return t;let{deleted:r,pos:i}=e.mapping.mapResult(t);return r?null:i}},props:{decorations:_,handleDOMEvents:{mousedown:Y},createSelectionBetween:e=>null!=f.getState(e.state)?e.state.selection:null,handleTripleClick:U,handleKeyDown:W,handlePaste:V},appendTransaction:(t,n,r)=>(function(e,t,n){let r,i;let o=(t||e).selection,a=(t||e).doc;if(o instanceof s.qv&&(i=o.node.type.spec.tableRole)){if("cell"==i||"header_cell"==i)r=w.create(a,o.from);else if("row"==i){let e=a.resolve(o.from+1);r=w.rowSelection(e,e)}else if(!n){let e=d.get(o.node),t=o.from+1,n=t+e.map[e.width*e.height-1];r=w.create(a,t+1,n)}}else o instanceof s.Bs&&function({$from:e,$to:t}){if(e.pos==t.pos||e.pos<t.pos-6)return!1;let n=e.pos,r=t.pos,i=e.depth;for(;i>=0&&!(e.after(i+1)<e.end(i));i--,n++);for(let e=t.depth;e>=0&&!(t.before(e+1)>t.start(e));e--,r--);return n==r&&/row|table/.test(e.node(i).type.spec.tableRole)}(o)?r=s.Bs.create(a,o.from):o instanceof s.Bs&&function({$from:e,$to:t}){let n,r;for(let t=e.depth;t>0;t--){let r=e.node(t);if("cell"===r.type.spec.tableRole||"header_cell"===r.type.spec.tableRole){n=r;break}}for(let e=t.depth;e>0;e--){let n=t.node(e);if("cell"===n.type.spec.tableRole||"header_cell"===n.type.spec.tableRole){r=n;break}}return n!==r&&0===t.parentOffset}(o)&&(r=s.Bs.create(a,o.$from.start(),o.$from.end()));return r&&(t||(t=e.tr)).setSelection(r),t})(r,M(r,n),e)})}({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(e){let t={name:e.name,options:e.options,storage:e.storage};return{tableRole:(0,o.nU)((0,o.Nl)(e,"tableRole",t))}}})},25396:function(e,t,n){"use strict";n.d(t,{ZP:function(){return o}});var r=n(37243);let i=/^\s*(\[([( |x])?\])\s$/,o=r.NB.create({name:"taskItem",addOptions:()=>({nested:!1,HTMLAttributes:{},taskListTypeName:"taskList"}),content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes:()=>({checked:{default:!1,keepOnSplit:!1,parseHTML:e=>{let t=e.getAttribute("data-checked");return""===t||"true"===t},renderHTML:e=>({"data-checked":e.checked})}}),parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:e,HTMLAttributes:t}){return["li",(0,r.P1)(this.options.HTMLAttributes,t,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:e.attrs.checked?"checked":null}],["span"]],["div",0]]},addKeyboardShortcuts(){let e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return({node:e,HTMLAttributes:t,getPos:n,editor:r})=>{let i=document.createElement("li"),o=document.createElement("label"),s=document.createElement("span"),a=document.createElement("input"),l=document.createElement("div");return o.contentEditable="false",a.type="checkbox",a.addEventListener("mousedown",e=>e.preventDefault()),a.addEventListener("change",t=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){a.checked=!a.checked;return}let{checked:i}=t.target;r.isEditable&&"function"==typeof n&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:e})=>{let t=n();if("number"!=typeof t)return!1;let r=e.doc.nodeAt(t);return e.setNodeMarkup(t,void 0,{...null==r?void 0:r.attrs,checked:i}),!0}).run(),r.isEditable||!this.options.onReadOnlyChecked||this.options.onReadOnlyChecked(e,i)||(a.checked=!a.checked)}),Object.entries(this.options.HTMLAttributes).forEach(([e,t])=>{i.setAttribute(e,t)}),i.dataset.checked=e.attrs.checked,a.checked=e.attrs.checked,o.append(a,s),i.append(o,l),Object.entries(t).forEach(([e,t])=>{i.setAttribute(e,t)}),{dom:i,contentDOM:l,update:e=>e.type===this.type&&(i.dataset.checked=e.attrs.checked,a.checked=e.attrs.checked,!0)}}}
4,addInputRules(){return[(0,r.S0)({find:i,type:this.type,getAttributes:e=>({checked:"x"===e[e.length-1]})})]}})},18429:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(37243);let i=r.NB.create({name:"taskList",addOptions:()=>({itemTypeName:"taskItem",HTMLAttributes:{}}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:e}){return["ul",(0,r.P1)(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}})},18895:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=n(37243).hj.create({name:"textAlign",addOptions:()=>({types:[],alignments:["left","center","right","justify"],defaultAlignment:null}),addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:e=>{let t=e.style.textAlign;return this.options.alignments.includes(t)?t:this.options.defaultAlignment},renderHTML:e=>e.textAlign?{style:`text-align: ${e.textAlign}`}:{}}}}]},addCommands(){return{setTextAlign:e=>({commands:t})=>!!this.options.alignments.includes(e)&&this.options.types.map(n=>t.updateAttributes(n,{textAlign:e})).every(e=>e),unsetTextAlign:()=>({commands:e})=>this.options.types.map(t=>e.resetAttributes(t,"textAlign")).every(e=>e)}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}})},64652:function(e,t,n){"use strict";n.d(t,{ZP:function(){return M}});var r=n(37243);let i=e=>(0,r.DS)({find:/--$/,replace:null!=e?e:"—"}),o=e=>(0,r.DS)({find:/\.\.\.$/,replace:null!=e?e:"…"}),s=e=>(0,r.DS)({find:/(?:^|[\s{[(<'"\u2018\u201C])(")$/,replace:null!=e?e:"“"}),a=e=>(0,r.DS)({find:/"$/,replace:null!=e?e:"”"}),l=e=>(0,r.DS)({find:/(?:^|[\s{[(<'"\u2018\u201C])(')$/,replace:null!=e?e:"‘"}),u=e=>(0,r.DS)({find:/'$/,replace:null!=e?e:"’"}),c=e=>(0,r.DS)({find:/<-$/,replace:null!=e?e:"←"}),d=e=>(0,r.DS)({find:/->$/,replace:null!=e?e:"→"}),h=e=>(0,r.DS)({find:/\(c\)$/,replace:null!=e?e:"\xa9"}),f=e=>(0,r.DS)({find:/\(tm\)$/,replace:null!=e?e:"™"}),p=e=>(0,r.DS)({find:/\(sm\)$/,replace:null!=e?e:"℠"}),m=e=>(0,r.DS)({find:/\(r\)$/,replace:null!=e?e:"\xae"}),g=e=>(0,r.DS)({find:/(?:^|\s)(1\/2)\s$/,replace:null!=e?e:"\xbd"}),b=e=>(0,r.DS)({find:/\+\/-$/,replace:null!=e?e:"\xb1"}),v=e=>(0,r.DS)({find:/!=$/,replace:null!=e?e:"≠"}),y=e=>(0,r.DS)({find:/<<$/,replace:null!=e?e:"\xab"}),x=e=>(0,r.DS)({find:/>>$/,replace:null!=e?e:"\xbb"}),k=e=>(0,r.DS)({find:/\d+\s?([*x])\s?\d+$/,replace:null!=e?e:"\xd7"}),w=e=>(0,r.DS)({find:/\^2$/,replace:null!=e?e:"\xb2"}),C=e=>(0,r.DS)({find:/\^3$/,replace:null!=e?e:"\xb3"}),_=e=>(0,r.DS)({find:/(?:^|\s)(1\/4)\s$/,replace:null!=e?e:"\xbc"}),A=e=>(0,r.DS)({find:/(?:^|\s)(3\/4)\s$/,replace:null!=e?e:"\xbe"}),M=r.hj.create({name:"typography",addOptions:()=>({closeDoubleQuote:"”",closeSingleQuote:"’",copyright:"\xa9",ellipsis:"…",emDash:"—",laquo:"\xab",leftArrow:"←",multiplication:"\xd7",notEqual:"≠",oneHalf:"\xbd",oneQuarter:"\xbc",openDoubleQuote:"“",openSingleQuote:"‘",plusMinus:"\xb1",raquo:"\xbb",registeredTrademark:"\xae",rightArrow:"→",servicemark:"℠",superscriptThree:"\xb3",superscriptTwo:"\xb2",threeQuarters:"\xbe",trademark:"™"}),addInputRules(){let e=[];return!1!==this.options.emDash&&e.push(i(this.options.emDash)),!1!==this.options.ellipsis&&e.push(o(this.options.ellipsis)),!1!==this.options.openDoubleQuote&&e.push(s(this.options.openDoubleQuote)),!1!==this.options.closeDoubleQuote&&e.push(a(this.options.closeDoubleQuote)),!1!==this.options.openSingleQuote&&e.push(l(this.options.openSingleQuote)),!1!==this.options.closeSingleQuote&&e.push(u(this.options.closeSingleQuote)),!1!==this.options.leftArrow&&e.push(c(this.options.leftArrow)),!1!==this.options.rightArrow&&e.push(d(this.options.rightArrow)),!1!==this.options.copyright&&e.push(h(this.options.copyright)),!1!==this.options.trademark&&e.push(f(this.options.trademark)),!1!==this.options.servicemark&&e.push(p(this.options.servicemark)),!1!==this.options.registeredTrademark&&e.push(m(this.options.registeredTrademark)),!1!==this.options.oneHalf&&e.push(g(this.options.oneHalf)),!1!==this.options.plusMinus&&e.push(b(this.options.plusMinus)),!1!==this.options.notEqual&&e.push(v(this.options.notEqual)),!1!==this.options.laquo&&e.push(y(this.options.laquo)),!1!==this.options.raquo&&e.push(x(this.options.raquo)),!1!==this.options.multiplication&&e.push(k(this.options.multiplication)),!1!==this.options.superscriptTwo&&e.push(w(this.options.superscriptTwo)),!1!==this.options.superscriptThree&&e.push(C(this.options.superscriptThree)),!1!==this.options.oneQuarter&&e.push(_(this.options.oneQuarter)),!1!==this.options.threeQuarters&&e.push(A(this.options.threeQuarters)),e}})},39475:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(37243);let i=r.vc.create({name:"underline",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("underline")&&{}}],renderHTML({HTMLAttributes:e}){return["u",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}})},13635:function(e,t,n){"use strict";n.d(t,{NM:function(){return tg},kg:function(){return tr},AH:function(){return tb},T5:function(){return tx},fW:function(){return tC},jE:function(){return tf}});var r,i,o,s,a,l,u,c,d=n(37243),h=n(27191);function f(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function p(e){var t=f(e).Element;return e instanceof t||e instanceof Element}function m(e){var t=f(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function g(e){if("undefined"==typeof ShadowRoot)return!1;var t=f(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var b=Math.max,v=Math.min,y=Math.round;function x(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function k(){return!/^((?!chrome|android).)*safari/i.test(x())}function w(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&m(e)&&(i=e.offsetWidth>0&&y(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&y(r.height)/e.offsetHeight||1);
vendor: 16,076 bytes, line 4
4var s=(p(e)?f(e):window).visualViewport,a=!k()&&n,l=(r.left+(a&&s?s.offsetLeft:0))/i,u=(r.top+(a&&s?s.offsetTop:0))/o,c=r.width/i,d=r.height/o;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l,x:l,y:u}}function C(e){var t=f(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function _(e){return e?(e.nodeName||"").toLowerCase():null}function A(e){return((p(e)?e.ownerDocument:e.document)||window.document).documentElement}function M(e){return w(A(e)).left+C(e).scrollLeft}function S(e){return f(e).getComputedStyle(e)}function E(e){var t=S(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function T(e){var t=w(e),n=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-r)&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function D(e){return"html"===_(e)?e:e.assignedSlot||e.parentNode||(g(e)?e.host:null)||A(e)}function L(e,t){void 0===t&&(t=[]);var n,r=function e(t){return["html","body","#document"].indexOf(_(t))>=0?t.ownerDocument.body:m(t)&&E(t)?t:e(D(t))}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=f(r),s=i?[o].concat(o.visualViewport||[],E(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(L(D(s)))}function O(e){return m(e)&&"fixed"!==S(e).position?e.offsetParent:null}function R(e){for(var t=f(e),n=O(e);n&&["table","td","th"].indexOf(_(n))>=0&&"static"===S(n).position;)n=O(n);return n&&("html"===_(n)||"body"===_(n)&&"static"===S(n).position)?t:n||function(e){var t=/firefox/i.test(x());if(/Trident/i.test(x())&&m(e)&&"fixed"===S(e).position)return null;var n=D(e);for(g(n)&&(n=n.host);m(n)&&0>["html","body"].indexOf(_(n));){var r=S(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var F="bottom",z="right",I="left",B="auto",j=["top",F,z,I],N="start",P="viewport",H="popper",W=j.reduce(function(e,t){return e.concat([t+"-"+N,t+"-end"])},[]),$=[].concat(j,[B]).reduce(function(e,t){return e.concat([t,t+"-"+N,t+"-end"])},[]),Z=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],q={placement:"bottom",modifiers:[],strategy:"absolute"};function U(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}var V={passive:!0};function Y(e){return e.split("-")[0]}function G(e){return e.split("-")[1]}function J(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function X(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?Y(i):null,s=i?G(i):null,a=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case"top":t={x:a,y:n.y-r.height};break;case F:t={x:a,y:n.y+n.height};break;case z:t={x:n.x+n.width,y:l};break;case I:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=o?J(o):null;if(null!=u){var c="y"===u?"height":"width";switch(s){case N:t[u]=t[u]-(n[c]/2-r[c]/2);break;case"end":t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}var K={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Q(e){var t,n,r,i,o,s,a,l=e.popper,u=e.popperRect,c=e.placement,d=e.variation,h=e.offsets,p=e.position,m=e.gpuAcceleration,g=e.adaptive,b=e.roundOffsets,v=e.isFixed,x=h.x,k=void 0===x?0:x,w=h.y,C=void 0===w?0:w,_="function"==typeof b?b({x:k,y:C}):{x:k,y:C};k=_.x,C=_.y;var M=h.hasOwnProperty("x"),E=h.hasOwnProperty("y"),T=I,D="top",L=window;if(g){var O=R(l),B="clientHeight",j="clientWidth";O===f(l)&&"static"!==S(O=A(l)).position&&"absolute"===p&&(B="scrollHeight",j="scrollWidth"),("top"===c||(c===I||c===z)&&"end"===d)&&(D=F,C-=(v&&O===L&&L.visualViewport?L.visualViewport.height:O[B])-u.height,C*=m?1:-1),(c===I||("top"===c||c===F)&&"end"===d)&&(T=z,k-=(v&&O===L&&L.visualViewport?L.visualViewport.width:O[j])-u.width,k*=m?1:-1)}var N=Object.assign({position:p},g&&K),P=!0===b?(t={x:k,y:C},n=f(l),r=t.x,i=t.y,{x:y(r*(o=n.devicePixelRatio||1))/o||0,y:y(i*o)/o||0}):{x:k,y:C};return(k=P.x,C=P.y,m)?Object.assign({},N,((a={})[D]=E?"0":"",a[T]=M?"0":"",a.transform=1>=(L.devicePixelRatio||1)?"translate("+k+"px, "+C+"px)":"translate3d("+k+"px, "+C+"px, 0)",a)):Object.assign({},N,((s={})[D]=E?C+"px":"",s[T]=M?k+"px":"",s.transform="",s))}var ee={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];m(i)&&_(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});m(r)&&_(r)&&(Object.assign(r.style,o),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},et={left:"right",right:"left",bottom:"top",top:"bottom"};function en(e){return e.replace(/left|right|bottom|top/g,function(e){return et[e]})}var er={start:"end",end:"start"};function ei(e){return e.replace(/start|end/g,function(e){return er[e]})}function eo(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&g(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function es(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ea(e,t,n){var r,i,o,s,a,l,u,c,d,h;return t===P?es(function(e,t){var n=f(e),r=A(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;var u=k();(u||!u&&"fixed"===t)&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a+M(e),y:l}}(e,n)):p(t)?((r=w(t,!1,"fixed"===n)).top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r):es((i=A(e),s=A(i),a=C(i),l=null==(o=i.ownerDocument)?void 0:o.body,u=b(s.scrollWidth,s.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),c=b(s.scrollHeight,s.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),d=-a.scrollLeft+M(i),h=-a.scrollTop,"rtl"===S(l||s).direction&&(d+=b(s.clientWidth,l?l.clientWidth:0)-u),{width:u,height:c,x:d,y:h}))}function el(){return{top:0,right:0,bottom:0,left:0}}function eu(e){return Object.assign({},el(),e)}function ec(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function ed(e,t){void 0===t&&(t={});var n,r,i,o,s,a,l,u,c=t,d=c.placement,h=void 0===d?e.placement:d,f=c.strategy,g=void 0===f?e.strategy:f,y=c.boundary,x=c.rootBoundary,k=c.elementContext,C=void 0===k?H:k,M=c.altBoundary,E=c.padding,T=void 0===E?0:E,O=eu("number"!=typeof T?T:ec(T,j)),I=e.rects.popper,B=e.elements[void 0!==M&&M?C===H?"reference":H:C],N=(n=p(B)?B:B.contextElement||A(e.elements.popper),r=void 0===y?"clippingParents":y,i=void 0===x?P:x,l=(a=[].concat("clippingParents"===r?(o=L(D(n)),p(s=["absolute","fixed"].indexOf(S(n).position)>=0&&m(n)?R(n):n)?o.filter(function(e){return p(e)&&eo(e,s)&&"body"!==_(e)}):[]):[].concat(r),[i]))[0],(u=a.reduce(function(e,t){var r=ea(n,t,g);return e.top=b(r.top,e.top),e.right=v(r.right,e.right),e.bottom=v(r.bottom,e.bottom),e.left=b(r.left,e.left),e},ea(n,l,g))).width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u),W=w(e.elements.reference),$=X({reference:W,element:I,strategy:"absolute",placement:h}),Z=es(Object.assign({},I,$)),q=C===H?Z:W,U={top:N.top-q.top+O.top,bottom:q.bottom-N.bottom+O.bottom,left:N.left-q.left+O.left,right:q.right-N.right+O.right},V=e.modifiersData.offset;if(C===H&&V){var Y=V[h];Object.keys(U).forEach(function(e){var t=[z,F].indexOf(e)>=0?1:-1,n=["top",F].indexOf(e)>=0?"y":"x";U[e]+=Y[n]*t})}return U}function eh(e,t,n){return b(e,v(t,n))}function ef(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ep(e){return["top",z,F,I].some(function(t){return e[t]>=0})}var em=(o=void 0===(i=(r={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,s=r.resize,a=void 0===s||s,l=f(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(e){e.addEventListener("scroll",n.update,V)}),a&&l.addEventListener("resize",n.update,V),function(){o&&u.forEach(function(e){e.removeEventListener("scroll",n.update,V)}),a&&l.removeEventListener("resize",n.update,V)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=X({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=n.adaptive,o=n.roundOffsets,s=void 0===o||o,a={placement:Y(t.placement),variation:G(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===r||r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Q(Object.assign({},a,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===i||i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Q(Object.assign({},a,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},ee,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,s=$.reduce(function(e,n){var r,i,s,a,l,u;return e[n]=(r=t.rects,s=[I,"top"].indexOf(i=Y(n))>=0?-1:1,l=(a="function"==typeof o?o(Object.assign({},r,{placement:n})):o)[0],u=a[1],l=l||0,u=(u||0)*s,[I,z].indexOf(i)>=0?{x:u,y:l}:{x:l,y:u}),e},{}),a=s[t.placement],l=a.x,u=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,f=n.flipVariations,p=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,b=Y(g)===g,v=l||(b||!p?[en(g)]:function(e){if(Y(e)===B)return[];var t=en(e);return[ei(e),t,ei(t)]}(g)),y=[g].concat(v).reduce(function(e,n){var r,i,o,s,a,l,h,f,g,b,v,y;return e.concat(Y(n)===B?(i=(r={placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:m}).placement,o=r.boundary,s=r.rootBoundary,a=r.padding,l=r.flipVariations,f=void 0===(h=r.allowedAutoPlacements)?$:h,0===(v=(b=(g=G(i))?l?W:W.filter(function(e){return G(e)===g}):j).filter(function(e){return f.indexOf(e)>=0})).length&&(v=b),Object.keys(y=v.reduce(function(e,n){return e[n]=ed(t,{placement:n,boundary:o,rootBoundary:s,padding:a})[Y(n)],e},{})).sort(function(e,t){return y[e]-y[t]})):n)},[]),x=t.rects.reference,k=t.rects.popper,w=new Map,C=!0,_=y[0],A=0;A<y.length;A++){var M=y[A],S=Y(M),E=G(M)===N,T=["top",F].indexOf(S)>=0,D=T?"width":"height",L=ed(t,{placement:M,boundary:c,rootBoundary:d,altBoundary:h,padding:u}),O=T?E?z:I:E?F:"top";x[D]>k[D]&&(O=en(O));var R=en(O),P=[];if(o&&P.push(L[S]<=0),a&&P.push(L[O]<=0,L[R]<=0),P.every(function(e){return e})){_=M,C=!1;break}w.set(M,P)}if(C)for(var H=p?3:1,Z=function(e){var t=y.find(function(t){var n=w.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return _=t,"break"},q=H;q>0&&"break"!==Z(q);q--);t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=n.altAxis,s=n.boundary,a=n.rootBoundary,l=n.altBoundary,u=n.padding,c=n.tether,d=void 0===c||c,h=n.tetherOffset,f=void 0===h?0:h,p=ed(t,{boundary:s,rootBoundary:a,padding:u,altBoundary:l}),m=Y(t.placement),g=G(t.placement),y=!g,x=J(m),k="x"===x?"y":"x",w=t.modifiersData.popperOffsets,C=t.rects.reference,_=t.rects.popper,A="function"==typeof f?f(Object.assign({},t.rects,{placement:t.placement})):f,M="number"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(w){if(void 0===i||i){var D,L="y"===x?"top":I,O="y"===x?F:z,B="y"===x?"height":"width",j=w[x],P=j+p[L],H=j-p[O],W=d?-_[B]/2:0,$=g===N?C[B]:_[B],Z=g===N?-_[B]:-C[B],q=t.elements.arrow,U=d&&q?T(q):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:el(),X=V[L],K=V[O],Q=eh(0,C[B],U[B]),ee=y?C[B]/2-W-Q-X-M.mainAxis:$-Q-X-M.mainAxis,et=y?-C[B]/2+W+Q+K+M.mainAxis:Z+Q+K+M.mainAxis,en=t.elements.arrow&&R(t.elements.arrow),er=en?"y"===x?en.clientTop||0:en.clientLeft||0:0,ei=null!=(D=null==S?void 0:S[x])?D:0,eo=eh(d?v(P,j+ee-ei-er):P,j,d?b(H,j+et-ei):H);w[x]=eo,E[x]=eo-j}if(void 0!==o&&o){var es,ea,eu="x"===x?"top":I,ec="x"===x?F:z,ef=w[k],ep="y"===k?"height":"width",em=ef+p[eu],eg=ef-p[ec],eb=-1!==["top",I].indexOf(m),ev=null!=(ea=null==S?void 0:S[k])?ea:0,ey=eb?em:ef-C[ep]-_[ep]-ev+M.altAxis,ex=eb?ef+C[ep]+_[ep]-ev-M.altAxis:eg,ek=d&&eb?(es=eh(ey,ef,ex))>ex?ex:es:eh(d?ey:em,ef,d?ex:eg);w[k]=ek,E[k]=ek-ef}t.modifiersData[r]=E}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n,r=e.state,i=e.name,o=e.options,s=r.elements.arrow,a=r.modifiersData.popperOffsets,l=Y(r.placement),u=J(l),c=[I,z].indexOf(l)>=0?"height":"width";if(s&&a){var d=eu("number"!=typeof(t="function"==typeof(t=o.padding)?t(Object.assign({},r.rects,{placement:r.placement})):t)?t:ec(t,j)),h=T(s),f="y"===u?"top":I,p="y"===u?F:z,m=r.rects.reference[c]+r.rects.reference[u]-a[u]-r.rects.popper[c],g=a[u]-r.rects.reference[u],b=R(s),v=b?"y"===u?b.clientHeight||0:b.clientWidth||0:0,y=d[f],x=v-h[c]-d[p],k=v/2-h[c]/2+(m/2-g/2),w=eh(y,k,x);r.modifiersData[i]=((n={})[u]=w,n.centerOffset=w-k,n)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&eo(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=ed(t,{elementContext:"reference"}),a=ed(t,{altBoundary:!0}),l=ef(s,r),u=ef(a,i,o),c=ep(l),d=ep(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}).defaultModifiers)?[]:i,a=void 0===(s=r.defaultOptions)?q:s,function(e,t,n){void 0===n&&(n=a);var r,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},q,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],u=!1,c={state:s,setOptions:function(n){var r,i,u,h,f,m="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},a,s.options,m),s.scrollParents={reference:p(e)?L(e):e.contextElement?L(e.contextElement):[],popper:L(t)};var g=(i=Object.keys(r=[].concat(o,s.options.modifiers).reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{})).map(function(e){return r[e]}
4),u=new Map,h=new Set,f=[],i.forEach(function(e){u.set(e.name,e)}),i.forEach(function(e){h.has(e.name)||function e(t){h.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!h.has(t)){var n=u.get(t);n&&e(n)}}),f.push(t)}(e)}),Z.reduce(function(e,t){return e.concat(f.filter(function(e){return e.phase===t}))},[]));return s.orderedModifiers=g.filter(function(e){return e.enabled}),s.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=e.effect;if("function"==typeof r){var i=r({state:s,name:t,instance:c,options:void 0===n?{}:n});l.push(i||function(){})}}),c.update()},forceUpdate:function(){if(!u){var e,t,n,r,i,o,a,l,d,h,p,g,b=s.elements,v=b.reference,x=b.popper;if(U(v,x)){s.rects={reference:(t=R(x),n="fixed"===s.options.strategy,r=m(t),l=m(t)&&(o=y((i=t.getBoundingClientRect()).width)/t.offsetWidth||1,a=y(i.height)/t.offsetHeight||1,1!==o||1!==a),d=A(t),h=w(v,l,n),p={scrollLeft:0,scrollTop:0},g={x:0,y:0},(r||!r&&!n)&&(("body"!==_(t)||E(d))&&(p=(e=t)!==f(e)&&m(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:C(e)),m(t)?(g=w(t,!0),g.x+=t.clientLeft,g.y+=t.clientTop):d&&(g.x=M(d))),{x:h.left+p.scrollLeft-g.x,y:h.top+p.scrollTop-g.y,width:h.width,height:h.height}),popper:T(x)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var k=0;k<s.orderedModifiers.length;k++){if(!0===s.reset){s.reset=!1,k=-1;continue}var S=s.orderedModifiers[k],D=S.fn,L=S.options,O=void 0===L?{}:L,F=S.name;"function"==typeof D&&(s=D({state:s,options:O,name:F,instance:c})||s)}}}},update:(r=function(){return new Promise(function(e){c.forceUpdate(),e(s)})},function(){return i||(i=new Promise(function(e){Promise.resolve().then(function(){i=void 0,e(r())})})),i}),destroy:function(){d(),u=!0}};if(!U(e,t))return c;function d(){l.forEach(function(e){return e()}),l=[]}return c.setOptions(n).then(function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)}),c}),eg="tippy-content",eb="tippy-arrow",ev="tippy-svg-arrow",ey={passive:!0,capture:!0},ex=function(){return document.body};function ek(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function ew(e,t){var n=({}).toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function eC(e,t){return"function"==typeof e?e.apply(void 0,t):e}function e_(e,t){var n;return 0===t?e:function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function eA(e){return[].concat(e)}function eM(e,t){-1===e.indexOf(t)&&e.push(t)}function eS(e){return[].slice.call(e)}function eE(e){return Object.keys(e).reduce(function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t},{})}function eT(){return document.createElement("div")}function eD(e){return["Element","Fragment"].some(function(t){return ew(e,t)})}function eL(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function eO(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function eR(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[r](t,n)})}function eF(e,t){for(var n,r=t;r;){if(e.contains(r))return!0;r=null==r.getRootNode?void 0:null==(n=r.getRootNode())?void 0:n.host}return!1}var ez={isTouch:!1},eI=0;function eB(){!ez.isTouch&&(ez.isTouch=!0,window.performance&&document.addEventListener("mousemove",ej))}function ej(){var e=performance.now();e-eI<20&&(ez.isTouch=!1,document.removeEventListener("mousemove",ej)),eI=e}function eN(){var e=document.activeElement;if(e&&e._tippy&&e._tippy.reference===e){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var eP=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,eH=Object.assign({appendTo:ex,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),eW=Object.keys(eH);function e$(e){var t=(e.plugins||[]).reduce(function(t,n){var r,i=n.name,o=n.defaultValue;return i&&(t[i]=void 0!==e[i]?e[i]:null!=(r=eH[i])?r:o),t},{});return Object.assign({},e,t)}function eZ(e,t){var n,r=Object.assign({},t,{content:eC(t.content,[e])},t.ignoreAttributes?{}:((n=t.plugins)?Object.keys(e$(Object.assign({},eH,{plugins:n}))):eW).reduce(function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t},{}));return r.aria=Object.assign({},eH.aria,r.aria),r.aria={expanded:"auto"===r.aria.expanded?t.interactive:r.aria.expanded,content:"auto"===r.aria.content?t.interactive?null:"describedby":r.aria.content},r}function eq(e,t){e.innerHTML=t}function eU(e){var t=eT();return!0===e?t.className=eb:(t.className=ev,eD(e)?t.appendChild(e):eq(t,e)),t}function eV(e,t){eD(t.content)?(eq(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?eq(e,t.content):e.textContent=t.content)}function eY(e){var t=e.firstElementChild,n=eS(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(eg)}),arrow:n.find(function(e){return e.classList.contains(eb)||e.classList.contains(ev)}),backdrop:n.find(function(e){return e.classList.contains("tippy-backdrop")})}}function eG(e){var t=eT(),n=eT();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=eT();function i(n,r){var i=eY(t),o=i.box,s=i.content,a=i.arrow;r.theme?o.setAttribute("data-theme",r.theme):o.removeAttribute("data-theme"),"string"==typeof r.animation?o.setAttribute("data-animation",r.animation):o.removeAttribute("data-animation"),r.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?o.setAttribute("role",r.role):o.removeAttribute("role"),(n.content!==r.content||n.allowHTML!==r.allowHTML)&&eV(s,e.props),r.arrow?a?n.arrow!==r.arrow&&(o.removeChild(a),o.appendChild(eU(r.arrow))):o.appendChild(eU(r.arrow)):a&&o.removeChild(a)}return r.className=eg,r.setAttribute("data-state","hidden"),eV(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props),{popper:t,onUpdate:i}}eG.$$tippy=!0;var eJ=1,eX=[],eK=[];function eQ(e,t){void 0===t&&(t={});var n=eH.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",eB,ey),window.addEventListener("blur",eN);var r=Object.assign({},t,{plugins:n}),i=(eD(e)?[e]:ew(e,"NodeList")?eS(e):Array.isArray(e)?e:eS(document.querySelectorAll(e))).reduce(function(e,t){var n=t&&function(e,t){var n,r,i,o,s,a,l,u,c=eZ(e,Object.assign({},eH,e$(eE(t)))),d=!1,h=!1,f=!1,p=!1,m=[],g=e_(q,c.interactiveDebounce),b=eJ++,v=(n=c.plugins).filter(function(e,t){return n.indexOf(e)===t}),y={id:b,reference:e,popper:eT(),popperInstance:null,props:c,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:v,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)},setProps:function(t){if(!y.state.isDestroyed){L("onBeforeUpdate",[y,t]),$();var n=y.props,r=eZ(e,Object.assign({},n,eE(t),{ignoreAttributes:!0}));y.props=r,W(),n.interactiveDebounce!==r.interactiveDebounce&&(F(),g=e_(q,r.interactiveDebounce)),n.triggerTarget&&!r.triggerTarget?eA(n.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):r.triggerTarget&&e.removeAttribute("aria-expanded"),R(),D(),w&&w(n,r),y.popperInstance&&(G(),X().forEac
4h(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})),L("onAfterUpdate",[y,t])}},setContent:function(e){y.setProps({content:e})},show:function(){var t,n,r,i=y.state.isVisible,o=y.state.isDestroyed,s=!y.state.isEnabled,a=ez.isTouch&&!y.props.touch,c=ek(y.props.duration,0,eH.duration);if(!(i||o||s||a||(u||e).hasAttribute("disabled"))&&(L("onShow",[y],!1),!1!==y.props.onShow(y))){if(y.state.isVisible=!0,S()&&(k.style.visibility="visible"),D(),j(),y.state.isMounted||(k.style.transition="none"),S()){var d=eY(k);eL([d.box,d.content],0)}l=function(){var e;if(y.state.isVisible&&!p){if(p=!0,k.offsetHeight,k.style.transition=y.props.moveTransition,S()&&y.props.animation){var t=eY(k),n=t.box,r=t.content;eL([n,r],c),eO([n,r],"visible")}O(),R(),eM(eK,y),null==(e=y.popperInstance)||e.forceUpdate(),L("onMount",[y]),y.props.animation&&S()&&P(c,function(){y.state.isShown=!0,L("onShown",[y])})}},n=y.props.appendTo,r=u||e,(t=y.props.interactive&&n===ex||"parent"===n?r.parentNode:eC(n,[r])).contains(k)||t.appendChild(k),y.state.isMounted=!0,G()}},hide:function(){var e,t=!y.state.isVisible,n=y.state.isDestroyed,r=!y.state.isEnabled,i=ek(y.props.duration,1,eH.duration);if(!t&&!n&&!r&&(L("onHide",[y],!1),!1!==y.props.onHide(y))){if(y.state.isVisible=!1,y.state.isShown=!1,p=!1,d=!1,S()&&(k.style.visibility="hidden"),F(),N(),D(!0),S()){var o=eY(k),s=o.box,a=o.content;y.props.animation&&(eL([s,a],i),eO([s,a],"hidden"))}(O(),R(),y.props.animation)?S()&&(e=y.unmount,P(i,function(){!y.state.isVisible&&k.parentNode&&k.parentNode.contains(k)&&e()})):y.unmount()}},hideWithInteractivity:function(e){E().addEventListener("mousemove",g),eM(eX,g),g(e)},enable:function(){y.state.isEnabled=!0},disable:function(){y.hide(),y.state.isEnabled=!1},unmount:function(){y.state.isVisible&&y.hide(),y.state.isMounted&&(J(),X().forEach(function(e){e._tippy.unmount()}),k.parentNode&&k.parentNode.removeChild(k),eK=eK.filter(function(e){return e!==y}),y.state.isMounted=!1,L("onHidden",[y]))},destroy:function(){y.state.isDestroyed||(y.clearDelayTimeouts(),y.unmount(),$(),delete e._tippy,y.state.isDestroyed=!0,L("onDestroy",[y]))}};if(!c.render)return y;var x=c.render(y),k=x.popper,w=x.onUpdate;k.setAttribute("data-tippy-root",""),k.id="tippy-"+y.id,y.popper=k,e._tippy=y,k._tippy=y;var C=v.map(function(e){return e.fn(y)}),_=e.hasAttribute("aria-expanded");return W(),R(),D(),L("onCreate",[y]),c.showOnCreate&&K(),k.addEventListener("mouseenter",function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()}),k.addEventListener("mouseleave",function(){y.props.interactive&&y.props.trigger.indexOf("mouseenter")>=0&&E().addEventListener("mousemove",g)}),y;function A(){var e=y.props.touch;return Array.isArray(e)?e:[e,0]}function M(){return"hold"===A()[0]}function S(){var e;return!!(null!=(e=y.props.render)&&e.$$tippy)}function E(){var t,n,r=(u||e).parentNode;return r&&null!=(n=eA(r)[0])&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function T(e){return y.state.isMounted&&!y.state.isVisible||ez.isTouch||s&&"focus"===s.type?0:ek(y.props.delay,e?0:1,eH.delay)}function D(e){void 0===e&&(e=!1),k.style.pointerEvents=y.props.interactive&&!e?"":"none",k.style.zIndex=""+y.props.zIndex}function L(e,t,n){if(void 0===n&&(n=!0),C.forEach(function(n){n[e]&&n[e].apply(n,t)}),n){var r;(r=y.props)[e].apply(r,t)}}function O(){var t=y.props.aria;if(t.content){var n="aria-"+t.content,r=k.id;eA(y.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(n);if(y.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var i=t&&t.replace(r,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}})}}function R(){!_&&y.props.aria.expanded&&eA(y.props.triggerTarget||e).forEach(function(t){y.props.interactive?t.setAttribute("aria-expanded",y.state.isVisible&&t===(u||e)?"true":"false"):t.removeAttribute("aria-expanded")})}function F(){E().removeEventListener("mousemove",g),eX=eX.filter(function(e){return e!==g})}function z(t){if(!ez.isTouch||!f&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!(y.props.interactive&&eF(k,n))){if(eA(y.props.triggerTarget||e).some(function(e){return eF(e,n)})){if(ez.isTouch||y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else L("onClickOutside",[y,t]);!0!==y.props.hideOnClick||(y.clearDelayTimeouts(),y.hide(),h=!0,setTimeout(function(){h=!1}),y.state.isMounted||N())}}}function I(){f=!0}function B(){f=!1}function j(){var e=E();e.addEventListener("mousedown",z,!0),e.addEventListener("touchend",z,ey),e.addEventListener("touchstart",B,ey),e.addEventListener("touchmove",I,ey)}function N(){var e=E();e.removeEventListener("mousedown",z,!0),e.removeEventListener("touchend",z,ey),e.removeEventListener("touchstart",B,ey),e.removeEventListener("touchmove",I,ey)}function P(e,t){var n=eY(k).box;function r(e){e.target===n&&(eR(n,"remove",r),t())}if(0===e)return t();eR(n,"remove",a),eR(n,"add",r),a=r}function H(t,n,r){void 0===r&&(r=!1),eA(y.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,n,r),m.push({node:e,eventType:t,handler:n,options:r})})}function W(){M()&&(H("touchstart",Z,{passive:!0}),H("touchend",U,{passive:!0}
4)),y.props.trigger.split(/\s+/).filter(Boolean).forEach(function(e){if("manual"!==e)switch(H(e,Z),e){case"mouseenter":H("mouseleave",U);break;case"focus":H(eP?"focusout":"blur",V);break;case"focusin":H("focusout",V)}})}function $(){m.forEach(function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)}),m=[]}function Z(e){var t,n=!1;if(!(!y.state.isEnabled||Y(e))&&!h){var r=(null==(t=s)?void 0:t.type)==="focus";s=e,u=e.currentTarget,R(),!y.state.isVisible&&ew(e,"MouseEvent")&&eX.forEach(function(t){return t(e)}),"click"===e.type&&(0>y.props.trigger.indexOf("mouseenter")||d)&&!1!==y.props.hideOnClick&&y.state.isVisible?n=!0:K(e),"click"===e.type&&(d=!n),n&&!r&&Q(e)}}function q(t){var n,r,i,o=t.target,s=(u||e).contains(o)||k.contains(o);("mousemove"!==t.type||!s)&&(n=X().concat(k).map(function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:c}:null}).filter(Boolean),r=t.clientX,i=t.clientY,n.every(function(e){var t=e.popperRect,n=e.popperState,o=e.props.interactiveBorder,s=n.placement.split("-")[0],a=n.modifiersData.offset;if(!a)return!0;var l="bottom"===s?a.top.y:0,u="top"===s?a.bottom.y:0,c="right"===s?a.left.x:0,d="left"===s?a.right.x:0,h=t.top-i+l>o,f=i-t.bottom-u>o,p=t.left-r+c>o,m=r-t.right-d>o;return h||f||p||m})&&(F(),Q(t)))}function U(e){if(!(Y(e)||y.props.trigger.indexOf("click")>=0&&d)){if(y.props.interactive){y.hideWithInteractivity(e);return}Q(e)}}function V(t){0>y.props.trigger.indexOf("focusin")&&t.target!==(u||e)||y.props.interactive&&t.relatedTarget&&k.contains(t.relatedTarget)||Q(t)}function Y(e){return!!ez.isTouch&&M()!==e.type.indexOf("touch")>=0}function G(){J();var t=y.props,n=t.popperOptions,r=t.placement,i=t.offset,o=t.getReferenceClientRect,s=t.moveTransition,a=S()?eY(k).arrow:null,c=o?{getBoundingClientRect:o,contextElement:o.contextElement||u||e}:e,d=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(S()){var n=eY(k).box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)}),t.attributes.popper={}}}}];S()&&a&&d.push({name:"arrow",options:{element:a,padding:3}}),d.push.apply(d,(null==n?void 0:n.modifiers)||[]),y.popperInstance=em(c,k,Object.assign({},n,{placement:r,onFirstUpdate:l,modifiers:d}))}function J(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function X(){return eS(k.querySelectorAll("[data-tippy-root]"))}function K(e){y.clearDelayTimeouts(),e&&L("onTrigger",[y,e]),j();var t=T(!0),n=A(),i=n[0],o=n[1];ez.isTouch&&"hold"===i&&o&&(t=o),t?r=setTimeout(function(){y.show()},t):y.show()}function Q(e){if(y.clearDelayTimeouts(),L("onUntrigger",[y,e]),!y.state.isVisible){N();return}if(!(y.props.trigger.indexOf("mouseenter")>=0&&y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0)||!d){var t=T(!1);t?i=setTimeout(function(){y.state.isVisible&&y.hide()},t):o=requestAnimationFrame(function(){y.hide()})}}}(t,r);return n&&e.push(n),e},[]);return eD(e)?i[0]:i}eQ.defaultProps=eH,eQ.setDefaultProps=function(e){Object.keys(e).forEach(function(t){eH[t]=e[t]})},eQ.currentInput=ez,Object.assign({},ee,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),eQ.setDefaultProps({render:eG});class e0{constructor({editor:e,element:t,view:n,tippyOptions:r={},updateDelay:i=250,shouldShow:o}){this.preventHide=!1,this.shouldShow=({view:e,state:t,from:n,to:r})=>{let{doc:i,selection:o}=t,{empty:s}=o,a=!i.textBetween(n,r).length&&(0,d.xh)(t.selection),l=this.element.contains(document.activeElement);return!!(e.hasFocus()||l)&&!s&&!a&&!!this.editor.isEditable},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:e})=>{var t;if(this.preventHide){this.preventHide=!1;return}(null==e?void 0:e.relatedTarget)&&(null===(t=this.element.parentNode)||void 0===t?void 0:t.contains(e.relatedTarget))||(null==e?void 0:e.relatedTarget)===this.editor.view.dom||this.hide()},this.tippyBlurHandler=e=>{this.blurHandler({event:e})},this.handleDebouncedUpdate=(e,t)=>
4{let n=!(null==t?void 0:t.selection.eq(e.state.selection)),r=!(null==t?void 0:t.doc.eq(e.state.doc));(n||r)&&(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(e,n,r,t)},this.updateDelay))},this.updateHandler=(e,t,n,r)=>{var i,o,s;let{state:a,composing:l}=e,{selection:u}=a;if(l||!t&&!n)return;this.createTooltip();let{ranges:c}=u,h=Math.min(...c.map(e=>e.$from.pos)),f=Math.max(...c.map(e=>e.$to.pos));if(!(null===(i=this.shouldShow)||void 0===i?void 0:i.call(this,{editor:this.editor,element:this.element,view:e,state:a,oldState:r,from:h,to:f}))){this.hide();return}null===(o=this.tippy)||void 0===o||o.setProps({getReferenceClientRect:(null===(s=this.tippyOptions)||void 0===s?void 0:s.getReferenceClientRect)||(()=>{if((0,d.EG)(a.selection)){let t=e.nodeDOM(h);if(t){let e=t.dataset.nodeViewWrapper?t:t.querySelector("[data-node-view-wrapper]");if(e&&(t=e.firstChild),t)return t.getBoundingClientRect()}}return(0,d.pr)(e,h,f)})}),this.show()},this.editor=e,this.element=t,this.view=n,this.updateDelay=i,o&&(this.shouldShow=o),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=r,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){let{element:e}=this.editor.options,t=!!e.parentElement;!this.tippy&&t&&(this.tippy=eQ(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){let{state:n}=e,r=n.selection.from!==n.selection.to;if(this.updateDelay>0&&r){this.handleDebouncedUpdate(e,t);return}let i=!(null==t?void 0:t.selection.eq(e.state.selection)),o=!(null==t?void 0:t.doc.eq(e.state.doc));this.updateHandler(e,i,o,t)}show(){var e;null===(e=this.tippy)||void 0===e||e.show()}hide(){var e;null===(e=this.tippy)||void 0===e||e.hide()}destroy(){var e,t;(null===(e=this.tippy)||void 0===e?void 0:e.popper.firstChild)&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),null===(t=this.tippy)||void 0===t||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}let e1=e=>new h.Sy({key:"string"==typeof e.pluginKey?new h.H$(e.pluginKey):e.pluginKey,view:t=>new e0({view:t,...e})});d.hj.create({name:"bubbleMenu",addOptions:()=>({element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}),addProseMirrorPlugins(){return this.options.element?[e1({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});var e2=n(2784),e3=n(28316);class e5{getTextContent(e){return(0,d.Q)(e,{textSerializers:(0,d.Is)(this.editor.schema)})}constructor({editor:e,element:t,view:n,tippyOptions:r={},shouldShow:i}){this.preventHide=!1,this.shouldShow=({view:e,state:t})=>{let{selection:n}=t,{$anchor:r,empty:i}=n,o=1===r.depth,s=r.parent.isTextblock&&!r.parent.type.spec.code&&!r.parent.textContent&&0===r.parent.childCount&&!this.getTextContent(r.parent);return!!e.hasFocus()&&!!i&&!!o&&!!s&&!!this.editor.isEditable},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:e})=>{var t;if(this.preventHide){this.preventHide=!1;return}(null==e?void 0:e.relatedTarget)&&(null===(t=this.element.parentNode)||void 0===t?void 0:t.contains(e.relatedTarget))||(null==e?void 0:e.relatedTarget)===this.editor.view.dom||this.hide()},this.tippyBlurHandler=e=>{this.blurHandler({event:e})},this.editor=e,this.element=t,this.view=n,i&&(this.shouldShow=i),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=r,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){let{element:e}=this.editor.options,t=!!e.parentElement;!this.tippy&&t&&(this.tippy=eQ(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){var n,r,i;let{state:o}=e,{doc:s,selection:a}=o,{from:l,to:u}=a;if(!(t&&t.doc.eq(s)&&t.selection.eq(a))){if(this.createTooltip(),!(null===(n=this.shouldShow)||void 0===n?void 0:n.call(this,{editor:this.editor,view:e,state:o,oldState:t}))){this.hide();return}null===(r=this.tippy)||void 0===r||r.setProps({getReferenceClientRect:(null===(i=this.tippyOptions)||void 0===i?void 0:i.getReferenceClientRect)||(()=>(0,d.pr)(e,l,u))}),this.show()}}show(){var e;null===(e=this.tippy)||void 0===e||e.show()}hide(){var e;null===(e=this.tippy)||void 0===e||e.hide()}destroy(){var e,t;(null===(e=this.tippy)||void 0===e?void 0:e.popper.firstChild)&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),null===(t=this.tippy)||void 0===t||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}let e6=e=>
4new h.Sy({key:"string"==typeof e.pluginKey?new h.H$(e.pluginKey):e.pluginKey,view:t=>new e5({view:t,...e})});d.hj.create({name:"floatingMenu",addOptions:()=>({element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}),addProseMirrorPlugins(){return this.options.element?[e6({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}});var e8={exports:{}},e4={};e8.exports=function(){if(u)return e4;u=1;var e="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},t=e2.useState,n=e2.useEffect,r=e2.useLayoutEffect,i=e2.useDebugValue;function o(t){var n=t.getSnapshot;t=t.value;try{var r=n();return!e(t,r)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,s){var a=s(),l=t({inst:{value:a,getSnapshot:s}}),u=l[0].inst,c=l[1];return r(function(){u.value=a,u.getSnapshot=s,o(u)&&c({inst:u})},[e,a,s]),n(function(){return o(u)&&c({inst:u}),e(function(){o(u)&&c({inst:u})})},[e]),i(a),a};return e4.useSyncExternalStore=void 0!==e2.useSyncExternalStore?e2.useSyncExternalStore:s,e4}();var e7=e8.exports;let e9=(...e)=>t=>{e.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})},te=({contentComponent:e})=>{let t=e7.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getServerSnapshot);return e2.createElement(e2.Fragment,null,Object.values(t))};class tt extends e2.Component{constructor(e){var t;super(e),this.editorContentRef=e2.createRef(),this.initialized=!1,this.state={hasContentComponentInitialized:!!(null===(t=e.editor)||void 0===t?void 0:t.contentComponent)}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){let e=this.props.editor;if(e&&!e.isDestroyed&&e.options.element){if(e.contentComponent)return;let t=this.editorContentRef.current;t.append(...e.options.element.childNodes),e.setOptions({element:t}),e.contentComponent=function(){let e=new Set,t={};return{subscribe:t=>(e.add(t),()=>{e.delete(t)}),getSnapshot:()=>t,getServerSnapshot:()=>t,setRenderer(n,r){t={...t,[n]:e3.createPortal(r.reactElement,r.element,n)},e.forEach(e=>e())},removeRenderer(n){let r={...t};delete r[n],t=r,e.forEach(e=>e())}}}(),this.state.hasContentComponentInitialized||(this.unsubscribeToContentComponent=e.contentComponent.subscribe(()=>{this.setState(e=>e.hasContentComponentInitialized?e:{hasContentComponentInitialized:!0}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent()})),e.createNodeViews(),this.initialized=!0}}componentWillUnmount(){let e=this.props.editor;if(!e||(this.initialized=!1,e.isDestroyed||e.view.setProps({nodeViews:{}}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent(),e.contentComponent=null,!e.options.element.firstChild))return;let t=document.createElement("div");t.append(...e.options.element.childNodes),e.setOptions({element:t})}render(){let{editor:e,innerRef:t,...n}=this.props;return e2.createElement(e2.Fragment,null,e2.createElement("div",{ref:e9(t,this.editorContentRef),...n}),(null==e?void 0:e.contentComponent)&&e2.createElement(te,{contentComponent:e.contentComponent}))}}let tn=(0,e2.forwardRef)((e,t)=>{let n=e2.useMemo(()=>Math.floor(4294967295*Math.random()).toString(),[e.editor]);return e2.createElement(tt,{key:n,innerRef:t,...e})}),tr=e2.memo(tn);var ti=(l=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(i of t.entries())if(!n.has(i[0]))return!1;for(i of t.entries())if(!e(i[1],n.get(i[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(i of t.entries())if(!n.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(t[i]!==n[i])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){var r,i,o,s=o[i];if(("_owner"!==s||!t.$$typeof)&&!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n}).__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l,to={exports:{}},ts={};to.exports=function(){if(c)return ts;c=1;var e="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},t=e7.useSyncExternalStore,n=e2.useRef,r=e2.useEffect,i=e2.useMemo,o=e2.useDebugValue;return ts.useSyncExternalStoreWithSelector=function(s,a,l,u,c){var d=n(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;var f=t(s,(d=i(function(){function t(t){if(!i){if(i=!0,n=t,t=u(t),void 0!==c&&h.hasValue){var o=h.value;if(c(o,t))return r=o}return r=t}if(o=r,e(n,t))return o;var s=u(t);return void 0!==c&&c(o,s)?o:(n=t,r=s)}var n,r,i=!1,o=void 0===l?null:l;return[function(){return t(a())},null===o?void 0:function(){return t(o())}]},[a,l,u,c]))[0],d[1]);return r(function(){h.hasValue=!0,h.value=f},[f]),o(f),f},ts}();var ta=to.exports;let tl="undefined"!=typeof window?e2.useLayoutEffect:e2.useEffect;class tu{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0}
4,this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber||(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber}),this.lastSnapshot}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){let e=()=>{this.transactionNumber+=1,this.subscribers.forEach(e=>e())},t=this.editor;return t.on("transaction",e),()=>{t.off("transaction",e)}}}}let tc="undefined"==typeof window,td=tc||!!("undefined"!=typeof window&&window.next);class th{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(e=>e())}getInitialEditor(){return void 0===this.options.current.immediatelyRender?tc||td?null:this.createEditor():(this.options.current.immediatelyRender,this.options.current.immediatelyRender?this.createEditor():null)}createEditor(){let e={...this.options.current,onBeforeCreate:(...e)=>{var t,n;return null===(n=(t=this.options.current).onBeforeCreate)||void 0===n?void 0:n.call(t,...e)},onBlur:(...e)=>{var t,n;return null===(n=(t=this.options.current).onBlur)||void 0===n?void 0:n.call(t,...e)},onCreate:(...e)=>{var t,n;return null===(n=(t=this.options.current).onCreate)||void 0===n?void 0:n.call(t,...e)},onDestroy:(...e)=>{var t,n;return null===(n=(t=this.options.current).onDestroy)||void 0===n?void 0:n.call(t,...e)},onFocus:(...e)=>{var t,n;return null===(n=(t=this.options.current).onFocus)||void 0===n?void 0:n.call(t,...e)},onSelectionUpdate:(...e)=>{var t,n;return null===(n=(t=this.options.current).onSelectionUpdate)||void 0===n?void 0:n.call(t,...e)},onTransaction:(...e)=>{var t,n;return null===(n=(t=this.options.current).onTransaction)||void 0===n?void 0:n.call(t,...e)},onUpdate:(...e)=>{var t,n;return null===(n=(t=this.options.current).onUpdate)||void 0===n?void 0:n.call(t,...e)},onContentError:(...e)=>{var t,n;return null===(n=(t=this.options.current).onContentError)||void 0===n?void 0:n.call(t,...e)},onDrop:(...e)=>{var t,n;return null===(n=(t=this.options.current).onDrop)||void 0===n?void 0:n.call(t,...e)},onPaste:(...e)=>{var t,n;return null===(n=(t=this.options.current).onPaste)||void 0===n?void 0:n.call(t,...e)}};return new d.ML(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,t){return Object.keys(e).every(n=>!!["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(n)||("extensions"===n&&e.extensions&&t.extensions?e.extensions.length===t.extensions.length&&e.extensions.every((e,n)=>{var r;return e===(null===(r=t.extensions)||void 0===r?void 0:r[n])}):e[n]===t[n]))}onRender(e){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&0===e.length?th.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(e),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(null===this.previousDeps){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((t,n)=>t===e[n]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){let e=this.instanceId,t=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){t&&t.setOptions(this.options.current);return}t&&!t.isDestroyed&&(t.destroy(),this.instanceId===e&&this.setEditor(null))}
4,1)}}function tf(e={},t=[]){let n=(0,e2.useRef)(e);n.current=e;let[r]=(0,e2.useState)(()=>new th(n)),i=e7.useSyncExternalStore(r.subscribe,r.getEditor,r.getServerSnapshot);return(0,e2.useDebugValue)(i),(0,e2.useEffect)(r.onRender(t)),!function(e){var t;let[n]=(0,e2.useState)(()=>new tu(e.editor)),r=ta.useSyncExternalStoreWithSelector(n.subscribe,n.getSnapshot,n.getServerSnapshot,e.selector,null!==(t=e.equalityFn)&&void 0!==t?t:ti);tl(()=>n.watch(e.editor),[e.editor,n]),(0,e2.useDebugValue)(r)}({editor:i,selector:({transactionNumber:t})=>!1===e.shouldRerenderOnTransaction?null:e.immediatelyRender&&0===t?0:t+1}),i}let tp=(0,e2.createContext)({editor:null});tp.Consumer;let tm=()=>(0,e2.useContext)(tp),tg=e=>{let[t,n]=(0,e2.useState)(null),{editor:r}=tm();return(0,e2.useEffect)(()=>{var n;if(!t||(null===(n=e.editor)||void 0===n?void 0:n.isDestroyed)||(null==r?void 0:r.isDestroyed))return;let{pluginKey:i="bubbleMenu",editor:o,tippyOptions:s={},updateDelay:a,shouldShow:l=null}=e,u=o||r;if(!u){console.warn("BubbleMenu component is not rendered inside of an editor component or does not have editor prop.");return}let c=e1({updateDelay:a,editor:u,element:t,pluginKey:i,shouldShow:l,tippyOptions:s});return u.registerPlugin(c),()=>{u.unregisterPlugin(i)}},[e.editor,r,t]),e2.createElement("div",{ref:n,className:e.className,style:{visibility:"hidden"}},e.children)},tb=e=>{let[t,n]=(0,e2.useState)(null),{editor:r}=tm();return(0,e2.useEffect)(()=>{var n;if(!t||(null===(n=e.editor)||void 0===n?void 0:n.isDestroyed)||(null==r?void 0:r.isDestroyed))return;let{pluginKey:i="floatingMenu",editor:o,tippyOptions:s={},shouldShow:a=null}=e,l=o||r;if(!l){console.warn("FloatingMenu component is not rendered inside of an editor component or does not have editor prop.");return}let u=e6({pluginKey:i,editor:l,element:t,tippyOptions:s,shouldShow:a});return l.registerPlugin(u),()=>{l.unregisterPlugin(i)}},[e.editor,r,t]),e2.createElement("div",{ref:n,className:e.className,style:{visibility:"hidden"}},e.children)},tv=(0,e2.createContext)({onDragStart:void 0}),ty=()=>(0,e2.useContext)(tv),tx=e2.forwardRef((e,t)=>{let{onDragStart:n}=ty(),r=e.as||"div";return e2.createElement(r,{...e,ref:t,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...e.style}})});class tk{constructor(e,{editor:t,props:n={},as:r="div",className:i=""}){this.ref=null,this.id=Math.floor(4294967295*Math.random()).toString(),this.component=e,this.editor=t,this.props=n,this.element=document.createElement(r),this.element.classList.add("react-renderer"),i&&this.element.classList.add(...i.split(" ")),this.editor.isInitialized?(0,e3.flushSync)(()=>{this.render()}):this.render()}render(){var e,t;let n=this.component,r=this.props,i=this.editor;("function"==typeof n&&n.prototype&&n.prototype.isReactComponent||"object"==typeof n&&(null===(t=n.$$typeof)||void 0===t?void 0:t.toString())==="Symbol(react.forward_ref)")&&(r.ref=e=>{this.ref=e}),this.reactElement=e2.createElement(n,{...r}),null===(e=null==i?void 0:i.contentComponent)||void 0===e||e.setRenderer(this.id,this)}updateProps(e={}){this.props={...this.props,...e},this.render()}destroy(){var e;let t=this.editor;null===(e=null==t?void 0:t.contentComponent)||void 0===e||e.removeRenderer(this.id)}updateAttributes(e){Object.keys(e).forEach(t=>{this.element.setAttribute(t,e[t])})}}class tw extends d.DK{mount(){let e={editor:this.editor,node:this.node,decorations:this.decorations,innerDecorations:this.innerDecorations,view:this.view,selected:!1,extension:this.extension,HTMLAttributes:this.HTMLAttributes,getPos:()=>this.getPos(),updateAttributes:(e={})=>this.updateAttributes(e),deleteNode:()=>this.deleteNode()};if(!this.component.displayName){let e;this.component.displayName=(e=this.extension.name).charAt(0).toUpperCase()+e.substring(1)}let t={onDragStart:this.onDragStart.bind(this),nodeViewContentRef:e=>{e&&this.contentDOMElement&&e.firstChild!==this.contentDOMElement&&e.appendChild(this.contentDOMElement)}},n=this.component,r=e2.memo(e=>e2.createElement(tv.Provider,{value:t},e2.createElement(n,e)));r.displayName="ReactNodeView",this.node.isLeaf?this.contentDOMElement=null:this.options.contentDOMElementTag?this.contentDOMElement=document.createElement(this.options.contentDOMElementTag):this.contentDOMElement=document.createElement(this.node.isInline?"span":"div"),this.contentDOMElement&&(this.contentDOMElement.dataset.nodeViewContentReact="",this.contentDOMElement.style.whiteSpace="inherit");let i=this.node.isInline?"span":"div";this.options.as&&(i=this.options.as);let{className:o=""}=this.options;this.handleSelectionUpdate=this.handleSelectionUpdate.bind(this),this.renderer=new tk(r,{editor:this.editor,props:e,as:i,className:`node-${this.node.type.n
4ame} ${o}`.trim()}),this.editor.on("selectionUpdate",this.handleSelectionUpdate),this.updateElementAttributes()}get dom(){var e;if(this.renderer.element.firstElementChild&&!(null===(e=this.renderer.element.firstElementChild)||void 0===e?void 0:e.hasAttribute("data-node-view-wrapper")))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.contentDOMElement}handleSelectionUpdate(){let{from:e,to:t}=this.editor.state.selection,n=this.getPos();if("number"==typeof n){if(e<=n&&t>=n+this.node.nodeSize){if(this.renderer.props.selected)return;this.selectNode()}else{if(!this.renderer.props.selected)return;this.deselectNode()}}}update(e,t,n){let r=e=>{this.renderer.updateProps(e),"function"==typeof this.options.attrs&&this.updateElementAttributes()};if(e.type!==this.node.type)return!1;if("function"==typeof this.options.update){let i=this.node,o=this.decorations,s=this.innerDecorations;return this.node=e,this.decorations=t,this.innerDecorations=n,this.options.update({oldNode:i,oldDecorations:o,newNode:e,newDecorations:t,oldInnerDecorations:s,innerDecorations:n,updateProps:()=>r({node:e,decorations:t,innerDecorations:n})})}return e===this.node&&this.decorations===t&&this.innerDecorations===n||(this.node=e,this.decorations=t,this.innerDecorations=n,r({node:e,decorations:t,innerDecorations:n}),!0)}selectNode(){this.renderer.updateProps({selected:!0}),this.renderer.element.classList.add("ProseMirror-selectednode")}deselectNode(){this.renderer.updateProps({selected:!1}),this.renderer.element.classList.remove("ProseMirror-selectednode")}destroy(){this.renderer.destroy(),this.editor.off("selectionUpdate",this.handleSelectionUpdate),this.contentDOMElement=null}updateElementAttributes(){if(this.options.attrs){let e={};if("function"==typeof this.options.attrs){let t=this.editor.extensionManager.attributes,n=(0,d.m7)(this.node,t);e=this.options.attrs({node:this.node,HTMLAttributes:n})}else e=this.options.attrs;this.renderer.updateAttributes(e)}}}function tC(e,t){return n=>n.editor.contentComponent?new tw(e,n,t):{}}},57481:function(e,t,n){"use strict";n.d(t,{Z:function(){return el}});var r=n(37243);let i=/^\s*>\s$/,o=r.NB.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML({HTMLAttributes:e}){return["blockquote",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}}
4,addInputRules(){return[(0,r.S0)({find:i,type:this.type})]}}),s=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,a=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,l=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,u=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,c=r.vc.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!==e.style.fontWeight&&null},{style:"font-weight=400",clearMark:e=>e.type.name===this.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return["strong",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[(0,r.Cf)({find:s,type:this.type}),(0,r.Cf)({find:l,type:this.type})]}
4,addPasteRules(){return[(0,r.K9)({find:a,type:this.type}),(0,r.K9)({find:u,type:this.type})]}}),d="textStyle",h=/^\s*([-+*])\s$/,f=r.NB.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:e}){return["ul",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(d)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=(0,r.S0)({find:h,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=(0,r.S0)({find:h,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(d),editor:this.editor})),[e]}}),p=/(^|[^`])`([^`]+)`(?!`)/,m=/(^|[^`])`([^`]+)`(?!`)/g,g=r.vc.create({name:"code",addOptions:()=>({HTMLAttributes:{}}),excludes:"_",code:!0,exitable:!0,parseHTML:()=>[{tag:"code"}],renderHTML({HTMLAttributes:e}){return["code",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}}
4,addInputRules(){return[(0,r.Cf)({find:p,type:this.type})]},addPasteRules(){return[(0,r.K9)({find:m,type:this.type})]}});var b=n(27191);let v=/^```([a-z]+)?[\s\n]$/,y=/^~~~([a-z]+)?[\s\n]$/,x=r.NB.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{var t;let{languageClassPrefix:n}=this.options;return[...(null===(t=e.firstElementChild)||void 0===t?void 0:t.classList)||[]].filter(e=>e.startsWith(n)).map(e=>e.replace(n,""))[0]||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML({node:e,HTMLAttributes:t}){return["pre",(0,r.P1)(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{let{empty:e,$anchor:t}=this.editor.state.selection,n=1===t.pos;return!!e&&t.parent.type.name===this.name&&(!!n||!t.parent.textContent.length)&&this.editor.commands.clearNodes()},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;let{state:t}=e,{selection:n}=t,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type)return!1;let o=r.parentOffset===r.parent.nodeSize-2,s=r.parent.textContent.endsWith("\n\n");return!!o&&!!s&&e.chain().command(({tr:e})=>(e.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;let{state:t}=e,{selection:n,doc:r}=t,{$from:i,empty:o}=n;if(!o||i.parent.type!==this.type||i.parentOffset!==i.parent.nodeSize-2)return!1;let s=i.after();return void 0!==s&&(r.nodeAt(s)?e.commands.command(({tr:e})=>(e.setSelection(b.Y1.near(r.resolve(s))),!0)):e.commands.exitCode())}}},addInputRules(){return[(0,r.zK)({find:v,type:this.type,getAttributes:e=>({language:e[1]})}
4),(0,r.zK)({find:y,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new b.Sy({key:new b.H$("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;let n=t.clipboardData.getData("text/plain"),r=t.clipboardData.getData("vscode-editor-data"),i=r?JSON.parse(r):void 0,o=null==i?void 0:i.mode;if(!n||!o)return!1;let{tr:s,schema:a}=e.state,l=a.text(n.replace(/\r\n?/g,"\n"));return s.replaceSelectionWith(this.type.create({language:o},l)),s.selection.$from.parent.type!==this.type&&s.setSelection(b.Bs.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.setMeta("paste",!0),e.dispatch(s),!0}}})]}}),k=r.NB.create({name:"doc",topNode:!0,content:"block+"});var w=n(26151);class C{constructor(e,t){var n;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!==(n=t.width)&&void 0!==n?n:1,this.color=!1===t.color?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(t=>{let n=e=>{this[t](e)};return e.dom.addEventListener(t,n),{name:t,handler:n}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e,t,n=this.editorView.state.doc.resolve(this.cursorPos),r=!n.parent.inlineContent,i,o=this.editorView.dom,s=o.getBoundingClientRect(),a=s.width/o.offsetWidth,l=s.height/o.offsetHeight;if(r){let e=n.nodeBefore,t=n.nodeAfter;if(e||t){let n=this.editorView.nodeDOM(this.cursorPos-(e?e.nodeSize:0));if(n){let r=n.getBoundingClientRect(),o=e?r.bottom:r.top;e&&t&&(o=(o+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let s=this.width/2*l;i={left:r.left,right:r.right,top:o-s,bottom:o+s}}}}if(!i){let e=this.editorView.coordsAtPos(this.cursorPos),t=this.width/2*a;i={left:e.left-t,right:e.left+t,top:e.top,bottom:e.bottom}}let u=this.editorView.dom.offsetParent;if(!this.element&&(this.element=u.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",r),this.element.classList.toggle("prosemirror-dropcursor-inline",!r),u&&(u!=document.body||"static"!=getComputedStyle(u).position)){let n=u.getBoundingClientRect(),r=n.width/u.offsetWidth,i=n.height/u.offsetHeight;e=n.left-u.scrollLeft*r,t=n.top-u.scrollTop*i}else e=-pageXOffset,t=-pageYOffset;this.element.style.left=(i.left-e)/a+"px",this.element.style.top=(i.top-t)/l+"px",this.element.style.width=(i.right-i.left)/a+"px",this.element.style.height=(i.bottom-i.top)/l+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),r=n&&n.type.spec.disableDropCursor,i="function"==typeof r?r(this.editorView,t,e):r;if(t&&!i){let e=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let t=(0,w.nj)(this.editorView.state.doc,e,this.editorView.dragging.slice);null!=t&&(e=t)}this.setCursor(e),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}let _=r.hj.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[function(e={}){return new b.Sy({view:t=>new C(t,e)})}(this.options)]}});var A=n(3027);let M=r.hj.create({name:"gapCursor",addProseMirrorPlugins:()=>[(0,A.d)()],extendNodeSchema(e){var t;let n={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:null!==(t=(0,r.nU)((0,r.Nl)(e,"allowGapCursor",n)))&&void 0!==t?t:null}}}),S=r.NB.create({name:"hardBreak",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML:()=>[{tag:"br"}],renderHTML({HTMLAttributes:e}){return["br",(0,r.P1)(this.options.HTMLAttributes,e)]},renderText:()=>"\n",addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>
4e.exitCode(),()=>e.command(()=>{let{selection:e,storedMarks:i}=n;if(e.$from.parent.type.spec.isolating)return!1;let{keepMarks:o}=this.options,{splittableMarks:s}=r.extensionManager,a=i||e.$to.parentOffset&&e.$from.marks();return t().insertContent({type:this.name}).command(({tr:e,dispatch:t})=>{if(t&&a&&o){let t=a.filter(e=>s.includes(e.type.name));e.ensureMarks(t)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),E=r.NB.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){let n=this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0];return[`h${n}`,(0,r.P1)(this.options.HTMLAttributes,t),0]},addCommands(){return{setHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.setNode(this.name,e),toggleHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>(0,r.zK)({find:RegExp(`^(#{${Math.min(...this.options.levels)},${e}}
4)\\s$`),type:this.type,getAttributes:{level:e}}))}});var T=function(){};T.prototype.append=function(e){return e.length?(e=T.from(e),!this.length&&e||e.length<200&&this.leafAppend(e)||this.length<200&&e.leafPrepend(this)||this.appendInner(e)):this},T.prototype.prepend=function(e){return e.length?T.from(e).append(this):this},T.prototype.appendInner=function(e){return new L(this,e)},T.prototype.slice=function(e,t){return(void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t)?T.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},T.prototype.get=function(e){if(!(e<0)&&!(e>=this.length))return this.getInner(e)},T.prototype.forEach=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},T.prototype.map=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length);var r=[];return this.forEach(function(t,n){return r.push(e(t,n))},t,n),r},T.from=function(e){return e instanceof T?e:e&&e.length?new D(e):T.empty};var D=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return 0==e&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,r){for(var i=t;i<n;i++)if(!1===e(this.values[i],r+i))return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){for(var i=t-1;i>=n;i--)if(!1===e(this.values[i],r+i))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=200)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=200)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(T);T.empty=new D([]);var L=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,r){var i=this.left.length;if(t<i&&!1===this.left.forEachInner(e,t,Math.min(n,i),r)||n>i&&!1===this.right.forEachInner(e,Math.max(t-i,0),Math.min(this.length,n)-i,r+i))return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){var i=this.left.length;if(t>i&&!1===this.right.forEachInvertedInner(e,t-i,Math.max(n,i)-i,r+i)||n<i&&!1===this.left.forEachInvertedInner(e,Math.min(t,i),n,r))return!1},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(T);class O{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){let n,r,i,o;if(0==this.eventCount)return null;let s=this.items.length;for(;;s--)if(this.items.get(s-1).selection){--s;break}t&&(r=(n=this.remapping(s,this.items.length)).maps.length);let a=e.tr,l=[],u=[];return this.items.forEach((e,t)=>{if(!e.step){n||(r=(n=this.remapping(s,t+1)).maps.length),r--,u.push(e);return}if(n){u.push(new R(e.map));let t=e.step.map(n.slice(r)),i;t&&a.maybeStep(t).doc&&(i=a.mapping.maps[a.mapping.maps.length-1],l.push(new R(i,void 0,void 0,l.length+u.length))),r--,i&&n.appendMap(i,r)}else a.maybeStep(e.step);if(e.selection)return i=n?e.selection.map(n.slice(r)):e.selection,o=new O(this.items.slice(0,s).append(u.reverse().concat(l)),this.eventCount-1),!1},this.items.length,0),{remaining:o,transform:a,selection:i}}addTransform(e,t,n,r){var i,o;let s,a=[],l=this.eventCount,u=this.items,c=!r&&u.length?u.get(u.length-1):null;for(let n=0;n<e.steps.length;n++){let i=e.steps[n].invert(e.docs[n]),o=new R(e.mapping.maps[n],i,t),s;(s=c&&c.merge(o))&&(o=s,n?a.pop():u=u.slice(0,u.length-1)),a.push(o),t&&(l++,t=void 0),r||(c=o)}let d=l-n.depth;return d>
4z&&(i=u,o=d,i.forEach((e,t)=>{if(e.selection&&0==o--)return s=t,!1}),u=i.slice(s),l-=d),new O(u.append(a),l)}remapping(e,t){let n=new w.vs;return this.items.forEach((t,r)=>{let i=null!=t.mirrorOffset&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:void 0;n.appendMap(t.map,i)},e,t),n}addMaps(e){return 0==this.eventCount?this:new O(this.items.append(e.map(e=>new R(e))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let n=[],r=Math.max(0,this.items.length-t),i=e.mapping,o=e.steps.length,s=this.eventCount;this.items.forEach(e=>{e.selection&&s--},r);let a=t;this.items.forEach(t=>{let r=i.getMirror(--a);if(null==r)return;o=Math.min(o,r);let l=i.maps[r];if(t.step){let o=e.steps[r].invert(e.docs[r]),u=t.selection&&t.selection.map(i.slice(a+1,r));u&&s++,n.push(new R(l,o,u))}else n.push(new R(l))},r);let l=[];for(let e=t;e<o;e++)l.push(new R(i.maps[e]));let u=new O(this.items.slice(0,r).append(l).append(n),s);return u.emptyItemCount()>500&&(u=u.compress(this.items.length-n.length)),u}emptyItemCount(){let e=0;return this.items.forEach(t=>{!t.step&&e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),n=t.maps.length,r=[],i=0;return this.items.forEach((o,s)=>{if(s>=e)r.push(o),o.selection&&i++;else if(o.step){let e=o.step.map(t.slice(n)),s=e&&e.getMap();if(n--,s&&t.appendMap(s,n),e){let a=o.selection&&o.selection.map(t.slice(n));a&&i++;let l=new R(s.invert(),e,a),u,c=r.length-1;(u=r.length&&r[c].merge(l))?r[c]=u:r.push(l)}}else o.map&&n--},this.items.length,0),new O(T.from(r.reverse()),i)}}O.empty=new O(T.empty,0);class R{constructor(e,t,n,r){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=r}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new R(t.getMap().invert(),t,this.selection)}}}class F{constructor(e,t,n,r,i){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r,this.prevComposition=i}}let z=20;function I(e){let t=[];for(let n=e.length-1;n>=0&&0==t.length;n--)e[n].forEach((e,n,r,i)=>t.push(r,i));return t}function B(e,t){if(!e)return null;let n=[];for(let r=0;r<e.length;r+=2){let i=t.map(e[r],1),o=t.map(e[r+1],-1);i<=o&&n.push(i,o)}return n}let j=!1,N=null;function P(e){let t=e.plugins;if(N!=t){j=!1,N=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){j=!0;break}}return j}let H=new b.H$("history"),W=new b.H$("closeHistory");function $(e,t){return(n,r)=>{let i=H.getState(n);if(!i||0==(e?i.undone:i.done).eventCount)return!1;if(r){let o=function(e,t,n){let r=P(t),i=H.get(t).spec.config,o=(n?e.undone:e.done).popEvent(t,r);if(!o)return null;let s=o.selection.resolve(o.transform.doc),a=(n?e.done:e.undone).addTransform(o.transform,t.selection.getBookmark(),i,r),l=new F(n?a:o.remaining,n?o.remaining:a,null,0,-1);return o.transform.setSelection(s).setMeta(H,{redo:n,historyState:l})}(i,n,e);o&&r(t?o.scrollIntoView():o)}return!0}}let Z=$(!1,!0),q=$(!0,!0);$(!1,!1),$(!0,!1);let U=r.hj.create({name:"history",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:e,dispatch:t})=>Z(e,t),redo:()=>({state:e,dispatch:t})=>q(e,t)}),addProseMirrorPlugins(){return[function(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new b.Sy({key:H,state:{init:()=>new F(O.empty,O.empty,null,0,-1),apply:(t,n,r)=>(function(e,t,n,r){let i=n.getMeta(H),o;if(i)return i.historyState;n.getMeta(W)&&(e=new F(e.done,e.undone,null,0,-1));let s=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(s&&s.getMeta(H))return s.getMeta(H).redo?new F(e.done.addTransform(n,void 0,r,P(t)),e.undone,I(n.mapping.maps),e.prevTime,e.prevComposition):new F(e.done,e.undone.addTransform(n,void 0,r,P(t)),null,e.prevTime,e.prevComposition);if(!1===n.getMeta("addToHistory")||s&&!1===s.getMeta("addToHistory"))return(o=n.getMeta("rebased"))?new F(e.done.rebased(n,o),e.undone.rebased(n,o),B(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new F(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),B(e.prevRanges,n.mapping),e.prevTime,e.prevComposition);{let i=n.getMeta("composition"),o=0==e.prevTime||!s&&e.prevComposition!=i&&(e.prevTime<(n.time||0)-r.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;
4return e.mapping.maps[0].forEach((e,r)=>{for(let i=0;i<t.length;i+=2)e<=t[i+1]&&r>=t[i]&&(n=!0)}),n}(n,e.prevRanges)),a=s?B(e.prevRanges,n.mapping):I(n.mapping.maps);return new F(e.done.addTransform(n,o?t.selection.getBookmark():void 0,r,P(t)),O.empty,a,n.time,null==i?e.prevComposition:i)}})(n,r,t,e)},config:e,props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,r="historyUndo"==n?Z:"historyRedo"==n?q:null;return!!r&&(t.preventDefault(),r(e.state,e.dispatch))}}}})}(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),V=r.NB.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{}}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML({HTMLAttributes:e}){return["hr",(0,r.P1)(this.options.HTMLAttributes,e)]},addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{let{selection:n}=t,{$from:i,$to:o}=n,s=e();return 0===i.parentOffset?s.insertContentAt({from:Math.max(i.pos-1,0),to:o.pos},{type:this.name}):(0,r.EG)(n)?s.insertContentAt(o.pos,{type:this.name}):s.insertContent({type:this.name}),s.command(({tr:e,dispatch:t})=>{var n;if(t){let{$to:t}=e.selection,r=t.end();if(t.nodeAfter)t.nodeAfter.isTextblock?e.setSelection(b.Bs.create(e.doc,t.pos+1)):t.nodeAfter.isBlock?e.setSelection(b.qv.create(e.doc,t.pos)):e.setSelection(b.Bs.create(e.doc,t.pos));else{let i=null===(n=t.parent.type.contentMatch.defaultType)||void 0===n?void 0:n.create();i&&(e.insert(r,i),e.setSelection(b.Bs.create(e.doc,r+1)))}e.scrollIntoView()}return!0}).run()}}},addInputRules(){return[(0,r.x2)({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.t
4ype})]}}),Y=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,G=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,J=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,X=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,K=r.vc.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:e=>"normal"!==e.style.fontStyle&&null},{style:"font-style=normal",clearMark:e=>e.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:e}){return["em",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[(0,r.Cf)({find:Y,type:this.type}),(0,r.Cf)({find:J,type:this.type})]},addPasteRules(){return[(0,r.K9)({find:G,type:this.type}),(0,r.K9)({find:X,type:this.type})]}}),Q=r.NB.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",(0,r.P1)(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),ee="textStyle",et=/^(\d+)\.\s$/,en=r.NB.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1},type:{default:null,parseHTML:e=>e.getAttribute("type")}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:e}){let{start:t,...n}=e;return 1===t?["ol",(0,r.P1)(this.options.HTMLAttributes,n),0]:["ol",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(ee)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=(0,r.S0)({find:et,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=(0,r.S0)({find:et,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(ee)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[e]}}),er=r.NB.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:e}){return["p",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),ei=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,eo=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,es=r.vc.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("line-through")&&{}}],renderHTML({HTMLAttributes:e}){return["s",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}}
4,addInputRules(){return[(0,r.Cf)({find:ei,type:this.type})]},addPasteRules(){return[(0,r.K9)({find:eo,type:this.type})]}}),ea=r.NB.create({name:"text",group:"inline"}),el=r.hj.create({name:"starterKit",addExtensions(){let e=[];return!1!==this.options.bold&&e.push(c.configure(this.options.bold)),!1!==this.options.blockquote&&e.push(o.configure(this.options.blockquote)),!1!==this.options.bulletList&&e.push(f.configure(this.options.bulletList)),!1!==this.options.code&&e.push(g.configure(this.options.code)),!1!==this.options.codeBlock&&e.push(x.configure(this.options.codeBlock)),!1!==this.options.document&&e.push(k.configure(this.options.document)),!1!==this.options.dropcursor&&e.push(_.configure(this.options.dropcursor)),!1!==this.options.gapcursor&&e.push(M.configure(this.options.gapcursor)),!1!==this.options.hardBreak&&e.push(S.configure(this.options.hardBreak)),!1!==this.options.heading&&e.push(E.configure(this.options.heading)),!1!==this.options.history&&e.push(U.configure(this.options.history)),!1!==this.options.horizontalRule&&e.push(V.configure(this.options.horizontalRule)),!1!==this.options.italic&&e.push(K.configure(this.options.italic)),!1!==this.options.listItem&&e.push(Q.configure(this.options.listItem)),!1!==this.options.orderedList&&e.push(en.configure(this.options.orderedList)),!1!==this.options.paragraph&&e.push(er.configure(this.options.paragraph)),!1!==this.options.strike&&e.push(es.configure(this.options.strike)),!1!==this.options.text&&e.push(ea.configure(this.options.text)),e}})},71461:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(54258),i=n(5141),o=n(74214),s=-1.78277*.29227-.1347134789;function a(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof l)return new l(e.h,e.s,e.l,e.opacity);e instanceof i.Ss||(e=(0,i.SU)(e));var t=e.r/255,n=e.g/255,r=e.b/255,a=(s*r+-1.7884503806*t-3.5172982438*n)/(s+-1.7884503806-3.5172982438),u=r-a,c=-((1.97294*(n-a)- -.29227*u)/.90649),d=Math.sqrt(c*c+u*u)/(1.97294*a*(1-a)),h=d?Math.atan2(c,u)*o.R-120:NaN;return new l(h<0?h+360:h,d,a,e.opacity)}(e):new l(e,t,n,null==r?1:r)}function l(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}(0,r.Z)(l,a,(0,r.l)(i.Il,{brighter(e){return e=null==e?i.J5:Math.pow(i.J5,e),new l(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?i.xV:Math.pow(i.xV,e),new l(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*o.u,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),s=Math.sin(e);return new i.Ss(255*(t+n*(-.14861*r+1.78277*s)),255*(t+n*(-.29227*r+-.90649*s)),255*(t+1.97294*r*n),this.opacity)}}))},87090:function(e,t,n){"use strict";n.d(t,{B:function(){return s}});var r=n(71461),i=n(27814);function o(e){return function t(n){function o(t,o){var s=e((t=(0,r.Z)(t)).h,(o=(0,r.Z)(o)).h),a=(0,i.ZP)(t.s,o.s),l=(0,i.ZP)(t.l,o.l),u=(0,i.ZP)(t.opacity,o.opacity);return function(e){return t.h=s(e),t.s=a(e),t.l=l(Math.pow(e,n)),t.opacity=u(e),t+""}}return n=+n,o.gamma=t,o}(1)}o(i.wx);var s=o(i.ZP)},11969:function(e,t,n){"use strict";var r=n(67585);t.Z=(0,r.Z)("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666")},39390:function(e,t,n){"use strict";var r=n(67585);t.Z=(0,r.Z)("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666")},10554:function(e,t,n){"use strict";var r=n(67585);t.Z=(0,r.Z)("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928")},71052:function(e,t,n){"use strict";var r=n(67585);t.Z=(0,r.Z)("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2")},70502:function(e,t,n){"use strict";var r=n(67585);t.Z=(0,r.Z)("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc")},80414:function(e,t,n){"use strict";var r=n(67585);t.Z=(0,r.Z)("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999")},90555:function(e,t,n){"use strict";var r=n(67585);t.Z=(0,r.Z)("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3")},60492:function(e,t,n){"use strict";var r=n(67585);t.Z=(0,r.Z)("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f")},21896:function(e,t,n){"use strict";var r=n(67585);t.Z=(0,r.Z)("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf")},35939:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(67585),i=n(85306),o=[,,,].concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(r.Z);t.Z=(0,i.Z)(o)},24544:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(67585),i=n(85306),o=[,,,].concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(r.Z);t.Z=(0,i.Z)(o)},52833:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(67585),i=n(85306),o=[,,,].concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(r.Z);t.Z=(0,i.Z)(o)},54012:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(67585),i=n(85306),o=[,,,].concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(r.Z);t.Z=(0,i.Z)(o)},43214:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(67585),i=n(85306),o=[,,,].concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(r.Z);t.Z=(0,i.Z)(o)},58992:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(67585),i=n(85306),o=[,,,].concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(r.Z);t.Z=(0,i.Z)(o)},83443:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(67585),i=n(85306),o=[,,,].concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(r.Z);t.Z=(0,i.Z)(o)},27294:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(67585),i=n(85306),o=[,,,].concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d
47191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(r.Z);t.Z=(0,i.Z)(o)},57770:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(67585),i=n(85306),o=[,,,].concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(r.Z);t.Z=(0,i.Z)(o)},85306:function(e,t,n){"use strict";var r=n(29043);t.Z=e=>(0,r.hD)(e[e.length-1])},85304:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(67585),i=n(85306),o=[,,,].concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(r.Z);t.Z=(0,i.Z)(o)},84886:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(67585),i=n(85306),o=[,,,].concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(r.Z);t.Z=(0,i.Z)(o)},58054:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(67585),i=n(85306),o=[,,,].concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(r.Z);t.Z=(0,i.Z)(o)},1215:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(67585),i=n(85306),o=[,,,].concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(r.Z);t.Z=(0,i.Z)(o)},2643:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(67585),i=n(85306),o=[,,,].concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(r.Z);t.Z=(0,i.Z)(o)},87439:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(67585),i=n(85306),o=[,,,].concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(r.Z);t.Z=(0,i.Z)(o)},96791:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(67585),i=n(85306),o=[,,,].concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(r.Z);t.Z=(0,i.Z)(o)},21782:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(67585),i=n(85306),o=[,,,].concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(r.Z);t.Z=(0,i.Z)(o)},11016:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(67585),i=n(85306),o=[,,,].concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(r.Z);t.Z=(0,i.Z)(o)},24619:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(67585),i=n(85306),o=[,,,].concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(r.Z);t.Z=(0,i.Z)(o)},50278:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(67585),i=n(85306),o=[,,,].concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(r.Z);t.Z=(0,i.Z)(o)},48742:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(67585),i=n(85306),o=[,,,].concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(r.Z);t.Z=(0,i.Z)(o)},46432:function(e,t,n){"use strict";var r=n(71461),i=n(87090);t.Z=(0,i.B)((0,r.Z)(300,.5,0),(0,r.Z)(-240,.5,1))},18711:function(e,t,n){"use strict";n.d(t,{H7:function(){return s},ZP:function(){return l},s7:function(){return o}});var r=n(71461),i=n(87090),o=(0,i.B)((0,r.Z)(-100,.75,.35),(0,r.Z)(80,1.5,.8)),s=(0,i.B)((0,r.Z)(260,.75,.35),(0,r.Z)(80,1.5,.8)),a=(0,r.Z)();function l(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return a.h=360*e-100,a.s=1.5-1.5*t,a.l=.8-.9*t,a+""}},57983:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=(0,n(5141).B8)(),i=Math.PI/3,o=2*Math.PI/3;function s(e){var t;
4return e=(.5-e)*Math.PI,r.r=255*(t=Math.sin(e))*t,r.g=255*(t=Math.sin(e+i))*t,r.b=255*(t=Math.sin(e+o))*t,r+""}},31137:function(e,t,n){"use strict";n.d(t,{uX:function(){return o},yy:function(){return s},zD:function(){return a}});var r=n(67585);function i(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}t.ZP=i((0,r.Z)("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var o=i((0,r.Z)("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),s=i((0,r.Z)("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),a=i((0,r.Z)("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0a
4a58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"))},8658:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(67585),i=n(85306),o=[,,,].concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(r.Z);t.Z=(0,i.Z)(o)},69200:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(67585),i=n(85306),o=[,,,].concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(r.Z);t.Z=(0,i.Z)(o)},85608:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(67585),i=n(85306),o=[,,,].concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(r.Z);t.Z=(0,i.Z)(o)},62281:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(67585),i=n(85306),o=[,,,].concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(r.Z);t.Z=(0,i.Z)(o)},39337:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(67585),i=n(85306),o=[,,,].concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(r.Z);t.Z=(0,i.Z)(o)},76254:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(67585),i=n(85306),o=[,,,].concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(r.Z);t.Z=(0,i.Z)(o)},84684:function(e,t,n){"use strict";function r(e,t){if((a=e.length)>0)for(var n,r,i,o,s,a,l=0,u=e[t[0]].length;l<u;++l)for(o=s=0,n=0;n<a;++n)(i=(r=e[t[n]][l])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=s,r[0]=s+=i):(r[0]=0,r[1]=i)}n.d(t,{Z:function(){return r}})},13236:function(e,t,n){"use strict";function r(e,t){if((i=e.length)>1)for(var n,r,i,o=1,s=e[t[0]],a=s.length;o<i;++o)for(r=s,s=e[t[o]],n=0;n<a;++n)s[n][1]+=s[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}n.d(t,{Z:function(){return r}})},91233:function(e,t,n){"use strict";function r(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}n.d(t,{Z:function(){return r}})},37456:function(e,t,n){"use strict";n.d(t,{Z:function(){return tP}});var r,i,o,s,a,l,u,c,d,h,f,p,m,g={};n.r(g),n.d(g,{decode:function(){return w},encode:function(){return A},format:function(){return M},parse:function(){return B}});var b={};n.r(b),n.d(b,{Any:function(){return P},Cc:function(){return H},Cf:function(){return W},P:function(){return j},S:function(){return N},Z:function(){return $}});var v={};n.r(v),n.d(v,{arrayReplaceAt:function(){return eo},assign:function(){return ei},escapeHtml:function(){return eb},escapeRE:function(){return ey},fromCodePoint:function(){return ea},has:function(){return er},isMdAsciiPunct:function(){return eC},isPunctChar:function(){return ew},isSpace:function(){return ex},isString:function(){return et},isValidEntityCode:function(){return es},isWhiteSpace:function(){return ek},lib:function(){return eA},normalizeReference:function(){return e_},unescapeAll:function(){return eh},unescapeMd:function(){return ed}});var y={};n.r(y),n.d(y,{parseLinkDestination:function(){return eS},parseLinkLabel:function(){return eM},parseLinkTitle:function(){return eE}});let x={};function k(e,t){"string"!=typeof t&&(t=k.defaultChars);let n=function(e){let t=x[e];if(t)return t;t=x[e]=[];for(let e=0;e<128;
4e++){let n=String.fromCharCode(e);t.push(n)}for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return t}(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(e){let t="";for(let r=0,i=e.length;r<i;r+=3){let o=parseInt(e.slice(r+1,r+3),16);if(o<128){t+=n[o];continue}if((224&o)==192&&r+3<i){let n=parseInt(e.slice(r+4,r+6),16);if((192&n)==128){let e=o<<6&1984|63&n;e<128?t+="��":t+=String.fromCharCode(e),r+=3;continue}}if((240&o)==224&&r+6<i){let n=parseInt(e.slice(r+4,r+6),16),i=parseInt(e.slice(r+7,r+9),16);if((192&n)==128&&(192&i)==128){let e=o<<12&61440|n<<6&4032|63&i;e<2048||e>=55296&&e<=57343?t+="���":t+=String.fromCharCode(e),r+=6;continue}}if((248&o)==240&&r+9<i){let n=parseInt(e.slice(r+4,r+6),16),i=parseInt(e.slice(r+7,r+9),16),s=parseInt(e.slice(r+10,r+12),16);if((192&n)==128&&(192&i)==128&&(192&s)==128){let e=o<<18&1835008|n<<12&258048|i<<6&4032|63&s;e<65536||e>1114111?t+="����":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),r+=9;continue}}t+="�"}return t})}k.defaultChars=";/?:@&=+$,#",k.componentChars="";var w=k;let C={};function _(e,t,n){"string"!=typeof t&&(n=t,t=_.defaultChars),void 0===n&&(n=!0);let r=function(e){let t=C[e];if(t)return t;t=C[e]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);/^[0-9a-z]$/i.test(n)?t.push(n):t.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}(t),i="";for(let t=0,o=e.length;t<o;t++){let s=e.charCodeAt(t);if(n&&37===s&&t+2<o&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3))){i+=e.slice(t,t+3),t+=2;continue}if(s<128){i+=r[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&t+1<o){let n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){i+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}i+="%EF%BF%BD";continue}i+=encodeURIComponent(e[t])}return i}_.defaultChars=";/?:@&=+$,-_.!~*'()#",_.componentChars="-_.!~*'()";var A=_;function M(e){let t="";return t+=(e.protocol||"")+(e.slashes?"//":"")+(e.auth?e.auth+"@":""),e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=(e.port?":"+e.port:"")+(e.pathname||"")+(e.search||"")+(e.hash||"")}function S(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}let E=/^([a-z0-9.+-]+:)/i,T=/:[0-9]*$/,D=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,L=["%","/","?",";","#"].concat(["'"].concat(["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","	"]))),O=["/","?","#"],R=/^[+a-z0-9A-Z_-]{0,63}$/,F=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,z={javascript:!0,"javascript:":!0},I={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};S.prototype.parse=function(e,t){let n,r,i;let o=e;if(o=o.trim(),!t&&1===e.split("#").length){let e=D.exec(o);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let s=E.exec(o);if(s&&(n=(s=s[0]).toLowerCase(),this.protocol=s,o=o.substr(s.length)),(t||s||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i="//"===o.substr(0,2))&&!(s&&z[s])&&(o=o.substr(2),this.slashes=!0),!z[s]&&(i||s&&!I[s])){let e,t,n=-1;for(let e=0;e<O.length;e++)-1!==(r=o.indexOf(O[e]))&&(-1===n||r<n)&&(n=r);-1!==(t=-1===n?o.lastIndexOf("@"):o.lastIndexOf("@",n))&&(e=o.slice(0,t),o=o.slice(t+1),this.auth=e),n=-1;for(let e=0;e<L.length;e++)-1!==(r=o.indexOf(L[e]))&&(-1===n||r<n)&&(n=r);-1===n&&(n=o.length),":"===o[n-1]&&n--;let i=o.slice(0,n);o=o.slice(n),this.parseHost(i),this.hostname=this.hostname||"";let s="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!s){let e=this.hostname.split(/\./);for(let t=0,n=e.length;t<n;t++){let n=e[t];if(n&&!n.match(R)){let r="";for(let e=0,t=n.length;e<t;e++)n.charCodeAt(e)>127?r+="x":r+=n[e];if(!r.match(R)){let r=e.slice(0,t),i=e.slice(t+1),s=n.match(F);s&&(r.push(s[1]),i.unshift(s[2])),i.length&&(o=i.join(".")+o),this.hostname=r.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),s&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let a=o.indexOf("#");-1!==a&&(this.hash=o.substr(a),o=o.slice(0,a));let l=o.indexOf("?");return -1!==l&&(this.search=o.substr(l),o=o.slice(0,l)),o&&(this.pathname=o),I[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},S.prototype.parseHost=function(e){let t=T.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var B=function(e,t){if(e&&e instanceof S)return e;let n=new S;return n.parse(e,t),n},j=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,N=/[\$\+<->
4\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,P=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,H=/[\0-\x1F\x7F-\x9F]/,W=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,$=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Z=new Uint16Array('ᵁ<\xd5ıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig耻\xc6䃆P耻&䀦cute耻\xc1䃁reve;䄂Āiyx}rc耻\xc2䃂;䐐r;쀀\ud835\udd04rave耻\xc0䃀pha;䎑acr;䄀d;橓Āgp\x9d\xa1on;䄄f;쀀\ud835\udd38plyFunction;恡ing耻\xc5䃅Ācs\xbe\xc3r;쀀\ud835\udc9cign;扔ilde耻\xc3䃃ml耻\xc4䃄Ѐaceforsu\xe5\xfb\xfeėĜĢħĪĀcr\xea\xf2kslash;或Ŷ\xf6\xf8;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀\ud835\udd05pf;쀀\ud835\udd39eve;䋘c\xf2ēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻\xa9䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻\xc7䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷\xf2ſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀\ud835\udc9epĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀\ud835\udd07Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀\ud835\udd3bƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegra\xecȹoɴ͹\0\0ͻ\xbb͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔e\xe5ˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀\ud835\udc9frok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻\xd0䃐cute耻\xc9䃉ƀaiyӒӗӜron;䄚rc耻\xca䃊;䐭ot;䄖r;쀀\ud835\udd08rave耻\xc8䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀\ud835\udd3csilon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻\xcb䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀\ud835\udd09lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀\ud835\udd3dAll;戀riertrf;愱c\xf2׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀\ud835\udd0a;拙pf;쀀\ud835\udd3eeater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀\ud835\udca2;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅ\xf2کrok;䄦mpńېۘownHum\xf0įqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻\xcd䃍Āiyܓܘrc耻\xce䃎;䐘ot;䄰r;愑rave耻\xcc䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lie\xf3ϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀\ud835\udd40a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻\xcf䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀\ud835\udd0dpf;쀀\ud835\udd41ǣ߇\0ߌr;쀀\ud835\udca5rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀\ud835\udd0epf;쀀\ud835\udd42cr;쀀\ud835\udca6րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ight\xe1Μs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀\ud835\udd0fĀ;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊight\xe1οight\xe1ϊf;쀀\ud835\udd43erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂ\xf2ࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀\ud835\udd10nusPlus;戓pf;쀀\ud835\udd44c\xf2੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘\xeb૙eryThi\xee૙tedĀGL૸ଆreaterGreate\xf2ٳessLes\xf3ੈLine;䀊r;쀀\ud835\udd11ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀\ud835\udca9ilde耻\xd1䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻\xd3䃓Āiy෎ීrc耻\xd4䃔;䐞blac;䅐r;쀀\ud835\udd12rave耻\xd2䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀\ud835\udd46enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀\ud835\udcaaash耻\xd8䃘iŬื฼de耻\xd5䃕es;樷ml耻\xd6䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;
4揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀\ud835\udd13i;䎦;䎠usMinus;䂱Āipຢອncareplan\xe5ڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀\ud835\udcab;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀\ud835\udd14pf;愚cr;쀀\ud835\udcac؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻\xae䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r\xbbཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀\ud835\udd16ortȀDLRUᄪᄴᄾᅉownArrow\xbbОeftArrow\xbb࢚ightArrow\xbb࿝pArrow;憑gma;䎣allCircle;战pf;쀀\ud835\udd4aɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀\ud835\udcaear;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Th\xe1ྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et\xbbሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻\xde䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀\ud835\udd17Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀\ud835\udd4bipleDot;惛Āctዖዛr;쀀\ud835\udcafrok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻\xda䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻\xdb䃛;䐣blac;䅰r;쀀\ud835\udd18rave耻\xd9䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀\ud835\udd4cЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥own\xe1ϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀\ud835\udcb0ilde;䅨ml耻\xdc䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀\ud835\udd19pf;쀀\ud835\udd4dcr;쀀\ud835\udcb1dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀\ud835\udd1apf;쀀\ud835\udd4ecr;쀀\ud835\udcb2Ȁfiosᓋᓐᓒᓘr;쀀\ud835\udd1b;䎞pf;쀀\ud835\udd4fcr;쀀\ud835\udcb3ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻\xdd䃝Āiyᔉᔍrc;䅶;䐫r;쀀\ud835\udd1cpf;쀀\ud835\udd50cr;쀀\ud835\udcb4ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidt\xe8૙a;䎖r;愨pf;愤cr;쀀\ud835\udcb5௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻\xe1䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻\xe2䃢te肻\xb4̆;䐰lig耻\xe6䃦Ā;r\xb2ᖺ;쀀\ud835\udd1erave耻\xe0䃠ĀepᗊᗖĀfpᗏᗔsym;愵\xe8ᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e\xbbᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢\xbb\xb9arr;捼Āgpᙣᙧon;䄅f;쀀\ud835\udd52΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒ\xf1ᚃing耻\xe5䃥ƀctyᚡᚦᚨr;쀀\ud835\udcb6;䀪mpĀ;e዁ᚯ\xf1ʈilde耻\xe3䃣ml耻\xe4䃤Āciᛂᛈonin\xf4ɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e\xbbᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰s\xe9ᜌno\xf5ēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀\ud835\udd1fg΀costuvwឍឝឳេ៕៛៞ƀaiuបពរ\xf0ݠrc;旯p\xbb፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄e\xe5ᑄ\xe5ᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀\ud835\udd53Ā;tᏋᡣom\xbbᏌtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻\xa6䂦Ȁceioᥑᥖᥚᥠr;쀀\ud835\udcb7mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t\xbb᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁\xeeړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;
4䄍dil耻\xe7䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻\xb8ƭptyv;榲t脀\xa2;eᨭᨮ䂢r\xe4Ʋr;쀀\ud835\udd20ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark\xbbᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟\xbbཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it\xbb᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;q\xc7\xc6ɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁\xeeᅠeĀmx᫱᫶ent\xbb᫩e\xf3ɍǧ᫾\0ᬇĀ;dኻᬂot;橭n\xf4Ɇƀfryᬐᬔᬗ;쀀\ud835\udd54o\xe4ɔ脀\xa9;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀\ud835\udcb8Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒre\xe3᭳u\xe3᭵ee;拎edge;拏en耻\xa4䂤earrowĀlrᯮ᯳eft\xbbᮀight\xbbᮽe\xe4ᯝĀciᰁᰇonin\xf4Ƿnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍r\xf2΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸\xf2ᄳhĀ;vᱚᱛ怐\xbbऊūᱡᱧarow;椏a\xe3̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻\xb0䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀\ud835\udd21arĀlrᲳᲵ\xbbࣜ\xbbသʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀\xf7;o᳧ᳰntimes;拇n\xf8᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀\ud835\udd55ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedg\xe5\xfanƀadhᄮᵝᵧownarrow\xf3ᲃarpoonĀlrᵲᵶef\xf4Ჴigh\xf4ᲶŢᵿᶅkaro\xf7གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀\ud835\udcb9;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃r\xf2Щa\xf2ྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴo\xf4ᲉĀcsḎḔute耻\xe9䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻\xea䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀\ud835\udd22ƀ;rsṐṑṗ檚ave耻\xe8䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et\xbbẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀\ud835\udd56ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on\xbbớ;䏵ȀcsuvỪỳἋἣĀioữḱrc\xbbḮɩỹ\0\0ỻ\xedՈantĀglἂἆtr\xbbṝess\xbbṺƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯o\xf4͒ĀahὉὋ;䎷耻\xf0䃰Āmrὓὗl耻\xeb䃫o;悬ƀcipὡὤὧl;䀡s\xf4ծĀeoὬὴctatio\xeeՙnential\xe5չৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotse\xf1Ṅy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀\ud835\udd23lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀\ud835\udd57ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻\xbd䂽;慓耻\xbc䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻\xbe䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀\ud835\udcbbࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lan\xf4٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀\ud835\udd24Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox\xbbℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀\ud835\udd58Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎pro\xf8₞r;楸qĀlqؿ↖les\xf3₈i\xed٫Āen↣↭rtneqq;쀀≩︀\xc5↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽r\xf2ΠȀilmr⇐⇔⇗⇛rs\xf0ᒄf\xbb․il\xf4کĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it\xbb∊lip;怦con;抹r;쀀\ud835\udd25sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀\ud835\udd59bar;怕ƀclt≯≴≸r;쀀\ud835\udcbdas\xe8⇴rok;䄧Ābp⊂⊇ull;恃hen\xbbᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻\xed䃭ƀ;
4iyݱ⊰⊵rc耻\xee䃮;䐸Ācx⊼⊿y;䐵cl耻\xa1䂡ĀfrΟ⋉;쀀\ud835\udd26rave耻\xec䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓in\xe5ގar\xf4ܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝do\xf4⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙er\xf3ᕣ\xe3⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀\ud835\udd5aa;䎹uest耻\xbf䂿Āci⎊⎏r;쀀\ud835\udcbenʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻\xef䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀\ud835\udd27ath;䈷pf;쀀\ud835\udd5bǣ⏬\0⏱r;쀀\ud835\udcbfrcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀\ud835\udd28reen;䄸cy;䑅cy;䑜pf;쀀\ud835\udd5ccr;쀀\ud835\udcc0஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼r\xf2৆\xf2Εail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴ra\xeeࡌbda;䎻gƀ;dlࢎⓁⓃ;榑\xe5ࢎ;檅uo耻\xab䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝\xeb≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼\xecࢰ\xe2┩;
4䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□a\xe9⓶arpoonĀdu▯▴own\xbbњp\xbb०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoon\xf3྘quigarro\xf7⇰hreetimes;拋ƀ;qs▋ও◺lan\xf4বʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋ppro\xf8Ⓠot;拖qĀgq♃♅\xf4উgt\xf2⒌\xf4ছi\xedলƀilr♕࣡♚sht;楼;쀀\ud835\udd29Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖r\xf2◁orne\xf2ᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che\xbb⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox\xbb⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽r\xebࣁgƀlmr⛿✍✔eftĀar০✇ight\xe1৲apsto;柼ight\xe1৽parrowĀlr✥✩ef\xf4⓭ight;憬ƀafl✶✹✽r;榅;쀀\ud835\udd5dus;樭imes;樴š❋❏st;戗\xe1ፎƀ;ef❗❘᠀旊nge\xbb❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇r\xf2ࢨorne\xf2ᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀\ud835\udcc1mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹re\xe5◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀\xc5⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻\xaf䂯Āet⡗⡙;時Ā;e⡞⡟朠se\xbb⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻ow\xeeҌef\xf4ए\xf0Ꮡker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle\xbbᘦr;쀀\ud835\udd2ao;愧ƀcdn⢯⢴⣉ro耻\xb5䂵Ȁ;acdᑤ⢽⣀⣄s\xf4ᚧir;櫰ot肻\xb7Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛\xf2−\xf0ઁĀdp⣩⣮els;抧f;쀀\ud835\udd5eĀct⣸⣽r;쀀\ud835\udcc2pos\xbbᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la\xbb˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉ro\xf8඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xa0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸ui\xf6ୣĀei⩊⩎ar;椨\xed஘istĀ;s஠டr;쀀\ud835\udd2bȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lan\xf4௢i\xed௪Ā;rஶ⪁\xbbஷƀAap⪊⪍⪑r\xf2⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹r\xf2⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro\xf7⫁ightarro\xf7⪐ƀ;qs఻⪺⫪lan\xf4ౕĀ;sౕ⫴\xbbశi\xedౝĀ;rవ⫾iĀ;eచథi\xe4ඐĀpt⬌⬑f;쀀\ud835\udd5f膀\xac;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lle\xec୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳u\xe5ಥĀ;cಘ⭸Ā;eಒ⭽\xf1ಘȀAait⮈⮋⮝⮧r\xf2⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow\xbb⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉u\xe5൅;쀀\ud835\udcc3ortɭ⬅\0\0⯖ar\xe1⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭\xe5೸\xe5ഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗ\xf1സȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇ\xecௗlde耻\xf1䃱\xe7ృiangleĀlrⱒⱜeftĀ;eచⱚ\xf1దightĀ;eೋⱥ\xf1೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻\xf3䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻\xf4䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀\ud835\udd2cͯ⵹\0\0⵼\0ⶂn;䋛ave耻\xf2䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨr\xf2᪀Āir⶝ⶠr;榾oss;榻n\xe5๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀\ud835\udd60ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨r\xf2᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f\xbbⷿ耻\xaa䂪耻\xba䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧\xf2⸁ash耻\xf8䃸l;折iŬⸯ⸴de耻\xf5䃵esĀ;aǛ⸺s;樶ml耻\xf6䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;
4astЃ⹧⹲຅脀\xb6;l⹭⹮䂶le\xecЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀\ud835\udd2dƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕ma\xf4੶ne;明ƀ;tv⺿⻀⻈䏀chfork\xbb´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎\xf6⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻\xb1ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀\ud835\udd61nd耻\xa3䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷u\xe5໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾ppro\xf8⽃urlye\xf1໙\xf1໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨i\xedໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺\xf0⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴\xef໻rel;抰Āci⿀⿅r;쀀\ud835\udcc5;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀\ud835\udd2epf;쀀\ud835\udd62rime;恗cr;쀀\ud835\udcc6ƀaeo⿸〉〓tĀei⿾々rnion\xf3ڰnt;樖stĀ;e【】䀿\xf1Ἑ\xf4༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがr\xf2Ⴓ\xf2ϝail;検ar\xf2ᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕i\xe3ᅮmptyv;榳gȀ;del࿑らるろ;榒;榥\xe5࿑uo耻\xbb䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞\xeb≝\xf0✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶al\xf3༞ƀabrョリヮr\xf2៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗\xec࿲\xe2ヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜn\xe5Ⴛar\xf4ྩt;断ƀilrㅩဣㅮsht;楽;쀀\ud835\udd2fĀaoㅷㆆrĀduㅽㅿ\xbbѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭa\xe9トarpoonĀduㆻㆿow\xeeㅾp\xbb႒eftĀah㇊㇐rrow\xf3࿪arpoon\xf3Ցightarrows;應quigarro\xf7ニhreetimes;拌g;䋚ingdotse\xf1ἲƀahm㈍㈐㈓r\xf2࿪a\xf2Ց;怏oustĀ;a㈞㈟掱che\xbb㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾r\xebဃƀafl㉇㉊㉎r;榆;쀀\ud835\udd63us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒ar\xf2㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀\ud835\udcc7Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠re\xe5ㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛qu\xef➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡u\xe5ᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓i\xedሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒\xeb∨Ā;oਸ਼਴t耻\xa7䂧i;䀻war;椩mĀin㍩\xf0nu\xf3\xf1t;朶rĀ;o㍶⁕쀀\ud835\udd30Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜i\xe4ᑤara\xec⹯耻\xad䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲ar\xf2ᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetm\xe9㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀\ud835\udd64aĀdr㑍ЂesĀ;u㑔㑕晠it\xbb㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍\xf1ᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝\xf1ᆮƀ;afᅻ㒦ְrť㒫ֱ\xbbᅼar\xf2ᅈȀcemt㒹㒾㓂㓅r;쀀\ud835\udcc8tm\xee\xf1i\xec㐕ar\xe6ᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psilo\xeeỠh\xe9⺯s\xbb⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦ppro\xf8㋺urlye\xf1ᇾ\xf1ᇳƀaes㖂㖈㌛ppro\xf8㌚q\xf1㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻\xb9䂹耻\xb2䂲耻\xb3䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨\xeb∮Ā;oਫ਩war;椪lig耻\xdf䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄r\xeb๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀\ud835\udd31Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮ppro\xf8዁im\xbbኬs\xf0ኞĀas㚺㚮\xf0዁rn耻\xfe䃾Ǭ̟㛆⋧es膀\xd7;bd㛏㛐㛘䃗Ā;
4aᤏ㛕r;樱;樰ƀeps㛡㛣㜀\xe1⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀\ud835\udd65rk;櫚\xe1㍢rime;怴ƀaip㜏㜒㝤d\xe5ቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own\xbbᶻeftĀ;e⠀㜾\xf1म;扜ightĀ;e㊪㝋\xf1ၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀\ud835\udcc9;䑆cy;䑛rok;䅧Āio㞋㞎x\xf4᝷headĀlr㞗㞠eftarro\xf7ࡏightarrow\xbbཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶r\xf2ϭar;楣Ācr㟜㟢ute耻\xfa䃺\xf2ᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻\xfb䃻;䑃ƀabh㠃㠆㠋r\xf2Ꭽlac;䅱a\xf2ᏃĀir㠓㠘sht;楾;쀀\ud835\udd32rave耻\xf9䃹š㠧㠱rĀlr㠬㠮\xbbॗ\xbbႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r\xbb㡆op;挏ri;旸Āal㡖㡚cr;䅫肻\xa8͉Āgp㡢㡦on;䅳f;쀀\ud835\udd66̀adhlsuᅋ㡸㡽፲㢑㢠own\xe1ᎳarpoonĀlr㢈㢌ef\xf4㠭igh\xf4㠯iƀ;hl㢙㢚㢜䏅\xbbᏺon\xbb㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r\xbb㢽op;挎ng;䅯ri;旹cr;쀀\ud835\udccaƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨\xbb᠓Āam㣯㣲r\xf2㢨l耻\xfc䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠r\xf2ϷarĀ;v㤦㤧櫨;櫩as\xe8ϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖app\xe1␕othin\xe7ẖƀhir㓫⻈㥙op\xf4⾵Ā;hᎷ㥢\xefㆍĀiu㥩㥭gm\xe1㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟et\xe1㚜iangleĀlr㦪㦯eft\xbbथight\xbbၑy;䐲ash\xbbံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨa\xf2ᑩr;쀀\ud835\udd33tr\xe9㦮suĀbp㧯㧱\xbbജ\xbb൙pf;쀀\ud835\udd67ro\xf0໻tr\xe9㦴Ācu㨆㨋r;쀀\ud835\udccbĀbp㨐㨘nĀEe㦀㨖\xbb㥾nĀEe㦒㨞\xbb㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀\ud835\udd34pf;쀀\ud835\udd68Ā;eᑹ㩦at\xe8ᑹcr;쀀\ud835\udcccૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tr\xe9៑r;쀀\ud835\udd35ĀAa㪔㪗r\xf2σr\xf2৶;䎾ĀAa㪡㪤r\xf2θr\xf2৫a\xf0✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀\ud835\udd69im\xe5ឲĀAa㫇㫊r\xf2ώr\xf2ਁĀcq㫒ីr;쀀\ud835\udccdĀpt៖㫜r\xe9។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻\xfd䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻\xa5䂥r;쀀\ud835\udd36cy;䑗pf;쀀\ud835\udd6acr;쀀\ud835\udcceĀcm㬦㬩y;䑎l耻\xff䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡tr\xe6ᕟa;䎶r;쀀\ud835\udd37cy;䐶grarr;懝pf;쀀\ud835\udd6bcr;쀀\ud835\udccfĀjn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),q=new Uint16Array("Ȁaglq	\x15\x18\x1bɭ\x0f\0\0\x12p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));let U=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),V=null!==(u=String.fromCodePoint)&&void 0!==u?u:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)};function Y(e){return e>=c.ZERO&&e<=c.NINE}(r=c||(c={}))[r.NUM=35]="NUM",r[r.SEMI=59]="SEMI",r[r.EQUALS=61]="EQUALS",r[r.ZERO=48]="ZERO",r[r.NINE=57]="NINE",r[r.LOWER_A=97]="LOWER_A",r[r.LOWER_F=102]="LOWER_F",r[r.LOWER_X=120]="LOWER_X",r[r.LOWER_Z=122]="LOWER_Z",r[r.UPPER_A=65]="UPPER_A",r[r.UPPER_F=70]="UPPER_F",r[r.UPPER_Z=90]="UPPER_Z",(i=d||(d={}))[i.VALUE_LENGTH=49152]="VALUE_LENGTH",i[i.BRANCH_LENGTH=16256]="BRANCH_LENGTH",i[i.JUMP_TABLE=127]="JUMP_TABLE",(o=h||(h={}))[o.EntityStart=0]="EntityStart",o[o.NumericStart=1]="NumericStart",o[o.NumericDecimal=2]="NumericDecimal",o[o.NumericHex=3]="NumericHex",o[o.NamedEntity=4]="NamedEntity",(s=f||(f={}))[s.Legacy=0]="Legacy",s[s.Strict=1]="Strict",s[s.Attribute=2]="Attribute";class G{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=h.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=f.Strict}startEntity(e){this.decodeMode=e,this.state=h.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case h.EntityStart:if(e.charCodeAt(t)===c.NUM)return this.state=h.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=h.NamedEntity,this.stateNamedEntity(e,t);case h.NumericStart:return this.stateNumericStart(e,t);case h.NumericDecimal:return this.stateNumericDecimal(e,t);case h.NumericHex:return this.stateNumericHex(e,t);case h.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===c.LOWER_X?(this.state=h.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=h.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){let i=n-t;
4this.result=this.result*Math.pow(r,i)+parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){let n=t;for(;t<e.length;){var r;let i=e.charCodeAt(t);if(!Y(i)&&(!((r=i)>=c.UPPER_A)||!(r<=c.UPPER_F))&&(!(r>=c.LOWER_A)||!(r<=c.LOWER_F)))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(i,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){let n=t;for(;t<e.length;){let r=e.charCodeAt(t);if(!Y(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n,r,i;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===c.SEMI)this.consumed+=1;else if(this.decodeMode===f.Strict)return 0;return this.emitCodePoint((r=this.result)>=55296&&r<=57343||r>1114111?65533:null!==(i=U.get(r))&&void 0!==i?i:r,this.consumed),this.errors&&(e!==c.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],i=(r&d.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let o=e.charCodeAt(t);if(this.treeIndex=function(e,t,n,r){let i=(t&d.BRANCH_LENGTH)>>7,o=t&d.JUMP_TABLE;if(0===i)return 0!==o&&r===o?n:-1;if(o){let t=r-o;return t<0||t>=i?-1:e[n+t]-1}let s=n,a=s+i-1;for(;s<=a;){let t=s+a>>>1,n=e[t];if(n<r)s=t+1;else{if(!(n>r))return e[t+i];a=t-1}}return -1}(n,r,this.treeIndex+Math.max(1,i),o),this.treeIndex<0)return 0===this.result||this.decodeMode===f.Attribute&&(0===i||function(e){var t;return e===c.EQUALS||(t=e)>=c.UPPER_A&&t<=c.UPPER_Z||t>=c.LOWER_A&&t<=c.LOWER_Z||Y(t)}(o))?0:this.emitNotTerminatedNamedEntity();if(0!=(i=((r=n[this.treeIndex])&d.VALUE_LENGTH)>>14)){if(o===c.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==f.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&d.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~d.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case h.NamedEntity:return 0!==this.result&&(this.decodeMode!==f.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case h.NumericDecimal:return this.emitNumericEntity(0,2);case h.NumericHex:return this.emitNumericEntity(0,3);case h.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case h.EntityStart:return 0}}}function J(e){let t="",n=new G(e,e=>t+=V(e));return function(e,r){let i=0,o=0;for(;(o=e.indexOf("&",o))>=0;){t+=e.slice(i,o),n.startEntity(r);let s=n.write(e,o+1);if(s<0){i=o+n.end();break}i=o+s,o=0===s?i+1:i}let s=t+e.slice(i);return t="",s}}let X=J(Z);function K(e,t=f.Legacy){return X(e,t)}J(q);let Q=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);function ee(e,t){return function(n){let r;let i=0,o="";for(;r=e.exec(n);)i!==r.index&&(o+=n.substring(i,r.index)),o+=t.get(r[0].charCodeAt(0)),i=r.index+1;return o+n.substring(i)}}function et(e){return"[object String]"===Object.prototype.toString.call(e)}null!=String.prototype.codePointAt||((e,t)=>(64512&e.charCodeAt(t))==55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t)),ee(/[&<>'"]/g,Q),ee(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),ee(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),(a=p||(p={}))[a.XML=0]="XML",a[a.HTML=1]="HTML",(l=m||(m={}))[l.UTF8=0]="UTF8",l[l.ASCII=1]="ASCII",l[l.Extensive=2]="Extensive",l[l.Attribute=3]="Attribute",l[l.Text=4]="Text";let en=Object.prototype.hasOwnProperty;function er(e,t){return en.call(e,t)}
4function ei(e){let t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){if(t){if("object"!=typeof t)throw TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}function eo(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function es(e){return(!(e>=55296)||!(e<=57343))&&(!(e>=64976)||!(e<=65007))&&(65535&e)!=65535&&(65535&e)!=65534&&(!(e>=0)||!(e<=8))&&11!==e&&(!(e>=14)||!(e<=31))&&(!(e>=127)||!(e<=159))&&!(e>1114111)}function ea(e){return e>65535?String.fromCharCode(55296+((e-=65536)>>10),56320+(1023&e)):String.fromCharCode(e)}let el=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,eu=RegExp(el.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),ec=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function ed(e){return 0>e.indexOf("\\")?e:e.replace(el,"$1")}function eh(e){return 0>e.indexOf("\\")&&0>e.indexOf("&")?e:e.replace(eu,function(e,t,n){return t||function(e,t){if(35===t.charCodeAt(0)&&ec.test(t)){let n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return es(n)?ea(n):e}let n=K(e);return n!==e?n:e}(e,n)})}let ef=/[&<>"]/,ep=/[&<>"]/g,em={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function eg(e){return em[e]}function eb(e){return ef.test(e)?e.replace(ep,eg):e}let ev=/[.?*+^$[\]\\(){}|-]/g;function ey(e){return e.replace(ev,"\\$&")}function ex(e){switch(e){case 9:case 32:return!0}return!1}function ek(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function ew(e){return j.test(e)||N.test(e)}function eC(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function e_(e){return(e=e.trim().replace(/\s+/g," ")).toLowerCase().toUpperCase()}let eA={mdurl:g,ucmicro:b};function eM(e,t,n){let r,i,o,s;let a=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<a;){if(93===(o=e.src.charCodeAt(e.pos))&&0==--r){i=!0;break}if(s=e.pos,e.md.inline.skipToken(e),91===o){if(s===e.pos-1)r++;else if(n)return e.pos=l,-1}}let u=-1;return i&&(u=e.pos),e.pos=l,u}function eS(e,t,n){let r;let i=t,o={ok:!1,pos:0,str:""};if(60===e.charCodeAt(i)){for(i++;i<n&&10!==(r=e.charCodeAt(i))&&60!==r;){if(62===r){o.pos=i+1,o.str=eh(e.slice(t+1,i)),o.ok=!0;break}if(92===r&&i+1<n){i+=2;continue}i++}return o}let s=0;for(;i<n&&32!==(r=e.charCodeAt(i))&&!(r<32)&&127!==r;){if(92===r&&i+1<n){if(32===e.charCodeAt(i+1))break;i+=2;continue}if(40===r&&++s>32)return o;if(41===r){if(0===s)break;s--}i++}return t===i||0!==s||(o.str=eh(e.slice(t,i)),o.pos=i,o.ok=!0),o}function eE(e,t,n,r){let i;let o=t,s={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)s.str=r.str,s.marker=r.marker;else{if(o>=n)return s;let r=e.charCodeAt(o);if(34!==r&&39!==r&&40!==r)return s;t++,o++,40===r&&(r=41),s.marker=r}for(;o<n;){if((i=e.charCodeAt(o))===s.marker)return s.pos=o+1,s.str+=eh(e.slice(t,o)),s.ok=!0,s;if(40===i&&41===s.marker)return s;92===i&&o+1<n&&o++,o++}return s.can_continue=!0,s.str+=eh(e.slice(t,o)),s}let eT={};function eD(){this.rules=ei({},eT)}function eL(){this.__rules__=[],this.__cache__=null}function eO(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}function eR(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}eT.code_inline=function(e,t,n,r,i){let o=e[t];return"<code"+i.renderAttrs(o)+">"+eb(o.content)+"</code>"},eT.code_block=function(e,t,n,r,i){let o=e[t];return"<pre"+i.renderAttrs(o)+"><code>"+eb(e[t].content)+"</code></pre>\n"},eT.fence=function(e,t,n,r,i){let o;let s=e[t],a=s.info?eh(s.info).trim():"",l="",u="";if(a){let e=a.split(/(\s+)/g);l=e[0],u=e.slice(2).join("")}if(0===(o=n.highlight&&n.highlight(s.content,l,u)||eb(s.content)).indexOf("<pre"))return o+"\n";if(a){let e=s.attrIndex("class"),t=s.attrs?s.attrs.slice():[];return e<0?t.push(["class",n.langPrefix+l]):(t[e]=t[e].slice(),t[e][1]+=" "+n.langPrefix+l),`<pre><code${i.renderAttrs({attrs:t})}>${o}</code></pre>
5`}return`<pre><code${i.renderAttrs(s)}>${o}</code></pre>
6`},eT.image=function(e,t,n,r,i){let o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},eT.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},eT.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},eT.text=function(e,t){return eb(e[t].content)},eT.html_block=function(e,t){return e[t].content},eT.html_inline=function(e,t){return e[t].content},eD.prototype.renderAttrs=function(e){let t,n,r;if(!e.attrs)return"";for(t=0,r="",n=e.attrs.length;t<n;t++)r+=" "+eb(e.attrs[t][0])+'="'+eb(e.attrs[t][1])+'"';return r},eD.prototype.renderToken=function(e,t,n){let r=e[t],i="";if(r.hidden)return"";r.block&&-1!==r.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===r.nesting?"</":"<")+r.tag+this.renderAttrs(r),0===r.nesting&&n.xhtmlOut&&(i+=" /");let o=!1;if(r.block&&(o=!0,1===r.nesting&&t+1<e.length)){let n=e[t+1];"inline"===n.type||n.hidden?o=!1:-1===n.nesting&&n.tag===r.tag&&(o=!1)}return i+(o?">\n":">")},eD.prototype.renderInline=function(e,t,n){let r="",i=this.rules;for(let o=0,s=e.length;o<s;o++){let s=e[o].type;void 0!==i[s]?r+=i[s](e,o,t,n,this):r+=this.renderToken(e,o,t)}return r},eD.prototype.renderInlineAsText=function(e,t,n){let r="";for(let i=0,o=e.length;i<o;i++)switch(e[i].type){case"text":case"html_inline":case"html_block":r+=e[i].c
6ontent;break;case"image":r+=this.renderInlineAsText(e[i].children,t,n);break;case"softbreak":case"hardbreak":r+="\n"}return r},eD.prototype.render=function(e,t,n){let r="",i=this.rules;for(let o=0,s=e.length;o<s;o++){let s=e[o].type;"inline"===s?r+=this.renderInline(e[o].children,t,n):void 0!==i[s]?r+=i[s](e,o,t,n,this):r+=this.renderToken(e,o,t,n)}return r},eL.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return -1},eL.prototype.__compile__=function(){let e=this,t=[""];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){0>t.indexOf(e)&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){!n.enabled||t&&0>n.alt.indexOf(t)||e.__cache__[t].push(n.fn)})})},eL.prototype.at=function(e,t,n){let r=this.__find__(e);if(-1===r)throw Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=(n||{}).alt||[],this.__cache__=null},eL.prototype.before=function(e,t,n,r){let i=this.__find__(e);if(-1===i)throw Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:(r||{}).alt||[]}),this.__cache__=null},eL.prototype.after=function(e,t,n,r){let i=this.__find__(e);if(-1===i)throw Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:(r||{}).alt||[]}),this.__cache__=null},eL.prototype.push=function(e,t,n){this.__rules__.push({name:e,enabled:!0,fn:t,alt:(n||{}).alt||[]}),this.__cache__=null},eL.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(function(e){let r=this.__find__(e);if(r<0){if(t)return;throw Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)},this),this.__cache__=null,n},eL.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},eL.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(function(e){let r=this.__find__(e);if(r<0){if(t)return;throw Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)},this),this.__cache__=null,n},eL.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},eO.prototype.attrIndex=function(e){if(!this.attrs)return -1;let t=this.attrs;for(let n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return -1},eO.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},eO.prototype.attrSet=function(e,t){let n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},eO.prototype.attrGet=function(e){let t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},eO.prototype.attrJoin=function(e,t){let n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},eR.prototype.Token=eO;let eF=/\r\n?|\n/g,ez=/\0/g,eI=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,eB=/\((c|tm|r)\)/i,ej=/\((c|tm|r)\)/ig,eN={c:"\xa9",r:"\xae",tm:"™"};function eP(e,t){return eN[t.toLowerCase()]}let eH=/['"]/,eW=/['"]/g;function e$(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}let eZ=[["normalize",function(e){let t;t=(t=e.src.replace(eF,"\n")).replace(ez,"�"),e.src=t}],["block",function(e){let t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}],["inline",function(e){let t=e.tokens;for(let n=0,r=t.length;n<r;n++){let r=t[n];"inline"===r.type&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}],["linkify",function(e){let t=e.tokens;if(e.md.options.linkify)for(let i=0,o=t.length;i<o;i++){if("inline"!==t[i].type||!e.md.linkify.pretest(t[i].content))continue;let o=t[i].children,s=0;for(let a=o.length-1;a>=0;a--){let l=o[a];if("link_close"===l.type){for(a--;o[a].level!==l.level&&"link_open"!==o[a].type;)a--;continue}if("html_inline"===l.type){var n,r;n=l.content,/^<a[>\s]/i.test(n)&&s>0&&s--,r=l.content,/^<\/a\s*>/i.test(r)&&s++}if(!(s>0)&&"text"===l.type&&e.md.linkify.test(l.content)){let n=l.content,r=e.md.linkify.match(n),s=[],u=l.level,c=0;r.length>0&&0===r[0].index&&a>0&&"text_special"===o[a-1].type&&(r=r.slice(1));for(let t=0;t<r.length;t++){let i=r[t].url,o=e.md.normalizeLink(i);if(!e.md.validateLink(o))continue;let a=r[t].text;a=r[t].schema?"mailto:"!==r[t].schema||/^mailto:/i.test(a)?e.md.normalizeLinkText(a):e.md.normalizeLinkText("mailto:"+a).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+a).replace(/^http:\/\//,"");let l=r[t].index;if(l>c){let t=new e.Token("text","",0);t.content=n.slice(c,l),t.level=u,s.push(t)}let d=new e.Token("link_open","a",1);d.attrs=[["href",o]],d.level=u++,d.markup="linkify",d.info="auto",s.push(d);let h=new e.Token("text","",0);h.content=a,h.level=u,s.push(h);let f=new e.Token("link_close","a",-1);f.level=--u,f.markup="linkify",f.info="auto",s.push(f),c=r[t].lastIndex}if(c<n.length){let t=new e.Token("text","",0);t.content=n.slice(c),t.level=u,s.push(t)}t[i].children=o=eo(o,a,s)}}}}],["replacements",function(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(eB.test(e.tokens[t].content)&&function(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];"text"!==r.type||t||(r.content=r.content.replace(ej,eP)),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}(e.tokens[t].children),eI.test(e.tokens[t].content)&&function(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];"text"===r.type&&!t&&eI.test(r.content)&&(r.content=r.content.replace(/\+-/g,"\xb1").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}(e.tokens[t].children))}],["smartquotes",function(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&eH.test(e.tokens[t].content)&&function(e,t){let n;let r=[];for(let i=0;i<e.length;i++){let o=e[i],s=e[i].level;for(n=r.length-1;n>=0&&!(r[n].level<=s);n--);if(r.length=n+1,"text"!==o.type)continue;let a=o.content,l=0,u=a.length;r:for(;l<u;){eW.lastIndex=l;let c=eW.exec(a);if(!c)break;let d=!0,h=!0;l=c.index+1;let f="'"===c[0],p=32;if(c.index-1>
6=0)p=a.charCodeAt(c.index-1);else for(n=i-1;n>=0&&"softbreak"!==e[n].type&&"hardbreak"!==e[n].type;n--)if(e[n].content){p=e[n].content.charCodeAt(e[n].content.length-1);break}let m=32;if(l<u)m=a.charCodeAt(l);else for(n=i+1;n<e.length&&"softbreak"!==e[n].type&&"hardbreak"!==e[n].type;n++)if(e[n].content){m=e[n].content.charCodeAt(0);break}let g=eC(p)||ew(String.fromCharCode(p)),b=eC(m)||ew(String.fromCharCode(m)),v=ek(p),y=ek(m);if(y?d=!1:b&&!(v||g)&&(d=!1),v?h=!1:g&&!(y||b)&&(h=!1),34===m&&'"'===c[0]&&p>=48&&p<=57&&(h=d=!1),d&&h&&(d=g,h=b),!d&&!h){f&&(o.content=e$(o.content,c.index,"’"));continue}if(h)for(n=r.length-1;n>=0;n--){let d=r[n];if(r[n].level<s)break;if(d.single===f&&r[n].level===s){let s,h;d=r[n],f?(s=t.md.options.quotes[2],h=t.md.options.quotes[3]):(s=t.md.options.quotes[0],h=t.md.options.quotes[1]),o.content=e$(o.content,c.index,h),e[d.token].content=e$(e[d.token].content,d.pos,s),l+=h.length-1,d.token===i&&(l+=s.length-1),u=(a=o.content).length,r.length=n;continue r}}d?r.push({token:i,pos:c.index,single:f,level:s}):h&&f&&(o.content=e$(o.content,c.index,"’"))}}}(e.tokens[t].children,e)}],["text_join",function(e){let t,n;let r=e.tokens,i=r.length;for(let e=0;e<i;e++){if("inline"!==r[e].type)continue;let i=r[e].children,o=i.length;for(t=0;t<o;t++)"text_special"===i[t].type&&(i[t].type="text");for(t=n=0;t<o;t++)"text"===i[t].type&&t+1<o&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}}]];function eq(){this.ruler=new eL;for(let e=0;e<eZ.length;e++)this.ruler.push(eZ[e][0],eZ[e][1])}function eU(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;let i=this.src;for(let e=0,t=0,n=0,r=0,o=i.length,s=!1;t<o;t++){let a=i.charCodeAt(t);if(!s){if(ex(a)){n++,9===a?r+=4-r%4:r++;continue}s=!0}(10===a||t===o-1)&&(10!==a&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(n),this.sCount.push(r),this.bsCount.push(0),s=!1,n=0,r=0,e=t+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}function eV(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function eY(e){let t=[],n=e.length,r=0,i=e.charCodeAt(r),o=!1,s=0,a="";for(;r<n;)124===i&&(o?(a+=e.substring(s,r-1),s=r):(t.push(a+e.substring(s,r)),a="",s=r+1)),o=92===i,r++,i=e.charCodeAt(r);return t.push(a+e.substring(s)),t}function eG(e,t){let n=e.eMarks[t],r=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(r++);return 42!==i&&45!==i&&43!==i||r<n&&!ex(e.src.charCodeAt(r))?-1:r}function eJ(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],i=n;if(i+1>=r)return -1;let o=e.src.charCodeAt(i++);if(o<48||o>57)return -1;for(;;){if(i>=r)return -1;if((o=e.src.charCodeAt(i++))>=48&&o<=57){if(i-n>=10)return -1;continue}if(41===o||46===o)break;return -1}return i<r&&!ex(o=e.src.charCodeAt(i))?-1:i}eq.prototype.process=function(e){let t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)},eq.prototype.State=eR,eU.prototype.push=function(e,t,n){let r=new eO(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},eU.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},eU.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},eU.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t&&ex(this.src.charCodeAt(e));e++);return e},eU.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!ex(this.src.charCodeAt(--e)))return e+1;return e},eU.prototype.skipChars=function(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},eU.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},eU.prototype.getLines=function(e,t,n,r){if(e>=t)return"";let i=Array(t-e);for(let o=0,s=e;s<t;s++,o++){let e,a=0,l=this.bMarks[s],u=l;for(e=s+1<t||r?this.eMarks[s]+1:this.eMarks[s];u<e&&a<n;
6){let e=this.src.charCodeAt(u);if(ex(e))9===e?a+=4-(a+this.bsCount[s])%4:a++;else if(u-l<this.tShift[s])a++;else break;u++}a>n?i[o]=Array(a-n+1).join(" ")+this.src.slice(u,e):i[o]=this.src.slice(u,e)}return i.join("")},eU.prototype.Token=eO;let eX="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",eK="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",eQ=RegExp("^(?:"+eX+"|"+eK+"|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),e0=RegExp("^(?:"+eX+"|"+eK+")"),e1=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[RegExp("^</?(address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?=(\\s|/?>|$))","i"),/^$/,!0],[RegExp(e0.source+"\\s*$"),/^$/,!1]],e2=[["table",function(e,t,n,r){let i;if(t+2>n)return!1;let o=t+1;if(e.sCount[o]<e.blkIndent||e.sCount[o]-e.blkIndent>=4)return!1;let s=e.bMarks[o]+e.tShift[o];if(s>=e.eMarks[o])return!1;let a=e.src.charCodeAt(s++);if(124!==a&&45!==a&&58!==a||s>=e.eMarks[o])return!1;let l=e.src.charCodeAt(s++);if(124!==l&&45!==l&&58!==l&&!ex(l)||45===a&&ex(l))return!1;for(;s<e.eMarks[o];){let t=e.src.charCodeAt(s);if(124!==t&&45!==t&&58!==t&&!ex(t))return!1;s++}let u=eV(e,t+1),c=u.split("|"),d=[];for(let e=0;e<c.length;e++){let t=c[e].trim();if(!t){if(0===e||e===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(t))return!1;58===t.charCodeAt(t.length-1)?d.push(58===t.charCodeAt(0)?"center":"right"):58===t.charCodeAt(0)?d.push("left"):d.push("")}if(-1===(u=eV(e,t).trim()).indexOf("|")||e.sCount[t]-e.blkIndent>=4)return!1;(c=eY(u)).length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop();let h=c.length;if(0===h||h!==d.length)return!1;if(r)return!0;let f=e.parentType;e.parentType="table";let p=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),g=[t,0];m.map=g,e.push("thead_open","thead",1).map=[t,t+1],e.push("tr_open","tr",1).map=[t,t+1];for(let t=0;t<c.length;t++){let n=e.push("th_open","th",1);d[t]&&(n.attrs=[["style","text-align:"+d[t]]]);let r=e.push("inline","",0);r.content=c[t].trim(),r.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let b=0;for(o=t+2;o<n&&!(e.sCount[o]<e.blkIndent);o++){let r=!1;for(let t=0,i=p.length;t<i;t++)if(p[t](e,o,n,!0)){r=!0;break}if(r||!(u=eV(e,o).trim())||e.sCount[o]-e.blkIndent>=4||((c=eY(u)).length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop(),(b+=h-c.length)>65536))break;o===t+2&&(e.push("tbody_open","tbody",1).map=i=[t+2,0]),e.push("tr_open","tr",1).map=[o,o+1];for(let t=0;t<h;t++){let n=e.push("td_open","td",1);d[t]&&(n.attrs=[["style","text-align:"+d[t]]]);let r=e.push("inline","",0);r.content=c[t]?c[t].trim():"",r.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return i&&(e.push("tbody_close","tbody",-1),i[1]=o),e.push("table_close","table",-1),g[1]=o,e.parentType=f,e.line=o,!0},["paragraph","reference"]],["code",function(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,i=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){i=++r;continue}break}e.line=i;let o=e.push("code_block","code",0);return o.content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0}],["fence",function(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>o)return!1;let s=e.src.charCodeAt(i);if(126!==s&&96!==s)return!1;let a=i,l=(i=e.skipChars(i,s))-a;if(l<3)return!1;let u=e.src.slice(a,i),c=e.src.slice(i,o);if(96===s&&c.indexOf(String.fromCharCode(s))>=0)return!1;if(r)return!0;let d=t,h=!1;for(;!(++d>=n)&&(!((i=a=e.bMarks[d]+e.tShift[d])<(o=e.eMarks[d]))||!(e.sCount[d]<e.blkIndent));
6)if(!(e.src.charCodeAt(i)!==s||e.sCount[d]-e.blkIndent>=4||(i=e.skipChars(i,s))-a<l||(i=e.skipSpaces(i))<o)){h=!0;break}l=e.sCount[t],e.line=d+(h?1:0);let f=e.push("fence","code",0);return f.info=c,f.content=e.getLines(t+1,d,l,!0),f.markup=u,f.map=[t,e.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(e,t,n,r){let i,o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t],a=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||62!==e.src.charCodeAt(o))return!1;if(r)return!0;let l=[],u=[],c=[],d=[],h=e.md.block.ruler.getRules("blockquote"),f=e.parentType;e.parentType="blockquote";let p=!1;for(i=t;i<n;i++){let t=e.sCount[i]<e.blkIndent;if((o=e.bMarks[i]+e.tShift[i])>=(s=e.eMarks[i]))break;if(62===e.src.charCodeAt(o++)&&!t){let t,n,r=e.sCount[i]+1;32===e.src.charCodeAt(o)?(o++,r++,n=!1,t=!0):9===e.src.charCodeAt(o)?(t=!0,(e.bsCount[i]+r)%4==3?(o++,r++,n=!1):n=!0):t=!1;let a=r;for(l.push(e.bMarks[i]),e.bMarks[i]=o;o<s;){let t=e.src.charCodeAt(o);if(ex(t))9===t?a+=4-(a+e.bsCount[i]+(n?1:0))%4:a++;else break;o++}p=o>=s,u.push(e.bsCount[i]),e.bsCount[i]=e.sCount[i]+1+(t?1:0),c.push(e.sCount[i]),e.sCount[i]=a-r,d.push(e.tShift[i]),e.tShift[i]=o-e.bMarks[i];continue}if(p)break;let r=!1;for(let t=0,o=h.length;t<o;t++)if(h[t](e,i,n,!0)){r=!0;break}if(r){e.lineMax=i,0!==e.blkIndent&&(l.push(e.bMarks[i]),u.push(e.bsCount[i]),d.push(e.tShift[i]),c.push(e.sCount[i]),e.sCount[i]-=e.blkIndent);break}l.push(e.bMarks[i]),u.push(e.bsCount[i]),d.push(e.tShift[i]),c.push(e.sCount[i]),e.sCount[i]=-1}let m=e.blkIndent;e.blkIndent=0;let g=e.push("blockquote_open","blockquote",1);g.markup=">";let b=[t,0];g.map=b,e.md.block.tokenize(e,t,i),e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=a,e.parentType=f,b[1]=e.line;for(let n=0;n<d.length;n++)e.bMarks[n+t]=l[n],e.tShift[n+t]=d[n],e.sCount[n+t]=c[n],e.bsCount[n+t]=u[n];return e.blkIndent=m,!0},["paragraph","reference","blockquote","list"]],["hr",function(e,t,n,r){let i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.bMarks[t]+e.tShift[t],s=e.src.charCodeAt(o++);if(42!==s&&45!==s&&95!==s)return!1;let a=1;for(;o<i;){let t=e.src.charCodeAt(o++);if(t!==s&&!ex(t))return!1;t===s&&a++}if(a<3)return!1;if(r)return!0;e.line=t+1;let l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(a+1).join(String.fromCharCode(s)),!0},["paragraph","reference","blockquote","list"]],["list",function(e,t,n,r){let i,o,s,a,l,u,c;let d=t,h=!0;if(e.sCount[d]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[d]-e.listIndent>=4&&e.sCount[d]<e.blkIndent)return!1;let f=!1;if(r&&"paragraph"===e.parentType&&e.sCount[d]>=e.blkIndent&&(f=!0),(c=eJ(e,d))>=0){if(l=!0,s=e.bMarks[d]+e.tShift[d],u=Number(e.src.slice(s,c-1)),f&&1!==u)return!1}else{if(!((c=eG(e,d))>=0))return!1;l=!1}if(f&&e.skipSpaces(c)>=e.eMarks[d])return!1;if(r)return!0;let p=e.src.charCodeAt(c-1),m=e.tokens.length;l?(a=e.push("ordered_list_open","ol",1),1!==u&&(a.attrs=[["start",u]])):a=e.push("bullet_list_open","ul",1);let g=[d,0];a.map=g,a.markup=String.fromCharCode(p);let b=!1,v=e.md.block.ruler.getRules("list"),y=e.parentType;for(e.parentType="list";d<n;){let t;o=c,i=e.eMarks[d];let r=e.sCount[d]+c-(e.bMarks[d]+e.tShift[d]),u=r;for(;o<i;){let t=e.src.charCodeAt(o);if(9===t)u+=4-(u+e.bsCount[d])%4;else if(32===t)u++;else break;o++}let f=o;(t=f>=i?1:u-r)>4&&(t=1);let m=r+t;(a=e.push("list_item_open","li",1)).markup=String.fromCharCode(p);let g=[d,0];a.map=g,l&&(a.info=e.src.slice(s,c-1));let y=e.tight,x=e.tShift[d],k=e.sCount[d],w=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=m,e.tight=!0,e.tShift[d]=f-e.bMarks[d],e.sCount[d]=u,f>=i&&e.isEmpty(d+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,d,n,!0),(!e.tight||b)&&(h=!1),b=e.line-d>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=w,e.tShift[d]=x,e.sCount[d]=k,e.tight=y,(a=e.push("list_item_close","li",-1)).markup=String.fromCharCode(p),d=e.line,g[1]=d,d>=n||e.sCount[d]<e.blkIndent||e.sCount[d]-e.blkIndent>=4)break;let C=!1;for(let t=0,r=v.length;t<r;t++)if(v[t](e,d,n,!0)){C=!0;break}if(C)break;if(l){if((c=eJ(e,d))<0)break;s=e.bMarks[d]+e.tShift[d]}else if((c=eG(e,d))<0)break;
6if(p!==e.src.charCodeAt(c-1))break}return(a=l?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(p),g[1]=d,e.line=d,e.parentType=y,h&&function(e,t){let n=e.level+2;for(let r=t+2,i=e.tokens.length-2;r<i;r++)e.tokens[r].level===n&&"paragraph_open"===e.tokens[r].type&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}(e,m),!0},["paragraph","reference","blockquote"]],["reference",function(e,t,n,r){let i,o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t],a=t+1;if(e.sCount[t]-e.blkIndent>=4||91!==e.src.charCodeAt(o))return!1;function l(t){let n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){let r=e.md.block.ruler.getRules("reference"),i=e.parentType;e.parentType="reference";let o=!1;for(let i=0,s=r.length;i<s;i++)if(r[i](e,t,n,!0)){o=!0;break}if(e.parentType=i,o)return null}let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];return e.src.slice(i,o+1)}let u=e.src.slice(o,s+1);s=u.length;let c=-1;for(o=1;o<s;o++){let e=u.charCodeAt(o);if(91===e)return!1;if(93===e){c=o;break}if(10===e){let e=l(a);null!==e&&(u+=e,s=u.length,a++)}else if(92===e&&++o<s&&10===u.charCodeAt(o)){let e=l(a);null!==e&&(u+=e,s=u.length,a++)}}if(c<0||58!==u.charCodeAt(c+1))return!1;for(o=c+2;o<s;o++){let e=u.charCodeAt(o);if(10===e){let e=l(a);null!==e&&(u+=e,s=u.length,a++)}else if(ex(e));else break}let d=e.md.helpers.parseLinkDestination(u,o,s);if(!d.ok)return!1;let h=e.md.normalizeLink(d.str);if(!e.md.validateLink(h))return!1;let f=o=d.pos,p=a,m=o;for(;o<s;o++){let e=u.charCodeAt(o);if(10===e){let e=l(a);null!==e&&(u+=e,s=u.length,a++)}else if(ex(e));else break}let g=e.md.helpers.parseLinkTitle(u,o,s);for(;g.can_continue;){let t=l(a);if(null===t)break;u+=t,o=s,s=u.length,a++,g=e.md.helpers.parseLinkTitle(u,o,s,g)}for(o<s&&m!==o&&g.ok?(i=g.str,o=g.pos):(i="",o=f,a=p);o<s&&ex(u.charCodeAt(o));)o++;if(o<s&&10!==u.charCodeAt(o)&&i)for(i="",o=f,a=p;o<s&&ex(u.charCodeAt(o));)o++;if(o<s&&10!==u.charCodeAt(o))return!1;let b=e_(u.slice(1,c));return!!b&&(!!r||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[b]&&(e.env.references[b]={title:i,href:h}),e.line=a,!0))}],["html_block",function(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||60!==e.src.charCodeAt(i))return!1;let s=e.src.slice(i,o),a=0;for(;a<e1.length&&!e1[a][0].test(s);a++);if(a===e1.length)return!1;if(r)return e1[a][2];let l=t+1;if(!e1[a][1].test(s)){for(;l<n&&!(e.sCount[l]<e.blkIndent);l++)if(i=e.bMarks[l]+e.tShift[l],o=e.eMarks[l],s=e.src.slice(i,o),e1[a][1].test(s)){0!==s.length&&l++;break}}e.line=l;let u=e.push("html_block","",0);return u.map=[t,l],u.content=e.getLines(t,l,e.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.src.charCodeAt(i);if(35!==s||i>=o)return!1;let a=1;for(s=e.src.charCodeAt(++i);35===s&&i<o&&a<=6;)a++,s=e.src.charCodeAt(++i);if(a>6||i<o&&!ex(s))return!1;if(r)return!0;o=e.skipSpacesBack(o,i);let l=e.skipCharsBack(o,35,i);l>i&&ex(e.src.charCodeAt(l-1))&&(o=l),e.line=t+1;let u=e.push("heading_open","h"+String(a),1);u.markup="########".slice(0,a),u.map=[t,e.line];let c=e.push("inline","",0);return c.content=e.src.slice(i,o).trim(),c.map=[t,e.line],c.children=[],e.push("heading_close","h"+String(a),-1).markup="########".slice(0,a),!0},["paragraph","reference","blockquote"]],["lheading",function(e,t,n){let r;let i=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.parentType;e.parentType="paragraph";let s=0,a=t+1;for(;a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3)continue;if(e.sCount[a]>=e.blkIndent){let t=e.bMarks[a]+e.tShift[a],n=e.eMarks[a];if(t<n&&(45===(r=e.src.charCodeAt(t))||61===r)&&(t=e.skipChars(t,r),(t=e.skipSpaces(t))>=n)){s=61===r?1:2;break}}if(e.sCount[a]<0)continue;let t=!1;for(let r=0,o=i.length;r<o;r++)if(i[r](e,a,n,!0)){t=!0;break}if(t)break}if(!s)return!1;let l=e.getLines(t,a,e.blkIndent,!1).trim();e.line=a+1;let u=e.push("heading_open","h"+String(s),1);u.markup=String.fromCharCode(r),u.map=[t,e.line];let c=e.push("inline","",0);return c.content=l,c.map=[t,e.line-1],c.children=[],e.push("heading_close","h"+String(s),-1).markup=String.fromCharCode(r),e.parentType=
6o,!0}],["paragraph",function(e,t,n){let r=e.md.block.ruler.getRules("paragraph"),i=e.parentType,o=t+1;for(e.parentType="paragraph";o<n&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3||e.sCount[o]<0)continue;let t=!1;for(let i=0,s=r.length;i<s;i++)if(r[i](e,o,n,!0)){t=!0;break}if(t)break}let s=e.getLines(t,o,e.blkIndent,!1).trim();e.line=o,e.push("paragraph_open","p",1).map=[t,e.line];let a=e.push("inline","",0);return a.content=s,a.map=[t,e.line],a.children=[],e.push("paragraph_close","p",-1),e.parentType=i,!0}]];function e3(){this.ruler=new eL;for(let e=0;e<e2.length;e++)this.ruler.push(e2[e][0],e2[e][1],{alt:(e2[e][2]||[]).slice()})}function e5(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}e3.prototype.tokenize=function(e,t,n){let r=this.ruler.getRules(""),i=r.length,o=e.md.options.maxNesting,s=t,a=!1;for(;s<n&&(e.line=s=e.skipEmptyLines(s),!(s>=n)&&!(e.sCount[s]<e.blkIndent));){if(e.level>=o){e.line=n;break}let t=e.line,l=!1;for(let o=0;o<i;o++)if(l=r[o](e,s,n,!1)){if(t>=e.line)throw Error("block rule didn't increment state.line");break}if(!l)throw Error("none of the block rules matched");e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),(s=e.line)<n&&e.isEmpty(s)&&(a=!0,s++,e.line=s)}},e3.prototype.parse=function(e,t,n,r){if(!e)return;let i=new this.State(e,t,n,r);this.tokenize(i,i.line,i.lineMax)},e3.prototype.State=eU,e5.prototype.pushPending=function(){let e=new eO("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},e5.prototype.push=function(e,t,n){this.pending&&this.pushPending();let r=new eO(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},e5.prototype.scanDelims=function(e,t){let n=this.posMax,r=this.src.charCodeAt(e),i=e>0?this.src.charCodeAt(e-1):32,o=e;for(;o<n&&this.src.charCodeAt(o)===r;)o++;let s=o-e,a=o<n?this.src.charCodeAt(o):32,l=eC(i)||ew(String.fromCharCode(i)),u=eC(a)||ew(String.fromCharCode(a)),c=ek(i),d=ek(a),h=!d&&(!u||c||l),f=!c&&(!l||d||u);return{can_open:h&&(t||!f||l),can_close:f&&(t||!h||u),length:s}},e5.prototype.Token=eO;let e6=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,e8=[];for(let e=0;e<256;e++)e8.push(0);function e4(e,t){let n;let r=[],i=t.length;for(let o=0;o<i;o++){let i=t[o];if(126!==i.marker||-1===i.end)continue;let s=t[i.end];(n=e.tokens[i.token]).type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",(n=e.tokens[s.token]).type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="","text"===e.tokens[s.token-1].type&&"~"===e.tokens[s.token-1].content&&r.push(s.token-1)}for(;r.length;){let t=r.pop(),i=t+1;for(;i<e.tokens.length&&"s_close"===e.tokens[i].type;)i++;t!==--i&&(n=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=n)}}function e7(e,t){let n=t.length;for(let r=n-1;r>=0;r--){let n=t[r];if(95!==n.marker&&42!==n.marker||-1===n.end)continue;let i=t[n.end],o=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===i.token+1,s=String.fromCharCode(n.marker),a=e.tokens[n.token];a.type=o?"strong_open":"em_open",a.tag=o?"strong":"em",a.nesting=1,a.markup=o?s+s:s,a.content="";let l=e.tokens[i.token];l.type=o?"strong_close":"em_close",l.tag=o?"strong":"em",l.nesting=-1,l.markup=o?s+s:s,l.content="",o&&(e.tokens[t[r-1].token].content="",e.tokens[t[n.end+1].token].content="",r--)}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){e8[e.charCodeAt(0)]=1});let e9=/^([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])?)*)$/,te=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/,tt=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,tn=/^&([a-z][a-z0-9]{1,31});/i;function tr(e){let t={},n=e.length;if(!n)return;let r=0,i=-2,o=[];for(let s=0;s<n;s++){let n=e[s];if(o.push(0),(e[r].marker!==n.marker||i!==n.token-1)&&(r=s),i=n.token,n.length=n.length||0,!n.close)continue;t.hasOwnProperty(n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);let a=t[n.marker][(n.open?3:0)+n.length%3],l=r-o[r]-1,u=l;for(;l>a;l-=o[l]+1){let t=e[l];if(t.marker===n.marker&&t.open&&t.end<0){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3!=0||n.length%3!=0)&&(r=!0),!r){let r=l>0&&!e[l-1].open?o[l-1]+1:0;o[s]=s-l+r,o[l]=r,n.open=!1,t.end=s,t.close=!1,u=-1,i=-2;break}}}-1!==u&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=u)}}let ti=[["text",function(e,t){let n=e.pos;for(;n<e.posMax&&!function(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 
661:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}],["linkify",function(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let n=e.pos;if(n+3>e.posMax||58!==e.src.charCodeAt(n)||47!==e.src.charCodeAt(n+1)||47!==e.src.charCodeAt(n+2))return!1;let r=e.pending.match(e6);if(!r)return!1;let i=r[1],o=e.md.linkify.matchAtStart(e.src.slice(n-i.length));if(!o)return!1;let s=o.url;if(s.length<=i.length)return!1;s=s.replace(/\*+$/,"");let a=e.md.normalizeLink(s);if(!e.md.validateLink(a))return!1;if(!t){e.pending=e.pending.slice(0,-i.length);let t=e.push("link_open","a",1);t.attrs=[["href",a]],t.markup="linkify",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(s);let n=e.push("link_close","a",-1);n.markup="linkify",n.info="auto"}return e.pos+=s.length-i.length,!0}],["newline",function(e,t){let n=e.pos;if(10!==e.src.charCodeAt(n))return!1;let r=e.pending.length-1,i=e.posMax;if(!t){if(r>=0&&32===e.pending.charCodeAt(r)){if(r>=1&&32===e.pending.charCodeAt(r-1)){let t=r-1;for(;t>=1&&32===e.pending.charCodeAt(t-1);)t--;e.pending=e.pending.slice(0,t),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)}else e.push("softbreak","br",0)}for(n++;n<i&&ex(e.src.charCodeAt(n));)n++;return e.pos=n,!0}],["escape",function(e,t){let n=e.pos,r=e.posMax;if(92!==e.src.charCodeAt(n)||++n>=r)return!1;let i=e.src.charCodeAt(n);if(10===i){for(t||e.push("hardbreak","br",0),n++;n<r&&ex(i=e.src.charCodeAt(n));)n++;return e.pos=n,!0}let o=e.src[n];if(i>=55296&&i<=56319&&n+1<r){let t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(o+=e.src[n+1],n++)}let s="\\"+o;if(!t){let t=e.push("text_special","",0);i<256&&0!==e8[i]?t.content=o:t.content=s,t.markup=s,t.info="escape"}return e.pos=n+1,!0}],["backticks",function(e,t){let n,r=e.pos;if(96!==e.src.charCodeAt(r))return!1;let i=r;r++;let o=e.posMax;for(;r<o&&96===e.src.charCodeAt(r);)r++;let s=e.src.slice(i,r),a=s.length;if(e.backticksScanned&&(e.backticks[a]||0)<=i)return t||(e.pending+=s),e.pos+=a,!0;let l=r;
6for(;-1!==(n=e.src.indexOf("`",l));){for(l=n+1;l<o&&96===e.src.charCodeAt(l);)l++;let i=l-n;if(i===a){if(!t){let t=e.push("code_inline","code",0);t.markup=s,t.content=e.src.slice(r,n).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[i]=n}return e.backticksScanned=!0,t||(e.pending+=s),e.pos+=a,!0}],["strikethrough",function(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||126!==r)return!1;let i=e.scanDelims(e.pos,!0),o=i.length,s=String.fromCharCode(r);if(o<2)return!1;o%2&&(e.push("text","",0).content=s,o--);for(let t=0;t<o;t+=2)e.push("text","",0).content=s+s,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}],["emphasis",function(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||95!==r&&42!==r)return!1;let i=e.scanDelims(e.pos,42===r);for(let t=0;t<i.length;t++)e.push("text","",0).content=String.fromCharCode(r),e.delimiters.push({marker:r,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}],["link",function(e,t){let n,r,i,o;let s="",a="",l=e.pos,u=!0;if(91!==e.src.charCodeAt(e.pos))return!1;let c=e.pos,d=e.posMax,h=e.pos+1,f=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(f<0)return!1;let p=f+1;if(p<d&&40===e.src.charCodeAt(p)){for(u=!1,p++;p<d&&(ex(n=e.src.charCodeAt(p))||10===n);p++);if(p>=d)return!1;if(l=p,(i=e.md.helpers.parseLinkDestination(e.src,p,e.posMax)).ok){for(s=e.md.normalizeLink(i.str),e.md.validateLink(s)?p=i.pos:s="",l=p;p<d&&(ex(n=e.src.charCodeAt(p))||10===n);p++);if(i=e.md.helpers.parseLinkTitle(e.src,p,e.posMax),p<d&&l!==p&&i.ok)for(a=i.str,p=i.pos;p<d&&(ex(n=e.src.charCodeAt(p))||10===n);p++);}(p>=d||41!==e.src.charCodeAt(p))&&(u=!0),p++}if(u){if(void 0===e.env.references)return!1;if(p<d&&91===e.src.charCodeAt(p)?(l=p+1,(p=e.md.helpers.parseLinkLabel(e,p))>=0?r=e.src.slice(l,p++):p=f+1):p=f+1,r||(r=e.src.slice(h,f)),!(o=e.env.references[e_(r)]))return e.pos=c,!1;s=o.href,a=o.title}if(!t){e.pos=h,e.posMax=f;let t=e.push("link_open","a",1),n=[["href",s]];t.attrs=n,a&&n.push(["title",a]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=p,e.posMax=d,!0}],["image",function(e,t){let n,r,i,o,s,a,l,u;let c="",d=e.pos,h=e.posMax;if(33!==e.src.charCodeAt(e.pos)||91!==e.src.charCodeAt(e.pos+1))return!1;let f=e.pos+2,p=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(p<0)return!1;if((o=p+1)<h&&40===e.src.charCodeAt(o)){for(o++;o<h&&(ex(n=e.src.charCodeAt(o))||10===n);o++);if(o>=h)return!1;for(u=o,(a=e.md.helpers.parseLinkDestination(e.src,o,e.posMax)).ok&&(c=e.md.normalizeLink(a.str),e.md.validateLink(c)?o=a.pos:c=""),u=o;o<h&&(ex(n=e.src.charCodeAt(o))||10===n);o++);if(a=e.md.helpers.parseLinkTitle(e.src,o,e.posMax),o<h&&u!==o&&a.ok)for(l=a.str,o=a.pos;o<h&&(ex(n=e.src.charCodeAt(o))||10===n);o++);else l="";if(o>=h||41!==e.src.charCodeAt(o))return e.pos=d,!1;o++}else{if(void 0===e.env.references)return!1;if(o<h&&91===e.src.charCodeAt(o)?(u=o+1,(o=e.md.helpers.parseLinkLabel(e,o))>=0?i=e.src.slice(u,o++):o=p+1):o=p+1,i||(i=e.src.slice(f,p)),!(s=e.env.references[e_(i)]))return e.pos=d,!1;c=s.href,l=s.title}if(!t){r=e.src.slice(f,p);let t=[];e.md.inline.parse(r,e.md,e.env,t);let n=e.push("image","img",0),i=[["src",c],["alt",""]];n.attrs=i,n.children=t,n.content=r,l&&i.push(["title",l])}return e.pos=o,e.posMax=h,!0}],["autolink",function(e,t){let n=e.pos;if(60!==e.src.charCodeAt(n))return!1;let r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;let t=e.src.charCodeAt(n);if(60===t)return!1;if(62===t)break}let o=e.src.slice(r+1,n);if(te.test(o)){let n=e.md.normalizeLink(o);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(o);let r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=o.length+2,!0}if(e9.test(o)){let n=e.md.normalizeLink("mailto:"+o);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(o);let r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=o.length+2,!0}return!1}],["html_inline",function(e,t){if(!e.md.options.html)return!1;
6let n=e.posMax,r=e.pos;if(60!==e.src.charCodeAt(r)||r+2>=n)return!1;let i=e.src.charCodeAt(r+1);if(33!==i&&63!==i&&47!==i&&!function(e){let t=32|e;return t>=97&&t<=122}(i))return!1;let o=e.src.slice(r).match(eQ);if(!o)return!1;if(!t){var s,a;let t=e.push("html_inline","",0);t.content=o[0],s=t.content,/^<a[>\s]/i.test(s)&&e.linkLevel++,a=t.content,/^<\/a\s*>/i.test(a)&&e.linkLevel--}return e.pos+=o[0].length,!0}],["entity",function(e,t){let n=e.pos,r=e.posMax;if(38!==e.src.charCodeAt(n)||n+1>=r)return!1;if(35===e.src.charCodeAt(n+1)){let r=e.src.slice(n).match(tt);if(r){if(!t){let t="x"===r[1][0].toLowerCase()?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push("text_special","",0);n.content=es(t)?ea(t):ea(65533),n.markup=r[0],n.info="entity"}return e.pos+=r[0].length,!0}}else{let r=e.src.slice(n).match(tn);if(r){let n=K(r[0]);if(n!==r[0]){if(!t){let t=e.push("text_special","",0);t.content=n,t.markup=r[0],t.info="entity"}return e.pos+=r[0].length,!0}}}return!1}]],to=[["balance_pairs",function(e){let t=e.tokens_meta,n=e.tokens_meta.length;tr(e.delimiters);for(let e=0;e<n;e++)t[e]&&t[e].delimiters&&tr(t[e].delimiters)}],["strikethrough",function(e){let t=e.tokens_meta,n=e.tokens_meta.length;e4(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&e4(e,t[r].delimiters)}],["emphasis",function(e){let t=e.tokens_meta,n=e.tokens_meta.length;e7(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&e7(e,t[r].delimiters)}],["fragments_join",function(e){let t,n;let r=0,i=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,"text"===i[t].type&&t+1<o&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}]];function ts(){this.ruler=new eL;for(let e=0;e<ti.length;e++)this.ruler.push(ti[e][0],ti[e][1]);this.ruler2=new eL;for(let e=0;e<to.length;e++)this.ruler2.push(to[e][0],to[e][1])}function ta(e){let t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function tl(e){return Object.prototype.toString.call(e)}function tu(e){return"[object Function]"===tl(e)}function tc(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}ts.prototype.skipToken=function(e){let t=e.pos,n=this.ruler.getRules(""),r=n.length,i=e.md.options.maxNesting,o=e.cache;if(void 0!==o[t]){e.pos=o[t];return}let s=!1;if(e.level<i){for(let i=0;i<r;
6i++)if(e.level++,s=n[i](e,!0),e.level--,s){if(t>=e.pos)throw Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;!s&&e.pos++,o[t]=e.pos},ts.prototype.tokenize=function(e){let t=this.ruler.getRules(""),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos<r;){let o=e.pos,s=!1;if(e.level<i){for(let r=0;r<n;r++)if(s=t[r](e,!1)){if(o>=e.pos)throw Error("inline rule didn't increment state.pos");break}}if(s){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},ts.prototype.parse=function(e,t,n,r){let i=new this.State(e,t,n,r);this.tokenize(i);let o=this.ruler2.getRules(""),s=o.length;for(let e=0;e<s;e++)o[e](i)},ts.prototype.State=e5;let td={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},th={"http:":{validate:function(e,t,n){let r=e.slice(t);return(n.re.http||(n.re.http=RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r))?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){let r=e.slice(t);return(n.re.no_http||(n.re.no_http=RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r))?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){let r=e.slice(t);return(n.re.mailto||(n.re.mailto=RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r))?r.match(n.re.mailto)[0].length:0}}},tf="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function tp(){return function(e,t){t.normalize(e)}}function tm(e){let t=e.re=function(e){let t={};e=e||{},t.src_Any=P.source,t.src_Cc=H.source,t.src_Z=$.source,t.src_P=j.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");let n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:
6/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}(e.__opts__),n=e.__tlds__.slice();function r(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),n.push(t.src_xn),t.src_tlds=n.join("|"),t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");let i=[];function o(e,t){throw Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){let n=e.__schemas__[t];if(null===n)return;let r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===tl(n)){if("[object RegExp]"===tl(n.validate)){var s;r.validate=(s=n.validate,function(e,t){let n=e.slice(t);return s.test(n)?n.match(s)[0].length:0})}else tu(n.validate)?r.validate=n.validate:o(t,n);tu(n.normalize)?r.normalize=n.normalize:n.normalize?o(t,n):r.normalize=tp();return}if("[object String]"===tl(n)){i.push(t);return}o(t,n)}
6),i.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:tp()};let s=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(tc).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),e.__index__=-1,e.__text_cache__=""}function tg(e,t){let n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function tb(e,t){let n=new tg(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function tv(e,t){if(!(this instanceof tv))return new tv(e,t);!t&&Object.keys(e||{}).reduce(function(e,t){return e||td.hasOwnProperty(t)},!1)&&(t=e,e={}),this.__opts__=ta({},td,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=ta({},th,e),this.__compiled__={},this.__tlds__=tf,this.__tlds_replaced__=!1,this.re={},tm(this)}tv.prototype.add=function(e,t){return this.__schemas__[e]=t,tm(this),this},tv.prototype.set=function(e){return this.__opts__=ta(this.__opts__,e),this},tv.prototype.test=function(e){let t,n,r,i,o,s,a,l;if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;if(this.re.schema_test.test(e)){for((a=this.re.schema_search).lastIndex=0;null!==(t=a.exec(e));)if(i=this.testSchemaAt(e,t[2],a.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,s=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=s)),this.__index__>=0},tv.prototype.pretest=function(e){return this.re.pretest.test(e)},tv.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},tv.prototype.match=function(e){let t=[],n=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(tb(this,n)),n=this.__last_index__);let r=n?e.slice(n):e;for(;this.test(r);)t.push(tb(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return t.length?t:null},tv.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;let t=this.re.schema_at_start.exec(e);if(!t)return null;let n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,tb(this,0)):null},tv.prototype.tlds=function(e,t){return(e=Array.isArray(e)?e:[e],t)?this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse():(this.__tlds__=e.slice(),this.__tlds_replaced__=!0),tm(this),this},tv.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},tv.prototype.onCompile=function(){};let ty=/^xn--/,tx=/[^\0-\x7F]/,tk=/[\x2E\u3002\uFF0E\uFF61]/g,tw={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},tC=Math.floor,t_=String.fromCharCode;function tA(e){throw RangeError(tw[e])}function tM(e,t){let n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+(function(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n})((e=e.replace(tk,".")).split("."),t).join(".")}let tS=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},tE=function(e,t,n){let r=0;for(e=n?tC(e/700):e>>1,e+=tC(e/t);e>455;r+=36)e=tC(e/35);return tC(r+36*e/(e+38))},tT=function(e){let t=[],n=e.length,r=0,i=128,o=72,s=e.lastIndexOf("-");s<0&&(s=0);for(let n=0;n<s;++n)e.charCodeAt(n)>=128&&tA("not-basic"),t.push(e.charCodeAt(n));for(let l=s>0?s+1:0;l<n;){let s=r;for(let t=1,i=36;;i+=36){var a;l>=n&&tA("invalid-input");let s=(a=e.charCodeAt(l++))>=48&&a<58?26+(a-48):a>=65&&a<91?a-65:a>=97&&a<123?a-97:36;s>=36&&tA("invalid-input"),s>tC((2147483647-r)/t)&&tA("overflow"),r+=s*t;let u=i<=o?1:i>=o+26?26:i-o;if(s<u)break;let c=36-u;t>tC(2147483647/c)&&tA("overflow"),t*=c}let u=t.length+1;o=tE(r-s,u,0==s),tC(r/u)>2147483647-i&&tA("overflow"),i+=tC(r/u),r%=u,t.splice(r++,0,i)}return String.fromCodePoint(...t)},tD=function(e){let t=[],n=(e=function(e){let t=[],n=0,r=e.length;for(;n<r;){let i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){let r=e.charCodeAt(n++);(64512&r)==56320?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),n--)}else t.push(i)}return t}(e)).length,r=128,i=0,o=72;for(let n of e)n<128&&t.push(t_(n));let s=t.length,a=s;for(s&&t.push("-");a<n;){let n=2147483647;for(let t of e)t>=r&&t<n&&(n=t);let l=a+1;for(let u of(n-r>tC((2147483647-i)/l)&&tA("overflow"),i+=(n-r)*l,r=n,e))if(u<r&&++i>2147483647&&tA("overflow"),u===r){let e=i;for(let n=36;;n+=36){let r=n<=o?1:n>=o+26?26:n-o;if(e<r)break;let i=e-r,s=36-r;t.push(t_(tS(r+i%s,0))),e=tC(i/s)}t.push(t_(tS(e,0))),o=tE(i,l,a===s),i=0,++a}++i,++r}return t.join("")};var tL={toASCII:function(e){return tM(e,function(e){return tx.test(e)?"xn--"+tD(e):e})},toUnicode:function(e){return tM(e,function(e){return ty.test(e)?tT(e.slice(4).toLowerCase()):e})}};let tO={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{}
6,inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},tR=/^(vbscript|javascript|file|data):/,tF=/^data:image\/(gif|png|jpeg|webp);/;function tz(e){let t=e.trim().toLowerCase();return!tR.test(t)||tF.test(t)}let tI=["http:","https:","mailto:"];function tB(e){let t=B(e,!0);if(t.hostname&&(!t.protocol||tI.indexOf(t.protocol)>=0))try{t.hostname=tL.toASCII(t.hostname)}catch(e){}return A(M(t))}function tj(e){let t=B(e,!0);if(t.hostname&&(!t.protocol||tI.indexOf(t.protocol)>=0))try{t.hostname=tL.toUnicode(t.hostname)}catch(e){}return w(M(t),w.defaultChars+"%")}function tN(e,t){if(!(this instanceof tN))return new tN(e,t);t||et(e)||(t=e||{},e="default"),this.inline=new ts,this.block=new e3,this.core=new eq,this.renderer=new eD,this.linkify=new tv,this.validateLink=tz,this.normalizeLink=tB,this.normalizeLinkText=tj,this.utils=v,this.helpers=ei({},y),this.options={},this.configure(e),t&&this.set(t)}tN.prototype.set=function(e){return ei(this.options,e),this},tN.prototype.configure=function(e){let t=this;if(et(e)){let t=e;if(!(e=tO[t]))throw Error('Wrong `markdown-it` preset "'+t+'", check name')}if(!e)throw Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[
6n].ruler2.enableOnly(e.components[n].rules2)}),this},tN.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));let r=e.filter(function(e){return 0>n.indexOf(e)});if(r.length&&!t)throw Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},tN.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));let r=e.filter(function(e){return 0>n.indexOf(e)});if(r.length&&!t)throw Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},tN.prototype.use=function(e){let t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},tN.prototype.parse=function(e,t){if("string"!=typeof e)throw Error("Input data should be a String");let n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},tN.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)}
6,tN.prototype.parseInline=function(e,t){let n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},tN.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var tP=tN},53660:function(e,t,n){"use strict";function r(e){this.content=e}n.d(t,{aw:function(){return P},PW:function(){return G},HY:function(){return i},vc:function(){return l},ZU:function(){return B},NB:function(){return C},Ts:function(){return k},e4:function(){return u},V_:function(){return j},p2:function(){return c}}),r.prototype={constructor:r,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return -1},get:function(e){var t=this.find(e);return -1==t?void 0:this.content[t+1]},update:function(e,t,n){var i=n&&n!=e?this.remove(n):this,o=i.find(e),s=i.content.slice();return -1==o?s.push(n||e,t):(s[o+1]=t,n&&(s[o]=n)),new r(s)},remove:function(e){var t=this.find(e);if(-1==t)return this;var n=this.content.slice();return n.splice(t,2),new r(n)},addToStart:function(e,t){return new r([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new r(n)},addBefore:function(e,t,n){var i=this.remove(t),o=i.content.slice(),s=i.find(e);return o.splice(-1==s?o.length:s,0,t,n),new r(o)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=r.from(e)).size?new r(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=r.from(e)).size?new r(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=r.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},r.from=function(e){if(e instanceof r)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new r(t)};class i{nodesBetween(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4?arguments[4]:void 0;for(let o=0,s=0;s<t;o++){let a=this.content[o],l=s+a.nodeSize;if(l>e&&!1!==n(a,r+s,i||null,o)&&a.content.size){let i=s+1;a.nodesBetween(Math.max(0,e-i),Math.min(a.content.size,t-i),n,r+i)}s=l}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i="",o=!0;return this.nodesBetween(e,t,(s,a)=>{let l=s.isText?s.text.slice(Math.max(e,a)-a,t-a):s.isLeaf?r?"function"==typeof r?r(s):r:s.type.spec.leafText?s.type.spec.leafText(s):"":"";s.isBlock&&(s.isLeaf&&l||s.isTextblock)&&n&&(o?o=!1:i+=n),i+=l},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,n=e.firstChild,r=this.content.slice(),o=0;for(t.isText&&t.sameMarkup(n)&&(r[r.length-1]=t.withText(t.text+n.text),o=1);o<e.content.length;o++)r.push(e.content[o]);return new i(r,this.size+e.size)}cut(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.size;if(0==e&&t==this.size)return this;let n=[],r=0;if(t>e)for(let i=0,o=0;o<t;i++){let s=this.content[i],a=o+s.nodeSize;a>e&&((o<e||a>t)&&(s=s.isText?s.cut(Math.max(0,e-o),Math.min(s.text.length,t-o)):s.cut(Math.max(0,e-o-1),Math.min(s.content.size,t-o-1))),n.push(s),r+=s.nodeSize),o=a}return new i(n,r)}cutByIndex(e,t){return e==t?i.empty:0==e&&t==this.content.length?this:new i(this.content.slice(e,t))}replaceChild(e,t){let n=this.content[e];if(n==t)return this;let r=this.content.slice(),o=this.size+t.nodeSize-n.nodeSize;return r[e]=t,new i(r,o)}addToStart(e){return new i([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new i(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function e(t,n,r){for(let i=0;;i++){if(i==t.childCount||i==n.childCount)return t.childCount==n.childCount?null:r;let o=t.child(i),s=n.child(i);if(o==s){r+=o.nodeSize;continue}if(!o.sameMarkup(s))return r;if(o.isText&&o.text!=s.text){for(let e=0;o.text[e]==s.text[e];e++)r++;return r}if(o.content.size||s.content.size){let t=e(o.content,s.content,r+1);if(null!=t)return t}r+=o.nodeSize}}(this,e,t)}findDiffEnd(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.size,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.size;return function e(t,n,r,i){for(let o=t.childCount,s=n.childCount;;){if(0==o||0==s)return o==s?null:{a:r,b:i};let a=t.child(--o),l=n.child(--s),u=a.nodeSize;if(a==l){r-=u,i-=u;continue}if(!a.sameMarkup(l))return{a:r,b:i};if(a.isText&&a.text!=l.text){let e=0,t=Math.min(a.text.length,l.text.length);for(;e<t&&a.text[a.text.length-e-1]==l.text[l.text.length-e-1];)e++,r--,i--;return{a:r,b:i}}if(a.content.size||l.content.size){let t=e(a.content,l.content,r-1,i-1);if(t)return t}r-=u,i-=u}}(this,e,t,n)}findIndex(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(0==e)return s(0,e);if(e==this.size)return s(this.content.length,e);if(e>this.size||e<0)throw RangeError("Position ".concat(e," outside of fragment (").concat(this,")"));for(let n=0,r=0;;n++){let i=r+this.child(n).nodeSize;if(i>=e){if(i==e||t>0)return s(n+1,i);return s(n,r)}r=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return i.empty;if(!Array.isArray(t))throw RangeError("Invalid input for Fragment.fromJSON");return new i(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return i.empty;let t,n=0;for(let r=0;r<e.length;r++){let i=e[r];n+=i.nodeSize,r&&i.isText&&e[r-1].sameMarkup(i)?(t||(t=e.slice(0,r)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new i(t||e,n)}static from(e){if(!e)return i.empty;if(e instanceof i)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new i([e],e.nodeSize);throw RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}constructor(e,t){if(this.content=e,this.size=t||0,null==t)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}}i.empty=new i([],0);let o={index:0,offset:0};function s(e,t){return o.index=e,o.offset=t,o}function a(e,t){if(e===t)return!0;
6if(!(e&&"object"==typeof e)||!(t&&"object"==typeof t))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!a(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!a(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}class l{addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,r));else{if(i.type.excludes(this.type))return e;!n&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(i)}}return t||(t=e.slice()),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&a(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError("Invalid input for Mark.fromJSON");let n=e.marks[t.type];if(!n)throw RangeError("There is no mark type ".concat(t.type," in this schema"));let r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&0==e.length)return l.none;if(e instanceof l)return[e];let t=e.slice();return t.sort((e,t)=>e.type.rank-t.type.rank),t}constructor(e,t){this.type=e,this.attrs=t}}l.none=[];class u extends Error{}class c{get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let n=function e(t,n,r,i){let{index:o,offset:s}=t.findIndex(n),a=t.maybeChild(o);if(s==n||a.isText)return i&&!i.canReplace(o,o,r)?null:t.cut(0,n).append(r).append(t.cut(n));let l=e(a.content,n-s-1,r);return l&&t.replaceChild(o,a.copy(l))}(this.content,e+this.openStart,t);return n&&new c(n,this.openStart,this.openEnd)}removeBetween(e,t){return new c(function e(t,n,r){let{index:i,offset:o}=t.findIndex(n),s=t.maybeChild(i),{index:a,offset:l}=t.findIndex(r);if(o==n||s.isText){if(l!=r&&!t.child(a).isText)throw RangeError("Removing non-flat range");return t.cut(0,n).append(t.cut(r))}if(i!=a)throw RangeError("Removing non-flat range");return t.replaceChild(i,s.copy(e(s.content,n-o-1,r-o-1)))}(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return c.empty;let n=t.openStart||0,r=t.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw RangeError("Invalid input for Slice.fromJSON");return new c(i.fromJSON(e,t.content),n,r)}static maxOpen(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=0,r=0;for(let r=e.firstChild;r&&!r.isLeaf&&(t||!r.type.spec.isolating);r=r.firstChild)n++;for(let n=e.lastChild;n&&!n.isLeaf&&(t||!n.type.spec.isolating);n=n.lastChild)r++;return new c(e,n,r)}constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}}function d(e,t){if(!t.type.compatibleContent(e.type))throw new u("Cannot join "+t.type.name+" onto "+e.type.name)}function h(e,t,n){let r=e.node(n);return d(r,t.node(n)),r}function f(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function p(e,t,n,r){let i=(t||e).node(n),o=0,s=t?t.index(n):i.childCount;e&&(o=e.index(n),e.depth>n?o++:e.textOffset&&(f(e.nodeAfter,r),o++));for(let e=o;e<s;e++)f(i.child(e),r);t&&t.depth==n&&t.textOffset&&f(t.nodeBefore,r)}function m(e,t){return e.type.checkContent(t),e.copy(t)}function g(e,t,n){let r=[];return p(null,e,n,r),e.depth>n&&f(m(h(e,t,n+1),g(e,t,n+1)),r),p(t,null,n,r),new i(r)}c.empty=new c(i.empty,0,0);class b{resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[3*t],r=0==t?0:this.path[3*t-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(0==e.content.size)return l.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var o=0;o<i.length;o++)!1!==i[o].type.spec.inclusive||r&&i[o].isInSet(r.marks)||(i=i[o--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)!1!==n[i].type.spec.inclusive||r&&n[i].isInSet(r.marks)||(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this,t=arguments.length>1?arguments[1]:void 0;if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new k(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw RangeError("Position "+t+" out of range");let n=[],r=0,i=t;for(let t=e;;){let{index:e,offset:o}=t.content.findIndex(i),s=i-o;if(n.push(t,e,r+o),!s||(t=t.child(e)).isText)break;
6i=s-1,r+=o+1}return new b(t,n,i)}static resolveCached(e,t){let n=x.get(e);if(n)for(let e=0;e<n.elts.length;e++){let r=n.elts[e];if(r.pos==t)return r}else x.set(e,n=new v);let r=n.elts[n.i]=b.resolve(e,t);return n.i=(n.i+1)%y,r}constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}}class v{constructor(){this.elts=[],this.i=0}}let y=12,x=new WeakMap;class k{get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}}let w=Object.create(null);class C{get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&a(this.attrs,t||e.defaultAttrs||w)&&l.sameSet(this.marks,n||l.none)}copy(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e==this.content?this:new C(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new C(this.type,this.attrs,this.content,e)}cut(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.content.size;return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.content.size,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e==t)return c.empty;let r=this.resolve(e),i=this.resolve(t),o=n?0:r.sharedDepth(t),s=r.start(o);return new c(r.node(o).content.cut(r.pos-s,i.pos-s),r.depth-o,i.depth-o)}replace(e,t,n){return function(e,t,n){if(n.openStart>e.depth)throw new u("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new u("Inconsistent open depths");return function e(t,n,r,o){let s=t.index(o),a=t.node(o);if(s==n.index(o)&&o<t.depth-r.openStart){let i=e(t,n,r,o+1);return a.copy(a.content.replaceChild(s,i))}if(!r.content.size)return m(a,g(t,n,o));if(r.openStart||r.openEnd||t.depth!=o||n.depth!=o){let{start:e,end:s}=function(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(i.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}(r,t);return m(a,function e(t,n,r,o,s){let a=t.depth>s&&h(t,n,s+1),l=o.depth>s&&h(r,o,s+1),u=[];return p(null,t,s,u),a&&l&&n.index(s)==r.index(s)?(d(a,l),f(m(a,e(t,n,r,o,s+1)),u)):(a&&f(m(a,g(t,n,s+1)),u),p(n,r,s,u),l&&f(m(l,g(r,o,s+1)),u)),p(o,null,s,u),new i(u)}(t,e,s,n,o))}{let e=t.parent,i=e.content;return m(e,i.cut(0,t.parentOffset).append(r.content).append(i.cut(n.parentOffset)))}}(e,t,n,0)}(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(!(t=t.maybeChild(n)))return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(0==e)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return b.resolveCached(this,e)}resolveNoCache(e){return b.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}
6toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),A(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.empty,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:n.childCount,s=this.contentMatchAt(e).matchFragment(n,r,o),a=s&&s.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(let e=r;e<o;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),o=i&&i.matchFragment(this.content,t);return!!o&&o.validEnd}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=l.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!l.sameSet(e,this.marks))throw RangeError("Invalid collection of marks for node ".concat(this.type.name,": ").concat(this.marks.map(e=>e.type.name)));this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){let n;if(!t)throw RangeError("Invalid input for Node.fromJSON");if(t.marks){if(!Array.isArray(t.marks))throw RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw RangeError("Invalid text node in JSON");return e.text(t.text,n)}let r=i.fromJSON(e,t.content),o=e.nodeType(t.type).create(t.attrs,r,n);return o.type.checkAttrs(o.attrs),o}constructor(e,t,n,r=l.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||i.empty}}C.prototype.text=void 0;class _ extends C{toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):A(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new _(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new _(this.type,this.attrs,e,this.marks)}cut(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.text.length;return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError("Empty text nodes are not allowed");this.text=n}}function A(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class M{static parse(e,t){var n;let r,i=new S(e,t);if(null==i.next)return M.empty;let o=function e(t){let n=[];do n.push(function(t){let n=[];do n.push(function(t){let n=function(t){if(t.eat("(")){let n=e(t);return t.eat(")")||t.err("Missing closing paren"),n}if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=(function(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let e in n){let r=n[e];r.isInGroup(t)&&i.push(r)}return 0==i.length&&e.err("No node type or group '"+t+"' found"),i})(t,t.next).map(e=>(null==t.inline?t.inline=e.isInline:t.inline!=e.isInline&&t.err("Mixing inline and block content"),{type:"name",value:e}));return t.pos++,1==e.length?e[0]:{type:"choice",exprs:e}}}(t);for(;;)if(t.eat("+"))n={type:"plus",expr:n};else if(t.eat("*"))n={type:"star",expr:n};else if(t.eat("?"))n={type:"opt",expr:n};else if(t.eat("{"))n=function(e,t){let n=E(e),r=n;return e.eat(",")&&(r="}"!=e.next?E(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}(t,n);else break;return n}(t));while(t.next&&")"!=t.next&&"|"!=t.next);return 1==n.length?n[0]:{type:"seq",exprs:n}}(t));while(t.eat("|"));return 1==n.length?n[0]:{type:"choice",exprs:n}}(i);i.next&&i.err("Unexpected trailing text");let s=(n=function(e){let t=[[]];return i(function e(t,o){if("choice"==t.type)return t.exprs.reduce((t,n)=>t.concat(e(n,o)),[]);if("seq"==t.type)for(let r=0;;r++){let s=e(t.exprs[r],o);if(r==t.exprs.length-1)return s;i(s,o=n())}else if("star"==t.type){let s=n();return r(o,s),i(e(t.expr,s),s),[r(s)]}else if("plus"==t.type){let s=n();return i(e(t.expr,o),s),i(e(t.expr,s),s),[r(s)]}else if("opt"==t.type)return[r(o)].concat(e(t.expr,o));else if("range"==t.type){let s=o;for(let r=0;r<t.min;r++){let r=n();i(e(t.expr,s),r),s=r}if(-1==t.max)i(e(t.expr,s),s);else for(let o=t.min;o<t.max;o++){let o=n();r(s,o),i(e(t.expr,s),o),s=o}return[r(s)]}else if("name"==t.type)return[r(o,void 0,t.value)];else throw Error("Unknown expr type")}(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}
6function i(e,t){e.forEach(e=>e.to=t)}}(o),r=Object.create(null),function e(t){let i=[];t.forEach(e=>{n[e].forEach(e=>{let t,{term:r,to:o}=e;if(r){for(let e=0;e<i.length;e++)i[e][0]==r&&(t=i[e][1]);D(n,o).forEach(e=>{t||i.push([r,t=[]]),-1==t.indexOf(e)&&t.push(e)})}})});let o=r[t.join(",")]=new M(t.indexOf(n.length-1)>-1);for(let t=0;t<i.length;t++){let n=i[t][1].sort(T);o.next.push({type:i[t][0],next:r[n.join(",")]||e(n)})}return o}(D(n,0)));return function(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],i=!e.validEnd,o=[];for(let t=0;t<e.next.length;t++){let{type:n,next:s}=e.next[t];o.push(n.name),i&&!(n.isText||n.hasRequiredAttrs())&&(i=!1),-1==r.indexOf(s)&&r.push(s)}i&&t.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(s,i),s}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.childCount,r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=[this];return function o(s,a){let l=s.matchFragment(e,n);if(l&&(!t||l.validEnd))return i.from(a.map(e=>e.createAndFill()));for(let e=0;e<s.next.length;e++){let{type:t,next:n}=s.next[e];if(!(t.isText||t.hasRequiredAttrs())&&-1==r.indexOf(n)){r.push(n);let e=o(n,a.concat(t));if(e)return e}}return null}(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:o,next:s}=i.next[e];o.isLeaf||o.hasRequiredAttrs()||o.name in t||r.type&&!s.validEnd||(n.push({match:o.contentMatch,type:o,via:r}),t[o.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError("There's no ".concat(e,"th edge in this content match"));return this.next[e]}toString(){let e=[];return!function t(n){e.push(n);for(let r=0;r<n.next.length;r++)-1==e.indexOf(n.next[r].next)&&t(n.next[r].next)}(this),e.map((t,n)=>{let r=n+(t.validEnd?"*":" ")+" ";for(let n=0;n<t.next.length;n++)r+=(n?", ":"")+t.next[n].type.name+"->"+e.indexOf(t.next[n].next);return r}).join("\n")}constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}}M.empty=new M(!0);class S{get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+" (in content expression '"+this.string+"')")}constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}}function E(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function T(e,t){return t-e}function D(e,t){let n=[];return function t(r){let i=e[r];if(1==i.length&&!i[0].term)return t(i[0].to);n.push(r);for(let e=0;e<i.length;e++){let{term:r,to:o}=i[e];r||-1!=n.indexOf(o)||t(o)}}(t),n.sort(T)}function L(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function O(e,t){let n=Object.create(null);for(let r in e){let i=t&&t[r];if(void 0===i){let t=e[r];if(t.hasDefault)i=t.default;else throw RangeError("No value supplied for attribute "+r)}n[r]=i}return n}function R(e,t,n,r){for(let r in t)if(!(r in e))throw RangeError("Unsupported attribute ".concat(r," for ").concat(n," of type ").concat(r));for(let n in e){let r=e[n];r.validate&&r.validate(t[n])}}function F(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new I(e,r,t[r]);return n}class z{get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==M.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:O(this.attrs,e)}create(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;if(this.isText)throw Error("NodeType.create can't construct text nodes");return new C(this,this.computeAttrs(e),i.from(t),l.setFrom(n))}createChecked(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return t=i.from(t),this.checkContent(t),new C(this,this.computeAttrs(e),t,l.setFrom(n))}createAndFill(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;if(e=this.computeAttrs(e),(t=i.from(t)).size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),o=r&&r.fillBefore(i.empty,!0);return o?new C(this,e,t.append(o),l.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);
6if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError("Invalid content for node ".concat(this.name,": ").concat(e.toString().slice(0,50)))}checkAttrs(e){R(this.attrs,e,"node",this.name)}allowsMarkType(e){return null==this.markSet||this.markSet.indexOf(e)>-1}allowsMarks(e){if(null==this.markSet)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){let t;if(null==this.markSet)return e;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||(t=e.slice(0,n));return t?t.length?t:l.none:e}static compile(e,t){let n=Object.create(null);e.forEach((e,r)=>n[e]=new z(e,t,r));let r=t.spec.topNode||"doc";if(!n[r])throw RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw RangeError("Every schema needs a 'text' type");for(let e in n.text.attrs)throw RangeError("The text node type should not have attributes");return n}constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=F(e,n.attrs),this.defaultAttrs=L(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==e),this.isText="text"==e}}class I{get isRequired(){return!this.hasDefault}constructor(e,t,n){let r;this.hasDefault=Object.prototype.hasOwnProperty.call(n,"default"),this.default=n.default,this.validate="string"==typeof n.validate?(r=n.validate.split("|"),n=>{let i=null===n?"null":typeof n;if(0>r.indexOf(i))throw RangeError("Expected value of type ".concat(r," for attribute ").
6concat(t," on type ").concat(e,", got ").concat(i))}):n.validate}}class B{create(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return!e&&this.instance?this.instance:new l(this,O(this.attrs,e))}static compile(e,t){let n=Object.create(null),r=0;return e.forEach((e,i)=>n[e]=new B(e,r++,t,i)),n}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){R(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=F(e,r.attrs),this.excluded=null;let i=L(this.attrs);this.instance=i?new l(this,i):null}}class j{node(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if("string"==typeof e)e=this.nodeType(e);else if(e instanceof z){if(e.schema!=this)throw RangeError("Node type from different schema used ("+e.name+")")}else throw RangeError("Invalid node type: "+e);return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new _(n,n.defaultAttrs,e,l.setFrom(t))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return C.fromJSON(this,e)}markFromJSON(e){return l.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError("Unknown node type: "+e);return t}constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=r.from(e.nodes),t.marks=r.from(e.marks||{}),this.nodes=z.compile(this.spec.nodes,this),this.marks=B.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+" can not be both a node and a mark");let t=this.nodes[e],r=t.spec.content||"",i=t.spec.marks;if(t.contentMatch=n[r]||(n[r]=M.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError("Multiple linebreak nodes defined");if(!t.isInline||!t.isLeaf)throw RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=t}t.markSet="_"==i?null:i?N(this,i.split(" ")):""!=i&&t.inlineContent?null:[]}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=null==n?[t]:""==n?[]:N(this,n.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}}function N(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],o=e.marks[i],s=o;if(o)n.push(o);else for(let t in e.marks){let r=e.marks[t];("_"==i||r.spec.group&&r.spec.group.split(" ").indexOf(i)>-1)&&n.push(s=r)}if(!s)throw SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}class P{parse(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new U(this,t,!1);return n.addAll(e,l.none,t.from,t.to),n.finish()}parseSlice(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new U(this,t,!0);return n.addAll(e,l.none,t.from,t.to),c.maxOpen(n.finish())}matchTag(e,t,n){for(let i=n?this.tags.indexOf(n)+1:0;i<this.tags.length;i++){var r;let n=this.tags[i];if(r=n.tag,(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,r)&&(void 0===n.namespace||e.namespaceURI==n.namespace)&&(!n.context||t.matchesContext(n.context))){if(n.getAttrs){let t=n.getAttrs(e);if(!1===t)continue;n.attrs=t||void 0}return n}}}matchStyle(e,t,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let r=this.styles[i],o=r.style;if(0==o.indexOf(e)&&(!r.context||n.matchesContext(r.context))&&(!(o.length>e.length)||61==o.charCodeAt(e.length)&&o.slice(e.length+1)==t)){if(r.getAttrs){let e=r.getAttrs(t);if(!1===e)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=null==e.priority?50:e.priority,r=0;for(;r<t.length;r++){let e=t[r];if((null==e.priority?50:e.priority)<n)break}t.splice(r,0,e)}for(let t in e.marks){let r=e.marks[t].spec.parseDOM;
6r&&r.forEach(e=>{n(e=V(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let r=e.nodes[t].spec.parseDOM;r&&r.forEach(e=>{n(e=V(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new P(e,P.schemaRules(e)))}constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];t.forEach(e=>{if(null!=e.tag)this.tags.push(e);else if(null!=e.style){let t=/[^=]*/.exec(e.style)[0];0>n.indexOf(t)&&n.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}}let H={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},W={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},$={ol:!0,ul:!0};function Z(e,t,n){return null!=t?(t?1:0)|("full"===t?2:0):e&&"pre"==e.whitespace?3:-5&n}class q{findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(i.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let t=this.type.contentMatch,n;return(n=t.findWrapping(e.type))?(this.match=t,n):null}}return this.match.findWrapping(e.type)}finish(e){if(!(1&this.options)){let e=this.content[this.content.length-1],t;e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))&&(e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=e.withText(e.text.slice(0,e.text.length-t[0].length)))}let t=i.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(i.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!H.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}constructor(e,t,n,r,i,o){this.type=e,this.attrs=t,this.marks=n,this.solid=r,this.options=o,this.content=[],this.activeMarks=l.none,this.match=i||(4&o?null:e.contentMatch)}}class U{get top(){return this.nodes[this.open]}addDOM(e,t){3==e.nodeType?this.addTextNode(e,t):1==e.nodeType&&this.addElement(e,t)}addTextNode(e,t){let n=e.nodeValue,r=this.top,i=2&r.options?"full":this.localPreserveWS||(1&r.options)>0;if("full"===i||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(i)n="full"!==i?n.replace(/\r?\n|\r/g," "):n.replace(/\r\n?/g,"\n");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let t=r.content[r.content.length-1],i=e.previousSibling;(!t||i&&"BR"==i.nodeName||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(n=n.slice(1))}n&&this.insertNode(this.parser.schema.text(n),t,!/\S/.test(n)),this.findInText(e)}else this.findInside(e)}addElement(e,t,n){let r=this.localPreserveWS,i=this.top;("PRE"==e.tagName||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let o=e.nodeName.toLowerCase(),s;$.hasOwnProperty(o)&&this.parser.normalizeLists&&function(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=1==t.nodeType?t.nodeName.toLowerCase():null;e&&$.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):"li"==e?n=t:e&&(n=null)}}(e);let a=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(s=this.parser.matchTag(e,this,n));t:if(a?a.ignore:W.hasOwnProperty(o))this.findInside(e),this.ignoreFallback(e,t);else if(!a||a.skip||a.closeParent){a&&a.closeParent?this.open=Math.max(0,this.open-1):a&&a.skip.nodeType&&(e=a.skip);let n,r=this.needsBlock;if(H.hasOwnProperty(o))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),n=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break t}let s=a&&a.skip?t:this.readStyles(e,t);s&&this.addAll(e,s),n&&this.sync(i),this.needsBlock=r}else{let n=this.readStyles(e,t);n&&this.addElementByRule(e,a,n,!1===a.consuming?s:void 0)}this.localPreserveWS=r}leafFallback(e,t){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"),t)}ignoreFallback(e,t){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"),t,!0)}readStyles(e,t){let n=e.style;if(n&&n.length)for(let e=0;e<this.parser.matchedStyles.length;e++){let r=this.parser.matchedStyles[e],i=n.getPropertyValue(r);if(i)for(let e;;){let n=this.parser.matchStyle(r,i,this,e);if(!n)break;if(n.ignore)return null;if(t=n.clearMark?t.filter(e=>!n.clearMark(e)):t.concat(this.parser.schema.marks[n.mark].create(n.attrs)),!1===n.consuming)e=n;else break}}return t}addElementByRule(e,t,n,r){let i,o;
vendor: 4,140 bytes, line 6
6if(t.node){if((o=this.parser.schema.nodes[t.node]).isLeaf)this.insertNode(o.create(t.attrs),n,"BR"==e.nodeName)||this.leafFallback(e,n);else{let e=this.enter(o,t.attrs||null,n,t.preserveWhitespace);e&&(i=!0,n=e)}}else{let e=this.parser.schema.marks[t.mark];n=n.concat(e.create(t.attrs))}let s=this.top;if(o&&o.isLeaf)this.findInside(e);else if(r)this.addElement(e,n,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,n,!1));else{let r=e;"string"==typeof t.contentElement?r=e.querySelector(t.contentElement):"function"==typeof t.contentElement?r=t.contentElement(e):t.contentElement&&(r=t.contentElement),this.findAround(e,r,!0),this.addAll(r,n),this.findAround(e,r,!1)}i&&this.sync(s)&&this.open--}addAll(e,t,n,r){let i=n||0;for(let o=n?e.childNodes[n]:e.firstChild,s=null==r?null:e.childNodes[r];o!=s;o=o.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(o,t);this.findAtPoint(e,i)}findPlace(e,t,n){let r,i;for(let t=this.open,o=0;t>=0;t--){let s=this.nodes[t],a=s.findWrapping(e);if(a&&(!r||r.length>a.length+o)&&(r=a,i=s,!a.length))break;if(s.solid){if(n)break;o+=2}}if(!r)return null;this.sync(i);for(let e=0;e<r.length;e++)t=this.enterInner(r[e],null,t,!1);return t}insertNode(e,t,n){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let r=this.findPlace(e,t,n);if(r){this.closeExtra();let t=this.top;t.match&&(t.match=t.match.matchType(e.type));let n=l.none;for(let i of r.concat(e.marks))(t.type?t.type.allowsMarkType(i.type):Y(i.type,e.type))&&(n=i.addToSet(n));return t.content.push(e.mark(n)),!0}return!1}enter(e,t,n,r){let i=this.findPlace(e.create(t),n,!1);return i&&(i=this.enterInner(e,t,n,!0,r)),i}enterInner(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0;this.closeExtra();let o=this.top;o.match=o.match&&o.match.matchType(e);let s=Z(e,i,o.options);4&o.options&&0==o.content.length&&(s|=4);let a=l.none;return n=n.filter(t=>(o.type?!o.type.allowsMarkType(t.type):!Y(t.type,e))||(a=t.addToSet(a),!1)),this.nodes.push(new q(e,t,a,r,null,s)),this.open++,n}closeExtra(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--){if(this.nodes[t]==e)return this.open=t,!0;this.localPreserveWS&&(this.nodes[t].options|=1)}return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)null==this.find[r].pos&&1==e.nodeType&&e.contains(this.find[r].node)&&t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+(r?0:1),o=(e,s)=>{for(;e>=0;e--){let a=t[e];if(""==a){if(e==t.length-1||0==e)continue;for(;s>=i;s--)if(o(e-1,s))return!0;return!1}{let e=s>0||0==s&&r?this.nodes[s].type:n&&s>=i?n.node(s-i).type:null;if(!e||e.name!=a&&!e.isInGroup(a))return!1;s--}}return!0};return o(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;
6if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r=t.topNode,i,o=Z(null,t.preserveWhitespace,0)|(n?4:0);i=r?new q(r.type,r.attrs,l.none,!0,t.topMatch||r.type.contentMatch,o):n?new q(null,null,l.none,!0,null,o):new q(e.schema.topNodeType,null,l.none,!0,null,o),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}}function V(e){let t={};for(let n in e)t[n]=e[n];return t}function Y(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let o=[],s=e=>{o.push(e);for(let n=0;n<e.edgeCount;n++){let{type:r,next:i}=e.edge(n);if(r==t||0>o.indexOf(i)&&s(i))return!0}};if(s(i.contentMatch))return!0}}class G{serializeFragment(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;n||(n=X(t).createDocumentFragment());let r=n,i=[];return e.forEach(e=>{if(i.length||e.marks.length){let n=0,o=0;for(;n<i.length&&o<e.marks.length;){let t=e.marks[o];if(!this.marks[t.type.name]){o++;continue}if(!t.eq(i[n][0])||!1===t.type.spec.spanning)break;n++,o++}for(;n<i.length;)r=i.pop()[1];for(;o<e.marks.length;){let n=e.marks[o++],s=this.serializeMark(n,e.isInline,t);s&&(i.push([n,r]),r.appendChild(s.dom),r=s.contentDOM||s.dom)}}r.appendChild(this.serializeNodeInner(e,t))}),n}serializeNodeInner(e,t){let{dom:n,contentDOM:r}=Q(X(t),this.nodes[e.type.name](e),null,e.attrs);if(r){if(e.isLeaf)throw RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,r)}return n}serializeNode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.serializeNodeInner(e,t);for(let r=e.marks.length-1;r>=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.marks[e.type.name];return r&&Q(X(n),r(e,t),null,e.attrs)}static renderSpec(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return Q(e,t,n,r)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new G(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=J(e.nodes);return t.text||(t.text=e=>e.text),t}static marksFromSchema(e){return J(e.marks)}constructor(e,t){this.nodes=e,this.marks=t}}function J(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function X(e){return e.document||window.document}let K=new WeakMap;function Q(e,t,n,r){let i,o,s;if("string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;let a=t[0],l;if("string"!=typeof a)throw RangeError("Invalid array passed to renderSpec");if(r&&(void 0===(o=K.get(r))&&K.set(r,(s=null,function e(t){if(t&&"object"==typeof t){if(Array.isArray(t)){if("string"==typeof t[0])s||(s=[]),s.push(t);else for(let n=0;n<t.length;n++)e(t[n])}else for(let n in t)e(t[n])}}(r),o=s)),l=o)&&l.indexOf(t)>-1)throw RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let u=a.indexOf(" ");u>0&&(n=a.slice(0,u),a=a.slice(u+1));let c=n?e.createElementNS(n,a):e.createElement(a),d=t[1],h=1;if(d&&"object"==typeof d&&null==d.nodeType&&!Array.isArray(d)){for(let e in h=2,d)if(null!=d[e]){let t=e.indexOf(" ");t>0?c.setAttributeNS(e.slice(0,t),e.slice(t+1),d[e]):c.setAttribute(e,d[e])}}for(let o=h;o<t.length;o++){let s=t[o];if(0===s){if(o<t.length-1||o>h)throw RangeError("Content hole must be the only child of its parent node");return{dom:c,contentDOM:c}}{let{dom:t,contentDOM:o}=Q(e,s,n,r);if(c.appendChild(t),o){if(i)throw RangeError("Multiple content holes");i=o}}}return{dom:c,contentDOM:i}}},60737:function(e,t,n){"use strict";n.d(t,{Ig:function(){return x},MI:function(){return y},N0:function(){return S},NE:function(){return s},QK:function(){return w},U9:function(){return D},X0:function(){return M},Y_:function(){return g},_M:function(){return f},al:function(){return l},cR:function(){return c},mD:function(){return A},nw:function(){return L},o:function(){return b},rr:function(){return u},uJ:function(){return R},uo:function(){return _},xb:function(){return k},ym:function(){return O}});var r=n(26151),i=n(53660),o=n(27191);let s=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function a(e,t){let{$cursor:n}=e.selection;return n&&(t?t.endOfTextblock("backward",e):!(n.parentOffset>0))?n:null}
6let l=(e,t,n)=>{let s=a(e,n);if(!s)return!1;let l=p(s);if(!l){let n=s.blockRange(),i=n&&(0,r.k9)(n);return null!=i&&(t&&t(e.tr.lift(n,i).scrollIntoView()),!0)}let u=l.nodeBefore;if(E(e,l,t,-1))return!0;if(0==s.parent.content.size&&(h(u,"end")||o.qv.isSelectable(u)))for(let n=s.depth;;n--){let a=(0,r.dR)(e.doc,s.before(n),s.after(n),i.p2.empty);if(a&&a.slice.size<a.to-a.from){if(t){let n=e.tr.step(a);n.setSelection(h(u,"end")?o.Y1.findFrom(n.doc.resolve(n.mapping.map(l.pos,-1)),-1):o.qv.create(n.doc,l.pos-u.nodeSize)),t(n.scrollIntoView())}return!0}if(1==n||s.node(n-1).childCount>1)break}return!!u.isAtom&&l.depth==s.depth-1&&(t&&t(e.tr.delete(l.pos-u.nodeSize,l.pos).scrollIntoView()),!0)},u=(e,t,n)=>{let r=a(e,n);if(!r)return!1;let i=p(r);return!!i&&d(e,i,t)},c=(e,t,n)=>{let r=m(e,n);if(!r)return!1;let i=v(r);return!!i&&d(e,i,t)};function d(e,t,n){let s=t.nodeBefore,a=t.pos-1;for(;!s.isTextblock;a--){if(s.type.spec.isolating)return!1;let e=s.lastChild;if(!e)return!1;s=e}let l=t.nodeAfter,u=t.pos+1;for(;!l.isTextblock;u++){if(l.type.spec.isolating)return!1;let e=l.firstChild;if(!e)return!1;l=e}let c=(0,r.dR)(e.doc,a,u,i.p2.empty);if(!c||c.from!=a||c instanceof r.Pu&&c.slice.size>=u-a)return!1;if(n){let t=e.tr.step(c);t.setSelection(o.Bs.create(t.doc,a)),n(t.scrollIntoView())}return!0}function h(e,t,n=!1){for(let r=e;r;r="start"==t?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&1!=r.childCount)break}return!1}let f=(e,t,n)=>{let{$head:r,empty:i}=e.selection,s=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;s=p(r)}let a=s&&s.nodeBefore;return!!(a&&o.qv.isSelectable(a))&&(t&&t(e.tr.setSelection(o.qv.create(e.doc,s.pos-a.nodeSize)).scrollIntoView()),!0)};function p(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function m(e,t){let{$cursor:n}=e.selection;return n&&(t?t.endOfTextblock("forward",e):!(n.parentOffset<n.parent.content.size))?n:null}let g=(e,t,n)=>{let s=m(e,n);if(!s)return!1;let a=v(s);if(!a)return!1;let l=a.nodeAfter;if(E(e,a,t,1))return!0;if(0==s.parent.content.size&&(h(l,"start")||o.qv.isSelectable(l))){let n=(0,r.dR)(e.doc,s.before(),s.after(),i.p2.empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(h(l,"start")?o.Y1.findFrom(r.doc.resolve(r.mapping.map(a.pos)),1):o.qv.create(r.doc,r.mapping.map(a.pos))),t(r.scrollIntoView())}return!0}}return!!l.isAtom&&a.depth==s.depth-1&&(t&&t(e.tr.delete(a.pos,a.pos+l.nodeSize).scrollIntoView()),!0)},b=(e,t,n)=>{let{$head:r,empty:i}=e.selection,s=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size)return!1;s=v(r)}let a=s&&s.nodeAfter;return!!(a&&o.qv.isSelectable(a))&&(t&&t(e.tr.setSelection(o.qv.create(e.doc,s.pos)).scrollIntoView()),!0)};function v(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}let y=(e,t)=>{let n=e.selection,i=n instanceof o.qv,s;if(i){if(n.node.isTextblock||!(0,r.Mn)(e.doc,n.from))return!1;s=n.from}else if(null==(s=(0,r.GJ)(e.doc,n.from,-1)))return!1;if(t){let n=e.tr.join(s);i&&n.setSelection(o.qv.create(n.doc,s-e.doc.resolve(s).nodeBefore.nodeSize)),t(n.scrollIntoView())}return!0},x=(e,t)=>{let n=e.selection,i;if(n instanceof o.qv){if(n.node.isTextblock||!(0,r.Mn)(e.doc,n.to))return!1;i=n.to}else if(null==(i=(0,r.GJ)(e.doc,n.to,1)))return!1;return t&&t(e.tr.join(i).scrollIntoView()),!0},k=(e,t)=>{let{$from:n,$to:i}=e.selection,o=n.blockRange(i),s=o&&(0,r.k9)(o);return null!=s&&(t&&t(e.tr.lift(o,s).scrollIntoView()),!0)},w=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!!(n.parent.type.spec.code&&n.sameParent(r))&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)};function C(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}let _=(e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),s=n.indexAfter(-1),a=C(i.contentMatchAt(s));if(!a||!i.canReplaceWith(s,s,a))return!1;if(t){let r=n.after(),i=e.tr.replaceWith(r,r,a.createAndFill());i.setSelection(o.Y1.near(i.doc.resolve(r),1)),t(i.scrollIntoView())}return!0},A=(e,t)=>
6{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof o.C1||r.parent.inlineContent||i.parent.inlineContent)return!1;let s=C(i.parent.contentMatchAt(i.indexAfter()));if(!s||!s.isTextblock)return!1;if(t){let n=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,a=e.tr.insert(n,s.createAndFill());a.setSelection(o.Bs.create(a.doc,n+1)),t(a.scrollIntoView())}return!0},M=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let i=n.before();if((0,r.Ax)(e.doc,i))return t&&t(e.tr.split(i).scrollIntoView()),!0}let i=n.blockRange(),o=i&&(0,r.k9)(i);return null!=o&&(t&&t(e.tr.lift(i,o).scrollIntoView()),!0)},S=(e,t)=>{let{$from:n,to:r}=e.selection,i,s=n.sharedDepth(r);return 0!=s&&(i=n.before(s),t&&t(e.tr.setSelection(o.qv.create(e.doc,i))),!0)};function E(e,t,n,s){let a,l,u,c=t.nodeBefore,d=t.nodeAfter,f,p,m=c.type.spec.isolating||d.type.spec.isolating;if(!m&&(a=t.nodeBefore,l=t.nodeAfter,u=t.index(),a&&l&&a.type.compatibleContent(l.type)&&(!a.content.size&&t.parent.canReplace(u-1,u)?(n&&n(e.tr.delete(t.pos-a.nodeSize,t.pos).scrollIntoView()),!0):!!(t.parent.canReplace(u,u+1)&&(l.isTextblock||(0,r.Mn)(e.doc,t.pos)))&&(n&&n(e.tr.join(t.pos).scrollIntoView()),!0))))return!0;let g=!m&&t.parent.canReplace(t.index(),t.index()+1);if(g&&(f=(p=c.contentMatchAt(c.childCount)).findWrapping(d.type))&&p.matchType(f[0]||d.type).validEnd){if(n){let o=t.pos+d.nodeSize,s=i.HY.empty;for(let e=f.length-1;e>=0;e--)s=i.HY.from(f[e].create(null,s));s=i.HY.from(c.copy(s));let a=e.tr.step(new r.FC(t.pos-1,o,t.pos,o,new i.p2(s,1,0),f.length,!0)),l=a.doc.resolve(o+2*f.length);l.nodeAfter&&l.nodeAfter.type==c.type&&(0,r.Mn)(a.doc,l.pos)&&a.join(l.pos),n(a.scrollIntoView())}return!0}let b=d.type.spec.isolating||s>0&&m?null:o.Y1.findFrom(t,1),v=b&&b.$from.blockRange(b.$to),y=v&&(0,r.k9)(v);if(null!=y&&y>=t.depth)return n&&n(e.tr.lift(v,y).scrollIntoView()),!0;if(g&&h(d,"start",!0)&&h(c,"end")){let o=c,s=[];for(;s.push(o),!o.isTextblock;)o=o.lastChild;let a=d,l=1;for(;!a.isTextblock;a=a.firstChild)l++;if(o.canReplace(o.childCount,o.childCount,a.content)){if(n){let o=i.HY.empty;for(let e=s.length-1;e>=0;e--)o=i.HY.from(s[e].copy(o));n(e.tr.step(new r.FC(t.pos-s.length,t.pos+d.nodeSize,t.pos+l,t.pos+d.nodeSize-l,new i.p2(o,s.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function T(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,s=i.depth;for(;i.node(s).isInline;){if(!s)return!1;s--}return!!i.node(s).isTextblock&&(n&&n(t.tr.setSelection(o.Bs.create(t.doc,e<0?i.start(s):i.end(s)))),!0)}}let D=T(-1),L=T(1);function O(e,t=null){return function(n,i){let{$from:o,$to:s}=n.selection,a=o.blockRange(s),l=a&&(0,r.nd)(a,e,t);return!!l&&(i&&i(n.tr.wrap(a,l).scrollIntoView()),!0)}}function R(e,t=null){return function(n,r){let i=!1;for(let r=0;r<n.selection.ranges.length&&!i;r++){let{$from:{pos:o},$to:{pos:s}}=n.selection.ranges[r];n.doc.nodesBetween(o,s,(r,o)=>{if(i)return!1;if(!(!r.isTextblock||r.hasMarkup(e,t))){if(r.type==e)i=!0;else{let t=n.doc.resolve(o),r=t.index();i=t.parent.canReplaceWith(r,r+1,e)}}})}if(!i)return!1;if(r){let i=n.tr;for(let r=0;r<n.selection.ranges.length;r++){let{$from:{pos:o},$to:{pos:s}}=n.selection.ranges[r];i.setBlockType(o,s,e,t)}r(i.scrollIntoView())}return!0}}function F(...e){return function(t,n,r){for(let i=0;i<e.length;i++)if(e[i](t,n,r))return!0;return!1}}let z=F(s,l,f),I=F(s,g,b),B={Enter:F(w,A,M,(e,t)=>{let{$from:n,$to:i}=e.selection;if(e.selection instanceof o.qv&&e.selection.node.isBlock)return!!(n.parentOffset&&(0,r.Ax)(e.doc,n.pos))&&(t&&t(e.tr.split(n.pos).scrollIntoView()),!0);if(!n.depth)return!1;let s=[],a,l,u=!1,c=!1;for(let e=n.depth;;e--){if(n.node(e).isBlock){let t;u=n.end(e)==n.pos+(n.depth-e),c=n.start(e)==n.pos-(n.depth-e),l=C(n.node(e-1).contentMatchAt(n.indexAfter(e-1))),s.unshift(t||(u&&l?{type:l}:null)),a=e;break}if(1==e)return!1;s.unshift(null)}let d=e.tr;(e.selection instanceof o.Bs||e.selection instanceof o.C1)&&d.deleteSelection();let h=d.mapping.map(n.pos),f=(0,r.Ax)(d.doc,h,s.length,s);if(f||(s[0]=l?{type:l}:null,f=(0,r.Ax)(d.doc,h,s.length,s)),!f)return!1;if(d.split(h,s.length,s),!u&&c&&n.node(a).type!=l){let e=d.mapping.map(n.before(a)),t=d.doc.resolve(e);l&&n.node(a-1).canReplaceWith(t.index(),t.index()+1,l)&&d.setNodeMarkup(d.mapping.map(n.before(a)),l)}return t&&t(d.scrollIntoView()),!0}),"Mod-Enter":_,Backspace:z,"Mod-Backspace":z,"Shift-Backspace":z,Delete:I,"Mod-Delete":I,"Mod-a":(e,t)=>
6(t&&t(e.tr.setSelection(new o.C1(e.doc))),!0)},j={"Ctrl-h":B.Backspace,"Alt-Backspace":B["Mod-Backspace"],"Ctrl-d":B.Delete,"Ctrl-Alt-Backspace":B["Mod-Delete"],"Alt-Delete":B["Mod-Delete"],"Alt-d":B["Mod-Delete"],"Ctrl-a":D,"Ctrl-e":L};for(let e in B)j[e]=B[e];"undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"undefined"!=typeof os&&os.platform&&os.platform()},3027:function(e,t,n){"use strict";n.d(t,{d:function(){return u}});var r=n(17890),i=n(27191),o=n(53660),s=n(52780);class a extends i.Y1{constructor(e){super(e,e)}map(e,t){let n=e.resolve(t.map(this.head));return a.valid(n)?new a(n):i.Y1.near(n)}content(){return o.p2.empty}eq(e){return e instanceof a&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for GapCursor.fromJSON");return new a(e.resolve(t.pos))}getBookmark(){return new l(this.anchor)}static valid(e){let t=e.parent;if(t.isTextblock||!function(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(0==n){if(r.type.spec.isolating)return!0;continue}for(let e=r.child(n-1);;e=e.lastChild){if(0==e.childCount&&!e.inlineContent||e.isAtom||e.type.spec.isolating)return!0;if(e.inlineContent)return!1}}return!0}(e)||!function(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let e=r.child(n);;e=e.firstChild){if(0==e.childCount&&!e.inlineContent||e.isAtom||e.type.spec.isolating)return!0;if(e.inlineContent)return!1}}return!0}(e))return!1;let n=t.type.spec.allowGapCursor;if(null!=n)return n;let r=t.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(e,t,n=!1){i:for(;;){if(!n&&a.valid(e))return e;let r=e.pos,o=null;for(let n=e.depth;;n--){let i=e.node(n);if(t>0?e.indexAfter(n)<i.childCount:e.index(n)>0){o=i.child(t>0?e.indexAfter(n):e.index(n)-1);break}if(0==n)return null;r+=t;let s=e.doc.resolve(r);if(a.valid(s))return s}for(;;){let s=t>0?o.firstChild:o.lastChild;if(!s){if(o.isAtom&&!o.isText&&!i.qv.isSelectable(o)){e=e.doc.resolve(r+o.nodeSize*t),n=!1;continue i}break}o=s,r+=t;let l=e.doc.resolve(r);if(a.valid(l))return l}return null}}}a.prototype.visible=!1,a.findFrom=a.findGapCursorFrom,i.Y1.jsonID("gapcursor",a);class l{constructor(e){this.pos=e}map(e){return new l(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return a.valid(t)?new a(t):i.Y1.near(t)}}function u(){return new i.Sy({props:{decorations:p,createSelectionBetween:(e,t,n)=>t.pos==n.pos&&a.valid(n)?new a(n):null,handleClick:h,handleKeyDown:c,handleDOMEvents:{beforeinput
6:f}}})}let c=(0,r.$)({ArrowLeft:d("horiz",-1),ArrowRight:d("horiz",1),ArrowUp:d("vert",-1),ArrowDown:d("vert",1)});function d(e,t){let n="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,r,o){let s=e.selection,l=t>0?s.$to:s.$from,u=s.empty;if(s instanceof i.Bs){if(!o.endOfTextblock(n)||0==l.depth)return!1;u=!1,l=e.doc.resolve(t>0?l.after():l.before())}let c=a.findGapCursorFrom(l,t,u);return!!c&&(r&&r(e.tr.setSelection(new a(c))),!0)}}function h(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!a.valid(r))return!1;let o=e.posAtCoords({left:n.clientX,top:n.clientY});return!(o&&o.inside>-1&&i.qv.isSelectable(e.state.doc.nodeAt(o.inside)))&&(e.dispatch(e.state.tr.setSelection(new a(r))),!0)}function f(e,t){if("insertCompositionText"!=t.inputType||!(e.state.selection instanceof a))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let s=o.HY.empty;for(let e=r.length-1;e>=0;e--)s=o.HY.from(r[e].createAndFill(null,s));let l=e.state.tr.replace(n.pos,n.pos,new o.p2(s,0,0));return l.setSelection(i.Bs.near(l.doc.resolve(n.pos+1))),e.dispatch(l),!1}function p(e){if(!(e.selection instanceof a))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",s.EH.create(e.doc,[s.p.widget(e.selection.head,t,{key:"gapcursor"})])}},17890:function(e,t,n){"use strict";n.d(t,{$:function(){return l},h:function(){return a}});var r=n(94910),i=n(27191);let o="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function s(e,t,n=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function a(e){return new i.Sy({props:{handleKeyDown:l(e)}})}function l(e){let t=function(e){let t=Object.create(null);for(let n in e)t[function(e){let t,n,r,i,s=e.split(/-(?!$)/),a=s[s.length-1];"Space"==a&&(a=" ");for(let e=0;e<s.length-1;e++){let a=s[e];if(/^(cmd|meta|m)$/i.test(a))i=!0;else if(/^a(lt)?$/i.test(a))t=!0;else if(/^(c|ctrl|control)$/i.test(a))n=!0;else if(/^s(hift)?$/i.test(a))r=!0;else if(/^mod$/i.test(a))o?i=!0:n=!0;else throw Error("Unrecognized modifier name: "+a)}return t&&(a="Alt-"+a),n&&(a="Ctrl-"+a),i&&(a="Meta-"+a),r&&(a="Shift-"+a),a}(n)]=e[n];return t}(e);return function(e,n){let i=(0,r.YG)(n),o,a=t[s(i,n)];if(a&&a(e.state,e.dispatch,e))return!0;if(1==i.length&&" "!=i){if(n.shiftKey){let r=t[s(i,n,!1)];if(r&&r(e.state,e.dispatch,e))return!0}if((n.shiftKey||n.altKey||n.metaKey||i.charCodeAt(0)>127)&&(o=r.ue[n.keyCode])&&o!=i){let r=t[s(o,n)];if(r&&r(e.state,e.dispatch,e))return!0}}return!1}}},71405:function(e,t,n){"use strict";n.d(t,{IB:function(){return s},KI:function(){return o},bw:function(){return a}});var r=n(26151),i=n(53660);function o(e,t=null){return function(n,o){let{$from:s,$to:a}=n.selection,l=s.blockRange(a);if(!l)return!1;let u=o?n.tr:null;return!!function(e,t,n,o=null){let s=!1,a=t,l=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(n)&&0==t.startIndex){if(0==t.$from.index(t.depth-1))return!1;let e=l.resolve(t.start-2);a=new i.Ts(e,e,t.depth),t.endIndex<t.parent.childCount&&(t=new i.Ts(t.$from,l.resolve(t.$to.end(t.depth)),t.depth)),s=!0}let u=(0,r.nd)(a,n,o,t);return!!u&&(e&&function(e,t,n,o,s){let a=i.HY.empty;for(let e=n.length-1;e>=0;e--)a=i.HY.from(n[e].type.create(n[e].attrs,a));e.step(new r.FC(t.start-(o?2:0),t.end,t.start,t.end,new i.p2(a,0,0),n.length,!0));let l=0;for(let e=0;e<n.length;e++)n[e].type==s&&(l=e+1);let u=n.length-l,c=t.start+n.length-(o?2:0),d=t.parent;for(let n=t.startIndex,i=t.endIndex,o=!0;n<i;n++,o=!1)!o&&(0,r.Ax)(e.doc,c,u)&&(e.split(c,u),c+=2*u),c+=d.child(n).nodeSize}(e,t,u,s,n),!0)}(u,l,e,t)&&(o&&o(u.scrollIntoView()),!0)}}function s(e){return function(t,n){let{$from:o,$to:s}=t.selection,a=o.blockRange(s,t=>t.childCount>0&&t.firstChild.type==e);return!!a&&(!n||(o.node(a.depth-1).type==e?function(e,t,n,o){let s=e.tr,a=o.end,l=o.$to.end(o.depth);a<l&&(s.step(new r.FC(a-1,l,a,l,new i.p2(i.HY.from(n.create(null,o.parent.copy())),1,0),1,!0)),o=new i.Ts(s.doc.resolve(o.$from.pos),s.doc.resolve(l),o.depth));let u=(0,r.k9)(o);if(null==u)return!1;s.lift(o,u);let c=s.doc.resolve(s.mapping.map(a,-1)-1);return(0,r.Mn)(s.doc,c.pos)&&c.nodeBefore.type==c.nodeAfter.type&&s.join(c.pos),t(s.scrollIntoView()),!0}(t,n,e,a):function(e,t,n){let o=e.tr,s=n.parent;for(let e=n.end,t=n.endIndex-1,r=n.startIndex;t>r;t--)e-=s.child(t).nodeSize,o.delete(e-1,e+1);let a=o.doc.resolve(n.start),l=a.nodeAfter;if(o.mapping.map(n.end)!=n.start+a.nodeAfter.nodeSize)return!1;let u=0==n.startIndex,c=n.endIndex==s.childCount,d=a.node(-1),h=a.index(-1);if(!d.canReplace(h+(u?0:1),h+1,l.content.append(c?i.HY.empty:i.HY.from(s))))return!1;let f=a.pos,p=f+l.nodeSize;return o.step(new r.FC(f-(u?1:0),p+(c?1:0),f+1,p-1,new i.p2((u?i.HY.empty:i.HY.from(s.copy(i.HY.empty))).append(c?i.HY.empty:i.HY.from(s.copy(i.HY.empty))),u?0:1,c?0:1),u?0:1)),t(o.scrollIntoView()),!0}(t,n,a)))}}function a(e){return function(t,n){let{$from:o,$to:s}=t.selection,a=o.blockRange(s,t=>t.childCount>0&&t.firstChild.type==e);if(!a)return!1;let l=a.startIndex;if(0==l)return!1;let u=a.parent,c=u.child(l-1);if(c.type!=e)return!1;if(n){let o=c.lastChild&&c.lastChild.type==u.type,s=i.HY.from(o?e.create():null),l=new i.p2(i.HY.from(e.create(null,i.HY.from(u.type.create(null,s)))),o?3:1,0),d=a.start,h=a.end;n(t.tr.step(new r.FC(d-(o?3:1),h,d,h,l,1,!0)).scrollIntoView())}return!0}}},27191:function(e,t,n){"use strict";n.d(t,{Bs:function(){return c},C1:function(){return p},H$:function(){return S},Sy:function(){return _},Y1:function(){return s},qv:function(){return h},xm:function(){return a},yy:function(){return C}});var r=n(53660),i=n(26151);let o=Object.create(null);class s{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new a(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=r.p2.empty){let n=t.content.lastChild,i=null;for(let e=0;e<t.openEnd;e++)i=n,n=n.lastChild;let o=e.steps.length,s=this.ranges;for(let a=0;a<s.length;a++){let{$from:l,$to:u}=s[a],c=e.mapping.slice(o);e.replaceRange(c.map(l.pos),c.map(u.pos),a?r.p2.empty:t),0==a&&b(e,o,(n?n.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(e,t){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:o,$to:s}=r[i],a=e.mapping.slice(n),l=a.map(o.pos),u=a.map(s.pos);i?e.deleteRange(l,u):(e.replaceRangeWith(l,u,t),b(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let r=e.parent.inlineContent?new c(e):g(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(let r=e.depth-1;r>=0;r--){let i=t<0?g(e.node(0),e.node(r),e.before(r+1),e.index(r),t,n):g(e.node(0),e.node(r),e.after(r+1),e.index(r)+1,t,n);if(i)return i}return null}
6static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new p(e.node(0))}static atStart(e){return g(e,e,0,0,1)||new p(e)}static atEnd(e){return g(e,e,e.content.size,e.childCount,-1)||new p(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError("Invalid input for Selection.fromJSON");let n=o[t.type];if(!n)throw RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in o)throw RangeError("Duplicate use of selection JSON ID "+e);return o[e]=t,t.prototype.jsonID=e,t}getBookmark(){return c.between(this.$anchor,this.$head).getBookmark()}}s.prototype.visible=!0;class a{constructor(e,t){this.$from=e,this.$to=t}}let l=!1;function u(e){l||e.parent.inlineContent||(l=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class c extends s{constructor(e,t=e){u(e),u(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let n=e.resolve(t.map(this.head));if(!n.parent.inlineContent)return s.near(n);let r=e.resolve(t.map(this.anchor));return new c(r.parent.inlineContent?r:n,n)}replace(e,t=r.p2.empty){if(super.replace(e,t),t==r.p2.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof c&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new d(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw RangeError("Invalid input for TextSelection.fromJSON");return new c(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,n=t){let r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(e,t,n){let r=e.pos-t.pos;if((!n||r)&&(n=r>=0?1:-1),!t.parent.inlineContent){let e=s.findFrom(t,n,!0)||s.findFrom(t,-n,!0);if(!e)return s.near(t,n);t=e.$head}return e.parent.inlineContent||(0==r?e=t:(e=(s.findFrom(e,-n,!0)||s.findFrom(e,n,!0)).$anchor).pos<t.pos==r<0||(e=t)),new c(e,t)}}s.jsonID("text",c);class d{constructor(e,t){this.anchor=e,this.head=t}map(e){return new d(e.map(this.anchor),e.map(this.head))}resolve(e){return c.between(e.resolve(this.anchor),e.resolve(this.head))}}class h extends s{constructor(e){let t=e.nodeAfter;super(e,e.node(0).resolve(e.pos+t.nodeSize)),this.node=t}map(e,t){let{deleted:n,pos:r}=t.mapResult(this.anchor),i=e.resolve(r);return n?s.near(i):new h(i)}content(){return new r.p2(r.HY.from(this.node),0,0)}eq(e){return e instanceof h&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new f(this.anchor)}static fromJSON(e,t){if("number"!=typeof t.anchor)throw RangeError("Invalid input for NodeSelection.fromJSON");return new h(e.resolve(t.anchor))}static create(e,t){return new h(e.resolve(t))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}h.prototype.visible=!1,s.jsonID("node",h);class f{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:n}=e.mapResult(this.anchor);return t?new d(n,n):new f(n)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&h.isSelectable(n)?new h(t):s.near(t)}}class p extends s{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=r.p2.empty){if(t==r.p2.empty){e.delete(0,e.doc.content.size);let t=s.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new p(e)}map(e){return new p(e)}eq(e){return e instanceof p}getBookmark(){return m}}s.jsonID("all",p);let m={map(){return this},resolve:e=>new p(e)};function g(e,t,n,r,i,o=!1){if(t.inlineContent)return c.create(e,n);for(let s=r-(i>0?0:1);i>0?s<t.childCount:s>=0;s+=i){let r=t.child(s);if(r.isAtom){if(!o&&h.isSelectable(r))return h.create(e,n-(i<0?r.nodeSize:0))}else{let t=g(e,r,n+i,i<0?r.childCount:0,i,o);if(t)return t}n+=r.nodeSize*i}return null}function b(e,t,n){let r,o=e.steps.length-1;if(o<t)return;let a=e.steps[o];(a instanceof i.Pu||a instanceof i.FC)&&(e.mapping.maps[o].forEach((e,t,n,i)=>{null==r&&(r=i)}),e.setSelection(s.near(e.doc.resolve(r),n)))}class v extends i.wx{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(1|this.updated)&-3,this.storedMarks=null,this}get selectionSet(){return(1&this.updated)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=2,this}ensureMarks(e){return r.vc.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(e,t){super.addStep(e,t),this.updated=-3&this.updated,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let n=this.selection;return t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||r.vc.none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,n){let r=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(null==n&&(n=t),n=null==n?t:n,!e)return this.deleteRange(t,n);let i=this.storedMarks;if(!i){let e=this.doc.resolve(t);i=n==t?e.marks():e.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,i)),this.selection.empty||this.setSelection(s.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function y(e,t){return t&&e?e.bind(t):e}
6class x{constructor(e,t,n){this.name=e,this.init=y(t.init,n),this.apply=y(t.apply,n)}}let k=[new x("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:e=>e.doc}),new x("selection",{init:(e,t)=>e.selection||s.atStart(t.doc),apply:e=>e.selection}),new x("storedMarks",{init:e=>e.storedMarks||null,apply:(e,t,n,r)=>r.selection.$cursor?e.storedMarks:null}),new x("scrollToSelection",{init:()=>0,apply:(e,t)=>e.scrolledIntoView?t+1:t})];class w{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=k.slice(),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new x(e.key,e.spec.state,e))})}}class C{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=t){let t=this.config.plugins[n];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],n=this.applyInner(e),r=null;for(;;){let i=!1;for(let o=0;o<this.config.plugins.length;o++){let s=this.config.plugins[o];if(s.spec.appendTransaction){let a=r?r[o].n:0,l=r?r[o].state:this,u=a<t.length&&s.spec.appendTransaction.call(s,a?t.slice(a):t,l,n);if(u&&n.filterTransaction(u,o)){if(u.setMeta("appendedTransaction",e),!r){r=[];for(let e=0;e<this.config.plugins.length;e++)r.push(e<o?{state:n,n:t.length}:{state:this,n:0})}t.push(u),n=n.applyInner(u),i=!0}r&&(r[o]={state:n,n:t.length})}}if(!i)return{state:n,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw RangeError("Applying a mismatched transaction");let t=new C(this.config),n=this.config.fields;for(let r=0;r<n.length;r++){let i=n[r];t[i.name]=i.apply(e,this[i.name],this,t)}return t}get tr(){return new v(this)}static create(e){let t=new w(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new C(t);for(let r=0;r<t.fields.length;r++)n[t.fields[r].name]=t.fields[r].init(e,n);return n}reconfigure(e){let t=new w(this.schema,e.plugins),n=t.fields,r=new C(t);for(let t=0;t<n.length;t++){let i=n[t].name;r[i]=this.hasOwnProperty(i)?this[i]:n[t].init(e,r)}return r}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(e=>e.toJSON())),e&&"object"==typeof e)for(let n in e){if("doc"==n||"selection"==n)throw RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[n],i=r.spec.state;i&&i.toJSON&&(t[n]=i.toJSON.call(r,this[r.key]))}return t}static fromJSON(e,t,n){if(!t)throw RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw RangeError("Required config field 'schema' missing");let i=new w(e.schema,e.plugins),o=new C(i);return i.fields.forEach(i=>{if("doc"==i.name)o.doc=r.NB.fromJSON(e.schema,t.doc);else if("selection"==i.name)o.selection=s.fromJSON(o.doc,t.selection);else if("storedMarks"==i.name)t.storedMarks&&(o.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(let r in n){let s=n[r],a=s.spec.state;if(s.key==i.name&&a&&a.fromJSON&&Object.prototype.hasOwnProperty.call(t,r)){o[i.name]=a.fromJSON.call(s,e,t[r],o);return}}o[i.name]=i.init(e,o)}}),o}}class _{constructor(e){this.spec=e,this.props={},e.props&&function e(t,n,r){for(let i in t){let o=t[i];o instanceof Function?o=o.bind(n):"handleDOMEvents"==i&&(o=e(o,n,{})),r[i]=o}return r}(e.props,this,this.props),this.key=e.key?e.key.key:M("plugin")}getState(e){return e[this.key]}}let A=Object.create(null);function M(e){return e in A?e+"$"+ ++A[e]:(A[e]=0,e+"$")}class S{constructor(e="key"){this.key=M(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}},26151:function(e,t,n){"use strict";n.d(t,{Ax:function(){return _},FC:function(){return g},GJ:function(){return S},Mn:function(){return A},Pu:function(){return m},dR:function(){return T},k9:function(){return y},nd:function(){return x},nj:function(){return E},vs:function(){return s},wx:function(){return P}});var r=n(53660);class i{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class o{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&o.empty)return o.empty}recover(e){let t=0,n=65535&e;if(!this.inverted)for(let e=0;e<n;e++)t+=this.ranges[3*e+2]-this.ranges[3*e+1];return this.ranges[3*n]+t+(e-(65535&e))/65536}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,o=this.inverted?2:1,s=this.inverted?1:2;
6for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?r:0);if(l>e)break;let u=this.ranges[a+o],c=this.ranges[a+s],d=l+u;if(e<=d){let o=u?e==l?-1:e==d?1:t:t,s=l+r+(o<0?0:c);if(n)return s;let h=e==(t<0?l:d)?null:a/3+(e-l)*65536,f=e==l?2:e==d?1:4;return(t<0?e!=l:e!=d)&&(f|=8),new i(s,f,h)}r+=c-u}return n?e+r:new i(e+r,0,null)}touches(e,t){let n=0,r=65535&t,i=this.inverted?2:1,o=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let s=this.ranges[t]-(this.inverted?n:0);if(s>e)break;let a=this.ranges[t+i];if(e<=s+a&&t==3*r)return!0;n+=this.ranges[t+o]-a}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let o=this.ranges[r],s=o-(this.inverted?i:0),a=o+(this.inverted?0:i),l=this.ranges[r+t],u=this.ranges[r+n];e(s,s+l,a,a+u),i+=u-l}}invert(){return new o(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?o.empty:new o(e<0?[0,-e,0]:[0,0,e])}}o.empty=new o([]);class s{constructor(e,t,n=0,r=e?e.length:0){this.mirror=t,this.from=n,this.to=r,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new s(this._maps,this.mirror,e,t)}appendMap(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),null!=t&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,n=this._maps.length;t<e._maps.length;t++){let r=e.getMirror(t);this.appendMap(e._maps[t],null!=r&&r<t?n+r:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this._maps.length+e._maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e._maps[t].invert(),null!=r&&r>t?n-r-1:void 0)}}invert(){let e=new s;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this._maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let r=0;for(let n=this.from;n<this.to;n++){let i=this._maps[n].mapResult(e,t);if(null!=i.recover){let t=this.getMirror(n);if(null!=t&&t>n&&t<this.to){n=t,e=this._maps[t].recover(i.recover);continue}}r|=i.delInfo,e=i.pos}return n?e:new i(e,r,null)}}let a=Object.create(null);class l{getMap(){return o.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError("Invalid input for Step.fromJSON");let n=a[t.stepType];if(!n)throw RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in a)throw RangeError("Duplicate use of step JSON ID "+e);return a[e]=t,t.prototype.jsonID=e,t}}class u{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new u(e,null)}static fail(e){return new u(null,e)}static fromReplace(e,t,n,i){try{return u.ok(e.replace(t,n,i))}catch(e){if(e instanceof r.e4)return u.fail(e.message);throw e}}}function c(e,t,n){let i=[];for(let r=0;r<e.childCount;r++){let o=e.child(r);o.content.size&&(o=o.copy(c(o.content,t,o))),o.isInline&&(o=t(o,n,r)),i.push(o)}return r.HY.fromArray(i)}class d extends l{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),i=n.node(n.sharedDepth(this.to)),o=new r.p2(c(t.content,(e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e,i),t.openStart,t.openEnd);return u.fromReplace(e,this.from,this.to,o)}invert(){return new h(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new d(t.pos,n.pos,this.mark)}merge(e){return e instanceof d&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new d(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for AddMarkStep.fromJSON");return new d(t.from,t.to,e.markFromJSON(t.mark))}}l.jsonID("addMark",d);class h extends l{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}
vendor: 5,857 bytes, line 6
6apply(e){let t=e.slice(this.from,this.to),n=new r.p2(c(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return u.fromReplace(e,this.from,this.to,n)}invert(){return new d(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new h(t.pos,n.pos,this.mark)}merge(e){return e instanceof h&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new h(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for RemoveMarkStep.fromJSON");return new h(t.from,t.to,e.markFromJSON(t.mark))}}l.jsonID("removeMark",h);class f extends l{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return u.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return u.fromReplace(e,this.pos,this.pos+1,new r.p2(r.HY.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let n=0;n<t.marks.length;n++)if(!t.marks[n].isInSet(e))return new f(this.pos,t.marks[n]);return new f(this.pos,this.mark)}}return new p(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new f(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new f(t.pos,e.markFromJSON(t.mark))}}l.jsonID("addNodeMark",f);class p extends l{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return u.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return u.fromReplace(e,this.pos,this.pos+1,new r.p2(r.HY.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new f(this.pos,this.mark):this}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new p(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new p(t.pos,e.markFromJSON(t.mark))}}l.jsonID("removeNodeMark",p);class m extends l{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&b(e,this.from,this.to)?u.fail("Structure replace would overwrite content"):u.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new o([this.from,this.to-this.from,this.slice.size])}invert(e){return new m(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deletedAcross&&n.deletedAcross?null:new m(t.pos,Math.max(t.pos,n.pos),this.slice,this.structure)}merge(e){if(!(e instanceof m)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;{let t=this.slice.size+e.slice.size==0?r.p2.empty:new r.p2(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new m(e.from,this.to,t,this.structure)}}{let t=this.slice.size+e.slice.size==0?r.p2.empty:new r.p2(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new m(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for ReplaceStep.fromJSON");return new m(t.from,t.to,r.p2.fromJSON(e,t.slice),!!t.structure)}}l.jsonID("replace",m);class g extends l{constructor(e,t,n,r,i,o,s=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=o,this.structure=s}apply(e){if(this.structure&&(b(e,this.from,this.gapFrom)||b(e,this.gapTo,this.to)))return u.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return u.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,t.content);return n?u.fromReplace(e,this.from,this.to,n):u.fail("Content does not fit in gap")}getMap(){return new o([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new g(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1),r=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?n.pos:e.map(this.gapTo,1);return t.deletedAcross&&n.deletedAcross||r<t.pos||i>n.pos?null:new g(t.pos,n.pos,r,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new g(t.from,t.to,t.gapFrom,t.gapTo,r.p2.fromJSON(e,t.slice),t.insert,!!t.structure)}}function b(e,t,n){let r=e.resolve(t),i=n-t,o=r.depth;for(;i>0&&o>
60&&r.indexAfter(o)==r.node(o).childCount;)o--,i--;if(i>0){let e=r.node(o).maybeChild(r.indexAfter(o));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function v(e,t,n,i=n.contentMatch,o=!0){let s=e.doc.nodeAt(t),a=[],l=t+1;for(let t=0;t<s.childCount;t++){let u=s.child(t),c=l+u.nodeSize,d=i.matchType(u.type);if(d){i=d;for(let t=0;t<u.marks.length;t++)n.allowsMarkType(u.marks[t].type)||e.step(new h(l,c,u.marks[t]));if(o&&u.isText&&"pre"!=n.whitespace){let e,t=/\r?\n|\r/g,i;for(;e=t.exec(u.text);)i||(i=new r.p2(r.HY.from(n.schema.text(" ",n.allowedMarks(u.marks))),0,0)),a.push(new m(l+e.index,l+e.index+e[0].length,i))}}else a.push(new m(l,c,r.p2.empty));l=c}if(!i.validEnd){let t=i.fillBefore(r.HY.empty,!0);e.replace(l,l,new r.p2(t,0,0))}for(let t=a.length-1;t>=0;t--)e.step(a[t])}function y(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth;;--n){let r=e.$from.node(n),i=e.$from.index(n),o=e.$to.indexAfter(n);if(n<e.depth&&r.canReplace(i,o,t))return n;if(0==n||r.type.spec.isolating||!((0==i||r.canReplace(i,r.childCount))&&(o==r.childCount||r.canReplace(0,o))))break}return null}function x(e,t,n=null,r=e){let i=function(e,t){let{parent:n,startIndex:r,endIndex:i}=e,o=n.contentMatchAt(r).findWrapping(t);if(!o)return null;let s=o.length?o[0]:t;return n.canReplaceWith(r,i,s)?o:null}(e,t),o=i&&function(e,t){let{parent:n,startIndex:r,endIndex:i}=e,o=n.child(r),s=t.contentMatch.findWrapping(o.type);if(!s)return null;let a=(s.length?s[s.length-1]:t).contentMatch;for(let e=r;a&&e<i;e++)a=a.matchType(n.child(e).type);return a&&a.validEnd?s:null}(r,t);return o?i.map(k).concat({type:t,attrs:n}).concat(o.map(k)):null}function k(e){return{type:e,attrs:null}}function w(e,t,n,r){t.forEach((i,o)=>{if(i.isText){let s,a=/\r?\n|\r/g;for(;s=a.exec(i.text);){let i=e.mapping.slice(r).map(n+1+o+s.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function C(e,t,n,r){t.forEach((i,o)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(r).map(n+1+o);e.replaceWith(i,i+1,t.type.schema.text("\n"))}})}function _(e,t,n=1,r){let i=e.resolve(t),o=i.depth-n,s=r&&r[r.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!s.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let e=i.depth-1,t=n-2;e>o;e--,t--){let n=i.node(e),o=i.index(e);if(n.type.spec.isolating)return!1;let s=n.content.cutByIndex(o,n.childCount),a=r&&r[t+1];a&&(s=s.replaceChild(0,a.type.create(a.attrs)));let l=r&&r[t]||n;if(!n.canReplace(o+1,n.childCount)||!l.type.validContent(s))return!1}let a=i.indexAfter(o),l=r&&r[0];return i.node(o).canReplaceWith(a,a,l?l.type:i.node(o+1).type)}function A(e,t){let n=e.resolve(t),r=n.index();return M(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function M(e,t){return!!(e&&t&&!e.isLeaf&&function(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:r}=e.type.schema;for(let i=0;i<t.childCount;i++){let o=t.child(i),s=o.type==r?e.type.schema.nodes.text:o.type;if(!(n=n.matchType(s))||!e.type.allowsMarks(o.marks))return!1}return n.validEnd}(e,t))}function S(e,t,n=-1){let r=e.resolve(t);for(let e=r.depth;;e--){let i,o,s=r.index(e);if(e==r.depth?(i=r.nodeBefore,o=r.nodeAfter):n>0?(i=r.node(e+1),s++,o=r.node(e).maybeChild(s)):(i=r.node(e).maybeChild(s-1),o=r.node(e+1)),i&&!i.isTextblock&&M(i,o)&&r.node(e).canReplace(s,s+1))return t;if(0==e)break;t=n<0?r.before(e):r.after(e)}}function E(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let i=n.content;for(let e=0;e<n.openStart;e++)i=i.firstChild.content;for(let e=1;e<=(0==n.openStart&&n.size?2:1);e++)for(let t=r.depth;t>=0;t--){let n=t==r.depth?0:r.pos<=(r.start(t+1)+r.end(t+1))/2?-1:1,o=r.index(t)+(n>0?1:0),s=r.node(t),a=!1;if(1==e)a=s.canReplace(o,o,i);else{let e=s.contentMatchAt(o).findWrapping(i.firstChild.type);a=e&&s.canReplaceWith(o,o,e[0])}if(a)return 0==n?r.pos:n<0?r.before(t+1):r.after(t+1)}return null}function T(e,t,n=t,i=r.p2.empty){if(t==n&&!i.size)return null;let o=e.resolve(t),s=e.resolve(n);return D(o,s,i)?new m(t,n,i):new L(o,s,i).fit()}function D(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}l.jsonID("replaceAround",g);class L{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=r.HY.empty;for(let t=0;t<=e.depth;t++){let n=e.node(t);this.frontier.push({type:n.type,match:n.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=r.HY.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,i=this.close(e<0?this.$to:n.doc.resolve(e));if(!i)return null;let o=this.placed,s=n.depth,a=i.depth;for(;s&&a&&1==o.childCount;)o=o.firstChild.content,s--,a--;let l=new r.p2(o,s,a);return e>-1?new g(n.pos,e,this.$to.pos,this.$to.end(),l,t):l.size||n.pos!=this.$to.pos?new m(n.pos,i.pos,l):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<e;n++){let i=t.firstChild;if(t.childCount>1&&(r=0),i.type.spec.isolating&&r<=n){e=n;break}t=i.content}for(let t=1;t<=2;t++)for(let n=1==t?e:this.unplaced.openStart;n>=0;n--){let e=null,i=(n?(e=F(this.unplaced.content,n-1).firstChild).content:this.unplaced.content).firstChild;for(let o=this.depth;o>=0;o--){let{type:s,match:a}=this.frontier[o],l,u=null;if(1==t&&(i?a.matchType(i.type)||(u=a.fillBefore(r.HY.from(i),!1)):e&&s.compatibleContent(e.type)))return{sliceDepth:n,frontierDepth:o,parent:e,inject:u};if(2==t&&i&&(l=a.findWrapping(i.type)))return{sliceDepth:n,frontierDepth:o,parent:e,wrap:l};
6if(e&&a.matchType(e.type))break}}}openMore(){let{content:e,openStart:t,openEnd:n}=this.unplaced,i=F(e,t);return!!i.childCount&&!i.firstChild.isLeaf&&(this.unplaced=new r.p2(e,t+1,Math.max(n,i.size+t>=e.size-n?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,i=F(e,t);if(i.childCount<=1&&t>0){let o=e.size-t<=t+i.size;this.unplaced=new r.p2(O(e,t-1,1),t-1,o?t-1:n)}else this.unplaced=new r.p2(O(e,t,1),t,n)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:i,wrap:o}){for(;this.depth>t;)this.closeFrontierNode();if(o)for(let e=0;e<o.length;e++)this.openFrontierNode(o[e]);let s=this.unplaced,a=n?n.content:s.content,l=s.openStart-e,u=0,c=[],{match:d,type:h}=this.frontier[t];if(i){for(let e=0;e<i.childCount;e++)c.push(i.child(e));d=d.matchFragment(i)}let f=a.size+e-(s.content.size-s.openEnd);for(;u<a.childCount;){let e=a.child(u),t=d.matchType(e.type);if(!t)break;(++u>1||0==l||e.content.size)&&(d=t,c.push(function e(t,n,i){if(n<=0)return t;let o=t.content;return n>1&&(o=o.replaceChild(0,e(o.firstChild,n-1,1==o.childCount?i-1:0))),n>0&&(o=t.type.contentMatch.fillBefore(o).append(o),i<=0&&(o=o.append(t.type.contentMatch.matchFragment(o).fillBefore(r.HY.empty,!0)))),t.copy(o)}(e.mark(h.allowedMarks(e.marks)),1==u?l:0,u==a.childCount?f:-1)))}let p=u==a.childCount;p||(f=-1),this.placed=R(this.placed,t,r.HY.from(c)),this.frontier[t].match=d,p&&f<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=a;e<f;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=p?0==e?r.p2.empty:new r.p2(O(s.content,e-1,1),e-1,f<0?s.openEnd:e-1):new r.p2(O(s.content,e,u),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return -1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!z(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return -1;let{depth:n}=this.$to,r=this.$to.after(n);for(;n>1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(e){o:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:r}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),o=z(e,t,r,n,i);if(o){for(let n=t-1;n>=0;n--){let{match:t,type:r}=this.frontier[n],i=z(e,n,r,t,!0);if(!i||i.childCount)continue o}return{depth:t,fit:o,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=R(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let t=e.node(n),r=t.type.contentMatch.fillBefore(t.content,!0,e.index(n));this.openFrontierNode(t.type,t.attrs,r)}return e}openFrontierNode(e,t=null,n){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=R(this.placed,this.depth,r.HY.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(r.HY.empty,!0);e.childCount&&(this.placed=R(this.placed,this.frontier.length,e))}}function O(e,t,n){return 0==t?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(O(e.firstChild.content,t-1,n)))}function R(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(R(e.lastChild.content,t-1,n)))}function F(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function z(e,t,n,r,i){let o=e.node(t),s=i?e.indexAfter(t):e.index(t);if(s==o.childCount&&!n.compatibleContent(o.type))return null;let a=r.fillBefore(o.content,!0,s);return a&&!function(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}(n,o.content,s)?a:null}function I(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let i=r;i>=0;i--){let r=e.start(i);if(r<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(r==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==r-1)&&n.push(i)}return n}class B extends l{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return u.fail("No node at attribute step's position");let n=Object.create(null);for(let e in t.attrs)n[e]=t.attrs[e];n[this.attr]=this.value;let i=t.type.create(n,null,t.marks);return u.fromReplace(e,this.pos,this.pos+1,new r.p2(r.HY.from(i),0,t.isLeaf?0:1))}getMap(){return o.empty}invert(e){return new B(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new B(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw RangeError("Invalid input for AttrStep.fromJSON");return new B(t.pos,t.attr,t.value)}}l.jsonID("attr",B);
6class j extends l{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let n in e.attrs)t[n]=e.attrs[n];t[this.attr]=this.value;let n=e.type.create(t,e.content,e.marks);return u.ok(n)}getMap(){return o.empty}invert(e){return new j(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if("string"!=typeof t.attr)throw RangeError("Invalid input for DocAttrStep.fromJSON");return new j(t.attr,t.value)}}l.jsonID("docAttr",j);let N=class extends Error{};(N=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n}).prototype=Object.create(Error.prototype),N.prototype.constructor=N,N.prototype.name="TransformError";class P{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new s}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new N(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,n=r.p2.empty){let i=T(this.doc,e,t,n);return i&&this.step(i),this}replaceWith(e,t,n){return this.replace(e,t,new r.p2(r.HY.from(n),0,0))}delete(e,t){return this.replace(e,t,r.p2.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return!function(e,t,n,i){if(!i.size)return e.deleteRange(t,n);let o=e.doc.resolve(t),s=e.doc.resolve(n);if(D(o,s,i))return e.step(new m(t,n,i));let a=I(o,e.doc.resolve(n));0==a[a.length-1]&&a.pop();let l=-(o.depth+1);a.unshift(l);for(let e=o.depth,t=o.pos-1;e>0;e--,t--){let n=o.node(e).type.spec;if(n.defining||n.definingAsContext||n.isolating)break;a.indexOf(e)>-1?l=e:o.before(e)==t&&a.splice(1,0,-e)}let u=a.indexOf(l),c=[],d=i.openStart;for(let e=i.content,t=0;;t++){let n=e.firstChild;if(c.push(n),t==i.openStart)break;e=n.content}for(let e=d-1;e>=0;e--){var h;let t=c[e],n=(h=t.type).spec.defining||h.spec.definingForContent;if(n&&!t.sameMarkup(o.node(Math.abs(l)-1)))d=e;else if(n||!t.type.isTextblock)break}for(let t=i.openStart;t>=0;t--){let l=(t+d+1)%(i.openStart+1),h=c[l];if(h)for(let t=0;t<a.length;t++){let c=a[(t+u)%a.length],d=!0;c<0&&(d=!1,c=-c);let f=o.node(c-1),p=o.index(c-1);if(f.canReplaceWith(p,p,h.type,h.marks))return e.replace(o.before(c),d?s.after(c):n,new r.p2(function e(t,n,i,o,s){if(n<i){let r=t.firstChild;t=t.replaceChild(0,r.copy(e(r.content,n+1,i,o,r)))}if(n>o){let e=s.contentMatchAt(0),n=e.fillBefore(t).append(t);t=n.append(e.matchFragment(n).fillBefore(r.HY.empty,!0))}return t}(i.content,0,i.openStart,l),l,i.openEnd))}}let f=e.steps.length;for(let r=a.length-1;r>=0&&(e.replace(t,n,i),!(e.steps.length>f));r--){let e=a[r];e<0||(t=o.before(e),n=s.after(e))}}(this,e,t,n),this}replaceRangeWith(e,t,n){return!function(e,t,n,i){if(!i.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let r=function(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(let e=r.depth-1;e>=0;e--){let t=r.index(e);if(r.node(e).canReplaceWith(t,t,n))return r.before(e+1);if(t>0)return null}if(r.parentOffset==r.parent.content.size)for(let e=r.depth-1;e>=0;e--){let t=r.indexAfter(e);if(r.node(e).canReplaceWith(t,t,n))return r.after(e+1);if(t<r.node(e).childCount)break}return null}(e.doc,t,i.type);null!=r&&(t=n=r)}e.replaceRange(t,n,new r.p2(r.HY.from(i),0,0))}(this,e,t,n),this}deleteRange(e,t){return!function(e,t,n){let r=e.doc.resolve(t),i=e.doc.resolve(n),o=I(r,i);for(let t=0;t<o.length;t++){let n=o[t],s=t==o.length-1;if(s&&0==n||r.node(n).type.contentMatch.validEnd)return e.delete(r.start(n),i.end(n));if(n>0&&(s||r.node(n-1).canReplace(r.index(n-1),i.indexAfter(n-1))))return e.delete(r.before(n),i.after(n))}for(let o=1;o<=r.depth&&o<=i.depth;o++)if(t-r.start(o)==r.depth-o&&n>r.end(o)&&i.end(o)-n!=i.depth-o&&r.start(o-1)==i.start(o-1)&&r.node(o-1).canReplace(r.index(o-1),i.index(o-1)))return e.delete(r.before(o),n);e.delete(t,n)}(this,e,t),this}lift(e,t){return!function(e,t,n){let{$from:i,$to:o,depth:s}=t,a=i.before(s+1),l=o.after(s+1),u=a,c=l,d=r.HY.empty,h=0;for(let e=s,t=!1;e>n;e--)t||i.index(e)>
60?(t=!0,d=r.HY.from(i.node(e).copy(d)),h++):u--;let f=r.HY.empty,p=0;for(let e=s,t=!1;e>n;e--)t||o.after(e+1)<o.end(e)?(t=!0,f=r.HY.from(o.node(e).copy(f)),p++):c++;e.step(new g(u,c,a,l,new r.p2(d.append(f),h,p),d.size-h,!0))}(this,e,t),this}join(e,t=1){return!function(e,t,n){let i=null,{linebreakReplacement:o}=e.doc.type.schema,s=e.doc.resolve(t-n),a=s.node().type;if(o&&a.inlineContent){let e="pre"==a.whitespace,t=!!a.contentMatch.matchType(o);e&&!t?i=!1:!e&&t&&(i=!0)}let l=e.steps.length;if(!1===i){let r=e.doc.resolve(t+n);C(e,r.node(),r.before(),l)}a.inlineContent&&v(e,t+n-1,a,s.node().contentMatchAt(s.index()),null==i);let u=e.mapping.slice(l),c=u.map(t-n);if(e.step(new m(c,u.map(t+n,-1),r.p2.empty,!0)),!0===i){let t=e.doc.resolve(c);w(e,t.node(),t.before(),e.steps.length)}}(this,e,t),this}wrap(e,t){return!function(e,t,n){let i=r.HY.empty;for(let e=n.length-1;e>=0;e--){if(i.size){let t=n[e].type.contentMatch.matchFragment(i);if(!t||!t.validEnd)throw RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=r.HY.from(n[e].type.create(n[e].attrs,i))}let o=t.start,s=t.end;e.step(new g(o,s,o,s,new r.p2(i,0,0),n.length,!0))}(this,e,t),this}setBlockType(e,t=e,n,i=null){return!function(e,t,n,i,o){if(!i.isTextblock)throw RangeError("Type given to setBlockType should be a textblock");let s=e.steps.length;e.doc.nodesBetween(t,n,(t,n)=>{var a,l;let u,c,d="function"==typeof o?o(t):o;if(t.isTextblock&&!t.hasMarkup(i,d)&&(a=e.doc,l=e.mapping.slice(s).map(n),c=(u=a.resolve(l)).index(),u.parent.canReplaceWith(c,c+1,i))){let o=null;if(i.schema.linebreakReplacement){let e="pre"==i.whitespace,t=!!i.contentMatch.matchType(i.schema.linebreakReplacement);e&&!t?o=!1:!e&&t&&(o=!0)}!1===o&&C(e,t,n,s),v(e,e.mapping.slice(s).map(n,1),i,void 0,null===o);let a=e.mapping.slice(s),l=a.map(n,1),u=a.map(n+t.nodeSize,1);return e.step(new g(l,u,l+1,u-1,new r.p2(r.HY.from(i.create(d,null,t.marks)),0,0),1,!0)),!0===o&&w(e,t,n,s),!1}})}(this,e,t,n,i),this}setNodeMarkup(e,t,n=null,i){return!function(e,t,n,i,o){let s=e.doc.nodeAt(t);if(!s)throw RangeError("No node at given position");n||(n=s.type);let a=n.create(i,null,o||s.marks);if(s.isLeaf)return e.replaceWith(t,t+s.nodeSize,a);if(!n.validContent(s.content))throw RangeError("Invalid content for node type "+n.name);e.step(new g(t,t+s.nodeSize,t+1,t+s.nodeSize-1,new r.p2(r.HY.from(a),0,0),1,!0))}(this,e,t,n,i),this}setNodeAttribute(e,t,n){return this.step(new B(e,t,n)),this}setDocAttribute(e,t){return this.step(new j(e,t)),this}addNodeMark(e,t){return this.step(new f(e,t)),this}removeNodeMark(e,t){let n=this.doc.nodeAt(e);if(!n)throw RangeError("No node at position "+e);if(t instanceof r.vc)t.isInSet(n.marks)&&this.step(new p(e,t));else{let r=n.marks,i,o=[];for(;i=t.isInSet(r);)o.push(new p(e,i)),r=i.removeFromSet(r);for(let e=o.length-1;e>=0;e--)this.step(o[e])}return this}split(e,t=1,n){return!function(e,t,n=1,i){let o=e.doc.resolve(t),s=r.HY.empty,a=r.HY.empty;for(let e=o.depth,t=o.depth-n,l=n-1;e>t;e--,l--){s=r.HY.from(o.node(e).copy(s));let t=i&&i[l];a=r.HY.from(t?t.type.create(t.attrs,a):o.node(e).copy(a))}e.step(new m(t,t,new r.p2(s.append(a),n,n),!0))}(this,e,t,n),this}addMark(e,t,n){var r;let i,o,s,a;return r=this,s=[],a=[],r.doc.nodesBetween(e,t,(r,l,u)=>{if(!r.isInline)return;let c=r.marks;if(!n.isInSet(c)&&u.type.allowsMarkType(n.type)){let u=Math.max(l,e),f=Math.min(l+r.nodeSize,t),p=n.addToSet(c);for(let e=0;e<c.length;e++)c[e].isInSet(p)||(i&&i.to==u&&i.mark.eq(c[e])?i.to=f:s.push(i=new h(u,f,c[e])));o&&o.to==u?o.to=f:a.push(o=new d(u,f,n))}}),s.forEach(e=>r.step(e)),a.forEach(e=>r.step(e)),this}removeMark(e,t,n){var i;let o,s;return i=this,o=[],s=0,i.doc.nodesBetween(e,t,(i,a)=>{if(!i.isInline)return;s++;let l=null;if(n instanceof r.ZU){let e=i.marks,t;for(;t=n.isInSet(e);)(l||(l=[])).push(t),e=t.removeFromSet(e)}else n?n.isInSet(i.marks)&&(l=[n]):l=i.marks;if(l&&l.length){let n=Math.min(a+i.nodeSize,t);for(let t=0;t<l.length;t++){let r=l[t],i;for(let e=0;e<o.length;e++){let t=o[e];t.step==s-1&&r.eq(o[e].style)&&(i=t)}i?(i.to=n,i.step=s):o.push({style:r,from:Math.max(a,e),to:n,step:s})}}}
6),o.forEach(e=>i.step(new h(e.from,e.to,e.style))),this}clearIncompatible(e,t,n){return v(this,e,t,n),this}}},29318:function(e,t,n){"use strict";n.d(t,{U:function(){return en}});var r=n(37243),i=n(53660),o=n(37456);let s=new i.V_({nodes:{doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM:()=>["p",0]},blockquote:{content:"block+",group:"block",parseDOM:[{tag:"blockquote"}],toDOM:()=>["blockquote",0]},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM:()=>["div",["hr"]]},heading:{attrs:{level:{default:1}},content:"(text | image)*",group:"block",defining:!0,parseDOM:[{tag:"h1",attrs:{level:1}},{tag:"h2",attrs:{level:2}},{tag:"h3",attrs:{level:3}},{tag:"h4",attrs:{level:4}},{tag:"h5",attrs:{level:5}},{tag:"h6",attrs:{level:6}}],toDOM:e=>["h"+e.attrs.level,0]},code_block:{content:"text*",group:"block",code:!0,defining:!0,marks:"",attrs:{params:{default:""}},parseDOM:[{tag:"pre",preserveWhitespace:"full",getAttrs:e=>({params:e.getAttribute("data-params")||""})}],toDOM:e=>["pre",e.attrs.params?{"data-params":e.attrs.params}:{},["code",0]]},ordered_list:{content:"list_item+",group:"block",attrs:{order:{default:1},tight:{default:!1}},parseDOM:[{tag:"ol",getAttrs:e=>({order:e.hasAttribute("start")?+e.getAttribute("start"):1,tight:e.hasAttribute("data-tight")})}],toDOM:e=>["ol",{start:1==e.attrs.order?null:e.attrs.order,"data-tight":e.attrs.tight?"true":null},0]},bullet_list:{content:"list_item+",group:"block",attrs:{tight:{default:!1}},parseDOM:[{tag:"ul",getAttrs:e=>({tight:e.hasAttribute("data-tight")})}],toDOM:e=>["ul",{"data-tight":e.attrs.tight?"true":null},0]},list_item:{content:"block+",defining:!0,parseDOM:[{tag:"li"}],toDOM:()=>["li",0]},text:{group:"inline"},image:{inline:!0,attrs:{src:{},alt:{default:null},title:{default:null}},group:"inline",draggable:!0,parseDOM:[{tag:"img[src]",getAttrs:e=>({src:e.getAttribute("src"),title:e.getAttribute("title"),alt:e.getAttribute("alt")})}],toDOM:e=>["img",e.attrs]},hard_break:{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM:()=>["br"]}},marks:{em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"},{style:"font-style=normal",clearMark:e=>"em"==e.type.name}],toDOM:()=>["em"]},strong:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!=e.style.fontWeight&&null},{style:"font-weight=400",clearMark:e=>"strong"==e.type.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}],toDOM:()=>["strong"]},link:{attrs:{href:{},title:{default:null}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:e=>({href:e.getAttribute("href"),title:e.getAttribute("title")})}],toDOM:e=>["a",e.attrs]},code:{code:!0,parseDOM:[{tag:"code"}],toDOM:()=>["code"]}}});class a{constructor(e,t){this.schema=e,this.tokenHandlers=t,this.stack=[{type:e.topNodeType,attrs:null,content:[],marks:i.vc.none}]}top(){return this.stack[this.stack.length-1]}push(e){this.stack.length&&this.top().content.push(e)}addText(e){if(!e)return;let t=this.top(),n=t.content,r=n[n.length-1],o=this.schema.text(e,t.marks),s;r&&(s=function(e,t){if(e.isText&&t.isText&&i.vc.sameSet(e.marks,t.marks))return e.withText(e.text+t.text)}(r,o))?n[n.length-1]=s:n.push(o)}openMark(e){let t=this.top();t.marks=e.addToSet(t.marks)}closeMark(e){let t=this.top();t.marks=e.removeFromSet(t.marks)}parseTokens(e){for(let t=0;t<e.length;t++){let n=e[t],r=this.tokenHandlers[n.type];if(!r)throw Error("Token type `"+n.type+"` not supported by Markdown parser");r(this,n,e,t)}}addNode(e,t,n){let r=this.top(),i=e.createAndFill(t,n,r?r.marks:[]);return i?(this.push(i),i):null}openNode(e,t){this.stack.push({type:e,attrs:t,content:[],marks:i.vc.none})}closeNode(){let e=this.stack.pop();return this.addNode(e.type,e.attrs,e.content)}}function l(e,t,n,r){return e.getAttrs?e.getAttrs(t,n,r):e.attrs instanceof Function?e.attrs(t):e.attrs}function u(e,t){return e.noCloseToken||"code_inline"==t||"code_block"==t||"fence"==t}function c(e){return"\n"==e[e.length-1]?e.slice(0,e.length-1):e}function d(){}class h{constructor(e,t,n){this.schema=e,this.tokenizer=t,this.tokens=n,this.tokenHandlers=function(e,t){let n=Object.create(null);for(let r in t){let i=t[r];
6if(i.block){let t=e.nodeType(i.block);u(i,r)?n[r]=(e,n,r,o)=>{e.openNode(t,l(i,n,r,o)),e.addText(c(n.content)),e.closeNode()}:(n[r+"_open"]=(e,n,r,o)=>e.openNode(t,l(i,n,r,o)),n[r+"_close"]=e=>e.closeNode())}else if(i.node){let t=e.nodeType(i.node);n[r]=(e,n,r,o)=>e.addNode(t,l(i,n,r,o))}else if(i.mark){let t=e.marks[i.mark];u(i,r)?n[r]=(e,n,r,o)=>{e.openMark(t.create(l(i,n,r,o))),e.addText(c(n.content)),e.closeMark(t)}:(n[r+"_open"]=(e,n,r,o)=>e.openMark(t.create(l(i,n,r,o))),n[r+"_close"]=e=>e.closeMark(t))}else if(i.ignore)u(i,r)?n[r]=d:(n[r+"_open"]=d,n[r+"_close"]=d);else throw RangeError("Unrecognized parsing spec "+JSON.stringify(i))}return n.text=(e,t)=>e.addText(t.content),n.inline=(e,t)=>e.parseTokens(t.children),n.softbreak=n.softbreak||(e=>e.addText(" ")),n}(e,n)}parse(e,t={}){let n=new a(this.schema,this.tokenHandlers),r;n.parseTokens(this.tokenizer.parse(e,t));do r=n.closeNode();while(n.stack.length);return r||this.schema.topNodeType.createAndFill()}}function f(e,t){for(;++t<e.length;)if("list_item_open"!=e[t].type)return e[t].hidden;return!1}new h(s,(0,o.Z)("commonmark",{html:!1}),{blockquote:{block:"blockquote"},paragraph:{block:"paragraph"},list_item:{block:"list_item"},bullet_list:{block:"bullet_list",getAttrs:(e,t,n)=>({tight:f(t,n)})},ordered_list:{block:"ordered_list",getAttrs:(e,t,n)=>({order:+e.attrGet("start")||1,tight:f(t,n)})},heading:{block:"heading",getAttrs:e=>({level:+e.tag.slice(1)})},code_block:{block:"code_block",noCloseToken:!0},fence:{block:"code_block",getAttrs:e=>({params:e.info||""}),noCloseToken:!0},hr:{node:"horizontal_rule"},image:{node:"image",getAttrs:e=>({src:e.attrGet("src"),title:e.attrGet("title")||null,alt:e.children[0]&&e.children[0].content||null})},hardbreak:{node:"hard_break"},em:{mark:"em"},strong:{mark:"strong"},link:{mark:"link",getAttrs:e=>({href:e.attrGet("href"),title:e.attrGet("title")||null})},code_inline:{mark:"code",noCloseToken:!0}});let p={open:"",close:"",mixable:!0};class m{constructor(e,t,n={}){this.nodes=e,this.marks=t,this.options=n}serialize(e,t={}){t=Object.assign({},this.options,t);let n=new v(this.nodes,this.marks,t);return n.renderContent(e),n.out}}let g=new m({blockquote(e,t){e.wrapBlock("> ",null,t,()=>e.renderContent(t))},code_block(e,t){let n=t.textContent.match(/`{3,}/gm),r=n?n.sort().slice(-1)[0]+"`":"```";e.write(r+(t.attrs.params||"")+"\n"),e.text(t.textContent,!1),e.write("\n"),e.write(r),e.closeBlock(t)},heading(e,t){e.write(e.repeat("#",t.attrs.level)+" "),e.renderInline(t,!1),e.closeBlock(t)},horizontal_rule(e,t){e.write(t.attrs.markup||"---"),e.closeBlock(t)},bullet_list(e,t){e.renderList(t,"  ",()=>(t.attrs.bullet||"*")+" ")},ordered_list(e,t){let n=t.attrs.order||1,r=String(n+t.childCount-1).length,i=e.repeat(" ",r+2);e.renderList(t,i,t=>{let i=String(n+t);return e.repeat(" ",r-i.length)+i+". "})},list_item(e,t){e.renderContent(t)},paragraph(e,t){e.renderInline(t),e.closeBlock(t)},image(e,t){e.write("!["+e.esc(t.attrs.alt||"")+"]("+t.attrs.src.replace(/[\(\)]/g,"\\$&")+(t.attrs.title?' "'+t.attrs.title.replace(/"/g,'\\"')+'"':"")+")")},hard_break(e,t,n,r){for(let i=r+1;i<n.childCount;i++)if(n.child(i).type!=t.type){e.write("\\\n");return}},text(e,t){e.text(t.text,!e.inAutolink)}},{em:{open:"*",close:"*",mixable:!0,expelEnclosingWhitespace:!0},strong:{open:"**",close:"**",mixable:!0,expelEnclosingWhitespace:!0},link:{open:(e,t,n,r)=>(e.inAutolink=function(e,t,n){if(e.attrs.title||!/^\w+:/.test(e.attrs.href))return!1;let r=t.child(n);return!!r.isText&&r.text==e.attrs.href&&r.marks[r.marks.length-1]==e&&(n==t.childCount-1||!e.isInSet(t.child(n+1).marks))}(t,n,r),e.inAutolink?"<":"["),close(e,t,n,r){let{inAutolink:i}=e;return e.inAutolink=void 0,i?">":"]("+t.attrs.href.replace(/[\(\)"]/g,"\\$&")+(t.attrs.title?` "${t.attrs.title.replace(/"/g,'\\"')}"`:"")+")"},mixable:!0},code:{open:(e,t,n,r)=>b(n.child(r),-1),close:(e,t,n,r)=>b(n.child(r-1),1),escape:!1}});function b(e,t){let n=/`+/g,r,i=0;if(e.isText)for(;r=n.exec(e.text);)i=Math.max(i,r[0].length);let o=i>0&&t>0?" `":"`";for(let e=0;e<i;e++)o+="`";return i>0&&t<0&&(o+=" "),o}class v{constructor(e,t,n){this.nodes=e,this.marks=t,this.options=n,this.delim="",this.out="",this.closed=null,this.inAutolink=void 0,this.atBlockStart=!1,this.inTightList=!1,void 0===this.options.tightLists&&(this.options.tightLists=!1),void 0===this.options.hardBreakNodeName&&(this.options.hardBreakNodeName="hard_break")}flushClose(e=2){if(this.closed){if(this.atBlank()||(this.out+="\n"),e>1){let t=this.delim,n=/\s+$/.exec(t);n&&(t=t.slice(0,t.length-n[0].length));for(let n=1;n<e;n++)this.out+=t+"\n"}this.closed=null}}getMark(e){let t=this.marks[e];if(!t){if(!1!==this.options.strict)throw Error(`Mark type \`${e}\` not supported by Markdown renderer`);t=p}return t}wrapBlock(e,t,n,r){let i=this.delim;this.write(null!=t?t:e),this.delim+=e,r(),this.delim=i,this.closeBlock(n)}atBlank(){return/(^|\n)$/.test(this.out)}ensureNewLine(){this.atBlank()||(this.out+="\n")}write(e){this.flushClose(),this.delim&&this.atBlank()&&(this.out+=this.delim),e&&(this.out+=e)}closeBlock(e){this.closed=e}text(e,t=!0){let n=e.split("\n");for(let e=0;e<n.length;e++)this.write(),!t&&"["==n[e][0]&&/(^|[^\\])\!$/.test(this.out)&&(this.out=this.out.slice(0,this.out.length-1)+"\\!"),this.out+=t?this.esc(n[e],this.atBlockStart):n[e],e!=n.length-1&&(this.out+="\n")}render(e,t,n){if(this.nodes[e.type.name])this.nodes[e.type.name](this,e,t,n);else{if(!1!==this.options.strict)throw Error("Token type `"+e.type.n
6ame+"` not supported by Markdown renderer");!e.type.isLeaf&&(e.type.inlineContent?this.renderInline(e):this.renderContent(e),e.isBlock&&this.closeBlock(e))}}renderContent(e){e.forEach((t,n,r)=>this.render(t,e,r))}renderInline(e,t=!0){this.atBlockStart=t;let n=[],r="",i=(t,i,o)=>{let s=t?t.marks:[];t&&t.type.name===this.options.hardBreakNodeName&&(s=s.filter(t=>{if(o+1==e.childCount)return!1;let n=e.child(o+1);return t.isInSet(n.marks)&&(!n.isText||/\S/.test(n.text))}));let a=r;if(r="",t&&t.isText&&s.some(e=>{let t=this.getMark(e.type.name);return t&&t.expelEnclosingWhitespace&&!e.isInSet(n)})){let[e,r,i]=/^(\s*)(.*)$/m.exec(t.text);!r||(a+=r,(t=i?t.withText(i):null)||(s=n))}if(t&&t.isText&&s.some(t=>{let n=this.getMark(t.type.name);return n&&n.expelEnclosingWhitespace&&(o==e.childCount-1||!t.isInSet(e.child(o+1).marks))})){let[e,i,o]=/^(.*?)(\s*)$/m.exec(t.text);!o||(r=o,(t=i?t.withText(i):null)||(s=n))}let l=s.length?s[s.length-1]:null,u=l&&!1===this.getMark(l.type.name).escape,c=s.length-(u?1:0);e:for(let e=0;e<c;e++){let t=s[e];if(!this.getMark(t.type.name).mixable)break;for(let r=0;r<n.length;r++){let i=n[r];if(!this.getMark(i.type.name).mixable)break;if(t.eq(i)){e>r?s=s.slice(0,r).concat(t).concat(s.slice(r,e)).concat(s.slice(e+1,c)):r>e&&(s=s.slice(0,e).concat(s.slice(e+1,r)).concat(t).concat(s.slice(r,c)));continue e}}}let d=0;for(;d<Math.min(n.length,c)&&s[d].eq(n[d]);)++d;for(;d<n.length;)this.text(this.markString(n.pop(),!1,e,o),!1);if(a&&this.text(a),t){for(;n.length<c;){let t=s[n.length];n.push(t),this.text(this.markString(t,!0,e,o),!1),this.atBlockStart=!1}u&&t.isText?this.text(this.markString(l,!0,e,o)+t.text+this.markString(l,!1,e,o+1),!1):this.render(t,e,o),this.atBlockStart=!1}(null==t?void 0:t.isText)&&t.nodeSize>0&&(this.atBlockStart=!1)};e.forEach(i),i(null,0,e.childCount),this.atBlockStart=!1}renderList(e,t,n){this.closed&&this.closed.type==e.type?this.flushClose(3):this.inTightList&&this.flushClose(1);let r=void 0!==e.attrs.tight?e.attrs.tight:this.options.tightLists,i=this.inTightList;this.inTightList=r,e.forEach((i,o,s)=>{s&&r&&this.flushClose(1),this.wrapBlock(t,n(s),e,()=>this.render(i,e,s))}),this.inTightList=i}esc(e,t=!1){return e=e.replace(/[`*\\~\[\]_]/g,(t,n)=>"_"==t&&n>0&&n+1<e.length&&e[n-1].match(/\w/)&&e[n+1].match(/\w/)?t:"\\"+t),t&&(e=e.replace(/^(\+[ ]|[\-*>])/,"\\$&").replace(/^(\s*)(#{1,6})(\s|$)/,"$1\\$2$3").replace(/^(\s*\d+)\.\s/,"$1\\. ")),this.options.escapeExtraCharacters&&(e=e.replace(this.options.escapeExtraCharacters,"\\$&")),e}quote(e){let t=-1==e.indexOf('"')?'""':-1==e.indexOf("'")?"''":"()";return t[0]+e+t[1]}repeat(e,t){let n="";for(let r=0;r<t;r++)n+=e;return n}markString(e,t,n,r){let i=this.getMark(e.type.name),o=t?i.open:i.close;return"string"==typeof o?o:o(this,e,n,r)}getEnclosingWhitespace(e){return{leading:(e.match(/^(\s+)/)||[void 0])[0],trailing:(e.match(/(\s+)$/)||[void 0])[0]}}}var y=n(69788),x=n(27191),k=Object.defineProperty,w=(e,t,n)=>t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,C=(e,t,n)=>(w(e,"symbol"!=typeof t?t+"":t,n),n);let _=r.hj.create({name:"markdownTightLists",addOptions:()=>({tight:!0,tightClass:"tight",listTypes:["bulletList","orderedList"]}),addGlobalAttributes(){return[{types:this.options.listTypes,attributes:{tight:{default:this.options.tight,parseHTML:e=>"true"===e.getAttribute("data-tight")||!e.querySelector("p"),renderHTML:e=>({class:e.tight?this.options.tightClass:null,"data-tight":e.tight?"true":null})}}}]},addCommands(){var e=this;return{toggleTight:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return n=>{let{editor:r,commands:i}=n;return e.options.listTypes.some(e=>(function(e){if(!r.isActive(e))return!1;let n=r.getAttributes(e);return i.updateAttributes(e,{tight:null!=t?t:!(null!=n&&n.tight)})})(e))}}}}}),A=(0,o.Z)();function M(e,t){return A.inline.State.prototype.scanDelims.call({src:e,posMax:e.length}),new A.inline.State(e,null,null,[]).scanDelims(t,!0)}function S(e,t,n,r){let i=e.substring(0,n)+e.substring(n+t.length);return i.substring(0,n+r)+t+i.substring(n+r)}class E extends v{constructor(e,t,n){super(e,t,null!=n?n:{}),C(this,"inTable",!1),this.inlines=[]}render(e,t,n){super.render(e,t,n);
6let r=this.inlines[this.inlines.length-1];if(null!=r&&r.start&&null!=r&&r.end){let e;let{delimiter:t,start:n,end:i}=this.normalizeInline(r);this.out=((e=function(e,t,n,r){let i=r,o=e;for(;i>n&&!M(o,i).can_close;)o=S(o,t,i,-1),i--;return{text:o,from:n,to:i}}((e=function(e,t,n,r){let i=n,o=e;for(;i<r&&!M(o,i).can_open;)o=S(o,t,i,1),i++;return{text:o,from:i,to:r}}((e={text:this.out,from:n,to:i}).text,t,e.from,e.to)).text,t,e.from,e.to)).to-e.from<t.length+1&&(e.text=e.text.substring(0,e.from)+e.text.substring(e.to+t.length)),e.text),this.inlines.pop()}}markString(e,t,n,r){let i=this.marks[e.type.name];if(i.expelEnclosingWhitespace){if(t)this.inlines.push({start:this.out.length,delimiter:i.open});else{let e=this.inlines.pop();this.inlines.push({...e,end:this.out.length})}}return super.markString(e,t,n,r)}normalizeInline(e){let{start:t,end:n}=e;for(;this.out.charAt(t).match(/\s/);)t++;return{...e,start:t}}}let T=r.vc.create({name:"markdownHTMLMark",addStorage:()=>({markdown:{serialize:{open(e,t){var n,r;return this.editor.storage.markdown.options.html?null!==(n=null===(r=D(t))||void 0===r?void 0:r[0])&&void 0!==n?n:"":(console.warn(`Tiptap Markdown: "${t.type.name}" mark is only available in html mode`),"")},close(e,t){var n,r;return this.editor.storage.markdown.options.html&&null!==(n=null===(r=D(t))||void 0===r?void 0:r[1])&&void 0!==n?n:""}},parse:{}}})});function D(e){let t=e.type.schema,n=t.text(" ",[e]),o=(0,r.d1)(i.HY.from(n),t).match(/^(<.*?>) (<\/.*?>)$/);return o?[o[1],o[2]]:null}function L(e){let t=`<body>${e}</body>`;return new window.DOMParser().parseFromString(t,"text/html").body}let O=r.NB.create({name:"markdownHTMLNode",addStorage:()=>({markdown:{serialize(e,t,n){this.editor.storage.markdown.options.html?e.write(function(e,t){let n=e.type.schema,o=(0,r.d1)(i.HY.from(e),n);return e.isBlock&&(t instanceof i.HY||t.type.name===n.topNodeType.name)?function(e){let t=L(e).firstElementChild;return t.innerHTML=t.innerHTML.trim()?`
7${t.innerHTML}
8`:`
9`,t.outerHTML}(o):o}(t,n)):(console.warn(`Tiptap Markdown: "${t.type.name}" node is only available in html mode`),e.write(`[${t.type.name}]`)),t.isBlock&&e.closeBlock(t)},parse:{}}})}),R=r.NB.create({name:"blockquote"}).extend({addStorage:()=>({markdown:{serialize:g.nodes.blockquote,parse:{}}})}),F=r.NB.create({name:"bulletList"}).extend({addStorage:()=>({markdown:{serialize(e,t){return e.renderList(t,"  ",()=>(this.editor.storage.markdown.options.bulletListMarker||"-")+" ")},parse:{}}})}),z=r.NB.create({name:"codeBlock"}).extend({addStorage:()=>({markdown:{serialize(e,t){e.write("```"+(t.attrs.language||"")+"\n"),e.text(t.textContent,!1),e.ensureNewLine(),e.write("```"),e.closeBlock(t)},parse:{setup(e){var t;e.set({langPrefix:null!==(t=this.options.languageClassPrefix)&&void 0!==t?t:"language-"})},updateDOM(e){e.innerHTML=e.innerHTML.replace(/\n<\/code><\/pre>/g,"</code></pre>")}}}})}),I=r.NB.create({name:"hardBreak"}).extend({addStorage:()=>({markdown:{serialize(e,t,n,r){for(let i=r+1;i<n.childCount;i++)if(n.child(i).type!=t.type){e.write(e.inTable?O.storage.markdown.serialize.call(this,e,t,n):"\\\n");return}},parse:{}}})}),B=r.NB.create({name:"heading"}).extend({addStorage:()=>({markdown:{serialize:g.nodes.heading,parse:{}}})}),j=r.NB.create({name:"horizontalRule"}).extend({addStorage:()=>({markdown:{serialize:g.nodes.horizontal_rule,parse:{}}})}),N=r.NB.create({name:"image"}).extend({addStorage:()=>({markdown:{serialize:g.nodes.image,parse:{}}})}),P=r.NB.create({name:"listItem"}).extend({addStorage:()=>({markdown:{serialize:g.nodes.list_item,parse:{}}})}),H=r.NB.create({name:"orderedList"}).extend({addStorage:()=>({markdown:{serialize(e,t,n,r){let i=t.attrs.start||1,o=String(i+t.childCount-1).length,s=e.repeat(" ",o+2),a=function(e,t,n){let r=0;for(;n-r>0&&t.child(n-r-1).type.name===e.type.name;r++);return r}(t,n,r)%2?") ":". ";e.renderList(t,s,t=>{let n=String(i+t);return e.repeat(" ",o-n.length)+n+a})},parse:{}}})}),W=r.NB.create({name:"paragraph"}).extend({addStorage:()=>({markdown:{serialize:g.nodes.paragraph,parse:{}}})});function $(e){var t,n;return null!==(t=null==e||null===(n=e.content)||void 0===n?void 0:n.content)&&void 0!==t?t:[]}let Z=r.NB.create({name:"table"}).extend({addStorage:()=>({markdown:{serialize(e,t,n){if(!function(e){let t=$(e),n=t[0],r=t.slice(1);return!($(n).some(e=>
9"tableHeader"!==e.type.name||q(e)||e.childCount>1)||r.some(e=>$(e).some(e=>"tableHeader"===e.type.name||q(e)||e.childCount>1)))}(t)){O.storage.markdown.serialize.call(this,e,t,n);return}e.inTable=!0,t.forEach((t,n,r)=>{if(e.write("| "),t.forEach((t,n,r)=>{r&&e.write(" | ");let i=t.firstChild;i.textContent.trim()&&e.renderInline(i)}),e.write(" |"),e.ensureNewLine(),!r){let n=Array.from({length:t.childCount}).map(()=>"---").join(" | ");e.write(`| ${n} |`),e.ensureNewLine()}}),e.closeBlock(t),e.inTable=!1},parse:{}}})});function q(e){return e.attrs.colspan>1||e.attrs.rowspan>1}let U=r.NB.create({name:"taskItem"}).extend({addStorage:()=>({markdown:{serialize(e,t){let n=t.attrs.checked?"[x]":"[ ]";e.write(`${n} `),e.renderContent(t)},parse:{updateDOM(e){[...e.querySelectorAll(".task-list-item")].forEach(e=>{let t=e.querySelector("input");e.setAttribute("data-type","taskItem"),t&&(e.setAttribute("data-checked",t.checked),t.remove())})}}}})}),V=r.NB.create({name:"taskList"}).extend({addStorage:()=>({markdown:{serialize:F.storage.markdown.serialize,parse:{setup(e){e.use(y)},updateDOM(e){[...e.querySelectorAll(".contains-task-list")].forEach(e=>{e.setAttribute("data-type","taskList")})}}}})}),Y=r.NB.create({name:"text"}).extend({addStorage:()=>({markdown:{serialize(e,t){var n;e.text(null==(n=t.text)?void 0:n.replace(/</g,"&lt;").replace(/>/g,"&gt;"))},parse:{}}})}),G=r.vc.create({name:"bold"}).extend({addStorage:()=>({markdown:{serialize:g.marks.strong,parse:{}}})}),J=r.vc.create({name:"code"}).extend({addStorage:()=>({markdown:{serialize:g.marks.code,parse:{}}})}),X=[R,F,z,I,B,j,O,N,P,H,W,Z,U,V,Y,G,J,T,r.vc.create({name:"italic"}).extend({addStorage:()=>({markdown:{serialize:g.marks.em,parse:{}}})}),r.vc.create({name:"link"}).extend({addStorage:()=>({markdown:{serialize:g.marks.link,parse:{}}})}),r.vc.create({name:"strike"}).extend({addStorage:()=>({markdown:{serialize:{open:"~~",close:"~~",expelEnclosingWhitespace:!0},parse:{}}})})];function K(e){var t,n;let r=null===(t=e.storage)||void 0===t?void 0:t.markdown,i=null===(n=X.find(t=>t.name===e.name))||void 0===n?void 0:n.storage.markdown;return r||i?{...i,...r}:null}class Q{constructor(e){C(this,"editor",null),this.editor=e}serialize(e){let t=new E(this.nodes,this.marks,{hardBreakNodeName:I.name});return t.renderContent(e),t.out}get nodes(){var e;return{...Object.fromEntries(Object.keys(this.editor.schema.nodes).map(e=>[e,this.serializeNode(O)])),...Object.fromEntries(null!==(e=this.editor.extensionManager.extensions.filter(e=>"node"===e.type&&this.serializeNode(e)).map(e=>[e.name,this.serializeNode(e)]))&&void 0!==e?e:[])}}get marks(){var e;return{...Object.fromEntries(Object.keys(this.editor.schema.marks).map(e=>[e,this.serializeMark(T)])),...Object.fromEntries(null!==(e=this.editor.extensionManager.extensions.filter(e=>"mark"===e.type&&this.serializeMark(e)).map(e=>[e.name,this.serializeMark(e)]))&&void 0!==e?e:[])}}serializeNode(e){var t;return null===(t=K(e))||void 0===t||null===(t=t.serialize)||void 0===t?void 0:t.bind({editor:this.editor,options:e.options})}serializeMark(e){var t;let n=null===(t=K(e))||void 0===t?void 0:t.serialize;return n?{...n,open:"function"==typeof n.open?n.open.bind({editor:this.editor,options:e.options}):n.open,close:"function"==typeof n.close?n.close.bind({editor:this.editor,options:e.options}):n.close}:null}}class ee{constructor(e,t){C(this,"editor",null),C(this,"md",null);let{html:n,linkify:r,breaks:i}=t;this.editor=e,this.md=this.withPatchedRenderer((0,o.Z)({html:n,linkify:r,breaks:i}))}parse(e){let{inline:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof e){this.editor.extensionManager.extensions.forEach(e=>{var t;return null===(t=K(e))||void 0===t||null===(t=t.parse)||void 0===t||null===(t=t.setup)||void 0===t?void 0:t.call({editor:this.editor,options:e.options},this.md)});let n=L(this.md.render(e));return this.editor.extensionManager.extensions.forEach(e=>{var t;return null===(t=K(e))||void 0===t||null===(t=t.parse)||void 0===t||null===(t=t.updateDOM)||void 0===t?void 0:t.call({editor:this.editor,options:e.options},n)}),this.normalizeDOM(n,{inline:t,content:e}),n.innerHTML}return e}normalizeDOM(e,t){let{inline:n,content:r}=t;return this.normalizeBlocks(e),e.querySelectorAll("*").forEach(e
9=>{var t;(null===(t=e.nextSibling)||void 0===t?void 0:t.nodeType)!==Node.TEXT_NODE||e.closest("pre")||(e.nextSibling.textContent=e.nextSibling.textContent.replace(/^\n/,""))}),n&&this.normalizeInline(e,r),e}normalizeBlocks(e){let t=Object.values(this.editor.schema.nodes).filter(e=>e.isBlock).map(e=>{var t;return null===(t=e.spec.parseDOM)||void 0===t?void 0:t.map(e=>e.tag)}).flat().filter(Boolean).join(",");t&&[...e.querySelectorAll(t)].forEach(e=>{e.parentElement.matches("p")&&function(e){let t=e.parentElement,n=t.cloneNode();for(;t.firstChild&&t.firstChild!==e;)n.appendChild(t.firstChild);n.childNodes.length>0&&t.parentElement.insertBefore(n,t),t.parentElement.insertBefore(e,t),0===t.childNodes.length&&t.remove()}(e)})}normalizeInline(e,t){var n,r,i,o,s;if(null!==(n=e.firstElementChild)&&void 0!==n&&n.matches("p")){let n=e.firstElementChild,{nextElementSibling:a}=n,l=null!==(r=null===(i=t.match(/^\s+/))||void 0===i?void 0:i[0])&&void 0!==r?r:"",u=a?"":null!==(o=null===(s=t.match(/\s+$/))||void 0===s?void 0:s[0])&&void 0!==o?o:"";if(t.match(/^\n\n/)){n.innerHTML=`${n.innerHTML}${u}`;return}!function(e){let t=e.parentNode;for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}(n),e.innerHTML=`${l}${e.innerHTML}${u}`}}withPatchedRenderer(e){let t=e=>function(){let t=e(...arguments);return"\n"===t?t:"\n"===t[t.length-1]?t.slice(0,-1):t};return e.renderer.rules.hardbreak=t(e.renderer.rules.hardbreak),e.renderer.rules.softbreak=t(e.renderer.rules.softbreak),e.renderer.rules.fence=t(e.renderer.rules.fence),e.renderer.rules.code_block=t(e.renderer.rules.code_block),e.renderer.renderToken=t(e.renderer.renderToken.bind(e.renderer)),e}}let et=r.hj.create({name:"markdownClipboard",addOptions:()=>({transformPastedText:!1,transformCopiedText:!1}),addProseMirrorPlugins(){return[new x.Sy({key:new x.H$("markdownClipboard"),props:{clipboardTextParser:(e,t,n)=>{if(n||!this.options.transformPastedText)return null;let r=this.editor.storage.markdown.parser.parse(e,{inline:!0});return i.aw.fromSchema(this.editor.schema).parseSlice(L(r),{preserveWhitespace:!0,context:t})},clipboardTextSerializer:e=>this.options.transformCopiedText?this.editor.storage.markdown.serializer.serialize(e.content):null}})]}}),en=r.hj.create({name:"markdown",priority:50,addOptions:()=>({html:!0,tightLists:!0,tightListClass:"tight",bulletListMarker:"-",linkify:!1,breaks:!1,transformPastedText:!1,transformCopiedText:!1}),addCommands(){let e=r.Rw.Commands.config.addCommands();return{setContent:(t,n)=>r=>e.setContent(r.editor.storage.markdown.parser.parse(t),n)(r),insertContentAt:(t,n,r)=>i=>e.insertContentAt(t,i.editor.storage.markdown.parser.parse(n,{inline:!0}),r)(i)}},onBeforeCreate(){this.editor.storage.markdown={options:{...this.options},parser:new ee(this.editor,this.options),serializer:new Q(this.editor),getMarkdown:()=>this.editor.storage.markdown.serializer.serialize(this.editor.state.doc)},this.editor.options.initialContent=this.editor.options.content,this.editor.options.content=this.editor.storage.markdown.parser.parse(this.editor.options.content)},onCreate(){this.editor.options.content=this.editor.options.initialContent,delete this.editor.options.initialContent},addStorage:()=>({}),addExtensions(){return[_.configure({tight:this.options.tightLists,tightClass:this.options.tightListClass}),et.configure({transformPastedText:this.options.transformPastedText,transformCopiedText:this.options.transformCopiedText})]}})},94910:function(e,t,n){"use strict";n.d(t,{YG:function(){return u},uY:function(){return i},ue:function(){return r}});for(var r={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},o="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),s="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),a=0;a<10;a++)r[48+a]=r[96+a]=String(a);for(var a=1;a<=24;a++)r[a+111]="F"+a;for(var a=65;a<=90;a++)r[a]=String.fromCharCode(a+32),i[a]=String.fromCharCode(a);for(var l in r)i.hasOwnProperty(l)||(i[l]=r[l]);function u(e){var t=!(o&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||s&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?i:r)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}}}]);

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.