@kw-yeh/vibeflow 4.11.39 → 4.11.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/web/404/index.html +1 -1
- package/dist/web/404.html +1 -1
- package/dist/web/_next/static/chunks/1225.c26a6d1ce0d82da2.js +1 -0
- package/dist/web/_next/static/chunks/{3927.8202e4c7eeb07487.js → 3927.4f1724c11c5f42a8.js} +1 -1
- package/dist/web/_next/static/chunks/7045.cf4993f5eb0f9eb4.js +1 -0
- package/dist/web/_next/static/chunks/7915.c6925370d1383e2e.js +1 -0
- package/dist/web/_next/static/chunks/{8259.62f5c49f967282f1.js → 8259.90c4d5a968aca55b.js} +1 -1
- package/dist/web/_next/static/chunks/9511-583f6646d41ca80c.js +9 -0
- package/dist/web/_next/static/chunks/pages/home-3a67529f14bfbf5f.js +13 -0
- package/dist/web/_next/static/chunks/{webpack-9dc72759edb7420f.js → webpack-c8c96fd26290e204.js} +1 -1
- package/dist/web/_next/static/css/9187d5806b3a122c.css +2 -0
- package/dist/web/_next/static/{7PoSgDqLcXreA4Amg4KCd → m8Qx5CrsoNWKGv6xecckf}/_buildManifest.js +1 -1
- package/dist/web/home/index.html +1 -1
- package/package.json +1 -1
- package/dist/web/_next/static/chunks/1225.a647bd4cfed39edf.js +0 -1
- package/dist/web/_next/static/chunks/5174-9f90ae432131a522.js +0 -9
- package/dist/web/_next/static/chunks/7045.7cf0eb88acb1ee65.js +0 -1
- package/dist/web/_next/static/chunks/7915.e23554d5280c643a.js +0 -1
- package/dist/web/_next/static/chunks/pages/home-e9b4955fe2fcbdc3.js +0 -13
- package/dist/web/_next/static/css/07822becd778a410.css +0 -2
- /package/dist/web/_next/static/{7PoSgDqLcXreA4Amg4KCd → m8Qx5CrsoNWKGv6xecckf}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3927],{1203:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(19519),i=r(62079);let a=(t,e)=>{let r=i.A.parse(t);for(let t in e)r[t]=n.A.channel.clamp[t](e[t]);return i.A.stringify(r)}},3288:(t,e,r)=>{"use strict";function n(t,e,r){if(t&&t.length){let[n,i]=e,a=Math.PI/180*r,o=Math.cos(a),s=Math.sin(a);for(let e of t){let[t,r]=e;e[0]=(t-n)*o-(r-i)*s+n,e[1]=(t-n)*s+(r-i)*o+i}}}function i(t,e){var r;let i=e.hachureAngle+90,a=e.hachureGap;a<0&&(a=4*e.strokeWidth),a=Math.round(Math.max(a,.1));let o=1;return e.roughness>=1&&((null==(r=e.randomizer)?void 0:r.next())||Math.random())>.7&&(o=a),function(t,e,r,i=1){let a=Math.max(e,.1),o=t[0]&&t[0][0]&&"number"==typeof t[0][0]?[t]:t,s=[0,0];if(r)for(let t of o)n(t,s,r);let l=function(t,e,r){let n=[];for(let e of t){var i,a;let t=[...e];i=t[0],a=t[t.length-1],i[0]===a[0]&&i[1]===a[1]||t.push([t[0][0],t[0][1]]),t.length>2&&n.push(t)}let o=[];e=Math.max(e,.1);let s=[];for(let t of n)for(let e=0;e<t.length-1;e++){let r=t[e],n=t[e+1];if(r[1]!==n[1]){let t=Math.min(r[1],n[1]);s.push({ymin:t,ymax:Math.max(r[1],n[1]),x:t===r[1]?r[0]:n[0],islope:(n[0]-r[0])/(n[1]-r[1])})}}if(s.sort((t,e)=>t.ymin<e.ymin?-1:t.ymin>e.ymin?1:t.x<e.x?-1:t.x>e.x?1:t.ymax===e.ymax?0:(t.ymax-e.ymax)/Math.abs(t.ymax-e.ymax)),!s.length)return o;let l=[],c=s[0].ymin,u=0;for(;l.length||s.length;){if(s.length){let t=-1;for(let e=0;e<s.length&&!(s[e].ymin>c);e++)t=e;s.splice(0,t+1).forEach(t=>{l.push({s:c,edge:t})})}if((l=l.filter(t=>!(t.edge.ymax<=c))).sort((t,e)=>t.edge.x===e.edge.x?0:(t.edge.x-e.edge.x)/Math.abs(t.edge.x-e.edge.x)),(1!==r||u%e==0)&&l.length>1)for(let t=0;t<l.length;t+=2){let e=t+1;if(e>=l.length)break;let r=l[t].edge,n=l[e].edge;o.push([[Math.round(r.x),c],[Math.round(n.x),c]])}c+=r,l.forEach(t=>{t.edge.x=t.edge.x+r*t.edge.islope}),u++}return o}(o,a,i);if(r){let t;for(let t of o)n(t,s,-r);t=[],l.forEach(e=>t.push(...e)),n(t,s,-r)}return l}(t,a,i,o||1)}r.d(e,{A:()=>G});class a{constructor(t){this.helper=t}fillPolygons(t,e){return this._fillPolygons(t,e)}_fillPolygons(t,e){let r=i(t,e);return{type:"fillSketch",ops:this.renderLines(r,e)}}renderLines(t,e){let r=[];for(let n of t)r.push(...this.helper.doubleLineOps(n[0][0],n[0][1],n[1][0],n[1][1],e));return r}}function o(t){let e=t[0],r=t[1];return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}class s extends a{fillPolygons(t,e){let r=e.hachureGap;r<0&&(r=4*e.strokeWidth);let n=i(t,Object.assign({},e,{hachureGap:r=Math.max(r,.1)})),a=Math.PI/180*e.hachureAngle,s=[],l=.5*r*Math.cos(a),c=.5*r*Math.sin(a);for(let[t,e]of n)o([t,e])&&s.push([[t[0]-l,t[1]+c],[...e]],[[t[0]+l,t[1]-c],[...e]]);return{type:"fillSketch",ops:this.renderLines(s,e)}}}class l extends a{fillPolygons(t,e){let r=this._fillPolygons(t,e),n=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),i=this._fillPolygons(t,n);return r.ops=r.ops.concat(i.ops),r}}class c{constructor(t){this.helper=t}fillPolygons(t,e){let r=i(t,e=Object.assign({},e,{hachureAngle:0}));return this.dotsOnLines(r,e)}dotsOnLines(t,e){let r=[],n=e.hachureGap;n<0&&(n=4*e.strokeWidth),n=Math.max(n,.1);let i=e.fillWeight;i<0&&(i=e.strokeWidth/2);let a=n/4;for(let s of t){let t=o(s),l=Math.ceil(t/n)-1,c=t-l*n,u=(s[0][0]+s[1][0])/2-n/4,h=Math.min(s[0][1],s[1][1]);for(let t=0;t<l;t++){let o=u-a+2*Math.random()*a,s=h+c+t*n-a+2*Math.random()*a,l=this.helper.ellipse(o,s,i,i,e);r.push(...l.ops)}}return{type:"fillSketch",ops:r}}}class u{constructor(t){this.helper=t}fillPolygons(t,e){let r=i(t,e);return{type:"fillSketch",ops:this.dashedLine(r,e)}}dashedLine(t,e){let r=e.dashOffset<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashOffset,n=e.dashGap<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashGap,i=[];return t.forEach(t=>{let a=o(t),s=Math.floor(a/(r+n)),l=(a+n-s*(r+n))/2,c=t[0],u=t[1];c[0]>u[0]&&(c=t[1],u=t[0]);let h=Math.atan((u[1]-c[1])/(u[0]-c[0]));for(let t=0;t<s;t++){let a=t*(r+n),o=a+r,s=[c[0]+a*Math.cos(h)+l*Math.cos(h),c[1]+a*Math.sin(h)+l*Math.sin(h)],u=[c[0]+o*Math.cos(h)+l*Math.cos(h),c[1]+o*Math.sin(h)+l*Math.sin(h)];i.push(...this.helper.doubleLineOps(s[0],s[1],u[0],u[1],e))}}),i}}class h{constructor(t){this.helper=t}fillPolygons(t,e){let r=e.hachureGap<0?4*e.strokeWidth:e.hachureGap,n=e.zigzagOffset<0?r:e.zigzagOffset,a=i(t,e=Object.assign({},e,{hachureGap:r+n}));return{type:"fillSketch",ops:this.zigzagLines(a,n,e)}}zigzagLines(t,e,r){let n=[];return t.forEach(t=>{let i=Math.round(o(t)/(2*e)),a=t[0],s=t[1];a[0]>s[0]&&(a=t[1],s=t[0]);let l=Math.atan((s[1]-a[1])/(s[0]-a[0]));for(let t=0;t<i;t++){let i=2*t*e,o=2*(t+1)*e,s=Math.sqrt(2*Math.pow(e,2)),c=[a[0]+i*Math.cos(l),a[1]+i*Math.sin(l)],u=[a[0]+o*Math.cos(l),a[1]+o*Math.sin(l)],h=[c[0]+s*Math.cos(l+Math.PI/4),c[1]+s*Math.sin(l+Math.PI/4)];n.push(...this.helper.doubleLineOps(c[0],c[1],h[0],h[1],r),...this.helper.doubleLineOps(h[0],h[1],u[0],u[1],r))}}),n}}let f={};class p{constructor(t){this.seed=t}next(){return this.seed?(0x80000000-1&(this.seed=Math.imul(48271,this.seed)))/0x80000000:Math.random()}}let d={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function g(t){let e=[],r=function(t){let e=[];for(;""!==t;)if(t.match(/^([ \t\r\n,]+)/))t=t.substr(RegExp.$1.length);else if(t.match(/^([aAcChHlLmMqQsStTvVzZ])/))e[e.length]={type:0,text:RegExp.$1},t=t.substr(RegExp.$1.length);else{if(!t.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];e[e.length]={type:1,text:`${parseFloat(RegExp.$1)}`},t=t.substr(RegExp.$1.length)}return e[e.length]={type:2,text:""},e}(t),n="BOD",i=0,a=r[0];for(;2!==a.type;){let o=0,s=[];if("BOD"===n){if("M"!==a.text&&"m"!==a.text)return g("M0,0"+t);i++,o=d[a.text],n=a.text}else 1===a.type?o=d[n]:(i++,o=d[a.text],n=a.text);if(!(i+o<r.length))throw Error("Path data ended short");for(let t=i;t<i+o;t++){let e=r[t];if(1!==e.type)throw Error("Param not a number: "+n+","+e.text);s[s.length]=+e.text}if("number"!=typeof d[n])throw Error("Bad segment: "+n);{let t={key:n,data:s};e.push(t),i+=o,a=r[i],"M"===n&&(n="L"),"m"===n&&(n="l")}}return e}function m(t){let e=0,r=0,n=0,i=0,a=[];for(let{key:o,data:s}of t)switch(o){case"M":a.push({key:"M",data:[...s]}),[e,r]=s,[n,i]=s;break;case"m":e+=s[0],r+=s[1],a.push({key:"M",data:[e,r]}),n=e,i=r;break;case"L":a.push({key:"L",data:[...s]}),[e,r]=s;break;case"l":e+=s[0],r+=s[1],a.push({key:"L",data:[e,r]});break;case"C":a.push({key:"C",data:[...s]}),e=s[4],r=s[5];break;case"c":{let t=s.map((t,n)=>n%2?t+r:t+e);a.push({key:"C",data:t}),e=t[4],r=t[5];break}case"Q":a.push({key:"Q",data:[...s]}),e=s[2],r=s[3];break;case"q":{let t=s.map((t,n)=>n%2?t+r:t+e);a.push({key:"Q",data:t}),e=t[2],r=t[3];break}case"A":a.push({key:"A",data:[...s]}),e=s[5],r=s[6];break;case"a":e+=s[5],r+=s[6],a.push({key:"A",data:[s[0],s[1],s[2],s[3],s[4],e,r]});break;case"H":a.push({key:"H",data:[...s]}),e=s[0];break;case"h":e+=s[0],a.push({key:"H",data:[e]});break;case"V":a.push({key:"V",data:[...s]}),r=s[0];break;case"v":r+=s[0],a.push({key:"V",data:[r]});break;case"S":a.push({key:"S",data:[...s]}),e=s[2],r=s[3];break;case"s":{let t=s.map((t,n)=>n%2?t+r:t+e);a.push({key:"S",data:t}),e=t[2],r=t[3];break}case"T":a.push({key:"T",data:[...s]}),e=s[0],r=s[1];break;case"t":e+=s[0],r+=s[1],a.push({key:"T",data:[e,r]});break;case"Z":case"z":a.push({key:"Z",data:[]}),e=n,r=i}return a}function y(t){let e=[],r="",n=0,i=0,a=0,o=0,s=0,l=0;for(let{key:c,data:u}of t){switch(c){case"M":e.push({key:"M",data:[...u]}),[n,i]=u,[a,o]=u;break;case"C":e.push({key:"C",data:[...u]}),n=u[4],i=u[5],s=u[2],l=u[3];break;case"L":e.push({key:"L",data:[...u]}),[n,i]=u;break;case"H":n=u[0],e.push({key:"L",data:[n,i]});break;case"V":i=u[0],e.push({key:"L",data:[n,i]});break;case"S":{let t=0,a=0;"C"===r||"S"===r?(t=n+(n-s),a=i+(i-l)):(t=n,a=i),e.push({key:"C",data:[t,a,...u]}),s=u[0],l=u[1],n=u[2],i=u[3];break}case"T":{let[t,a]=u,o=0,c=0;"Q"===r||"T"===r?(o=n+(n-s),c=i+(i-l)):(o=n,c=i);let h=n+2*(o-n)/3,f=i+2*(c-i)/3,p=t+2*(o-t)/3,d=a+2*(c-a)/3;e.push({key:"C",data:[h,f,p,d,t,a]}),s=o,l=c,n=t,i=a;break}case"Q":{let[t,r,a,o]=u,c=n+2*(t-n)/3,h=i+2*(r-i)/3,f=a+2*(t-a)/3,p=o+2*(r-o)/3;e.push({key:"C",data:[c,h,f,p,a,o]}),s=t,l=r,n=a,i=o;break}case"A":{let t=Math.abs(u[0]),r=Math.abs(u[1]),a=u[2],o=u[3],s=u[4],l=u[5],c=u[6];0===t||0===r?(e.push({key:"C",data:[n,i,l,c,l,c]}),n=l,i=c):(n!==l||i!==c)&&((function t(e,r,n,i,a,o,s,l,c,u){let h=Math.PI*s/180,f=[],p=0,d=0,g=0,m=0;if(u)[p,d,g,m]=u;else{[e,r]=b(e,r,-h),[n,i]=b(n,i,-h);let t=(e-n)/2,s=(r-i)/2,u=t*t/(a*a)+s*s/(o*o);u>1&&(a*=u=Math.sqrt(u),o*=u);let f=a*a,y=o*o,x=(l===c?-1:1)*Math.sqrt(Math.abs((f*y-f*s*s-y*t*t)/(f*s*s+y*t*t)));g=x*a*s/o+(e+n)/2,m=-(x*o)*t/a+(r+i)/2,p=Math.asin(parseFloat(((r-m)/o).toFixed(9))),d=Math.asin(parseFloat(((i-m)/o).toFixed(9))),e<g&&(p=Math.PI-p),n<g&&(d=Math.PI-d),p<0&&(p=2*Math.PI+p),d<0&&(d=2*Math.PI+d),c&&p>d&&(p-=2*Math.PI),!c&&d>p&&(d-=2*Math.PI)}let y=d-p;if(Math.abs(y)>120*Math.PI/180){let e=d,r=n,l=i;f=t(n=g+a*Math.cos(d=c&&d>p?p+120*Math.PI/180*1:p+-(120*Math.PI/180*1)),i=m+o*Math.sin(d),r,l,a,o,s,0,c,[d,e,g,m])}y=d-p;let x=Math.cos(p),k=Math.cos(d),w=Math.tan(y/4),_=4/3*a*w,v=4/3*o*w,M=[e,r],S=[e+_*Math.sin(p),r-v*x],A=[n+_*Math.sin(d),i-v*k],T=[n,i];if(S[0]=2*M[0]-S[0],S[1]=2*M[1]-S[1],u)return[S,A,T].concat(f);{f=[S,A,T].concat(f);let t=[];for(let e=0;e<f.length;e+=3){let r=b(f[e][0],f[e][1],h),n=b(f[e+1][0],f[e+1][1],h),i=b(f[e+2][0],f[e+2][1],h);t.push([r[0],r[1],n[0],n[1],i[0],i[1]])}return t}})(n,i,l,c,t,r,a,o,s).forEach(function(t){e.push({key:"C",data:t})}),n=l,i=c);break}case"Z":e.push({key:"Z",data:[]}),n=a,i=o}r=c}return e}function b(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}let x={randOffset:function(t,e){return E(t,e)},randOffsetWithRange:function(t,e,r){return O(t,e,r)},ellipse:function(t,e,r,n,i){let a=v(r,n,i);return M(t,e,i,a).opset},doubleLineOps:function(t,e,r,n,i){return K(t,e,r,n,i,!0)}};function k(t,e,r,n,i){return{type:"path",ops:K(t,e,r,n,i)}}function w(t,e,r){let n=(t||[]).length;if(n>2){let i=[];for(let e=0;e<n-1;e++)i.push(...K(t[e][0],t[e][1],t[e+1][0],t[e+1][1],r));return e&&i.push(...K(t[n-1][0],t[n-1][1],t[0][0],t[0][1],r)),{type:"path",ops:i}}return 2===n?k(t[0][0],t[0][1],t[1][0],t[1][1],r):{type:"path",ops:[]}}function _(t,e){if(t.length){let r="number"==typeof t[0][0]?[t]:t,n=D(r[0],+(1+.2*e.roughness),e),i=e.disableMultiStroke?[]:D(r[0],1.5*(1+.22*e.roughness),C(e));for(let t=1;t<r.length;t++){let a=r[t];if(a.length){let t=D(a,+(1+.2*e.roughness),e),r=e.disableMultiStroke?[]:D(a,1.5*(1+.22*e.roughness),C(e));for(let e of t)"move"!==e.op&&n.push(e);for(let t of r)"move"!==t.op&&i.push(t)}}return{type:"path",ops:n.concat(i)}}return{type:"path",ops:[]}}function v(t,e,r){let n=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),i=2*Math.PI/Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*n)),a=Math.abs(t/2),o=Math.abs(e/2),s=1-r.curveFitting;return a+=E(a*s,r),o+=E(o*s,r),{increment:i,rx:a,ry:o}}function M(t,e,r,n){let[i,a]=P(n.increment,t,e,n.rx,n.ry,1,n.increment*O(.1,O(.4,1,r),r),r),o=N(i,null,r);if(!r.disableMultiStroke&&0!==r.roughness){let[i]=P(n.increment,t,e,n.rx,n.ry,1.5,0,r),a=N(i,null,r);o=o.concat(a)}return{estimatedPoints:a,opset:{type:"path",ops:o}}}function S(t,e,r,n,i,a,o,s,l){let c=Math.abs(r/2),u=Math.abs(n/2);c+=E(.01*c,l),u+=E(.01*u,l);let h=i,f=a;for(;h<0;)h+=2*Math.PI,f+=2*Math.PI;f-h>2*Math.PI&&(h=0,f=2*Math.PI);let p=Math.min(2*Math.PI/l.curveStepCount/2,(f-h)/2),d=I(p,t,e,c,u,h,f,1,l);if(!l.disableMultiStroke){let r=I(p,t,e,c,u,h,f,1.5,l);d.push(...r)}return o&&(s?d.push(...K(t,e,t+c*Math.cos(h),e+u*Math.sin(h),l),...K(t,e,t+c*Math.cos(f),e+u*Math.sin(f),l)):d.push({op:"lineTo",data:[t,e]},{op:"lineTo",data:[t+c*Math.cos(h),e+u*Math.sin(h)]})),{type:"path",ops:d}}function A(t,e){let r=y(m(g(t))),n=[],i=[0,0],a=[0,0];for(let{key:t,data:o}of r)switch(t){case"M":a=[o[0],o[1]],i=[o[0],o[1]];break;case"L":n.push(...K(a[0],a[1],o[0],o[1],e)),a=[o[0],o[1]];break;case"C":{let[t,r,i,s,l,c]=o;n.push(...function(t,e,r,n,i,a,o,s){let l=[],c=[s.maxRandomnessOffset||1,(s.maxRandomnessOffset||1)+.3],u=[0,0],h=s.disableMultiStroke?1:2,f=s.preserveVertices;for(let p=0;p<h;p++)0===p?l.push({op:"move",data:[o[0],o[1]]}):l.push({op:"move",data:[o[0]+(f?0:E(c[0],s)),o[1]+(f?0:E(c[0],s))]}),u=f?[i,a]:[i+E(c[p],s),a+E(c[p],s)],l.push({op:"bcurveTo",data:[t+E(c[p],s),e+E(c[p],s),r+E(c[p],s),n+E(c[p],s),u[0],u[1]]});return l}(t,r,i,s,l,c,a,e)),a=[l,c];break}case"Z":n.push(...K(a[0],a[1],i[0],i[1],e)),a=[i[0],i[1]]}return{type:"path",ops:n}}function T(t,e){let r=[];for(let n of t)if(n.length){let t=e.maxRandomnessOffset||0,i=n.length;if(i>2){r.push({op:"move",data:[n[0][0]+E(t,e),n[0][1]+E(t,e)]});for(let a=1;a<i;a++)r.push({op:"lineTo",data:[n[a][0]+E(t,e),n[a][1]+E(t,e)]})}}return{type:"fillPath",ops:r}}function $(t,e){return(function(t,e){let r=t.fillStyle||"hachure";if(!f[r])switch(r){case"zigzag":f[r]||(f[r]=new s(e));break;case"cross-hatch":f[r]||(f[r]=new l(e));break;case"dots":f[r]||(f[r]=new c(e));break;case"dashed":f[r]||(f[r]=new u(e));break;case"zigzag-line":f[r]||(f[r]=new h(e));break;default:f[r="hachure"]||(f[r]=new a(e))}return f[r]})(e,x).fillPolygons(t,e)}function C(t){let e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function L(t){return t.randomizer||(t.randomizer=new p(t.seed||0)),t.randomizer.next()}function O(t,e,r,n=1){return r.roughness*n*(L(r)*(e-t)+t)}function E(t,e,r=1){return O(-t,t,e,r)}function K(t,e,r,n,i,a=!1){let o=a?i.disableMultiStrokeFill:i.disableMultiStroke,s=R(t,e,r,n,i,!0,!1);if(o)return s;let l=R(t,e,r,n,i,!0,!0);return s.concat(l)}function R(t,e,r,n,i,a,o){let s=Math.pow(t-r,2)+Math.pow(e-n,2),l=Math.sqrt(s),c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let u=i.maxRandomnessOffset||0;u*u*100>s&&(u=l/10);let h=u/2,f=.2+.2*L(i),p=i.bowing*i.maxRandomnessOffset*(n-e)/200,d=i.bowing*i.maxRandomnessOffset*(t-r)/200;p=E(p,i,c),d=E(d,i,c);let g=[],m=i.preserveVertices;return a&&(o?g.push({op:"move",data:[t+(m?0:E(h,i,c)),e+(m?0:E(h,i,c))]}):g.push({op:"move",data:[t+(m?0:E(u,i,c)),e+(m?0:E(u,i,c))]})),o?g.push({op:"bcurveTo",data:[p+t+(r-t)*f+E(h,i,c),d+e+(n-e)*f+E(h,i,c),p+t+2*(r-t)*f+E(h,i,c),d+e+2*(n-e)*f+E(h,i,c),r+(m?0:E(h,i,c)),n+(m?0:E(h,i,c))]}):g.push({op:"bcurveTo",data:[p+t+(r-t)*f+E(u,i,c),d+e+(n-e)*f+E(u,i,c),p+t+2*(r-t)*f+E(u,i,c),d+e+2*(n-e)*f+E(u,i,c),r+(m?0:E(u,i,c)),n+(m?0:E(u,i,c))]}),g}function D(t,e,r){if(!t.length)return[];let n=[];n.push([t[0][0]+E(e,r),t[0][1]+E(e,r)]),n.push([t[0][0]+E(e,r),t[0][1]+E(e,r)]);for(let i=1;i<t.length;i++)n.push([t[i][0]+E(e,r),t[i][1]+E(e,r)]),i===t.length-1&&n.push([t[i][0]+E(e,r),t[i][1]+E(e,r)]);return N(n,null,r)}function N(t,e,r){let n=t.length,i=[];if(n>3){let a=[],o=1-r.curveTightness;i.push({op:"move",data:[t[1][0],t[1][1]]});for(let e=1;e+2<n;e++){let r=t[e];a[0]=[r[0],r[1]],a[1]=[r[0]+(o*t[e+1][0]-o*t[e-1][0])/6,r[1]+(o*t[e+1][1]-o*t[e-1][1])/6],a[2]=[t[e+1][0]+(o*t[e][0]-o*t[e+2][0])/6,t[e+1][1]+(o*t[e][1]-o*t[e+2][1])/6],a[3]=[t[e+1][0],t[e+1][1]],i.push({op:"bcurveTo",data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[3][1]]})}if(e&&2===e.length){let t=r.maxRandomnessOffset;i.push({op:"lineTo",data:[e[0]+E(t,r),e[1]+E(t,r)]})}}else 3===n?(i.push({op:"move",data:[t[1][0],t[1][1]]}),i.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):2===n&&i.push(...R(t[0][0],t[0][1],t[1][0],t[1][1],r,!0,!0));return i}function P(t,e,r,n,i,a,o,s){let l=[],c=[];if(0===s.roughness){t/=4,c.push([e+n*Math.cos(-t),r+i*Math.sin(-t)]);for(let a=0;a<=2*Math.PI;a+=t){let t=[e+n*Math.cos(a),r+i*Math.sin(a)];l.push(t),c.push(t)}c.push([e+ +n,r+0*i]),c.push([e+n*Math.cos(t),r+i*Math.sin(t)])}else{let u=E(.5,s)-Math.PI/2;c.push([E(a,s)+e+.9*n*Math.cos(u-t),E(a,s)+r+.9*i*Math.sin(u-t)]);let h=2*Math.PI+u-.01;for(let o=u;o<h;o+=t){let t=[E(a,s)+e+n*Math.cos(o),E(a,s)+r+i*Math.sin(o)];l.push(t),c.push(t)}c.push([E(a,s)+e+n*Math.cos(u+2*Math.PI+.5*o),E(a,s)+r+i*Math.sin(u+2*Math.PI+.5*o)]),c.push([E(a,s)+e+.98*n*Math.cos(u+o),E(a,s)+r+.98*i*Math.sin(u+o)]),c.push([E(a,s)+e+.9*n*Math.cos(u+.5*o),E(a,s)+r+.9*i*Math.sin(u+.5*o)])}return[c,l]}function I(t,e,r,n,i,a,o,s,l){let c=a+E(.1,l),u=[];u.push([E(s,l)+e+.9*n*Math.cos(c-t),E(s,l)+r+.9*i*Math.sin(c-t)]);for(let a=c;a<=o;a+=t)u.push([E(s,l)+e+n*Math.cos(a),E(s,l)+r+i*Math.sin(a)]);return u.push([e+n*Math.cos(o),r+i*Math.sin(o)]),u.push([e+n*Math.cos(o),r+i*Math.sin(o)]),N(u,null,l)}function j(t,e=0){let r=t.length;if(r<3)throw Error("A curve must have at least three points.");let n=[];if(3===r)n.push([...t[0]],[...t[1]],[...t[2]],[...t[2]]);else{let r=[];r.push(t[0],t[0]);for(let e=1;e<t.length;e++)r.push(t[e]),e===t.length-1&&r.push(t[e]);let i=[],a=1-e;n.push([...r[0]]);for(let t=1;t+2<r.length;t++){let e=r[t];i[0]=[e[0],e[1]],i[1]=[e[0]+(a*r[t+1][0]-a*r[t-1][0])/6,e[1]+(a*r[t+1][1]-a*r[t-1][1])/6],i[2]=[r[t+1][0]+(a*r[t][0]-a*r[t+2][0])/6,r[t+1][1]+(a*r[t][1]-a*r[t+2][1])/6],i[3]=[r[t+1][0],r[t+1][1]],n.push(i[1],i[2],i[3])}}return n}function U(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function F(t,e,r){return[t[0]+(e[0]-t[0])*r,t[1]+(e[1]-t[1])*r]}function z(t,e,r,n,i){let a=i||[],o=t[e],s=t[r-1],l=0,c=1;for(let n=e+1;n<r-1;++n){let e=function(t,e,r){let n=U(e,r);if(0===n)return U(t,e);let i=((t[0]-e[0])*(r[0]-e[0])+(t[1]-e[1])*(r[1]-e[1]))/n;return U(t,F(e,r,i=Math.max(0,Math.min(1,i))))}(t[n],o,s);e>l&&(l=e,c=n)}return Math.sqrt(l)>n?(z(t,e,c+1,n,a),z(t,c,r,n,a)):(a.length||a.push(o),a.push(s)),a}function B(t,e=.15,r){let n=[],i=(t.length-1)/3;for(let r=0;r<i;r++)!function t(e,r,n,i){let a,o,s,l,c,u,h,f,p=i||[];if(a=e[r+0],o=e[r+1],s=e[r+2],l=e[r+3],c=3*o[0]-2*a[0]-l[0],c*=c,u=3*o[1]-2*a[1]-l[1],u*=u,h=3*s[0]-2*l[0]-a[0],h*=h,f=3*s[1]-2*l[1]-a[1],f*=f,c<h&&(c=h),u<f&&(u=f),c+u<n){let t=e[r+0];p.length?Math.sqrt(U(p[p.length-1],t))>1&&p.push(t):p.push(t),p.push(e[r+3])}else{let i=e[r+0],a=e[r+1],o=e[r+2],s=e[r+3],l=F(i,a,.5),c=F(a,o,.5),u=F(o,s,.5),h=F(l,c,.5),f=F(c,u,.5),d=F(h,f,.5);t([i,l,h,d],0,n,p),t([d,f,u,s],0,n,p)}return p}(t,3*r,e,n);return r&&r>0?z(n,0,n.length,r):n}let Y="none";class H{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(0x80000000*Math.random())}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,e,r){return{shape:t,sets:e||[],options:r||this.defaultOptions}}line(t,e,r,n,i){let a=this._o(i);return this._d("line",[k(t,e,r,n,a)],a)}rectangle(t,e,r,n,i){var a,o,s,l;let c=this._o(i),u=[],h=w([[a=t,o=e],[a+(s=r),o],[a+s,o+(l=n)],[a,o+l]],!0,c);if(c.fill){let i=[[t,e],[t+r,e],[t+r,e+n],[t,e+n]];"solid"===c.fillStyle?u.push(T([i],c)):u.push($([i],c))}return c.stroke!==Y&&u.push(h),this._d("rectangle",u,c)}ellipse(t,e,r,n,i){let a=this._o(i),o=[],s=v(r,n,a),l=M(t,e,a,s);if(a.fill)if("solid"===a.fillStyle){let r=M(t,e,a,s).opset;r.type="fillPath",o.push(r)}else o.push($([l.estimatedPoints],a));return a.stroke!==Y&&o.push(l.opset),this._d("ellipse",o,a)}circle(t,e,r,n){let i=this.ellipse(t,e,r,r,n);return i.shape="circle",i}linearPath(t,e){let r=this._o(e);return this._d("linearPath",[w(t,!1,r)],r)}arc(t,e,r,n,i,a,o=!1,s){let l=this._o(s),c=[],u=S(t,e,r,n,i,a,o,!0,l);if(o&&l.fill)if("solid"===l.fillStyle){let o=Object.assign({},l);o.disableMultiStroke=!0;let s=S(t,e,r,n,i,a,!0,!1,o);s.type="fillPath",c.push(s)}else c.push(function(t,e,r,n,i,a,o){let s=Math.abs(r/2),l=Math.abs(n/2);s+=E(.01*s,o),l+=E(.01*l,o);let c=i,u=a;for(;c<0;)c+=2*Math.PI,u+=2*Math.PI;u-c>2*Math.PI&&(c=0,u=2*Math.PI);let h=(u-c)/o.curveStepCount,f=[];for(let r=c;r<=u;r+=h)f.push([t+s*Math.cos(r),e+l*Math.sin(r)]);return f.push([t+s*Math.cos(u),e+l*Math.sin(u)]),f.push([t,e]),$([f],o)}(t,e,r,n,i,a,l));return l.stroke!==Y&&c.push(u),this._d("arc",c,l)}curve(t,e){let r=this._o(e),n=[],i=_(t,r);if(r.fill&&r.fill!==Y)if("solid"===r.fillStyle){let e=_(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else{let e=[];if(t.length)for(let n of"number"==typeof t[0][0]?[t]:t)n.length<3?e.push(...n):3===n.length?e.push(...B(j([n[0],n[0],n[1],n[2]]),10,(1+r.roughness)/2)):e.push(...B(j(n),10,(1+r.roughness)/2));e.length&&n.push($([e],r))}return r.stroke!==Y&&n.push(i),this._d("curve",n,r)}polygon(t,e){let r=this._o(e),n=[],i=w(t,!0,r);return r.fill&&("solid"===r.fillStyle?n.push(T([t],r)):n.push($([t],r))),r.stroke!==Y&&n.push(i),this._d("polygon",n,r)}path(t,e){let r=this._o(e),n=[];if(!t)return this._d("path",n,r);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let i=r.fill&&"transparent"!==r.fill&&r.fill!==Y,a=r.stroke!==Y,o=!!(r.simplification&&r.simplification<1),s=function(t,e){let r=y(m(g(t))),n=[],i=[],a=[0,0],o=[],s=()=>{o.length>=4&&i.push(...B(o,1)),o=[]},l=()=>{s(),i.length&&(n.push(i),i=[])};for(let{key:t,data:e}of r)switch(t){case"M":l(),a=[e[0],e[1]],i.push(a);break;case"L":s(),i.push([e[0],e[1]]);break;case"C":if(!o.length){let t=i.length?i[i.length-1]:a;o.push([t[0],t[1]])}o.push([e[0],e[1]]),o.push([e[2],e[3]]),o.push([e[4],e[5]]);break;case"Z":s(),i.push([a[0],a[1]])}if(l(),!e)return n;let c=[];for(let t of n){let r=z(t,0,t.length,e);r.length&&c.push(r)}return c}(t,o?4-4*(r.simplification||1):(1+r.roughness)/2),l=A(t,r);if(i)if("solid"===r.fillStyle)if(1===s.length){let e=A(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else n.push(T(s,r));else n.push($(s,r));return a&&(o?s.forEach(t=>{n.push(w(t,!1,r))}):n.push(l)),this._d("path",n,r)}opsToPath(t,e){let r="";for(let n of t.ops){let t="number"==typeof e&&e>=0?n.data.map(t=>+t.toFixed(e)):n.data;switch(n.op){case"move":r+=`M${t[0]} ${t[1]} `;break;case"bcurveTo":r+=`C${t[0]} ${t[1]}, ${t[2]} ${t[3]}, ${t[4]} ${t[5]} `;break;case"lineTo":r+=`L${t[0]} ${t[1]} `}}return r.trim()}toPaths(t){let e=t.sets||[],r=t.options||this.defaultOptions,n=[];for(let t of e){let e=null;switch(t.type){case"path":e={d:this.opsToPath(t),stroke:r.stroke,strokeWidth:r.strokeWidth,fill:Y};break;case"fillPath":e={d:this.opsToPath(t),stroke:Y,strokeWidth:0,fill:r.fill||Y};break;case"fillSketch":e=this.fillSketch(t,r)}e&&n.push(e)}return n}fillSketch(t,e){let r=e.fillWeight;return r<0&&(r=e.strokeWidth/2),{d:this.opsToPath(t),stroke:e.fill||Y,strokeWidth:r,fill:Y}}_mergedShape(t){return t.filter((t,e)=>0===e||"move"!==t.op)}}class q{constructor(t,e){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new H(e)}draw(t){let e=t.sets||[],r=t.options||this.getDefaultOptions(),n=this.ctx,i=t.options.fixedDecimalPlaceDigits;for(let a of e)switch(a.type){case"path":n.save(),n.strokeStyle="none"===r.stroke?"transparent":r.stroke,n.lineWidth=r.strokeWidth,r.strokeLineDash&&n.setLineDash(r.strokeLineDash),r.strokeLineDashOffset&&(n.lineDashOffset=r.strokeLineDashOffset),this._drawToContext(n,a,i),n.restore();break;case"fillPath":{n.save(),n.fillStyle=r.fill||"";let e="curve"===t.shape||"polygon"===t.shape||"path"===t.shape?"evenodd":"nonzero";this._drawToContext(n,a,i,e),n.restore();break}case"fillSketch":this.fillSketch(n,a,r)}}fillSketch(t,e,r){let n=r.fillWeight;n<0&&(n=r.strokeWidth/2),t.save(),r.fillLineDash&&t.setLineDash(r.fillLineDash),r.fillLineDashOffset&&(t.lineDashOffset=r.fillLineDashOffset),t.strokeStyle=r.fill||"",t.lineWidth=n,this._drawToContext(t,e,r.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,e,r,n="nonzero"){for(let n of(t.beginPath(),e.ops)){let e="number"==typeof r&&r>=0?n.data.map(t=>+t.toFixed(r)):n.data;switch(n.op){case"move":t.moveTo(e[0],e[1]);break;case"bcurveTo":t.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5]);break;case"lineTo":t.lineTo(e[0],e[1])}}"fillPath"===e.type?t.fill(n):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,e,r,n,i){let a=this.gen.line(t,e,r,n,i);return this.draw(a),a}rectangle(t,e,r,n,i){let a=this.gen.rectangle(t,e,r,n,i);return this.draw(a),a}ellipse(t,e,r,n,i){let a=this.gen.ellipse(t,e,r,n,i);return this.draw(a),a}circle(t,e,r,n){let i=this.gen.circle(t,e,r,n);return this.draw(i),i}linearPath(t,e){let r=this.gen.linearPath(t,e);return this.draw(r),r}polygon(t,e){let r=this.gen.polygon(t,e);return this.draw(r),r}arc(t,e,r,n,i,a,o=!1,s){let l=this.gen.arc(t,e,r,n,i,a,o,s);return this.draw(l),l}curve(t,e){let r=this.gen.curve(t,e);return this.draw(r),r}path(t,e){let r=this.gen.path(t,e);return this.draw(r),r}}let W="http://www.w3.org/2000/svg";class X{constructor(t,e){this.svg=t,this.gen=new H(e)}draw(t){let e=t.sets||[],r=t.options||this.getDefaultOptions(),n=this.svg.ownerDocument||window.document,i=n.createElementNS(W,"g"),a=t.options.fixedDecimalPlaceDigits;for(let o of e){let e=null;switch(o.type){case"path":(e=n.createElementNS(W,"path")).setAttribute("d",this.opsToPath(o,a)),e.setAttribute("stroke",r.stroke),e.setAttribute("stroke-width",r.strokeWidth+""),e.setAttribute("fill","none"),r.strokeLineDash&&e.setAttribute("stroke-dasharray",r.strokeLineDash.join(" ").trim()),r.strokeLineDashOffset&&e.setAttribute("stroke-dashoffset",`${r.strokeLineDashOffset}`);break;case"fillPath":(e=n.createElementNS(W,"path")).setAttribute("d",this.opsToPath(o,a)),e.setAttribute("stroke","none"),e.setAttribute("stroke-width","0"),e.setAttribute("fill",r.fill||""),"curve"!==t.shape&&"polygon"!==t.shape||e.setAttribute("fill-rule","evenodd");break;case"fillSketch":e=this.fillSketch(n,o,r)}e&&i.appendChild(e)}return i}fillSketch(t,e,r){let n=r.fillWeight;n<0&&(n=r.strokeWidth/2);let i=t.createElementNS(W,"path");return i.setAttribute("d",this.opsToPath(e,r.fixedDecimalPlaceDigits)),i.setAttribute("stroke",r.fill||""),i.setAttribute("stroke-width",n+""),i.setAttribute("fill","none"),r.fillLineDash&&i.setAttribute("stroke-dasharray",r.fillLineDash.join(" ").trim()),r.fillLineDashOffset&&i.setAttribute("stroke-dashoffset",`${r.fillLineDashOffset}`),i}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,e){return this.gen.opsToPath(t,e)}line(t,e,r,n,i){let a=this.gen.line(t,e,r,n,i);return this.draw(a)}rectangle(t,e,r,n,i){let a=this.gen.rectangle(t,e,r,n,i);return this.draw(a)}ellipse(t,e,r,n,i){let a=this.gen.ellipse(t,e,r,n,i);return this.draw(a)}circle(t,e,r,n){let i=this.gen.circle(t,e,r,n);return this.draw(i)}linearPath(t,e){let r=this.gen.linearPath(t,e);return this.draw(r)}polygon(t,e){let r=this.gen.polygon(t,e);return this.draw(r)}arc(t,e,r,n,i,a,o=!1,s){let l=this.gen.arc(t,e,r,n,i,a,o,s);return this.draw(l)}curve(t,e){let r=this.gen.curve(t,e);return this.draw(r)}path(t,e){let r=this.gen.path(t,e);return this.draw(r)}}var G={canvas:(t,e)=>new q(t,e),svg:(t,e)=>new X(t,e),generator:t=>new H(t),newSeed:()=>H.newSeed()}},5218:(t,e,r)=>{"use strict";r.d(e,{H:()=>s,R:()=>o});var n=r(14528),i=r(26707),a={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},o={trace:(0,n.K)((...t)=>{},"trace"),debug:(0,n.K)((...t)=>{},"debug"),info:(0,n.K)((...t)=>{},"info"),warn:(0,n.K)((...t)=>{},"warn"),error:(0,n.K)((...t)=>{},"error"),fatal:(0,n.K)((...t)=>{},"fatal")},s=(0,n.K)(function(t="fatal"){let e=a.fatal;"string"==typeof t?t.toLowerCase()in a&&(e=a[t]):"number"==typeof t&&(e=t),o.trace=()=>{},o.debug=()=>{},o.info=()=>{},o.warn=()=>{},o.error=()=>{},o.fatal=()=>{},e<=a.fatal&&(o.fatal=console.error?console.error.bind(console,l("FATAL"),"color: orange"):console.log.bind(console,"\x1b[35m",l("FATAL"))),e<=a.error&&(o.error=console.error?console.error.bind(console,l("ERROR"),"color: orange"):console.log.bind(console,"\x1b[31m",l("ERROR"))),e<=a.warn&&(o.warn=console.warn?console.warn.bind(console,l("WARN"),"color: orange"):console.log.bind(console,"\x1b[33m",l("WARN"))),e<=a.info&&(o.info=console.info?console.info.bind(console,l("INFO"),"color: lightblue"):console.log.bind(console,"\x1b[34m",l("INFO"))),e<=a.debug&&(o.debug=console.debug?console.debug.bind(console,l("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",l("DEBUG"))),e<=a.trace&&(o.trace=console.debug?console.debug.bind(console,l("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",l("TRACE")))},"setLogLevel"),l=(0,n.K)(t=>{let e=i().format("ss.SSS");return`%c${e} : ${t} : `},"format")},6030:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(23792);let i=(t,e)=>(0,n.A)(t,"l",e)},7108:(t,e,r)=>{"use strict";function n(t){var e;return null!=t&&"function"!=typeof t&&Number.isSafeInteger(e=t.length)&&e>=0}r.d(e,{X:()=>n})},10637:(t,e,r)=>{"use strict";let n;function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}r.d(e,{A:()=>tx});let a=Object.entries,o=Object.setPrototypeOf,s=Object.isFrozen,l=Object.getPrototypeOf,c=Object.getOwnPropertyDescriptor,u=Object.freeze,h=Object.seal,f=Object.create,p="u">typeof Reflect&&Reflect,d=p.apply,g=p.construct;u||(u=function(t){return t}),h||(h=function(t){return t}),d||(d=function(t,e){for(var r=arguments.length,n=Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return t.apply(e,n)}),g||(g=function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return new t(...r)});let m=N(Array.prototype.forEach),y=N(Array.prototype.lastIndexOf),b=N(Array.prototype.pop),x=N(Array.prototype.push),k=N(Array.prototype.splice),w=Array.isArray,_=N(String.prototype.toLowerCase),v=N(String.prototype.toString),M=N(String.prototype.match),S=N(String.prototype.replace),A=N(String.prototype.indexOf),T=N(String.prototype.trim),$=N(Number.prototype.toString),C=N(Boolean.prototype.toString),L="u"<typeof BigInt?null:N(BigInt.prototype.toString),O="u"<typeof Symbol?null:N(Symbol.prototype.toString),E=N(Object.prototype.hasOwnProperty),K=N(Object.prototype.toString),R=N(RegExp.prototype.test),D=(tb=TypeError,function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return g(tb,e)});function N(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return d(t,e,n)}}function P(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_;if(o&&o(t,null),!w(e))return t;let n=e.length;for(;n--;){let i=e[n];if("string"==typeof i){let t=r(i);t!==i&&(s(e)||(e[n]=t),i=t)}t[i]=!0}return t}function I(t){let e=f(null);for(let n of a(t)){var r=function(t){if(Array.isArray(t))return t}(n)||function(t){var e=null==t?null:"u">typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,n,i,a,o=[],s=!0,l=!1;try{i=(e=e.call(t)).next,!1;for(;!(s=(r=i.call(e)).done)&&(o.push(r.value),2!==o.length);s=!0);}catch(t){l=!0,n=t}finally{try{if(!s&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(l)throw n}}return o}}(n)||function(t){if(t){if("string"==typeof t)return i(t,2);var e=({}).toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?i(t,2):void 0}}(n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();let a=r[0],o=r[1];E(t,a)&&(w(o)?e[a]=function(t){for(let e=0;e<t.length;e++)E(t,e)||(t[e]=null);return t}(o):o&&"object"==typeof o&&o.constructor===Object?e[a]=I(o):e[a]=o)}return e}function j(t,e){for(;null!==t;){let r=c(t,e);if(r){if(r.get)return N(r.get);if("function"==typeof r.value)return N(r.value)}t=l(t)}return function(){return null}}let U=u(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),F=u(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),z=u(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),B=u(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Y=u(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),H=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),q=u(["#text"]),W=u(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),X=u(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),G=u(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Z=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),V=h(/{{[\w\W]*|^[\w\W]*}}/g),Q=h(/<%[\w\W]*|^[\w\W]*%>/g),J=h(/\${[\w\W]*/g),tt=h(/^data-[\-\w.\u00B7-\uFFFF]+$/),te=h(/^aria-[\-\w]+$/),tr=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),tn=h(/^(?:\w+script|data):/i),ti=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ta=h(/^html$/i),to=h(/^[a-z][.\w]*(-[.\w]+)+$/i),ts=h(/<[/\w!]/g),tl=h(/<[/\w]/g),tc=h(/<\/no(script|embed|frames)/i),tu=h(/\/>/i),th=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],tf=u(P({},th)),tp=(n={},m(th,t=>{n[t]=h(RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),u(n)),td=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let r=null,n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(r=e.getAttribute(n));let i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},tg=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},tm=function(t,e,r,n){return E(t,e)&&w(t[e])?P(n.base?I(n.base):{},t[e],n.transform):r},ty=function(t,e,r){let n=E(t,e)?t[e]:void 0;return n&&"object"==typeof n?I(n):r()};var tb,tx=function t(){let e,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"u"<typeof window?null:window,i=e=>t(e);if(i.version="3.4.15",i.removed=[],!n||!n.document||9!==n.document.nodeType||!n.Element)return i.isSupported=!1,i;let o=n.document,s=o,l=s.currentScript;n.DocumentFragment;let c=n.HTMLTemplateElement,p=n.Node,d=n.Element,g=n.NodeFilter;void 0===n.NamedNodeMap&&(n.NamedNodeMap||n.MozNamedAttrMap),n.HTMLFormElement;let N=n.DOMParser,th=n.trustedTypes,tb=d.prototype,tx=j(tb,"cloneNode"),tk=j(tb,"remove"),tw=j(tb,"removeAttributeNode"),t_=j(tb,"nextSibling"),tv=j(tb,"childNodes"),tM=j(tb,"parentNode"),tS=j(tb,"shadowRoot"),tA=j(tb,"attributes"),tT=p&&p.prototype?j(p.prototype,"nodeType"):null,t$=p&&p.prototype?j(p.prototype,"nodeName"):null,tC=p&&p.prototype?j(p.prototype,"ownerDocument"):null,tL=function(t){return tT?tT(t):t.nodeType},tO=function(t){return t$?t$(t):t.nodeName};if("function"==typeof c){let t=o.createElement("template");t.content&&t.content.ownerDocument&&(o=t.content.ownerDocument)}let tE="",tK=!1,tR=0,tD=function(){if(tR>0)throw D('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},tN=function(t){tD(),tR++;try{return e.createHTML(t)}finally{tR--}},tP=function(t){tD(),tR++;try{return e.createScriptURL(t)}finally{tR--}},tI=o,tj=tI.implementation,tU=tI.createNodeIterator,tF=tI.createDocumentFragment,tz=tI.getElementsByTagName,tB=s.importNode,tY=tg();i.isSupported="function"==typeof a&&"function"==typeof tM&&tj&&void 0!==tj.createHTMLDocument;let tH=tr,tq=null,tW=P({},[...U,...F,...z,...Y,...q]),tX=null,tG=P({},[...W,...X,...G,...Z]),tZ=Object.seal(f(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),tV=null,tQ=null,tJ=Object.seal(f(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),t0=!0,t1=!0,t2=!1,t3=!0,t5=!1,t6=!0,t8=!1,t4=!1,t9=null,t7=null,et=!1,ee=!1,er=!1,en=!1,ei=!0,ea=!1,eo="user-content-",es=!0,el=!1,ec={},eu=null,eh=P({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),ef=null,ep=P({},["audio","video","img","source","image","track"]),ed=null,eg=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),em="http://www.w3.org/1998/Math/MathML",ey="http://www.w3.org/2000/svg",eb="http://www.w3.org/1999/xhtml",ex=eb,ek=!1,ew=null,e_=P({},[em,ey,eb],v),ev=u(["mi","mo","mn","ms","mtext"]),eM=P({},ev),eS=u(["annotation-xml"]),eA=P({},eS),eT=P({},["title","style","font","a","script"]),e$=null,eC=["application/xhtml+xml","text/html"],eL=null,eO=null,eE=o.createElement("form"),eK=function(t){return t instanceof RegExp||t instanceof Function},eR=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(eO&&eO===t)return;t&&"object"==typeof t||(t={}),t=I(t),eL="application/xhtml+xml"===(e$=-1===eC.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE)?v:_,tq=tm(t,"ALLOWED_TAGS",tW,{transform:eL}),tX=tm(t,"ALLOWED_ATTR",tG,{transform:eL}),ew=tm(t,"ALLOWED_NAMESPACES",e_,{transform:v}),ed=tm(t,"ADD_URI_SAFE_ATTR",eg,{transform:eL,base:eg}),ef=tm(t,"ADD_DATA_URI_TAGS",ep,{transform:eL,base:ep}),eu=tm(t,"FORBID_CONTENTS",eh,{transform:eL}),tV=tm(t,"FORBID_TAGS",I({}),{transform:eL}),tQ=tm(t,"FORBID_ATTR",I({}),{transform:eL}),ec=!!E(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?I(t.USE_PROFILES):t.USE_PROFILES),t0=!1!==t.ALLOW_ARIA_ATTR,t1=!1!==t.ALLOW_DATA_ATTR,t2=t.ALLOW_UNKNOWN_PROTOCOLS||!1,t3=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,t5=t.SAFE_FOR_TEMPLATES||!1,t6=!1!==t.SAFE_FOR_XML,t8=t.WHOLE_DOCUMENT||!1,ee=t.RETURN_DOM||!1,er=t.RETURN_DOM_FRAGMENT||!1,en=t.RETURN_TRUSTED_TYPE||!1,et=t.FORCE_BODY||!1,ei=!1!==t.SANITIZE_DOM,ea=t.SANITIZE_NAMED_PROPS||!1,es=!1!==t.KEEP_CONTENT,el=t.IN_PLACE||!1,tH=!function(t){try{return R(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?tr:t.ALLOWED_URI_REGEXP,ex="string"==typeof t.NAMESPACE?t.NAMESPACE:eb,eM=ty(t,"MATHML_TEXT_INTEGRATION_POINTS",()=>P({},ev)),eA=ty(t,"HTML_INTEGRATION_POINTS",()=>P({},eS));let n=ty(t,"CUSTOM_ELEMENT_HANDLING",()=>f(null));if(tZ=f(null),E(n,"tagNameCheck")&&eK(n.tagNameCheck)&&(tZ.tagNameCheck=n.tagNameCheck),E(n,"attributeNameCheck")&&eK(n.attributeNameCheck)&&(tZ.attributeNameCheck=n.attributeNameCheck),E(n,"allowCustomizedBuiltInElements")&&"boolean"==typeof n.allowCustomizedBuiltInElements&&(tZ.allowCustomizedBuiltInElements=n.allowCustomizedBuiltInElements),h(tZ),t5&&(t1=!1),er&&(ee=!0),ec&&(tq=P({},q),tX=f(null),!0===ec.html&&(P(tq,U),P(tX,W)),!0===ec.svg&&(P(tq,F),P(tX,X),P(tX,Z)),!0===ec.svgFilters&&(P(tq,z),P(tX,X),P(tX,Z)),!0===ec.mathMl&&(P(tq,Y),P(tX,G),P(tX,Z))),tJ.tagCheck=null,tJ.attributeCheck=null,E(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?tJ.tagCheck=t.ADD_TAGS:w(t.ADD_TAGS)&&(tq===tW&&(tq=I(tq)),P(tq,t.ADD_TAGS,eL))),E(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?tJ.attributeCheck=t.ADD_ATTR:w(t.ADD_ATTR)&&(tX===tG&&(tX=I(tX)),P(tX,t.ADD_ATTR,eL))),E(t,"ADD_FORBID_CONTENTS")&&w(t.ADD_FORBID_CONTENTS)&&(eu===eh&&(eu=I(eu)),P(eu,t.ADD_FORBID_CONTENTS,eL)),es&&(tq["#text"]=!0),t8&&P(tq,["html","head","body"]),tq.table&&(P(tq,["tbody"]),delete tV.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw D('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw D('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let r=e;e=t.TRUSTED_TYPES_POLICY;try{tE=tN("")}catch(t){throw e=r,t}}else null===t.TRUSTED_TYPES_POLICY?(e=void 0,tE=""):(void 0===e&&(tK||(r=td(th,l),tK=!0),e=r),e&&"string"==typeof tE&&(tE=tN("")));u&&u(t),eO=t},eD=P({},[...F,...z,...B]),eN=P({},[...Y,...H]),eP=function(t){var e,r,n;let i=tM(t);i&&i.tagName||(i={namespaceURI:ex,tagName:"template"});let a=_(t.tagName),o=_(i.tagName);return!!ew[t.namespaceURI]&&(t.namespaceURI===ey?(e=i).namespaceURI===eb?"svg"===a:e.namespaceURI===em?"svg"===a&&("annotation-xml"===o||eM[o]):!!eD[a]:t.namespaceURI===em?(r=i).namespaceURI===eb?"math"===a:r.namespaceURI===ey?"math"===a&&eA[o]:!!eN[a]:t.namespaceURI===eb?((n=i).namespaceURI!==ey||!!eA[o])&&(n.namespaceURI!==em||!!eM[o])&&!eN[a]&&(eT[a]||!eD[a]):"application/xhtml+xml"===e$&&!!ew[t.namespaceURI])},eI=function(t){x(i.removed,{element:t});try{tM(t).removeChild(t)}catch(e){if(tk(t),!tM(t))throw D("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ej=function(t,e,r){try{tw(t,e)}catch(e){try{t.removeAttribute(r)}catch(t){}}},eU=function(t){eB(t);let e=tv(t);if(e){let t=[];m(e,e=>{x(t,e)}),m(t,t=>{try{tk(t)}catch(t){}})}let r=tA(t);if(r)for(let e=r.length-1;e>=0;--e){let n=r[e],i=n&&n.name;"string"==typeof i&&ej(t,n,i)}},eF=function(t,e,r){if(!r)try{r=e.getAttributeNode(t)}catch(t){r=null}x(i.removed,{attribute:r||null,from:e});try{r?tw(e,r):e.removeAttribute(t)}catch(r){try{e.removeAttribute(t)}catch(t){}}if("is"===t)if(ee||er)try{eI(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},ez=function(t){let e=tA(t);if(e)for(let r=e.length-1;r>=0;--r){let n=e[r],i=n&&n.name;"string"!=typeof i||tX[eL(i)]||ej(t,n,i)}},eB=function(t){let e=[t];for(;e.length>0;){let t=e.pop();1===tL(t)&&ez(t);let r=tv(t);if(r)for(let t=r.length-1;t>=0;--t)e.push(r[t])}},eY=function(t,e){return!!t6&&("patchsrc"===t||"for"===t&&"label"!==e&&"output"!==e)},eH=function(t){if(!t6)return;let e=[t];for(;e.length>0;){let t=e.pop(),r=tL(t);if(7===r||8===r&&R(tl,t.data)){try{tk(t)}catch(t){}continue}if(1===r){let e=eL(tO(t));try{t.hasAttribute&&t.hasAttribute("patchsrc")&&t.removeAttribute("patchsrc"),t.hasAttribute&&t.hasAttribute("for")&&eY("for",e)&&t.removeAttribute("for")}catch(t){}}let n=tv(t);if(n)for(let t=n.length-1;t>=0;--t)e.push(n[t])}},eq=function(t){let r=null,n=null;if(et)t="<remove></remove>"+t;else{let e=M(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===e$&&ex===eb&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");let i=e?tN(t):t;if(ex===eb)try{r=new N().parseFromString(i,e$)}catch(t){}if(!r||!r.documentElement){r=tj.createDocument(ex,"template",null);try{r.documentElement.innerHTML=ek?tE:i}catch(t){}}let a=r.body||r.documentElement;return(t&&n&&a.insertBefore(o.createTextNode(n),a.childNodes[0]||null),ex===eb)?tz.call(r,t8?"html":"body")[0]:t8?r.documentElement:a},eW=function(t){let e=tC?tC(t):t.ownerDocument;return tU.call(e||t,t,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},eX=function(t){return t=S(t,V," "),t=S(t,Q," "),t=S(t,J," ")},eG=function(t){var e;t.normalize();let r=tC?tC(t):t.ownerDocument,n=tU.call(r||t,t,g.SHOW_TEXT|g.SHOW_COMMENT|g.SHOW_CDATA_SECTION|g.SHOW_PROCESSING_INSTRUCTION,null),i=n.nextNode();for(;i;)i.data=eX(i.data),i=n.nextNode();let a=null==(e=t.querySelectorAll)?void 0:e.call(t,"template");a&&m(a,t=>{eV(t.content)&&eG(t.content)})},eZ=function(t){let e=t$?t$(t):null;return"string"==typeof e&&"form"===eL(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==tA(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.removeAttributeNode||"function"!=typeof t.getAttributeNode||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==tT(t)||t.childNodes!==tv(t))},eV=function(t){if(!tT||"object"!=typeof t||null===t)return!1;try{return 11===tT(t)}catch(t){return!1}},eQ=function(t){if(!tT||"object"!=typeof t||null===t)return!1;try{return"number"==typeof tT(t)}catch(t){return!1}};function eJ(t,e,r){0!==t.length&&m(t,t=>{t.call(i,e,r,eO)})}let e0=function(t,e){if(t instanceof RegExp)return R(t,e);if(t instanceof Function){for(var r=arguments.length,n=Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return!!t(e,...n)}return!1},e1=function(t,e,r){if(!tV[e]&&e4(e)&&e0(tZ.tagNameCheck,e))return!1;if(es&&!eu[e]){let e=tM(t),n=tv(t);if(n&&e){let i=n.length;for(let a=i-1;a>=0;--a){let i=t===r?tx(n[a],!0):n[a];e.insertBefore(i,t_(t))}}}return eI(t),!0},e2=function(t,e,r,n){return 0===t.length?e:e===r||e===n?I(e):e},e3=function(t,e){return t!==e&&null===tM(t)&&(el&&eB(t),!0)},e5=function(t,e){if(eJ(tY.beforeSanitizeElements,t,null),e3(t,e))return!0;if(eZ(t))return eI(t),!0;let r=eL(tO(t));if(tq=e2(tY.uponSanitizeElement,tq,tW,t9),eJ(tY.uponSanitizeElement,t,{tagName:r,allowedTags:tq}),e3(t,e))return!0;if(t6&&t.hasChildNodes()&&!eQ(t.firstElementChild)&&R(ts,t.textContent)&&R(ts,t.innerHTML)||t6&&t.namespaceURI===eb&&tf[r]&&(eQ(t.firstElementChild)||"string"==typeof t.textContent&&R(tp[r],t.textContent))||7===t.nodeType||t6&&8===t.nodeType&&R(tl,t.data))return eI(t),!0;if(tV[r]||!(tJ.tagCheck instanceof Function&&tJ.tagCheck(r))&&!tq[r]){let n=e1(t,r,e);return!1===n&&eJ(tY.afterSanitizeElements,t,null),n}if(1===tL(t)&&!eP(t)||("noscript"===r||"noembed"===r||"noframes"===r)&&R(tc,t.innerHTML))return eI(t),!0;if(t5&&3===t.nodeType){let e=eX(t.textContent);t.textContent!==e&&(x(i.removed,{element:t.cloneNode()}),t.textContent=e)}return eJ(tY.afterSanitizeElements,t,null),!1},e6=function(t,e,r){if(tQ[e]||eY(e,t)||ei&&("id"===e||"name"===e)&&(r in o||r in eE))return!1;let n=tX[e]||tJ.attributeCheck instanceof Function&&tJ.attributeCheck(e,t);return!!(t1&&R(tt,e)||t0&&R(te,e))||(n?!(!(ed[e]||R(tH,S(r,ti,"")))&&("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==A(r,"data:")||!ef[t])&&(!t2||R(tn,S(r,ti,""))))||!r:e4(t)&&e0(tZ.tagNameCheck,t)&&e0(tZ.attributeNameCheck,e,t)||"is"===e&&tZ.allowCustomizedBuiltInElements&&e0(tZ.tagNameCheck,r))},e8=P({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),e4=function(t){return!e8[_(t)]&&R(to,t)},e9=function(t,r,n,i){if(e&&"object"==typeof th&&"function"==typeof th.getAttributeType&&!n)switch(th.getAttributeType(t,r)){case"TrustedHTML":return tN(i);case"TrustedScriptURL":return tP(i)}return i},e7=function(t,e,r,n){try{if(r?t.setAttributeNS(r,e,n):t.setAttribute(e,n),eZ(t))return eI(t),!1;return!0}catch(r){return eF(e,t),!1}},rt=function(t){eJ(tY.beforeSanitizeAttributes,t,null);let e=t.attributes;if(!e||eZ(t))return;let r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:tX=e2(tY.uponSanitizeAttribute,tX,tG,t7),forceKeepAttr:void 0},n=e.length,a=eL(t.nodeName);for(;n--;){let o=e[n],s=o.name,l=o.namespaceURI,c=o.value,u=eL(s),h="value"===s?c:T(c),f=!1;if(r.attrName=u,r.attrValue=h,r.keepAttr=!0,r.forceKeepAttr=void 0,eJ(tY.uponSanitizeAttribute,t,r),h=r.attrValue,ea&&("id"===u||"name"===u)&&0!==A(h,eo)&&(eF(s,t,o),h=eo+h,f=!0),t6&&R(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,h)||"attributename"===u&&M(h,"href")){eF(s,t,o);continue}if(!r.forceKeepAttr){if(!r.keepAttr||!t3&&R(tu,h)||(t5&&(h=eX(h)),!e6(a,u,h))){eF(s,t,o);continue}(h=e9(a,u,l,h))!==c&&e7(t,s,l,h)&&f&&b(i.removed)}}eJ(tY.afterSanitizeAttributes,t,null)},re=function(t){let e=null,r=eW(t);for(eJ(tY.beforeSanitizeShadowDOM,t,null);e=r.nextNode();)if(eJ(tY.uponSanitizeShadowNode,e,null),e5(e,t),rt(e),eV(e.content)&&re(e.content),1===tL(e)){let t=tS(e);eV(t)&&(rr(t),re(t))}eJ(tY.afterSanitizeShadowDOM,t,null)},rr=function(t){let e=[{node:t,shadow:null}];for(;e.length>0;){let t=e.pop();if(t.shadow){re(t.shadow);continue}let r=t.node,n=1===tL(r),i=tv(r);if(i)for(let t=i.length-1;t>=0;--t)e.push({node:i[t],shadow:null});if(n){let t=t$?t$(r):null;if("string"==typeof t&&"template"===eL(t)){let t=r.content;eV(t)&&e.push({node:t,shadow:null})}}if(n){let t=tS(r);eV(t)&&e.push({node:null,shadow:t},{node:t,shadow:null})}}};return i.sanitize=function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,a=null,o=null,l=null;if((ek=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!eQ(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return $(t);case"boolean":return C(t);case"bigint":return L?L(t):"0";case"symbol":return O?O(t):"Symbol()";case"undefined":default:return K(t);case"function":case"object":{if(null===t)return K(t);let e=j(t,"toString");if("function"==typeof e){let r=e(t);return"string"==typeof r?r:K(r)}return K(t)}}}(t)))throw D("dirty is not a string, aborting");if(!i.isSupported)return t;t4?(tq=t9,tX=t7):eR(r),(tY.uponSanitizeElement.length>0||tY.uponSanitizeAttribute.length>0)&&(tq=I(tq)),tY.uponSanitizeAttribute.length>0&&(tX=I(tX)),i.removed=[];let c=el&&"string"!=typeof t&&eQ(t);if(c){eH(t);let e=tO(t);if("string"==typeof e){let r=eL(e);if(!tq[r]||tV[r])throw eU(t),D("root node is forbidden and cannot be sanitized in-place")}if(eZ(t))throw eU(t),D("root node is clobbered and cannot be sanitized in-place");try{rr(t)}catch(e){throw eU(t),e}}else if(eQ(t))1===(a=(n=eq("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?n=a:n.appendChild(a),rr(n);else{if(!ee&&!t5&&!t8&&-1===t.indexOf("<"))return e&&en?tN(t):t;if(!(n=eq(t)))return ee?null:en?tE:""}n&&et&&eI(n.firstChild);let u=c?t:n;try{let t=eW(u);for(;o=t.nextNode();)e5(o,u),rt(o),eV(o.content)&&re(o.content)}catch(e){throw c&&(eU(t),m(i.removed,t=>{t.element&&eB(t.element)})),e}if(c)return m(i.removed,t=>{t.element&&eB(t.element)}),t5&&eG(t),t;if(ee){if(t5&&eG(n),er)for(l=tF.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(tX.shadowroot||tX.shadowrootmode)&&(l=tB.call(s,l,!0)),l}let h=t8?n.outerHTML:n.innerHTML;return t8&&tq["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&R(ta,n.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+h),t5&&(h=eX(h)),e&&en?tN(h):h},i.setConfig=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};eR(t),t4=!0,t9=tq,t7=tX},i.clearConfig=function(){eO=null,t4=!1,t9=null,t7=null,e=r,tE=""},i.isValidAttribute=function(t,e,r){return eO||eR({}),e6(eL(t),eL(e),r)},i.addHook=function(t,e){"function"!=typeof e||E(tY,t)&&x(tY[t],e)},i.removeHook=function(t,e){if(E(tY,t)){if(void 0!==e){let r=y(tY[t],e);return -1===r?void 0:k(tY[t],r,1)[0]}return b(tY[t])}},i.removeHooks=function(t){E(tY,t)&&(tY[t]=[])},i.removeAllHooks=function(){tY=tg()},i}()},13080:(t,e,r)=>{"use strict";r.d(e,{F:()=>i});var n=r(14528),i=(0,n.K)((t,e)=>{let{theme:r,themeVariables:i}=e,{useGradient:a,gradientStart:o,gradientStop:s}=i??{},l=t.attr("id"),c=r?.includes("dark")?"#FFFFFF":"#000000",u=(0,n.K)((e,r,n)=>t.append("defs").append("filter").attr("id",e).attr("height",r).attr("width",r).append("feDropShadow").attr("dx",n).attr("dy",n).attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",c),"dropShadow");if(u(`${l}-drop-shadow`,"130%","4"),u(`${l}-drop-shadow-small`,"150%","2"),!a)return;let h=t.append("linearGradient").attr("id",`${l}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");h.append("svg:stop").attr("offset","0%").attr("stop-color",o).attr("stop-opacity",1),h.append("svg:stop").attr("offset","100%").attr("stop-color",s).attr("stop-opacity",1)},"insertLookDefs")},14528:(t,e,r)=>{"use strict";r.d(e,{K:()=>i,V:()=>a});var n=Object.defineProperty,i=(t,e)=>n(t,"name",{value:e,configurable:!0}),a=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})}},18395:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0,e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,e.htmlCtrlEntityRegex=/&(newline|tab);/gi,e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,e.urlSchemeRegex=/^.+(:|:)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[".","/"],e.BLANK_URL="about:blank"},19519:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});let n={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{let e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?t+(e-t)*6*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t,hsl2rgb:({h:t,s:e,l:r},i)=>{if(!e)return 2.55*r;t/=360,e/=100;let a=(r/=100)<.5?r*(1+e):r+e-r*e,o=2*r-a;switch(i){case"r":return 255*n.hue2rgb(o,a,t+1/3);case"g":return 255*n.hue2rgb(o,a,t);case"b":return 255*n.hue2rgb(o,a,t-1/3)}},rgb2hsl:({r:t,g:e,b:r},n)=>{let i=Math.max(t/=255,e/=255,r/=255),a=Math.min(t,e,r),o=(i+a)/2;if("l"===n)return 100*o;if(i===a)return 0;let s=i-a;if("s"===n)return 100*(o>.5?s/(2-i-a):s/(i+a));switch(i){case t:return((e-r)/s+6*(e<r))*60;case e:return((r-t)/s+2)*60;case r:return((t-e)/s+4)*60;default:return -1}}},i={channel:n,lang:{clamp:(t,e,r)=>e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(1e10*t)/1e10},unit:{dec2hex:t=>{let e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}}}},23792:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(19519),i=r(62079);let a=(t,e,r)=>{let a=i.A.parse(t),o=a[e],s=n.A.channel.clamp[e](o+r);return o!==s&&(a[e]=s),i.A.stringify(a)}},26707:function(t){t.exports=function(){"use strict";var t="millisecond",e="second",r="minute",n="hour",i="week",a="month",o="quarter",s="year",l="date",c="Invalid Date",u=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},p="en",d={};d[p]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}};var g="$isDayjsObject",m=function(t){return t instanceof k||!(!t||!t[g])},y=function t(e,r,n){var i;if(!e)return p;if("string"==typeof e){var a=e.toLowerCase();d[a]&&(i=a),r&&(d[a]=r,i=a);var o=e.split("-");if(!i&&o.length>1)return t(o[0])}else{var s=e.name;d[s]=e,i=s}return!n&&i&&(p=i),i||!n&&p},b=function(t,e){if(m(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new k(r)},x={s:f,z:function(t){var e=-t.utcOffset(),r=Math.abs(e);return(e<=0?"+":"-")+f(Math.floor(r/60),2,"0")+":"+f(r%60,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),i=e.clone().add(n,a),o=r-i<0,s=e.clone().add(n+(o?-1:1),a);return+(-(n+(r-i)/(o?i-s:s-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(c){return({M:a,y:s,w:i,d:"day",D:l,h:n,m:r,s:e,ms:t,Q:o})[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}};x.l=y,x.i=m,x.w=function(t,e){return b(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var k=function(){function f(t){this.$L=y(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[g]=!0}var p=f.prototype;return p.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(x.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(u);if(n){var i=n[2]-1||0,a=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)}}return new Date(e)}(t),this.init()},p.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},p.$utils=function(){return x},p.isValid=function(){return this.$d.toString()!==c},p.isSame=function(t,e){var r=b(t);return this.startOf(e)<=r&&r<=this.endOf(e)},p.isAfter=function(t,e){return b(t)<this.startOf(e)},p.isBefore=function(t,e){return this.endOf(e)<b(t)},p.$g=function(t,e,r){return x.u(t)?this[e]:this.set(r,t)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(t,o){var c=this,u=!!x.u(o)||o,h=x.p(t),f=function(t,e){var r=x.w(c.$u?Date.UTC(c.$y,e,t):new Date(c.$y,e,t),c);return u?r:r.endOf("day")},p=function(t,e){return x.w(c.toDate()[t].apply(c.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(e)),c)},d=this.$W,g=this.$M,m=this.$D,y="set"+(this.$u?"UTC":"");switch(h){case s:return u?f(1,0):f(31,11);case a:return u?f(1,g):f(0,g+1);case i:var b=this.$locale().weekStart||0,k=(d<b?d+7:d)-b;return f(u?m-k:m+(6-k),g);case"day":case l:return p(y+"Hours",0);case n:return p(y+"Minutes",1);case r:return p(y+"Seconds",2);case e:return p(y+"Milliseconds",3);default:return this.clone()}},p.endOf=function(t){return this.startOf(t,!1)},p.$set=function(i,o){var c,u=x.p(i),h="set"+(this.$u?"UTC":""),f=((c={}).day=h+"Date",c[l]=h+"Date",c[a]=h+"Month",c[s]=h+"FullYear",c[n]=h+"Hours",c[r]=h+"Minutes",c[e]=h+"Seconds",c[t]=h+"Milliseconds",c)[u],p="day"===u?this.$D+(o-this.$W):o;if(u===a||u===s){var d=this.clone().set(l,1);d.$d[f](p),d.init(),this.$d=d.set(l,Math.min(this.$D,d.daysInMonth())).$d}else f&&this.$d[f](p);return this.init(),this},p.set=function(t,e){return this.clone().$set(t,e)},p.get=function(t){return this[x.p(t)]()},p.add=function(t,o){var l,c=this;t=Number(t);var u=x.p(o),h=function(e){var r=b(c);return x.w(r.date(r.date()+Math.round(e*t)),c)};if(u===a)return this.set(a,this.$M+t);if(u===s)return this.set(s,this.$y+t);if("day"===u)return h(1);if(u===i)return h(7);var f=((l={})[r]=6e4,l[n]=36e5,l[e]=1e3,l)[u]||1,p=this.$d.getTime()+t*f;return x.w(p,this)},p.subtract=function(t,e){return this.add(-1*t,e)},p.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||c;var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=x.z(this),a=this.$H,o=this.$m,s=this.$M,l=r.weekdays,u=r.months,f=r.meridiem,p=function(t,r,i,a){return t&&(t[r]||t(e,n))||i[r].slice(0,a)},d=function(t){return x.s(a%12||12,t,"0")},g=f||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(h,function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return x.s(e.$y,4,"0");case"M":return s+1;case"MM":return x.s(s+1,2,"0");case"MMM":return p(r.monthsShort,s,u,3);case"MMMM":return p(u,s);case"D":return e.$D;case"DD":return x.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return p(r.weekdaysMin,e.$W,l,2);case"ddd":return p(r.weekdaysShort,e.$W,l,3);case"dddd":return l[e.$W];case"H":return String(a);case"HH":return x.s(a,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return g(a,o,!0);case"A":return g(a,o,!1);case"m":return String(o);case"mm":return x.s(o,2,"0");case"s":return String(e.$s);case"ss":return x.s(e.$s,2,"0");case"SSS":return x.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")})},p.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},p.diff=function(t,l,c){var u,h=this,f=x.p(l),p=b(t),d=(p.utcOffset()-this.utcOffset())*6e4,g=this-p,m=function(){return x.m(h,p)};switch(f){case s:u=m()/12;break;case a:u=m();break;case o:u=m()/3;break;case i:u=(g-d)/6048e5;break;case"day":u=(g-d)/864e5;break;case n:u=g/36e5;break;case r:u=g/6e4;break;case e:u=g/1e3;break;default:u=g}return c?u:x.a(u)},p.daysInMonth=function(){return this.endOf(a).$D},p.$locale=function(){return d[this.$L]},p.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=y(t,e,!0);return n&&(r.$L=n),r},p.clone=function(){return x.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},f}(),w=k.prototype;return b.prototype=w,[["$ms",t],["$s",e],["$m",r],["$H",n],["$W","day"],["$M",a],["$y",s],["$D",l]].forEach(function(t){w[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),b.extend=function(t,e){return t.$i||(t(e,k,b),t.$i=!0),b},b.locale=y,b.isDayjs=m,b.unix=function(t){return b(1e3*t)},b.en=d[p],b.Ls=d,b.p={},b}()},28996:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>r0});var n=r(62831),i=r(40350),a=r(33280);r(13080),r(64299),r(37064),r(83860),r(60833),r(99980),r(96137);var o=r(41329);r(94698);var s=r(58959),l=r(95631),c=r(5218),u=r(14528),h=r(95525),f=r(60830),p="comm",d="rule",g="decl",m="@keyframes",y="@layer",b=Math.abs,x=String.fromCharCode;function k(t,e,r){return t.replace(e,r)}function w(t,e){return 0|t.charCodeAt(e)}function _(t,e,r){return t.slice(e,r)}function v(t){return t.length}function M(t,e){return e.push(t),t}function S(t,e){for(var r="",n=0;n<t.length;n++)r+=e(t[n],n,t,e)||"";return r}function A(t,e,r,n){switch(t.type){case y:if(t.children.length)break;case"@import":case"@namespace":case g:return t.return=t.return||t.value;case p:return"";case m:return t.return=t.value+"{"+S(t.children,n)+"}";case d:if(!v(t.value=t.props.join(",")))return""}return v(r=S(t.children,n))?t.return=t.value+"{"+r+"}":""}var T=1,$=1,C=0,L=0,O=0,E="";function K(t,e,r,n,i,a,o,s){return{value:t,root:e,parent:r,type:n,props:i,children:a,line:T,column:$,length:o,return:"",siblings:s}}function R(){return O=L<C?w(E,L++):0,$++,10===O&&($=1,T++),O}function D(){return w(E,L)}function N(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function P(t){var e,r;return(e=L-1,r=function t(e){for(;R();)switch(O){case e:return L;case 34:case 39:34!==e&&39!==e&&t(O);break;case 40:41===e&&t(e);break;case 92:R()}return L}(91===t?t+2:40===t?t+1:t),_(E,e,r)).trim()}function I(t,e,r,n,i,a,o,s,l,c,u,h){for(var f=i-1,p=0===i?a:[""],g=p.length,m=0,y=0,x=0;m<n;++m)for(var w=0,v=_(t,f+1,f=b(y=o[m])),M=t;w<g;++w)(M=(y>0?p[w]+" "+v:k(v,/&\f/g,p[w])).trim())&&(l[x++]=M);return K(t,e,r,0===i?d:s,l,c,u,h)}function j(t,e,r,n,i){return K(t,e,r,g,_(t,0,n),_(t,n+1,-1),n,i)}var U=r(10637),F=r(42901),z=r(7108),B=r(48375),Y=r(90736);function H(t){if(null==t)return!0;if((0,z.X)(t))return("function"==typeof t.splice||"string"==typeof t||!!(0,F.P)(t)||!!(0,Y.i)(t)||!!(0,B.N)(t))&&0===t.length;if("object"==typeof t||"function"==typeof t){let e;if(t instanceof Map||t instanceof Set)return 0===t.size;let r=Object.keys(t);return(e=t?.constructor,t===("function"==typeof e?e.prototype:Object.prototype))?0===r.filter(t=>"constructor"!==t).length:0===r.length}return!0}var q={id:"c4",detector:(0,u.K)(t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),"detector"),loader:(0,u.K)(async()=>{let{diagram:t}=await r.e(2806).then(r.bind(r,2806));return{id:"c4",diagram:t}},"loader")},W="flowchart-v2",X=(0,u.K)(t=>/^\s*(graph|flowchart)/.test(t),"detector"),G=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(7443),r.e(3082)]).then(r.bind(r,83082));return{id:W,diagram:t}},"loader"),Z={id:W,detector:X,loader:G},V="agentflow",Q=(0,u.K)(t=>/^\s*agentflow-beta\b/.test(t),"detector"),J=(0,u.K)(async()=>{let{diagram:t}=await r.e(7913).then(r.bind(r,87913));return{id:V,diagram:t}},"loader"),tt={id:V,detector:Q,loader:J},te="swimlane",tr=(0,u.K)(t=>/^\s*swimlane-beta\b/.test(t),"detector"),tn=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(7443),r.e(5785)]).then(r.bind(r,65785));return{id:te,diagram:t}},"loader"),ti={id:te,detector:tr,loader:tn},ta={id:"er",detector:(0,u.K)(t=>/^\s*erDiagram/.test(t),"detector"),loader:(0,u.K)(async()=>{let{diagram:t}=await r.e(5432).then(r.bind(r,25432));return{id:"er",diagram:t}},"loader")},to="gitGraph",ts=(0,u.K)(t=>/^\s*gitGraph/.test(t),"detector"),tl=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(7835)]).then(r.bind(r,87835));return{id:to,diagram:t}},"loader"),tc={id:to,detector:ts,loader:tl},tu="gantt",th=(0,u.K)(t=>/^\s*gantt/.test(t),"detector"),tf=(0,u.K)(async()=>{let{diagram:t}=await r.e(3110).then(r.bind(r,93110));return{id:tu,diagram:t}},"loader"),tp={id:tu,detector:th,loader:tf},td="info",tg=(0,u.K)(t=>/^\s*info/.test(t),"detector"),tm=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(9516)]).then(r.bind(r,9516));return{id:td,diagram:t}},"loader"),ty={id:td,detector:tg,loader:tm},tb={id:"pie",detector:(0,u.K)(t=>/^\s*pie/.test(t),"detector"),loader:(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(9525)]).then(r.bind(r,49525));return{id:"pie",diagram:t}},"loader")},tx="quadrantChart",tk=(0,u.K)(t=>/^\s*quadrantChart/.test(t),"detector"),tw=(0,u.K)(async()=>{let{diagram:t}=await r.e(6848).then(r.bind(r,66848));return{id:tx,diagram:t}},"loader"),t_={id:tx,detector:tk,loader:tw},tv="xychart",tM=(0,u.K)(t=>/^\s*xychart(-beta)?/.test(t),"detector"),tS=(0,u.K)(async()=>{let{diagram:t}=await r.e(2817).then(r.bind(r,72817));return{id:tv,diagram:t}},"loader"),tA={id:tv,detector:tM,loader:tS},tT="requirement",t$=(0,u.K)(t=>/^\s*requirement(Diagram)?/.test(t),"detector"),tC=(0,u.K)(async()=>{let{diagram:t}=await r.e(9612).then(r.bind(r,19612));return{id:tT,diagram:t}},"loader"),tL={id:tT,detector:t$,loader:tC},tO="sequence",tE=(0,u.K)(t=>/^\s*sequenceDiagram/.test(t),"detector"),tK=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4888),r.e(1396)]).then(r.bind(r,72319));return{id:tO,diagram:t}},"loader"),tR={id:tO,detector:tE,loader:tK},tD="classDiagram",tN=(0,u.K)(t=>/^\s*classDiagram/.test(t),"detector"),tP=(0,u.K)(async()=>{let{diagram:t}=await r.e(4485).then(r.bind(r,84485));return{id:tD,diagram:t}},"loader"),tI={id:tD,detector:tN,loader:tP},tj="stateDiagram",tU=(0,u.K)(t=>/^\s*stateDiagram/.test(t),"detector"),tF=(0,u.K)(async()=>{let{diagram:t}=await r.e(4224).then(r.bind(r,24224));return{id:tj,diagram:t}},"loader"),tz={id:tj,detector:tU,loader:tF},tB="journey",tY=(0,u.K)(t=>/^\s*journey/.test(t),"detector"),tH=(0,u.K)(async()=>{let{diagram:t}=await r.e(3618).then(r.bind(r,33618));return{id:tB,diagram:t}},"loader"),tq={id:tB,detector:tY,loader:tH},tW={draw:(0,u.K)((t,e,r)=>{c.R.debug("rendering svg for syntax error\n");let i=(0,n.D)(e),a=i.append("g");i.attr("viewBox","0 0 2412 512"),(0,l.a$)(i,100,512,!0),a.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),a.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),a.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),a.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),a.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),a.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),a.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),a.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw")},tX={db:{},renderer:tW,parser:{parse:(0,u.K)(()=>{},"parse")}},tG="flowchart-elk",tZ=(0,u.K)((t,e={})=>!!/^\s*flowchart-elk/.test(t)&&(e.layout="elk",!0),"detector"),tV=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(7443),r.e(3082)]).then(r.bind(r,83082));return{id:tG,diagram:t}},"loader"),tQ={id:tG,detector:tZ,loader:tV},tJ="timeline",t0=(0,u.K)(t=>/^\s*timeline/.test(t),"detector"),t1=(0,u.K)(async()=>{let{diagram:t}=await r.e(8655).then(r.bind(r,78655));return{id:tJ,diagram:t}},"loader"),t2={id:tJ,detector:t0,loader:t1},t3="mindmap",t5=(0,u.K)(t=>/^\s*mindmap/.test(t),"detector"),t6=(0,u.K)(async()=>{let{diagram:t}=await r.e(2039).then(r.bind(r,62039));return{id:t3,diagram:t}},"loader"),t8={id:t3,detector:t5,loader:t6},t4="kanban",t9=(0,u.K)(t=>/^\s*kanban/.test(t),"detector"),t7=(0,u.K)(async()=>{let{diagram:t}=await r.e(898).then(r.bind(r,898));return{id:t4,diagram:t}},"loader"),et={id:t4,detector:t9,loader:t7},ee="sankey",er=(0,u.K)(t=>/^\s*sankey(-beta)?/.test(t),"detector"),en=(0,u.K)(async()=>{let{diagram:t}=await r.e(9371).then(r.bind(r,39371));return{id:ee,diagram:t}},"loader"),ei={id:ee,detector:er,loader:en},ea="packet",eo=(0,u.K)(t=>/^\s*packet(-beta)?/.test(t),"detector"),es=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(7992)]).then(r.bind(r,37992));return{id:ea,diagram:t}},"loader"),el={id:ea,detector:eo,loader:es},ec="radar",eu=(0,u.K)(t=>/^\s*radar-beta/.test(t),"detector"),eh=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(1840)]).then(r.bind(r,31840));return{id:ec,diagram:t}},"loader"),ef={id:ec,detector:eu,loader:eh},ep="block",ed=(0,u.K)(t=>/^\s*block(-beta)?/.test(t),"detector"),eg=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(5469),r.e(6390),r.e(1672)]).then(r.bind(r,11672));return{id:ep,diagram:t}},"loader"),em={id:ep,detector:ed,loader:eg},ey="treeView",eb=(0,u.K)(t=>/^\s*treeView-beta/.test(t),"detector"),ex=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(621)]).then(r.bind(r,40621));return{id:ey,diagram:t}},"loader"),ek={id:ey,detector:eb,loader:ex},ew="architecture",e_=(0,u.K)(t=>/^\s*architecture/.test(t),"detector"),ev=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(6278),r.e(4012),r.e(1776)]).then(r.bind(r,21776));return{id:ew,diagram:t}},"loader"),eM={id:ew,detector:e_,loader:ev},eS="eventmodeling",eA=(0,u.K)(t=>/^\s*eventmodeling/.test(t),"detector"),eT=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(8687)]).then(r.bind(r,8687));return{id:eS,diagram:t}},"loader"),e$={id:eS,detector:eA,loader:eT},eC="ishikawa",eL=(0,u.K)(t=>/^\s*ishikawa(-beta)?\b/i.test(t),"detector"),eO=(0,u.K)(async()=>{let{diagram:t}=await r.e(8259).then(r.bind(r,88259));return{id:eC,diagram:t}},"loader"),eE={id:eC,detector:eL,loader:eO},eK="venn",eR=(0,u.K)(t=>/^\s*venn-beta/.test(t),"detector"),eD=(0,u.K)(async()=>{let{diagram:t}=await r.e(7266).then(r.bind(r,57266));return{id:eK,diagram:t}},"loader"),eN={id:eK,detector:eR,loader:eD},eP="treemap",eI=(0,u.K)(t=>/^\s*treemap/.test(t),"detector"),ej=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(8057)]).then(r.bind(r,88057));return{id:eP,diagram:t}},"loader"),eU={id:eP,detector:eI,loader:ej},eF="usecase",ez=(0,u.K)(t=>/^\s*usecase-beta(?:\s|$)/.test(t),"detector"),eB=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(5469),r.e(4459),r.e(4109)]).then(r.bind(r,4109));return{id:eF,diagram:t}},"loader"),eY={id:eF,detector:ez,loader:eB},eH="wardley",eq=(0,u.K)(t=>/^\s*wardley-beta/i.test(t),"detector"),eW=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(6863)]).then(r.bind(r,86863));return{id:eH,diagram:t}},"loader"),eX={id:eH,detector:eq,loader:eW},eG="cynefin",eZ=(0,u.K)(t=>/^\s*cynefin-beta(?:[\s:]|$)/.test(t),"detector"),eV=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(8372)]).then(r.bind(r,68372));return{id:eG,diagram:t}},"loader"),eQ={id:eG,detector:eZ,loader:eV},eJ="railroad",e0=(0,u.K)(t=>/^\s*railroad-beta/i.test(t),"detector"),e1=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(7449),r.e(3711)]).then(r.bind(r,33711));return{id:eJ,diagram:t}},"loader"),e2={id:eJ,detector:e0,loader:e1},e3="railroadEbnf",e5=(0,u.K)(t=>/^\s*railroad-ebnf-beta/i.test(t),"detector"),e6=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(7449),r.e(2396)]).then(r.bind(r,52396));return{id:e3,diagram:t}},"loader"),e8={id:e3,detector:e5,loader:e6},e4="railroadAbnf",e9=(0,u.K)(t=>/^\s*railroad-abnf-beta/i.test(t),"detector"),e7=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(7449),r.e(2205)]).then(r.bind(r,42205));return{id:e4,diagram:t}},"loader"),rt={id:e4,detector:e9,loader:e7},re="railroadPeg",rr=(0,u.K)(t=>/^\s*railroad-peg-beta/i.test(t),"detector"),rn=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(7449),r.e(260)]).then(r.bind(r,20260));return{id:re,diagram:t}},"loader"),ri={id:re,detector:rr,loader:rn},ra=!1,ro=(0,u.K)(()=>{ra||(ra=!0,(0,l.Js)("error",tX,t=>"error"===t.toLowerCase().trim()),(0,l.Js)("---",{db:{clear:(0,u.K)(()=>{},"clear")},styles:{},renderer:{draw:(0,u.K)(()=>{},"draw")},parser:{parse:(0,u.K)(()=>{throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:(0,u.K)(()=>null,"init")},t=>t.toLowerCase().trimStart().startsWith("---")),(0,l.Xd)(tQ,t8,eM),(0,l.Xd)(tt,q,et,tI,ta,tp,ty,tb,tL,tR,ti,Z,t2,tc,tz,tq,t_,ei,el,tA,em,e$,ek,ef,eE,eU,e2,e8,rt,ri,eN,eX,eQ,eY))},"addDiagrams"),rs=(0,u.K)(async()=>{c.R.debug("Loading registered diagrams");let t=(await Promise.allSettled(Object.entries(l.mW).map(async([t,{detector:e,loader:r}])=>{if(r)try{(0,l.Gs)(t)}catch{try{let{diagram:t,id:n}=await r();(0,l.Js)(n,t,e)}catch(e){throw c.R.error(`Failed to load external diagram with key ${t}. Removing from detectors.`),delete l.mW[t],e}}}))).filter(t=>"rejected"===t.status);if(t.length>0){for(let e of(c.R.error(`Failed to load ${t.length} external diagrams`),t))c.R.error(e);throw Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams");function rl(t,e){t.attr("role","graphics-document document"),""!==e&&t.attr("aria-roledescription",e)}function rc(t,e,r,n){if(void 0!==t.insert){if(r){let e=`chart-desc-${n}`;t.attr("aria-describedby",e),t.insert("desc",":first-child").attr("id",e).text(r)}if(e){let r=`chart-title-${n}`;t.attr("aria-labelledby",r),t.insert("title",":first-child").attr("id",r).text(e)}}}(0,u.K)(rl,"setA11yDiagramInfo"),(0,u.K)(rc,"addSVGa11yTitleDescription");var ru=class t{constructor(t,e,r,n,i){this.type=t,this.text=e,this.db=r,this.parser=n,this.renderer=i}static{(0,u.K)(this,"Diagram")}static async fromText(e,r={}){let n="string"==typeof e?{raw:e,cleaned:e}:e,i=(0,l.zj)(),a=(0,l.Ch)(n.cleaned,i);try{(0,l.Gs)(a)}catch{let t=(0,l.J$)(a);if(!t)throw new l.C0(`Diagram ${a} not found.`);let{id:e,diagram:r}=await t();(0,l.Js)(e,r)}let{db:o,parser:u,renderer:h,init:f}=(0,l.Gs)(a);u.parser&&(u.parser.yy=o),o.clear?.(),f?.(i),r.title&&o.setDiagramTitle?.(r.title);let p=n.cleaned;if(o.preserveCommentsWhenParsing&&n.withComments){let t=i.maxTextSize??l.UI.maxTextSize;n.withComments.length>t?c.R.warn(`Comment-preserving source exceeds maxTextSize (${n.withComments.length} > ${t}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`):p=n.withComments}let d=(0,s.C4)(p)+"\n";return n.frontmatterLineOffset&&o.setFrontmatterLineOffset?.(n.frontmatterLineOffset),await u.parse(d),new t(a,d,o,u,h)}async render(t,e){await this.renderer.draw(this.text,t,e,this)}getParser(){return this.parser}getType(){return this.type}},rh=[],rf=(0,u.K)(()=>{rh.forEach(t=>{t()}),rh=[]},"attachFunctions"),rp=(0,u.K)(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function rd(t){let e=t.match(l.EJ);if(!e)return{text:t,metadata:{}};let r=e[1],n=r?e[2].split("\n").map(t=>t.startsWith(r)?t.slice(r.length):t).join("\n"):e[2],a=(0,i.H)(n,{schema:i.r})??{};a="object"!=typeof a||Array.isArray(a)?{}:a;let o={};return a.displayMode&&(o.displayMode=a.displayMode.toString()),a.title&&(o.title=a.title.toString()),a.config&&(o.config=a.config),{text:t.slice(e[0].length),metadata:o}}(0,u.K)(rd,"extractFrontMatter");var rg=(0,u.K)(t=>t.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(t,e,r)=>"<"+e+r.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),rm=(0,u.K)(t=>{let{text:e,metadata:r}=rd(t),{displayMode:n,title:i,config:a={}}=r;return n&&(a.gantt||(a.gantt={}),a.gantt.displayMode=n),{title:i,config:a,text:e}},"processFrontmatter"),ry=(0,u.K)(t=>{let e=s._K.detectInit(t)??{},r=s._K.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:t})=>"wrap"===t):r?.type==="wrap"&&(e.wrap=!0),{text:(0,s.vU)(t),directive:e}},"processDirectives");function rb(t){let e=rg(t),r=rm(e),n=ry(r.text),i=(0,s.$t)(r.config,n.directive),a=n.text;return{code:{raw:t,cleaned:rp(a),withComments:a,frontmatterLineOffset:e.length>r.text.length?(e.substring(0,e.length-r.text.length).match(/\n/g)??[]).length:0},title:r.title,config:i}}function rx(t){return btoa(Array.from(new TextEncoder().encode(t),t=>String.fromCodePoint(t)).join(""))}(0,u.K)(rb,"preprocessDiagram"),(0,u.K)(rx,"toBase64");var rk=["foreignobject"],rw=["dominant-baseline"];function r_(t){let e,r=rb(t);(0,l.cL)();try{e=(0,l.Ch)(r.code.cleaned,(0,l.zj)())}catch{e=void 0}return(0,l.yj)(e),(0,l.xA)(r.config??{}),r}async function rv(t,e){ro();try{let{code:e,config:r}=r_(t);return{diagramType:(await ru.fromText(e)).type,config:r}}catch(t){if(e?.suppressErrors)return!1;throw t}finally{(0,l.yj)(void 0)}}(0,u.K)(r_,"processAndSetConfigs"),(0,u.K)(rv,"parse");var rM=(0,u.K)((t,e,r=[])=>{let n=(0,l.Df)(`{ ${r.join(" !important; ")} !important; }`);return`.${t} ${e} ${n}`},"cssImportantStyles"),rS=(0,u.K)((t,e=new Map)=>{let r=new CSSStyleSheet;if(void 0!==t.fontFamily&&r.insertRule(`:root { --mermaid-font-family: ${t.fontFamily}}`,r.cssRules.length),void 0!==t.altFontFamily&&r.insertRule(`:root { --mermaid-alt-font-family: ${t.altFontFamily}}`,r.cssRules.length),e instanceof Map){let n=(0,l.E)(t)?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(t=>{H(t.styles)||n.forEach(e=>{r.insertRule(rM(t.id,e,t.styles),r.cssRules.length)}),H(t.textStyles)||r.insertRule(rM(t.id,"tspan",(t?.textStyles||[]).map(t=>t.replace("color","fill"))),r.cssRules.length)})}let n="";if(void 0!==t.themeCSS)if("function"==typeof r.replaceSync){let e=new CSSStyleSheet;e.replaceSync(t.themeCSS),n=(0,l.KG)(e)+"\n"}else n+=`${t.themeCSS}
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3927],{1203:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(19519),i=r(62079);let a=(t,e)=>{let r=i.A.parse(t);for(let t in e)r[t]=n.A.channel.clamp[t](e[t]);return i.A.stringify(r)}},3288:(t,e,r)=>{"use strict";function n(t,e,r){if(t&&t.length){let[n,i]=e,a=Math.PI/180*r,o=Math.cos(a),s=Math.sin(a);for(let e of t){let[t,r]=e;e[0]=(t-n)*o-(r-i)*s+n,e[1]=(t-n)*s+(r-i)*o+i}}}function i(t,e){var r;let i=e.hachureAngle+90,a=e.hachureGap;a<0&&(a=4*e.strokeWidth),a=Math.round(Math.max(a,.1));let o=1;return e.roughness>=1&&((null==(r=e.randomizer)?void 0:r.next())||Math.random())>.7&&(o=a),function(t,e,r,i=1){let a=Math.max(e,.1),o=t[0]&&t[0][0]&&"number"==typeof t[0][0]?[t]:t,s=[0,0];if(r)for(let t of o)n(t,s,r);let l=function(t,e,r){let n=[];for(let e of t){var i,a;let t=[...e];i=t[0],a=t[t.length-1],i[0]===a[0]&&i[1]===a[1]||t.push([t[0][0],t[0][1]]),t.length>2&&n.push(t)}let o=[];e=Math.max(e,.1);let s=[];for(let t of n)for(let e=0;e<t.length-1;e++){let r=t[e],n=t[e+1];if(r[1]!==n[1]){let t=Math.min(r[1],n[1]);s.push({ymin:t,ymax:Math.max(r[1],n[1]),x:t===r[1]?r[0]:n[0],islope:(n[0]-r[0])/(n[1]-r[1])})}}if(s.sort((t,e)=>t.ymin<e.ymin?-1:t.ymin>e.ymin?1:t.x<e.x?-1:t.x>e.x?1:t.ymax===e.ymax?0:(t.ymax-e.ymax)/Math.abs(t.ymax-e.ymax)),!s.length)return o;let l=[],c=s[0].ymin,u=0;for(;l.length||s.length;){if(s.length){let t=-1;for(let e=0;e<s.length&&!(s[e].ymin>c);e++)t=e;s.splice(0,t+1).forEach(t=>{l.push({s:c,edge:t})})}if((l=l.filter(t=>!(t.edge.ymax<=c))).sort((t,e)=>t.edge.x===e.edge.x?0:(t.edge.x-e.edge.x)/Math.abs(t.edge.x-e.edge.x)),(1!==r||u%e==0)&&l.length>1)for(let t=0;t<l.length;t+=2){let e=t+1;if(e>=l.length)break;let r=l[t].edge,n=l[e].edge;o.push([[Math.round(r.x),c],[Math.round(n.x),c]])}c+=r,l.forEach(t=>{t.edge.x=t.edge.x+r*t.edge.islope}),u++}return o}(o,a,i);if(r){let t;for(let t of o)n(t,s,-r);t=[],l.forEach(e=>t.push(...e)),n(t,s,-r)}return l}(t,a,i,o||1)}r.d(e,{A:()=>G});class a{constructor(t){this.helper=t}fillPolygons(t,e){return this._fillPolygons(t,e)}_fillPolygons(t,e){let r=i(t,e);return{type:"fillSketch",ops:this.renderLines(r,e)}}renderLines(t,e){let r=[];for(let n of t)r.push(...this.helper.doubleLineOps(n[0][0],n[0][1],n[1][0],n[1][1],e));return r}}function o(t){let e=t[0],r=t[1];return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}class s extends a{fillPolygons(t,e){let r=e.hachureGap;r<0&&(r=4*e.strokeWidth);let n=i(t,Object.assign({},e,{hachureGap:r=Math.max(r,.1)})),a=Math.PI/180*e.hachureAngle,s=[],l=.5*r*Math.cos(a),c=.5*r*Math.sin(a);for(let[t,e]of n)o([t,e])&&s.push([[t[0]-l,t[1]+c],[...e]],[[t[0]+l,t[1]-c],[...e]]);return{type:"fillSketch",ops:this.renderLines(s,e)}}}class l extends a{fillPolygons(t,e){let r=this._fillPolygons(t,e),n=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),i=this._fillPolygons(t,n);return r.ops=r.ops.concat(i.ops),r}}class c{constructor(t){this.helper=t}fillPolygons(t,e){let r=i(t,e=Object.assign({},e,{hachureAngle:0}));return this.dotsOnLines(r,e)}dotsOnLines(t,e){let r=[],n=e.hachureGap;n<0&&(n=4*e.strokeWidth),n=Math.max(n,.1);let i=e.fillWeight;i<0&&(i=e.strokeWidth/2);let a=n/4;for(let s of t){let t=o(s),l=Math.ceil(t/n)-1,c=t-l*n,u=(s[0][0]+s[1][0])/2-n/4,h=Math.min(s[0][1],s[1][1]);for(let t=0;t<l;t++){let o=u-a+2*Math.random()*a,s=h+c+t*n-a+2*Math.random()*a,l=this.helper.ellipse(o,s,i,i,e);r.push(...l.ops)}}return{type:"fillSketch",ops:r}}}class u{constructor(t){this.helper=t}fillPolygons(t,e){let r=i(t,e);return{type:"fillSketch",ops:this.dashedLine(r,e)}}dashedLine(t,e){let r=e.dashOffset<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashOffset,n=e.dashGap<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashGap,i=[];return t.forEach(t=>{let a=o(t),s=Math.floor(a/(r+n)),l=(a+n-s*(r+n))/2,c=t[0],u=t[1];c[0]>u[0]&&(c=t[1],u=t[0]);let h=Math.atan((u[1]-c[1])/(u[0]-c[0]));for(let t=0;t<s;t++){let a=t*(r+n),o=a+r,s=[c[0]+a*Math.cos(h)+l*Math.cos(h),c[1]+a*Math.sin(h)+l*Math.sin(h)],u=[c[0]+o*Math.cos(h)+l*Math.cos(h),c[1]+o*Math.sin(h)+l*Math.sin(h)];i.push(...this.helper.doubleLineOps(s[0],s[1],u[0],u[1],e))}}),i}}class h{constructor(t){this.helper=t}fillPolygons(t,e){let r=e.hachureGap<0?4*e.strokeWidth:e.hachureGap,n=e.zigzagOffset<0?r:e.zigzagOffset,a=i(t,e=Object.assign({},e,{hachureGap:r+n}));return{type:"fillSketch",ops:this.zigzagLines(a,n,e)}}zigzagLines(t,e,r){let n=[];return t.forEach(t=>{let i=Math.round(o(t)/(2*e)),a=t[0],s=t[1];a[0]>s[0]&&(a=t[1],s=t[0]);let l=Math.atan((s[1]-a[1])/(s[0]-a[0]));for(let t=0;t<i;t++){let i=2*t*e,o=2*(t+1)*e,s=Math.sqrt(2*Math.pow(e,2)),c=[a[0]+i*Math.cos(l),a[1]+i*Math.sin(l)],u=[a[0]+o*Math.cos(l),a[1]+o*Math.sin(l)],h=[c[0]+s*Math.cos(l+Math.PI/4),c[1]+s*Math.sin(l+Math.PI/4)];n.push(...this.helper.doubleLineOps(c[0],c[1],h[0],h[1],r),...this.helper.doubleLineOps(h[0],h[1],u[0],u[1],r))}}),n}}let f={};class p{constructor(t){this.seed=t}next(){return this.seed?(0x80000000-1&(this.seed=Math.imul(48271,this.seed)))/0x80000000:Math.random()}}let d={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function g(t){let e=[],r=function(t){let e=[];for(;""!==t;)if(t.match(/^([ \t\r\n,]+)/))t=t.substr(RegExp.$1.length);else if(t.match(/^([aAcChHlLmMqQsStTvVzZ])/))e[e.length]={type:0,text:RegExp.$1},t=t.substr(RegExp.$1.length);else{if(!t.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];e[e.length]={type:1,text:`${parseFloat(RegExp.$1)}`},t=t.substr(RegExp.$1.length)}return e[e.length]={type:2,text:""},e}(t),n="BOD",i=0,a=r[0];for(;2!==a.type;){let o=0,s=[];if("BOD"===n){if("M"!==a.text&&"m"!==a.text)return g("M0,0"+t);i++,o=d[a.text],n=a.text}else 1===a.type?o=d[n]:(i++,o=d[a.text],n=a.text);if(!(i+o<r.length))throw Error("Path data ended short");for(let t=i;t<i+o;t++){let e=r[t];if(1!==e.type)throw Error("Param not a number: "+n+","+e.text);s[s.length]=+e.text}if("number"!=typeof d[n])throw Error("Bad segment: "+n);{let t={key:n,data:s};e.push(t),i+=o,a=r[i],"M"===n&&(n="L"),"m"===n&&(n="l")}}return e}function m(t){let e=0,r=0,n=0,i=0,a=[];for(let{key:o,data:s}of t)switch(o){case"M":a.push({key:"M",data:[...s]}),[e,r]=s,[n,i]=s;break;case"m":e+=s[0],r+=s[1],a.push({key:"M",data:[e,r]}),n=e,i=r;break;case"L":a.push({key:"L",data:[...s]}),[e,r]=s;break;case"l":e+=s[0],r+=s[1],a.push({key:"L",data:[e,r]});break;case"C":a.push({key:"C",data:[...s]}),e=s[4],r=s[5];break;case"c":{let t=s.map((t,n)=>n%2?t+r:t+e);a.push({key:"C",data:t}),e=t[4],r=t[5];break}case"Q":a.push({key:"Q",data:[...s]}),e=s[2],r=s[3];break;case"q":{let t=s.map((t,n)=>n%2?t+r:t+e);a.push({key:"Q",data:t}),e=t[2],r=t[3];break}case"A":a.push({key:"A",data:[...s]}),e=s[5],r=s[6];break;case"a":e+=s[5],r+=s[6],a.push({key:"A",data:[s[0],s[1],s[2],s[3],s[4],e,r]});break;case"H":a.push({key:"H",data:[...s]}),e=s[0];break;case"h":e+=s[0],a.push({key:"H",data:[e]});break;case"V":a.push({key:"V",data:[...s]}),r=s[0];break;case"v":r+=s[0],a.push({key:"V",data:[r]});break;case"S":a.push({key:"S",data:[...s]}),e=s[2],r=s[3];break;case"s":{let t=s.map((t,n)=>n%2?t+r:t+e);a.push({key:"S",data:t}),e=t[2],r=t[3];break}case"T":a.push({key:"T",data:[...s]}),e=s[0],r=s[1];break;case"t":e+=s[0],r+=s[1],a.push({key:"T",data:[e,r]});break;case"Z":case"z":a.push({key:"Z",data:[]}),e=n,r=i}return a}function y(t){let e=[],r="",n=0,i=0,a=0,o=0,s=0,l=0;for(let{key:c,data:u}of t){switch(c){case"M":e.push({key:"M",data:[...u]}),[n,i]=u,[a,o]=u;break;case"C":e.push({key:"C",data:[...u]}),n=u[4],i=u[5],s=u[2],l=u[3];break;case"L":e.push({key:"L",data:[...u]}),[n,i]=u;break;case"H":n=u[0],e.push({key:"L",data:[n,i]});break;case"V":i=u[0],e.push({key:"L",data:[n,i]});break;case"S":{let t=0,a=0;"C"===r||"S"===r?(t=n+(n-s),a=i+(i-l)):(t=n,a=i),e.push({key:"C",data:[t,a,...u]}),s=u[0],l=u[1],n=u[2],i=u[3];break}case"T":{let[t,a]=u,o=0,c=0;"Q"===r||"T"===r?(o=n+(n-s),c=i+(i-l)):(o=n,c=i);let h=n+2*(o-n)/3,f=i+2*(c-i)/3,p=t+2*(o-t)/3,d=a+2*(c-a)/3;e.push({key:"C",data:[h,f,p,d,t,a]}),s=o,l=c,n=t,i=a;break}case"Q":{let[t,r,a,o]=u,c=n+2*(t-n)/3,h=i+2*(r-i)/3,f=a+2*(t-a)/3,p=o+2*(r-o)/3;e.push({key:"C",data:[c,h,f,p,a,o]}),s=t,l=r,n=a,i=o;break}case"A":{let t=Math.abs(u[0]),r=Math.abs(u[1]),a=u[2],o=u[3],s=u[4],l=u[5],c=u[6];0===t||0===r?(e.push({key:"C",data:[n,i,l,c,l,c]}),n=l,i=c):(n!==l||i!==c)&&((function t(e,r,n,i,a,o,s,l,c,u){let h=Math.PI*s/180,f=[],p=0,d=0,g=0,m=0;if(u)[p,d,g,m]=u;else{[e,r]=b(e,r,-h),[n,i]=b(n,i,-h);let t=(e-n)/2,s=(r-i)/2,u=t*t/(a*a)+s*s/(o*o);u>1&&(a*=u=Math.sqrt(u),o*=u);let f=a*a,y=o*o,x=(l===c?-1:1)*Math.sqrt(Math.abs((f*y-f*s*s-y*t*t)/(f*s*s+y*t*t)));g=x*a*s/o+(e+n)/2,m=-(x*o)*t/a+(r+i)/2,p=Math.asin(parseFloat(((r-m)/o).toFixed(9))),d=Math.asin(parseFloat(((i-m)/o).toFixed(9))),e<g&&(p=Math.PI-p),n<g&&(d=Math.PI-d),p<0&&(p=2*Math.PI+p),d<0&&(d=2*Math.PI+d),c&&p>d&&(p-=2*Math.PI),!c&&d>p&&(d-=2*Math.PI)}let y=d-p;if(Math.abs(y)>120*Math.PI/180){let e=d,r=n,l=i;f=t(n=g+a*Math.cos(d=c&&d>p?p+120*Math.PI/180*1:p+-(120*Math.PI/180*1)),i=m+o*Math.sin(d),r,l,a,o,s,0,c,[d,e,g,m])}y=d-p;let x=Math.cos(p),k=Math.cos(d),w=Math.tan(y/4),_=4/3*a*w,v=4/3*o*w,M=[e,r],S=[e+_*Math.sin(p),r-v*x],A=[n+_*Math.sin(d),i-v*k],T=[n,i];if(S[0]=2*M[0]-S[0],S[1]=2*M[1]-S[1],u)return[S,A,T].concat(f);{f=[S,A,T].concat(f);let t=[];for(let e=0;e<f.length;e+=3){let r=b(f[e][0],f[e][1],h),n=b(f[e+1][0],f[e+1][1],h),i=b(f[e+2][0],f[e+2][1],h);t.push([r[0],r[1],n[0],n[1],i[0],i[1]])}return t}})(n,i,l,c,t,r,a,o,s).forEach(function(t){e.push({key:"C",data:t})}),n=l,i=c);break}case"Z":e.push({key:"Z",data:[]}),n=a,i=o}r=c}return e}function b(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}let x={randOffset:function(t,e){return E(t,e)},randOffsetWithRange:function(t,e,r){return O(t,e,r)},ellipse:function(t,e,r,n,i){let a=v(r,n,i);return M(t,e,i,a).opset},doubleLineOps:function(t,e,r,n,i){return K(t,e,r,n,i,!0)}};function k(t,e,r,n,i){return{type:"path",ops:K(t,e,r,n,i)}}function w(t,e,r){let n=(t||[]).length;if(n>2){let i=[];for(let e=0;e<n-1;e++)i.push(...K(t[e][0],t[e][1],t[e+1][0],t[e+1][1],r));return e&&i.push(...K(t[n-1][0],t[n-1][1],t[0][0],t[0][1],r)),{type:"path",ops:i}}return 2===n?k(t[0][0],t[0][1],t[1][0],t[1][1],r):{type:"path",ops:[]}}function _(t,e){if(t.length){let r="number"==typeof t[0][0]?[t]:t,n=D(r[0],+(1+.2*e.roughness),e),i=e.disableMultiStroke?[]:D(r[0],1.5*(1+.22*e.roughness),C(e));for(let t=1;t<r.length;t++){let a=r[t];if(a.length){let t=D(a,+(1+.2*e.roughness),e),r=e.disableMultiStroke?[]:D(a,1.5*(1+.22*e.roughness),C(e));for(let e of t)"move"!==e.op&&n.push(e);for(let t of r)"move"!==t.op&&i.push(t)}}return{type:"path",ops:n.concat(i)}}return{type:"path",ops:[]}}function v(t,e,r){let n=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),i=2*Math.PI/Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*n)),a=Math.abs(t/2),o=Math.abs(e/2),s=1-r.curveFitting;return a+=E(a*s,r),o+=E(o*s,r),{increment:i,rx:a,ry:o}}function M(t,e,r,n){let[i,a]=P(n.increment,t,e,n.rx,n.ry,1,n.increment*O(.1,O(.4,1,r),r),r),o=N(i,null,r);if(!r.disableMultiStroke&&0!==r.roughness){let[i]=P(n.increment,t,e,n.rx,n.ry,1.5,0,r),a=N(i,null,r);o=o.concat(a)}return{estimatedPoints:a,opset:{type:"path",ops:o}}}function S(t,e,r,n,i,a,o,s,l){let c=Math.abs(r/2),u=Math.abs(n/2);c+=E(.01*c,l),u+=E(.01*u,l);let h=i,f=a;for(;h<0;)h+=2*Math.PI,f+=2*Math.PI;f-h>2*Math.PI&&(h=0,f=2*Math.PI);let p=Math.min(2*Math.PI/l.curveStepCount/2,(f-h)/2),d=I(p,t,e,c,u,h,f,1,l);if(!l.disableMultiStroke){let r=I(p,t,e,c,u,h,f,1.5,l);d.push(...r)}return o&&(s?d.push(...K(t,e,t+c*Math.cos(h),e+u*Math.sin(h),l),...K(t,e,t+c*Math.cos(f),e+u*Math.sin(f),l)):d.push({op:"lineTo",data:[t,e]},{op:"lineTo",data:[t+c*Math.cos(h),e+u*Math.sin(h)]})),{type:"path",ops:d}}function A(t,e){let r=y(m(g(t))),n=[],i=[0,0],a=[0,0];for(let{key:t,data:o}of r)switch(t){case"M":a=[o[0],o[1]],i=[o[0],o[1]];break;case"L":n.push(...K(a[0],a[1],o[0],o[1],e)),a=[o[0],o[1]];break;case"C":{let[t,r,i,s,l,c]=o;n.push(...function(t,e,r,n,i,a,o,s){let l=[],c=[s.maxRandomnessOffset||1,(s.maxRandomnessOffset||1)+.3],u=[0,0],h=s.disableMultiStroke?1:2,f=s.preserveVertices;for(let p=0;p<h;p++)0===p?l.push({op:"move",data:[o[0],o[1]]}):l.push({op:"move",data:[o[0]+(f?0:E(c[0],s)),o[1]+(f?0:E(c[0],s))]}),u=f?[i,a]:[i+E(c[p],s),a+E(c[p],s)],l.push({op:"bcurveTo",data:[t+E(c[p],s),e+E(c[p],s),r+E(c[p],s),n+E(c[p],s),u[0],u[1]]});return l}(t,r,i,s,l,c,a,e)),a=[l,c];break}case"Z":n.push(...K(a[0],a[1],i[0],i[1],e)),a=[i[0],i[1]]}return{type:"path",ops:n}}function T(t,e){let r=[];for(let n of t)if(n.length){let t=e.maxRandomnessOffset||0,i=n.length;if(i>2){r.push({op:"move",data:[n[0][0]+E(t,e),n[0][1]+E(t,e)]});for(let a=1;a<i;a++)r.push({op:"lineTo",data:[n[a][0]+E(t,e),n[a][1]+E(t,e)]})}}return{type:"fillPath",ops:r}}function $(t,e){return(function(t,e){let r=t.fillStyle||"hachure";if(!f[r])switch(r){case"zigzag":f[r]||(f[r]=new s(e));break;case"cross-hatch":f[r]||(f[r]=new l(e));break;case"dots":f[r]||(f[r]=new c(e));break;case"dashed":f[r]||(f[r]=new u(e));break;case"zigzag-line":f[r]||(f[r]=new h(e));break;default:f[r="hachure"]||(f[r]=new a(e))}return f[r]})(e,x).fillPolygons(t,e)}function C(t){let e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function L(t){return t.randomizer||(t.randomizer=new p(t.seed||0)),t.randomizer.next()}function O(t,e,r,n=1){return r.roughness*n*(L(r)*(e-t)+t)}function E(t,e,r=1){return O(-t,t,e,r)}function K(t,e,r,n,i,a=!1){let o=a?i.disableMultiStrokeFill:i.disableMultiStroke,s=R(t,e,r,n,i,!0,!1);if(o)return s;let l=R(t,e,r,n,i,!0,!0);return s.concat(l)}function R(t,e,r,n,i,a,o){let s=Math.pow(t-r,2)+Math.pow(e-n,2),l=Math.sqrt(s),c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let u=i.maxRandomnessOffset||0;u*u*100>s&&(u=l/10);let h=u/2,f=.2+.2*L(i),p=i.bowing*i.maxRandomnessOffset*(n-e)/200,d=i.bowing*i.maxRandomnessOffset*(t-r)/200;p=E(p,i,c),d=E(d,i,c);let g=[],m=i.preserveVertices;return a&&(o?g.push({op:"move",data:[t+(m?0:E(h,i,c)),e+(m?0:E(h,i,c))]}):g.push({op:"move",data:[t+(m?0:E(u,i,c)),e+(m?0:E(u,i,c))]})),o?g.push({op:"bcurveTo",data:[p+t+(r-t)*f+E(h,i,c),d+e+(n-e)*f+E(h,i,c),p+t+2*(r-t)*f+E(h,i,c),d+e+2*(n-e)*f+E(h,i,c),r+(m?0:E(h,i,c)),n+(m?0:E(h,i,c))]}):g.push({op:"bcurveTo",data:[p+t+(r-t)*f+E(u,i,c),d+e+(n-e)*f+E(u,i,c),p+t+2*(r-t)*f+E(u,i,c),d+e+2*(n-e)*f+E(u,i,c),r+(m?0:E(u,i,c)),n+(m?0:E(u,i,c))]}),g}function D(t,e,r){if(!t.length)return[];let n=[];n.push([t[0][0]+E(e,r),t[0][1]+E(e,r)]),n.push([t[0][0]+E(e,r),t[0][1]+E(e,r)]);for(let i=1;i<t.length;i++)n.push([t[i][0]+E(e,r),t[i][1]+E(e,r)]),i===t.length-1&&n.push([t[i][0]+E(e,r),t[i][1]+E(e,r)]);return N(n,null,r)}function N(t,e,r){let n=t.length,i=[];if(n>3){let a=[],o=1-r.curveTightness;i.push({op:"move",data:[t[1][0],t[1][1]]});for(let e=1;e+2<n;e++){let r=t[e];a[0]=[r[0],r[1]],a[1]=[r[0]+(o*t[e+1][0]-o*t[e-1][0])/6,r[1]+(o*t[e+1][1]-o*t[e-1][1])/6],a[2]=[t[e+1][0]+(o*t[e][0]-o*t[e+2][0])/6,t[e+1][1]+(o*t[e][1]-o*t[e+2][1])/6],a[3]=[t[e+1][0],t[e+1][1]],i.push({op:"bcurveTo",data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[3][1]]})}if(e&&2===e.length){let t=r.maxRandomnessOffset;i.push({op:"lineTo",data:[e[0]+E(t,r),e[1]+E(t,r)]})}}else 3===n?(i.push({op:"move",data:[t[1][0],t[1][1]]}),i.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):2===n&&i.push(...R(t[0][0],t[0][1],t[1][0],t[1][1],r,!0,!0));return i}function P(t,e,r,n,i,a,o,s){let l=[],c=[];if(0===s.roughness){t/=4,c.push([e+n*Math.cos(-t),r+i*Math.sin(-t)]);for(let a=0;a<=2*Math.PI;a+=t){let t=[e+n*Math.cos(a),r+i*Math.sin(a)];l.push(t),c.push(t)}c.push([e+ +n,r+0*i]),c.push([e+n*Math.cos(t),r+i*Math.sin(t)])}else{let u=E(.5,s)-Math.PI/2;c.push([E(a,s)+e+.9*n*Math.cos(u-t),E(a,s)+r+.9*i*Math.sin(u-t)]);let h=2*Math.PI+u-.01;for(let o=u;o<h;o+=t){let t=[E(a,s)+e+n*Math.cos(o),E(a,s)+r+i*Math.sin(o)];l.push(t),c.push(t)}c.push([E(a,s)+e+n*Math.cos(u+2*Math.PI+.5*o),E(a,s)+r+i*Math.sin(u+2*Math.PI+.5*o)]),c.push([E(a,s)+e+.98*n*Math.cos(u+o),E(a,s)+r+.98*i*Math.sin(u+o)]),c.push([E(a,s)+e+.9*n*Math.cos(u+.5*o),E(a,s)+r+.9*i*Math.sin(u+.5*o)])}return[c,l]}function I(t,e,r,n,i,a,o,s,l){let c=a+E(.1,l),u=[];u.push([E(s,l)+e+.9*n*Math.cos(c-t),E(s,l)+r+.9*i*Math.sin(c-t)]);for(let a=c;a<=o;a+=t)u.push([E(s,l)+e+n*Math.cos(a),E(s,l)+r+i*Math.sin(a)]);return u.push([e+n*Math.cos(o),r+i*Math.sin(o)]),u.push([e+n*Math.cos(o),r+i*Math.sin(o)]),N(u,null,l)}function j(t,e=0){let r=t.length;if(r<3)throw Error("A curve must have at least three points.");let n=[];if(3===r)n.push([...t[0]],[...t[1]],[...t[2]],[...t[2]]);else{let r=[];r.push(t[0],t[0]);for(let e=1;e<t.length;e++)r.push(t[e]),e===t.length-1&&r.push(t[e]);let i=[],a=1-e;n.push([...r[0]]);for(let t=1;t+2<r.length;t++){let e=r[t];i[0]=[e[0],e[1]],i[1]=[e[0]+(a*r[t+1][0]-a*r[t-1][0])/6,e[1]+(a*r[t+1][1]-a*r[t-1][1])/6],i[2]=[r[t+1][0]+(a*r[t][0]-a*r[t+2][0])/6,r[t+1][1]+(a*r[t][1]-a*r[t+2][1])/6],i[3]=[r[t+1][0],r[t+1][1]],n.push(i[1],i[2],i[3])}}return n}function U(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function F(t,e,r){return[t[0]+(e[0]-t[0])*r,t[1]+(e[1]-t[1])*r]}function z(t,e,r,n,i){let a=i||[],o=t[e],s=t[r-1],l=0,c=1;for(let n=e+1;n<r-1;++n){let e=function(t,e,r){let n=U(e,r);if(0===n)return U(t,e);let i=((t[0]-e[0])*(r[0]-e[0])+(t[1]-e[1])*(r[1]-e[1]))/n;return U(t,F(e,r,i=Math.max(0,Math.min(1,i))))}(t[n],o,s);e>l&&(l=e,c=n)}return Math.sqrt(l)>n?(z(t,e,c+1,n,a),z(t,c,r,n,a)):(a.length||a.push(o),a.push(s)),a}function B(t,e=.15,r){let n=[],i=(t.length-1)/3;for(let r=0;r<i;r++)!function t(e,r,n,i){let a,o,s,l,c,u,h,f,p=i||[];if(a=e[r+0],o=e[r+1],s=e[r+2],l=e[r+3],c=3*o[0]-2*a[0]-l[0],c*=c,u=3*o[1]-2*a[1]-l[1],u*=u,h=3*s[0]-2*l[0]-a[0],h*=h,f=3*s[1]-2*l[1]-a[1],f*=f,c<h&&(c=h),u<f&&(u=f),c+u<n){let t=e[r+0];p.length?Math.sqrt(U(p[p.length-1],t))>1&&p.push(t):p.push(t),p.push(e[r+3])}else{let i=e[r+0],a=e[r+1],o=e[r+2],s=e[r+3],l=F(i,a,.5),c=F(a,o,.5),u=F(o,s,.5),h=F(l,c,.5),f=F(c,u,.5),d=F(h,f,.5);t([i,l,h,d],0,n,p),t([d,f,u,s],0,n,p)}return p}(t,3*r,e,n);return r&&r>0?z(n,0,n.length,r):n}let Y="none";class H{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(0x80000000*Math.random())}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,e,r){return{shape:t,sets:e||[],options:r||this.defaultOptions}}line(t,e,r,n,i){let a=this._o(i);return this._d("line",[k(t,e,r,n,a)],a)}rectangle(t,e,r,n,i){var a,o,s,l;let c=this._o(i),u=[],h=w([[a=t,o=e],[a+(s=r),o],[a+s,o+(l=n)],[a,o+l]],!0,c);if(c.fill){let i=[[t,e],[t+r,e],[t+r,e+n],[t,e+n]];"solid"===c.fillStyle?u.push(T([i],c)):u.push($([i],c))}return c.stroke!==Y&&u.push(h),this._d("rectangle",u,c)}ellipse(t,e,r,n,i){let a=this._o(i),o=[],s=v(r,n,a),l=M(t,e,a,s);if(a.fill)if("solid"===a.fillStyle){let r=M(t,e,a,s).opset;r.type="fillPath",o.push(r)}else o.push($([l.estimatedPoints],a));return a.stroke!==Y&&o.push(l.opset),this._d("ellipse",o,a)}circle(t,e,r,n){let i=this.ellipse(t,e,r,r,n);return i.shape="circle",i}linearPath(t,e){let r=this._o(e);return this._d("linearPath",[w(t,!1,r)],r)}arc(t,e,r,n,i,a,o=!1,s){let l=this._o(s),c=[],u=S(t,e,r,n,i,a,o,!0,l);if(o&&l.fill)if("solid"===l.fillStyle){let o=Object.assign({},l);o.disableMultiStroke=!0;let s=S(t,e,r,n,i,a,!0,!1,o);s.type="fillPath",c.push(s)}else c.push(function(t,e,r,n,i,a,o){let s=Math.abs(r/2),l=Math.abs(n/2);s+=E(.01*s,o),l+=E(.01*l,o);let c=i,u=a;for(;c<0;)c+=2*Math.PI,u+=2*Math.PI;u-c>2*Math.PI&&(c=0,u=2*Math.PI);let h=(u-c)/o.curveStepCount,f=[];for(let r=c;r<=u;r+=h)f.push([t+s*Math.cos(r),e+l*Math.sin(r)]);return f.push([t+s*Math.cos(u),e+l*Math.sin(u)]),f.push([t,e]),$([f],o)}(t,e,r,n,i,a,l));return l.stroke!==Y&&c.push(u),this._d("arc",c,l)}curve(t,e){let r=this._o(e),n=[],i=_(t,r);if(r.fill&&r.fill!==Y)if("solid"===r.fillStyle){let e=_(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else{let e=[];if(t.length)for(let n of"number"==typeof t[0][0]?[t]:t)n.length<3?e.push(...n):3===n.length?e.push(...B(j([n[0],n[0],n[1],n[2]]),10,(1+r.roughness)/2)):e.push(...B(j(n),10,(1+r.roughness)/2));e.length&&n.push($([e],r))}return r.stroke!==Y&&n.push(i),this._d("curve",n,r)}polygon(t,e){let r=this._o(e),n=[],i=w(t,!0,r);return r.fill&&("solid"===r.fillStyle?n.push(T([t],r)):n.push($([t],r))),r.stroke!==Y&&n.push(i),this._d("polygon",n,r)}path(t,e){let r=this._o(e),n=[];if(!t)return this._d("path",n,r);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let i=r.fill&&"transparent"!==r.fill&&r.fill!==Y,a=r.stroke!==Y,o=!!(r.simplification&&r.simplification<1),s=function(t,e){let r=y(m(g(t))),n=[],i=[],a=[0,0],o=[],s=()=>{o.length>=4&&i.push(...B(o,1)),o=[]},l=()=>{s(),i.length&&(n.push(i),i=[])};for(let{key:t,data:e}of r)switch(t){case"M":l(),a=[e[0],e[1]],i.push(a);break;case"L":s(),i.push([e[0],e[1]]);break;case"C":if(!o.length){let t=i.length?i[i.length-1]:a;o.push([t[0],t[1]])}o.push([e[0],e[1]]),o.push([e[2],e[3]]),o.push([e[4],e[5]]);break;case"Z":s(),i.push([a[0],a[1]])}if(l(),!e)return n;let c=[];for(let t of n){let r=z(t,0,t.length,e);r.length&&c.push(r)}return c}(t,o?4-4*(r.simplification||1):(1+r.roughness)/2),l=A(t,r);if(i)if("solid"===r.fillStyle)if(1===s.length){let e=A(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else n.push(T(s,r));else n.push($(s,r));return a&&(o?s.forEach(t=>{n.push(w(t,!1,r))}):n.push(l)),this._d("path",n,r)}opsToPath(t,e){let r="";for(let n of t.ops){let t="number"==typeof e&&e>=0?n.data.map(t=>+t.toFixed(e)):n.data;switch(n.op){case"move":r+=`M${t[0]} ${t[1]} `;break;case"bcurveTo":r+=`C${t[0]} ${t[1]}, ${t[2]} ${t[3]}, ${t[4]} ${t[5]} `;break;case"lineTo":r+=`L${t[0]} ${t[1]} `}}return r.trim()}toPaths(t){let e=t.sets||[],r=t.options||this.defaultOptions,n=[];for(let t of e){let e=null;switch(t.type){case"path":e={d:this.opsToPath(t),stroke:r.stroke,strokeWidth:r.strokeWidth,fill:Y};break;case"fillPath":e={d:this.opsToPath(t),stroke:Y,strokeWidth:0,fill:r.fill||Y};break;case"fillSketch":e=this.fillSketch(t,r)}e&&n.push(e)}return n}fillSketch(t,e){let r=e.fillWeight;return r<0&&(r=e.strokeWidth/2),{d:this.opsToPath(t),stroke:e.fill||Y,strokeWidth:r,fill:Y}}_mergedShape(t){return t.filter((t,e)=>0===e||"move"!==t.op)}}class q{constructor(t,e){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new H(e)}draw(t){let e=t.sets||[],r=t.options||this.getDefaultOptions(),n=this.ctx,i=t.options.fixedDecimalPlaceDigits;for(let a of e)switch(a.type){case"path":n.save(),n.strokeStyle="none"===r.stroke?"transparent":r.stroke,n.lineWidth=r.strokeWidth,r.strokeLineDash&&n.setLineDash(r.strokeLineDash),r.strokeLineDashOffset&&(n.lineDashOffset=r.strokeLineDashOffset),this._drawToContext(n,a,i),n.restore();break;case"fillPath":{n.save(),n.fillStyle=r.fill||"";let e="curve"===t.shape||"polygon"===t.shape||"path"===t.shape?"evenodd":"nonzero";this._drawToContext(n,a,i,e),n.restore();break}case"fillSketch":this.fillSketch(n,a,r)}}fillSketch(t,e,r){let n=r.fillWeight;n<0&&(n=r.strokeWidth/2),t.save(),r.fillLineDash&&t.setLineDash(r.fillLineDash),r.fillLineDashOffset&&(t.lineDashOffset=r.fillLineDashOffset),t.strokeStyle=r.fill||"",t.lineWidth=n,this._drawToContext(t,e,r.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,e,r,n="nonzero"){for(let n of(t.beginPath(),e.ops)){let e="number"==typeof r&&r>=0?n.data.map(t=>+t.toFixed(r)):n.data;switch(n.op){case"move":t.moveTo(e[0],e[1]);break;case"bcurveTo":t.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5]);break;case"lineTo":t.lineTo(e[0],e[1])}}"fillPath"===e.type?t.fill(n):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,e,r,n,i){let a=this.gen.line(t,e,r,n,i);return this.draw(a),a}rectangle(t,e,r,n,i){let a=this.gen.rectangle(t,e,r,n,i);return this.draw(a),a}ellipse(t,e,r,n,i){let a=this.gen.ellipse(t,e,r,n,i);return this.draw(a),a}circle(t,e,r,n){let i=this.gen.circle(t,e,r,n);return this.draw(i),i}linearPath(t,e){let r=this.gen.linearPath(t,e);return this.draw(r),r}polygon(t,e){let r=this.gen.polygon(t,e);return this.draw(r),r}arc(t,e,r,n,i,a,o=!1,s){let l=this.gen.arc(t,e,r,n,i,a,o,s);return this.draw(l),l}curve(t,e){let r=this.gen.curve(t,e);return this.draw(r),r}path(t,e){let r=this.gen.path(t,e);return this.draw(r),r}}let W="http://www.w3.org/2000/svg";class X{constructor(t,e){this.svg=t,this.gen=new H(e)}draw(t){let e=t.sets||[],r=t.options||this.getDefaultOptions(),n=this.svg.ownerDocument||window.document,i=n.createElementNS(W,"g"),a=t.options.fixedDecimalPlaceDigits;for(let o of e){let e=null;switch(o.type){case"path":(e=n.createElementNS(W,"path")).setAttribute("d",this.opsToPath(o,a)),e.setAttribute("stroke",r.stroke),e.setAttribute("stroke-width",r.strokeWidth+""),e.setAttribute("fill","none"),r.strokeLineDash&&e.setAttribute("stroke-dasharray",r.strokeLineDash.join(" ").trim()),r.strokeLineDashOffset&&e.setAttribute("stroke-dashoffset",`${r.strokeLineDashOffset}`);break;case"fillPath":(e=n.createElementNS(W,"path")).setAttribute("d",this.opsToPath(o,a)),e.setAttribute("stroke","none"),e.setAttribute("stroke-width","0"),e.setAttribute("fill",r.fill||""),"curve"!==t.shape&&"polygon"!==t.shape||e.setAttribute("fill-rule","evenodd");break;case"fillSketch":e=this.fillSketch(n,o,r)}e&&i.appendChild(e)}return i}fillSketch(t,e,r){let n=r.fillWeight;n<0&&(n=r.strokeWidth/2);let i=t.createElementNS(W,"path");return i.setAttribute("d",this.opsToPath(e,r.fixedDecimalPlaceDigits)),i.setAttribute("stroke",r.fill||""),i.setAttribute("stroke-width",n+""),i.setAttribute("fill","none"),r.fillLineDash&&i.setAttribute("stroke-dasharray",r.fillLineDash.join(" ").trim()),r.fillLineDashOffset&&i.setAttribute("stroke-dashoffset",`${r.fillLineDashOffset}`),i}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,e){return this.gen.opsToPath(t,e)}line(t,e,r,n,i){let a=this.gen.line(t,e,r,n,i);return this.draw(a)}rectangle(t,e,r,n,i){let a=this.gen.rectangle(t,e,r,n,i);return this.draw(a)}ellipse(t,e,r,n,i){let a=this.gen.ellipse(t,e,r,n,i);return this.draw(a)}circle(t,e,r,n){let i=this.gen.circle(t,e,r,n);return this.draw(i)}linearPath(t,e){let r=this.gen.linearPath(t,e);return this.draw(r)}polygon(t,e){let r=this.gen.polygon(t,e);return this.draw(r)}arc(t,e,r,n,i,a,o=!1,s){let l=this.gen.arc(t,e,r,n,i,a,o,s);return this.draw(l)}curve(t,e){let r=this.gen.curve(t,e);return this.draw(r)}path(t,e){let r=this.gen.path(t,e);return this.draw(r)}}var G={canvas:(t,e)=>new q(t,e),svg:(t,e)=>new X(t,e),generator:t=>new H(t),newSeed:()=>H.newSeed()}},5218:(t,e,r)=>{"use strict";r.d(e,{H:()=>s,R:()=>o});var n=r(14528),i=r(26707),a={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},o={trace:(0,n.K)((...t)=>{},"trace"),debug:(0,n.K)((...t)=>{},"debug"),info:(0,n.K)((...t)=>{},"info"),warn:(0,n.K)((...t)=>{},"warn"),error:(0,n.K)((...t)=>{},"error"),fatal:(0,n.K)((...t)=>{},"fatal")},s=(0,n.K)(function(t="fatal"){let e=a.fatal;"string"==typeof t?t.toLowerCase()in a&&(e=a[t]):"number"==typeof t&&(e=t),o.trace=()=>{},o.debug=()=>{},o.info=()=>{},o.warn=()=>{},o.error=()=>{},o.fatal=()=>{},e<=a.fatal&&(o.fatal=console.error?console.error.bind(console,l("FATAL"),"color: orange"):console.log.bind(console,"\x1b[35m",l("FATAL"))),e<=a.error&&(o.error=console.error?console.error.bind(console,l("ERROR"),"color: orange"):console.log.bind(console,"\x1b[31m",l("ERROR"))),e<=a.warn&&(o.warn=console.warn?console.warn.bind(console,l("WARN"),"color: orange"):console.log.bind(console,"\x1b[33m",l("WARN"))),e<=a.info&&(o.info=console.info?console.info.bind(console,l("INFO"),"color: lightblue"):console.log.bind(console,"\x1b[34m",l("INFO"))),e<=a.debug&&(o.debug=console.debug?console.debug.bind(console,l("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",l("DEBUG"))),e<=a.trace&&(o.trace=console.debug?console.debug.bind(console,l("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",l("TRACE")))},"setLogLevel"),l=(0,n.K)(t=>{let e=i().format("ss.SSS");return`%c${e} : ${t} : `},"format")},6030:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(23792);let i=(t,e)=>(0,n.A)(t,"l",e)},7108:(t,e,r)=>{"use strict";function n(t){var e;return null!=t&&"function"!=typeof t&&Number.isSafeInteger(e=t.length)&&e>=0}r.d(e,{X:()=>n})},10637:(t,e,r)=>{"use strict";let n;function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}r.d(e,{A:()=>tx});let a=Object.entries,o=Object.setPrototypeOf,s=Object.isFrozen,l=Object.getPrototypeOf,c=Object.getOwnPropertyDescriptor,u=Object.freeze,h=Object.seal,f=Object.create,p="u">typeof Reflect&&Reflect,d=p.apply,g=p.construct;u||(u=function(t){return t}),h||(h=function(t){return t}),d||(d=function(t,e){for(var r=arguments.length,n=Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return t.apply(e,n)}),g||(g=function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return new t(...r)});let m=N(Array.prototype.forEach),y=N(Array.prototype.lastIndexOf),b=N(Array.prototype.pop),x=N(Array.prototype.push),k=N(Array.prototype.splice),w=Array.isArray,_=N(String.prototype.toLowerCase),v=N(String.prototype.toString),M=N(String.prototype.match),S=N(String.prototype.replace),A=N(String.prototype.indexOf),T=N(String.prototype.trim),$=N(Number.prototype.toString),C=N(Boolean.prototype.toString),L="u"<typeof BigInt?null:N(BigInt.prototype.toString),O="u"<typeof Symbol?null:N(Symbol.prototype.toString),E=N(Object.prototype.hasOwnProperty),K=N(Object.prototype.toString),R=N(RegExp.prototype.test),D=(tb=TypeError,function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return g(tb,e)});function N(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return d(t,e,n)}}function P(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_;if(o&&o(t,null),!w(e))return t;let n=e.length;for(;n--;){let i=e[n];if("string"==typeof i){let t=r(i);t!==i&&(s(e)||(e[n]=t),i=t)}t[i]=!0}return t}function I(t){let e=f(null);for(let n of a(t)){var r=function(t){if(Array.isArray(t))return t}(n)||function(t){var e=null==t?null:"u">typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,n,i,a,o=[],s=!0,l=!1;try{i=(e=e.call(t)).next,!1;for(;!(s=(r=i.call(e)).done)&&(o.push(r.value),2!==o.length);s=!0);}catch(t){l=!0,n=t}finally{try{if(!s&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(l)throw n}}return o}}(n)||function(t){if(t){if("string"==typeof t)return i(t,2);var e=({}).toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?i(t,2):void 0}}(n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();let a=r[0],o=r[1];E(t,a)&&(w(o)?e[a]=function(t){for(let e=0;e<t.length;e++)E(t,e)||(t[e]=null);return t}(o):o&&"object"==typeof o&&o.constructor===Object?e[a]=I(o):e[a]=o)}return e}function j(t,e){for(;null!==t;){let r=c(t,e);if(r){if(r.get)return N(r.get);if("function"==typeof r.value)return N(r.value)}t=l(t)}return function(){return null}}let U=u(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),F=u(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),z=u(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),B=u(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Y=u(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),H=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),q=u(["#text"]),W=u(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),X=u(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),G=u(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Z=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),V=h(/{{[\w\W]*|^[\w\W]*}}/g),Q=h(/<%[\w\W]*|^[\w\W]*%>/g),J=h(/\${[\w\W]*/g),tt=h(/^data-[\-\w.\u00B7-\uFFFF]+$/),te=h(/^aria-[\-\w]+$/),tr=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),tn=h(/^(?:\w+script|data):/i),ti=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ta=h(/^html$/i),to=h(/^[a-z][.\w]*(-[.\w]+)+$/i),ts=h(/<[/\w!]/g),tl=h(/<[/\w]/g),tc=h(/<\/no(script|embed|frames)/i),tu=h(/\/>/i),th=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],tf=u(P({},th)),tp=(n={},m(th,t=>{n[t]=h(RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),u(n)),td=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let r=null,n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(r=e.getAttribute(n));let i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},tg=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},tm=function(t,e,r,n){return E(t,e)&&w(t[e])?P(n.base?I(n.base):{},t[e],n.transform):r},ty=function(t,e,r){let n=E(t,e)?t[e]:void 0;return n&&"object"==typeof n?I(n):r()};var tb,tx=function t(){let e,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"u"<typeof window?null:window,i=e=>t(e);if(i.version="3.4.15",i.removed=[],!n||!n.document||9!==n.document.nodeType||!n.Element)return i.isSupported=!1,i;let o=n.document,s=o,l=s.currentScript;n.DocumentFragment;let c=n.HTMLTemplateElement,p=n.Node,d=n.Element,g=n.NodeFilter;void 0===n.NamedNodeMap&&(n.NamedNodeMap||n.MozNamedAttrMap),n.HTMLFormElement;let N=n.DOMParser,th=n.trustedTypes,tb=d.prototype,tx=j(tb,"cloneNode"),tk=j(tb,"remove"),tw=j(tb,"removeAttributeNode"),t_=j(tb,"nextSibling"),tv=j(tb,"childNodes"),tM=j(tb,"parentNode"),tS=j(tb,"shadowRoot"),tA=j(tb,"attributes"),tT=p&&p.prototype?j(p.prototype,"nodeType"):null,t$=p&&p.prototype?j(p.prototype,"nodeName"):null,tC=p&&p.prototype?j(p.prototype,"ownerDocument"):null,tL=function(t){return tT?tT(t):t.nodeType},tO=function(t){return t$?t$(t):t.nodeName};if("function"==typeof c){let t=o.createElement("template");t.content&&t.content.ownerDocument&&(o=t.content.ownerDocument)}let tE="",tK=!1,tR=0,tD=function(){if(tR>0)throw D('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},tN=function(t){tD(),tR++;try{return e.createHTML(t)}finally{tR--}},tP=function(t){tD(),tR++;try{return e.createScriptURL(t)}finally{tR--}},tI=o,tj=tI.implementation,tU=tI.createNodeIterator,tF=tI.createDocumentFragment,tz=tI.getElementsByTagName,tB=s.importNode,tY=tg();i.isSupported="function"==typeof a&&"function"==typeof tM&&tj&&void 0!==tj.createHTMLDocument;let tH=tr,tq=null,tW=P({},[...U,...F,...z,...Y,...q]),tX=null,tG=P({},[...W,...X,...G,...Z]),tZ=Object.seal(f(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),tV=null,tQ=null,tJ=Object.seal(f(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),t0=!0,t1=!0,t2=!1,t3=!0,t5=!1,t6=!0,t8=!1,t4=!1,t9=null,t7=null,et=!1,ee=!1,er=!1,en=!1,ei=!0,ea=!1,eo="user-content-",es=!0,el=!1,ec={},eu=null,eh=P({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),ef=null,ep=P({},["audio","video","img","source","image","track"]),ed=null,eg=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),em="http://www.w3.org/1998/Math/MathML",ey="http://www.w3.org/2000/svg",eb="http://www.w3.org/1999/xhtml",ex=eb,ek=!1,ew=null,e_=P({},[em,ey,eb],v),ev=u(["mi","mo","mn","ms","mtext"]),eM=P({},ev),eS=u(["annotation-xml"]),eA=P({},eS),eT=P({},["title","style","font","a","script"]),e$=null,eC=["application/xhtml+xml","text/html"],eL=null,eO=null,eE=o.createElement("form"),eK=function(t){return t instanceof RegExp||t instanceof Function},eR=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(eO&&eO===t)return;t&&"object"==typeof t||(t={}),t=I(t),eL="application/xhtml+xml"===(e$=-1===eC.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE)?v:_,tq=tm(t,"ALLOWED_TAGS",tW,{transform:eL}),tX=tm(t,"ALLOWED_ATTR",tG,{transform:eL}),ew=tm(t,"ALLOWED_NAMESPACES",e_,{transform:v}),ed=tm(t,"ADD_URI_SAFE_ATTR",eg,{transform:eL,base:eg}),ef=tm(t,"ADD_DATA_URI_TAGS",ep,{transform:eL,base:ep}),eu=tm(t,"FORBID_CONTENTS",eh,{transform:eL}),tV=tm(t,"FORBID_TAGS",I({}),{transform:eL}),tQ=tm(t,"FORBID_ATTR",I({}),{transform:eL}),ec=!!E(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?I(t.USE_PROFILES):t.USE_PROFILES),t0=!1!==t.ALLOW_ARIA_ATTR,t1=!1!==t.ALLOW_DATA_ATTR,t2=t.ALLOW_UNKNOWN_PROTOCOLS||!1,t3=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,t5=t.SAFE_FOR_TEMPLATES||!1,t6=!1!==t.SAFE_FOR_XML,t8=t.WHOLE_DOCUMENT||!1,ee=t.RETURN_DOM||!1,er=t.RETURN_DOM_FRAGMENT||!1,en=t.RETURN_TRUSTED_TYPE||!1,et=t.FORCE_BODY||!1,ei=!1!==t.SANITIZE_DOM,ea=t.SANITIZE_NAMED_PROPS||!1,es=!1!==t.KEEP_CONTENT,el=t.IN_PLACE||!1,tH=!function(t){try{return R(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?tr:t.ALLOWED_URI_REGEXP,ex="string"==typeof t.NAMESPACE?t.NAMESPACE:eb,eM=ty(t,"MATHML_TEXT_INTEGRATION_POINTS",()=>P({},ev)),eA=ty(t,"HTML_INTEGRATION_POINTS",()=>P({},eS));let n=ty(t,"CUSTOM_ELEMENT_HANDLING",()=>f(null));if(tZ=f(null),E(n,"tagNameCheck")&&eK(n.tagNameCheck)&&(tZ.tagNameCheck=n.tagNameCheck),E(n,"attributeNameCheck")&&eK(n.attributeNameCheck)&&(tZ.attributeNameCheck=n.attributeNameCheck),E(n,"allowCustomizedBuiltInElements")&&"boolean"==typeof n.allowCustomizedBuiltInElements&&(tZ.allowCustomizedBuiltInElements=n.allowCustomizedBuiltInElements),h(tZ),t5&&(t1=!1),er&&(ee=!0),ec&&(tq=P({},q),tX=f(null),!0===ec.html&&(P(tq,U),P(tX,W)),!0===ec.svg&&(P(tq,F),P(tX,X),P(tX,Z)),!0===ec.svgFilters&&(P(tq,z),P(tX,X),P(tX,Z)),!0===ec.mathMl&&(P(tq,Y),P(tX,G),P(tX,Z))),tJ.tagCheck=null,tJ.attributeCheck=null,E(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?tJ.tagCheck=t.ADD_TAGS:w(t.ADD_TAGS)&&(tq===tW&&(tq=I(tq)),P(tq,t.ADD_TAGS,eL))),E(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?tJ.attributeCheck=t.ADD_ATTR:w(t.ADD_ATTR)&&(tX===tG&&(tX=I(tX)),P(tX,t.ADD_ATTR,eL))),E(t,"ADD_FORBID_CONTENTS")&&w(t.ADD_FORBID_CONTENTS)&&(eu===eh&&(eu=I(eu)),P(eu,t.ADD_FORBID_CONTENTS,eL)),es&&(tq["#text"]=!0),t8&&P(tq,["html","head","body"]),tq.table&&(P(tq,["tbody"]),delete tV.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw D('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw D('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let r=e;e=t.TRUSTED_TYPES_POLICY;try{tE=tN("")}catch(t){throw e=r,t}}else null===t.TRUSTED_TYPES_POLICY?(e=void 0,tE=""):(void 0===e&&(tK||(r=td(th,l),tK=!0),e=r),e&&"string"==typeof tE&&(tE=tN("")));u&&u(t),eO=t},eD=P({},[...F,...z,...B]),eN=P({},[...Y,...H]),eP=function(t){var e,r,n;let i=tM(t);i&&i.tagName||(i={namespaceURI:ex,tagName:"template"});let a=_(t.tagName),o=_(i.tagName);return!!ew[t.namespaceURI]&&(t.namespaceURI===ey?(e=i).namespaceURI===eb?"svg"===a:e.namespaceURI===em?"svg"===a&&("annotation-xml"===o||eM[o]):!!eD[a]:t.namespaceURI===em?(r=i).namespaceURI===eb?"math"===a:r.namespaceURI===ey?"math"===a&&eA[o]:!!eN[a]:t.namespaceURI===eb?((n=i).namespaceURI!==ey||!!eA[o])&&(n.namespaceURI!==em||!!eM[o])&&!eN[a]&&(eT[a]||!eD[a]):"application/xhtml+xml"===e$&&!!ew[t.namespaceURI])},eI=function(t){x(i.removed,{element:t});try{tM(t).removeChild(t)}catch(e){if(tk(t),!tM(t))throw D("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ej=function(t,e,r){try{tw(t,e)}catch(e){try{t.removeAttribute(r)}catch(t){}}},eU=function(t){eB(t);let e=tv(t);if(e){let t=[];m(e,e=>{x(t,e)}),m(t,t=>{try{tk(t)}catch(t){}})}let r=tA(t);if(r)for(let e=r.length-1;e>=0;--e){let n=r[e],i=n&&n.name;"string"==typeof i&&ej(t,n,i)}},eF=function(t,e,r){if(!r)try{r=e.getAttributeNode(t)}catch(t){r=null}x(i.removed,{attribute:r||null,from:e});try{r?tw(e,r):e.removeAttribute(t)}catch(r){try{e.removeAttribute(t)}catch(t){}}if("is"===t)if(ee||er)try{eI(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},ez=function(t){let e=tA(t);if(e)for(let r=e.length-1;r>=0;--r){let n=e[r],i=n&&n.name;"string"!=typeof i||tX[eL(i)]||ej(t,n,i)}},eB=function(t){let e=[t];for(;e.length>0;){let t=e.pop();1===tL(t)&&ez(t);let r=tv(t);if(r)for(let t=r.length-1;t>=0;--t)e.push(r[t])}},eY=function(t,e){return!!t6&&("patchsrc"===t||"for"===t&&"label"!==e&&"output"!==e)},eH=function(t){if(!t6)return;let e=[t];for(;e.length>0;){let t=e.pop(),r=tL(t);if(7===r||8===r&&R(tl,t.data)){try{tk(t)}catch(t){}continue}if(1===r){let e=eL(tO(t));try{t.hasAttribute&&t.hasAttribute("patchsrc")&&t.removeAttribute("patchsrc"),t.hasAttribute&&t.hasAttribute("for")&&eY("for",e)&&t.removeAttribute("for")}catch(t){}}let n=tv(t);if(n)for(let t=n.length-1;t>=0;--t)e.push(n[t])}},eq=function(t){let r=null,n=null;if(et)t="<remove></remove>"+t;else{let e=M(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===e$&&ex===eb&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");let i=e?tN(t):t;if(ex===eb)try{r=new N().parseFromString(i,e$)}catch(t){}if(!r||!r.documentElement){r=tj.createDocument(ex,"template",null);try{r.documentElement.innerHTML=ek?tE:i}catch(t){}}let a=r.body||r.documentElement;return(t&&n&&a.insertBefore(o.createTextNode(n),a.childNodes[0]||null),ex===eb)?tz.call(r,t8?"html":"body")[0]:t8?r.documentElement:a},eW=function(t){let e=tC?tC(t):t.ownerDocument;return tU.call(e||t,t,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},eX=function(t){return t=S(t,V," "),t=S(t,Q," "),t=S(t,J," ")},eG=function(t){var e;t.normalize();let r=tC?tC(t):t.ownerDocument,n=tU.call(r||t,t,g.SHOW_TEXT|g.SHOW_COMMENT|g.SHOW_CDATA_SECTION|g.SHOW_PROCESSING_INSTRUCTION,null),i=n.nextNode();for(;i;)i.data=eX(i.data),i=n.nextNode();let a=null==(e=t.querySelectorAll)?void 0:e.call(t,"template");a&&m(a,t=>{eV(t.content)&&eG(t.content)})},eZ=function(t){let e=t$?t$(t):null;return"string"==typeof e&&"form"===eL(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==tA(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.removeAttributeNode||"function"!=typeof t.getAttributeNode||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==tT(t)||t.childNodes!==tv(t))},eV=function(t){if(!tT||"object"!=typeof t||null===t)return!1;try{return 11===tT(t)}catch(t){return!1}},eQ=function(t){if(!tT||"object"!=typeof t||null===t)return!1;try{return"number"==typeof tT(t)}catch(t){return!1}};function eJ(t,e,r){0!==t.length&&m(t,t=>{t.call(i,e,r,eO)})}let e0=function(t,e){if(t instanceof RegExp)return R(t,e);if(t instanceof Function){for(var r=arguments.length,n=Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return!!t(e,...n)}return!1},e1=function(t,e,r){if(!tV[e]&&e4(e)&&e0(tZ.tagNameCheck,e))return!1;if(es&&!eu[e]){let e=tM(t),n=tv(t);if(n&&e){let i=n.length;for(let a=i-1;a>=0;--a){let i=t===r?tx(n[a],!0):n[a];e.insertBefore(i,t_(t))}}}return eI(t),!0},e2=function(t,e,r,n){return 0===t.length?e:e===r||e===n?I(e):e},e3=function(t,e){return t!==e&&null===tM(t)&&(el&&eB(t),!0)},e5=function(t,e){if(eJ(tY.beforeSanitizeElements,t,null),e3(t,e))return!0;if(eZ(t))return eI(t),!0;let r=eL(tO(t));if(tq=e2(tY.uponSanitizeElement,tq,tW,t9),eJ(tY.uponSanitizeElement,t,{tagName:r,allowedTags:tq}),e3(t,e))return!0;if(t6&&t.hasChildNodes()&&!eQ(t.firstElementChild)&&R(ts,t.textContent)&&R(ts,t.innerHTML)||t6&&t.namespaceURI===eb&&tf[r]&&(eQ(t.firstElementChild)||"string"==typeof t.textContent&&R(tp[r],t.textContent))||7===t.nodeType||t6&&8===t.nodeType&&R(tl,t.data))return eI(t),!0;if(tV[r]||!(tJ.tagCheck instanceof Function&&tJ.tagCheck(r))&&!tq[r]){let n=e1(t,r,e);return!1===n&&eJ(tY.afterSanitizeElements,t,null),n}if(1===tL(t)&&!eP(t)||("noscript"===r||"noembed"===r||"noframes"===r)&&R(tc,t.innerHTML))return eI(t),!0;if(t5&&3===t.nodeType){let e=eX(t.textContent);t.textContent!==e&&(x(i.removed,{element:t.cloneNode()}),t.textContent=e)}return eJ(tY.afterSanitizeElements,t,null),!1},e6=function(t,e,r){if(tQ[e]||eY(e,t)||ei&&("id"===e||"name"===e)&&(r in o||r in eE))return!1;let n=tX[e]||tJ.attributeCheck instanceof Function&&tJ.attributeCheck(e,t);return!!(t1&&R(tt,e)||t0&&R(te,e))||(n?!(!(ed[e]||R(tH,S(r,ti,"")))&&("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==A(r,"data:")||!ef[t])&&(!t2||R(tn,S(r,ti,""))))||!r:e4(t)&&e0(tZ.tagNameCheck,t)&&e0(tZ.attributeNameCheck,e,t)||"is"===e&&tZ.allowCustomizedBuiltInElements&&e0(tZ.tagNameCheck,r))},e8=P({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),e4=function(t){return!e8[_(t)]&&R(to,t)},e9=function(t,r,n,i){if(e&&"object"==typeof th&&"function"==typeof th.getAttributeType&&!n)switch(th.getAttributeType(t,r)){case"TrustedHTML":return tN(i);case"TrustedScriptURL":return tP(i)}return i},e7=function(t,e,r,n){try{if(r?t.setAttributeNS(r,e,n):t.setAttribute(e,n),eZ(t))return eI(t),!1;return!0}catch(r){return eF(e,t),!1}},rt=function(t){eJ(tY.beforeSanitizeAttributes,t,null);let e=t.attributes;if(!e||eZ(t))return;let r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:tX=e2(tY.uponSanitizeAttribute,tX,tG,t7),forceKeepAttr:void 0},n=e.length,a=eL(t.nodeName);for(;n--;){let o=e[n],s=o.name,l=o.namespaceURI,c=o.value,u=eL(s),h="value"===s?c:T(c),f=!1;if(r.attrName=u,r.attrValue=h,r.keepAttr=!0,r.forceKeepAttr=void 0,eJ(tY.uponSanitizeAttribute,t,r),h=r.attrValue,ea&&("id"===u||"name"===u)&&0!==A(h,eo)&&(eF(s,t,o),h=eo+h,f=!0),t6&&R(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,h)||"attributename"===u&&M(h,"href")){eF(s,t,o);continue}if(!r.forceKeepAttr){if(!r.keepAttr||!t3&&R(tu,h)||(t5&&(h=eX(h)),!e6(a,u,h))){eF(s,t,o);continue}(h=e9(a,u,l,h))!==c&&e7(t,s,l,h)&&f&&b(i.removed)}}eJ(tY.afterSanitizeAttributes,t,null)},re=function(t){let e=null,r=eW(t);for(eJ(tY.beforeSanitizeShadowDOM,t,null);e=r.nextNode();)if(eJ(tY.uponSanitizeShadowNode,e,null),e5(e,t),rt(e),eV(e.content)&&re(e.content),1===tL(e)){let t=tS(e);eV(t)&&(rr(t),re(t))}eJ(tY.afterSanitizeShadowDOM,t,null)},rr=function(t){let e=[{node:t,shadow:null}];for(;e.length>0;){let t=e.pop();if(t.shadow){re(t.shadow);continue}let r=t.node,n=1===tL(r),i=tv(r);if(i)for(let t=i.length-1;t>=0;--t)e.push({node:i[t],shadow:null});if(n){let t=t$?t$(r):null;if("string"==typeof t&&"template"===eL(t)){let t=r.content;eV(t)&&e.push({node:t,shadow:null})}}if(n){let t=tS(r);eV(t)&&e.push({node:null,shadow:t},{node:t,shadow:null})}}};return i.sanitize=function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,a=null,o=null,l=null;if((ek=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!eQ(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return $(t);case"boolean":return C(t);case"bigint":return L?L(t):"0";case"symbol":return O?O(t):"Symbol()";case"undefined":default:return K(t);case"function":case"object":{if(null===t)return K(t);let e=j(t,"toString");if("function"==typeof e){let r=e(t);return"string"==typeof r?r:K(r)}return K(t)}}}(t)))throw D("dirty is not a string, aborting");if(!i.isSupported)return t;t4?(tq=t9,tX=t7):eR(r),(tY.uponSanitizeElement.length>0||tY.uponSanitizeAttribute.length>0)&&(tq=I(tq)),tY.uponSanitizeAttribute.length>0&&(tX=I(tX)),i.removed=[];let c=el&&"string"!=typeof t&&eQ(t);if(c){eH(t);let e=tO(t);if("string"==typeof e){let r=eL(e);if(!tq[r]||tV[r])throw eU(t),D("root node is forbidden and cannot be sanitized in-place")}if(eZ(t))throw eU(t),D("root node is clobbered and cannot be sanitized in-place");try{rr(t)}catch(e){throw eU(t),e}}else if(eQ(t))1===(a=(n=eq("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?n=a:n.appendChild(a),rr(n);else{if(!ee&&!t5&&!t8&&-1===t.indexOf("<"))return e&&en?tN(t):t;if(!(n=eq(t)))return ee?null:en?tE:""}n&&et&&eI(n.firstChild);let u=c?t:n;try{let t=eW(u);for(;o=t.nextNode();)e5(o,u),rt(o),eV(o.content)&&re(o.content)}catch(e){throw c&&(eU(t),m(i.removed,t=>{t.element&&eB(t.element)})),e}if(c)return m(i.removed,t=>{t.element&&eB(t.element)}),t5&&eG(t),t;if(ee){if(t5&&eG(n),er)for(l=tF.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(tX.shadowroot||tX.shadowrootmode)&&(l=tB.call(s,l,!0)),l}let h=t8?n.outerHTML:n.innerHTML;return t8&&tq["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&R(ta,n.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+h),t5&&(h=eX(h)),e&&en?tN(h):h},i.setConfig=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};eR(t),t4=!0,t9=tq,t7=tX},i.clearConfig=function(){eO=null,t4=!1,t9=null,t7=null,e=r,tE=""},i.isValidAttribute=function(t,e,r){return eO||eR({}),e6(eL(t),eL(e),r)},i.addHook=function(t,e){"function"!=typeof e||E(tY,t)&&x(tY[t],e)},i.removeHook=function(t,e){if(E(tY,t)){if(void 0!==e){let r=y(tY[t],e);return -1===r?void 0:k(tY[t],r,1)[0]}return b(tY[t])}},i.removeHooks=function(t){E(tY,t)&&(tY[t]=[])},i.removeAllHooks=function(){tY=tg()},i}()},13080:(t,e,r)=>{"use strict";r.d(e,{F:()=>i});var n=r(14528),i=(0,n.K)((t,e)=>{let{theme:r,themeVariables:i}=e,{useGradient:a,gradientStart:o,gradientStop:s}=i??{},l=t.attr("id"),c=r?.includes("dark")?"#FFFFFF":"#000000",u=(0,n.K)((e,r,n)=>t.append("defs").append("filter").attr("id",e).attr("height",r).attr("width",r).append("feDropShadow").attr("dx",n).attr("dy",n).attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",c),"dropShadow");if(u(`${l}-drop-shadow`,"130%","4"),u(`${l}-drop-shadow-small`,"150%","2"),!a)return;let h=t.append("linearGradient").attr("id",`${l}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");h.append("svg:stop").attr("offset","0%").attr("stop-color",o).attr("stop-opacity",1),h.append("svg:stop").attr("offset","100%").attr("stop-color",s).attr("stop-opacity",1)},"insertLookDefs")},14528:(t,e,r)=>{"use strict";r.d(e,{K:()=>i,V:()=>a});var n=Object.defineProperty,i=(t,e)=>n(t,"name",{value:e,configurable:!0}),a=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})}},18395:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0,e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,e.htmlCtrlEntityRegex=/&(newline|tab);/gi,e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,e.urlSchemeRegex=/^.+(:|:)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[".","/"],e.BLANK_URL="about:blank"},19519:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});let n={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{let e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?t+(e-t)*6*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t,hsl2rgb:({h:t,s:e,l:r},i)=>{if(!e)return 2.55*r;t/=360,e/=100;let a=(r/=100)<.5?r*(1+e):r+e-r*e,o=2*r-a;switch(i){case"r":return 255*n.hue2rgb(o,a,t+1/3);case"g":return 255*n.hue2rgb(o,a,t);case"b":return 255*n.hue2rgb(o,a,t-1/3)}},rgb2hsl:({r:t,g:e,b:r},n)=>{let i=Math.max(t/=255,e/=255,r/=255),a=Math.min(t,e,r),o=(i+a)/2;if("l"===n)return 100*o;if(i===a)return 0;let s=i-a;if("s"===n)return 100*(o>.5?s/(2-i-a):s/(i+a));switch(i){case t:return((e-r)/s+6*(e<r))*60;case e:return((r-t)/s+2)*60;case r:return((t-e)/s+4)*60;default:return -1}}},i={channel:n,lang:{clamp:(t,e,r)=>e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(1e10*t)/1e10},unit:{dec2hex:t=>{let e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}}}},23792:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(19519),i=r(62079);let a=(t,e,r)=>{let a=i.A.parse(t),o=a[e],s=n.A.channel.clamp[e](o+r);return o!==s&&(a[e]=s),i.A.stringify(a)}},26707:function(t){t.exports=function(){"use strict";var t="millisecond",e="second",r="minute",n="hour",i="week",a="month",o="quarter",s="year",l="date",c="Invalid Date",u=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},p="en",d={};d[p]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}};var g="$isDayjsObject",m=function(t){return t instanceof k||!(!t||!t[g])},y=function t(e,r,n){var i;if(!e)return p;if("string"==typeof e){var a=e.toLowerCase();d[a]&&(i=a),r&&(d[a]=r,i=a);var o=e.split("-");if(!i&&o.length>1)return t(o[0])}else{var s=e.name;d[s]=e,i=s}return!n&&i&&(p=i),i||!n&&p},b=function(t,e){if(m(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new k(r)},x={s:f,z:function(t){var e=-t.utcOffset(),r=Math.abs(e);return(e<=0?"+":"-")+f(Math.floor(r/60),2,"0")+":"+f(r%60,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),i=e.clone().add(n,a),o=r-i<0,s=e.clone().add(n+(o?-1:1),a);return+(-(n+(r-i)/(o?i-s:s-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(c){return({M:a,y:s,w:i,d:"day",D:l,h:n,m:r,s:e,ms:t,Q:o})[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}};x.l=y,x.i=m,x.w=function(t,e){return b(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var k=function(){function f(t){this.$L=y(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[g]=!0}var p=f.prototype;return p.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(x.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(u);if(n){var i=n[2]-1||0,a=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)}}return new Date(e)}(t),this.init()},p.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},p.$utils=function(){return x},p.isValid=function(){return this.$d.toString()!==c},p.isSame=function(t,e){var r=b(t);return this.startOf(e)<=r&&r<=this.endOf(e)},p.isAfter=function(t,e){return b(t)<this.startOf(e)},p.isBefore=function(t,e){return this.endOf(e)<b(t)},p.$g=function(t,e,r){return x.u(t)?this[e]:this.set(r,t)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(t,o){var c=this,u=!!x.u(o)||o,h=x.p(t),f=function(t,e){var r=x.w(c.$u?Date.UTC(c.$y,e,t):new Date(c.$y,e,t),c);return u?r:r.endOf("day")},p=function(t,e){return x.w(c.toDate()[t].apply(c.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(e)),c)},d=this.$W,g=this.$M,m=this.$D,y="set"+(this.$u?"UTC":"");switch(h){case s:return u?f(1,0):f(31,11);case a:return u?f(1,g):f(0,g+1);case i:var b=this.$locale().weekStart||0,k=(d<b?d+7:d)-b;return f(u?m-k:m+(6-k),g);case"day":case l:return p(y+"Hours",0);case n:return p(y+"Minutes",1);case r:return p(y+"Seconds",2);case e:return p(y+"Milliseconds",3);default:return this.clone()}},p.endOf=function(t){return this.startOf(t,!1)},p.$set=function(i,o){var c,u=x.p(i),h="set"+(this.$u?"UTC":""),f=((c={}).day=h+"Date",c[l]=h+"Date",c[a]=h+"Month",c[s]=h+"FullYear",c[n]=h+"Hours",c[r]=h+"Minutes",c[e]=h+"Seconds",c[t]=h+"Milliseconds",c)[u],p="day"===u?this.$D+(o-this.$W):o;if(u===a||u===s){var d=this.clone().set(l,1);d.$d[f](p),d.init(),this.$d=d.set(l,Math.min(this.$D,d.daysInMonth())).$d}else f&&this.$d[f](p);return this.init(),this},p.set=function(t,e){return this.clone().$set(t,e)},p.get=function(t){return this[x.p(t)]()},p.add=function(t,o){var l,c=this;t=Number(t);var u=x.p(o),h=function(e){var r=b(c);return x.w(r.date(r.date()+Math.round(e*t)),c)};if(u===a)return this.set(a,this.$M+t);if(u===s)return this.set(s,this.$y+t);if("day"===u)return h(1);if(u===i)return h(7);var f=((l={})[r]=6e4,l[n]=36e5,l[e]=1e3,l)[u]||1,p=this.$d.getTime()+t*f;return x.w(p,this)},p.subtract=function(t,e){return this.add(-1*t,e)},p.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||c;var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=x.z(this),a=this.$H,o=this.$m,s=this.$M,l=r.weekdays,u=r.months,f=r.meridiem,p=function(t,r,i,a){return t&&(t[r]||t(e,n))||i[r].slice(0,a)},d=function(t){return x.s(a%12||12,t,"0")},g=f||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(h,function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return x.s(e.$y,4,"0");case"M":return s+1;case"MM":return x.s(s+1,2,"0");case"MMM":return p(r.monthsShort,s,u,3);case"MMMM":return p(u,s);case"D":return e.$D;case"DD":return x.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return p(r.weekdaysMin,e.$W,l,2);case"ddd":return p(r.weekdaysShort,e.$W,l,3);case"dddd":return l[e.$W];case"H":return String(a);case"HH":return x.s(a,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return g(a,o,!0);case"A":return g(a,o,!1);case"m":return String(o);case"mm":return x.s(o,2,"0");case"s":return String(e.$s);case"ss":return x.s(e.$s,2,"0");case"SSS":return x.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")})},p.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},p.diff=function(t,l,c){var u,h=this,f=x.p(l),p=b(t),d=(p.utcOffset()-this.utcOffset())*6e4,g=this-p,m=function(){return x.m(h,p)};switch(f){case s:u=m()/12;break;case a:u=m();break;case o:u=m()/3;break;case i:u=(g-d)/6048e5;break;case"day":u=(g-d)/864e5;break;case n:u=g/36e5;break;case r:u=g/6e4;break;case e:u=g/1e3;break;default:u=g}return c?u:x.a(u)},p.daysInMonth=function(){return this.endOf(a).$D},p.$locale=function(){return d[this.$L]},p.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=y(t,e,!0);return n&&(r.$L=n),r},p.clone=function(){return x.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},f}(),w=k.prototype;return b.prototype=w,[["$ms",t],["$s",e],["$m",r],["$H",n],["$W","day"],["$M",a],["$y",s],["$D",l]].forEach(function(t){w[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),b.extend=function(t,e){return t.$i||(t(e,k,b),t.$i=!0),b},b.locale=y,b.isDayjs=m,b.unix=function(t){return b(1e3*t)},b.en=d[p],b.Ls=d,b.p={},b}()},28996:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>r0});var n=r(62831),i=r(40350),a=r(33280);r(13080),r(64299),r(37064),r(83860),r(60833),r(99980),r(96137);var o=r(41329);r(94698);var s=r(58959),l=r(95631),c=r(5218),u=r(14528),h=r(95525),f=r(60830),p="comm",d="rule",g="decl",m="@keyframes",y="@layer",b=Math.abs,x=String.fromCharCode;function k(t,e,r){return t.replace(e,r)}function w(t,e){return 0|t.charCodeAt(e)}function _(t,e,r){return t.slice(e,r)}function v(t){return t.length}function M(t,e){return e.push(t),t}function S(t,e){for(var r="",n=0;n<t.length;n++)r+=e(t[n],n,t,e)||"";return r}function A(t,e,r,n){switch(t.type){case y:if(t.children.length)break;case"@import":case"@namespace":case g:return t.return=t.return||t.value;case p:return"";case m:return t.return=t.value+"{"+S(t.children,n)+"}";case d:if(!v(t.value=t.props.join(",")))return""}return v(r=S(t.children,n))?t.return=t.value+"{"+r+"}":""}var T=1,$=1,C=0,L=0,O=0,E="";function K(t,e,r,n,i,a,o,s){return{value:t,root:e,parent:r,type:n,props:i,children:a,line:T,column:$,length:o,return:"",siblings:s}}function R(){return O=L<C?w(E,L++):0,$++,10===O&&($=1,T++),O}function D(){return w(E,L)}function N(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function P(t){var e,r;return(e=L-1,r=function t(e){for(;R();)switch(O){case e:return L;case 34:case 39:34!==e&&39!==e&&t(O);break;case 40:41===e&&t(e);break;case 92:R()}return L}(91===t?t+2:40===t?t+1:t),_(E,e,r)).trim()}function I(t,e,r,n,i,a,o,s,l,c,u,h){for(var f=i-1,p=0===i?a:[""],g=p.length,m=0,y=0,x=0;m<n;++m)for(var w=0,v=_(t,f+1,f=b(y=o[m])),M=t;w<g;++w)(M=(y>0?p[w]+" "+v:k(v,/&\f/g,p[w])).trim())&&(l[x++]=M);return K(t,e,r,0===i?d:s,l,c,u,h)}function j(t,e,r,n,i){return K(t,e,r,g,_(t,0,n),_(t,n+1,-1),n,i)}var U=r(10637),F=r(42901),z=r(7108),B=r(48375),Y=r(90736);function H(t){if(null==t)return!0;if((0,z.X)(t))return("function"==typeof t.splice||"string"==typeof t||!!(0,F.P)(t)||!!(0,Y.i)(t)||!!(0,B.N)(t))&&0===t.length;if("object"==typeof t||"function"==typeof t){let e;if(t instanceof Map||t instanceof Set)return 0===t.size;let r=Object.keys(t);return(e=t?.constructor,t===("function"==typeof e?e.prototype:Object.prototype))?0===r.filter(t=>"constructor"!==t).length:0===r.length}return!0}var q={id:"c4",detector:(0,u.K)(t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),"detector"),loader:(0,u.K)(async()=>{let{diagram:t}=await r.e(2806).then(r.bind(r,2806));return{id:"c4",diagram:t}},"loader")},W="flowchart-v2",X=(0,u.K)(t=>/^\s*(graph|flowchart)/.test(t),"detector"),G=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(7443),r.e(3082)]).then(r.bind(r,83082));return{id:W,diagram:t}},"loader"),Z={id:W,detector:X,loader:G},V="agentflow",Q=(0,u.K)(t=>/^\s*agentflow-beta\b/.test(t),"detector"),J=(0,u.K)(async()=>{let{diagram:t}=await r.e(7913).then(r.bind(r,87913));return{id:V,diagram:t}},"loader"),tt={id:V,detector:Q,loader:J},te="swimlane",tr=(0,u.K)(t=>/^\s*swimlane-beta\b/.test(t),"detector"),tn=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(7443),r.e(5785)]).then(r.bind(r,65785));return{id:te,diagram:t}},"loader"),ti={id:te,detector:tr,loader:tn},ta={id:"er",detector:(0,u.K)(t=>/^\s*erDiagram/.test(t),"detector"),loader:(0,u.K)(async()=>{let{diagram:t}=await r.e(5432).then(r.bind(r,25432));return{id:"er",diagram:t}},"loader")},to="gitGraph",ts=(0,u.K)(t=>/^\s*gitGraph/.test(t),"detector"),tl=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(7835)]).then(r.bind(r,87835));return{id:to,diagram:t}},"loader"),tc={id:to,detector:ts,loader:tl},tu="gantt",th=(0,u.K)(t=>/^\s*gantt/.test(t),"detector"),tf=(0,u.K)(async()=>{let{diagram:t}=await r.e(3110).then(r.bind(r,93110));return{id:tu,diagram:t}},"loader"),tp={id:tu,detector:th,loader:tf},td="info",tg=(0,u.K)(t=>/^\s*info/.test(t),"detector"),tm=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(9516)]).then(r.bind(r,9516));return{id:td,diagram:t}},"loader"),ty={id:td,detector:tg,loader:tm},tb={id:"pie",detector:(0,u.K)(t=>/^\s*pie/.test(t),"detector"),loader:(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(9525)]).then(r.bind(r,49525));return{id:"pie",diagram:t}},"loader")},tx="quadrantChart",tk=(0,u.K)(t=>/^\s*quadrantChart/.test(t),"detector"),tw=(0,u.K)(async()=>{let{diagram:t}=await r.e(6848).then(r.bind(r,66848));return{id:tx,diagram:t}},"loader"),t_={id:tx,detector:tk,loader:tw},tv="xychart",tM=(0,u.K)(t=>/^\s*xychart(-beta)?/.test(t),"detector"),tS=(0,u.K)(async()=>{let{diagram:t}=await r.e(2817).then(r.bind(r,72817));return{id:tv,diagram:t}},"loader"),tA={id:tv,detector:tM,loader:tS},tT="requirement",t$=(0,u.K)(t=>/^\s*requirement(Diagram)?/.test(t),"detector"),tC=(0,u.K)(async()=>{let{diagram:t}=await r.e(9612).then(r.bind(r,19612));return{id:tT,diagram:t}},"loader"),tL={id:tT,detector:t$,loader:tC},tO="sequence",tE=(0,u.K)(t=>/^\s*sequenceDiagram/.test(t),"detector"),tK=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4888),r.e(1396)]).then(r.bind(r,72319));return{id:tO,diagram:t}},"loader"),tR={id:tO,detector:tE,loader:tK},tD="classDiagram",tN=(0,u.K)(t=>/^\s*classDiagram/.test(t),"detector"),tP=(0,u.K)(async()=>{let{diagram:t}=await r.e(4485).then(r.bind(r,84485));return{id:tD,diagram:t}},"loader"),tI={id:tD,detector:tN,loader:tP},tj="stateDiagram",tU=(0,u.K)(t=>/^\s*stateDiagram/.test(t),"detector"),tF=(0,u.K)(async()=>{let{diagram:t}=await r.e(4224).then(r.bind(r,24224));return{id:tj,diagram:t}},"loader"),tz={id:tj,detector:tU,loader:tF},tB="journey",tY=(0,u.K)(t=>/^\s*journey/.test(t),"detector"),tH=(0,u.K)(async()=>{let{diagram:t}=await r.e(3618).then(r.bind(r,33618));return{id:tB,diagram:t}},"loader"),tq={id:tB,detector:tY,loader:tH},tW={draw:(0,u.K)((t,e,r)=>{c.R.debug("rendering svg for syntax error\n");let i=(0,n.D)(e),a=i.append("g");i.attr("viewBox","0 0 2412 512"),(0,l.a$)(i,100,512,!0),a.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),a.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),a.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),a.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),a.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),a.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),a.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),a.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw")},tX={db:{},renderer:tW,parser:{parse:(0,u.K)(()=>{},"parse")}},tG="flowchart-elk",tZ=(0,u.K)((t,e={})=>!!/^\s*flowchart-elk/.test(t)&&(e.layout="elk",!0),"detector"),tV=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(7443),r.e(3082)]).then(r.bind(r,83082));return{id:tG,diagram:t}},"loader"),tQ={id:tG,detector:tZ,loader:tV},tJ="timeline",t0=(0,u.K)(t=>/^\s*timeline/.test(t),"detector"),t1=(0,u.K)(async()=>{let{diagram:t}=await r.e(8655).then(r.bind(r,78655));return{id:tJ,diagram:t}},"loader"),t2={id:tJ,detector:t0,loader:t1},t3="mindmap",t5=(0,u.K)(t=>/^\s*mindmap/.test(t),"detector"),t6=(0,u.K)(async()=>{let{diagram:t}=await r.e(2039).then(r.bind(r,62039));return{id:t3,diagram:t}},"loader"),t8={id:t3,detector:t5,loader:t6},t4="kanban",t9=(0,u.K)(t=>/^\s*kanban/.test(t),"detector"),t7=(0,u.K)(async()=>{let{diagram:t}=await r.e(898).then(r.bind(r,898));return{id:t4,diagram:t}},"loader"),et={id:t4,detector:t9,loader:t7},ee="sankey",er=(0,u.K)(t=>/^\s*sankey(-beta)?/.test(t),"detector"),en=(0,u.K)(async()=>{let{diagram:t}=await r.e(9371).then(r.bind(r,39371));return{id:ee,diagram:t}},"loader"),ei={id:ee,detector:er,loader:en},ea="packet",eo=(0,u.K)(t=>/^\s*packet(-beta)?/.test(t),"detector"),es=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(7992)]).then(r.bind(r,37992));return{id:ea,diagram:t}},"loader"),el={id:ea,detector:eo,loader:es},ec="radar",eu=(0,u.K)(t=>/^\s*radar-beta/.test(t),"detector"),eh=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(1840)]).then(r.bind(r,31840));return{id:ec,diagram:t}},"loader"),ef={id:ec,detector:eu,loader:eh},ep="block",ed=(0,u.K)(t=>/^\s*block(-beta)?/.test(t),"detector"),eg=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(5469),r.e(6390),r.e(1672)]).then(r.bind(r,11672));return{id:ep,diagram:t}},"loader"),em={id:ep,detector:ed,loader:eg},ey="treeView",eb=(0,u.K)(t=>/^\s*treeView-beta/.test(t),"detector"),ex=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(621)]).then(r.bind(r,40621));return{id:ey,diagram:t}},"loader"),ek={id:ey,detector:eb,loader:ex},ew="architecture",e_=(0,u.K)(t=>/^\s*architecture/.test(t),"detector"),ev=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(6278),r.e(4012),r.e(1776)]).then(r.bind(r,21776));return{id:ew,diagram:t}},"loader"),eM={id:ew,detector:e_,loader:ev},eS="eventmodeling",eA=(0,u.K)(t=>/^\s*eventmodeling/.test(t),"detector"),eT=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(8687)]).then(r.bind(r,8687));return{id:eS,diagram:t}},"loader"),e$={id:eS,detector:eA,loader:eT},eC="ishikawa",eL=(0,u.K)(t=>/^\s*ishikawa(-beta)?\b/i.test(t),"detector"),eO=(0,u.K)(async()=>{let{diagram:t}=await r.e(8259).then(r.bind(r,10640));return{id:eC,diagram:t}},"loader"),eE={id:eC,detector:eL,loader:eO},eK="venn",eR=(0,u.K)(t=>/^\s*venn-beta/.test(t),"detector"),eD=(0,u.K)(async()=>{let{diagram:t}=await r.e(7266).then(r.bind(r,57266));return{id:eK,diagram:t}},"loader"),eN={id:eK,detector:eR,loader:eD},eP="treemap",eI=(0,u.K)(t=>/^\s*treemap/.test(t),"detector"),ej=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(8057)]).then(r.bind(r,88057));return{id:eP,diagram:t}},"loader"),eU={id:eP,detector:eI,loader:ej},eF="usecase",ez=(0,u.K)(t=>/^\s*usecase-beta(?:\s|$)/.test(t),"detector"),eB=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(5469),r.e(4459),r.e(4109)]).then(r.bind(r,4109));return{id:eF,diagram:t}},"loader"),eY={id:eF,detector:ez,loader:eB},eH="wardley",eq=(0,u.K)(t=>/^\s*wardley-beta/i.test(t),"detector"),eW=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(6863)]).then(r.bind(r,86863));return{id:eH,diagram:t}},"loader"),eX={id:eH,detector:eq,loader:eW},eG="cynefin",eZ=(0,u.K)(t=>/^\s*cynefin-beta(?:[\s:]|$)/.test(t),"detector"),eV=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(8372)]).then(r.bind(r,68372));return{id:eG,diagram:t}},"loader"),eQ={id:eG,detector:eZ,loader:eV},eJ="railroad",e0=(0,u.K)(t=>/^\s*railroad-beta/i.test(t),"detector"),e1=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(7449),r.e(3711)]).then(r.bind(r,33711));return{id:eJ,diagram:t}},"loader"),e2={id:eJ,detector:e0,loader:e1},e3="railroadEbnf",e5=(0,u.K)(t=>/^\s*railroad-ebnf-beta/i.test(t),"detector"),e6=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(7449),r.e(2396)]).then(r.bind(r,52396));return{id:e3,diagram:t}},"loader"),e8={id:e3,detector:e5,loader:e6},e4="railroadAbnf",e9=(0,u.K)(t=>/^\s*railroad-abnf-beta/i.test(t),"detector"),e7=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(7449),r.e(2205)]).then(r.bind(r,42205));return{id:e4,diagram:t}},"loader"),rt={id:e4,detector:e9,loader:e7},re="railroadPeg",rr=(0,u.K)(t=>/^\s*railroad-peg-beta/i.test(t),"detector"),rn=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(7449),r.e(260)]).then(r.bind(r,20260));return{id:re,diagram:t}},"loader"),ri={id:re,detector:rr,loader:rn},ra=!1,ro=(0,u.K)(()=>{ra||(ra=!0,(0,l.Js)("error",tX,t=>"error"===t.toLowerCase().trim()),(0,l.Js)("---",{db:{clear:(0,u.K)(()=>{},"clear")},styles:{},renderer:{draw:(0,u.K)(()=>{},"draw")},parser:{parse:(0,u.K)(()=>{throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:(0,u.K)(()=>null,"init")},t=>t.toLowerCase().trimStart().startsWith("---")),(0,l.Xd)(tQ,t8,eM),(0,l.Xd)(tt,q,et,tI,ta,tp,ty,tb,tL,tR,ti,Z,t2,tc,tz,tq,t_,ei,el,tA,em,e$,ek,ef,eE,eU,e2,e8,rt,ri,eN,eX,eQ,eY))},"addDiagrams"),rs=(0,u.K)(async()=>{c.R.debug("Loading registered diagrams");let t=(await Promise.allSettled(Object.entries(l.mW).map(async([t,{detector:e,loader:r}])=>{if(r)try{(0,l.Gs)(t)}catch{try{let{diagram:t,id:n}=await r();(0,l.Js)(n,t,e)}catch(e){throw c.R.error(`Failed to load external diagram with key ${t}. Removing from detectors.`),delete l.mW[t],e}}}))).filter(t=>"rejected"===t.status);if(t.length>0){for(let e of(c.R.error(`Failed to load ${t.length} external diagrams`),t))c.R.error(e);throw Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams");function rl(t,e){t.attr("role","graphics-document document"),""!==e&&t.attr("aria-roledescription",e)}function rc(t,e,r,n){if(void 0!==t.insert){if(r){let e=`chart-desc-${n}`;t.attr("aria-describedby",e),t.insert("desc",":first-child").attr("id",e).text(r)}if(e){let r=`chart-title-${n}`;t.attr("aria-labelledby",r),t.insert("title",":first-child").attr("id",r).text(e)}}}(0,u.K)(rl,"setA11yDiagramInfo"),(0,u.K)(rc,"addSVGa11yTitleDescription");var ru=class t{constructor(t,e,r,n,i){this.type=t,this.text=e,this.db=r,this.parser=n,this.renderer=i}static{(0,u.K)(this,"Diagram")}static async fromText(e,r={}){let n="string"==typeof e?{raw:e,cleaned:e}:e,i=(0,l.zj)(),a=(0,l.Ch)(n.cleaned,i);try{(0,l.Gs)(a)}catch{let t=(0,l.J$)(a);if(!t)throw new l.C0(`Diagram ${a} not found.`);let{id:e,diagram:r}=await t();(0,l.Js)(e,r)}let{db:o,parser:u,renderer:h,init:f}=(0,l.Gs)(a);u.parser&&(u.parser.yy=o),o.clear?.(),f?.(i),r.title&&o.setDiagramTitle?.(r.title);let p=n.cleaned;if(o.preserveCommentsWhenParsing&&n.withComments){let t=i.maxTextSize??l.UI.maxTextSize;n.withComments.length>t?c.R.warn(`Comment-preserving source exceeds maxTextSize (${n.withComments.length} > ${t}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`):p=n.withComments}let d=(0,s.C4)(p)+"\n";return n.frontmatterLineOffset&&o.setFrontmatterLineOffset?.(n.frontmatterLineOffset),await u.parse(d),new t(a,d,o,u,h)}async render(t,e){await this.renderer.draw(this.text,t,e,this)}getParser(){return this.parser}getType(){return this.type}},rh=[],rf=(0,u.K)(()=>{rh.forEach(t=>{t()}),rh=[]},"attachFunctions"),rp=(0,u.K)(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function rd(t){let e=t.match(l.EJ);if(!e)return{text:t,metadata:{}};let r=e[1],n=r?e[2].split("\n").map(t=>t.startsWith(r)?t.slice(r.length):t).join("\n"):e[2],a=(0,i.H)(n,{schema:i.r})??{};a="object"!=typeof a||Array.isArray(a)?{}:a;let o={};return a.displayMode&&(o.displayMode=a.displayMode.toString()),a.title&&(o.title=a.title.toString()),a.config&&(o.config=a.config),{text:t.slice(e[0].length),metadata:o}}(0,u.K)(rd,"extractFrontMatter");var rg=(0,u.K)(t=>t.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(t,e,r)=>"<"+e+r.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),rm=(0,u.K)(t=>{let{text:e,metadata:r}=rd(t),{displayMode:n,title:i,config:a={}}=r;return n&&(a.gantt||(a.gantt={}),a.gantt.displayMode=n),{title:i,config:a,text:e}},"processFrontmatter"),ry=(0,u.K)(t=>{let e=s._K.detectInit(t)??{},r=s._K.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:t})=>"wrap"===t):r?.type==="wrap"&&(e.wrap=!0),{text:(0,s.vU)(t),directive:e}},"processDirectives");function rb(t){let e=rg(t),r=rm(e),n=ry(r.text),i=(0,s.$t)(r.config,n.directive),a=n.text;return{code:{raw:t,cleaned:rp(a),withComments:a,frontmatterLineOffset:e.length>r.text.length?(e.substring(0,e.length-r.text.length).match(/\n/g)??[]).length:0},title:r.title,config:i}}function rx(t){return btoa(Array.from(new TextEncoder().encode(t),t=>String.fromCodePoint(t)).join(""))}(0,u.K)(rb,"preprocessDiagram"),(0,u.K)(rx,"toBase64");var rk=["foreignobject"],rw=["dominant-baseline"];function r_(t){let e,r=rb(t);(0,l.cL)();try{e=(0,l.Ch)(r.code.cleaned,(0,l.zj)())}catch{e=void 0}return(0,l.yj)(e),(0,l.xA)(r.config??{}),r}async function rv(t,e){ro();try{let{code:e,config:r}=r_(t);return{diagramType:(await ru.fromText(e)).type,config:r}}catch(t){if(e?.suppressErrors)return!1;throw t}finally{(0,l.yj)(void 0)}}(0,u.K)(r_,"processAndSetConfigs"),(0,u.K)(rv,"parse");var rM=(0,u.K)((t,e,r=[])=>{let n=(0,l.Df)(`{ ${r.join(" !important; ")} !important; }`);return`.${t} ${e} ${n}`},"cssImportantStyles"),rS=(0,u.K)((t,e=new Map)=>{let r=new CSSStyleSheet;if(void 0!==t.fontFamily&&r.insertRule(`:root { --mermaid-font-family: ${t.fontFamily}}`,r.cssRules.length),void 0!==t.altFontFamily&&r.insertRule(`:root { --mermaid-alt-font-family: ${t.altFontFamily}}`,r.cssRules.length),e instanceof Map){let n=(0,l.E)(t)?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(t=>{H(t.styles)||n.forEach(e=>{r.insertRule(rM(t.id,e,t.styles),r.cssRules.length)}),H(t.textStyles)||r.insertRule(rM(t.id,"tspan",(t?.textStyles||[]).map(t=>t.replace("color","fill"))),r.cssRules.length)})}let n="";if(void 0!==t.themeCSS)if("function"==typeof r.replaceSync){let e=new CSSStyleSheet;e.replaceSync(t.themeCSS),n=(0,l.KG)(e)+"\n"}else n+=`${t.themeCSS}
|
|
2
2
|
`;return n+(0,l.KG)(r)},"createCssStyles"),rA=(0,u.K)((t,e)=>{var r,n,i,a,o;return S((i=function t(e,r,n,i,a,o,s,l,c){for(var u,h,f,d,g=0,m=0,y=s,b=0,S=0,A=0,C=1,U=1,F=1,z=0,B=0,Y="",H=a,q=o,W=i,X=Y;U;)switch(A=B,B=R()){case 40:108!=A&&58==w(X,y-1)?(z++,X+="("):X+=P(B);break;case 41:z--,X+=")";break;case 34:case 39:case 91:X+=P(B);break;case 9:case 10:case 13:case 32:if(z>0){X+=x(B);break}X+=function(t){for(;O=D();)if(O<33)R();else break;return N(t)>2||N(O)>3?"":" "}(A);break;case 92:X+=function(t,e){for(var r;--e&&R()&&!(O<48)&&!(O>102)&&(!(O>57)||!(O<65))&&(!(O>70)||!(O<97)););return r=L+(e<6&&32==D()&&32==R()),_(E,t,r)}(L-1,7);continue;case 47:switch(D()){case 42:case 47:M((u=function(t,e){for(;R();)if(t+O===57)break;else if(t+O===84&&47===D())break;return"/*"+_(E,e,L-1)+"*"+x(47===t?t:R())}(R(),L),h=r,f=n,d=c,K(u,h,f,p,x(O),_(u,2,-2),0,d)),c),(5==N(A||1)||5==N(D()||1))&&v(X)&&" "!==_(X,-1,void 0)&&(X+=" ");break;default:X+="/"}break;case 123*C:l[g++]=v(X)*F;case 125*C:case 59:case 0:if(z>0&&B){X+=x(B);break}switch(B){case 0:case 125:U=0;case 59+m:-1==F&&(X=k(X,/\f/g,"")),S>0&&(v(X)-y||0===C)&&M(S>32?j(X+";",i,n,y-1,c):j(k(X," ","")+";",i,n,y-2,c),c);break;case 59:X+=";";default:if(M(W=I(X,r,n,g,m,a,l,Y,H=[],q=[],y,o),o),123===B)if(0===m)t(X,r,W,W,H,o,y,l,q);else{switch(b){case 99:if(110===w(X,3))break;case 108:if(97===w(X,2))break;default:m=0;case 100:case 109:case 115:}m?t(e,W,W,i&&M(I(e,W,W,0,0,a,l,Y,a,H=[],y,q),q),a,q,y,l,i?H:q):t(X,W,W,W,[""],q,0,l,q)}}g=m=S=0,C=F=1,Y=X="",y=s;break;case 58:y=1+v(X),S=A;default:if(C<1){if(123==B)--C;else if(125==B&&0==C++&&125==(O=L>0?w(E,--L):0,$--,10===O&&($=1,T--),O))continue}switch(X+=x(B),B*C){case 38:F=m>0?1:(X+="\f",-1);break;case 44:if(z>0)break;l[g++]=(v(X)-1)*F,F=1;break;case 64:45===D()&&(X+=P(R())),b=D(),m=y=v(Y=X+=function(t){for(;!N(D());)R();return _(E,t,L)}(L)),B++;break;case 45:45===A&&2==v(X)&&(C=0)}}return o}("",null,null,null,[""],(n=r=`${t}{${e}}`,T=$=1,C=v(E=n),L=0,r=[]),0,[0],r),E="",i),(o=(a=[(0,u.K)(function(e,r,n,i){"rule"===e.type&&Array.isArray(e.props)?e.parent&&e.parent.type===m||(e.props=e.props.map(r=>r===t&&Array.isArray(e.children)&&e.children.every(t=>"decl"===t.type&&new Set(["font-family","font-size","fill"]).has(t.props))||(r.startsWith(`${t} `)||r.startsWith(`${t}>`))&&!r.startsWith(`${t} ||`)?r:`${t} ${r}`)):e.type.startsWith("@")&&(["@media","@supports",y,"@scope","@container","@starting-style",m].includes(e.type)||(c.R.warn(`Removing unsupported at-rule ${e.type} from CSS`),e.type=p))},"addNamespace"),A]).length,function(t,e,r,n){for(var i="",s=0;s<o;s++)i+=a[s](t,e,r,n)||"";return i}))},"compileCSS"),rT=(0,u.K)((t,e,r,n)=>{let i=rS(t,r),a=(0,l.tM)(e,i,{...t.themeVariables,theme:t.theme,look:t.look},n);return rA(n,a)},"createUserStyles"),r$=(0,u.K)((t="",e,r)=>{let n=t;return r||e||(n=n.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),n=(n=(0,s.Sm)(n)).replace(/<br>/g,"<br/>")},"cleanUpSvgCode"),rC=(0,u.K)((t="",e)=>{let r=e?.viewBox?.baseVal?.height?e.viewBox.baseVal.height+"px":"100%",n=rx(`<body style="margin:0">${t}</body>`);return`<iframe style="width:100%;height:${r};border:0;margin:0;" src="data:text/html;charset=UTF-8;base64,${n}" sandbox="allow-top-navigation-by-user-activation allow-popups">
|
|
3
3
|
The "iframe" tag is not supported by your browser.
|
|
4
4
|
</iframe>`},"putIntoIFrame"),rL=(0,u.K)((t,e,r,n,i)=>{let a=t.append("div");a.attr("id",r),n&&a.attr("style",n);let o=a.append("svg").attr("id",e).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return i&&o.attr("xmlns:xlink",i),o.append("g"),t},"appendDivSvgG");function rO(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,u.K)(rO,"sandboxedIframe");var rE=(0,u.K)((t,e,r,n)=>{t.getElementById(e)?.remove(),t.getElementById(r)?.remove(),t.getElementById(n)?.remove()},"removeExistingElements"),rK=(0,u.K)(async function(t,e,r){let n,i;ro();let a=r_(e),o=a.code;e=o.cleaned;let s=(0,l.zj)();c.R.debug(s),e.length>(s?.maxTextSize??5e4)&&(o={raw:e="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",cleaned:e});let h=`#${t}`,p="i"+t,d="#"+p,g="d"+t,m="#"+g,y=(0,u.K)(()=>{let t=x?d:m,e=(0,f.Ltv)(t).node();e&&"remove"in e&&e.remove()},"removeTempElements"),b=(0,f.Ltv)(document.body),x="sandbox"===s.securityLevel,k="loose"===s.securityLevel,w=s.fontFamily;if(void 0!==r){if(r&&(r.innerHTML=""),x){let t=rO((0,f.Ltv)(r),p);(b=(0,f.Ltv)(t.nodes()[0].contentDocument.body)).node().style.margin="0"}else b=(0,f.Ltv)(r);rL(b,t,g,`font-family: ${w}`,"http://www.w3.org/1999/xlink")}else{if(rE(document,t,g,p),x){let t=rO((0,f.Ltv)(document.body),p);(b=(0,f.Ltv)(t.nodes()[0].contentDocument.body)).node().style.margin="0"}else b=(0,f.Ltv)("body");rL(b,t,g)}try{n=await ru.fromText(o,{title:a.title})}catch(t){if(s.suppressErrorRendering)throw y(),t;n=await ru.fromText("error"),i=t}let _=b.select(m).node(),v=n.type,M=_.firstChild,S=M.firstChild,A=rT(s,v,n.renderer.getClasses?.(e,n),h),T=document.createElement("style");T.innerHTML=A,M.insertBefore(T,S);try{await n.renderer.draw(e,t,"12.0.0",n)}catch(r){throw s.suppressErrorRendering?y():tW.draw(e,t,"12.0.0"),r}rP(v,b.select(`${m} svg`),n.db.getAccTitle?.(),n.db.getAccDescription?.());let $=(0,u.K)(()=>{b.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let e=b.select(m).node().innerHTML;return c.R.debug("config.arrowMarkerAbsolute",s.arrowMarkerAbsolute),e=r$(e,x,(0,l._3)(s.arrowMarkerAbsolute)),x?e=rC(e,b.select(m+" svg").node()):k||(e=U.A.sanitize(e,{ADD_TAGS:rk,ADD_ATTR:rw,HTML_INTEGRATION_POINTS:{foreignobject:!0}})),rf(),e},"serializeSvg")();if(i)throw i;return y(),{diagramType:v,svg:$,bindFunctions:n.db.bindFunctions}},"renderDiagram"),rR=(0,u.K)(async function(t,e,r){try{return await rK(t,e,r)}finally{(0,l.yj)(void 0)}},"render");function rD(t={}){let e=(0,l.hH)({},t);e?.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),(0,l.wZ)(e);let r=l.sb.theme;e?.theme&&Object.hasOwn(l.H$,e.theme)?e.themeVariables=l.H$[e.theme].getThemeVariables(e.themeVariables):e&&(null!=e.theme&&"null"!==e.theme&&(e.theme=r),e.themeVariables=l.H$[r].getThemeVariables(e.themeVariables));let n="object"==typeof e?(0,l.UU)(e):(0,l.Q2)();(0,c.H)(n.logLevel),ro()}(0,u.K)(rD,"initialize");var rN=(0,u.K)((t,e={})=>{let{code:r}=rb(t);return ru.fromText(r,e)},"getDiagramFromText");function rP(t,e,r,n){rl(e,t),rc(e,r,n,e.attr("id"))}(0,u.K)(rP,"addA11yInfo");var rI=Object.freeze({render:rR,parse:rv,getDiagramFromText:rN,initialize:rD,getConfig:l.zj,setConfig:l.Nk,getSiteConfig:l.Q2,updateSiteConfig:l.B6,reset:(0,u.K)(()=>{(0,l.cL)()},"reset"),globalReset:(0,u.K)(()=>{(0,l.cL)(l.sb)},"globalReset"),defaultConfig:l.sb});(0,c.H)((0,l.zj)().logLevel),(0,l.cL)((0,l.zj)());var rj=(0,u.K)((t,e,r)=>{c.R.warn(t),(0,s.dq)(t)?(r&&r(t.str,t.hash),e.push({...t,message:t.str,error:t})):(r&&r(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},"handleError"),rU=(0,u.K)(async function(t={querySelector:".mermaid"}){try{await rF(t)}catch(e){if((0,s.dq)(e)&&c.R.error(e.str),rJ.parseError&&rJ.parseError(e),!t.suppressErrors)throw c.R.error("Use the suppressErrors option to suppress these errors"),e}},"run"),rF=(0,u.K)(async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){let n,i,a=rI.getConfig();if(c.R.debug(`${!t?"No ":""}Callback function found`),r)n=r;else if(e)n=document.querySelectorAll(e);else throw Error("Nodes and querySelector are both undefined");c.R.debug(`Found ${n.length} diagrams`),a?.startOnLoad!==void 0&&(c.R.debug("Start On Load: "+a?.startOnLoad),rI.updateSiteConfig({startOnLoad:a?.startOnLoad}));let o=new s._K.InitIDGenerator(a.deterministicIds,a.deterministicIDSeed),l=[];for(let e of Array.from(n)){if(c.R.info("Rendering diagram: "+e.id),e.getAttribute("data-processed"))continue;e.setAttribute("data-processed","true");let r=`mermaid-${o.next()}`;i=e.innerHTML,i=(0,h.T)(s._K.entityDecode(i)).trim().replace(/<br\s*\/?>/gi,"<br/>");let n=s._K.detectInit(i);n&&c.R.debug("Detected early reinit: ",n);try{let{svg:n,bindFunctions:a}=await rV(r,i,e);e.innerHTML=n,t&&await t(r),a&&a(e)}catch(t){rj(t,l,rJ.parseError)}}if(l.length>0)throw l[0]},"runThrowsErrors"),rz=(0,u.K)(function(t){rI.initialize(t)},"initialize"),rB=(0,u.K)(async function(t,e,r){c.R.warn("mermaid.init is deprecated. Please use run instead."),t&&rz(t);let n={postRenderCallback:r,querySelector:".mermaid"};"string"==typeof e?n.querySelector=e:e&&(e instanceof HTMLElement?n.nodes=[e]:n.nodes=e),await rU(n)},"init"),rY=(0,u.K)(async(t,{lazyLoad:e=!0}={})=>{ro(),(0,l.Xd)(...t),!1===e&&await rs()},"registerExternalDiagrams"),rH=(0,u.K)(function(){if(rJ.startOnLoad){let{startOnLoad:t}=rI.getConfig();t&&rJ.run().catch(t=>c.R.error("Mermaid failed to initialize",t))}},"contentLoaded");"u">typeof document&&window.addEventListener("load",rH,!1);var rq=(0,u.K)(function(t){rJ.parseError=t},"setParseErrorHandler"),rW=[],rX=!1,rG=(0,u.K)(async()=>{if(!rX){for(rX=!0;rW.length>0;){let t=rW.shift();if(t)try{await t()}catch(t){c.R.error("Error executing queue",t)}}rX=!1}},"executeQueue"),rZ=(0,u.K)(async(t,e)=>new Promise((r,n)=>{let i=(0,u.K)(()=>new Promise((i,a)=>{rI.parse(t,e).then(t=>{i(t),r(t)},t=>{c.R.error("Error parsing",t),rJ.parseError?.(t),a(t),n(t)})}),"performCall");rW.push(i),rG().catch(n)}),"parse"),rV=(0,u.K)((t,e,r)=>new Promise((n,i)=>{let a=(0,u.K)(()=>new Promise((a,o)=>{rI.render(t,e,r).then(t=>{a(t),n(t)},t=>{c.R.error("Error parsing",t),rJ.parseError?.(t),o(t),i(t)})}),"performCall");rW.push(a),rG().catch(i)}),"render"),rQ=(0,u.K)(()=>Object.keys(l.mW).map(t=>({id:t})),"getRegisteredDiagramsMetadata"),rJ={startOnLoad:!0,mermaidAPI:rI,parse:rZ,render:rV,init:rB,run:rU,registerExternalDiagrams:rY,registerLayoutLoaders:a.sO,initialize:rz,parseError:void 0,contentLoaded:rH,setParseErrorHandler:rq,detectType:l.Ch,registerIconPacks:o.pC,getRegisteredDiagramsMetadata:rQ},r0=rJ},32256:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(23792);let i=(t,e)=>(0,n.A)(t,"l",-e)},33280:(t,e,r)=>{"use strict";r.d(e,{XX:()=>y,q7:()=>x,sO:()=>g});var n=r(13080),i=r(64299),a=r(37064),o=r(83860),s=r(60833),l=r(58959),c=r(95631),u=r(5218),h=r(14528),f={common:c.Y2,getConfig:c.zj,insertCluster:i.U,insertEdge:a.Jo,insertEdgeLabel:a.jP,insertMarkers:a.g0,insertNode:o.on,interpolateToCurve:l.Ib,labelHelper:s.Zk,log:u.R,positionEdgeLabel:a.T_},p=["elk.stress","elk.force","elk.mrtree","elk.sporeOverlap","elk.box","elk.rectpacking"],d=Object.create(null),g=(0,h.K)(t=>{for(let e of t)d[e.name]=e},"registerLayoutLoaders"),m=(0,h.K)(()=>{let t=(0,h.K)(async()=>await Promise.all([r.e(5637),r.e(5469),r.e(6390),r.e(9540),r.e(1282),r.e(3289)]).then(r.bind(r,73289)),"loader");return[{name:"elk",loader:t,algorithm:"elk.layered"},...p.map(e=>({name:e,loader:t,algorithm:e}))]},"elkLayoutLoaders");(0,h.K)(()=>{g([{name:"dagre",loader:(0,h.K)(async()=>await Promise.all([r.e(5469),r.e(6390),r.e(9540),r.e(4459),r.e(8590)]).then(r.bind(r,78590)),"loader")},{name:"swimlane",loader:(0,h.K)(async()=>await Promise.all([r.e(8761),r.e(5469),r.e(6390),r.e(9540),r.e(1282)]).then(r.bind(r,79976)),"loader")},{name:"cose-bilkent",loader:(0,h.K)(async()=>await Promise.all([r.e(6278),r.e(6747)]).then(r.bind(r,36747)),"loader")},...m()])},"registerDefaultLayoutLoaders")();var y=(0,h.K)(async(t,e)=>{if(!Object.hasOwn(d,t.layoutAlgorithm))throw Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);if(t.diagramId)for(let e of t.nodes){let r=e.domId||e.id;e.domId=`${t.diagramId}-${r}`}let r=d[t.layoutAlgorithm],i=await r.loader();return(0,n.F)(e,t.config),i.render(t,e,f,{algorithm:r.algorithm})},"render"),b="dagre",x=(0,h.K)((t="",{fallback:e=b}={})=>{if(Object.hasOwn(d,t))return t;for(let r of[e,b])if(Object.hasOwn(d,r))return u.R.warn(`Layout algorithm ${t} is not registered. Using ${r} as fallback.`),r;throw Error(`Neither layout algorithm ${t}, ${e}, nor ${b} is registered.`)},"getRegisteredLayoutAlgorithm")},36950:(t,e,r)=>{"use strict";function n(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}r.d(e,{b:()=>n})},37064:(t,e,r)=>{"use strict";r.d(e,{IU:()=>A,Jo:()=>U,Nq:()=>g,T_:()=>O,UQ:()=>S,a6:()=>T,g0:()=>td,hq:()=>d,jP:()=>C,lP:()=>M});var n=r(83860),i=r(60833),a=r(99980),o=r(96137),s=r(58959),l=r(95631),c=r(5218),u=r(14528),h=r(60830),f=r(3288),p=(0,u.K)((t,e)=>{if(e)return"translate("+-t.width/2+", "+-t.height/2+")";let r=t.x??0,n=t.y??0;return"translate("+-(r+t.width/2)+", "+-(n+t.height/2)+")"},"computeLabelTransform"),d={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},g={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function m(t,e){if(void 0===t||void 0===e)return{angle:0,deltaX:0,deltaY:0};t=y(t),e=y(e);let[r,n]=[t.x,t.y],[i,a]=[e.x,e.y],o=i-r,s=a-n;return{angle:Math.atan(s/o),deltaX:o,deltaY:s}}(0,u.K)(m,"calculateDeltaAndAngle");var y=(0,u.K)(t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,"pointTransformer"),b=(0,u.K)(t=>({x:(0,u.K)(function(e,r,n){let i=0,a=y(n[0]).x<y(n[n.length-1]).x?"left":"right";if(0===r&&Object.hasOwn(d,t.arrowTypeStart)){let{angle:e,deltaX:r}=m(n[0],n[1]);i=d[t.arrowTypeStart]*Math.cos(e)*(r>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(d,t.arrowTypeEnd)){let{angle:e,deltaX:r}=m(n[n.length-1],n[n.length-2]);i=d[t.arrowTypeEnd]*Math.cos(e)*(r>=0?1:-1)}let o=Math.abs(y(e).x-y(n[n.length-1]).x),s=Math.abs(y(e).y-y(n[n.length-1]).y),l=Math.abs(y(e).x-y(n[0]).x),c=Math.abs(y(e).y-y(n[0]).y),u=d[t.arrowTypeStart],h=d[t.arrowTypeEnd];if(o<h&&o>0&&s<h){let t=h+1-o;t*="right"===a?-1:1,i-=t}if(l<u&&l>0&&c<u){let t=u+1-l;t*="right"===a?-1:1,i+=t}return y(e).x+i},"x"),y:(0,u.K)(function(e,r,n){let i=0,a=y(n[0]).y<y(n[n.length-1]).y?"down":"up";if(0===r&&Object.hasOwn(d,t.arrowTypeStart)){let{angle:e,deltaY:r}=m(n[0],n[1]);i=d[t.arrowTypeStart]*Math.abs(Math.sin(e))*(r>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(d,t.arrowTypeEnd)){let{angle:e,deltaY:r}=m(n[n.length-1],n[n.length-2]);i=d[t.arrowTypeEnd]*Math.abs(Math.sin(e))*(r>=0?1:-1)}let o=Math.abs(y(e).y-y(n[n.length-1]).y),s=Math.abs(y(e).x-y(n[n.length-1]).x),l=Math.abs(y(e).y-y(n[0]).y),c=Math.abs(y(e).x-y(n[0]).x),u=d[t.arrowTypeStart],h=d[t.arrowTypeEnd];if(o<h&&o>0&&s<h){let t=h+1-o;t*="up"===a?-1:1,i-=t}if(l<u&&l>0&&c<u){let t=u+1-l;t*="up"===a?-1:1,i+=t}return y(e).y+i},"y")}),"getLineFunctionsWithOffset"),x=(0,u.K)((t,e,r,n,i,a=!1,o)=>{e.arrowTypeStart&&_(t,"start",e.arrowTypeStart,r,n,i,a,o),e.arrowTypeEnd&&_(t,"end",e.arrowTypeEnd,r,n,i,a,o)},"addEdgeMarkers"),k={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},arrow_hierarchy:{type:"hierarchy",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},w=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],_=(0,u.K)((t,e,r,n,i,a,o=!1,s)=>{if(!r||"none"===r)return;let l=k[r],u=l&&w.includes(l.type);if(!l)return void c.R.warn(`Unknown arrow type: ${r}`);let h=l.type,f=`${i}_${a}-${h}${"start"===e?"Start":"End"}${o&&u?"-margin":""}`;if(s&&""!==s.trim()){let r=s.replace(/[^\dA-Za-z]/g,"_"),i=`${f}_${r}`;if(!document.getElementById(i)){let t=document.getElementById(f);if(t){let e=t.cloneNode(!0);e.id=i,e.querySelectorAll("path, circle, line").forEach(t=>{t.setAttribute("stroke",s),l.fill&&t.setAttribute("fill",s)}),t.parentNode?.appendChild(e)}}t.attr(`marker-${e}`,`url(${n}#${i})`)}else t.attr(`marker-${e}`,`url(${n}#${f})`)},"addEdgeMarker"),v=(0,u.K)(t=>"string"==typeof t?t:(0,l.D7)()?.flowchart?.curve,"resolveEdgeCurveType"),M=new Map,S=new Map,A=(0,u.K)(()=>{M.clear(),S.clear()},"clear"),T=(0,u.K)(t=>!!(t.label||t.startLabelLeft||t.startLabelRight||t.endLabelLeft||t.endLabelRight),"hasEdgeLabel"),$=(0,u.K)(t=>t?"string"==typeof t?t:t.reduce((t,e)=>t+";"+e,""):"","getLabelStyles"),C=(0,u.K)(async(t,e)=>{let r,n,s,u=(0,l.D7)(),f=(0,l.E)(u),{labelStyles:d}=(0,a.GX)(e);e.labelStyle=d;let g=t.insert("g").attr("class","edgeLabel"),m=g.insert("g").attr("class","label").attr("data-id",e.id),y="markdown"===e.labelType,b=await (0,o.GZ)(t,e.label,{style:$(e.labelStyle),useHtmlLabels:f,addSvgBackground:!0,isNode:!1,markdown:y,width:void 0},u);if(m.node().appendChild(b),c.R.info("abc82",e,e.labelType),f){let t=b.children[0],e=(0,h.Ltv)(b);n=r=await o.lT.measure(()=>t.getBoundingClientRect()),e.attr("width",r.width),e.attr("height",r.height)}else{let t=(0,h.Ltv)(b).select("text").node();await o.lT.measure(()=>{r=b.getBBox(),n=t&&"function"==typeof t.getBBox?t.getBBox():r})}if(m.attr("transform",p(n,f)),M.set(e.id,g),e.width=r.width,e.height=r.height,e.startLabelLeft){let r=t.insert("g").attr("class","edgeTerminals"),n=r.insert("g").attr("class","inner"),a=await (0,i.DA)(n,e.startLabelLeft,$(e.labelStyle)||"",!1,!1);s=a;let o=a.getBBox();if(f){let t=a.children[0],e=(0,h.Ltv)(a);o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}n.attr("transform",p(o,f)),S.get(e.id)||S.set(e.id,{}),S.get(e.id).startLeft=r,L(s,e.startLabelLeft)}if(e.startLabelRight){let r=t.insert("g").attr("class","edgeTerminals"),n=r.insert("g").attr("class","inner"),a=await (0,i.DA)(n,e.startLabelRight,$(e.labelStyle)||"",!1,!1);s=a;let o=a.getBBox();if(f){let t=a.children[0],e=(0,h.Ltv)(a);o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}n.attr("transform",p(o,f)),S.get(e.id)||S.set(e.id,{}),S.get(e.id).startRight=r,L(s,e.startLabelRight)}if(e.endLabelLeft){let r=t.insert("g").attr("class","edgeTerminals"),n=r.insert("g").attr("class","inner"),a=await (0,i.DA)(r,e.endLabelLeft,$(e.labelStyle)||"",!1,!1);s=a;let o=a.getBBox();if(f){let t=a.children[0],e=(0,h.Ltv)(a);o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}n.attr("transform",p(o,f)),S.get(e.id)||S.set(e.id,{}),S.get(e.id).endLeft=r,L(s,e.endLabelLeft)}if(e.endLabelRight){let r=t.insert("g").attr("class","edgeTerminals"),n=r.insert("g").attr("class","inner"),a=await (0,i.DA)(r,e.endLabelRight,$(e.labelStyle)||"",!1,!1);s=a;let o=a.getBBox();if(f){let t=a.children[0],e=(0,h.Ltv)(a);o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}n.attr("transform",p(o,f)),S.get(e.id)||S.set(e.id,{}),S.get(e.id).endRight=r,L(s,e.endLabelRight)}return b},"insertEdgeLabel");function L(t,e){(0,l.E)((0,l.D7)())&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}(0,u.K)(L,"setTerminalWidth");var O=(0,u.K)((t,e)=>{c.R.debug("Moving label abc88 ",t.id,t.label,M.get(t.id),e);let r=e.updatedPath?e.updatedPath:e.originalPath,i=(0,l.D7)(),{subGraphTitleTotalMargin:a}=(0,n.Oi)(i);if(t.label){let n=M.get(t.id),i=t.x,o=t.y;if(r){let n=s._K.calcLabelPosition(r);c.R.debug("Moving label "+t.label+" from (",i,",",o,") to (",n.x,",",n.y,") abc88"),e.updatedPath&&(i=n.x,o=n.y)}n.attr("transform",`translate(${i}, ${o+a/2})`)}if(t.startLabelLeft){let e=S.get(t.id).startLeft,n=t.x,i=t.y;if(r){let e=s._K.calcTerminalLabelPosition(10*!!t.arrowTypeStart,"start_left",r);n=e.x,i=e.y}e.attr("transform",`translate(${n}, ${i})`)}if(t.startLabelRight){let e=S.get(t.id).startRight,n=t.x,i=t.y;if(r){let e=s._K.calcTerminalLabelPosition(10*!!t.arrowTypeStart,"start_right",r);n=e.x,i=e.y}e.attr("transform",`translate(${n}, ${i})`)}if(t.endLabelLeft){let e=S.get(t.id).endLeft,n=t.x,i=t.y;if(r){let e=s._K.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_left",r);n=e.x,i=e.y}e.attr("transform",`translate(${n}, ${i})`)}if(t.endLabelRight){let e=S.get(t.id).endRight,n=t.x,i=t.y;if(r){let e=s._K.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_right",r);n=e.x,i=e.y}e.attr("transform",`translate(${n}, ${i})`)}},"positionEdgeLabel"),E=(0,u.K)((t,e)=>{if(!t?.isLabelEdge||!t?.id?.endsWith("-to-label")||!Array.isArray(e)||2!==e.length)return e;let[r,n]=e,i=Math.abs(n.x-r.x),a=Math.abs(n.y-r.y);return i<.001||a<.001?e:a>=i?[r,{x:r.x,y:n.y},n]:[r,{x:n.x,y:r.y},n]},"orthogonalizeToLabelClippedPoints"),K=(0,u.K)((t,e)=>{let r=t.x,n=t.y,i=Math.abs(e.x-r),a=Math.abs(e.y-n),o=t.width/2,s=t.height/2;return i>=o||a>=s},"outsideNode"),R=(0,u.K)((t,e,r)=>{c.R.debug(`intersection calc abc89:
|